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