spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / telemetry / tests / fixtures / survey-answer.ts
11 lines · 268 BRaw
1import type { LogEntry } from '../../hooks/telemetry-types'
2
3/**
4 * A survey answered, as a plugin logs it.
5 *
6 * @returns the entry, fresh each call
7 */
8export const surveyAnswer = (): LogEntry => ({
9 event: 'survey_answered',
10 props: { answer: 2, seen: true },
11})