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
35 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 fullscreen (once
13 * `/diff` said), the dialog's view, and the docked scroll in its last box.
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 bodies: Bodies
29 todos: Todos.TodoProgress
30 armedPath: string | null
31 placement: 'dock' | 'inline'
32 isFullscreen: boolean | null
33 dialogView: 'list' | 'detail'
34 place: { top: number; listStart: number; columns: number; rows: number }
35}