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.
TypeScript
import type { CommandRunInput } from 'claude-code'
import type { TelemetryLogEntry } from '../../types'
import { FULLSCREEN } from './fullscreen.js'
/**
* The command that has the recording plugin log an entry, typed as the
* person would type it.
*
* @param entry what to log
* @returns `/record <entry>`
*/
export const record = (entry: TelemetryLogEntry): CommandRunInput => ({
command: 'record',
args: JSON.stringify(entry),
origin: { kind: 'composer' },
presentation: FULLSCREEN,
})