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 / pane-state / pane-model / pane-model.ts
33 lines · 971 BRaw
1import type Backend from '../../backend'
2import type Git from '../../git'
3import type Todos from '../../todos'
4import type Turns from '../../turns'
5import type { BodyState } from '../body-state'
6import type { Source } from '../source'
7
8/**
9 * Everything one drawing of the pane reads.
10 *
11 * The last good fetch, what the person picked, the selected file's body,
12 * the transcript's turns and todos, and the pinned backend's words and
13 * base modes (git's until one is pinned).
14 */
15export type PaneModel = {
16 words: Backend.BackendWords
17 baseModes: readonly Git.BaseMode[]
18 isLoading: boolean
19 hasSettled: boolean
20 isOutsideRepository: boolean
21 data: Git.DiffData | null
22 requestedMode: Git.BaseMode
23 selectedPath: string | null
24 isNoiseShown: boolean
25 isPreSessionShown: boolean
26 source: Source
27 turns: readonly Turns.TurnDiff[]
28 body: Git.FileHunks | null
29 bodyState: BodyState
30 todos: Todos.TodoProgress
31 armedPath: string | null
32 isFocused: boolean
33}