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 · 584 BRaw
1import type Backend from '../../../backend'
2import type Git from '../../../git'
3
4/**
5 * One file as its body draws it.
6 *
7 * Its name as listed, what kind of row it is, its hunks once read (undefined
8 * while they load, null when the backend could not read them), whether it is
9 * armed for the next prompt, and the backend's words for an untracked note.
10 */
11export type DetailModel = {
12 words: Pick<Backend.BackendWords, 'untrackedNoteOf'>
13 path: string
14 displayPath: string
15 isUntracked: boolean
16 isBinary: boolean
17 body: Git.FileHunks | null | undefined
18 isArmed: boolean
19}