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 / diff / hooks / views / detail / detail-model / detail-model.ts
20 lines · 592 BRaw
1import type Backend from '../../../backend'
2import type Git from '../../../git'
3import type PaneState from '../../../pane-state'
4
5/**
6 * The selected file as its body draws it.
7 *
8 * The path, what kind of row it is, its hunks once read, whether it is armed
9 * for the next prompt, and the backend's words for an untracked row's note.
10 */
11export type DetailModel = {
12 words: Pick<Backend.BackendWords, 'untrackedNoteOf'>
13 path: string
14 renamedFrom: string | null
15 isUntracked: boolean
16 isBinary: boolean
17 body: Git.FileHunks | null
18 bodyState: PaneState.BodyState
19 isArmed: boolean
20}