@hydra-acp/cli 0.1.113 → 0.1.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +376 -376
- package/dist/daemon.d.ts +1 -0
- package/dist/daemon.js +154 -0
- package/package.json +3 -8
- package/dist/index.d.ts +0 -4085
- package/dist/index.js +0 -147
package/dist/index.d.ts
DELETED
|
@@ -1,4085 +0,0 @@
|
|
|
1
|
-
import { FastifyInstance } from 'fastify';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { Readable, Writable } from 'node:stream';
|
|
4
|
-
import { ChildProcess } from 'node:child_process';
|
|
5
|
-
import { SonicBoom } from 'sonic-boom';
|
|
6
|
-
import { WebSocket } from 'ws';
|
|
7
|
-
|
|
8
|
-
declare const ExtensionBody: z.ZodObject<{
|
|
9
|
-
command: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
10
|
-
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
11
|
-
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
13
|
-
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
args: string[];
|
|
15
|
-
command: string[];
|
|
16
|
-
env: Record<string, string>;
|
|
17
|
-
enabled: boolean;
|
|
18
|
-
}, {
|
|
19
|
-
args?: string[] | undefined;
|
|
20
|
-
command?: string[] | undefined;
|
|
21
|
-
env?: Record<string, string> | undefined;
|
|
22
|
-
enabled?: boolean | undefined;
|
|
23
|
-
}>;
|
|
24
|
-
type ExtensionBody = z.infer<typeof ExtensionBody>;
|
|
25
|
-
type ExtensionConfig = ExtensionBody & {
|
|
26
|
-
name: string;
|
|
27
|
-
};
|
|
28
|
-
declare const TransformerBody: z.ZodObject<{
|
|
29
|
-
command: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
30
|
-
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
31
|
-
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
32
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
33
|
-
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
args: string[];
|
|
35
|
-
command: string[];
|
|
36
|
-
env: Record<string, string>;
|
|
37
|
-
enabled: boolean;
|
|
38
|
-
}, {
|
|
39
|
-
args?: string[] | undefined;
|
|
40
|
-
command?: string[] | undefined;
|
|
41
|
-
env?: Record<string, string> | undefined;
|
|
42
|
-
enabled?: boolean | undefined;
|
|
43
|
-
}>;
|
|
44
|
-
type TransformerBody = z.infer<typeof TransformerBody>;
|
|
45
|
-
type TransformerConfig = TransformerBody & {
|
|
46
|
-
name: string;
|
|
47
|
-
};
|
|
48
|
-
declare const HydraConfig: z.ZodObject<{
|
|
49
|
-
daemon: z.ZodDefault<z.ZodObject<{
|
|
50
|
-
host: z.ZodDefault<z.ZodString>;
|
|
51
|
-
port: z.ZodDefault<z.ZodNumber>;
|
|
52
|
-
logLevel: z.ZodDefault<z.ZodEnum<["debug", "info", "warn", "error"]>>;
|
|
53
|
-
tls: z.ZodOptional<z.ZodObject<{
|
|
54
|
-
cert: z.ZodString;
|
|
55
|
-
key: z.ZodString;
|
|
56
|
-
}, "strip", z.ZodTypeAny, {
|
|
57
|
-
cert: string;
|
|
58
|
-
key: string;
|
|
59
|
-
}, {
|
|
60
|
-
cert: string;
|
|
61
|
-
key: string;
|
|
62
|
-
}>>;
|
|
63
|
-
sessionIdleTimeoutSeconds: z.ZodDefault<z.ZodNumber>;
|
|
64
|
-
sessionHistoryMaxEntries: z.ZodDefault<z.ZodNumber>;
|
|
65
|
-
sessionHistoryArchiveMaxBytes: z.ZodDefault<z.ZodNumber>;
|
|
66
|
-
sessionHistoryArchiveTiers: z.ZodDefault<z.ZodNumber>;
|
|
67
|
-
agentStderrTailBytes: z.ZodDefault<z.ZodNumber>;
|
|
68
|
-
publicHost: z.ZodOptional<z.ZodString>;
|
|
69
|
-
agentSyncIntervalMinutes: z.ZodDefault<z.ZodNumber>;
|
|
70
|
-
sessionGcIntervalMinutes: z.ZodDefault<z.ZodNumber>;
|
|
71
|
-
sessionGcMaxAgeDays: z.ZodDefault<z.ZodNumber>;
|
|
72
|
-
}, "strip", z.ZodTypeAny, {
|
|
73
|
-
host: string;
|
|
74
|
-
port: number;
|
|
75
|
-
logLevel: "info" | "debug" | "warn" | "error";
|
|
76
|
-
sessionIdleTimeoutSeconds: number;
|
|
77
|
-
sessionHistoryMaxEntries: number;
|
|
78
|
-
sessionHistoryArchiveMaxBytes: number;
|
|
79
|
-
sessionHistoryArchiveTiers: number;
|
|
80
|
-
agentStderrTailBytes: number;
|
|
81
|
-
agentSyncIntervalMinutes: number;
|
|
82
|
-
sessionGcIntervalMinutes: number;
|
|
83
|
-
sessionGcMaxAgeDays: number;
|
|
84
|
-
tls?: {
|
|
85
|
-
cert: string;
|
|
86
|
-
key: string;
|
|
87
|
-
} | undefined;
|
|
88
|
-
publicHost?: string | undefined;
|
|
89
|
-
}, {
|
|
90
|
-
host?: string | undefined;
|
|
91
|
-
port?: number | undefined;
|
|
92
|
-
logLevel?: "info" | "debug" | "warn" | "error" | undefined;
|
|
93
|
-
tls?: {
|
|
94
|
-
cert: string;
|
|
95
|
-
key: string;
|
|
96
|
-
} | undefined;
|
|
97
|
-
sessionIdleTimeoutSeconds?: number | undefined;
|
|
98
|
-
sessionHistoryMaxEntries?: number | undefined;
|
|
99
|
-
sessionHistoryArchiveMaxBytes?: number | undefined;
|
|
100
|
-
sessionHistoryArchiveTiers?: number | undefined;
|
|
101
|
-
agentStderrTailBytes?: number | undefined;
|
|
102
|
-
publicHost?: string | undefined;
|
|
103
|
-
agentSyncIntervalMinutes?: number | undefined;
|
|
104
|
-
sessionGcIntervalMinutes?: number | undefined;
|
|
105
|
-
sessionGcMaxAgeDays?: number | undefined;
|
|
106
|
-
}>>;
|
|
107
|
-
registry: z.ZodDefault<z.ZodObject<{
|
|
108
|
-
url: z.ZodDefault<z.ZodString>;
|
|
109
|
-
ttlHours: z.ZodDefault<z.ZodNumber>;
|
|
110
|
-
pinned: z.ZodDefault<z.ZodBoolean>;
|
|
111
|
-
}, "strip", z.ZodTypeAny, {
|
|
112
|
-
url: string;
|
|
113
|
-
ttlHours: number;
|
|
114
|
-
pinned: boolean;
|
|
115
|
-
}, {
|
|
116
|
-
url?: string | undefined;
|
|
117
|
-
ttlHours?: number | undefined;
|
|
118
|
-
pinned?: boolean | undefined;
|
|
119
|
-
}>>;
|
|
120
|
-
agents: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
121
|
-
name: z.ZodOptional<z.ZodString>;
|
|
122
|
-
description: z.ZodOptional<z.ZodString>;
|
|
123
|
-
command: z.ZodOptional<z.ZodString>;
|
|
124
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
125
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
126
|
-
}, "strip", z.ZodTypeAny, {
|
|
127
|
-
name?: string | undefined;
|
|
128
|
-
args?: string[] | undefined;
|
|
129
|
-
command?: string | undefined;
|
|
130
|
-
env?: Record<string, string> | undefined;
|
|
131
|
-
description?: string | undefined;
|
|
132
|
-
}, {
|
|
133
|
-
name?: string | undefined;
|
|
134
|
-
args?: string[] | undefined;
|
|
135
|
-
command?: string | undefined;
|
|
136
|
-
env?: Record<string, string> | undefined;
|
|
137
|
-
description?: string | undefined;
|
|
138
|
-
}>>>;
|
|
139
|
-
agentOverrides: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
140
|
-
packageSpec: z.ZodOptional<z.ZodString>;
|
|
141
|
-
}, "strip", z.ZodTypeAny, {
|
|
142
|
-
packageSpec?: string | undefined;
|
|
143
|
-
}, {
|
|
144
|
-
packageSpec?: string | undefined;
|
|
145
|
-
}>>>;
|
|
146
|
-
defaultAgent: z.ZodDefault<z.ZodString>;
|
|
147
|
-
defaultModels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
148
|
-
synopsisAgent: z.ZodOptional<z.ZodString>;
|
|
149
|
-
synopsisModel: z.ZodOptional<z.ZodString>;
|
|
150
|
-
compaction: z.ZodDefault<z.ZodObject<{
|
|
151
|
-
agent: z.ZodOptional<z.ZodString>;
|
|
152
|
-
model: z.ZodOptional<z.ZodString>;
|
|
153
|
-
tailK: z.ZodDefault<z.ZodNumber>;
|
|
154
|
-
maxIterations: z.ZodDefault<z.ZodNumber>;
|
|
155
|
-
contextFraction: z.ZodDefault<z.ZodNumber>;
|
|
156
|
-
hardCeilingFraction: z.ZodDefault<z.ZodNumber>;
|
|
157
|
-
absoluteFallback: z.ZodDefault<z.ZodNumber>;
|
|
158
|
-
idleBeforePromptMs: z.ZodDefault<z.ZodNumber>;
|
|
159
|
-
modelContextWindows: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
160
|
-
}, "strip", z.ZodTypeAny, {
|
|
161
|
-
tailK: number;
|
|
162
|
-
maxIterations: number;
|
|
163
|
-
contextFraction: number;
|
|
164
|
-
hardCeilingFraction: number;
|
|
165
|
-
absoluteFallback: number;
|
|
166
|
-
idleBeforePromptMs: number;
|
|
167
|
-
modelContextWindows: Record<string, number>;
|
|
168
|
-
agent?: string | undefined;
|
|
169
|
-
model?: string | undefined;
|
|
170
|
-
}, {
|
|
171
|
-
agent?: string | undefined;
|
|
172
|
-
model?: string | undefined;
|
|
173
|
-
tailK?: number | undefined;
|
|
174
|
-
maxIterations?: number | undefined;
|
|
175
|
-
contextFraction?: number | undefined;
|
|
176
|
-
hardCeilingFraction?: number | undefined;
|
|
177
|
-
absoluteFallback?: number | undefined;
|
|
178
|
-
idleBeforePromptMs?: number | undefined;
|
|
179
|
-
modelContextWindows?: Record<string, number> | undefined;
|
|
180
|
-
}>>;
|
|
181
|
-
defaultCwd: z.ZodDefault<z.ZodString>;
|
|
182
|
-
compressToolContent: z.ZodDefault<z.ZodBoolean>;
|
|
183
|
-
sessionListColdLimit: z.ZodDefault<z.ZodNumber>;
|
|
184
|
-
extensions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
185
|
-
command: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
186
|
-
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
187
|
-
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
188
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
189
|
-
}, "strip", z.ZodTypeAny, {
|
|
190
|
-
args: string[];
|
|
191
|
-
command: string[];
|
|
192
|
-
env: Record<string, string>;
|
|
193
|
-
enabled: boolean;
|
|
194
|
-
}, {
|
|
195
|
-
args?: string[] | undefined;
|
|
196
|
-
command?: string[] | undefined;
|
|
197
|
-
env?: Record<string, string> | undefined;
|
|
198
|
-
enabled?: boolean | undefined;
|
|
199
|
-
}>>>;
|
|
200
|
-
transformers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
201
|
-
command: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
202
|
-
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
203
|
-
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
204
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
205
|
-
}, "strip", z.ZodTypeAny, {
|
|
206
|
-
args: string[];
|
|
207
|
-
command: string[];
|
|
208
|
-
env: Record<string, string>;
|
|
209
|
-
enabled: boolean;
|
|
210
|
-
}, {
|
|
211
|
-
args?: string[] | undefined;
|
|
212
|
-
command?: string[] | undefined;
|
|
213
|
-
env?: Record<string, string> | undefined;
|
|
214
|
-
enabled?: boolean | undefined;
|
|
215
|
-
}>>>;
|
|
216
|
-
defaultTransformers: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
217
|
-
npmRegistry: z.ZodOptional<z.ZodString>;
|
|
218
|
-
tui: z.ZodDefault<z.ZodObject<{
|
|
219
|
-
repaintThrottleMs: z.ZodDefault<z.ZodNumber>;
|
|
220
|
-
maxScrollbackLines: z.ZodDefault<z.ZodNumber>;
|
|
221
|
-
mouse: z.ZodDefault<z.ZodBoolean>;
|
|
222
|
-
inAppSelection: z.ZodOptional<z.ZodBoolean>;
|
|
223
|
-
selectionClipboard: z.ZodDefault<z.ZodEnum<["primary", "clipboard", "both"]>>;
|
|
224
|
-
openFileCommand: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
225
|
-
logMaxBytes: z.ZodDefault<z.ZodNumber>;
|
|
226
|
-
cwdColumnMaxWidth: z.ZodDefault<z.ZodNumber>;
|
|
227
|
-
progressIndicator: z.ZodDefault<z.ZodBoolean>;
|
|
228
|
-
defaultEnterAction: z.ZodDefault<z.ZodEnum<["enqueue", "amend"]>>;
|
|
229
|
-
showThoughts: z.ZodDefault<z.ZodBoolean>;
|
|
230
|
-
ambiguousWidth: z.ZodDefault<z.ZodEnum<["auto", "narrow", "wide"]>>;
|
|
231
|
-
toolContent: z.ZodDefault<z.ZodEnum<["inline", "references"]>>;
|
|
232
|
-
diffContextLines: z.ZodDefault<z.ZodNumber>;
|
|
233
|
-
promptHistoryMaxEntries: z.ZodDefault<z.ZodNumber>;
|
|
234
|
-
maxToolItems: z.ZodDefault<z.ZodNumber>;
|
|
235
|
-
maxPlanItems: z.ZodDefault<z.ZodNumber>;
|
|
236
|
-
showFileUpdates: z.ZodDefault<z.ZodEnum<["none", "edit", "diff"]>>;
|
|
237
|
-
sessionColumns: z.ZodOptional<z.ZodArray<z.ZodEnum<["session", "upstream", "host", "state", "agent", "model", "age", "cwd", "title", "cost"]>, "atleastone">>;
|
|
238
|
-
hotkeys: z.ZodDefault<z.ZodRecord<z.ZodEnum<["enter", "alt-enter", "shift-enter", "ctrl-enter", "alt-b", "alt-f", "alt-n", "alt-tab", "shift-tab", "tab", "up", "down", "left", "right", "home", "end", "backspace", "alt-backspace", "delete", "ctrl-a", "ctrl-b", "ctrl-c", "ctrl-d", "ctrl-e", "ctrl-f", "ctrl-g", "ctrl-k", "ctrl-l", "ctrl-n", "ctrl-o", "ctrl-p", "ctrl-q", "ctrl-r", "ctrl-s", "ctrl-u", "ctrl-v", "ctrl-t", "ctrl-w", "ctrl-x", "ctrl-y", "ctrl-underscore", "alt-underscore", "escape"]>, z.ZodObject<{
|
|
239
|
-
command: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
240
|
-
}, "strip", z.ZodTypeAny, {
|
|
241
|
-
command: string | string[];
|
|
242
|
-
}, {
|
|
243
|
-
command: string | string[];
|
|
244
|
-
}>>>;
|
|
245
|
-
}, "strip", z.ZodTypeAny, {
|
|
246
|
-
repaintThrottleMs: number;
|
|
247
|
-
maxScrollbackLines: number;
|
|
248
|
-
mouse: boolean;
|
|
249
|
-
selectionClipboard: "primary" | "clipboard" | "both";
|
|
250
|
-
logMaxBytes: number;
|
|
251
|
-
cwdColumnMaxWidth: number;
|
|
252
|
-
progressIndicator: boolean;
|
|
253
|
-
defaultEnterAction: "enqueue" | "amend";
|
|
254
|
-
showThoughts: boolean;
|
|
255
|
-
ambiguousWidth: "auto" | "narrow" | "wide";
|
|
256
|
-
toolContent: "inline" | "references";
|
|
257
|
-
diffContextLines: number;
|
|
258
|
-
promptHistoryMaxEntries: number;
|
|
259
|
-
maxToolItems: number;
|
|
260
|
-
maxPlanItems: number;
|
|
261
|
-
showFileUpdates: "diff" | "none" | "edit";
|
|
262
|
-
hotkeys: Partial<Record<"enter" | "alt-enter" | "shift-enter" | "ctrl-enter" | "alt-b" | "alt-f" | "alt-n" | "alt-tab" | "shift-tab" | "tab" | "up" | "down" | "left" | "right" | "home" | "end" | "backspace" | "alt-backspace" | "delete" | "ctrl-a" | "ctrl-b" | "ctrl-c" | "ctrl-d" | "ctrl-e" | "ctrl-f" | "ctrl-g" | "ctrl-k" | "ctrl-l" | "ctrl-n" | "ctrl-o" | "ctrl-p" | "ctrl-q" | "ctrl-r" | "ctrl-s" | "ctrl-u" | "ctrl-v" | "ctrl-t" | "ctrl-w" | "ctrl-x" | "ctrl-y" | "ctrl-underscore" | "alt-underscore" | "escape", {
|
|
263
|
-
command: string | string[];
|
|
264
|
-
}>>;
|
|
265
|
-
inAppSelection?: boolean | undefined;
|
|
266
|
-
openFileCommand?: string | string[] | undefined;
|
|
267
|
-
sessionColumns?: ["agent" | "model" | "cwd" | "session" | "upstream" | "state" | "age" | "title" | "host" | "cost", ...("agent" | "model" | "cwd" | "session" | "upstream" | "state" | "age" | "title" | "host" | "cost")[]] | undefined;
|
|
268
|
-
}, {
|
|
269
|
-
repaintThrottleMs?: number | undefined;
|
|
270
|
-
maxScrollbackLines?: number | undefined;
|
|
271
|
-
mouse?: boolean | undefined;
|
|
272
|
-
inAppSelection?: boolean | undefined;
|
|
273
|
-
selectionClipboard?: "primary" | "clipboard" | "both" | undefined;
|
|
274
|
-
openFileCommand?: string | string[] | undefined;
|
|
275
|
-
logMaxBytes?: number | undefined;
|
|
276
|
-
cwdColumnMaxWidth?: number | undefined;
|
|
277
|
-
progressIndicator?: boolean | undefined;
|
|
278
|
-
defaultEnterAction?: "enqueue" | "amend" | undefined;
|
|
279
|
-
showThoughts?: boolean | undefined;
|
|
280
|
-
ambiguousWidth?: "auto" | "narrow" | "wide" | undefined;
|
|
281
|
-
toolContent?: "inline" | "references" | undefined;
|
|
282
|
-
diffContextLines?: number | undefined;
|
|
283
|
-
promptHistoryMaxEntries?: number | undefined;
|
|
284
|
-
maxToolItems?: number | undefined;
|
|
285
|
-
maxPlanItems?: number | undefined;
|
|
286
|
-
showFileUpdates?: "diff" | "none" | "edit" | undefined;
|
|
287
|
-
sessionColumns?: ["agent" | "model" | "cwd" | "session" | "upstream" | "state" | "age" | "title" | "host" | "cost", ...("agent" | "model" | "cwd" | "session" | "upstream" | "state" | "age" | "title" | "host" | "cost")[]] | undefined;
|
|
288
|
-
hotkeys?: Partial<Record<"enter" | "alt-enter" | "shift-enter" | "ctrl-enter" | "alt-b" | "alt-f" | "alt-n" | "alt-tab" | "shift-tab" | "tab" | "up" | "down" | "left" | "right" | "home" | "end" | "backspace" | "alt-backspace" | "delete" | "ctrl-a" | "ctrl-b" | "ctrl-c" | "ctrl-d" | "ctrl-e" | "ctrl-f" | "ctrl-g" | "ctrl-k" | "ctrl-l" | "ctrl-n" | "ctrl-o" | "ctrl-p" | "ctrl-q" | "ctrl-r" | "ctrl-s" | "ctrl-u" | "ctrl-v" | "ctrl-t" | "ctrl-w" | "ctrl-x" | "ctrl-y" | "ctrl-underscore" | "alt-underscore" | "escape", {
|
|
289
|
-
command: string | string[];
|
|
290
|
-
}>> | undefined;
|
|
291
|
-
}>>;
|
|
292
|
-
}, "strip", z.ZodTypeAny, {
|
|
293
|
-
tui: {
|
|
294
|
-
repaintThrottleMs: number;
|
|
295
|
-
maxScrollbackLines: number;
|
|
296
|
-
mouse: boolean;
|
|
297
|
-
selectionClipboard: "primary" | "clipboard" | "both";
|
|
298
|
-
logMaxBytes: number;
|
|
299
|
-
cwdColumnMaxWidth: number;
|
|
300
|
-
progressIndicator: boolean;
|
|
301
|
-
defaultEnterAction: "enqueue" | "amend";
|
|
302
|
-
showThoughts: boolean;
|
|
303
|
-
ambiguousWidth: "auto" | "narrow" | "wide";
|
|
304
|
-
toolContent: "inline" | "references";
|
|
305
|
-
diffContextLines: number;
|
|
306
|
-
promptHistoryMaxEntries: number;
|
|
307
|
-
maxToolItems: number;
|
|
308
|
-
maxPlanItems: number;
|
|
309
|
-
showFileUpdates: "diff" | "none" | "edit";
|
|
310
|
-
hotkeys: Partial<Record<"enter" | "alt-enter" | "shift-enter" | "ctrl-enter" | "alt-b" | "alt-f" | "alt-n" | "alt-tab" | "shift-tab" | "tab" | "up" | "down" | "left" | "right" | "home" | "end" | "backspace" | "alt-backspace" | "delete" | "ctrl-a" | "ctrl-b" | "ctrl-c" | "ctrl-d" | "ctrl-e" | "ctrl-f" | "ctrl-g" | "ctrl-k" | "ctrl-l" | "ctrl-n" | "ctrl-o" | "ctrl-p" | "ctrl-q" | "ctrl-r" | "ctrl-s" | "ctrl-u" | "ctrl-v" | "ctrl-t" | "ctrl-w" | "ctrl-x" | "ctrl-y" | "ctrl-underscore" | "alt-underscore" | "escape", {
|
|
311
|
-
command: string | string[];
|
|
312
|
-
}>>;
|
|
313
|
-
inAppSelection?: boolean | undefined;
|
|
314
|
-
openFileCommand?: string | string[] | undefined;
|
|
315
|
-
sessionColumns?: ["agent" | "model" | "cwd" | "session" | "upstream" | "state" | "age" | "title" | "host" | "cost", ...("agent" | "model" | "cwd" | "session" | "upstream" | "state" | "age" | "title" | "host" | "cost")[]] | undefined;
|
|
316
|
-
};
|
|
317
|
-
daemon: {
|
|
318
|
-
host: string;
|
|
319
|
-
port: number;
|
|
320
|
-
logLevel: "info" | "debug" | "warn" | "error";
|
|
321
|
-
sessionIdleTimeoutSeconds: number;
|
|
322
|
-
sessionHistoryMaxEntries: number;
|
|
323
|
-
sessionHistoryArchiveMaxBytes: number;
|
|
324
|
-
sessionHistoryArchiveTiers: number;
|
|
325
|
-
agentStderrTailBytes: number;
|
|
326
|
-
agentSyncIntervalMinutes: number;
|
|
327
|
-
sessionGcIntervalMinutes: number;
|
|
328
|
-
sessionGcMaxAgeDays: number;
|
|
329
|
-
tls?: {
|
|
330
|
-
cert: string;
|
|
331
|
-
key: string;
|
|
332
|
-
} | undefined;
|
|
333
|
-
publicHost?: string | undefined;
|
|
334
|
-
};
|
|
335
|
-
extensions: Record<string, {
|
|
336
|
-
args: string[];
|
|
337
|
-
command: string[];
|
|
338
|
-
env: Record<string, string>;
|
|
339
|
-
enabled: boolean;
|
|
340
|
-
}>;
|
|
341
|
-
transformers: Record<string, {
|
|
342
|
-
args: string[];
|
|
343
|
-
command: string[];
|
|
344
|
-
env: Record<string, string>;
|
|
345
|
-
enabled: boolean;
|
|
346
|
-
}>;
|
|
347
|
-
agents: Record<string, {
|
|
348
|
-
name?: string | undefined;
|
|
349
|
-
args?: string[] | undefined;
|
|
350
|
-
command?: string | undefined;
|
|
351
|
-
env?: Record<string, string> | undefined;
|
|
352
|
-
description?: string | undefined;
|
|
353
|
-
}>;
|
|
354
|
-
registry: {
|
|
355
|
-
url: string;
|
|
356
|
-
ttlHours: number;
|
|
357
|
-
pinned: boolean;
|
|
358
|
-
};
|
|
359
|
-
agentOverrides: Record<string, {
|
|
360
|
-
packageSpec?: string | undefined;
|
|
361
|
-
}>;
|
|
362
|
-
defaultAgent: string;
|
|
363
|
-
defaultModels: Record<string, string>;
|
|
364
|
-
compaction: {
|
|
365
|
-
tailK: number;
|
|
366
|
-
maxIterations: number;
|
|
367
|
-
contextFraction: number;
|
|
368
|
-
hardCeilingFraction: number;
|
|
369
|
-
absoluteFallback: number;
|
|
370
|
-
idleBeforePromptMs: number;
|
|
371
|
-
modelContextWindows: Record<string, number>;
|
|
372
|
-
agent?: string | undefined;
|
|
373
|
-
model?: string | undefined;
|
|
374
|
-
};
|
|
375
|
-
defaultCwd: string;
|
|
376
|
-
compressToolContent: boolean;
|
|
377
|
-
sessionListColdLimit: number;
|
|
378
|
-
defaultTransformers: string[];
|
|
379
|
-
synopsisAgent?: string | undefined;
|
|
380
|
-
synopsisModel?: string | undefined;
|
|
381
|
-
npmRegistry?: string | undefined;
|
|
382
|
-
}, {
|
|
383
|
-
tui?: {
|
|
384
|
-
repaintThrottleMs?: number | undefined;
|
|
385
|
-
maxScrollbackLines?: number | undefined;
|
|
386
|
-
mouse?: boolean | undefined;
|
|
387
|
-
inAppSelection?: boolean | undefined;
|
|
388
|
-
selectionClipboard?: "primary" | "clipboard" | "both" | undefined;
|
|
389
|
-
openFileCommand?: string | string[] | undefined;
|
|
390
|
-
logMaxBytes?: number | undefined;
|
|
391
|
-
cwdColumnMaxWidth?: number | undefined;
|
|
392
|
-
progressIndicator?: boolean | undefined;
|
|
393
|
-
defaultEnterAction?: "enqueue" | "amend" | undefined;
|
|
394
|
-
showThoughts?: boolean | undefined;
|
|
395
|
-
ambiguousWidth?: "auto" | "narrow" | "wide" | undefined;
|
|
396
|
-
toolContent?: "inline" | "references" | undefined;
|
|
397
|
-
diffContextLines?: number | undefined;
|
|
398
|
-
promptHistoryMaxEntries?: number | undefined;
|
|
399
|
-
maxToolItems?: number | undefined;
|
|
400
|
-
maxPlanItems?: number | undefined;
|
|
401
|
-
showFileUpdates?: "diff" | "none" | "edit" | undefined;
|
|
402
|
-
sessionColumns?: ["agent" | "model" | "cwd" | "session" | "upstream" | "state" | "age" | "title" | "host" | "cost", ...("agent" | "model" | "cwd" | "session" | "upstream" | "state" | "age" | "title" | "host" | "cost")[]] | undefined;
|
|
403
|
-
hotkeys?: Partial<Record<"enter" | "alt-enter" | "shift-enter" | "ctrl-enter" | "alt-b" | "alt-f" | "alt-n" | "alt-tab" | "shift-tab" | "tab" | "up" | "down" | "left" | "right" | "home" | "end" | "backspace" | "alt-backspace" | "delete" | "ctrl-a" | "ctrl-b" | "ctrl-c" | "ctrl-d" | "ctrl-e" | "ctrl-f" | "ctrl-g" | "ctrl-k" | "ctrl-l" | "ctrl-n" | "ctrl-o" | "ctrl-p" | "ctrl-q" | "ctrl-r" | "ctrl-s" | "ctrl-u" | "ctrl-v" | "ctrl-t" | "ctrl-w" | "ctrl-x" | "ctrl-y" | "ctrl-underscore" | "alt-underscore" | "escape", {
|
|
404
|
-
command: string | string[];
|
|
405
|
-
}>> | undefined;
|
|
406
|
-
} | undefined;
|
|
407
|
-
daemon?: {
|
|
408
|
-
host?: string | undefined;
|
|
409
|
-
port?: number | undefined;
|
|
410
|
-
logLevel?: "info" | "debug" | "warn" | "error" | undefined;
|
|
411
|
-
tls?: {
|
|
412
|
-
cert: string;
|
|
413
|
-
key: string;
|
|
414
|
-
} | undefined;
|
|
415
|
-
sessionIdleTimeoutSeconds?: number | undefined;
|
|
416
|
-
sessionHistoryMaxEntries?: number | undefined;
|
|
417
|
-
sessionHistoryArchiveMaxBytes?: number | undefined;
|
|
418
|
-
sessionHistoryArchiveTiers?: number | undefined;
|
|
419
|
-
agentStderrTailBytes?: number | undefined;
|
|
420
|
-
publicHost?: string | undefined;
|
|
421
|
-
agentSyncIntervalMinutes?: number | undefined;
|
|
422
|
-
sessionGcIntervalMinutes?: number | undefined;
|
|
423
|
-
sessionGcMaxAgeDays?: number | undefined;
|
|
424
|
-
} | undefined;
|
|
425
|
-
extensions?: Record<string, {
|
|
426
|
-
args?: string[] | undefined;
|
|
427
|
-
command?: string[] | undefined;
|
|
428
|
-
env?: Record<string, string> | undefined;
|
|
429
|
-
enabled?: boolean | undefined;
|
|
430
|
-
}> | undefined;
|
|
431
|
-
transformers?: Record<string, {
|
|
432
|
-
args?: string[] | undefined;
|
|
433
|
-
command?: string[] | undefined;
|
|
434
|
-
env?: Record<string, string> | undefined;
|
|
435
|
-
enabled?: boolean | undefined;
|
|
436
|
-
}> | undefined;
|
|
437
|
-
agents?: Record<string, {
|
|
438
|
-
name?: string | undefined;
|
|
439
|
-
args?: string[] | undefined;
|
|
440
|
-
command?: string | undefined;
|
|
441
|
-
env?: Record<string, string> | undefined;
|
|
442
|
-
description?: string | undefined;
|
|
443
|
-
}> | undefined;
|
|
444
|
-
registry?: {
|
|
445
|
-
url?: string | undefined;
|
|
446
|
-
ttlHours?: number | undefined;
|
|
447
|
-
pinned?: boolean | undefined;
|
|
448
|
-
} | undefined;
|
|
449
|
-
agentOverrides?: Record<string, {
|
|
450
|
-
packageSpec?: string | undefined;
|
|
451
|
-
}> | undefined;
|
|
452
|
-
defaultAgent?: string | undefined;
|
|
453
|
-
defaultModels?: Record<string, string> | undefined;
|
|
454
|
-
synopsisAgent?: string | undefined;
|
|
455
|
-
synopsisModel?: string | undefined;
|
|
456
|
-
compaction?: {
|
|
457
|
-
agent?: string | undefined;
|
|
458
|
-
model?: string | undefined;
|
|
459
|
-
tailK?: number | undefined;
|
|
460
|
-
maxIterations?: number | undefined;
|
|
461
|
-
contextFraction?: number | undefined;
|
|
462
|
-
hardCeilingFraction?: number | undefined;
|
|
463
|
-
absoluteFallback?: number | undefined;
|
|
464
|
-
idleBeforePromptMs?: number | undefined;
|
|
465
|
-
modelContextWindows?: Record<string, number> | undefined;
|
|
466
|
-
} | undefined;
|
|
467
|
-
defaultCwd?: string | undefined;
|
|
468
|
-
compressToolContent?: boolean | undefined;
|
|
469
|
-
sessionListColdLimit?: number | undefined;
|
|
470
|
-
defaultTransformers?: string[] | undefined;
|
|
471
|
-
npmRegistry?: string | undefined;
|
|
472
|
-
}>;
|
|
473
|
-
type HydraConfig = z.infer<typeof HydraConfig>;
|
|
474
|
-
declare function loadConfig(): Promise<HydraConfig>;
|
|
475
|
-
declare function writeConfig(config: HydraConfig): Promise<void>;
|
|
476
|
-
declare function defaultConfig(): HydraConfig;
|
|
477
|
-
|
|
478
|
-
type BinaryInstallProgress = {
|
|
479
|
-
phase: "download_start";
|
|
480
|
-
agentId: string;
|
|
481
|
-
version: string;
|
|
482
|
-
totalBytes: number;
|
|
483
|
-
} | {
|
|
484
|
-
phase: "download_progress";
|
|
485
|
-
agentId: string;
|
|
486
|
-
version: string;
|
|
487
|
-
receivedBytes: number;
|
|
488
|
-
totalBytes: number;
|
|
489
|
-
} | {
|
|
490
|
-
phase: "download_done";
|
|
491
|
-
agentId: string;
|
|
492
|
-
version: string;
|
|
493
|
-
receivedBytes: number;
|
|
494
|
-
totalBytes: number;
|
|
495
|
-
} | {
|
|
496
|
-
phase: "extract";
|
|
497
|
-
agentId: string;
|
|
498
|
-
version: string;
|
|
499
|
-
} | {
|
|
500
|
-
phase: "installed";
|
|
501
|
-
agentId: string;
|
|
502
|
-
version: string;
|
|
503
|
-
};
|
|
504
|
-
|
|
505
|
-
type NpmInstallProgress = {
|
|
506
|
-
phase: "install_start";
|
|
507
|
-
agentId: string;
|
|
508
|
-
version: string;
|
|
509
|
-
packageSpec: string;
|
|
510
|
-
} | {
|
|
511
|
-
phase: "installed";
|
|
512
|
-
agentId: string;
|
|
513
|
-
version: string;
|
|
514
|
-
};
|
|
515
|
-
|
|
516
|
-
type AgentInstallProgress = ({
|
|
517
|
-
source: "binary";
|
|
518
|
-
} & BinaryInstallProgress) | ({
|
|
519
|
-
source: "npm";
|
|
520
|
-
} & NpmInstallProgress);
|
|
521
|
-
type AgentInstallProgressCallback = (event: AgentInstallProgress) => void;
|
|
522
|
-
declare const RegistryAgent: z.ZodObject<{
|
|
523
|
-
id: z.ZodString;
|
|
524
|
-
name: z.ZodString;
|
|
525
|
-
version: z.ZodOptional<z.ZodString>;
|
|
526
|
-
description: z.ZodOptional<z.ZodString>;
|
|
527
|
-
authors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
528
|
-
license: z.ZodOptional<z.ZodString>;
|
|
529
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
530
|
-
repository: z.ZodOptional<z.ZodString>;
|
|
531
|
-
website: z.ZodOptional<z.ZodString>;
|
|
532
|
-
distribution: z.ZodObject<{
|
|
533
|
-
npx: z.ZodOptional<z.ZodObject<{
|
|
534
|
-
package: z.ZodString;
|
|
535
|
-
bin: z.ZodOptional<z.ZodString>;
|
|
536
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
537
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
538
|
-
}, "strip", z.ZodTypeAny, {
|
|
539
|
-
package: string;
|
|
540
|
-
args?: string[] | undefined;
|
|
541
|
-
env?: Record<string, string> | undefined;
|
|
542
|
-
bin?: string | undefined;
|
|
543
|
-
}, {
|
|
544
|
-
package: string;
|
|
545
|
-
args?: string[] | undefined;
|
|
546
|
-
env?: Record<string, string> | undefined;
|
|
547
|
-
bin?: string | undefined;
|
|
548
|
-
}>>;
|
|
549
|
-
binary: z.ZodOptional<z.ZodObject<{
|
|
550
|
-
"darwin-aarch64": z.ZodOptional<z.ZodObject<{
|
|
551
|
-
archive: z.ZodOptional<z.ZodString>;
|
|
552
|
-
cmd: z.ZodOptional<z.ZodString>;
|
|
553
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
554
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
555
|
-
}, "strip", z.ZodTypeAny, {
|
|
556
|
-
args?: string[] | undefined;
|
|
557
|
-
env?: Record<string, string> | undefined;
|
|
558
|
-
archive?: string | undefined;
|
|
559
|
-
cmd?: string | undefined;
|
|
560
|
-
}, {
|
|
561
|
-
args?: string[] | undefined;
|
|
562
|
-
env?: Record<string, string> | undefined;
|
|
563
|
-
archive?: string | undefined;
|
|
564
|
-
cmd?: string | undefined;
|
|
565
|
-
}>>;
|
|
566
|
-
"darwin-x86_64": z.ZodOptional<z.ZodObject<{
|
|
567
|
-
archive: z.ZodOptional<z.ZodString>;
|
|
568
|
-
cmd: z.ZodOptional<z.ZodString>;
|
|
569
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
570
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
571
|
-
}, "strip", z.ZodTypeAny, {
|
|
572
|
-
args?: string[] | undefined;
|
|
573
|
-
env?: Record<string, string> | undefined;
|
|
574
|
-
archive?: string | undefined;
|
|
575
|
-
cmd?: string | undefined;
|
|
576
|
-
}, {
|
|
577
|
-
args?: string[] | undefined;
|
|
578
|
-
env?: Record<string, string> | undefined;
|
|
579
|
-
archive?: string | undefined;
|
|
580
|
-
cmd?: string | undefined;
|
|
581
|
-
}>>;
|
|
582
|
-
"linux-aarch64": z.ZodOptional<z.ZodObject<{
|
|
583
|
-
archive: z.ZodOptional<z.ZodString>;
|
|
584
|
-
cmd: z.ZodOptional<z.ZodString>;
|
|
585
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
586
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
587
|
-
}, "strip", z.ZodTypeAny, {
|
|
588
|
-
args?: string[] | undefined;
|
|
589
|
-
env?: Record<string, string> | undefined;
|
|
590
|
-
archive?: string | undefined;
|
|
591
|
-
cmd?: string | undefined;
|
|
592
|
-
}, {
|
|
593
|
-
args?: string[] | undefined;
|
|
594
|
-
env?: Record<string, string> | undefined;
|
|
595
|
-
archive?: string | undefined;
|
|
596
|
-
cmd?: string | undefined;
|
|
597
|
-
}>>;
|
|
598
|
-
"linux-x86_64": z.ZodOptional<z.ZodObject<{
|
|
599
|
-
archive: z.ZodOptional<z.ZodString>;
|
|
600
|
-
cmd: z.ZodOptional<z.ZodString>;
|
|
601
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
602
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
603
|
-
}, "strip", z.ZodTypeAny, {
|
|
604
|
-
args?: string[] | undefined;
|
|
605
|
-
env?: Record<string, string> | undefined;
|
|
606
|
-
archive?: string | undefined;
|
|
607
|
-
cmd?: string | undefined;
|
|
608
|
-
}, {
|
|
609
|
-
args?: string[] | undefined;
|
|
610
|
-
env?: Record<string, string> | undefined;
|
|
611
|
-
archive?: string | undefined;
|
|
612
|
-
cmd?: string | undefined;
|
|
613
|
-
}>>;
|
|
614
|
-
"windows-x86_64": z.ZodOptional<z.ZodObject<{
|
|
615
|
-
archive: z.ZodOptional<z.ZodString>;
|
|
616
|
-
cmd: z.ZodOptional<z.ZodString>;
|
|
617
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
618
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
619
|
-
}, "strip", z.ZodTypeAny, {
|
|
620
|
-
args?: string[] | undefined;
|
|
621
|
-
env?: Record<string, string> | undefined;
|
|
622
|
-
archive?: string | undefined;
|
|
623
|
-
cmd?: string | undefined;
|
|
624
|
-
}, {
|
|
625
|
-
args?: string[] | undefined;
|
|
626
|
-
env?: Record<string, string> | undefined;
|
|
627
|
-
archive?: string | undefined;
|
|
628
|
-
cmd?: string | undefined;
|
|
629
|
-
}>>;
|
|
630
|
-
"windows-aarch64": z.ZodOptional<z.ZodObject<{
|
|
631
|
-
archive: z.ZodOptional<z.ZodString>;
|
|
632
|
-
cmd: z.ZodOptional<z.ZodString>;
|
|
633
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
634
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
635
|
-
}, "strip", z.ZodTypeAny, {
|
|
636
|
-
args?: string[] | undefined;
|
|
637
|
-
env?: Record<string, string> | undefined;
|
|
638
|
-
archive?: string | undefined;
|
|
639
|
-
cmd?: string | undefined;
|
|
640
|
-
}, {
|
|
641
|
-
args?: string[] | undefined;
|
|
642
|
-
env?: Record<string, string> | undefined;
|
|
643
|
-
archive?: string | undefined;
|
|
644
|
-
cmd?: string | undefined;
|
|
645
|
-
}>>;
|
|
646
|
-
}, "strip", z.ZodTypeAny, {
|
|
647
|
-
"darwin-aarch64"?: {
|
|
648
|
-
args?: string[] | undefined;
|
|
649
|
-
env?: Record<string, string> | undefined;
|
|
650
|
-
archive?: string | undefined;
|
|
651
|
-
cmd?: string | undefined;
|
|
652
|
-
} | undefined;
|
|
653
|
-
"darwin-x86_64"?: {
|
|
654
|
-
args?: string[] | undefined;
|
|
655
|
-
env?: Record<string, string> | undefined;
|
|
656
|
-
archive?: string | undefined;
|
|
657
|
-
cmd?: string | undefined;
|
|
658
|
-
} | undefined;
|
|
659
|
-
"linux-aarch64"?: {
|
|
660
|
-
args?: string[] | undefined;
|
|
661
|
-
env?: Record<string, string> | undefined;
|
|
662
|
-
archive?: string | undefined;
|
|
663
|
-
cmd?: string | undefined;
|
|
664
|
-
} | undefined;
|
|
665
|
-
"linux-x86_64"?: {
|
|
666
|
-
args?: string[] | undefined;
|
|
667
|
-
env?: Record<string, string> | undefined;
|
|
668
|
-
archive?: string | undefined;
|
|
669
|
-
cmd?: string | undefined;
|
|
670
|
-
} | undefined;
|
|
671
|
-
"windows-aarch64"?: {
|
|
672
|
-
args?: string[] | undefined;
|
|
673
|
-
env?: Record<string, string> | undefined;
|
|
674
|
-
archive?: string | undefined;
|
|
675
|
-
cmd?: string | undefined;
|
|
676
|
-
} | undefined;
|
|
677
|
-
"windows-x86_64"?: {
|
|
678
|
-
args?: string[] | undefined;
|
|
679
|
-
env?: Record<string, string> | undefined;
|
|
680
|
-
archive?: string | undefined;
|
|
681
|
-
cmd?: string | undefined;
|
|
682
|
-
} | undefined;
|
|
683
|
-
}, {
|
|
684
|
-
"darwin-aarch64"?: {
|
|
685
|
-
args?: string[] | undefined;
|
|
686
|
-
env?: Record<string, string> | undefined;
|
|
687
|
-
archive?: string | undefined;
|
|
688
|
-
cmd?: string | undefined;
|
|
689
|
-
} | undefined;
|
|
690
|
-
"darwin-x86_64"?: {
|
|
691
|
-
args?: string[] | undefined;
|
|
692
|
-
env?: Record<string, string> | undefined;
|
|
693
|
-
archive?: string | undefined;
|
|
694
|
-
cmd?: string | undefined;
|
|
695
|
-
} | undefined;
|
|
696
|
-
"linux-aarch64"?: {
|
|
697
|
-
args?: string[] | undefined;
|
|
698
|
-
env?: Record<string, string> | undefined;
|
|
699
|
-
archive?: string | undefined;
|
|
700
|
-
cmd?: string | undefined;
|
|
701
|
-
} | undefined;
|
|
702
|
-
"linux-x86_64"?: {
|
|
703
|
-
args?: string[] | undefined;
|
|
704
|
-
env?: Record<string, string> | undefined;
|
|
705
|
-
archive?: string | undefined;
|
|
706
|
-
cmd?: string | undefined;
|
|
707
|
-
} | undefined;
|
|
708
|
-
"windows-aarch64"?: {
|
|
709
|
-
args?: string[] | undefined;
|
|
710
|
-
env?: Record<string, string> | undefined;
|
|
711
|
-
archive?: string | undefined;
|
|
712
|
-
cmd?: string | undefined;
|
|
713
|
-
} | undefined;
|
|
714
|
-
"windows-x86_64"?: {
|
|
715
|
-
args?: string[] | undefined;
|
|
716
|
-
env?: Record<string, string> | undefined;
|
|
717
|
-
archive?: string | undefined;
|
|
718
|
-
cmd?: string | undefined;
|
|
719
|
-
} | undefined;
|
|
720
|
-
}>>;
|
|
721
|
-
uvx: z.ZodOptional<z.ZodObject<{
|
|
722
|
-
package: z.ZodString;
|
|
723
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
724
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
725
|
-
}, "strip", z.ZodTypeAny, {
|
|
726
|
-
package: string;
|
|
727
|
-
args?: string[] | undefined;
|
|
728
|
-
env?: Record<string, string> | undefined;
|
|
729
|
-
}, {
|
|
730
|
-
package: string;
|
|
731
|
-
args?: string[] | undefined;
|
|
732
|
-
env?: Record<string, string> | undefined;
|
|
733
|
-
}>>;
|
|
734
|
-
exec: z.ZodOptional<z.ZodObject<{
|
|
735
|
-
command: z.ZodString;
|
|
736
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
737
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
738
|
-
}, "strip", z.ZodTypeAny, {
|
|
739
|
-
command: string;
|
|
740
|
-
args?: string[] | undefined;
|
|
741
|
-
env?: Record<string, string> | undefined;
|
|
742
|
-
}, {
|
|
743
|
-
command: string;
|
|
744
|
-
args?: string[] | undefined;
|
|
745
|
-
env?: Record<string, string> | undefined;
|
|
746
|
-
}>>;
|
|
747
|
-
}, "strip", z.ZodTypeAny, {
|
|
748
|
-
binary?: {
|
|
749
|
-
"darwin-aarch64"?: {
|
|
750
|
-
args?: string[] | undefined;
|
|
751
|
-
env?: Record<string, string> | undefined;
|
|
752
|
-
archive?: string | undefined;
|
|
753
|
-
cmd?: string | undefined;
|
|
754
|
-
} | undefined;
|
|
755
|
-
"darwin-x86_64"?: {
|
|
756
|
-
args?: string[] | undefined;
|
|
757
|
-
env?: Record<string, string> | undefined;
|
|
758
|
-
archive?: string | undefined;
|
|
759
|
-
cmd?: string | undefined;
|
|
760
|
-
} | undefined;
|
|
761
|
-
"linux-aarch64"?: {
|
|
762
|
-
args?: string[] | undefined;
|
|
763
|
-
env?: Record<string, string> | undefined;
|
|
764
|
-
archive?: string | undefined;
|
|
765
|
-
cmd?: string | undefined;
|
|
766
|
-
} | undefined;
|
|
767
|
-
"linux-x86_64"?: {
|
|
768
|
-
args?: string[] | undefined;
|
|
769
|
-
env?: Record<string, string> | undefined;
|
|
770
|
-
archive?: string | undefined;
|
|
771
|
-
cmd?: string | undefined;
|
|
772
|
-
} | undefined;
|
|
773
|
-
"windows-aarch64"?: {
|
|
774
|
-
args?: string[] | undefined;
|
|
775
|
-
env?: Record<string, string> | undefined;
|
|
776
|
-
archive?: string | undefined;
|
|
777
|
-
cmd?: string | undefined;
|
|
778
|
-
} | undefined;
|
|
779
|
-
"windows-x86_64"?: {
|
|
780
|
-
args?: string[] | undefined;
|
|
781
|
-
env?: Record<string, string> | undefined;
|
|
782
|
-
archive?: string | undefined;
|
|
783
|
-
cmd?: string | undefined;
|
|
784
|
-
} | undefined;
|
|
785
|
-
} | undefined;
|
|
786
|
-
npx?: {
|
|
787
|
-
package: string;
|
|
788
|
-
args?: string[] | undefined;
|
|
789
|
-
env?: Record<string, string> | undefined;
|
|
790
|
-
bin?: string | undefined;
|
|
791
|
-
} | undefined;
|
|
792
|
-
uvx?: {
|
|
793
|
-
package: string;
|
|
794
|
-
args?: string[] | undefined;
|
|
795
|
-
env?: Record<string, string> | undefined;
|
|
796
|
-
} | undefined;
|
|
797
|
-
exec?: {
|
|
798
|
-
command: string;
|
|
799
|
-
args?: string[] | undefined;
|
|
800
|
-
env?: Record<string, string> | undefined;
|
|
801
|
-
} | undefined;
|
|
802
|
-
}, {
|
|
803
|
-
binary?: {
|
|
804
|
-
"darwin-aarch64"?: {
|
|
805
|
-
args?: string[] | undefined;
|
|
806
|
-
env?: Record<string, string> | undefined;
|
|
807
|
-
archive?: string | undefined;
|
|
808
|
-
cmd?: string | undefined;
|
|
809
|
-
} | undefined;
|
|
810
|
-
"darwin-x86_64"?: {
|
|
811
|
-
args?: string[] | undefined;
|
|
812
|
-
env?: Record<string, string> | undefined;
|
|
813
|
-
archive?: string | undefined;
|
|
814
|
-
cmd?: string | undefined;
|
|
815
|
-
} | undefined;
|
|
816
|
-
"linux-aarch64"?: {
|
|
817
|
-
args?: string[] | undefined;
|
|
818
|
-
env?: Record<string, string> | undefined;
|
|
819
|
-
archive?: string | undefined;
|
|
820
|
-
cmd?: string | undefined;
|
|
821
|
-
} | undefined;
|
|
822
|
-
"linux-x86_64"?: {
|
|
823
|
-
args?: string[] | undefined;
|
|
824
|
-
env?: Record<string, string> | undefined;
|
|
825
|
-
archive?: string | undefined;
|
|
826
|
-
cmd?: string | undefined;
|
|
827
|
-
} | undefined;
|
|
828
|
-
"windows-aarch64"?: {
|
|
829
|
-
args?: string[] | undefined;
|
|
830
|
-
env?: Record<string, string> | undefined;
|
|
831
|
-
archive?: string | undefined;
|
|
832
|
-
cmd?: string | undefined;
|
|
833
|
-
} | undefined;
|
|
834
|
-
"windows-x86_64"?: {
|
|
835
|
-
args?: string[] | undefined;
|
|
836
|
-
env?: Record<string, string> | undefined;
|
|
837
|
-
archive?: string | undefined;
|
|
838
|
-
cmd?: string | undefined;
|
|
839
|
-
} | undefined;
|
|
840
|
-
} | undefined;
|
|
841
|
-
npx?: {
|
|
842
|
-
package: string;
|
|
843
|
-
args?: string[] | undefined;
|
|
844
|
-
env?: Record<string, string> | undefined;
|
|
845
|
-
bin?: string | undefined;
|
|
846
|
-
} | undefined;
|
|
847
|
-
uvx?: {
|
|
848
|
-
package: string;
|
|
849
|
-
args?: string[] | undefined;
|
|
850
|
-
env?: Record<string, string> | undefined;
|
|
851
|
-
} | undefined;
|
|
852
|
-
exec?: {
|
|
853
|
-
command: string;
|
|
854
|
-
args?: string[] | undefined;
|
|
855
|
-
env?: Record<string, string> | undefined;
|
|
856
|
-
} | undefined;
|
|
857
|
-
}>;
|
|
858
|
-
onboarding: z.ZodOptional<z.ZodObject<{
|
|
859
|
-
command: z.ZodOptional<z.ZodString>;
|
|
860
|
-
url: z.ZodOptional<z.ZodString>;
|
|
861
|
-
description: z.ZodOptional<z.ZodString>;
|
|
862
|
-
}, "strip", z.ZodTypeAny, {
|
|
863
|
-
command?: string | undefined;
|
|
864
|
-
url?: string | undefined;
|
|
865
|
-
description?: string | undefined;
|
|
866
|
-
}, {
|
|
867
|
-
command?: string | undefined;
|
|
868
|
-
url?: string | undefined;
|
|
869
|
-
description?: string | undefined;
|
|
870
|
-
}>>;
|
|
871
|
-
requiredEnv: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
872
|
-
}, "strip", z.ZodTypeAny, {
|
|
873
|
-
name: string;
|
|
874
|
-
id: string;
|
|
875
|
-
distribution: {
|
|
876
|
-
binary?: {
|
|
877
|
-
"darwin-aarch64"?: {
|
|
878
|
-
args?: string[] | undefined;
|
|
879
|
-
env?: Record<string, string> | undefined;
|
|
880
|
-
archive?: string | undefined;
|
|
881
|
-
cmd?: string | undefined;
|
|
882
|
-
} | undefined;
|
|
883
|
-
"darwin-x86_64"?: {
|
|
884
|
-
args?: string[] | undefined;
|
|
885
|
-
env?: Record<string, string> | undefined;
|
|
886
|
-
archive?: string | undefined;
|
|
887
|
-
cmd?: string | undefined;
|
|
888
|
-
} | undefined;
|
|
889
|
-
"linux-aarch64"?: {
|
|
890
|
-
args?: string[] | undefined;
|
|
891
|
-
env?: Record<string, string> | undefined;
|
|
892
|
-
archive?: string | undefined;
|
|
893
|
-
cmd?: string | undefined;
|
|
894
|
-
} | undefined;
|
|
895
|
-
"linux-x86_64"?: {
|
|
896
|
-
args?: string[] | undefined;
|
|
897
|
-
env?: Record<string, string> | undefined;
|
|
898
|
-
archive?: string | undefined;
|
|
899
|
-
cmd?: string | undefined;
|
|
900
|
-
} | undefined;
|
|
901
|
-
"windows-aarch64"?: {
|
|
902
|
-
args?: string[] | undefined;
|
|
903
|
-
env?: Record<string, string> | undefined;
|
|
904
|
-
archive?: string | undefined;
|
|
905
|
-
cmd?: string | undefined;
|
|
906
|
-
} | undefined;
|
|
907
|
-
"windows-x86_64"?: {
|
|
908
|
-
args?: string[] | undefined;
|
|
909
|
-
env?: Record<string, string> | undefined;
|
|
910
|
-
archive?: string | undefined;
|
|
911
|
-
cmd?: string | undefined;
|
|
912
|
-
} | undefined;
|
|
913
|
-
} | undefined;
|
|
914
|
-
npx?: {
|
|
915
|
-
package: string;
|
|
916
|
-
args?: string[] | undefined;
|
|
917
|
-
env?: Record<string, string> | undefined;
|
|
918
|
-
bin?: string | undefined;
|
|
919
|
-
} | undefined;
|
|
920
|
-
uvx?: {
|
|
921
|
-
package: string;
|
|
922
|
-
args?: string[] | undefined;
|
|
923
|
-
env?: Record<string, string> | undefined;
|
|
924
|
-
} | undefined;
|
|
925
|
-
exec?: {
|
|
926
|
-
command: string;
|
|
927
|
-
args?: string[] | undefined;
|
|
928
|
-
env?: Record<string, string> | undefined;
|
|
929
|
-
} | undefined;
|
|
930
|
-
};
|
|
931
|
-
version?: string | undefined;
|
|
932
|
-
description?: string | undefined;
|
|
933
|
-
authors?: string[] | undefined;
|
|
934
|
-
license?: string | undefined;
|
|
935
|
-
icon?: string | undefined;
|
|
936
|
-
repository?: string | undefined;
|
|
937
|
-
website?: string | undefined;
|
|
938
|
-
onboarding?: {
|
|
939
|
-
command?: string | undefined;
|
|
940
|
-
url?: string | undefined;
|
|
941
|
-
description?: string | undefined;
|
|
942
|
-
} | undefined;
|
|
943
|
-
requiredEnv?: string[] | undefined;
|
|
944
|
-
}, {
|
|
945
|
-
name: string;
|
|
946
|
-
id: string;
|
|
947
|
-
distribution: {
|
|
948
|
-
binary?: {
|
|
949
|
-
"darwin-aarch64"?: {
|
|
950
|
-
args?: string[] | undefined;
|
|
951
|
-
env?: Record<string, string> | undefined;
|
|
952
|
-
archive?: string | undefined;
|
|
953
|
-
cmd?: string | undefined;
|
|
954
|
-
} | undefined;
|
|
955
|
-
"darwin-x86_64"?: {
|
|
956
|
-
args?: string[] | undefined;
|
|
957
|
-
env?: Record<string, string> | undefined;
|
|
958
|
-
archive?: string | undefined;
|
|
959
|
-
cmd?: string | undefined;
|
|
960
|
-
} | undefined;
|
|
961
|
-
"linux-aarch64"?: {
|
|
962
|
-
args?: string[] | undefined;
|
|
963
|
-
env?: Record<string, string> | undefined;
|
|
964
|
-
archive?: string | undefined;
|
|
965
|
-
cmd?: string | undefined;
|
|
966
|
-
} | undefined;
|
|
967
|
-
"linux-x86_64"?: {
|
|
968
|
-
args?: string[] | undefined;
|
|
969
|
-
env?: Record<string, string> | undefined;
|
|
970
|
-
archive?: string | undefined;
|
|
971
|
-
cmd?: string | undefined;
|
|
972
|
-
} | undefined;
|
|
973
|
-
"windows-aarch64"?: {
|
|
974
|
-
args?: string[] | undefined;
|
|
975
|
-
env?: Record<string, string> | undefined;
|
|
976
|
-
archive?: string | undefined;
|
|
977
|
-
cmd?: string | undefined;
|
|
978
|
-
} | undefined;
|
|
979
|
-
"windows-x86_64"?: {
|
|
980
|
-
args?: string[] | undefined;
|
|
981
|
-
env?: Record<string, string> | undefined;
|
|
982
|
-
archive?: string | undefined;
|
|
983
|
-
cmd?: string | undefined;
|
|
984
|
-
} | undefined;
|
|
985
|
-
} | undefined;
|
|
986
|
-
npx?: {
|
|
987
|
-
package: string;
|
|
988
|
-
args?: string[] | undefined;
|
|
989
|
-
env?: Record<string, string> | undefined;
|
|
990
|
-
bin?: string | undefined;
|
|
991
|
-
} | undefined;
|
|
992
|
-
uvx?: {
|
|
993
|
-
package: string;
|
|
994
|
-
args?: string[] | undefined;
|
|
995
|
-
env?: Record<string, string> | undefined;
|
|
996
|
-
} | undefined;
|
|
997
|
-
exec?: {
|
|
998
|
-
command: string;
|
|
999
|
-
args?: string[] | undefined;
|
|
1000
|
-
env?: Record<string, string> | undefined;
|
|
1001
|
-
} | undefined;
|
|
1002
|
-
};
|
|
1003
|
-
version?: string | undefined;
|
|
1004
|
-
description?: string | undefined;
|
|
1005
|
-
authors?: string[] | undefined;
|
|
1006
|
-
license?: string | undefined;
|
|
1007
|
-
icon?: string | undefined;
|
|
1008
|
-
repository?: string | undefined;
|
|
1009
|
-
website?: string | undefined;
|
|
1010
|
-
onboarding?: {
|
|
1011
|
-
command?: string | undefined;
|
|
1012
|
-
url?: string | undefined;
|
|
1013
|
-
description?: string | undefined;
|
|
1014
|
-
} | undefined;
|
|
1015
|
-
requiredEnv?: string[] | undefined;
|
|
1016
|
-
}>;
|
|
1017
|
-
type RegistryAgent = z.infer<typeof RegistryAgent>;
|
|
1018
|
-
declare const RegistryDocument: z.ZodObject<{
|
|
1019
|
-
version: z.ZodString;
|
|
1020
|
-
agents: z.ZodArray<z.ZodObject<{
|
|
1021
|
-
id: z.ZodString;
|
|
1022
|
-
name: z.ZodString;
|
|
1023
|
-
version: z.ZodOptional<z.ZodString>;
|
|
1024
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1025
|
-
authors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1026
|
-
license: z.ZodOptional<z.ZodString>;
|
|
1027
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
1028
|
-
repository: z.ZodOptional<z.ZodString>;
|
|
1029
|
-
website: z.ZodOptional<z.ZodString>;
|
|
1030
|
-
distribution: z.ZodObject<{
|
|
1031
|
-
npx: z.ZodOptional<z.ZodObject<{
|
|
1032
|
-
package: z.ZodString;
|
|
1033
|
-
bin: z.ZodOptional<z.ZodString>;
|
|
1034
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1035
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1036
|
-
}, "strip", z.ZodTypeAny, {
|
|
1037
|
-
package: string;
|
|
1038
|
-
args?: string[] | undefined;
|
|
1039
|
-
env?: Record<string, string> | undefined;
|
|
1040
|
-
bin?: string | undefined;
|
|
1041
|
-
}, {
|
|
1042
|
-
package: string;
|
|
1043
|
-
args?: string[] | undefined;
|
|
1044
|
-
env?: Record<string, string> | undefined;
|
|
1045
|
-
bin?: string | undefined;
|
|
1046
|
-
}>>;
|
|
1047
|
-
binary: z.ZodOptional<z.ZodObject<{
|
|
1048
|
-
"darwin-aarch64": z.ZodOptional<z.ZodObject<{
|
|
1049
|
-
archive: z.ZodOptional<z.ZodString>;
|
|
1050
|
-
cmd: z.ZodOptional<z.ZodString>;
|
|
1051
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1052
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1053
|
-
}, "strip", z.ZodTypeAny, {
|
|
1054
|
-
args?: string[] | undefined;
|
|
1055
|
-
env?: Record<string, string> | undefined;
|
|
1056
|
-
archive?: string | undefined;
|
|
1057
|
-
cmd?: string | undefined;
|
|
1058
|
-
}, {
|
|
1059
|
-
args?: string[] | undefined;
|
|
1060
|
-
env?: Record<string, string> | undefined;
|
|
1061
|
-
archive?: string | undefined;
|
|
1062
|
-
cmd?: string | undefined;
|
|
1063
|
-
}>>;
|
|
1064
|
-
"darwin-x86_64": z.ZodOptional<z.ZodObject<{
|
|
1065
|
-
archive: z.ZodOptional<z.ZodString>;
|
|
1066
|
-
cmd: z.ZodOptional<z.ZodString>;
|
|
1067
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1068
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1069
|
-
}, "strip", z.ZodTypeAny, {
|
|
1070
|
-
args?: string[] | undefined;
|
|
1071
|
-
env?: Record<string, string> | undefined;
|
|
1072
|
-
archive?: string | undefined;
|
|
1073
|
-
cmd?: string | undefined;
|
|
1074
|
-
}, {
|
|
1075
|
-
args?: string[] | undefined;
|
|
1076
|
-
env?: Record<string, string> | undefined;
|
|
1077
|
-
archive?: string | undefined;
|
|
1078
|
-
cmd?: string | undefined;
|
|
1079
|
-
}>>;
|
|
1080
|
-
"linux-aarch64": z.ZodOptional<z.ZodObject<{
|
|
1081
|
-
archive: z.ZodOptional<z.ZodString>;
|
|
1082
|
-
cmd: z.ZodOptional<z.ZodString>;
|
|
1083
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1084
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1085
|
-
}, "strip", z.ZodTypeAny, {
|
|
1086
|
-
args?: string[] | undefined;
|
|
1087
|
-
env?: Record<string, string> | undefined;
|
|
1088
|
-
archive?: string | undefined;
|
|
1089
|
-
cmd?: string | undefined;
|
|
1090
|
-
}, {
|
|
1091
|
-
args?: string[] | undefined;
|
|
1092
|
-
env?: Record<string, string> | undefined;
|
|
1093
|
-
archive?: string | undefined;
|
|
1094
|
-
cmd?: string | undefined;
|
|
1095
|
-
}>>;
|
|
1096
|
-
"linux-x86_64": z.ZodOptional<z.ZodObject<{
|
|
1097
|
-
archive: z.ZodOptional<z.ZodString>;
|
|
1098
|
-
cmd: z.ZodOptional<z.ZodString>;
|
|
1099
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1100
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1101
|
-
}, "strip", z.ZodTypeAny, {
|
|
1102
|
-
args?: string[] | undefined;
|
|
1103
|
-
env?: Record<string, string> | undefined;
|
|
1104
|
-
archive?: string | undefined;
|
|
1105
|
-
cmd?: string | undefined;
|
|
1106
|
-
}, {
|
|
1107
|
-
args?: string[] | undefined;
|
|
1108
|
-
env?: Record<string, string> | undefined;
|
|
1109
|
-
archive?: string | undefined;
|
|
1110
|
-
cmd?: string | undefined;
|
|
1111
|
-
}>>;
|
|
1112
|
-
"windows-x86_64": z.ZodOptional<z.ZodObject<{
|
|
1113
|
-
archive: z.ZodOptional<z.ZodString>;
|
|
1114
|
-
cmd: z.ZodOptional<z.ZodString>;
|
|
1115
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1116
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1117
|
-
}, "strip", z.ZodTypeAny, {
|
|
1118
|
-
args?: string[] | undefined;
|
|
1119
|
-
env?: Record<string, string> | undefined;
|
|
1120
|
-
archive?: string | undefined;
|
|
1121
|
-
cmd?: string | undefined;
|
|
1122
|
-
}, {
|
|
1123
|
-
args?: string[] | undefined;
|
|
1124
|
-
env?: Record<string, string> | undefined;
|
|
1125
|
-
archive?: string | undefined;
|
|
1126
|
-
cmd?: string | undefined;
|
|
1127
|
-
}>>;
|
|
1128
|
-
"windows-aarch64": z.ZodOptional<z.ZodObject<{
|
|
1129
|
-
archive: z.ZodOptional<z.ZodString>;
|
|
1130
|
-
cmd: z.ZodOptional<z.ZodString>;
|
|
1131
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1132
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1133
|
-
}, "strip", z.ZodTypeAny, {
|
|
1134
|
-
args?: string[] | undefined;
|
|
1135
|
-
env?: Record<string, string> | undefined;
|
|
1136
|
-
archive?: string | undefined;
|
|
1137
|
-
cmd?: string | undefined;
|
|
1138
|
-
}, {
|
|
1139
|
-
args?: string[] | undefined;
|
|
1140
|
-
env?: Record<string, string> | undefined;
|
|
1141
|
-
archive?: string | undefined;
|
|
1142
|
-
cmd?: string | undefined;
|
|
1143
|
-
}>>;
|
|
1144
|
-
}, "strip", z.ZodTypeAny, {
|
|
1145
|
-
"darwin-aarch64"?: {
|
|
1146
|
-
args?: string[] | undefined;
|
|
1147
|
-
env?: Record<string, string> | undefined;
|
|
1148
|
-
archive?: string | undefined;
|
|
1149
|
-
cmd?: string | undefined;
|
|
1150
|
-
} | undefined;
|
|
1151
|
-
"darwin-x86_64"?: {
|
|
1152
|
-
args?: string[] | undefined;
|
|
1153
|
-
env?: Record<string, string> | undefined;
|
|
1154
|
-
archive?: string | undefined;
|
|
1155
|
-
cmd?: string | undefined;
|
|
1156
|
-
} | undefined;
|
|
1157
|
-
"linux-aarch64"?: {
|
|
1158
|
-
args?: string[] | undefined;
|
|
1159
|
-
env?: Record<string, string> | undefined;
|
|
1160
|
-
archive?: string | undefined;
|
|
1161
|
-
cmd?: string | undefined;
|
|
1162
|
-
} | undefined;
|
|
1163
|
-
"linux-x86_64"?: {
|
|
1164
|
-
args?: string[] | undefined;
|
|
1165
|
-
env?: Record<string, string> | undefined;
|
|
1166
|
-
archive?: string | undefined;
|
|
1167
|
-
cmd?: string | undefined;
|
|
1168
|
-
} | undefined;
|
|
1169
|
-
"windows-aarch64"?: {
|
|
1170
|
-
args?: string[] | undefined;
|
|
1171
|
-
env?: Record<string, string> | undefined;
|
|
1172
|
-
archive?: string | undefined;
|
|
1173
|
-
cmd?: string | undefined;
|
|
1174
|
-
} | undefined;
|
|
1175
|
-
"windows-x86_64"?: {
|
|
1176
|
-
args?: string[] | undefined;
|
|
1177
|
-
env?: Record<string, string> | undefined;
|
|
1178
|
-
archive?: string | undefined;
|
|
1179
|
-
cmd?: string | undefined;
|
|
1180
|
-
} | undefined;
|
|
1181
|
-
}, {
|
|
1182
|
-
"darwin-aarch64"?: {
|
|
1183
|
-
args?: string[] | undefined;
|
|
1184
|
-
env?: Record<string, string> | undefined;
|
|
1185
|
-
archive?: string | undefined;
|
|
1186
|
-
cmd?: string | undefined;
|
|
1187
|
-
} | undefined;
|
|
1188
|
-
"darwin-x86_64"?: {
|
|
1189
|
-
args?: string[] | undefined;
|
|
1190
|
-
env?: Record<string, string> | undefined;
|
|
1191
|
-
archive?: string | undefined;
|
|
1192
|
-
cmd?: string | undefined;
|
|
1193
|
-
} | undefined;
|
|
1194
|
-
"linux-aarch64"?: {
|
|
1195
|
-
args?: string[] | undefined;
|
|
1196
|
-
env?: Record<string, string> | undefined;
|
|
1197
|
-
archive?: string | undefined;
|
|
1198
|
-
cmd?: string | undefined;
|
|
1199
|
-
} | undefined;
|
|
1200
|
-
"linux-x86_64"?: {
|
|
1201
|
-
args?: string[] | undefined;
|
|
1202
|
-
env?: Record<string, string> | undefined;
|
|
1203
|
-
archive?: string | undefined;
|
|
1204
|
-
cmd?: string | undefined;
|
|
1205
|
-
} | undefined;
|
|
1206
|
-
"windows-aarch64"?: {
|
|
1207
|
-
args?: string[] | undefined;
|
|
1208
|
-
env?: Record<string, string> | undefined;
|
|
1209
|
-
archive?: string | undefined;
|
|
1210
|
-
cmd?: string | undefined;
|
|
1211
|
-
} | undefined;
|
|
1212
|
-
"windows-x86_64"?: {
|
|
1213
|
-
args?: string[] | undefined;
|
|
1214
|
-
env?: Record<string, string> | undefined;
|
|
1215
|
-
archive?: string | undefined;
|
|
1216
|
-
cmd?: string | undefined;
|
|
1217
|
-
} | undefined;
|
|
1218
|
-
}>>;
|
|
1219
|
-
uvx: z.ZodOptional<z.ZodObject<{
|
|
1220
|
-
package: z.ZodString;
|
|
1221
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1222
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1223
|
-
}, "strip", z.ZodTypeAny, {
|
|
1224
|
-
package: string;
|
|
1225
|
-
args?: string[] | undefined;
|
|
1226
|
-
env?: Record<string, string> | undefined;
|
|
1227
|
-
}, {
|
|
1228
|
-
package: string;
|
|
1229
|
-
args?: string[] | undefined;
|
|
1230
|
-
env?: Record<string, string> | undefined;
|
|
1231
|
-
}>>;
|
|
1232
|
-
exec: z.ZodOptional<z.ZodObject<{
|
|
1233
|
-
command: z.ZodString;
|
|
1234
|
-
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1235
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1236
|
-
}, "strip", z.ZodTypeAny, {
|
|
1237
|
-
command: string;
|
|
1238
|
-
args?: string[] | undefined;
|
|
1239
|
-
env?: Record<string, string> | undefined;
|
|
1240
|
-
}, {
|
|
1241
|
-
command: string;
|
|
1242
|
-
args?: string[] | undefined;
|
|
1243
|
-
env?: Record<string, string> | undefined;
|
|
1244
|
-
}>>;
|
|
1245
|
-
}, "strip", z.ZodTypeAny, {
|
|
1246
|
-
binary?: {
|
|
1247
|
-
"darwin-aarch64"?: {
|
|
1248
|
-
args?: string[] | undefined;
|
|
1249
|
-
env?: Record<string, string> | undefined;
|
|
1250
|
-
archive?: string | undefined;
|
|
1251
|
-
cmd?: string | undefined;
|
|
1252
|
-
} | undefined;
|
|
1253
|
-
"darwin-x86_64"?: {
|
|
1254
|
-
args?: string[] | undefined;
|
|
1255
|
-
env?: Record<string, string> | undefined;
|
|
1256
|
-
archive?: string | undefined;
|
|
1257
|
-
cmd?: string | undefined;
|
|
1258
|
-
} | undefined;
|
|
1259
|
-
"linux-aarch64"?: {
|
|
1260
|
-
args?: string[] | undefined;
|
|
1261
|
-
env?: Record<string, string> | undefined;
|
|
1262
|
-
archive?: string | undefined;
|
|
1263
|
-
cmd?: string | undefined;
|
|
1264
|
-
} | undefined;
|
|
1265
|
-
"linux-x86_64"?: {
|
|
1266
|
-
args?: string[] | undefined;
|
|
1267
|
-
env?: Record<string, string> | undefined;
|
|
1268
|
-
archive?: string | undefined;
|
|
1269
|
-
cmd?: string | undefined;
|
|
1270
|
-
} | undefined;
|
|
1271
|
-
"windows-aarch64"?: {
|
|
1272
|
-
args?: string[] | undefined;
|
|
1273
|
-
env?: Record<string, string> | undefined;
|
|
1274
|
-
archive?: string | undefined;
|
|
1275
|
-
cmd?: string | undefined;
|
|
1276
|
-
} | undefined;
|
|
1277
|
-
"windows-x86_64"?: {
|
|
1278
|
-
args?: string[] | undefined;
|
|
1279
|
-
env?: Record<string, string> | undefined;
|
|
1280
|
-
archive?: string | undefined;
|
|
1281
|
-
cmd?: string | undefined;
|
|
1282
|
-
} | undefined;
|
|
1283
|
-
} | undefined;
|
|
1284
|
-
npx?: {
|
|
1285
|
-
package: string;
|
|
1286
|
-
args?: string[] | undefined;
|
|
1287
|
-
env?: Record<string, string> | undefined;
|
|
1288
|
-
bin?: string | undefined;
|
|
1289
|
-
} | undefined;
|
|
1290
|
-
uvx?: {
|
|
1291
|
-
package: string;
|
|
1292
|
-
args?: string[] | undefined;
|
|
1293
|
-
env?: Record<string, string> | undefined;
|
|
1294
|
-
} | undefined;
|
|
1295
|
-
exec?: {
|
|
1296
|
-
command: string;
|
|
1297
|
-
args?: string[] | undefined;
|
|
1298
|
-
env?: Record<string, string> | undefined;
|
|
1299
|
-
} | undefined;
|
|
1300
|
-
}, {
|
|
1301
|
-
binary?: {
|
|
1302
|
-
"darwin-aarch64"?: {
|
|
1303
|
-
args?: string[] | undefined;
|
|
1304
|
-
env?: Record<string, string> | undefined;
|
|
1305
|
-
archive?: string | undefined;
|
|
1306
|
-
cmd?: string | undefined;
|
|
1307
|
-
} | undefined;
|
|
1308
|
-
"darwin-x86_64"?: {
|
|
1309
|
-
args?: string[] | undefined;
|
|
1310
|
-
env?: Record<string, string> | undefined;
|
|
1311
|
-
archive?: string | undefined;
|
|
1312
|
-
cmd?: string | undefined;
|
|
1313
|
-
} | undefined;
|
|
1314
|
-
"linux-aarch64"?: {
|
|
1315
|
-
args?: string[] | undefined;
|
|
1316
|
-
env?: Record<string, string> | undefined;
|
|
1317
|
-
archive?: string | undefined;
|
|
1318
|
-
cmd?: string | undefined;
|
|
1319
|
-
} | undefined;
|
|
1320
|
-
"linux-x86_64"?: {
|
|
1321
|
-
args?: string[] | undefined;
|
|
1322
|
-
env?: Record<string, string> | undefined;
|
|
1323
|
-
archive?: string | undefined;
|
|
1324
|
-
cmd?: string | undefined;
|
|
1325
|
-
} | undefined;
|
|
1326
|
-
"windows-aarch64"?: {
|
|
1327
|
-
args?: string[] | undefined;
|
|
1328
|
-
env?: Record<string, string> | undefined;
|
|
1329
|
-
archive?: string | undefined;
|
|
1330
|
-
cmd?: string | undefined;
|
|
1331
|
-
} | undefined;
|
|
1332
|
-
"windows-x86_64"?: {
|
|
1333
|
-
args?: string[] | undefined;
|
|
1334
|
-
env?: Record<string, string> | undefined;
|
|
1335
|
-
archive?: string | undefined;
|
|
1336
|
-
cmd?: string | undefined;
|
|
1337
|
-
} | undefined;
|
|
1338
|
-
} | undefined;
|
|
1339
|
-
npx?: {
|
|
1340
|
-
package: string;
|
|
1341
|
-
args?: string[] | undefined;
|
|
1342
|
-
env?: Record<string, string> | undefined;
|
|
1343
|
-
bin?: string | undefined;
|
|
1344
|
-
} | undefined;
|
|
1345
|
-
uvx?: {
|
|
1346
|
-
package: string;
|
|
1347
|
-
args?: string[] | undefined;
|
|
1348
|
-
env?: Record<string, string> | undefined;
|
|
1349
|
-
} | undefined;
|
|
1350
|
-
exec?: {
|
|
1351
|
-
command: string;
|
|
1352
|
-
args?: string[] | undefined;
|
|
1353
|
-
env?: Record<string, string> | undefined;
|
|
1354
|
-
} | undefined;
|
|
1355
|
-
}>;
|
|
1356
|
-
onboarding: z.ZodOptional<z.ZodObject<{
|
|
1357
|
-
command: z.ZodOptional<z.ZodString>;
|
|
1358
|
-
url: z.ZodOptional<z.ZodString>;
|
|
1359
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1360
|
-
}, "strip", z.ZodTypeAny, {
|
|
1361
|
-
command?: string | undefined;
|
|
1362
|
-
url?: string | undefined;
|
|
1363
|
-
description?: string | undefined;
|
|
1364
|
-
}, {
|
|
1365
|
-
command?: string | undefined;
|
|
1366
|
-
url?: string | undefined;
|
|
1367
|
-
description?: string | undefined;
|
|
1368
|
-
}>>;
|
|
1369
|
-
requiredEnv: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1370
|
-
}, "strip", z.ZodTypeAny, {
|
|
1371
|
-
name: string;
|
|
1372
|
-
id: string;
|
|
1373
|
-
distribution: {
|
|
1374
|
-
binary?: {
|
|
1375
|
-
"darwin-aarch64"?: {
|
|
1376
|
-
args?: string[] | undefined;
|
|
1377
|
-
env?: Record<string, string> | undefined;
|
|
1378
|
-
archive?: string | undefined;
|
|
1379
|
-
cmd?: string | undefined;
|
|
1380
|
-
} | undefined;
|
|
1381
|
-
"darwin-x86_64"?: {
|
|
1382
|
-
args?: string[] | undefined;
|
|
1383
|
-
env?: Record<string, string> | undefined;
|
|
1384
|
-
archive?: string | undefined;
|
|
1385
|
-
cmd?: string | undefined;
|
|
1386
|
-
} | undefined;
|
|
1387
|
-
"linux-aarch64"?: {
|
|
1388
|
-
args?: string[] | undefined;
|
|
1389
|
-
env?: Record<string, string> | undefined;
|
|
1390
|
-
archive?: string | undefined;
|
|
1391
|
-
cmd?: string | undefined;
|
|
1392
|
-
} | undefined;
|
|
1393
|
-
"linux-x86_64"?: {
|
|
1394
|
-
args?: string[] | undefined;
|
|
1395
|
-
env?: Record<string, string> | undefined;
|
|
1396
|
-
archive?: string | undefined;
|
|
1397
|
-
cmd?: string | undefined;
|
|
1398
|
-
} | undefined;
|
|
1399
|
-
"windows-aarch64"?: {
|
|
1400
|
-
args?: string[] | undefined;
|
|
1401
|
-
env?: Record<string, string> | undefined;
|
|
1402
|
-
archive?: string | undefined;
|
|
1403
|
-
cmd?: string | undefined;
|
|
1404
|
-
} | undefined;
|
|
1405
|
-
"windows-x86_64"?: {
|
|
1406
|
-
args?: string[] | undefined;
|
|
1407
|
-
env?: Record<string, string> | undefined;
|
|
1408
|
-
archive?: string | undefined;
|
|
1409
|
-
cmd?: string | undefined;
|
|
1410
|
-
} | undefined;
|
|
1411
|
-
} | undefined;
|
|
1412
|
-
npx?: {
|
|
1413
|
-
package: string;
|
|
1414
|
-
args?: string[] | undefined;
|
|
1415
|
-
env?: Record<string, string> | undefined;
|
|
1416
|
-
bin?: string | undefined;
|
|
1417
|
-
} | undefined;
|
|
1418
|
-
uvx?: {
|
|
1419
|
-
package: string;
|
|
1420
|
-
args?: string[] | undefined;
|
|
1421
|
-
env?: Record<string, string> | undefined;
|
|
1422
|
-
} | undefined;
|
|
1423
|
-
exec?: {
|
|
1424
|
-
command: string;
|
|
1425
|
-
args?: string[] | undefined;
|
|
1426
|
-
env?: Record<string, string> | undefined;
|
|
1427
|
-
} | undefined;
|
|
1428
|
-
};
|
|
1429
|
-
version?: string | undefined;
|
|
1430
|
-
description?: string | undefined;
|
|
1431
|
-
authors?: string[] | undefined;
|
|
1432
|
-
license?: string | undefined;
|
|
1433
|
-
icon?: string | undefined;
|
|
1434
|
-
repository?: string | undefined;
|
|
1435
|
-
website?: string | undefined;
|
|
1436
|
-
onboarding?: {
|
|
1437
|
-
command?: string | undefined;
|
|
1438
|
-
url?: string | undefined;
|
|
1439
|
-
description?: string | undefined;
|
|
1440
|
-
} | undefined;
|
|
1441
|
-
requiredEnv?: string[] | undefined;
|
|
1442
|
-
}, {
|
|
1443
|
-
name: string;
|
|
1444
|
-
id: string;
|
|
1445
|
-
distribution: {
|
|
1446
|
-
binary?: {
|
|
1447
|
-
"darwin-aarch64"?: {
|
|
1448
|
-
args?: string[] | undefined;
|
|
1449
|
-
env?: Record<string, string> | undefined;
|
|
1450
|
-
archive?: string | undefined;
|
|
1451
|
-
cmd?: string | undefined;
|
|
1452
|
-
} | undefined;
|
|
1453
|
-
"darwin-x86_64"?: {
|
|
1454
|
-
args?: string[] | undefined;
|
|
1455
|
-
env?: Record<string, string> | undefined;
|
|
1456
|
-
archive?: string | undefined;
|
|
1457
|
-
cmd?: string | undefined;
|
|
1458
|
-
} | undefined;
|
|
1459
|
-
"linux-aarch64"?: {
|
|
1460
|
-
args?: string[] | undefined;
|
|
1461
|
-
env?: Record<string, string> | undefined;
|
|
1462
|
-
archive?: string | undefined;
|
|
1463
|
-
cmd?: string | undefined;
|
|
1464
|
-
} | undefined;
|
|
1465
|
-
"linux-x86_64"?: {
|
|
1466
|
-
args?: string[] | undefined;
|
|
1467
|
-
env?: Record<string, string> | undefined;
|
|
1468
|
-
archive?: string | undefined;
|
|
1469
|
-
cmd?: string | undefined;
|
|
1470
|
-
} | undefined;
|
|
1471
|
-
"windows-aarch64"?: {
|
|
1472
|
-
args?: string[] | undefined;
|
|
1473
|
-
env?: Record<string, string> | undefined;
|
|
1474
|
-
archive?: string | undefined;
|
|
1475
|
-
cmd?: string | undefined;
|
|
1476
|
-
} | undefined;
|
|
1477
|
-
"windows-x86_64"?: {
|
|
1478
|
-
args?: string[] | undefined;
|
|
1479
|
-
env?: Record<string, string> | undefined;
|
|
1480
|
-
archive?: string | undefined;
|
|
1481
|
-
cmd?: string | undefined;
|
|
1482
|
-
} | undefined;
|
|
1483
|
-
} | undefined;
|
|
1484
|
-
npx?: {
|
|
1485
|
-
package: string;
|
|
1486
|
-
args?: string[] | undefined;
|
|
1487
|
-
env?: Record<string, string> | undefined;
|
|
1488
|
-
bin?: string | undefined;
|
|
1489
|
-
} | undefined;
|
|
1490
|
-
uvx?: {
|
|
1491
|
-
package: string;
|
|
1492
|
-
args?: string[] | undefined;
|
|
1493
|
-
env?: Record<string, string> | undefined;
|
|
1494
|
-
} | undefined;
|
|
1495
|
-
exec?: {
|
|
1496
|
-
command: string;
|
|
1497
|
-
args?: string[] | undefined;
|
|
1498
|
-
env?: Record<string, string> | undefined;
|
|
1499
|
-
} | undefined;
|
|
1500
|
-
};
|
|
1501
|
-
version?: string | undefined;
|
|
1502
|
-
description?: string | undefined;
|
|
1503
|
-
authors?: string[] | undefined;
|
|
1504
|
-
license?: string | undefined;
|
|
1505
|
-
icon?: string | undefined;
|
|
1506
|
-
repository?: string | undefined;
|
|
1507
|
-
website?: string | undefined;
|
|
1508
|
-
onboarding?: {
|
|
1509
|
-
command?: string | undefined;
|
|
1510
|
-
url?: string | undefined;
|
|
1511
|
-
description?: string | undefined;
|
|
1512
|
-
} | undefined;
|
|
1513
|
-
requiredEnv?: string[] | undefined;
|
|
1514
|
-
}>, "many">;
|
|
1515
|
-
extensions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
1516
|
-
}, "strip", z.ZodTypeAny, {
|
|
1517
|
-
version: string;
|
|
1518
|
-
agents: {
|
|
1519
|
-
name: string;
|
|
1520
|
-
id: string;
|
|
1521
|
-
distribution: {
|
|
1522
|
-
binary?: {
|
|
1523
|
-
"darwin-aarch64"?: {
|
|
1524
|
-
args?: string[] | undefined;
|
|
1525
|
-
env?: Record<string, string> | undefined;
|
|
1526
|
-
archive?: string | undefined;
|
|
1527
|
-
cmd?: string | undefined;
|
|
1528
|
-
} | undefined;
|
|
1529
|
-
"darwin-x86_64"?: {
|
|
1530
|
-
args?: string[] | undefined;
|
|
1531
|
-
env?: Record<string, string> | undefined;
|
|
1532
|
-
archive?: string | undefined;
|
|
1533
|
-
cmd?: string | undefined;
|
|
1534
|
-
} | undefined;
|
|
1535
|
-
"linux-aarch64"?: {
|
|
1536
|
-
args?: string[] | undefined;
|
|
1537
|
-
env?: Record<string, string> | undefined;
|
|
1538
|
-
archive?: string | undefined;
|
|
1539
|
-
cmd?: string | undefined;
|
|
1540
|
-
} | undefined;
|
|
1541
|
-
"linux-x86_64"?: {
|
|
1542
|
-
args?: string[] | undefined;
|
|
1543
|
-
env?: Record<string, string> | undefined;
|
|
1544
|
-
archive?: string | undefined;
|
|
1545
|
-
cmd?: string | undefined;
|
|
1546
|
-
} | undefined;
|
|
1547
|
-
"windows-aarch64"?: {
|
|
1548
|
-
args?: string[] | undefined;
|
|
1549
|
-
env?: Record<string, string> | undefined;
|
|
1550
|
-
archive?: string | undefined;
|
|
1551
|
-
cmd?: string | undefined;
|
|
1552
|
-
} | undefined;
|
|
1553
|
-
"windows-x86_64"?: {
|
|
1554
|
-
args?: string[] | undefined;
|
|
1555
|
-
env?: Record<string, string> | undefined;
|
|
1556
|
-
archive?: string | undefined;
|
|
1557
|
-
cmd?: string | undefined;
|
|
1558
|
-
} | undefined;
|
|
1559
|
-
} | undefined;
|
|
1560
|
-
npx?: {
|
|
1561
|
-
package: string;
|
|
1562
|
-
args?: string[] | undefined;
|
|
1563
|
-
env?: Record<string, string> | undefined;
|
|
1564
|
-
bin?: string | undefined;
|
|
1565
|
-
} | undefined;
|
|
1566
|
-
uvx?: {
|
|
1567
|
-
package: string;
|
|
1568
|
-
args?: string[] | undefined;
|
|
1569
|
-
env?: Record<string, string> | undefined;
|
|
1570
|
-
} | undefined;
|
|
1571
|
-
exec?: {
|
|
1572
|
-
command: string;
|
|
1573
|
-
args?: string[] | undefined;
|
|
1574
|
-
env?: Record<string, string> | undefined;
|
|
1575
|
-
} | undefined;
|
|
1576
|
-
};
|
|
1577
|
-
version?: string | undefined;
|
|
1578
|
-
description?: string | undefined;
|
|
1579
|
-
authors?: string[] | undefined;
|
|
1580
|
-
license?: string | undefined;
|
|
1581
|
-
icon?: string | undefined;
|
|
1582
|
-
repository?: string | undefined;
|
|
1583
|
-
website?: string | undefined;
|
|
1584
|
-
onboarding?: {
|
|
1585
|
-
command?: string | undefined;
|
|
1586
|
-
url?: string | undefined;
|
|
1587
|
-
description?: string | undefined;
|
|
1588
|
-
} | undefined;
|
|
1589
|
-
requiredEnv?: string[] | undefined;
|
|
1590
|
-
}[];
|
|
1591
|
-
extensions?: unknown[] | undefined;
|
|
1592
|
-
}, {
|
|
1593
|
-
version: string;
|
|
1594
|
-
agents: {
|
|
1595
|
-
name: string;
|
|
1596
|
-
id: string;
|
|
1597
|
-
distribution: {
|
|
1598
|
-
binary?: {
|
|
1599
|
-
"darwin-aarch64"?: {
|
|
1600
|
-
args?: string[] | undefined;
|
|
1601
|
-
env?: Record<string, string> | undefined;
|
|
1602
|
-
archive?: string | undefined;
|
|
1603
|
-
cmd?: string | undefined;
|
|
1604
|
-
} | undefined;
|
|
1605
|
-
"darwin-x86_64"?: {
|
|
1606
|
-
args?: string[] | undefined;
|
|
1607
|
-
env?: Record<string, string> | undefined;
|
|
1608
|
-
archive?: string | undefined;
|
|
1609
|
-
cmd?: string | undefined;
|
|
1610
|
-
} | undefined;
|
|
1611
|
-
"linux-aarch64"?: {
|
|
1612
|
-
args?: string[] | undefined;
|
|
1613
|
-
env?: Record<string, string> | undefined;
|
|
1614
|
-
archive?: string | undefined;
|
|
1615
|
-
cmd?: string | undefined;
|
|
1616
|
-
} | undefined;
|
|
1617
|
-
"linux-x86_64"?: {
|
|
1618
|
-
args?: string[] | undefined;
|
|
1619
|
-
env?: Record<string, string> | undefined;
|
|
1620
|
-
archive?: string | undefined;
|
|
1621
|
-
cmd?: string | undefined;
|
|
1622
|
-
} | undefined;
|
|
1623
|
-
"windows-aarch64"?: {
|
|
1624
|
-
args?: string[] | undefined;
|
|
1625
|
-
env?: Record<string, string> | undefined;
|
|
1626
|
-
archive?: string | undefined;
|
|
1627
|
-
cmd?: string | undefined;
|
|
1628
|
-
} | undefined;
|
|
1629
|
-
"windows-x86_64"?: {
|
|
1630
|
-
args?: string[] | undefined;
|
|
1631
|
-
env?: Record<string, string> | undefined;
|
|
1632
|
-
archive?: string | undefined;
|
|
1633
|
-
cmd?: string | undefined;
|
|
1634
|
-
} | undefined;
|
|
1635
|
-
} | undefined;
|
|
1636
|
-
npx?: {
|
|
1637
|
-
package: string;
|
|
1638
|
-
args?: string[] | undefined;
|
|
1639
|
-
env?: Record<string, string> | undefined;
|
|
1640
|
-
bin?: string | undefined;
|
|
1641
|
-
} | undefined;
|
|
1642
|
-
uvx?: {
|
|
1643
|
-
package: string;
|
|
1644
|
-
args?: string[] | undefined;
|
|
1645
|
-
env?: Record<string, string> | undefined;
|
|
1646
|
-
} | undefined;
|
|
1647
|
-
exec?: {
|
|
1648
|
-
command: string;
|
|
1649
|
-
args?: string[] | undefined;
|
|
1650
|
-
env?: Record<string, string> | undefined;
|
|
1651
|
-
} | undefined;
|
|
1652
|
-
};
|
|
1653
|
-
version?: string | undefined;
|
|
1654
|
-
description?: string | undefined;
|
|
1655
|
-
authors?: string[] | undefined;
|
|
1656
|
-
license?: string | undefined;
|
|
1657
|
-
icon?: string | undefined;
|
|
1658
|
-
repository?: string | undefined;
|
|
1659
|
-
website?: string | undefined;
|
|
1660
|
-
onboarding?: {
|
|
1661
|
-
command?: string | undefined;
|
|
1662
|
-
url?: string | undefined;
|
|
1663
|
-
description?: string | undefined;
|
|
1664
|
-
} | undefined;
|
|
1665
|
-
requiredEnv?: string[] | undefined;
|
|
1666
|
-
}[];
|
|
1667
|
-
extensions?: unknown[] | undefined;
|
|
1668
|
-
}>;
|
|
1669
|
-
type RegistryDocument = z.infer<typeof RegistryDocument>;
|
|
1670
|
-
interface RegistryOptions {
|
|
1671
|
-
onFetched?: (doc: RegistryDocument) => void | Promise<void>;
|
|
1672
|
-
}
|
|
1673
|
-
declare class Registry {
|
|
1674
|
-
private config;
|
|
1675
|
-
private options;
|
|
1676
|
-
private cache;
|
|
1677
|
-
constructor(config: HydraConfig, options?: RegistryOptions);
|
|
1678
|
-
load(): Promise<RegistryDocument>;
|
|
1679
|
-
refresh(): Promise<RegistryDocument>;
|
|
1680
|
-
lastFetchedAt(): number | undefined;
|
|
1681
|
-
getAgent(id: string): Promise<RegistryAgent | undefined>;
|
|
1682
|
-
localAgents(): RegistryAgent[];
|
|
1683
|
-
private applyOverride;
|
|
1684
|
-
private isPinned;
|
|
1685
|
-
private isFresh;
|
|
1686
|
-
private fetchFromNetwork;
|
|
1687
|
-
private readDiskCache;
|
|
1688
|
-
private writeDiskCache;
|
|
1689
|
-
}
|
|
1690
|
-
interface SpawnPlan {
|
|
1691
|
-
command: string;
|
|
1692
|
-
args: string[];
|
|
1693
|
-
env: Record<string, string>;
|
|
1694
|
-
version: string;
|
|
1695
|
-
}
|
|
1696
|
-
declare function planSpawn(agent: RegistryAgent, callerArgs?: string[], options?: {
|
|
1697
|
-
npmRegistry?: string;
|
|
1698
|
-
onInstallProgress?: AgentInstallProgressCallback;
|
|
1699
|
-
}): Promise<SpawnPlan>;
|
|
1700
|
-
|
|
1701
|
-
declare const AttentionFlagSchema: z.ZodObject<{
|
|
1702
|
-
source: z.ZodString;
|
|
1703
|
-
reason: z.ZodString;
|
|
1704
|
-
raisedAt: z.ZodNumber;
|
|
1705
|
-
payload: z.ZodUnknown;
|
|
1706
|
-
}, "strip", z.ZodTypeAny, {
|
|
1707
|
-
source: string;
|
|
1708
|
-
reason: string;
|
|
1709
|
-
raisedAt: number;
|
|
1710
|
-
payload?: unknown;
|
|
1711
|
-
}, {
|
|
1712
|
-
source: string;
|
|
1713
|
-
reason: string;
|
|
1714
|
-
raisedAt: number;
|
|
1715
|
-
payload?: unknown;
|
|
1716
|
-
}>;
|
|
1717
|
-
type AttentionFlag = z.infer<typeof AttentionFlagSchema>;
|
|
1718
|
-
|
|
1719
|
-
type JsonRpcId = string | number;
|
|
1720
|
-
interface JsonRpcRequest {
|
|
1721
|
-
jsonrpc: "2.0";
|
|
1722
|
-
id: JsonRpcId;
|
|
1723
|
-
method: string;
|
|
1724
|
-
params?: unknown;
|
|
1725
|
-
}
|
|
1726
|
-
interface JsonRpcNotification {
|
|
1727
|
-
jsonrpc: "2.0";
|
|
1728
|
-
method: string;
|
|
1729
|
-
params?: unknown;
|
|
1730
|
-
}
|
|
1731
|
-
interface JsonRpcResponse {
|
|
1732
|
-
jsonrpc: "2.0";
|
|
1733
|
-
id: JsonRpcId | null;
|
|
1734
|
-
result?: unknown;
|
|
1735
|
-
error?: JsonRpcError;
|
|
1736
|
-
}
|
|
1737
|
-
interface JsonRpcError {
|
|
1738
|
-
code: number;
|
|
1739
|
-
message: string;
|
|
1740
|
-
data?: unknown;
|
|
1741
|
-
}
|
|
1742
|
-
type JsonRpcMessage = JsonRpcRequest | JsonRpcNotification | JsonRpcResponse;
|
|
1743
|
-
|
|
1744
|
-
declare const HistoryPolicy: z.ZodEnum<["full", "pending_only", "none", "after_message"]>;
|
|
1745
|
-
type HistoryPolicy = z.infer<typeof HistoryPolicy>;
|
|
1746
|
-
declare const SessionAttachParams: z.ZodObject<{
|
|
1747
|
-
sessionId: z.ZodString;
|
|
1748
|
-
historyPolicy: z.ZodDefault<z.ZodEnum<["full", "pending_only", "none", "after_message"]>>;
|
|
1749
|
-
afterMessageId: z.ZodOptional<z.ZodString>;
|
|
1750
|
-
clientId: z.ZodOptional<z.ZodString>;
|
|
1751
|
-
clientInfo: z.ZodOptional<z.ZodObject<{
|
|
1752
|
-
name: z.ZodString;
|
|
1753
|
-
version: z.ZodOptional<z.ZodString>;
|
|
1754
|
-
}, "strip", z.ZodTypeAny, {
|
|
1755
|
-
name: string;
|
|
1756
|
-
version?: string | undefined;
|
|
1757
|
-
}, {
|
|
1758
|
-
name: string;
|
|
1759
|
-
version?: string | undefined;
|
|
1760
|
-
}>>;
|
|
1761
|
-
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1762
|
-
}, "strip", z.ZodTypeAny, {
|
|
1763
|
-
sessionId: string;
|
|
1764
|
-
historyPolicy: "none" | "full" | "pending_only" | "after_message";
|
|
1765
|
-
clientInfo?: {
|
|
1766
|
-
name: string;
|
|
1767
|
-
version?: string | undefined;
|
|
1768
|
-
} | undefined;
|
|
1769
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1770
|
-
afterMessageId?: string | undefined;
|
|
1771
|
-
clientId?: string | undefined;
|
|
1772
|
-
}, {
|
|
1773
|
-
sessionId: string;
|
|
1774
|
-
clientInfo?: {
|
|
1775
|
-
name: string;
|
|
1776
|
-
version?: string | undefined;
|
|
1777
|
-
} | undefined;
|
|
1778
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1779
|
-
historyPolicy?: "none" | "full" | "pending_only" | "after_message" | undefined;
|
|
1780
|
-
afterMessageId?: string | undefined;
|
|
1781
|
-
clientId?: string | undefined;
|
|
1782
|
-
}>;
|
|
1783
|
-
type SessionAttachParams = z.infer<typeof SessionAttachParams>;
|
|
1784
|
-
|
|
1785
|
-
declare const SessionDetachParams: z.ZodObject<{
|
|
1786
|
-
sessionId: z.ZodString;
|
|
1787
|
-
}, "strip", z.ZodTypeAny, {
|
|
1788
|
-
sessionId: string;
|
|
1789
|
-
}, {
|
|
1790
|
-
sessionId: string;
|
|
1791
|
-
}>;
|
|
1792
|
-
type SessionDetachParams = z.infer<typeof SessionDetachParams>;
|
|
1793
|
-
declare const SessionListParams: z.ZodObject<{
|
|
1794
|
-
cwd: z.ZodOptional<z.ZodString>;
|
|
1795
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
1796
|
-
}, "strip", z.ZodTypeAny, {
|
|
1797
|
-
cwd?: string | undefined;
|
|
1798
|
-
cursor?: string | undefined;
|
|
1799
|
-
}, {
|
|
1800
|
-
cwd?: string | undefined;
|
|
1801
|
-
cursor?: string | undefined;
|
|
1802
|
-
}>;
|
|
1803
|
-
type SessionListParams = z.infer<typeof SessionListParams>;
|
|
1804
|
-
declare const SessionListEntry: z.ZodObject<{
|
|
1805
|
-
sessionId: z.ZodString;
|
|
1806
|
-
upstreamSessionId: z.ZodOptional<z.ZodString>;
|
|
1807
|
-
cwd: z.ZodString;
|
|
1808
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1809
|
-
agentId: z.ZodOptional<z.ZodString>;
|
|
1810
|
-
currentModel: z.ZodOptional<z.ZodString>;
|
|
1811
|
-
currentUsage: z.ZodOptional<z.ZodObject<{
|
|
1812
|
-
used: z.ZodOptional<z.ZodNumber>;
|
|
1813
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
1814
|
-
costAmount: z.ZodOptional<z.ZodNumber>;
|
|
1815
|
-
costCurrency: z.ZodOptional<z.ZodString>;
|
|
1816
|
-
}, "strip", z.ZodTypeAny, {
|
|
1817
|
-
used?: number | undefined;
|
|
1818
|
-
size?: number | undefined;
|
|
1819
|
-
costAmount?: number | undefined;
|
|
1820
|
-
costCurrency?: string | undefined;
|
|
1821
|
-
}, {
|
|
1822
|
-
used?: number | undefined;
|
|
1823
|
-
size?: number | undefined;
|
|
1824
|
-
costAmount?: number | undefined;
|
|
1825
|
-
costCurrency?: string | undefined;
|
|
1826
|
-
}>>;
|
|
1827
|
-
importedFromMachine: z.ZodOptional<z.ZodString>;
|
|
1828
|
-
importedFromUpstreamSessionId: z.ZodOptional<z.ZodString>;
|
|
1829
|
-
parentSessionId: z.ZodOptional<z.ZodString>;
|
|
1830
|
-
forkedFromSessionId: z.ZodOptional<z.ZodString>;
|
|
1831
|
-
forkedFromMessageId: z.ZodOptional<z.ZodString>;
|
|
1832
|
-
originatingClient: z.ZodOptional<z.ZodObject<{
|
|
1833
|
-
name: z.ZodString;
|
|
1834
|
-
version: z.ZodOptional<z.ZodString>;
|
|
1835
|
-
}, "strip", z.ZodTypeAny, {
|
|
1836
|
-
name: string;
|
|
1837
|
-
version?: string | undefined;
|
|
1838
|
-
}, {
|
|
1839
|
-
name: string;
|
|
1840
|
-
version?: string | undefined;
|
|
1841
|
-
}>>;
|
|
1842
|
-
interactive: z.ZodOptional<z.ZodBoolean>;
|
|
1843
|
-
priority: z.ZodOptional<z.ZodNumber>;
|
|
1844
|
-
updatedAt: z.ZodString;
|
|
1845
|
-
attachedClients: z.ZodNumber;
|
|
1846
|
-
status: z.ZodDefault<z.ZodEnum<["warm", "cold"]>>;
|
|
1847
|
-
busy: z.ZodDefault<z.ZodBoolean>;
|
|
1848
|
-
awaitingInput: z.ZodDefault<z.ZodBoolean>;
|
|
1849
|
-
compactionState: z.ZodOptional<z.ZodAny>;
|
|
1850
|
-
forkSynthesisState: z.ZodOptional<z.ZodEnum<["running", "failed"]>>;
|
|
1851
|
-
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1852
|
-
}, "strip", z.ZodTypeAny, {
|
|
1853
|
-
sessionId: string;
|
|
1854
|
-
cwd: string;
|
|
1855
|
-
status: "warm" | "cold";
|
|
1856
|
-
updatedAt: string;
|
|
1857
|
-
attachedClients: number;
|
|
1858
|
-
busy: boolean;
|
|
1859
|
-
awaitingInput: boolean;
|
|
1860
|
-
title?: string | undefined;
|
|
1861
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1862
|
-
upstreamSessionId?: string | undefined;
|
|
1863
|
-
agentId?: string | undefined;
|
|
1864
|
-
currentModel?: string | undefined;
|
|
1865
|
-
currentUsage?: {
|
|
1866
|
-
used?: number | undefined;
|
|
1867
|
-
size?: number | undefined;
|
|
1868
|
-
costAmount?: number | undefined;
|
|
1869
|
-
costCurrency?: string | undefined;
|
|
1870
|
-
} | undefined;
|
|
1871
|
-
importedFromMachine?: string | undefined;
|
|
1872
|
-
importedFromUpstreamSessionId?: string | undefined;
|
|
1873
|
-
parentSessionId?: string | undefined;
|
|
1874
|
-
forkedFromSessionId?: string | undefined;
|
|
1875
|
-
forkedFromMessageId?: string | undefined;
|
|
1876
|
-
originatingClient?: {
|
|
1877
|
-
name: string;
|
|
1878
|
-
version?: string | undefined;
|
|
1879
|
-
} | undefined;
|
|
1880
|
-
interactive?: boolean | undefined;
|
|
1881
|
-
priority?: number | undefined;
|
|
1882
|
-
compactionState?: any;
|
|
1883
|
-
forkSynthesisState?: "running" | "failed" | undefined;
|
|
1884
|
-
}, {
|
|
1885
|
-
sessionId: string;
|
|
1886
|
-
cwd: string;
|
|
1887
|
-
updatedAt: string;
|
|
1888
|
-
attachedClients: number;
|
|
1889
|
-
status?: "warm" | "cold" | undefined;
|
|
1890
|
-
title?: string | undefined;
|
|
1891
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1892
|
-
upstreamSessionId?: string | undefined;
|
|
1893
|
-
agentId?: string | undefined;
|
|
1894
|
-
currentModel?: string | undefined;
|
|
1895
|
-
currentUsage?: {
|
|
1896
|
-
used?: number | undefined;
|
|
1897
|
-
size?: number | undefined;
|
|
1898
|
-
costAmount?: number | undefined;
|
|
1899
|
-
costCurrency?: string | undefined;
|
|
1900
|
-
} | undefined;
|
|
1901
|
-
importedFromMachine?: string | undefined;
|
|
1902
|
-
importedFromUpstreamSessionId?: string | undefined;
|
|
1903
|
-
parentSessionId?: string | undefined;
|
|
1904
|
-
forkedFromSessionId?: string | undefined;
|
|
1905
|
-
forkedFromMessageId?: string | undefined;
|
|
1906
|
-
originatingClient?: {
|
|
1907
|
-
name: string;
|
|
1908
|
-
version?: string | undefined;
|
|
1909
|
-
} | undefined;
|
|
1910
|
-
interactive?: boolean | undefined;
|
|
1911
|
-
priority?: number | undefined;
|
|
1912
|
-
busy?: boolean | undefined;
|
|
1913
|
-
awaitingInput?: boolean | undefined;
|
|
1914
|
-
compactionState?: any;
|
|
1915
|
-
forkSynthesisState?: "running" | "failed" | undefined;
|
|
1916
|
-
}>;
|
|
1917
|
-
type SessionListEntry = z.infer<typeof SessionListEntry>;
|
|
1918
|
-
declare const SessionListResult: z.ZodObject<{
|
|
1919
|
-
sessions: z.ZodArray<z.ZodObject<{
|
|
1920
|
-
sessionId: z.ZodString;
|
|
1921
|
-
cwd: z.ZodString;
|
|
1922
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1923
|
-
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1924
|
-
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1925
|
-
}, "strip", z.ZodTypeAny, {
|
|
1926
|
-
sessionId: string;
|
|
1927
|
-
cwd: string;
|
|
1928
|
-
title?: string | undefined;
|
|
1929
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1930
|
-
updatedAt?: string | undefined;
|
|
1931
|
-
}, {
|
|
1932
|
-
sessionId: string;
|
|
1933
|
-
cwd: string;
|
|
1934
|
-
title?: string | undefined;
|
|
1935
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1936
|
-
updatedAt?: string | undefined;
|
|
1937
|
-
}>, "many">;
|
|
1938
|
-
nextCursor: z.ZodOptional<z.ZodString>;
|
|
1939
|
-
}, "strip", z.ZodTypeAny, {
|
|
1940
|
-
sessions: {
|
|
1941
|
-
sessionId: string;
|
|
1942
|
-
cwd: string;
|
|
1943
|
-
title?: string | undefined;
|
|
1944
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1945
|
-
updatedAt?: string | undefined;
|
|
1946
|
-
}[];
|
|
1947
|
-
nextCursor?: string | undefined;
|
|
1948
|
-
}, {
|
|
1949
|
-
sessions: {
|
|
1950
|
-
sessionId: string;
|
|
1951
|
-
cwd: string;
|
|
1952
|
-
title?: string | undefined;
|
|
1953
|
-
_meta?: Record<string, unknown> | undefined;
|
|
1954
|
-
updatedAt?: string | undefined;
|
|
1955
|
-
}[];
|
|
1956
|
-
nextCursor?: string | undefined;
|
|
1957
|
-
}>;
|
|
1958
|
-
type SessionListResult = z.infer<typeof SessionListResult>;
|
|
1959
|
-
|
|
1960
|
-
interface PromptOriginator {
|
|
1961
|
-
clientId: string;
|
|
1962
|
-
name?: string;
|
|
1963
|
-
version?: string;
|
|
1964
|
-
}
|
|
1965
|
-
interface PromptQueueEntry {
|
|
1966
|
-
messageId: string;
|
|
1967
|
-
originator: PromptOriginator;
|
|
1968
|
-
prompt: unknown[];
|
|
1969
|
-
position: number;
|
|
1970
|
-
enqueuedAt: number;
|
|
1971
|
-
}
|
|
1972
|
-
|
|
1973
|
-
declare const CancelPromptResult: z.ZodObject<{
|
|
1974
|
-
cancelled: z.ZodBoolean;
|
|
1975
|
-
reason: z.ZodEnum<["ok", "not_found", "already_running"]>;
|
|
1976
|
-
}, "strip", z.ZodTypeAny, {
|
|
1977
|
-
reason: "ok" | "not_found" | "already_running";
|
|
1978
|
-
cancelled: boolean;
|
|
1979
|
-
}, {
|
|
1980
|
-
reason: "ok" | "not_found" | "already_running";
|
|
1981
|
-
cancelled: boolean;
|
|
1982
|
-
}>;
|
|
1983
|
-
type CancelPromptResult = z.infer<typeof CancelPromptResult>;
|
|
1984
|
-
declare const UpdatePromptResult: z.ZodObject<{
|
|
1985
|
-
updated: z.ZodBoolean;
|
|
1986
|
-
reason: z.ZodEnum<["ok", "not_found", "already_running"]>;
|
|
1987
|
-
}, "strip", z.ZodTypeAny, {
|
|
1988
|
-
reason: "ok" | "not_found" | "already_running";
|
|
1989
|
-
updated: boolean;
|
|
1990
|
-
}, {
|
|
1991
|
-
reason: "ok" | "not_found" | "already_running";
|
|
1992
|
-
updated: boolean;
|
|
1993
|
-
}>;
|
|
1994
|
-
type UpdatePromptResult = z.infer<typeof UpdatePromptResult>;
|
|
1995
|
-
declare const AmendPromptParams: z.ZodObject<{
|
|
1996
|
-
sessionId: z.ZodString;
|
|
1997
|
-
targetMessageId: z.ZodString;
|
|
1998
|
-
prompt: z.ZodArray<z.ZodUnknown, "many">;
|
|
1999
|
-
replaceQueue: z.ZodOptional<z.ZodBoolean>;
|
|
2000
|
-
onTargetCompleted: z.ZodOptional<z.ZodEnum<["reject", "send_anyway"]>>;
|
|
2001
|
-
}, "strip", z.ZodTypeAny, {
|
|
2002
|
-
sessionId: string;
|
|
2003
|
-
prompt: unknown[];
|
|
2004
|
-
targetMessageId: string;
|
|
2005
|
-
replaceQueue?: boolean | undefined;
|
|
2006
|
-
onTargetCompleted?: "reject" | "send_anyway" | undefined;
|
|
2007
|
-
}, {
|
|
2008
|
-
sessionId: string;
|
|
2009
|
-
prompt: unknown[];
|
|
2010
|
-
targetMessageId: string;
|
|
2011
|
-
replaceQueue?: boolean | undefined;
|
|
2012
|
-
onTargetCompleted?: "reject" | "send_anyway" | undefined;
|
|
2013
|
-
}>;
|
|
2014
|
-
type AmendPromptParams = z.infer<typeof AmendPromptParams>;
|
|
2015
|
-
declare const AmendPromptResult: z.ZodObject<{
|
|
2016
|
-
amended: z.ZodBoolean;
|
|
2017
|
-
reason: z.ZodEnum<["ok", "target_completed", "target_cancelled", "target_not_found"]>;
|
|
2018
|
-
messageId: z.ZodOptional<z.ZodString>;
|
|
2019
|
-
}, "strip", z.ZodTypeAny, {
|
|
2020
|
-
reason: "ok" | "target_completed" | "target_cancelled" | "target_not_found";
|
|
2021
|
-
amended: boolean;
|
|
2022
|
-
messageId?: string | undefined;
|
|
2023
|
-
}, {
|
|
2024
|
-
reason: "ok" | "target_completed" | "target_cancelled" | "target_not_found";
|
|
2025
|
-
amended: boolean;
|
|
2026
|
-
messageId?: string | undefined;
|
|
2027
|
-
}>;
|
|
2028
|
-
type AmendPromptResult = z.infer<typeof AmendPromptResult>;
|
|
2029
|
-
|
|
2030
|
-
interface SessionCapabilities {
|
|
2031
|
-
attach?: Record<string, never>;
|
|
2032
|
-
list?: Record<string, never>;
|
|
2033
|
-
resume?: Record<string, never>;
|
|
2034
|
-
delete?: Record<string, never>;
|
|
2035
|
-
close?: Record<string, never>;
|
|
2036
|
-
fork?: Record<string, never>;
|
|
2037
|
-
}
|
|
2038
|
-
interface PromptCapabilities {
|
|
2039
|
-
image?: boolean;
|
|
2040
|
-
audio?: boolean;
|
|
2041
|
-
embeddedContext?: boolean;
|
|
2042
|
-
}
|
|
2043
|
-
interface McpCapabilities {
|
|
2044
|
-
http?: boolean;
|
|
2045
|
-
sse?: boolean;
|
|
2046
|
-
}
|
|
2047
|
-
interface AgentAuthCapabilities {
|
|
2048
|
-
logout?: Record<string, never>;
|
|
2049
|
-
}
|
|
2050
|
-
interface AgentCapabilities {
|
|
2051
|
-
promptCapabilities?: PromptCapabilities;
|
|
2052
|
-
mcpCapabilities?: McpCapabilities;
|
|
2053
|
-
loadSession?: boolean;
|
|
2054
|
-
sessionCapabilities?: SessionCapabilities;
|
|
2055
|
-
auth?: AgentAuthCapabilities;
|
|
2056
|
-
}
|
|
2057
|
-
interface AuthMethod {
|
|
2058
|
-
id: string;
|
|
2059
|
-
name?: string;
|
|
2060
|
-
description: string;
|
|
2061
|
-
type?: "agent" | "terminal";
|
|
2062
|
-
args?: string[];
|
|
2063
|
-
_meta?: Record<string, unknown>;
|
|
2064
|
-
}
|
|
2065
|
-
interface InitializeResult {
|
|
2066
|
-
protocolVersion: number;
|
|
2067
|
-
agentCapabilities: AgentCapabilities;
|
|
2068
|
-
agentInfo: {
|
|
2069
|
-
name: string;
|
|
2070
|
-
version: string;
|
|
2071
|
-
};
|
|
2072
|
-
authMethods?: AuthMethod[];
|
|
2073
|
-
_meta?: Record<string, unknown>;
|
|
2074
|
-
}
|
|
2075
|
-
|
|
2076
|
-
interface MessageStream {
|
|
2077
|
-
send(message: JsonRpcMessage): Promise<void>;
|
|
2078
|
-
onMessage(handler: (message: JsonRpcMessage) => void): void;
|
|
2079
|
-
onClose(handler: (err?: Error) => void): void;
|
|
2080
|
-
close(): Promise<void>;
|
|
2081
|
-
}
|
|
2082
|
-
declare function ndjsonStreamFromStdio(stdout: Readable, stdin: Writable): MessageStream;
|
|
2083
|
-
|
|
2084
|
-
type RequestHandler = (params: unknown, method: string) => Promise<unknown>;
|
|
2085
|
-
type NotificationHandler = (params: unknown, method: string) => void;
|
|
2086
|
-
declare class JsonRpcConnection {
|
|
2087
|
-
private stream;
|
|
2088
|
-
private requestHandlers;
|
|
2089
|
-
private defaultRequestHandler;
|
|
2090
|
-
private notificationHandlers;
|
|
2091
|
-
private bufferedNotifications;
|
|
2092
|
-
private static readonly MAX_BUFFERED_PER_METHOD;
|
|
2093
|
-
private static readonly MAX_BUFFERED_METHODS;
|
|
2094
|
-
private pending;
|
|
2095
|
-
private closed;
|
|
2096
|
-
private closeHandlers;
|
|
2097
|
-
private orphanErrorHandlers;
|
|
2098
|
-
constructor(stream: MessageStream);
|
|
2099
|
-
onRequest(method: string, handler: RequestHandler): void;
|
|
2100
|
-
setDefaultHandler(handler: RequestHandler): void;
|
|
2101
|
-
onNotification(method: string, handler: NotificationHandler): void;
|
|
2102
|
-
drainBuffered(method: string): number;
|
|
2103
|
-
onClose(handler: (err?: Error) => void): void;
|
|
2104
|
-
isClosed(): boolean;
|
|
2105
|
-
onOrphanError(handler: (error: {
|
|
2106
|
-
code?: number;
|
|
2107
|
-
message: string;
|
|
2108
|
-
data?: unknown;
|
|
2109
|
-
}) => void): void;
|
|
2110
|
-
request<T = unknown>(method: string, params?: unknown): Promise<T>;
|
|
2111
|
-
requestWithId<T = unknown>(method: string, params?: unknown): {
|
|
2112
|
-
id: JsonRpcId;
|
|
2113
|
-
response: Promise<T>;
|
|
2114
|
-
};
|
|
2115
|
-
notify(method: string, params?: unknown): Promise<void>;
|
|
2116
|
-
close(): Promise<void>;
|
|
2117
|
-
fail(err: Error): void;
|
|
2118
|
-
private handleIncoming;
|
|
2119
|
-
private handleRequest;
|
|
2120
|
-
private handleNotification;
|
|
2121
|
-
private handleResponse;
|
|
2122
|
-
private sendError;
|
|
2123
|
-
private handleClose;
|
|
2124
|
-
}
|
|
2125
|
-
|
|
2126
|
-
interface AgentInstanceOptions {
|
|
2127
|
-
agentId: string;
|
|
2128
|
-
cwd: string;
|
|
2129
|
-
plan: SpawnPlan;
|
|
2130
|
-
extraEnv?: Record<string, string>;
|
|
2131
|
-
stderrTailBytes?: number;
|
|
2132
|
-
killEscalationMs?: number;
|
|
2133
|
-
logger?: AgentLogger;
|
|
2134
|
-
}
|
|
2135
|
-
interface AgentLogger {
|
|
2136
|
-
info: (msg: string) => void;
|
|
2137
|
-
warn: (msg: string) => void;
|
|
2138
|
-
}
|
|
2139
|
-
declare class AgentInstance {
|
|
2140
|
-
readonly agentId: string;
|
|
2141
|
-
readonly version: string;
|
|
2142
|
-
readonly cwd: string;
|
|
2143
|
-
readonly connection: JsonRpcConnection;
|
|
2144
|
-
authMethods?: AuthMethod[];
|
|
2145
|
-
private child;
|
|
2146
|
-
get pid(): number | undefined;
|
|
2147
|
-
private exited;
|
|
2148
|
-
private killed;
|
|
2149
|
-
private stderrTail;
|
|
2150
|
-
private stderrTailBytes;
|
|
2151
|
-
private killEscalationMs;
|
|
2152
|
-
private logger?;
|
|
2153
|
-
private fileLog?;
|
|
2154
|
-
private exitHandlers;
|
|
2155
|
-
private constructor();
|
|
2156
|
-
private writeLog;
|
|
2157
|
-
private formatFailure;
|
|
2158
|
-
stderrTailText(): string;
|
|
2159
|
-
static spawn(opts: AgentInstanceOptions): AgentInstance;
|
|
2160
|
-
onExit(handler: (code: number | null, signal: NodeJS.Signals | null) => void): void;
|
|
2161
|
-
isAlive(): boolean;
|
|
2162
|
-
kill(signal?: NodeJS.Signals): Promise<void>;
|
|
2163
|
-
private signalProcessGroup;
|
|
2164
|
-
private waitForExit;
|
|
2165
|
-
}
|
|
2166
|
-
|
|
2167
|
-
interface TokenValidator {
|
|
2168
|
-
validate(token: string): Promise<string | undefined>;
|
|
2169
|
-
}
|
|
2170
|
-
declare module "fastify" {
|
|
2171
|
-
interface FastifyRequest {
|
|
2172
|
-
authIdentity?: string;
|
|
2173
|
-
}
|
|
2174
|
-
}
|
|
2175
|
-
interface ProcessIdentity {
|
|
2176
|
-
name: string;
|
|
2177
|
-
kind: "extension" | "transformer";
|
|
2178
|
-
}
|
|
2179
|
-
declare class ProcessTokenRegistry implements TokenValidator {
|
|
2180
|
-
private tokens;
|
|
2181
|
-
mint(name: string, kind: "extension" | "transformer"): string;
|
|
2182
|
-
revoke(name: string): void;
|
|
2183
|
-
resolve(token: string): ProcessIdentity | undefined;
|
|
2184
|
-
validate(token: string): Promise<string | undefined>;
|
|
2185
|
-
}
|
|
2186
|
-
|
|
2187
|
-
interface BreakerOptions {
|
|
2188
|
-
windowMs?: number;
|
|
2189
|
-
maxFailuresInWindow?: number;
|
|
2190
|
-
now?: () => number;
|
|
2191
|
-
}
|
|
2192
|
-
type BreakerDecision = "restart" | {
|
|
2193
|
-
tripped: string;
|
|
2194
|
-
};
|
|
2195
|
-
declare class RestartBreaker {
|
|
2196
|
-
private readonly windowMs;
|
|
2197
|
-
private readonly maxFailures;
|
|
2198
|
-
private readonly now;
|
|
2199
|
-
private recentExits;
|
|
2200
|
-
private tripped_;
|
|
2201
|
-
constructor(opts?: BreakerOptions);
|
|
2202
|
-
recordExit(code: number | null, name: string, kind: string): BreakerDecision;
|
|
2203
|
-
reset(): void;
|
|
2204
|
-
get tripped(): string | undefined;
|
|
2205
|
-
}
|
|
2206
|
-
|
|
2207
|
-
interface BaseChildConfig {
|
|
2208
|
-
name: string;
|
|
2209
|
-
command: string[];
|
|
2210
|
-
args: string[];
|
|
2211
|
-
env: Record<string, string>;
|
|
2212
|
-
enabled: boolean;
|
|
2213
|
-
}
|
|
2214
|
-
interface BaseChildContext {
|
|
2215
|
-
daemonUrl: string;
|
|
2216
|
-
daemonHost: string;
|
|
2217
|
-
daemonPort: number;
|
|
2218
|
-
serviceToken: string;
|
|
2219
|
-
daemonWsUrl: string;
|
|
2220
|
-
hydraHome: string;
|
|
2221
|
-
}
|
|
2222
|
-
type BaseChildStatus = "running" | "stopped" | "restarting" | "disabled" | "failed";
|
|
2223
|
-
interface BaseChildInfo {
|
|
2224
|
-
name: string;
|
|
2225
|
-
status: BaseChildStatus;
|
|
2226
|
-
pid: number | undefined;
|
|
2227
|
-
enabled: boolean;
|
|
2228
|
-
restartCount: number;
|
|
2229
|
-
startedAt: number | undefined;
|
|
2230
|
-
lastExitCode: number | undefined;
|
|
2231
|
-
logPath: string;
|
|
2232
|
-
version: string | undefined;
|
|
2233
|
-
failureReason: string | undefined;
|
|
2234
|
-
}
|
|
2235
|
-
interface SupervisorAdapter {
|
|
2236
|
-
kind: "extension" | "transformer";
|
|
2237
|
-
nameEnvVar: string;
|
|
2238
|
-
tokenRole: "extension" | "transformer";
|
|
2239
|
-
paths: {
|
|
2240
|
-
dir: () => string;
|
|
2241
|
-
logFile: (name: string) => string;
|
|
2242
|
-
pidFile: (name: string) => string;
|
|
2243
|
-
};
|
|
2244
|
-
}
|
|
2245
|
-
interface ChildEntry<TConfig extends BaseChildConfig> {
|
|
2246
|
-
config: TConfig;
|
|
2247
|
-
child: ChildProcess | undefined;
|
|
2248
|
-
logStream: SonicBoom | undefined;
|
|
2249
|
-
restartTimer: NodeJS.Timeout | undefined;
|
|
2250
|
-
pid: number | undefined;
|
|
2251
|
-
startedAt: number | undefined;
|
|
2252
|
-
restartCount: number;
|
|
2253
|
-
lastExitCode: number | undefined;
|
|
2254
|
-
manuallyStopped: boolean;
|
|
2255
|
-
exitWaiters: Array<() => void>;
|
|
2256
|
-
version: string | undefined;
|
|
2257
|
-
processToken: string | undefined;
|
|
2258
|
-
breaker: RestartBreaker;
|
|
2259
|
-
failureReason: string | undefined;
|
|
2260
|
-
}
|
|
2261
|
-
interface ChildSupervisorOptions {
|
|
2262
|
-
tokenRegistry?: ProcessTokenRegistry;
|
|
2263
|
-
breakerOptions?: BreakerOptions;
|
|
2264
|
-
restartBaseMs?: number;
|
|
2265
|
-
restartCapMs?: number;
|
|
2266
|
-
}
|
|
2267
|
-
declare class ChildSupervisor<TConfig extends BaseChildConfig> {
|
|
2268
|
-
protected entries: Map<string, ChildEntry<TConfig>>;
|
|
2269
|
-
private stopping;
|
|
2270
|
-
private context;
|
|
2271
|
-
private tokenRegistry;
|
|
2272
|
-
private breakerOptions;
|
|
2273
|
-
private restartBaseMs;
|
|
2274
|
-
private restartCapMs;
|
|
2275
|
-
private adapter;
|
|
2276
|
-
constructor(configs: TConfig[], adapter: SupervisorAdapter, context?: BaseChildContext, options?: ChildSupervisorOptions);
|
|
2277
|
-
setContext(context: BaseChildContext): void;
|
|
2278
|
-
reportVersion(name: string, version: string): void;
|
|
2279
|
-
start(): Promise<void>;
|
|
2280
|
-
stop(): Promise<void>;
|
|
2281
|
-
list(): BaseChildInfo[];
|
|
2282
|
-
get(name: string): BaseChildInfo | undefined;
|
|
2283
|
-
has(name: string): boolean;
|
|
2284
|
-
startByName(name: string): Promise<BaseChildInfo>;
|
|
2285
|
-
stopByName(name: string): Promise<BaseChildInfo>;
|
|
2286
|
-
restartByName(name: string): Promise<BaseChildInfo>;
|
|
2287
|
-
register(config: TConfig): BaseChildInfo;
|
|
2288
|
-
unregister(name: string): Promise<void>;
|
|
2289
|
-
private terminate;
|
|
2290
|
-
protected infoFor(entry: ChildEntry<TConfig>): BaseChildInfo;
|
|
2291
|
-
private makeEntry;
|
|
2292
|
-
private reapOrphans;
|
|
2293
|
-
private spawn;
|
|
2294
|
-
private scheduleRestart;
|
|
2295
|
-
private managerName;
|
|
2296
|
-
}
|
|
2297
|
-
|
|
2298
|
-
type TransformerContext = BaseChildContext;
|
|
2299
|
-
interface TransformerRef {
|
|
2300
|
-
name: string;
|
|
2301
|
-
intercepts: Set<string>;
|
|
2302
|
-
connection: JsonRpcConnection;
|
|
2303
|
-
}
|
|
2304
|
-
declare class TransformerManager extends ChildSupervisor<TransformerConfig> {
|
|
2305
|
-
private connected;
|
|
2306
|
-
constructor(transformers: TransformerConfig[], context?: TransformerContext, options?: ChildSupervisorOptions);
|
|
2307
|
-
registerConnection(name: string, connection: JsonRpcConnection, intercepts: string[]): void;
|
|
2308
|
-
deregisterConnection(name: string): void;
|
|
2309
|
-
resolveChain(names: string[]): TransformerRef[];
|
|
2310
|
-
interestedIn(intercept: string): TransformerRef[];
|
|
2311
|
-
}
|
|
2312
|
-
|
|
2313
|
-
interface StreamGrepLine {
|
|
2314
|
-
cursor: number;
|
|
2315
|
-
line: string;
|
|
2316
|
-
}
|
|
2317
|
-
interface StreamGrepMatch extends StreamGrepLine {
|
|
2318
|
-
before?: StreamGrepLine[];
|
|
2319
|
-
after?: StreamGrepLine[];
|
|
2320
|
-
}
|
|
2321
|
-
interface StreamGrepResult {
|
|
2322
|
-
matches: StreamGrepMatch[];
|
|
2323
|
-
truncated: boolean;
|
|
2324
|
-
nextCursor: number;
|
|
2325
|
-
gap?: number;
|
|
2326
|
-
scannedBytes: number;
|
|
2327
|
-
eof?: boolean;
|
|
2328
|
-
}
|
|
2329
|
-
interface StreamGrepOptions {
|
|
2330
|
-
pattern: string;
|
|
2331
|
-
regex?: boolean;
|
|
2332
|
-
caseInsensitive?: boolean;
|
|
2333
|
-
invert?: boolean;
|
|
2334
|
-
maxMatches?: number;
|
|
2335
|
-
maxBytes?: number;
|
|
2336
|
-
contextBefore?: number;
|
|
2337
|
-
contextAfter?: number;
|
|
2338
|
-
cursor?: number;
|
|
2339
|
-
}
|
|
2340
|
-
|
|
2341
|
-
interface AdvertisedCommand {
|
|
2342
|
-
name: string;
|
|
2343
|
-
description?: string;
|
|
2344
|
-
}
|
|
2345
|
-
interface AdvertisedMode {
|
|
2346
|
-
id: string;
|
|
2347
|
-
name?: string;
|
|
2348
|
-
description?: string;
|
|
2349
|
-
}
|
|
2350
|
-
interface AdvertisedModel {
|
|
2351
|
-
modelId: string;
|
|
2352
|
-
name?: string;
|
|
2353
|
-
description?: string;
|
|
2354
|
-
}
|
|
2355
|
-
interface ConfigOptionValue {
|
|
2356
|
-
value: string;
|
|
2357
|
-
name: string;
|
|
2358
|
-
description?: string;
|
|
2359
|
-
}
|
|
2360
|
-
interface ConfigOption {
|
|
2361
|
-
id: string;
|
|
2362
|
-
name: string;
|
|
2363
|
-
description?: string;
|
|
2364
|
-
category?: string;
|
|
2365
|
-
type: "select";
|
|
2366
|
-
currentValue: string;
|
|
2367
|
-
options: ConfigOptionValue[];
|
|
2368
|
-
}
|
|
2369
|
-
|
|
2370
|
-
interface ExtensionCommandSpec {
|
|
2371
|
-
verb: string;
|
|
2372
|
-
argsHint?: string;
|
|
2373
|
-
description?: string;
|
|
2374
|
-
}
|
|
2375
|
-
interface Entry {
|
|
2376
|
-
connection: JsonRpcConnection;
|
|
2377
|
-
commands: ExtensionCommandSpec[];
|
|
2378
|
-
}
|
|
2379
|
-
declare class ExtensionCommandRegistry {
|
|
2380
|
-
private entries;
|
|
2381
|
-
private changeHandlers;
|
|
2382
|
-
register(name: string, connection: JsonRpcConnection, commands: ExtensionCommandSpec[]): void;
|
|
2383
|
-
clear(name: string): void;
|
|
2384
|
-
get(name: string): Entry | undefined;
|
|
2385
|
-
has(name: string): boolean;
|
|
2386
|
-
list(): Array<{
|
|
2387
|
-
name: string;
|
|
2388
|
-
command: ExtensionCommandSpec;
|
|
2389
|
-
}>;
|
|
2390
|
-
onChange(handler: () => void): () => void;
|
|
2391
|
-
private fireChanged;
|
|
2392
|
-
}
|
|
2393
|
-
|
|
2394
|
-
interface HistoryEntry {
|
|
2395
|
-
method: string;
|
|
2396
|
-
params: unknown;
|
|
2397
|
-
recordedAt: number;
|
|
2398
|
-
}
|
|
2399
|
-
interface HistoryStoreOptions {
|
|
2400
|
-
maxEntries?: number;
|
|
2401
|
-
archiveMaxBytes?: number;
|
|
2402
|
-
archiveTiers?: number;
|
|
2403
|
-
}
|
|
2404
|
-
declare class HistoryStore {
|
|
2405
|
-
private writeQueues;
|
|
2406
|
-
private maxEntries;
|
|
2407
|
-
private archiveMaxBytes;
|
|
2408
|
-
private archiveTiers;
|
|
2409
|
-
private nextArchiveIndex;
|
|
2410
|
-
constructor(options?: HistoryStoreOptions);
|
|
2411
|
-
append(sessionId: string, entry: HistoryEntry): Promise<void>;
|
|
2412
|
-
rewrite(sessionId: string, entries: HistoryEntry[]): Promise<void>;
|
|
2413
|
-
compact(sessionId: string, maxEntries: number): Promise<void>;
|
|
2414
|
-
private spillToArchive;
|
|
2415
|
-
private sealArchive;
|
|
2416
|
-
private resolveNextArchiveIndex;
|
|
2417
|
-
private enforceArchiveTierCap;
|
|
2418
|
-
private unlinkArchive;
|
|
2419
|
-
private listArchiveIndices;
|
|
2420
|
-
listArchives(sessionId: string): Promise<Array<{
|
|
2421
|
-
index: number;
|
|
2422
|
-
path: string;
|
|
2423
|
-
}>>;
|
|
2424
|
-
loadArchives(sessionId: string): Promise<HistoryEntry[]>;
|
|
2425
|
-
load(sessionId: string, opts?: {
|
|
2426
|
-
tools?: "inline" | "references";
|
|
2427
|
-
maxEntries?: number;
|
|
2428
|
-
}): Promise<HistoryEntry[]>;
|
|
2429
|
-
flushAll(): Promise<void>;
|
|
2430
|
-
delete(sessionId: string): Promise<void>;
|
|
2431
|
-
private enqueue;
|
|
2432
|
-
}
|
|
2433
|
-
|
|
2434
|
-
declare const CompactionState: z.ZodObject<{
|
|
2435
|
-
status: z.ZodEnum<["requested", "running", "swap_pending", "swap_deferred", "failed"]>;
|
|
2436
|
-
requestedAt: z.ZodNumber;
|
|
2437
|
-
iter: z.ZodOptional<z.ZodNumber>;
|
|
2438
|
-
attempts: z.ZodOptional<z.ZodNumber>;
|
|
2439
|
-
lastError: z.ZodOptional<z.ZodString>;
|
|
2440
|
-
worker: z.ZodOptional<z.ZodObject<{
|
|
2441
|
-
upstreamSessionId: z.ZodString;
|
|
2442
|
-
pid: z.ZodNumber;
|
|
2443
|
-
}, "strip", z.ZodTypeAny, {
|
|
2444
|
-
pid: number;
|
|
2445
|
-
upstreamSessionId: string;
|
|
2446
|
-
}, {
|
|
2447
|
-
pid: number;
|
|
2448
|
-
upstreamSessionId: string;
|
|
2449
|
-
}>>;
|
|
2450
|
-
}, "strip", z.ZodTypeAny, {
|
|
2451
|
-
status: "requested" | "running" | "swap_pending" | "swap_deferred" | "failed";
|
|
2452
|
-
requestedAt: number;
|
|
2453
|
-
iter?: number | undefined;
|
|
2454
|
-
attempts?: number | undefined;
|
|
2455
|
-
lastError?: string | undefined;
|
|
2456
|
-
worker?: {
|
|
2457
|
-
pid: number;
|
|
2458
|
-
upstreamSessionId: string;
|
|
2459
|
-
} | undefined;
|
|
2460
|
-
}, {
|
|
2461
|
-
status: "requested" | "running" | "swap_pending" | "swap_deferred" | "failed";
|
|
2462
|
-
requestedAt: number;
|
|
2463
|
-
iter?: number | undefined;
|
|
2464
|
-
attempts?: number | undefined;
|
|
2465
|
-
lastError?: string | undefined;
|
|
2466
|
-
worker?: {
|
|
2467
|
-
pid: number;
|
|
2468
|
-
upstreamSessionId: string;
|
|
2469
|
-
} | undefined;
|
|
2470
|
-
}>;
|
|
2471
|
-
type CompactionState = z.infer<typeof CompactionState>;
|
|
2472
|
-
declare const SessionSynopsis: z.ZodObject<{
|
|
2473
|
-
goal: z.ZodOptional<z.ZodString>;
|
|
2474
|
-
outcome: z.ZodOptional<z.ZodString>;
|
|
2475
|
-
files_touched: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2476
|
-
tools_used: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2477
|
-
rejected_approaches: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2478
|
-
open_threads: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2479
|
-
decisions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2480
|
-
file_edit_intentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2481
|
-
unresolved_errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2482
|
-
tool_state: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2483
|
-
}, "strip", z.ZodTypeAny, {
|
|
2484
|
-
goal?: string | undefined;
|
|
2485
|
-
outcome?: string | undefined;
|
|
2486
|
-
files_touched?: string[] | undefined;
|
|
2487
|
-
tools_used?: string[] | undefined;
|
|
2488
|
-
rejected_approaches?: string[] | undefined;
|
|
2489
|
-
open_threads?: string[] | undefined;
|
|
2490
|
-
decisions?: string[] | undefined;
|
|
2491
|
-
file_edit_intentions?: string[] | undefined;
|
|
2492
|
-
unresolved_errors?: string[] | undefined;
|
|
2493
|
-
tool_state?: string[] | undefined;
|
|
2494
|
-
}, {
|
|
2495
|
-
goal?: string | undefined;
|
|
2496
|
-
outcome?: string | undefined;
|
|
2497
|
-
files_touched?: string[] | undefined;
|
|
2498
|
-
tools_used?: string[] | undefined;
|
|
2499
|
-
rejected_approaches?: string[] | undefined;
|
|
2500
|
-
open_threads?: string[] | undefined;
|
|
2501
|
-
decisions?: string[] | undefined;
|
|
2502
|
-
file_edit_intentions?: string[] | undefined;
|
|
2503
|
-
unresolved_errors?: string[] | undefined;
|
|
2504
|
-
tool_state?: string[] | undefined;
|
|
2505
|
-
}>;
|
|
2506
|
-
type SessionSynopsis = z.infer<typeof SessionSynopsis>;
|
|
2507
|
-
|
|
2508
|
-
declare const RollbackBreadcrumb: z.ZodObject<{
|
|
2509
|
-
previousUpstreamSessionId: z.ZodString;
|
|
2510
|
-
previousSummarizedThroughEntry: z.ZodOptional<z.ZodNumber>;
|
|
2511
|
-
}, "strip", z.ZodTypeAny, {
|
|
2512
|
-
previousUpstreamSessionId: string;
|
|
2513
|
-
previousSummarizedThroughEntry?: number | undefined;
|
|
2514
|
-
}, {
|
|
2515
|
-
previousUpstreamSessionId: string;
|
|
2516
|
-
previousSummarizedThroughEntry?: number | undefined;
|
|
2517
|
-
}>;
|
|
2518
|
-
type RollbackBreadcrumb = z.infer<typeof RollbackBreadcrumb>;
|
|
2519
|
-
declare const SessionRecord: z.ZodObject<{
|
|
2520
|
-
version: z.ZodLiteral<1>;
|
|
2521
|
-
sessionId: z.ZodString;
|
|
2522
|
-
lineageId: z.ZodOptional<z.ZodString>;
|
|
2523
|
-
upstreamSessionId: z.ZodString;
|
|
2524
|
-
importedFromSessionId: z.ZodOptional<z.ZodString>;
|
|
2525
|
-
importedFromUpstreamSessionId: z.ZodOptional<z.ZodString>;
|
|
2526
|
-
importedFromMachine: z.ZodOptional<z.ZodString>;
|
|
2527
|
-
agentId: z.ZodString;
|
|
2528
|
-
cwd: z.ZodString;
|
|
2529
|
-
title: z.ZodOptional<z.ZodString>;
|
|
2530
|
-
synopsis: z.ZodOptional<z.ZodObject<{
|
|
2531
|
-
goal: z.ZodOptional<z.ZodString>;
|
|
2532
|
-
outcome: z.ZodOptional<z.ZodString>;
|
|
2533
|
-
files_touched: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2534
|
-
tools_used: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2535
|
-
rejected_approaches: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2536
|
-
open_threads: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2537
|
-
decisions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2538
|
-
file_edit_intentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2539
|
-
unresolved_errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2540
|
-
tool_state: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2541
|
-
}, "strip", z.ZodTypeAny, {
|
|
2542
|
-
goal?: string | undefined;
|
|
2543
|
-
outcome?: string | undefined;
|
|
2544
|
-
files_touched?: string[] | undefined;
|
|
2545
|
-
tools_used?: string[] | undefined;
|
|
2546
|
-
rejected_approaches?: string[] | undefined;
|
|
2547
|
-
open_threads?: string[] | undefined;
|
|
2548
|
-
decisions?: string[] | undefined;
|
|
2549
|
-
file_edit_intentions?: string[] | undefined;
|
|
2550
|
-
unresolved_errors?: string[] | undefined;
|
|
2551
|
-
tool_state?: string[] | undefined;
|
|
2552
|
-
}, {
|
|
2553
|
-
goal?: string | undefined;
|
|
2554
|
-
outcome?: string | undefined;
|
|
2555
|
-
files_touched?: string[] | undefined;
|
|
2556
|
-
tools_used?: string[] | undefined;
|
|
2557
|
-
rejected_approaches?: string[] | undefined;
|
|
2558
|
-
open_threads?: string[] | undefined;
|
|
2559
|
-
decisions?: string[] | undefined;
|
|
2560
|
-
file_edit_intentions?: string[] | undefined;
|
|
2561
|
-
unresolved_errors?: string[] | undefined;
|
|
2562
|
-
tool_state?: string[] | undefined;
|
|
2563
|
-
}>>;
|
|
2564
|
-
compactionState: z.ZodOptional<z.ZodObject<{
|
|
2565
|
-
status: z.ZodEnum<["requested", "running", "swap_pending", "swap_deferred", "failed"]>;
|
|
2566
|
-
requestedAt: z.ZodNumber;
|
|
2567
|
-
iter: z.ZodOptional<z.ZodNumber>;
|
|
2568
|
-
attempts: z.ZodOptional<z.ZodNumber>;
|
|
2569
|
-
lastError: z.ZodOptional<z.ZodString>;
|
|
2570
|
-
worker: z.ZodOptional<z.ZodObject<{
|
|
2571
|
-
upstreamSessionId: z.ZodString;
|
|
2572
|
-
pid: z.ZodNumber;
|
|
2573
|
-
}, "strip", z.ZodTypeAny, {
|
|
2574
|
-
pid: number;
|
|
2575
|
-
upstreamSessionId: string;
|
|
2576
|
-
}, {
|
|
2577
|
-
pid: number;
|
|
2578
|
-
upstreamSessionId: string;
|
|
2579
|
-
}>>;
|
|
2580
|
-
}, "strip", z.ZodTypeAny, {
|
|
2581
|
-
status: "requested" | "running" | "swap_pending" | "swap_deferred" | "failed";
|
|
2582
|
-
requestedAt: number;
|
|
2583
|
-
iter?: number | undefined;
|
|
2584
|
-
attempts?: number | undefined;
|
|
2585
|
-
lastError?: string | undefined;
|
|
2586
|
-
worker?: {
|
|
2587
|
-
pid: number;
|
|
2588
|
-
upstreamSessionId: string;
|
|
2589
|
-
} | undefined;
|
|
2590
|
-
}, {
|
|
2591
|
-
status: "requested" | "running" | "swap_pending" | "swap_deferred" | "failed";
|
|
2592
|
-
requestedAt: number;
|
|
2593
|
-
iter?: number | undefined;
|
|
2594
|
-
attempts?: number | undefined;
|
|
2595
|
-
lastError?: string | undefined;
|
|
2596
|
-
worker?: {
|
|
2597
|
-
pid: number;
|
|
2598
|
-
upstreamSessionId: string;
|
|
2599
|
-
} | undefined;
|
|
2600
|
-
}>>;
|
|
2601
|
-
rollbackBreadcrumb: z.ZodOptional<z.ZodObject<{
|
|
2602
|
-
previousUpstreamSessionId: z.ZodString;
|
|
2603
|
-
previousSummarizedThroughEntry: z.ZodOptional<z.ZodNumber>;
|
|
2604
|
-
}, "strip", z.ZodTypeAny, {
|
|
2605
|
-
previousUpstreamSessionId: string;
|
|
2606
|
-
previousSummarizedThroughEntry?: number | undefined;
|
|
2607
|
-
}, {
|
|
2608
|
-
previousUpstreamSessionId: string;
|
|
2609
|
-
previousSummarizedThroughEntry?: number | undefined;
|
|
2610
|
-
}>>;
|
|
2611
|
-
summarizedThroughEntry: z.ZodOptional<z.ZodNumber>;
|
|
2612
|
-
agentArgs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2613
|
-
currentModel: z.ZodOptional<z.ZodString>;
|
|
2614
|
-
currentMode: z.ZodOptional<z.ZodString>;
|
|
2615
|
-
currentUsage: z.ZodOptional<z.ZodObject<{
|
|
2616
|
-
used: z.ZodOptional<z.ZodNumber>;
|
|
2617
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
2618
|
-
costAmount: z.ZodOptional<z.ZodNumber>;
|
|
2619
|
-
costCurrency: z.ZodOptional<z.ZodString>;
|
|
2620
|
-
cumulativeCost: z.ZodOptional<z.ZodNumber>;
|
|
2621
|
-
}, "strip", z.ZodTypeAny, {
|
|
2622
|
-
used?: number | undefined;
|
|
2623
|
-
size?: number | undefined;
|
|
2624
|
-
costAmount?: number | undefined;
|
|
2625
|
-
costCurrency?: string | undefined;
|
|
2626
|
-
cumulativeCost?: number | undefined;
|
|
2627
|
-
}, {
|
|
2628
|
-
used?: number | undefined;
|
|
2629
|
-
size?: number | undefined;
|
|
2630
|
-
costAmount?: number | undefined;
|
|
2631
|
-
costCurrency?: string | undefined;
|
|
2632
|
-
cumulativeCost?: number | undefined;
|
|
2633
|
-
}>>;
|
|
2634
|
-
agentCommands: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2635
|
-
name: z.ZodString;
|
|
2636
|
-
description: z.ZodOptional<z.ZodString>;
|
|
2637
|
-
}, "strip", z.ZodTypeAny, {
|
|
2638
|
-
name: string;
|
|
2639
|
-
description?: string | undefined;
|
|
2640
|
-
}, {
|
|
2641
|
-
name: string;
|
|
2642
|
-
description?: string | undefined;
|
|
2643
|
-
}>, "many">>;
|
|
2644
|
-
agentModes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2645
|
-
id: z.ZodString;
|
|
2646
|
-
name: z.ZodOptional<z.ZodString>;
|
|
2647
|
-
description: z.ZodOptional<z.ZodString>;
|
|
2648
|
-
}, "strip", z.ZodTypeAny, {
|
|
2649
|
-
id: string;
|
|
2650
|
-
name?: string | undefined;
|
|
2651
|
-
description?: string | undefined;
|
|
2652
|
-
}, {
|
|
2653
|
-
id: string;
|
|
2654
|
-
name?: string | undefined;
|
|
2655
|
-
description?: string | undefined;
|
|
2656
|
-
}>, "many">>;
|
|
2657
|
-
agentModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2658
|
-
modelId: z.ZodString;
|
|
2659
|
-
name: z.ZodOptional<z.ZodString>;
|
|
2660
|
-
description: z.ZodOptional<z.ZodString>;
|
|
2661
|
-
}, "strip", z.ZodTypeAny, {
|
|
2662
|
-
modelId: string;
|
|
2663
|
-
name?: string | undefined;
|
|
2664
|
-
description?: string | undefined;
|
|
2665
|
-
}, {
|
|
2666
|
-
modelId: string;
|
|
2667
|
-
name?: string | undefined;
|
|
2668
|
-
description?: string | undefined;
|
|
2669
|
-
}>, "many">>;
|
|
2670
|
-
pendingHistorySync: z.ZodOptional<z.ZodBoolean>;
|
|
2671
|
-
pendingAgentSwap: z.ZodOptional<z.ZodString>;
|
|
2672
|
-
parentSessionId: z.ZodOptional<z.ZodString>;
|
|
2673
|
-
forkedFromSessionId: z.ZodOptional<z.ZodString>;
|
|
2674
|
-
forkedFromMessageId: z.ZodOptional<z.ZodString>;
|
|
2675
|
-
forkSynthesisState: z.ZodOptional<z.ZodEnum<["running", "failed"]>>;
|
|
2676
|
-
originatingClient: z.ZodOptional<z.ZodObject<{
|
|
2677
|
-
name: z.ZodString;
|
|
2678
|
-
version: z.ZodOptional<z.ZodString>;
|
|
2679
|
-
}, "strip", z.ZodTypeAny, {
|
|
2680
|
-
name: string;
|
|
2681
|
-
version?: string | undefined;
|
|
2682
|
-
}, {
|
|
2683
|
-
name: string;
|
|
2684
|
-
version?: string | undefined;
|
|
2685
|
-
}>>;
|
|
2686
|
-
interactive: z.ZodOptional<z.ZodBoolean>;
|
|
2687
|
-
priority: z.ZodOptional<z.ZodNumber>;
|
|
2688
|
-
forwardedEnv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2689
|
-
attentionFlags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2690
|
-
source: z.ZodString;
|
|
2691
|
-
reason: z.ZodString;
|
|
2692
|
-
raisedAt: z.ZodNumber;
|
|
2693
|
-
payload: z.ZodUnknown;
|
|
2694
|
-
}, "strip", z.ZodTypeAny, {
|
|
2695
|
-
source: string;
|
|
2696
|
-
reason: string;
|
|
2697
|
-
raisedAt: number;
|
|
2698
|
-
payload?: unknown;
|
|
2699
|
-
}, {
|
|
2700
|
-
source: string;
|
|
2701
|
-
reason: string;
|
|
2702
|
-
raisedAt: number;
|
|
2703
|
-
payload?: unknown;
|
|
2704
|
-
}>, "many">>>;
|
|
2705
|
-
extensionState: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
2706
|
-
createdAt: z.ZodString;
|
|
2707
|
-
updatedAt: z.ZodString;
|
|
2708
|
-
}, "strip", z.ZodTypeAny, {
|
|
2709
|
-
sessionId: string;
|
|
2710
|
-
version: 1;
|
|
2711
|
-
cwd: string;
|
|
2712
|
-
upstreamSessionId: string;
|
|
2713
|
-
agentId: string;
|
|
2714
|
-
updatedAt: string;
|
|
2715
|
-
createdAt: string;
|
|
2716
|
-
title?: string | undefined;
|
|
2717
|
-
agentArgs?: string[] | undefined;
|
|
2718
|
-
synopsis?: {
|
|
2719
|
-
goal?: string | undefined;
|
|
2720
|
-
outcome?: string | undefined;
|
|
2721
|
-
files_touched?: string[] | undefined;
|
|
2722
|
-
tools_used?: string[] | undefined;
|
|
2723
|
-
rejected_approaches?: string[] | undefined;
|
|
2724
|
-
open_threads?: string[] | undefined;
|
|
2725
|
-
decisions?: string[] | undefined;
|
|
2726
|
-
file_edit_intentions?: string[] | undefined;
|
|
2727
|
-
unresolved_errors?: string[] | undefined;
|
|
2728
|
-
tool_state?: string[] | undefined;
|
|
2729
|
-
} | undefined;
|
|
2730
|
-
currentModel?: string | undefined;
|
|
2731
|
-
currentUsage?: {
|
|
2732
|
-
used?: number | undefined;
|
|
2733
|
-
size?: number | undefined;
|
|
2734
|
-
costAmount?: number | undefined;
|
|
2735
|
-
costCurrency?: string | undefined;
|
|
2736
|
-
cumulativeCost?: number | undefined;
|
|
2737
|
-
} | undefined;
|
|
2738
|
-
importedFromMachine?: string | undefined;
|
|
2739
|
-
importedFromUpstreamSessionId?: string | undefined;
|
|
2740
|
-
parentSessionId?: string | undefined;
|
|
2741
|
-
forkedFromSessionId?: string | undefined;
|
|
2742
|
-
forkedFromMessageId?: string | undefined;
|
|
2743
|
-
originatingClient?: {
|
|
2744
|
-
name: string;
|
|
2745
|
-
version?: string | undefined;
|
|
2746
|
-
} | undefined;
|
|
2747
|
-
interactive?: boolean | undefined;
|
|
2748
|
-
priority?: number | undefined;
|
|
2749
|
-
compactionState?: {
|
|
2750
|
-
status: "requested" | "running" | "swap_pending" | "swap_deferred" | "failed";
|
|
2751
|
-
requestedAt: number;
|
|
2752
|
-
iter?: number | undefined;
|
|
2753
|
-
attempts?: number | undefined;
|
|
2754
|
-
lastError?: string | undefined;
|
|
2755
|
-
worker?: {
|
|
2756
|
-
pid: number;
|
|
2757
|
-
upstreamSessionId: string;
|
|
2758
|
-
} | undefined;
|
|
2759
|
-
} | undefined;
|
|
2760
|
-
forkSynthesisState?: "running" | "failed" | undefined;
|
|
2761
|
-
currentMode?: string | undefined;
|
|
2762
|
-
lineageId?: string | undefined;
|
|
2763
|
-
importedFromSessionId?: string | undefined;
|
|
2764
|
-
rollbackBreadcrumb?: {
|
|
2765
|
-
previousUpstreamSessionId: string;
|
|
2766
|
-
previousSummarizedThroughEntry?: number | undefined;
|
|
2767
|
-
} | undefined;
|
|
2768
|
-
summarizedThroughEntry?: number | undefined;
|
|
2769
|
-
agentCommands?: {
|
|
2770
|
-
name: string;
|
|
2771
|
-
description?: string | undefined;
|
|
2772
|
-
}[] | undefined;
|
|
2773
|
-
agentModes?: {
|
|
2774
|
-
id: string;
|
|
2775
|
-
name?: string | undefined;
|
|
2776
|
-
description?: string | undefined;
|
|
2777
|
-
}[] | undefined;
|
|
2778
|
-
agentModels?: {
|
|
2779
|
-
modelId: string;
|
|
2780
|
-
name?: string | undefined;
|
|
2781
|
-
description?: string | undefined;
|
|
2782
|
-
}[] | undefined;
|
|
2783
|
-
pendingHistorySync?: boolean | undefined;
|
|
2784
|
-
pendingAgentSwap?: string | undefined;
|
|
2785
|
-
forwardedEnv?: Record<string, string> | undefined;
|
|
2786
|
-
attentionFlags?: {
|
|
2787
|
-
source: string;
|
|
2788
|
-
reason: string;
|
|
2789
|
-
raisedAt: number;
|
|
2790
|
-
payload?: unknown;
|
|
2791
|
-
}[] | undefined;
|
|
2792
|
-
extensionState?: Record<string, Record<string, unknown>> | undefined;
|
|
2793
|
-
}, {
|
|
2794
|
-
sessionId: string;
|
|
2795
|
-
version: 1;
|
|
2796
|
-
cwd: string;
|
|
2797
|
-
upstreamSessionId: string;
|
|
2798
|
-
agentId: string;
|
|
2799
|
-
updatedAt: string;
|
|
2800
|
-
createdAt: string;
|
|
2801
|
-
title?: string | undefined;
|
|
2802
|
-
agentArgs?: string[] | undefined;
|
|
2803
|
-
synopsis?: {
|
|
2804
|
-
goal?: string | undefined;
|
|
2805
|
-
outcome?: string | undefined;
|
|
2806
|
-
files_touched?: string[] | undefined;
|
|
2807
|
-
tools_used?: string[] | undefined;
|
|
2808
|
-
rejected_approaches?: string[] | undefined;
|
|
2809
|
-
open_threads?: string[] | undefined;
|
|
2810
|
-
decisions?: string[] | undefined;
|
|
2811
|
-
file_edit_intentions?: string[] | undefined;
|
|
2812
|
-
unresolved_errors?: string[] | undefined;
|
|
2813
|
-
tool_state?: string[] | undefined;
|
|
2814
|
-
} | undefined;
|
|
2815
|
-
currentModel?: string | undefined;
|
|
2816
|
-
currentUsage?: {
|
|
2817
|
-
used?: number | undefined;
|
|
2818
|
-
size?: number | undefined;
|
|
2819
|
-
costAmount?: number | undefined;
|
|
2820
|
-
costCurrency?: string | undefined;
|
|
2821
|
-
cumulativeCost?: number | undefined;
|
|
2822
|
-
} | undefined;
|
|
2823
|
-
importedFromMachine?: string | undefined;
|
|
2824
|
-
importedFromUpstreamSessionId?: string | undefined;
|
|
2825
|
-
parentSessionId?: string | undefined;
|
|
2826
|
-
forkedFromSessionId?: string | undefined;
|
|
2827
|
-
forkedFromMessageId?: string | undefined;
|
|
2828
|
-
originatingClient?: {
|
|
2829
|
-
name: string;
|
|
2830
|
-
version?: string | undefined;
|
|
2831
|
-
} | undefined;
|
|
2832
|
-
interactive?: boolean | undefined;
|
|
2833
|
-
priority?: number | undefined;
|
|
2834
|
-
compactionState?: {
|
|
2835
|
-
status: "requested" | "running" | "swap_pending" | "swap_deferred" | "failed";
|
|
2836
|
-
requestedAt: number;
|
|
2837
|
-
iter?: number | undefined;
|
|
2838
|
-
attempts?: number | undefined;
|
|
2839
|
-
lastError?: string | undefined;
|
|
2840
|
-
worker?: {
|
|
2841
|
-
pid: number;
|
|
2842
|
-
upstreamSessionId: string;
|
|
2843
|
-
} | undefined;
|
|
2844
|
-
} | undefined;
|
|
2845
|
-
forkSynthesisState?: "running" | "failed" | undefined;
|
|
2846
|
-
currentMode?: string | undefined;
|
|
2847
|
-
lineageId?: string | undefined;
|
|
2848
|
-
importedFromSessionId?: string | undefined;
|
|
2849
|
-
rollbackBreadcrumb?: {
|
|
2850
|
-
previousUpstreamSessionId: string;
|
|
2851
|
-
previousSummarizedThroughEntry?: number | undefined;
|
|
2852
|
-
} | undefined;
|
|
2853
|
-
summarizedThroughEntry?: number | undefined;
|
|
2854
|
-
agentCommands?: {
|
|
2855
|
-
name: string;
|
|
2856
|
-
description?: string | undefined;
|
|
2857
|
-
}[] | undefined;
|
|
2858
|
-
agentModes?: {
|
|
2859
|
-
id: string;
|
|
2860
|
-
name?: string | undefined;
|
|
2861
|
-
description?: string | undefined;
|
|
2862
|
-
}[] | undefined;
|
|
2863
|
-
agentModels?: {
|
|
2864
|
-
modelId: string;
|
|
2865
|
-
name?: string | undefined;
|
|
2866
|
-
description?: string | undefined;
|
|
2867
|
-
}[] | undefined;
|
|
2868
|
-
pendingHistorySync?: boolean | undefined;
|
|
2869
|
-
pendingAgentSwap?: string | undefined;
|
|
2870
|
-
forwardedEnv?: Record<string, string> | undefined;
|
|
2871
|
-
attentionFlags?: {
|
|
2872
|
-
source: string;
|
|
2873
|
-
reason: string;
|
|
2874
|
-
raisedAt: number;
|
|
2875
|
-
payload?: unknown;
|
|
2876
|
-
}[] | undefined;
|
|
2877
|
-
extensionState?: Record<string, Record<string, unknown>> | undefined;
|
|
2878
|
-
}>;
|
|
2879
|
-
type SessionRecord = z.infer<typeof SessionRecord>;
|
|
2880
|
-
declare class SessionStore {
|
|
2881
|
-
write(record: Omit<SessionRecord, "version">): Promise<void>;
|
|
2882
|
-
read(sessionId: string): Promise<SessionRecord | undefined>;
|
|
2883
|
-
delete(sessionId: string): Promise<void>;
|
|
2884
|
-
findByLineageId(lineageId: string): Promise<SessionRecord | undefined>;
|
|
2885
|
-
list(): Promise<SessionRecord[]>;
|
|
2886
|
-
}
|
|
2887
|
-
|
|
2888
|
-
interface PersistedQueueEntry {
|
|
2889
|
-
messageId: string;
|
|
2890
|
-
originator: {
|
|
2891
|
-
clientInfo: {
|
|
2892
|
-
name?: string;
|
|
2893
|
-
version?: string;
|
|
2894
|
-
};
|
|
2895
|
-
};
|
|
2896
|
-
prompt: unknown[];
|
|
2897
|
-
enqueuedAt: number;
|
|
2898
|
-
}
|
|
2899
|
-
|
|
2900
|
-
interface AttachedClient {
|
|
2901
|
-
clientId: string;
|
|
2902
|
-
connection: JsonRpcConnection;
|
|
2903
|
-
clientInfo?: {
|
|
2904
|
-
name: string;
|
|
2905
|
-
version?: string;
|
|
2906
|
-
};
|
|
2907
|
-
readonly?: boolean;
|
|
2908
|
-
}
|
|
2909
|
-
type CachedNotification = HistoryEntry;
|
|
2910
|
-
interface SpawnReplacementAgentParams {
|
|
2911
|
-
agentId: string;
|
|
2912
|
-
cwd: string;
|
|
2913
|
-
agentArgs?: string[];
|
|
2914
|
-
forwardedEnv?: Record<string, string>;
|
|
2915
|
-
mcpServers?: unknown[];
|
|
2916
|
-
}
|
|
2917
|
-
interface SpawnReplacementAgentResult {
|
|
2918
|
-
agent: AgentInstance;
|
|
2919
|
-
upstreamSessionId: string;
|
|
2920
|
-
agentMeta?: Record<string, unknown>;
|
|
2921
|
-
agentCapabilities?: AgentCapabilities;
|
|
2922
|
-
initialModel?: string;
|
|
2923
|
-
initialModels?: AdvertisedModel[];
|
|
2924
|
-
initialMode?: string;
|
|
2925
|
-
initialModes?: AdvertisedMode[];
|
|
2926
|
-
}
|
|
2927
|
-
type SpawnReplacementAgent = (params: SpawnReplacementAgentParams) => Promise<SpawnReplacementAgentResult>;
|
|
2928
|
-
type LoadExistingAgentSession = (upstreamSessionId: string, params: SpawnReplacementAgentParams) => Promise<SpawnReplacementAgentResult>;
|
|
2929
|
-
interface UsageSnapshot {
|
|
2930
|
-
used?: number;
|
|
2931
|
-
size?: number;
|
|
2932
|
-
costAmount?: number;
|
|
2933
|
-
costCurrency?: string;
|
|
2934
|
-
cumulativeCost?: number;
|
|
2935
|
-
}
|
|
2936
|
-
interface SessionInit {
|
|
2937
|
-
cwd: string;
|
|
2938
|
-
agentId: string;
|
|
2939
|
-
agent: AgentInstance;
|
|
2940
|
-
upstreamSessionId: string;
|
|
2941
|
-
title?: string;
|
|
2942
|
-
sessionId?: string;
|
|
2943
|
-
agentMeta?: Record<string, unknown>;
|
|
2944
|
-
agentCapabilities?: AgentCapabilities;
|
|
2945
|
-
agentArgs?: string[];
|
|
2946
|
-
idleTimeoutMs?: number;
|
|
2947
|
-
logger?: {
|
|
2948
|
-
info: (msg: string) => void;
|
|
2949
|
-
warn: (msg: string) => void;
|
|
2950
|
-
};
|
|
2951
|
-
spawnReplacementAgent?: SpawnReplacementAgent;
|
|
2952
|
-
mintMcpServersForSwap?: (session: Session) => Promise<unknown[]>;
|
|
2953
|
-
historyStore?: HistoryStore;
|
|
2954
|
-
historyMaxEntries?: number;
|
|
2955
|
-
currentModel?: string;
|
|
2956
|
-
currentMode?: string;
|
|
2957
|
-
currentUsage?: UsageSnapshot;
|
|
2958
|
-
agentCommands?: AdvertisedCommand[];
|
|
2959
|
-
agentModes?: AdvertisedMode[];
|
|
2960
|
-
agentModels?: AdvertisedModel[];
|
|
2961
|
-
firstPromptSeeded?: boolean;
|
|
2962
|
-
scheduleSynopsis?: () => void;
|
|
2963
|
-
scheduleCompaction?: (opts?: {
|
|
2964
|
-
targetAgentId?: string;
|
|
2965
|
-
}) => void;
|
|
2966
|
-
resolveAgentId?: (id: string) => Promise<string | undefined>;
|
|
2967
|
-
getCompactionState?: () => Promise<CompactionState | undefined>;
|
|
2968
|
-
getPendingAgentSwap?: () => Promise<string | undefined>;
|
|
2969
|
-
createdAt?: number;
|
|
2970
|
-
transformChain?: TransformerRef[];
|
|
2971
|
-
idleEventTimeoutMs?: number;
|
|
2972
|
-
parentSessionId?: string;
|
|
2973
|
-
forkedFromSessionId?: string;
|
|
2974
|
-
forkedFromMessageId?: string;
|
|
2975
|
-
forkSynthesisState?: "running" | "failed";
|
|
2976
|
-
originatingClient?: {
|
|
2977
|
-
name: string;
|
|
2978
|
-
version?: string;
|
|
2979
|
-
};
|
|
2980
|
-
interactive?: boolean;
|
|
2981
|
-
priority?: number;
|
|
2982
|
-
forwardedEnv?: Record<string, string>;
|
|
2983
|
-
listSessions?: () => Promise<{
|
|
2984
|
-
sessionId: string;
|
|
2985
|
-
title?: string;
|
|
2986
|
-
cwd: string;
|
|
2987
|
-
agentId?: string;
|
|
2988
|
-
currentModel?: string;
|
|
2989
|
-
}[]>;
|
|
2990
|
-
extensionCommands?: ExtensionCommandRegistry;
|
|
2991
|
-
availableAgents?: () => Array<{
|
|
2992
|
-
id: string;
|
|
2993
|
-
name?: string;
|
|
2994
|
-
description?: string;
|
|
2995
|
-
}>;
|
|
2996
|
-
summarizedThroughEntry?: number;
|
|
2997
|
-
compactionState?: CompactionState;
|
|
2998
|
-
attentionFlags?: AttentionFlag[];
|
|
2999
|
-
mcpServers?: unknown[];
|
|
3000
|
-
loadExistingAgentSession?: LoadExistingAgentSession;
|
|
3001
|
-
clearRollbackBreadcrumbHook?: () => void;
|
|
3002
|
-
onCompactionSwapHook?: (breadcrumb: RollbackBreadcrumb) => void;
|
|
3003
|
-
uncompactHook?: () => Promise<void>;
|
|
3004
|
-
}
|
|
3005
|
-
interface CloseOptions {
|
|
3006
|
-
deleteRecord?: boolean;
|
|
3007
|
-
}
|
|
3008
|
-
declare class Session {
|
|
3009
|
-
readonly sessionId: string;
|
|
3010
|
-
readonly cwd: string;
|
|
3011
|
-
agentId: string;
|
|
3012
|
-
agent: AgentInstance;
|
|
3013
|
-
upstreamSessionId: string;
|
|
3014
|
-
agentMeta: Record<string, unknown> | undefined;
|
|
3015
|
-
agentCapabilities: AgentCapabilities | undefined;
|
|
3016
|
-
readonly agentArgs: string[] | undefined;
|
|
3017
|
-
readonly parentSessionId: string | undefined;
|
|
3018
|
-
readonly forkedFromSessionId: string | undefined;
|
|
3019
|
-
readonly forkedFromMessageId: string | undefined;
|
|
3020
|
-
forkSynthesisState: "running" | "failed" | undefined;
|
|
3021
|
-
readonly originatingClient: {
|
|
3022
|
-
name: string;
|
|
3023
|
-
version?: string;
|
|
3024
|
-
} | undefined;
|
|
3025
|
-
private _interactive;
|
|
3026
|
-
get interactive(): boolean | undefined;
|
|
3027
|
-
private _priority;
|
|
3028
|
-
get priority(): number | undefined;
|
|
3029
|
-
title: string | undefined;
|
|
3030
|
-
private _summarizedThroughEntry;
|
|
3031
|
-
get summarizedThroughEntry(): number | undefined;
|
|
3032
|
-
set summarizedThroughEntry(value: number | undefined);
|
|
3033
|
-
currentModel: string | undefined;
|
|
3034
|
-
currentMode: string | undefined;
|
|
3035
|
-
compactionState: CompactionState | undefined;
|
|
3036
|
-
private _currentUsage;
|
|
3037
|
-
updatedAt: number;
|
|
3038
|
-
readonly createdAt: number;
|
|
3039
|
-
private clients;
|
|
3040
|
-
private historyStore;
|
|
3041
|
-
private promptQueue;
|
|
3042
|
-
private currentEntry;
|
|
3043
|
-
private promptInFlight;
|
|
3044
|
-
private modeChangeInFlight;
|
|
3045
|
-
private modelChangeInFlight;
|
|
3046
|
-
private queueWriteChain;
|
|
3047
|
-
private closed;
|
|
3048
|
-
private closing;
|
|
3049
|
-
private closeInFlight;
|
|
3050
|
-
private deleteRecordIntent;
|
|
3051
|
-
private closeHandlers;
|
|
3052
|
-
private titleHandlers;
|
|
3053
|
-
private scheduleSynopsisHook?;
|
|
3054
|
-
private scheduleCompactionHook?;
|
|
3055
|
-
private resolveAgentIdHook?;
|
|
3056
|
-
private getCompactionStateHook?;
|
|
3057
|
-
private getPendingAgentSwapHook?;
|
|
3058
|
-
private _liveCompactionPhase;
|
|
3059
|
-
private broadcastHandlers;
|
|
3060
|
-
private lastCancelAt;
|
|
3061
|
-
private static readonly CANCEL_ERROR_WINDOW_MS;
|
|
3062
|
-
private forceCancelling;
|
|
3063
|
-
private _firstPromptSeeded;
|
|
3064
|
-
get firstPromptSeeded(): boolean;
|
|
3065
|
-
private promptStartedAt;
|
|
3066
|
-
private appendCount;
|
|
3067
|
-
private historyMaxEntries;
|
|
3068
|
-
private compactEvery;
|
|
3069
|
-
private permissionCallbacks;
|
|
3070
|
-
private attentionFlags;
|
|
3071
|
-
private get hasPermissionFlag();
|
|
3072
|
-
private attentionFlagsChangeHandlers;
|
|
3073
|
-
private internalPromptCapture;
|
|
3074
|
-
private idleTimeoutMs;
|
|
3075
|
-
private idleTimer;
|
|
3076
|
-
private idleEventTimeoutMs;
|
|
3077
|
-
private idleHandlers;
|
|
3078
|
-
private lastRecordedAt;
|
|
3079
|
-
private spawnReplacementAgent;
|
|
3080
|
-
private mintMcpServersForSwap;
|
|
3081
|
-
private loadExistingAgentSession;
|
|
3082
|
-
private clearRollbackBreadcrumbHook;
|
|
3083
|
-
private onCompactionSwapHook;
|
|
3084
|
-
private uncompactHook;
|
|
3085
|
-
private readonly mcpServersConfig;
|
|
3086
|
-
forwardedEnv: Record<string, string> | undefined;
|
|
3087
|
-
private listSessions;
|
|
3088
|
-
private logger;
|
|
3089
|
-
private transformChain;
|
|
3090
|
-
private extensionCommands;
|
|
3091
|
-
private extensionCommandsUnsub;
|
|
3092
|
-
private pendingClaims;
|
|
3093
|
-
private toolCompletionSeen;
|
|
3094
|
-
private toolCallKind;
|
|
3095
|
-
private filesEditedSeen;
|
|
3096
|
-
private agentChangeHandlers;
|
|
3097
|
-
private agentAdvertisedCommands;
|
|
3098
|
-
private agentAdvertisedModes;
|
|
3099
|
-
private agentAdvertisedModels;
|
|
3100
|
-
private agentAdvertisedConfigOptions;
|
|
3101
|
-
private agentCommandsHandlers;
|
|
3102
|
-
private agentModesHandlers;
|
|
3103
|
-
private agentModelsHandlers;
|
|
3104
|
-
private availableAgentsFn?;
|
|
3105
|
-
private modelHandlers;
|
|
3106
|
-
private modeHandlers;
|
|
3107
|
-
private interactiveHandlers;
|
|
3108
|
-
private priorityHandlers;
|
|
3109
|
-
private usageHandlers;
|
|
3110
|
-
private cumulativeCost;
|
|
3111
|
-
get currentUsage(): UsageSnapshot | undefined;
|
|
3112
|
-
private amendInProgress;
|
|
3113
|
-
private inFlightExtensionDispatches;
|
|
3114
|
-
private recentlyTerminal;
|
|
3115
|
-
private streamBuffer;
|
|
3116
|
-
private streamFilePath;
|
|
3117
|
-
constructor(init: SessionInit);
|
|
3118
|
-
private broadcastMergedCommands;
|
|
3119
|
-
private broadcastAvailableModes;
|
|
3120
|
-
private broadcastAvailableModels;
|
|
3121
|
-
private wireAgent;
|
|
3122
|
-
private handleOrphanError;
|
|
3123
|
-
private runResponseChain;
|
|
3124
|
-
onAgentChange(handler: (info: {
|
|
3125
|
-
agentId: string;
|
|
3126
|
-
upstreamSessionId: string;
|
|
3127
|
-
}) => void): void;
|
|
3128
|
-
get attachedCount(): number;
|
|
3129
|
-
connectedClients(excludeClientId?: string): Array<{
|
|
3130
|
-
clientId: string;
|
|
3131
|
-
name?: string;
|
|
3132
|
-
version?: string;
|
|
3133
|
-
}>;
|
|
3134
|
-
get turnStartedAt(): number | undefined;
|
|
3135
|
-
get awaitingInput(): boolean;
|
|
3136
|
-
isQuiescedForSwap(): Promise<boolean>;
|
|
3137
|
-
isQuiescedSync(): boolean;
|
|
3138
|
-
swapUpstream(opts: {
|
|
3139
|
-
artifact: SessionSynopsis;
|
|
3140
|
-
title?: string;
|
|
3141
|
-
tailK: number;
|
|
3142
|
-
tailFloor?: number;
|
|
3143
|
-
summarizedThroughEntry?: number;
|
|
3144
|
-
newAgentId?: string;
|
|
3145
|
-
}): Promise<void>;
|
|
3146
|
-
rollbackToUpstream(opts: {
|
|
3147
|
-
previousUpstreamSessionId: string;
|
|
3148
|
-
previousSummarizedThroughEntry?: number;
|
|
3149
|
-
}): Promise<void>;
|
|
3150
|
-
private _hasOpenToolCall;
|
|
3151
|
-
getHistorySnapshot(tools?: "inline" | "references"): Promise<CachedNotification[]>;
|
|
3152
|
-
onBroadcast(handler: (entry: CachedNotification) => void): () => void;
|
|
3153
|
-
broadcastClientUpdate(update: Record<string, unknown>): void;
|
|
3154
|
-
broadcastCompactionPhase(update: Record<string, unknown>): void;
|
|
3155
|
-
attach(client: AttachedClient, historyPolicy: HistoryPolicy, opts?: {
|
|
3156
|
-
afterMessageId?: string;
|
|
3157
|
-
raw?: boolean;
|
|
3158
|
-
toolContent?: "inline" | "references";
|
|
3159
|
-
}): Promise<{
|
|
3160
|
-
entries: CachedNotification[];
|
|
3161
|
-
appliedPolicy: HistoryPolicy;
|
|
3162
|
-
}>;
|
|
3163
|
-
private loadReplay;
|
|
3164
|
-
private buildStateSnapshotReplay;
|
|
3165
|
-
replayPendingPermissions(client: AttachedClient): void;
|
|
3166
|
-
detach(clientId: string): void;
|
|
3167
|
-
private broadcastClientDisconnected;
|
|
3168
|
-
prompt(clientId: string, params: unknown): Promise<unknown>;
|
|
3169
|
-
private broadcastPromptReceived;
|
|
3170
|
-
private recordCurrentUsageSnapshot;
|
|
3171
|
-
private broadcastTurnComplete;
|
|
3172
|
-
private recordTerminal;
|
|
3173
|
-
private broadcastPromptAmended;
|
|
3174
|
-
private findUserEntry;
|
|
3175
|
-
private visibleQueueDepth;
|
|
3176
|
-
private broadcastQueueAdded;
|
|
3177
|
-
private broadcastQueueUpdated;
|
|
3178
|
-
private broadcastQueueRemoved;
|
|
3179
|
-
private broadcastQueueNotification;
|
|
3180
|
-
queueSnapshot(): PromptQueueEntry[];
|
|
3181
|
-
flushPersistWrites(): Promise<void>;
|
|
3182
|
-
replayPersistedQueue(entries: PersistedQueueEntry[]): void;
|
|
3183
|
-
cancelQueuedPrompt(messageId: string): CancelPromptResult;
|
|
3184
|
-
updateQueuedPrompt(messageId: string, prompt: unknown[]): UpdatePromptResult;
|
|
3185
|
-
amendPrompt(clientId: string, params: AmendPromptParams): AmendPromptResult;
|
|
3186
|
-
private amendOnHead;
|
|
3187
|
-
private enqueueAmendmentAsFollowUp;
|
|
3188
|
-
cancel(clientId: string): Promise<void>;
|
|
3189
|
-
addTransformer(ref: TransformerRef): void;
|
|
3190
|
-
forwardRequest(method: string, params: unknown, originatedBy?: Set<string>, startIdx?: number, tailKind?: "request" | "notification"): Promise<unknown>;
|
|
3191
|
-
runAgentRequestChain(method: string, params: unknown, originatedBy?: Set<string>, startIdx?: number): Promise<{
|
|
3192
|
-
shortCircuit: false;
|
|
3193
|
-
envelope: unknown;
|
|
3194
|
-
} | {
|
|
3195
|
-
shortCircuit: true;
|
|
3196
|
-
payload: unknown;
|
|
3197
|
-
}>;
|
|
3198
|
-
dischargeClaim(token: string, result: unknown): boolean;
|
|
3199
|
-
keepAliveClaim(token: string, estimatedRemainingMs?: number): boolean;
|
|
3200
|
-
emitToChain(emitterName: string, method: string, envelope: unknown): Promise<unknown>;
|
|
3201
|
-
emitToQueue(emitterName: string, envelope: unknown): Promise<unknown>;
|
|
3202
|
-
private rewriteForAgent;
|
|
3203
|
-
close(opts?: CloseOptions): Promise<void>;
|
|
3204
|
-
private doClose;
|
|
3205
|
-
onClose(handler: (opts: {
|
|
3206
|
-
deleteRecord: boolean;
|
|
3207
|
-
}) => void): () => void;
|
|
3208
|
-
onTitleChange(handler: (title: string) => void): void;
|
|
3209
|
-
retitle(title: string): Promise<unknown>;
|
|
3210
|
-
retitleFromAgent(): Promise<unknown>;
|
|
3211
|
-
private setTitle;
|
|
3212
|
-
private maybeSeedTitleFromPrompt;
|
|
3213
|
-
private maybeApplyAgentModel;
|
|
3214
|
-
private maybeApplyAgentConfigOption;
|
|
3215
|
-
private maybeApplyAgentMode;
|
|
3216
|
-
private maybeApplyAgentUsage;
|
|
3217
|
-
private accumulateAndResetCost;
|
|
3218
|
-
private injectCumulativeCost;
|
|
3219
|
-
get totalUsage(): UsageSnapshot | undefined;
|
|
3220
|
-
private setAgentAdvertisedCommands;
|
|
3221
|
-
private setAgentAdvertisedModes;
|
|
3222
|
-
private setAgentAdvertisedModels;
|
|
3223
|
-
onAgentCommandsChange(handler: (commands: AdvertisedCommand[]) => void): void;
|
|
3224
|
-
onAgentModesChange(handler: (modes: AdvertisedMode[]) => void): void;
|
|
3225
|
-
onAgentModelsChange(handler: (models: AdvertisedModel[]) => void): void;
|
|
3226
|
-
onModelChange(handler: (model: string) => void): void;
|
|
3227
|
-
onModeChange(handler: (mode: string) => void): void;
|
|
3228
|
-
onInteractiveChange(handler: (interactive: boolean) => void): void;
|
|
3229
|
-
onPriorityChange(handler: (priority: number | undefined) => void): void;
|
|
3230
|
-
setPriority(priority: number | undefined): void;
|
|
3231
|
-
applyModelChange(modelId: string): void;
|
|
3232
|
-
applyModeChange(modeId: string): void;
|
|
3233
|
-
buildConfigOptions(): ConfigOption[];
|
|
3234
|
-
private broadcastConfigOptions;
|
|
3235
|
-
private mergeAgentOptionIntoEnvelope;
|
|
3236
|
-
onUsageChange(handler: (usage: UsageSnapshot) => void): void;
|
|
3237
|
-
mergedAvailableCommands(): AdvertisedCommand[];
|
|
3238
|
-
private daemonTopLevelCommands;
|
|
3239
|
-
private aliasableBareVerbs;
|
|
3240
|
-
agentOnlyAdvertisedCommands(): AdvertisedCommand[];
|
|
3241
|
-
availableModes(): AdvertisedMode[];
|
|
3242
|
-
availableModels(): AdvertisedModel[];
|
|
3243
|
-
private maybeApplyAgentSessionInfo;
|
|
3244
|
-
private handleSlashCommand;
|
|
3245
|
-
private runExtensionCommand;
|
|
3246
|
-
private runExtensionCommandInline;
|
|
3247
|
-
private cancelExtensionDispatch;
|
|
3248
|
-
private emitExtensionReply;
|
|
3249
|
-
private handleSessionsCommand;
|
|
3250
|
-
private handleHelpCommand;
|
|
3251
|
-
private handleModelCommand;
|
|
3252
|
-
private handleModeCommand;
|
|
3253
|
-
private handleConfigCommand;
|
|
3254
|
-
private runTitleCommand;
|
|
3255
|
-
private runTitleCommandInline;
|
|
3256
|
-
private runInternalPrompt;
|
|
3257
|
-
setAgent(newAgentId: string): Promise<unknown>;
|
|
3258
|
-
private runAgentCommand;
|
|
3259
|
-
private runAgentCommandInline;
|
|
3260
|
-
private runAgentStatusCommandInline;
|
|
3261
|
-
private runKillCommand;
|
|
3262
|
-
private runRestartCommand;
|
|
3263
|
-
private runRestartCommandInline;
|
|
3264
|
-
private runCompactCommand;
|
|
3265
|
-
private runCompactCommandInline;
|
|
3266
|
-
private runCompactStatusCommandInline;
|
|
3267
|
-
private runUncompactCommand;
|
|
3268
|
-
private runUncompactCommandInline;
|
|
3269
|
-
forceCancel(): Promise<{
|
|
3270
|
-
stopReason: string;
|
|
3271
|
-
}>;
|
|
3272
|
-
private respawnAgent;
|
|
3273
|
-
private buildSwitchTranscript;
|
|
3274
|
-
seedFromImport(): Promise<void>;
|
|
3275
|
-
seedFromFork(synopsis?: SessionSynopsis): Promise<void>;
|
|
3276
|
-
private broadcastAgentSwitch;
|
|
3277
|
-
broadcastPendingAgentSwap(targetAgentId: string | null): void;
|
|
3278
|
-
hasStreamBuffer(): boolean;
|
|
3279
|
-
get streamPath(): string | undefined;
|
|
3280
|
-
openStream(opts: {
|
|
3281
|
-
mode?: "memory" | "file";
|
|
3282
|
-
capacityBytes?: number;
|
|
3283
|
-
fileCapBytes?: number;
|
|
3284
|
-
filePathFor?: (sessionId: string) => string;
|
|
3285
|
-
}): {
|
|
3286
|
-
filePath?: string;
|
|
3287
|
-
capacityBytes: number;
|
|
3288
|
-
fileCapBytes?: number;
|
|
3289
|
-
};
|
|
3290
|
-
streamWrite(chunkB64: string, eof?: boolean): {
|
|
3291
|
-
writeCursor: number;
|
|
3292
|
-
};
|
|
3293
|
-
streamRead(cursor: number, maxBytes: number | undefined, waitMs: number | undefined): Promise<{
|
|
3294
|
-
bytes: string;
|
|
3295
|
-
nextCursor: number;
|
|
3296
|
-
gap?: number;
|
|
3297
|
-
eof?: boolean;
|
|
3298
|
-
}>;
|
|
3299
|
-
streamTail(bytes: number): {
|
|
3300
|
-
bytes: string;
|
|
3301
|
-
startCursor: number;
|
|
3302
|
-
endCursor: number;
|
|
3303
|
-
truncated: boolean;
|
|
3304
|
-
};
|
|
3305
|
-
streamHead(bytes: number): {
|
|
3306
|
-
bytes: string;
|
|
3307
|
-
startCursor: number;
|
|
3308
|
-
endCursor: number;
|
|
3309
|
-
truncated: boolean;
|
|
3310
|
-
};
|
|
3311
|
-
streamWaitFor(cursor: number, timeoutMs: number): Promise<"data" | "eof" | "timeout">;
|
|
3312
|
-
streamGrep(opts: StreamGrepOptions): StreamGrepResult;
|
|
3313
|
-
streamInfo(): {
|
|
3314
|
-
writeCursor: number;
|
|
3315
|
-
oldestAvailable: number;
|
|
3316
|
-
capacity: number;
|
|
3317
|
-
closed: boolean;
|
|
3318
|
-
};
|
|
3319
|
-
private requireStreamBuffer;
|
|
3320
|
-
private markClosed;
|
|
3321
|
-
private get lastActivityAt();
|
|
3322
|
-
setAttentionFlag(source: string, reason: string, payload: unknown): void;
|
|
3323
|
-
private _setAttentionFlag;
|
|
3324
|
-
clearAttentionFlag(source: string, reason: string): void;
|
|
3325
|
-
private _clearAttentionFlag;
|
|
3326
|
-
listAttentionFlags(): AttentionFlag[];
|
|
3327
|
-
listAttentionFlagsBySource(source: string): AttentionFlag[];
|
|
3328
|
-
onAttentionFlagsChange(handler: (flags: AttentionFlag[]) => void): void;
|
|
3329
|
-
private fireAttentionFlagsChange;
|
|
3330
|
-
private broadcastAttentionUpdated;
|
|
3331
|
-
private scheduleIdleCheck;
|
|
3332
|
-
private armIdleTimer;
|
|
3333
|
-
private checkIdle;
|
|
3334
|
-
private cancelIdleTimer;
|
|
3335
|
-
onIdle(fn: (s: Session) => void, opts?: {
|
|
3336
|
-
once?: boolean;
|
|
3337
|
-
debounceMs?: number;
|
|
3338
|
-
}): () => void;
|
|
3339
|
-
onceIdle(fn: (s: Session) => void): () => void;
|
|
3340
|
-
private dispatchIdle;
|
|
3341
|
-
private disposeIdleHandlers;
|
|
3342
|
-
private maybeEmitToolEdges;
|
|
3343
|
-
private notifyChain;
|
|
3344
|
-
private rewriteForClient;
|
|
3345
|
-
private recordAndBroadcast;
|
|
3346
|
-
requestPermissionFromClients(params: unknown): Promise<unknown>;
|
|
3347
|
-
private handlePermissionRequest;
|
|
3348
|
-
private enqueuePrompt;
|
|
3349
|
-
private enqueueUserPrompt;
|
|
3350
|
-
private parseQueuePosition;
|
|
3351
|
-
private insertEntryAt;
|
|
3352
|
-
private persistRewrite;
|
|
3353
|
-
private persistedFromEntry;
|
|
3354
|
-
private drainQueue;
|
|
3355
|
-
private runQueueEntry;
|
|
3356
|
-
private clearAmendIfMatches;
|
|
3357
|
-
}
|
|
3358
|
-
|
|
3359
|
-
declare const Tombstone: z.ZodObject<{
|
|
3360
|
-
version: z.ZodLiteral<1>;
|
|
3361
|
-
agentId: z.ZodString;
|
|
3362
|
-
upstreamSessionId: z.ZodString;
|
|
3363
|
-
deletedAt: z.ZodString;
|
|
3364
|
-
upstreamUpdatedAt: z.ZodOptional<z.ZodString>;
|
|
3365
|
-
cwd: z.ZodOptional<z.ZodString>;
|
|
3366
|
-
title: z.ZodOptional<z.ZodString>;
|
|
3367
|
-
reason: z.ZodOptional<z.ZodEnum<["user", "expired"]>>;
|
|
3368
|
-
interactive: z.ZodOptional<z.ZodBoolean>;
|
|
3369
|
-
}, "strip", z.ZodTypeAny, {
|
|
3370
|
-
version: 1;
|
|
3371
|
-
upstreamSessionId: string;
|
|
3372
|
-
agentId: string;
|
|
3373
|
-
deletedAt: string;
|
|
3374
|
-
cwd?: string | undefined;
|
|
3375
|
-
title?: string | undefined;
|
|
3376
|
-
interactive?: boolean | undefined;
|
|
3377
|
-
reason?: "user" | "expired" | undefined;
|
|
3378
|
-
upstreamUpdatedAt?: string | undefined;
|
|
3379
|
-
}, {
|
|
3380
|
-
version: 1;
|
|
3381
|
-
upstreamSessionId: string;
|
|
3382
|
-
agentId: string;
|
|
3383
|
-
deletedAt: string;
|
|
3384
|
-
cwd?: string | undefined;
|
|
3385
|
-
title?: string | undefined;
|
|
3386
|
-
interactive?: boolean | undefined;
|
|
3387
|
-
reason?: "user" | "expired" | undefined;
|
|
3388
|
-
upstreamUpdatedAt?: string | undefined;
|
|
3389
|
-
}>;
|
|
3390
|
-
type Tombstone = z.infer<typeof Tombstone>;
|
|
3391
|
-
declare class TombstoneStore {
|
|
3392
|
-
add(t: Omit<Tombstone, "version">): Promise<void>;
|
|
3393
|
-
has(agentId: string, upstreamSessionId: string): Promise<boolean>;
|
|
3394
|
-
read(agentId: string, upstreamSessionId: string): Promise<Tombstone | undefined>;
|
|
3395
|
-
remove(agentId: string, upstreamSessionId: string): Promise<void>;
|
|
3396
|
-
list(agentId?: string): Promise<Tombstone[]>;
|
|
3397
|
-
private listForAgent;
|
|
3398
|
-
}
|
|
3399
|
-
|
|
3400
|
-
declare const Bundle: z.ZodObject<{
|
|
3401
|
-
version: z.ZodLiteral<1>;
|
|
3402
|
-
exportedAt: z.ZodString;
|
|
3403
|
-
exportedFrom: z.ZodObject<{
|
|
3404
|
-
hydraVersion: z.ZodString;
|
|
3405
|
-
machine: z.ZodString;
|
|
3406
|
-
hydraHost: z.ZodOptional<z.ZodString>;
|
|
3407
|
-
}, "strip", z.ZodTypeAny, {
|
|
3408
|
-
hydraVersion: string;
|
|
3409
|
-
machine: string;
|
|
3410
|
-
hydraHost?: string | undefined;
|
|
3411
|
-
}, {
|
|
3412
|
-
hydraVersion: string;
|
|
3413
|
-
machine: string;
|
|
3414
|
-
hydraHost?: string | undefined;
|
|
3415
|
-
}>;
|
|
3416
|
-
session: z.ZodObject<{
|
|
3417
|
-
sessionId: z.ZodString;
|
|
3418
|
-
lineageId: z.ZodString;
|
|
3419
|
-
upstreamSessionId: z.ZodOptional<z.ZodString>;
|
|
3420
|
-
agentId: z.ZodString;
|
|
3421
|
-
cwd: z.ZodString;
|
|
3422
|
-
title: z.ZodOptional<z.ZodString>;
|
|
3423
|
-
synopsis: z.ZodOptional<z.ZodObject<{
|
|
3424
|
-
goal: z.ZodOptional<z.ZodString>;
|
|
3425
|
-
outcome: z.ZodOptional<z.ZodString>;
|
|
3426
|
-
files_touched: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3427
|
-
tools_used: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3428
|
-
rejected_approaches: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3429
|
-
open_threads: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3430
|
-
decisions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3431
|
-
file_edit_intentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3432
|
-
unresolved_errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3433
|
-
tool_state: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3434
|
-
}, "strip", z.ZodTypeAny, {
|
|
3435
|
-
goal?: string | undefined;
|
|
3436
|
-
outcome?: string | undefined;
|
|
3437
|
-
files_touched?: string[] | undefined;
|
|
3438
|
-
tools_used?: string[] | undefined;
|
|
3439
|
-
rejected_approaches?: string[] | undefined;
|
|
3440
|
-
open_threads?: string[] | undefined;
|
|
3441
|
-
decisions?: string[] | undefined;
|
|
3442
|
-
file_edit_intentions?: string[] | undefined;
|
|
3443
|
-
unresolved_errors?: string[] | undefined;
|
|
3444
|
-
tool_state?: string[] | undefined;
|
|
3445
|
-
}, {
|
|
3446
|
-
goal?: string | undefined;
|
|
3447
|
-
outcome?: string | undefined;
|
|
3448
|
-
files_touched?: string[] | undefined;
|
|
3449
|
-
tools_used?: string[] | undefined;
|
|
3450
|
-
rejected_approaches?: string[] | undefined;
|
|
3451
|
-
open_threads?: string[] | undefined;
|
|
3452
|
-
decisions?: string[] | undefined;
|
|
3453
|
-
file_edit_intentions?: string[] | undefined;
|
|
3454
|
-
unresolved_errors?: string[] | undefined;
|
|
3455
|
-
tool_state?: string[] | undefined;
|
|
3456
|
-
}>>;
|
|
3457
|
-
summarizedThroughEntry: z.ZodOptional<z.ZodNumber>;
|
|
3458
|
-
currentModel: z.ZodOptional<z.ZodString>;
|
|
3459
|
-
currentMode: z.ZodOptional<z.ZodString>;
|
|
3460
|
-
currentUsage: z.ZodOptional<z.ZodObject<{
|
|
3461
|
-
used: z.ZodOptional<z.ZodNumber>;
|
|
3462
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
3463
|
-
costAmount: z.ZodOptional<z.ZodNumber>;
|
|
3464
|
-
costCurrency: z.ZodOptional<z.ZodString>;
|
|
3465
|
-
cumulativeCost: z.ZodOptional<z.ZodNumber>;
|
|
3466
|
-
}, "strip", z.ZodTypeAny, {
|
|
3467
|
-
used?: number | undefined;
|
|
3468
|
-
size?: number | undefined;
|
|
3469
|
-
costAmount?: number | undefined;
|
|
3470
|
-
costCurrency?: string | undefined;
|
|
3471
|
-
cumulativeCost?: number | undefined;
|
|
3472
|
-
}, {
|
|
3473
|
-
used?: number | undefined;
|
|
3474
|
-
size?: number | undefined;
|
|
3475
|
-
costAmount?: number | undefined;
|
|
3476
|
-
costCurrency?: string | undefined;
|
|
3477
|
-
cumulativeCost?: number | undefined;
|
|
3478
|
-
}>>;
|
|
3479
|
-
agentCommands: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3480
|
-
name: z.ZodString;
|
|
3481
|
-
description: z.ZodOptional<z.ZodString>;
|
|
3482
|
-
}, "strip", z.ZodTypeAny, {
|
|
3483
|
-
name: string;
|
|
3484
|
-
description?: string | undefined;
|
|
3485
|
-
}, {
|
|
3486
|
-
name: string;
|
|
3487
|
-
description?: string | undefined;
|
|
3488
|
-
}>, "many">>;
|
|
3489
|
-
agentModes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3490
|
-
id: z.ZodString;
|
|
3491
|
-
name: z.ZodOptional<z.ZodString>;
|
|
3492
|
-
description: z.ZodOptional<z.ZodString>;
|
|
3493
|
-
}, "strip", z.ZodTypeAny, {
|
|
3494
|
-
id: string;
|
|
3495
|
-
name?: string | undefined;
|
|
3496
|
-
description?: string | undefined;
|
|
3497
|
-
}, {
|
|
3498
|
-
id: string;
|
|
3499
|
-
name?: string | undefined;
|
|
3500
|
-
description?: string | undefined;
|
|
3501
|
-
}>, "many">>;
|
|
3502
|
-
interactive: z.ZodOptional<z.ZodBoolean>;
|
|
3503
|
-
originatingClient: z.ZodOptional<z.ZodObject<{
|
|
3504
|
-
name: z.ZodString;
|
|
3505
|
-
version: z.ZodOptional<z.ZodString>;
|
|
3506
|
-
}, "strip", z.ZodTypeAny, {
|
|
3507
|
-
name: string;
|
|
3508
|
-
version?: string | undefined;
|
|
3509
|
-
}, {
|
|
3510
|
-
name: string;
|
|
3511
|
-
version?: string | undefined;
|
|
3512
|
-
}>>;
|
|
3513
|
-
priority: z.ZodOptional<z.ZodNumber>;
|
|
3514
|
-
createdAt: z.ZodString;
|
|
3515
|
-
updatedAt: z.ZodString;
|
|
3516
|
-
}, "strip", z.ZodTypeAny, {
|
|
3517
|
-
sessionId: string;
|
|
3518
|
-
cwd: string;
|
|
3519
|
-
agentId: string;
|
|
3520
|
-
updatedAt: string;
|
|
3521
|
-
createdAt: string;
|
|
3522
|
-
lineageId: string;
|
|
3523
|
-
title?: string | undefined;
|
|
3524
|
-
upstreamSessionId?: string | undefined;
|
|
3525
|
-
synopsis?: {
|
|
3526
|
-
goal?: string | undefined;
|
|
3527
|
-
outcome?: string | undefined;
|
|
3528
|
-
files_touched?: string[] | undefined;
|
|
3529
|
-
tools_used?: string[] | undefined;
|
|
3530
|
-
rejected_approaches?: string[] | undefined;
|
|
3531
|
-
open_threads?: string[] | undefined;
|
|
3532
|
-
decisions?: string[] | undefined;
|
|
3533
|
-
file_edit_intentions?: string[] | undefined;
|
|
3534
|
-
unresolved_errors?: string[] | undefined;
|
|
3535
|
-
tool_state?: string[] | undefined;
|
|
3536
|
-
} | undefined;
|
|
3537
|
-
currentModel?: string | undefined;
|
|
3538
|
-
currentUsage?: {
|
|
3539
|
-
used?: number | undefined;
|
|
3540
|
-
size?: number | undefined;
|
|
3541
|
-
costAmount?: number | undefined;
|
|
3542
|
-
costCurrency?: string | undefined;
|
|
3543
|
-
cumulativeCost?: number | undefined;
|
|
3544
|
-
} | undefined;
|
|
3545
|
-
originatingClient?: {
|
|
3546
|
-
name: string;
|
|
3547
|
-
version?: string | undefined;
|
|
3548
|
-
} | undefined;
|
|
3549
|
-
interactive?: boolean | undefined;
|
|
3550
|
-
priority?: number | undefined;
|
|
3551
|
-
currentMode?: string | undefined;
|
|
3552
|
-
summarizedThroughEntry?: number | undefined;
|
|
3553
|
-
agentCommands?: {
|
|
3554
|
-
name: string;
|
|
3555
|
-
description?: string | undefined;
|
|
3556
|
-
}[] | undefined;
|
|
3557
|
-
agentModes?: {
|
|
3558
|
-
id: string;
|
|
3559
|
-
name?: string | undefined;
|
|
3560
|
-
description?: string | undefined;
|
|
3561
|
-
}[] | undefined;
|
|
3562
|
-
}, {
|
|
3563
|
-
sessionId: string;
|
|
3564
|
-
cwd: string;
|
|
3565
|
-
agentId: string;
|
|
3566
|
-
updatedAt: string;
|
|
3567
|
-
createdAt: string;
|
|
3568
|
-
lineageId: string;
|
|
3569
|
-
title?: string | undefined;
|
|
3570
|
-
upstreamSessionId?: string | undefined;
|
|
3571
|
-
synopsis?: {
|
|
3572
|
-
goal?: string | undefined;
|
|
3573
|
-
outcome?: string | undefined;
|
|
3574
|
-
files_touched?: string[] | undefined;
|
|
3575
|
-
tools_used?: string[] | undefined;
|
|
3576
|
-
rejected_approaches?: string[] | undefined;
|
|
3577
|
-
open_threads?: string[] | undefined;
|
|
3578
|
-
decisions?: string[] | undefined;
|
|
3579
|
-
file_edit_intentions?: string[] | undefined;
|
|
3580
|
-
unresolved_errors?: string[] | undefined;
|
|
3581
|
-
tool_state?: string[] | undefined;
|
|
3582
|
-
} | undefined;
|
|
3583
|
-
currentModel?: string | undefined;
|
|
3584
|
-
currentUsage?: {
|
|
3585
|
-
used?: number | undefined;
|
|
3586
|
-
size?: number | undefined;
|
|
3587
|
-
costAmount?: number | undefined;
|
|
3588
|
-
costCurrency?: string | undefined;
|
|
3589
|
-
cumulativeCost?: number | undefined;
|
|
3590
|
-
} | undefined;
|
|
3591
|
-
originatingClient?: {
|
|
3592
|
-
name: string;
|
|
3593
|
-
version?: string | undefined;
|
|
3594
|
-
} | undefined;
|
|
3595
|
-
interactive?: boolean | undefined;
|
|
3596
|
-
priority?: number | undefined;
|
|
3597
|
-
currentMode?: string | undefined;
|
|
3598
|
-
summarizedThroughEntry?: number | undefined;
|
|
3599
|
-
agentCommands?: {
|
|
3600
|
-
name: string;
|
|
3601
|
-
description?: string | undefined;
|
|
3602
|
-
}[] | undefined;
|
|
3603
|
-
agentModes?: {
|
|
3604
|
-
id: string;
|
|
3605
|
-
name?: string | undefined;
|
|
3606
|
-
description?: string | undefined;
|
|
3607
|
-
}[] | undefined;
|
|
3608
|
-
}>;
|
|
3609
|
-
history: z.ZodArray<z.ZodObject<{
|
|
3610
|
-
method: z.ZodString;
|
|
3611
|
-
params: z.ZodUnknown;
|
|
3612
|
-
recordedAt: z.ZodNumber;
|
|
3613
|
-
}, "strip", z.ZodTypeAny, {
|
|
3614
|
-
method: string;
|
|
3615
|
-
recordedAt: number;
|
|
3616
|
-
params?: unknown;
|
|
3617
|
-
}, {
|
|
3618
|
-
method: string;
|
|
3619
|
-
recordedAt: number;
|
|
3620
|
-
params?: unknown;
|
|
3621
|
-
}>, "many">;
|
|
3622
|
-
promptHistory: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3623
|
-
toolBlobs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3624
|
-
}, "strip", z.ZodTypeAny, {
|
|
3625
|
-
version: 1;
|
|
3626
|
-
session: {
|
|
3627
|
-
sessionId: string;
|
|
3628
|
-
cwd: string;
|
|
3629
|
-
agentId: string;
|
|
3630
|
-
updatedAt: string;
|
|
3631
|
-
createdAt: string;
|
|
3632
|
-
lineageId: string;
|
|
3633
|
-
title?: string | undefined;
|
|
3634
|
-
upstreamSessionId?: string | undefined;
|
|
3635
|
-
synopsis?: {
|
|
3636
|
-
goal?: string | undefined;
|
|
3637
|
-
outcome?: string | undefined;
|
|
3638
|
-
files_touched?: string[] | undefined;
|
|
3639
|
-
tools_used?: string[] | undefined;
|
|
3640
|
-
rejected_approaches?: string[] | undefined;
|
|
3641
|
-
open_threads?: string[] | undefined;
|
|
3642
|
-
decisions?: string[] | undefined;
|
|
3643
|
-
file_edit_intentions?: string[] | undefined;
|
|
3644
|
-
unresolved_errors?: string[] | undefined;
|
|
3645
|
-
tool_state?: string[] | undefined;
|
|
3646
|
-
} | undefined;
|
|
3647
|
-
currentModel?: string | undefined;
|
|
3648
|
-
currentUsage?: {
|
|
3649
|
-
used?: number | undefined;
|
|
3650
|
-
size?: number | undefined;
|
|
3651
|
-
costAmount?: number | undefined;
|
|
3652
|
-
costCurrency?: string | undefined;
|
|
3653
|
-
cumulativeCost?: number | undefined;
|
|
3654
|
-
} | undefined;
|
|
3655
|
-
originatingClient?: {
|
|
3656
|
-
name: string;
|
|
3657
|
-
version?: string | undefined;
|
|
3658
|
-
} | undefined;
|
|
3659
|
-
interactive?: boolean | undefined;
|
|
3660
|
-
priority?: number | undefined;
|
|
3661
|
-
currentMode?: string | undefined;
|
|
3662
|
-
summarizedThroughEntry?: number | undefined;
|
|
3663
|
-
agentCommands?: {
|
|
3664
|
-
name: string;
|
|
3665
|
-
description?: string | undefined;
|
|
3666
|
-
}[] | undefined;
|
|
3667
|
-
agentModes?: {
|
|
3668
|
-
id: string;
|
|
3669
|
-
name?: string | undefined;
|
|
3670
|
-
description?: string | undefined;
|
|
3671
|
-
}[] | undefined;
|
|
3672
|
-
};
|
|
3673
|
-
exportedAt: string;
|
|
3674
|
-
exportedFrom: {
|
|
3675
|
-
hydraVersion: string;
|
|
3676
|
-
machine: string;
|
|
3677
|
-
hydraHost?: string | undefined;
|
|
3678
|
-
};
|
|
3679
|
-
history: {
|
|
3680
|
-
method: string;
|
|
3681
|
-
recordedAt: number;
|
|
3682
|
-
params?: unknown;
|
|
3683
|
-
}[];
|
|
3684
|
-
promptHistory?: string[] | undefined;
|
|
3685
|
-
toolBlobs?: Record<string, string> | undefined;
|
|
3686
|
-
}, {
|
|
3687
|
-
version: 1;
|
|
3688
|
-
session: {
|
|
3689
|
-
sessionId: string;
|
|
3690
|
-
cwd: string;
|
|
3691
|
-
agentId: string;
|
|
3692
|
-
updatedAt: string;
|
|
3693
|
-
createdAt: string;
|
|
3694
|
-
lineageId: string;
|
|
3695
|
-
title?: string | undefined;
|
|
3696
|
-
upstreamSessionId?: string | undefined;
|
|
3697
|
-
synopsis?: {
|
|
3698
|
-
goal?: string | undefined;
|
|
3699
|
-
outcome?: string | undefined;
|
|
3700
|
-
files_touched?: string[] | undefined;
|
|
3701
|
-
tools_used?: string[] | undefined;
|
|
3702
|
-
rejected_approaches?: string[] | undefined;
|
|
3703
|
-
open_threads?: string[] | undefined;
|
|
3704
|
-
decisions?: string[] | undefined;
|
|
3705
|
-
file_edit_intentions?: string[] | undefined;
|
|
3706
|
-
unresolved_errors?: string[] | undefined;
|
|
3707
|
-
tool_state?: string[] | undefined;
|
|
3708
|
-
} | undefined;
|
|
3709
|
-
currentModel?: string | undefined;
|
|
3710
|
-
currentUsage?: {
|
|
3711
|
-
used?: number | undefined;
|
|
3712
|
-
size?: number | undefined;
|
|
3713
|
-
costAmount?: number | undefined;
|
|
3714
|
-
costCurrency?: string | undefined;
|
|
3715
|
-
cumulativeCost?: number | undefined;
|
|
3716
|
-
} | undefined;
|
|
3717
|
-
originatingClient?: {
|
|
3718
|
-
name: string;
|
|
3719
|
-
version?: string | undefined;
|
|
3720
|
-
} | undefined;
|
|
3721
|
-
interactive?: boolean | undefined;
|
|
3722
|
-
priority?: number | undefined;
|
|
3723
|
-
currentMode?: string | undefined;
|
|
3724
|
-
summarizedThroughEntry?: number | undefined;
|
|
3725
|
-
agentCommands?: {
|
|
3726
|
-
name: string;
|
|
3727
|
-
description?: string | undefined;
|
|
3728
|
-
}[] | undefined;
|
|
3729
|
-
agentModes?: {
|
|
3730
|
-
id: string;
|
|
3731
|
-
name?: string | undefined;
|
|
3732
|
-
description?: string | undefined;
|
|
3733
|
-
}[] | undefined;
|
|
3734
|
-
};
|
|
3735
|
-
exportedAt: string;
|
|
3736
|
-
exportedFrom: {
|
|
3737
|
-
hydraVersion: string;
|
|
3738
|
-
machine: string;
|
|
3739
|
-
hydraHost?: string | undefined;
|
|
3740
|
-
};
|
|
3741
|
-
history: {
|
|
3742
|
-
method: string;
|
|
3743
|
-
recordedAt: number;
|
|
3744
|
-
params?: unknown;
|
|
3745
|
-
}[];
|
|
3746
|
-
promptHistory?: string[] | undefined;
|
|
3747
|
-
toolBlobs?: Record<string, string> | undefined;
|
|
3748
|
-
}>;
|
|
3749
|
-
type Bundle = z.infer<typeof Bundle>;
|
|
3750
|
-
|
|
3751
|
-
interface CreateSessionParams {
|
|
3752
|
-
cwd: string;
|
|
3753
|
-
agentId: string;
|
|
3754
|
-
mcpServers?: unknown[];
|
|
3755
|
-
title?: string;
|
|
3756
|
-
agentArgs?: string[];
|
|
3757
|
-
model?: string;
|
|
3758
|
-
onInstallProgress?: AgentInstallProgressCallback;
|
|
3759
|
-
transformChain?: TransformerRef[];
|
|
3760
|
-
parentSessionId?: string;
|
|
3761
|
-
originatingClient?: {
|
|
3762
|
-
name: string;
|
|
3763
|
-
version?: string;
|
|
3764
|
-
};
|
|
3765
|
-
interactive?: boolean;
|
|
3766
|
-
forwardedEnv?: Record<string, string>;
|
|
3767
|
-
mintMcpServersForSwap?: (session: Session) => Promise<unknown[]>;
|
|
3768
|
-
}
|
|
3769
|
-
interface ResurrectParams {
|
|
3770
|
-
hydraSessionId: string;
|
|
3771
|
-
upstreamSessionId: string;
|
|
3772
|
-
agentId: string;
|
|
3773
|
-
cwd: string;
|
|
3774
|
-
title?: string;
|
|
3775
|
-
synopsis?: SessionSynopsis;
|
|
3776
|
-
summarizedThroughEntry?: number;
|
|
3777
|
-
agentArgs?: string[];
|
|
3778
|
-
onInstallProgress?: AgentInstallProgressCallback;
|
|
3779
|
-
currentModel?: string;
|
|
3780
|
-
currentMode?: string;
|
|
3781
|
-
currentUsage?: UsageSnapshot;
|
|
3782
|
-
agentCommands?: AdvertisedCommand[];
|
|
3783
|
-
agentModes?: AdvertisedMode[];
|
|
3784
|
-
agentModels?: AdvertisedModel[];
|
|
3785
|
-
createdAt?: string;
|
|
3786
|
-
pendingHistorySync?: boolean;
|
|
3787
|
-
originatingClient?: {
|
|
3788
|
-
name: string;
|
|
3789
|
-
version?: string;
|
|
3790
|
-
};
|
|
3791
|
-
interactive?: boolean;
|
|
3792
|
-
priority?: number;
|
|
3793
|
-
forkedFromSessionId?: string;
|
|
3794
|
-
forkedFromMessageId?: string;
|
|
3795
|
-
forkSynthesisState?: "running" | "failed";
|
|
3796
|
-
mcpServers?: unknown[];
|
|
3797
|
-
forwardedEnv?: Record<string, string>;
|
|
3798
|
-
compactionState?: CompactionState;
|
|
3799
|
-
attentionFlags?: AttentionFlag[];
|
|
3800
|
-
mintMcpServersForSwap?: (session: Session) => Promise<unknown[]>;
|
|
3801
|
-
}
|
|
3802
|
-
type AgentSpawner = (opts: AgentInstanceOptions) => AgentInstance;
|
|
3803
|
-
interface SessionManagerOptions {
|
|
3804
|
-
idleTimeoutMs?: number;
|
|
3805
|
-
defaultModels?: Record<string, string>;
|
|
3806
|
-
synopsisAgent?: string;
|
|
3807
|
-
synopsisModel?: string;
|
|
3808
|
-
compactionAgent?: string;
|
|
3809
|
-
compactionModel?: string;
|
|
3810
|
-
sessionHistoryMaxEntries?: number;
|
|
3811
|
-
sessionHistoryArchiveMaxBytes?: number;
|
|
3812
|
-
sessionHistoryArchiveTiers?: number;
|
|
3813
|
-
defaultTransformers?: string[];
|
|
3814
|
-
idleEventTimeoutMs?: number;
|
|
3815
|
-
logger?: AgentLogger;
|
|
3816
|
-
npmRegistry?: string;
|
|
3817
|
-
extensionCommands?: ExtensionCommandRegistry;
|
|
3818
|
-
defaultCwd?: string;
|
|
3819
|
-
tombstones?: TombstoneStore;
|
|
3820
|
-
compaction?: {
|
|
3821
|
-
tailK?: number;
|
|
3822
|
-
maxIterations?: number;
|
|
3823
|
-
};
|
|
3824
|
-
}
|
|
3825
|
-
declare class SessionManager {
|
|
3826
|
-
private registry;
|
|
3827
|
-
private sessions;
|
|
3828
|
-
private resurrectionInflight;
|
|
3829
|
-
private pendingAuthAgents;
|
|
3830
|
-
private spawner;
|
|
3831
|
-
private store;
|
|
3832
|
-
private tombstones;
|
|
3833
|
-
private histories;
|
|
3834
|
-
private idleTimeoutMs;
|
|
3835
|
-
private defaultModels;
|
|
3836
|
-
private synopsisAgent?;
|
|
3837
|
-
private synopsisModel?;
|
|
3838
|
-
private compactionAgent?;
|
|
3839
|
-
private compactionModel?;
|
|
3840
|
-
readonly defaultTransformers: string[];
|
|
3841
|
-
private idleEventTimeoutMs;
|
|
3842
|
-
private sessionHistoryMaxEntries;
|
|
3843
|
-
private metaWriteQueues;
|
|
3844
|
-
private listCache;
|
|
3845
|
-
private static readonly LIST_CACHE_TTL_MS;
|
|
3846
|
-
private logger?;
|
|
3847
|
-
private npmRegistry?;
|
|
3848
|
-
private extensionCommands?;
|
|
3849
|
-
private defaultCwd;
|
|
3850
|
-
private synopsisCoordinator;
|
|
3851
|
-
private pendingDeletions;
|
|
3852
|
-
private pendingSwapDisposers;
|
|
3853
|
-
private rollbackLocks;
|
|
3854
|
-
private compactionTailK;
|
|
3855
|
-
private agentCatalog;
|
|
3856
|
-
constructor(registry: Registry, spawner?: AgentSpawner, store?: SessionStore, options?: SessionManagerOptions);
|
|
3857
|
-
private dispatchSynthesisSwap;
|
|
3858
|
-
private onIdleAttemptSwap;
|
|
3859
|
-
private performSynthesisSwap;
|
|
3860
|
-
private refreshAgentCatalog;
|
|
3861
|
-
create(params: CreateSessionParams): Promise<Session>;
|
|
3862
|
-
resurrect(params: ResurrectParams): Promise<Session>;
|
|
3863
|
-
private doResurrect;
|
|
3864
|
-
private doResurrectFromImport;
|
|
3865
|
-
private dirExists;
|
|
3866
|
-
reapIfOrphanedNonInteractive(sessionId: string): Promise<void>;
|
|
3867
|
-
private resolveResurrectCwd;
|
|
3868
|
-
syncFromAgent(agentId: string): Promise<{
|
|
3869
|
-
synced: SessionRecord[];
|
|
3870
|
-
skipped: number;
|
|
3871
|
-
}>;
|
|
3872
|
-
private collectAgentSessions;
|
|
3873
|
-
private applySeedModel;
|
|
3874
|
-
private bootstrapAgent;
|
|
3875
|
-
private bootstrapAgentLoad;
|
|
3876
|
-
performUncompact(sessionId: string): Promise<void>;
|
|
3877
|
-
bootstrapAgentForAuth(agentId: string, cwd?: string): Promise<AgentInstance>;
|
|
3878
|
-
planSpawnForAgent(agentId: string): Promise<SpawnPlan>;
|
|
3879
|
-
consumePendingAuthAgent(agentId: string): AgentInstance | undefined;
|
|
3880
|
-
getAgentForSession(sessionId: string): AgentInstance | undefined;
|
|
3881
|
-
private attachManagerHooks;
|
|
3882
|
-
getHistory(sessionId: string): Promise<HistoryEntry[] | undefined>;
|
|
3883
|
-
loadHistory(sessionId: string): Promise<HistoryEntry[]>;
|
|
3884
|
-
loadToolBlob(sessionId: string, hash: string): Promise<string | null>;
|
|
3885
|
-
loadFromDisk(sessionId: string): Promise<ResurrectParams | undefined>;
|
|
3886
|
-
setForwardedEnv(sessionId: string, env: Record<string, string> | undefined): Promise<void>;
|
|
3887
|
-
private clearPendingHistorySync;
|
|
3888
|
-
private deriveTitleFromHistory;
|
|
3889
|
-
get(sessionId: string): Session | undefined;
|
|
3890
|
-
liveSessions(): IterableIterator<Session>;
|
|
3891
|
-
activeAgentVersions(): Map<string, Set<string>>;
|
|
3892
|
-
resolveCanonicalId(input: string): Promise<string | undefined>;
|
|
3893
|
-
require(sessionId: string): Session;
|
|
3894
|
-
liveListEntry(session: Session): SessionListEntry;
|
|
3895
|
-
getOne(sessionId: string): Promise<SessionListEntry | undefined>;
|
|
3896
|
-
list(filter?: {
|
|
3897
|
-
cwd?: string;
|
|
3898
|
-
includeNonInteractive?: boolean;
|
|
3899
|
-
}): Promise<SessionListEntry[]>;
|
|
3900
|
-
private invalidateListCache;
|
|
3901
|
-
private listUncached;
|
|
3902
|
-
exportBundle(sessionId: string, opts?: {
|
|
3903
|
-
tools?: "inline" | "references";
|
|
3904
|
-
}): Promise<{
|
|
3905
|
-
record: SessionRecord & {
|
|
3906
|
-
lineageId: string;
|
|
3907
|
-
};
|
|
3908
|
-
history: HistoryEntry[];
|
|
3909
|
-
promptHistory: string[];
|
|
3910
|
-
toolBlobs?: Record<string, string>;
|
|
3911
|
-
} | undefined>;
|
|
3912
|
-
importBundle(bundle: Bundle, opts?: {
|
|
3913
|
-
replace?: boolean;
|
|
3914
|
-
cwd?: string;
|
|
3915
|
-
}): Promise<{
|
|
3916
|
-
sessionId: string;
|
|
3917
|
-
importedFromSessionId: string;
|
|
3918
|
-
replaced: boolean;
|
|
3919
|
-
}>;
|
|
3920
|
-
forkSession(sourceSessionId: string, opts?: {
|
|
3921
|
-
forkAt?: string;
|
|
3922
|
-
cwd?: string;
|
|
3923
|
-
agentId?: string;
|
|
3924
|
-
title?: string;
|
|
3925
|
-
mode?: "verbatim" | "synthesis";
|
|
3926
|
-
model?: string;
|
|
3927
|
-
}): Promise<{
|
|
3928
|
-
sessionId: string;
|
|
3929
|
-
forkedFromSessionId: string;
|
|
3930
|
-
forkedAt: string;
|
|
3931
|
-
}>;
|
|
3932
|
-
private writeImportedRecord;
|
|
3933
|
-
deleteRecord(sessionId: string, reason?: "user" | "expired"): Promise<boolean>;
|
|
3934
|
-
waitForDeletion(sessionId: string): Promise<void>;
|
|
3935
|
-
isTombstoned(agentId: string, upstreamSessionId: string): Promise<boolean>;
|
|
3936
|
-
hasRecord(sessionId: string): Promise<boolean>;
|
|
3937
|
-
setPriority(sessionId: string, priority: number | undefined): Promise<boolean>;
|
|
3938
|
-
private persistPriority;
|
|
3939
|
-
setTitle(sessionId: string, title: string): Promise<boolean>;
|
|
3940
|
-
private persistTitle;
|
|
3941
|
-
private persistSynopsis;
|
|
3942
|
-
private persistAgentChange;
|
|
3943
|
-
private persistSnapshot;
|
|
3944
|
-
private mutateRecord;
|
|
3945
|
-
private static readonly EXTENSION_STATE_CAP_BYTES;
|
|
3946
|
-
getExtensionState(sessionId: string, extName: string): Promise<Record<string, unknown>>;
|
|
3947
|
-
getExtensionStateKey(sessionId: string, extName: string, key: string): Promise<unknown>;
|
|
3948
|
-
setExtensionStateKey(sessionId: string, extName: string, key: string, value: unknown): Promise<void>;
|
|
3949
|
-
deleteExtensionStateKey(sessionId: string, extName: string, key: string): Promise<void>;
|
|
3950
|
-
private enqueueMetaWrite;
|
|
3951
|
-
closeAll(): Promise<void>;
|
|
3952
|
-
flushSynopsis(timeoutMs: number): Promise<void>;
|
|
3953
|
-
shutdownSynopsis(): Promise<void>;
|
|
3954
|
-
scheduleSynopsis(sessionId: string): void;
|
|
3955
|
-
scheduleCompaction(sessionId: string, opts?: {
|
|
3956
|
-
targetAgentId?: string;
|
|
3957
|
-
}): void;
|
|
3958
|
-
getCompactionInFlight(): boolean;
|
|
3959
|
-
getPendingAgentSwap(sessionId: string): Promise<string | undefined>;
|
|
3960
|
-
getCompactionState(sessionId: string): Promise<CompactionState | undefined>;
|
|
3961
|
-
getRollbackBreadcrumb(sessionId: string): Promise<RollbackBreadcrumb | undefined>;
|
|
3962
|
-
private emitSwapPhase;
|
|
3963
|
-
getSummarizedThroughEntry(sessionId: string): Promise<number | undefined>;
|
|
3964
|
-
flushMetaWrites(): Promise<void>;
|
|
3965
|
-
flushHistoryWrites(): Promise<void>;
|
|
3966
|
-
reconcilePermissionFlags(): Promise<void>;
|
|
3967
|
-
resumePendingCompactions(): Promise<void>;
|
|
3968
|
-
resumePendingAgentSwaps(): Promise<void>;
|
|
3969
|
-
resurrectPendingQueues(): Promise<void>;
|
|
3970
|
-
}
|
|
3971
|
-
|
|
3972
|
-
type ExtensionContext = BaseChildContext;
|
|
3973
|
-
declare class ExtensionManager extends ChildSupervisor<ExtensionConfig> {
|
|
3974
|
-
constructor(extensions: ExtensionConfig[], context?: ExtensionContext, options?: ChildSupervisorOptions);
|
|
3975
|
-
}
|
|
3976
|
-
|
|
3977
|
-
interface TokenReservation {
|
|
3978
|
-
complete: (session: Session) => void;
|
|
3979
|
-
abandon: (reason?: Error) => void;
|
|
3980
|
-
}
|
|
3981
|
-
interface TokenEntry {
|
|
3982
|
-
session: Session | undefined;
|
|
3983
|
-
sessionReady: Promise<Session>;
|
|
3984
|
-
disposers: Array<() => Promise<void>>;
|
|
3985
|
-
}
|
|
3986
|
-
declare class McpTokenRegistry {
|
|
3987
|
-
private byToken;
|
|
3988
|
-
reserve(token: string): TokenReservation;
|
|
3989
|
-
bind(token: string, session: Session): void;
|
|
3990
|
-
lookup(token: string): TokenEntry | undefined;
|
|
3991
|
-
addDisposer(token: string, dispose: () => Promise<void>): void;
|
|
3992
|
-
unbind(token: string): Promise<void>;
|
|
3993
|
-
size(): number;
|
|
3994
|
-
}
|
|
3995
|
-
|
|
3996
|
-
interface ExtensionMcpToolSpec {
|
|
3997
|
-
name: string;
|
|
3998
|
-
description: string;
|
|
3999
|
-
inputSchema: object;
|
|
4000
|
-
outputSchema?: object;
|
|
4001
|
-
}
|
|
4002
|
-
interface ExtensionMcpEntry {
|
|
4003
|
-
connection: JsonRpcConnection;
|
|
4004
|
-
instructions?: string;
|
|
4005
|
-
tools: ExtensionMcpToolSpec[];
|
|
4006
|
-
}
|
|
4007
|
-
type ExtensionMcpChangeKind = "register" | "clear";
|
|
4008
|
-
declare class ExtensionMcpRegistry {
|
|
4009
|
-
private byName;
|
|
4010
|
-
private changeHandlers;
|
|
4011
|
-
register(extName: string, connection: JsonRpcConnection, instructions: string | undefined, tools: ExtensionMcpToolSpec[]): void;
|
|
4012
|
-
clear(extName: string): void;
|
|
4013
|
-
lookup(extName: string): ExtensionMcpEntry | undefined;
|
|
4014
|
-
list(): string[];
|
|
4015
|
-
onChange(handler: (extName: string, kind: ExtensionMcpChangeKind) => void): () => void;
|
|
4016
|
-
private fireChanged;
|
|
4017
|
-
}
|
|
4018
|
-
|
|
4019
|
-
declare module "fastify" {
|
|
4020
|
-
interface FastifyContextConfig {
|
|
4021
|
-
skipAuth?: boolean;
|
|
4022
|
-
}
|
|
4023
|
-
}
|
|
4024
|
-
interface DaemonHandle {
|
|
4025
|
-
app: FastifyInstance;
|
|
4026
|
-
manager: SessionManager;
|
|
4027
|
-
registry: Registry;
|
|
4028
|
-
extensions: ExtensionManager;
|
|
4029
|
-
transformers: TransformerManager;
|
|
4030
|
-
mcpTokenRegistry: McpTokenRegistry;
|
|
4031
|
-
extensionMcp: ExtensionMcpRegistry;
|
|
4032
|
-
processRegistry: ProcessTokenRegistry;
|
|
4033
|
-
shutdown: () => Promise<void>;
|
|
4034
|
-
}
|
|
4035
|
-
declare function startDaemon(config: HydraConfig, serviceToken: string): Promise<DaemonHandle>;
|
|
4036
|
-
|
|
4037
|
-
declare function wsToMessageStream(ws: WebSocket): MessageStream;
|
|
4038
|
-
|
|
4039
|
-
declare function generateServiceToken(): string;
|
|
4040
|
-
declare function loadServiceToken(): Promise<string>;
|
|
4041
|
-
declare function ensureServiceToken(): Promise<string>;
|
|
4042
|
-
|
|
4043
|
-
declare function hydraHome(): string;
|
|
4044
|
-
declare const paths: {
|
|
4045
|
-
home: typeof hydraHome;
|
|
4046
|
-
config: () => string;
|
|
4047
|
-
authToken: () => string;
|
|
4048
|
-
remotes: () => string;
|
|
4049
|
-
pidFile: () => string;
|
|
4050
|
-
logFile: () => string;
|
|
4051
|
-
currentLogFile: () => string;
|
|
4052
|
-
registryCache: () => string;
|
|
4053
|
-
ttySessionDir: () => string;
|
|
4054
|
-
ttySessionFile: (ttyBasename: string) => string;
|
|
4055
|
-
agentsDir: () => string;
|
|
4056
|
-
agentLogFile: (id: string) => string;
|
|
4057
|
-
agentInstallDir: (id: string, platformKey: string, version: string) => string;
|
|
4058
|
-
agentNpmInstallDir: (id: string, platformKey: string, version: string) => string;
|
|
4059
|
-
sessionsDir: () => string;
|
|
4060
|
-
sessionDir: (id: string) => string;
|
|
4061
|
-
sessionFile: (id: string) => string;
|
|
4062
|
-
historyFile: (id: string) => string;
|
|
4063
|
-
historyArchiveFile: (id: string, n: number) => string;
|
|
4064
|
-
toolsDir: (id: string) => string;
|
|
4065
|
-
toolBlobFile: (id: string, hash: string) => string;
|
|
4066
|
-
queueFile: (id: string) => string;
|
|
4067
|
-
tombstonesDir: () => string;
|
|
4068
|
-
tombstoneAgentDir: (agentId: string) => string;
|
|
4069
|
-
tombstoneFile: (agentId: string, upstreamSessionId: string) => string;
|
|
4070
|
-
extensionsDir: () => string;
|
|
4071
|
-
extensionLogDir: (name: string) => string;
|
|
4072
|
-
extensionLogFile: (name: string) => string;
|
|
4073
|
-
extensionPidFile: (name: string) => string;
|
|
4074
|
-
transformersDir: () => string;
|
|
4075
|
-
transformerLogDir: (name: string) => string;
|
|
4076
|
-
transformerLogFile: (name: string) => string;
|
|
4077
|
-
transformerPidFile: (name: string) => string;
|
|
4078
|
-
transformerState: (sessionId: string, transformerName: string) => string;
|
|
4079
|
-
tuiHistoryFile: (id: string) => string;
|
|
4080
|
-
globalTuiHistoryFile: () => string;
|
|
4081
|
-
tuiLogFile: () => string;
|
|
4082
|
-
shimWireLogFile: () => string;
|
|
4083
|
-
};
|
|
4084
|
-
|
|
4085
|
-
export { type AgentCapabilities, AgentInstance, HistoryPolicy, HydraConfig, type InitializeResult, JsonRpcConnection, type MessageStream, Registry, Session, SessionAttachParams, type SessionCapabilities, SessionDetachParams, SessionListEntry, SessionListParams, SessionListResult, SessionManager, defaultConfig, ensureServiceToken, generateServiceToken, loadConfig, loadServiceToken, ndjsonStreamFromStdio, paths, planSpawn, startDaemon, writeConfig, wsToMessageStream };
|