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
19 lines · 589 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: the path, what kind of row it is,
7 * its hunks once read, whether it is armed for the next prompt, and the
8 * backend's words for an untracked row's note.
9 */
10export type DetailModel = {
11 words: Pick<Backend.BackendWords, 'untrackedNoteOf'>
12 path: string
13 renamedFrom: string | null
14 isUntracked: boolean
15 isBinary: boolean
16 body: Git.FileHunks | null
17 bodyState: PaneState.BodyState
18 isArmed: boolean
19}