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 / initial-model / initial-model.ts
26 lines · 702 BRaw
1import Git from '../../git'
2import type { PaneModel } from '../pane-model'
3
4/**
5 * The pane before anything happened: session mode, nothing fetched,
6 * nothing picked, the current source, git's words.
7 */
8export const INITIAL_MODEL: PaneModel = Object.freeze({
9 words: Git.GIT_WORDS,
10 baseModes: Git.GIT_BASE_MODES,
11 isLoading: false,
12 hasSettled: false,
13 isOutsideRepository: false,
14 data: null,
15 requestedMode: 'session',
16 selectedPath: null,
17 isNoiseShown: false,
18 isPreSessionShown: false,
19 source: Object.freeze({ kind: 'current' }),
20 turns: Object.freeze([]),
21 body: null,
22 bodyState: 'idle',
23 todos: Object.freeze({ done: 0, total: 0 }),
24 armedPath: null,
25 isFocused: false,
26})