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
36 lines · 1.1 KBRaw
1import type Backend from '../../backend'
2import type Git from '../../git'
3import type Todos from '../../todos'
4import type Turns from '../../turns'
5import type { Bodies } from '../bodies'
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 bodies read so far, the
12 * turns and todos, how the surface seated it, whether the layout docks a
13 * pane (once a drawing or `/diff` said), the dialog's view, and the docked
14 * scroll in its last box.
15 */
16export type PaneModel = {
17 words: Backend.BackendWords
18 baseModes: readonly Git.BaseMode[]
19 isLoading: boolean
20 hasSettled: boolean
21 isOutsideRepository: boolean
22 data: Git.DiffData | null
23 requestedMode: Git.BaseMode
24 selectedPath: string | null
25 isNoiseShown: boolean
26 isPreSessionShown: boolean
27 source: Source
28 turns: readonly Turns.TurnDiff[]
29 bodies: Bodies
30 todos: Todos.TodoProgress
31 armedPath: string | null
32 placement: 'dock' | 'inline'
33 isFullscreen: boolean | null
34 dialogView: 'list' | 'detail'
35 place: { top: number; listStart: number; columns: number; rows: number }
36}