Use union types for state and mode in Session interface
This commit is contained in:
parent
7bf04ed184
commit
5df3392ad9
1 changed files with 2 additions and 2 deletions
|
|
@ -18,14 +18,14 @@ export interface Session {
|
||||||
cwd: string | null;
|
cwd: string | null;
|
||||||
command: string | null;
|
command: string | null;
|
||||||
// Phase 2.3: Session state and stats
|
// Phase 2.3: Session state and stats
|
||||||
state: string;
|
state: "ready" | "thinking" | "permission" | "question" | "complete" | "interrupted";
|
||||||
prompts: number;
|
prompts: number;
|
||||||
completions: number;
|
completions: number;
|
||||||
tools: number;
|
tools: number;
|
||||||
compressions: number;
|
compressions: number;
|
||||||
thinking_seconds: number;
|
thinking_seconds: number;
|
||||||
work_seconds: number;
|
work_seconds: number;
|
||||||
mode: string;
|
mode: "normal" | "auto_accept" | "plan";
|
||||||
model: string | null;
|
model: string | null;
|
||||||
idle_since: number | null;
|
idle_since: number | null;
|
||||||
// Git state (for later phase)
|
// Git state (for later phase)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue