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 / tests / fixtures / beneath / beneath.ts
28 lines · 777 BRaw
1import type { Settings } from 'claude-code'
2
3/**
4 * What the world beneath a repository session holds and answers besides
5 * git: the store, the settings, the environment, whether a pane is seated.
6 */
7export type Beneath = {
8 /**
9 * What the plugin's store holds at the start; nothing when not given.
10 */
11 stored?: Readonly<Record<string, unknown>>
12
13 /**
14 * What `$.settings.read` answers; empty when not given.
15 */
16 settings?: Settings
17
18 /**
19 * The variables `$.env.get` answers from; none set when not given.
20 */
21 env?: Readonly<Record<string, string>>
22
23 /**
24 * Whether an open made now is left waiting undrawn (LEFT_WAITING), as an
25 * engine leaves an unasked open on a narrow terminal; placed when not given.
26 */
27 isLeftWaiting?: () => boolean
28}