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