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
29 lines · 867 BRaw
1import Git from '../../git'
2import { NO_BODIES } from '../no-bodies'
3import type { PaneModel } from '../pane-model'
4
5/**
6 * The pane before anything happened: session mode, nothing fetched,
7 * nothing picked, no body read, the current source, git's words, docked.
8 */
9export const INITIAL_MODEL: PaneModel = Object.freeze({
10 words: Git.GIT_WORDS,
11 baseModes: Git.GIT_BASE_MODES,
12 isLoading: false,
13 hasSettled: false,
14 isOutsideRepository: false,
15 data: null,
16 requestedMode: 'session',
17 selectedPath: null,
18 isNoiseShown: false,
19 isPreSessionShown: false,
20 source: Object.freeze({ kind: 'current' }),
21 turns: Object.freeze([]),
22 bodies: NO_BODIES,
23 todos: Object.freeze({ done: 0, total: 0 }),
24 armedPath: null,
25 placement: 'dock',
26 isFullscreen: null,
27 dialogView: 'list',
28 place: Object.freeze({ top: 0, listStart: 0, columns: 0, rows: 0 }),
29})