Skip to content

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
460 B
Raw Blame
import type { SessionMessage } from 'claude-code'

import { editPatchOf } from './edit-patch-of.js'
import TurnDiffsOf from './turn-diffs-of'

/**
 * A transcript a resumed session brings back whose one turn edited a file:
 * the prompt, the Edit that landed, its result.
 */
export const EDITED_TRANSCRIPT: readonly SessionMessage[] = [
  TurnDiffsOf.promptOf('change a to b'),
  TurnDiffsOf.editsOf(editPatchOf(['-a', '+b'])),
  TurnDiffsOf.toolResults(),
]