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 / record.ts
18 lines · 504 BRaw
1import type { CommandRunInput } from 'claude-code'
2
3import type { TelemetryLogEntry } from '../../types'
4import { FULLSCREEN } from './fullscreen.js'
5
6/**
7 * The command that has the recording plugin log an entry, typed as the
8 * person would type it.
9 *
10 * @param entry what to log
11 * @returns `/record <entry>`
12 */
13export const record = (entry: TelemetryLogEntry): CommandRunInput => ({
14 command: 'record',
15 args: JSON.stringify(entry),
16 origin: { kind: 'composer' },
17 presentation: FULLSCREEN,
18})