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
541 B
Raw Blame
import type Turns from '../../../turns'
import type { BodyEntry } from '../body-entry'

/**
 * A turn's file as the pane draws it: its hunks come from the transcript,
 * so its body is always in hand.
 *
 * @param file the turn's file
 * @returns the entry
 */
export const turnEntryOf = (file: Turns.TurnFile): BodyEntry => ({
  path: file.path,
  displayPath: file.path,
  added: file.added,
  removed: file.removed,
  isUntracked: false,
  isBinary: false,
  body: { hunks: file.hunks, isTruncated: file.isTruncated, isLarge: false },
})