-
Notifications
You must be signed in to change notification settings - Fork 800
Expand file tree
/
Copy pathtypes.ts
More file actions
33 lines (30 loc) · 1001 Bytes
/
types.ts
File metadata and controls
33 lines (30 loc) · 1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import type * as vscode from 'vscode';
export type AgentType = 'claude' | 'codex' | 'antigravity';
export interface AgentState {
id: number;
terminalRef: vscode.Terminal;
projectDir: string;
jsonlFile: string;
agentType: AgentType;
fileOffset: number;
lineBuffer: string;
activeToolIds: Set<string>;
activeToolStatuses: Map<string, string>;
activeToolNames: Map<string, string>;
activeSubagentToolIds: Map<string, Set<string>>; // parentToolId → active sub-tool IDs
activeSubagentToolNames: Map<string, Map<string, string>>; // parentToolId → (subToolId → toolName)
isWaiting: boolean;
permissionSent: boolean;
hadToolsInTurn: boolean;
/** Workspace folder name (only set for multi-root workspaces) */
folderName?: string;
}
export interface PersistedAgent {
id: number;
terminalName: string;
jsonlFile: string;
projectDir: string;
agentType?: AgentType;
/** Workspace folder name (only set for multi-root workspaces) */
folderName?: string;
}