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 / expected-row.ts
42 lines · 1.2 KBRaw
1import { DEVICE_ID } from './device-id.js'
2import { REMOTE_HASH } from './remote-hash.js'
3
4/**
5 * The survey answer's row as SENDING_ENV's session sends it, complete: the
6 * shape rowOf reads back, every column the plugin can fill filled.
7 */
8export const EXPECTED_ROW = {
9 event_type: 'ClaudeCodeInternalEvent',
10 hasEventId: true,
11 hasTimestamp: true,
12 event_name: 'tengu_plugin_survey_answered',
13 device_id: DEVICE_ID,
14 email: 'person@example.invalid',
15 auth: { account_uuid: 'acc-1111-2222', organization_uuid: 'org-3333-4444' },
16 session_id: 'the-session',
17 model: 'the-model',
18 user_type: 'ant',
19 is_interactive: true,
20 client_type: 'cli',
21 entrypoint: 'cli',
22 env: {
23 platform: 'darwin',
24 platform_raw: 'darwin',
25 arch: 'arm64',
26 terminal: 'ghostty',
27 shell: 'zsh',
28 package_managers: 'npm,pnpm',
29 runtimes: 'bun,node',
30 is_ci: false,
31 is_claubbit: false,
32 is_github_action: false,
33 is_claude_code_action: false,
34 is_claude_code_remote: false,
35 is_local_agent_mode: false,
36 is_conductor: false,
37 deployment_environment: 'unknown-darwin',
38 vcs: 'git',
39 is_claude_ai_auth: true,
40 },
41 metadata: { rh: REMOTE_HASH, answer: 2, page: 'ready', seen: true },
42}