@opencode/client 2.0.26 → 2.0.28
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/chunks/{service-timing-1y4a697q.js → service-probe-1y4a697q.js} +1 -1
- package/dist/chunks/{service-timing-8ye1ye6f.js → service-probe-2ny4vxct.js} +2 -2
- package/dist/chunks/{service-timing-p7x80kzg.js → service-probe-7x67cf1q.js} +18 -18
- package/dist/chunks/{service-timing-trz7kcxd.js → service-probe-9vdz0zwn.js} +3 -2
- package/dist/chunks/{service-timing-tbh3h57v.js → service-probe-ecs5ftka.js} +27 -20
- package/dist/chunks/{service-timing-frbwqjmf.js → service-probe-frbwqjmf.js} +1 -1
- package/dist/chunks/{service-timing-0rcx1gca.js → service-probe-gx9wnkzr.js} +1 -1
- package/dist/chunks/{service-timing-js54wxgp.js → service-probe-nwcpakzx.js} +2 -2
- package/dist/chunks/{service-timing-546yv4kj.js → service-probe-q4g3afnw.js} +14 -14
- package/dist/chunks/{service-timing-t1xa31vm.js → service-probe-t1xa31vm.js} +1 -1
- package/dist/chunks/service-probe-wjyeq25y.js +30 -0
- package/dist/chunks/{service-timing-7f0py9js.js → service-probe-y2etg5bs.js} +2 -2
- package/dist/chunks/{service-timing-w1w809zr.js → service-probe-z6qdwcsf.js} +5 -5
- package/dist/contract.js +1 -1
- package/dist/effect/api/api.d.ts +71 -64
- package/dist/effect/client.d.ts +154 -153
- package/dist/effect/client.js +12 -12
- package/dist/effect/generated/client-error.js +3 -3
- package/dist/effect/generated/client.d.ts +20 -19
- package/dist/effect/generated/client.js +5 -5
- package/dist/effect/generated/index.js +8 -8
- package/dist/effect/index.js +12 -12
- package/dist/effect/rpc.js +4 -4
- package/dist/effect/service.js +6 -6
- package/dist/promise/api.d.ts +1 -0
- package/dist/promise/client.d.ts +3 -3
- package/dist/promise/client.js +11 -11
- package/dist/promise/generated/client-error.js +3 -3
- package/dist/promise/generated/client.d.ts +4 -4
- package/dist/promise/generated/client.js +4 -4
- package/dist/promise/generated/index.js +8 -8
- package/dist/promise/generated/types.d.ts +1720 -1645
- package/dist/promise/generated/types.js +1 -1
- package/dist/promise/index.js +12 -12
- package/dist/promise/rpc.js +2 -2
- package/dist/promise/service.js +6 -6
- package/dist/pty-handoff.js +1 -1
- package/dist/rpc-runtime.js +1 -1
- package/dist/service-contender.js +1 -1
- package/dist/service-probe.js +3 -3
- package/dist/service-timing.js +1 -1
- package/dist/service-version.js +1 -1
- package/dist/service.js +1 -1
- package/dist/shared-events.js +1 -1
- package/dist/solid/connection.js +1 -1
- package/dist/solid/data.js +9 -9
- package/dist/solid/index.js +11 -11
- package/dist/solid/pty.js +1 -1
- package/package.json +7 -7
- package/dist/chunks/service-timing-e4sc9kq6.js +0 -30
- /package/dist/chunks/{service-timing-6mptkzbc.js → service-probe-6mptkzbc.js} +0 -0
- /package/dist/chunks/{service-timing-9rqn6x4v.js → service-probe-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{service-timing-gne7h7mq.js → service-probe-gne7h7mq.js} +0 -0
- /package/dist/chunks/{service-timing-m2eywc8w.js → service-probe-m2eywc8w.js} +0 -0
- /package/dist/chunks/{service-timing-qav6mfdz.js → service-probe-qav6mfdz.js} +0 -0
- /package/dist/chunks/{service-timing-sxt88q69.js → service-probe-sxt88q69.js} +0 -0
- /package/dist/chunks/{service-timing-ve4aws36.js → service-probe-ve4aws36.js} +0 -0
- /package/dist/chunks/{service-timing-vmytr4q8.js → service-probe-vmytr4q8.js} +0 -0
- /package/dist/chunks/{service-timing-vt9jbch8.js → service-probe-vt9jbch8.js} +0 -0
- /package/dist/chunks/{service-timing-vyas3vgt.js → service-probe-vyas3vgt.js} +0 -0
- /package/dist/chunks/{service-timing-xgnj2w4v.js → service-probe-xgnj2w4v.js} +0 -0
- /package/dist/chunks/{service-timing-ydhz1zrh.js → service-probe-ydhz1zrh.js} +0 -0
|
@@ -19,28 +19,17 @@ export type PairingCode = {
|
|
|
19
19
|
export type PairingSession = {
|
|
20
20
|
token: string;
|
|
21
21
|
};
|
|
22
|
-
export type
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
directory: string;
|
|
27
|
-
canonical: string;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
export type LocationPublicRef = {
|
|
31
|
-
directory: string;
|
|
32
|
-
};
|
|
33
|
-
export type ModelRef = {
|
|
34
|
-
id: string;
|
|
35
|
-
providerID: string;
|
|
36
|
-
variant?: string;
|
|
37
|
-
};
|
|
22
|
+
export type AbsolutePath = string;
|
|
23
|
+
export type ProjectID = string;
|
|
24
|
+
export type AgentID = string;
|
|
25
|
+
export type ProviderID = string;
|
|
38
26
|
export type ProviderCompaction = {
|
|
39
27
|
type: "summary";
|
|
40
28
|
} | {
|
|
41
29
|
type: "native";
|
|
42
30
|
};
|
|
43
31
|
export type ProviderTransport = "http" | "websocket";
|
|
32
|
+
export type ProviderEncoding = "zstd" | "gzip" | "none";
|
|
44
33
|
export type AgentColor = string;
|
|
45
34
|
export type PermissionEffect = "allow" | "deny" | "ask";
|
|
46
35
|
export type PluginSource = {
|
|
@@ -69,13 +58,8 @@ export type PluginState = {
|
|
|
69
58
|
error: string;
|
|
70
59
|
ref?: string;
|
|
71
60
|
};
|
|
72
|
-
export type
|
|
73
|
-
|
|
74
|
-
messageID: string;
|
|
75
|
-
} | {
|
|
76
|
-
type: "through";
|
|
77
|
-
messageID: string;
|
|
78
|
-
};
|
|
61
|
+
export type SessionID = string;
|
|
62
|
+
export type SessionMessageID = string;
|
|
79
63
|
export type MoneyUSD = number;
|
|
80
64
|
export type TokenUsageInfo = {
|
|
81
65
|
input: number;
|
|
@@ -86,9 +70,11 @@ export type TokenUsageInfo = {
|
|
|
86
70
|
write: number;
|
|
87
71
|
};
|
|
88
72
|
};
|
|
73
|
+
export type RelativePath = string;
|
|
89
74
|
export type SessionMetadata = {
|
|
90
75
|
[x: string]: JsonValue;
|
|
91
76
|
};
|
|
77
|
+
export type SnapshotID = string;
|
|
92
78
|
export type FileDiffInfo = {
|
|
93
79
|
file: string;
|
|
94
80
|
patch: string;
|
|
@@ -96,6 +82,7 @@ export type FileDiffInfo = {
|
|
|
96
82
|
deletions: number;
|
|
97
83
|
status: "added" | "deleted" | "modified";
|
|
98
84
|
};
|
|
85
|
+
export type SessionsCursor = string;
|
|
99
86
|
export type SessionStatsToolTotals = {
|
|
100
87
|
calls: number;
|
|
101
88
|
succeeded: number;
|
|
@@ -114,18 +101,6 @@ export type SessionStatsActivity = {
|
|
|
114
101
|
date: string;
|
|
115
102
|
steps: number;
|
|
116
103
|
};
|
|
117
|
-
export type SessionMessageAgentSelected = {
|
|
118
|
-
id: string;
|
|
119
|
-
metadata?: {
|
|
120
|
-
[x: string]: JsonValue;
|
|
121
|
-
};
|
|
122
|
-
time: {
|
|
123
|
-
created: number;
|
|
124
|
-
};
|
|
125
|
-
type: "agent-switched";
|
|
126
|
-
agent: string;
|
|
127
|
-
previous?: string;
|
|
128
|
-
};
|
|
129
104
|
export type PromptBase64 = string;
|
|
130
105
|
export type PromptFileSource = {
|
|
131
106
|
type: "inline";
|
|
@@ -138,64 +113,9 @@ export type PromptMention = {
|
|
|
138
113
|
end: number;
|
|
139
114
|
text: string;
|
|
140
115
|
};
|
|
141
|
-
export type
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
[x: string]: JsonValue;
|
|
145
|
-
};
|
|
146
|
-
time: {
|
|
147
|
-
created: number;
|
|
148
|
-
};
|
|
149
|
-
text: string;
|
|
150
|
-
description?: string;
|
|
151
|
-
type: "synthetic";
|
|
152
|
-
};
|
|
153
|
-
export type SessionMessageSystem = {
|
|
154
|
-
id: string;
|
|
155
|
-
metadata?: {
|
|
156
|
-
[x: string]: JsonValue;
|
|
157
|
-
};
|
|
158
|
-
time: {
|
|
159
|
-
created: number;
|
|
160
|
-
};
|
|
161
|
-
type: "system";
|
|
162
|
-
text: string;
|
|
163
|
-
description?: string;
|
|
164
|
-
};
|
|
165
|
-
export type SessionMessageSkill = {
|
|
166
|
-
id: string;
|
|
167
|
-
metadata?: {
|
|
168
|
-
[x: string]: JsonValue;
|
|
169
|
-
};
|
|
170
|
-
time: {
|
|
171
|
-
created: number;
|
|
172
|
-
};
|
|
173
|
-
type: "skill";
|
|
174
|
-
skill: string;
|
|
175
|
-
name: string;
|
|
176
|
-
text: string;
|
|
177
|
-
};
|
|
178
|
-
export type SessionMessageShell = {
|
|
179
|
-
id: string;
|
|
180
|
-
metadata?: {
|
|
181
|
-
[x: string]: JsonValue;
|
|
182
|
-
};
|
|
183
|
-
time: {
|
|
184
|
-
created: number;
|
|
185
|
-
completed?: number;
|
|
186
|
-
};
|
|
187
|
-
type: "shell";
|
|
188
|
-
shellID: string;
|
|
189
|
-
command: string;
|
|
190
|
-
status: "running" | "exited" | "timeout" | "killed";
|
|
191
|
-
exit?: number | "Infinity" | "-Infinity" | "NaN";
|
|
192
|
-
output?: {
|
|
193
|
-
output: string;
|
|
194
|
-
cursor: number;
|
|
195
|
-
size: number;
|
|
196
|
-
truncated: boolean;
|
|
197
|
-
};
|
|
198
|
-
};
|
|
116
|
+
export type SkillID = string;
|
|
117
|
+
export type SkillName = string;
|
|
118
|
+
export type ShellID = string;
|
|
199
119
|
export type SessionMessageProviderState = {
|
|
200
120
|
[x: string]: JsonValue;
|
|
201
121
|
};
|
|
@@ -230,39 +150,6 @@ export type SessionStructuredError = {
|
|
|
230
150
|
body: string;
|
|
231
151
|
};
|
|
232
152
|
};
|
|
233
|
-
export type SessionMessageCompactionRunning = {
|
|
234
|
-
type: "compaction";
|
|
235
|
-
id: string;
|
|
236
|
-
metadata?: {
|
|
237
|
-
[x: string]: JsonValue;
|
|
238
|
-
};
|
|
239
|
-
time: {
|
|
240
|
-
created: number;
|
|
241
|
-
};
|
|
242
|
-
status: "running";
|
|
243
|
-
reason: "auto" | "manual";
|
|
244
|
-
summary: string;
|
|
245
|
-
recent: string;
|
|
246
|
-
};
|
|
247
|
-
export type SessionProviderContextProvenance = {
|
|
248
|
-
providerID: string;
|
|
249
|
-
provider: string;
|
|
250
|
-
modelID: string;
|
|
251
|
-
route: string;
|
|
252
|
-
protocol: string;
|
|
253
|
-
endpoint: string;
|
|
254
|
-
};
|
|
255
|
-
export type SessionMessageIdle = {
|
|
256
|
-
id: string;
|
|
257
|
-
metadata?: {
|
|
258
|
-
[x: string]: JsonValue;
|
|
259
|
-
};
|
|
260
|
-
time: {
|
|
261
|
-
created: number;
|
|
262
|
-
};
|
|
263
|
-
type: "idle";
|
|
264
|
-
outcome: "succeeded" | "failed" | "interrupted";
|
|
265
|
-
};
|
|
266
153
|
export type SessionActive = {
|
|
267
154
|
type: "running";
|
|
268
155
|
};
|
|
@@ -281,10 +168,11 @@ export type SessionGenerateResponse = {
|
|
|
281
168
|
text: string;
|
|
282
169
|
};
|
|
283
170
|
};
|
|
284
|
-
export type
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
171
|
+
export type EventID = string;
|
|
172
|
+
export type EventSeq = number;
|
|
173
|
+
export type WorkspaceID = string;
|
|
174
|
+
export type InstructionKey = string;
|
|
175
|
+
export type InstructionHash = string;
|
|
288
176
|
export type SessionInboxSyntheticPayload1 = {
|
|
289
177
|
text: string;
|
|
290
178
|
description?: string;
|
|
@@ -292,24 +180,6 @@ export type SessionInboxSyntheticPayload1 = {
|
|
|
292
180
|
[x: string]: any;
|
|
293
181
|
};
|
|
294
182
|
};
|
|
295
|
-
export type ShellInfo = {
|
|
296
|
-
id: string;
|
|
297
|
-
status: "running" | "exited" | "timeout" | "killed";
|
|
298
|
-
command: string;
|
|
299
|
-
cwd: string;
|
|
300
|
-
shell: string;
|
|
301
|
-
file: string;
|
|
302
|
-
pid?: number;
|
|
303
|
-
exit?: number;
|
|
304
|
-
signal?: string;
|
|
305
|
-
metadata: {
|
|
306
|
-
[x: string]: any;
|
|
307
|
-
};
|
|
308
|
-
time: {
|
|
309
|
-
started: number;
|
|
310
|
-
completed?: number;
|
|
311
|
-
};
|
|
312
|
-
};
|
|
313
183
|
export type SessionMessageProviderState1 = {
|
|
314
184
|
[x: string]: any;
|
|
315
185
|
};
|
|
@@ -328,14 +198,10 @@ export type SessionMessageToolStateRunning1 = {
|
|
|
328
198
|
[x: string]: JsonValue;
|
|
329
199
|
};
|
|
330
200
|
};
|
|
331
|
-
export type EventLogSynced = {
|
|
332
|
-
type: "log.synced";
|
|
333
|
-
aggregateID: string;
|
|
334
|
-
seq?: number;
|
|
335
|
-
};
|
|
336
201
|
export type SessionInterruptResponse = {
|
|
337
202
|
interrupted: boolean;
|
|
338
203
|
};
|
|
204
|
+
export type FormID = string;
|
|
339
205
|
export type FormMetadata = {
|
|
340
206
|
[x: string]: JsonValue;
|
|
341
207
|
};
|
|
@@ -359,6 +225,7 @@ export type FormExternalField = {
|
|
|
359
225
|
export type FormValue = string | number | "Infinity" | "-Infinity" | "NaN" | boolean | Array<string>;
|
|
360
226
|
export type ModelReasoningField = "reasoning" | "reasoning_content" | "reasoning_text" | (string & {});
|
|
361
227
|
export type ModelMaxTokensField = "max_completion_tokens" | "max_tokens";
|
|
228
|
+
export type ModelCacheFormat = "anthropic" | "alibaba";
|
|
362
229
|
export type ModelCapabilities = {
|
|
363
230
|
tools: boolean;
|
|
364
231
|
input: Array<string>;
|
|
@@ -370,31 +237,19 @@ export type GenerateTextResponse = {
|
|
|
370
237
|
text: string;
|
|
371
238
|
};
|
|
372
239
|
};
|
|
373
|
-
export type
|
|
374
|
-
|
|
375
|
-
type: "command";
|
|
376
|
-
label: string;
|
|
377
|
-
command: Array<string>;
|
|
378
|
-
};
|
|
240
|
+
export type IntegrationID = string;
|
|
241
|
+
export type IntegrationMethodID = string;
|
|
379
242
|
export type IntegrationEnvMethod = {
|
|
380
243
|
type: "env";
|
|
381
244
|
names: Array<string>;
|
|
382
245
|
};
|
|
246
|
+
export type CredentialID = string;
|
|
383
247
|
export type ConnectionStatus = {
|
|
384
248
|
status: "needs_auth";
|
|
385
249
|
message: string;
|
|
386
250
|
url?: string;
|
|
387
251
|
};
|
|
388
|
-
export type
|
|
389
|
-
attemptID: string;
|
|
390
|
-
url: string;
|
|
391
|
-
instructions: string;
|
|
392
|
-
mode: "auto" | "code";
|
|
393
|
-
time: {
|
|
394
|
-
created: number;
|
|
395
|
-
expires: number;
|
|
396
|
-
};
|
|
397
|
-
};
|
|
252
|
+
export type IntegrationAttemptID = string;
|
|
398
253
|
export type IntegrationAttemptStatus = {
|
|
399
254
|
status: "pending";
|
|
400
255
|
time: {
|
|
@@ -421,13 +276,6 @@ export type IntegrationAttemptStatus = {
|
|
|
421
276
|
expires: number;
|
|
422
277
|
};
|
|
423
278
|
};
|
|
424
|
-
export type IntegrationCommandAttempt = {
|
|
425
|
-
attemptID: string;
|
|
426
|
-
time: {
|
|
427
|
-
created: number;
|
|
428
|
-
expires: number;
|
|
429
|
-
};
|
|
430
|
-
};
|
|
431
279
|
export type IntegrationCommandAttemptStatus = {
|
|
432
280
|
status: "pending";
|
|
433
281
|
message?: string;
|
|
@@ -486,23 +334,6 @@ export type McpResourceTemplate = {
|
|
|
486
334
|
description?: string;
|
|
487
335
|
mimeType?: string;
|
|
488
336
|
};
|
|
489
|
-
export type CredentialOAuth = {
|
|
490
|
-
type: "oauth";
|
|
491
|
-
methodID: string;
|
|
492
|
-
refresh: string;
|
|
493
|
-
access: string;
|
|
494
|
-
expires: number;
|
|
495
|
-
metadata?: {
|
|
496
|
-
[x: string]: JsonValue;
|
|
497
|
-
};
|
|
498
|
-
};
|
|
499
|
-
export type CredentialExternal = {
|
|
500
|
-
type: "external";
|
|
501
|
-
methodID: string;
|
|
502
|
-
metadata?: {
|
|
503
|
-
[x: string]: JsonValue;
|
|
504
|
-
};
|
|
505
|
-
};
|
|
506
337
|
export type ProjectVcs = string;
|
|
507
338
|
export type ProjectIcon = {
|
|
508
339
|
url?: string;
|
|
@@ -516,75 +347,24 @@ export type ProjectTime = {
|
|
|
516
347
|
created: number;
|
|
517
348
|
updated: number;
|
|
518
349
|
active: number;
|
|
350
|
+
archived?: number;
|
|
519
351
|
};
|
|
352
|
+
export type PermissionID = string;
|
|
520
353
|
export type PermissionSource = {
|
|
521
354
|
type: "tool";
|
|
522
355
|
messageID: string;
|
|
523
356
|
id: string;
|
|
524
357
|
};
|
|
525
|
-
export type
|
|
526
|
-
id: string;
|
|
527
|
-
projectID: string;
|
|
528
|
-
action: string;
|
|
529
|
-
resource: string;
|
|
530
|
-
time: {
|
|
531
|
-
created: number;
|
|
532
|
-
updated: number;
|
|
533
|
-
};
|
|
534
|
-
};
|
|
535
|
-
export type FileSystemEntry = {
|
|
536
|
-
path: string;
|
|
537
|
-
type: "file" | "directory";
|
|
538
|
-
};
|
|
539
|
-
export type FileSystemWrite = {
|
|
540
|
-
path: string;
|
|
541
|
-
};
|
|
358
|
+
export type PermissionSavedID = string;
|
|
542
359
|
export type CommandInfo = {
|
|
543
360
|
name: string;
|
|
544
361
|
description?: string;
|
|
545
362
|
};
|
|
546
|
-
export type SkillInfo = {
|
|
547
|
-
id: string;
|
|
548
|
-
name: string;
|
|
549
|
-
description?: string;
|
|
550
|
-
autoinvoke?: boolean;
|
|
551
|
-
path: string;
|
|
552
|
-
content: string;
|
|
553
|
-
};
|
|
554
363
|
export type RpcOutput = {
|
|
555
364
|
output?: any;
|
|
556
365
|
};
|
|
557
366
|
export type PermissionReply = "once" | "always" | "reject";
|
|
558
|
-
export type
|
|
559
|
-
id: string;
|
|
560
|
-
title: string;
|
|
561
|
-
command: string;
|
|
562
|
-
args: Array<string>;
|
|
563
|
-
cwd: string;
|
|
564
|
-
status: "running" | "exited";
|
|
565
|
-
pid: number;
|
|
566
|
-
exitCode?: number;
|
|
567
|
-
};
|
|
568
|
-
export type PersistentPtyInfo = {
|
|
569
|
-
id: string;
|
|
570
|
-
title: string;
|
|
571
|
-
command: string;
|
|
572
|
-
args: Array<string>;
|
|
573
|
-
cwd: string;
|
|
574
|
-
status: "running" | "exited";
|
|
575
|
-
pid: number;
|
|
576
|
-
exitCode?: number;
|
|
577
|
-
sessionID: string;
|
|
578
|
-
foregroundProcess: string | null;
|
|
579
|
-
size: {
|
|
580
|
-
cols: number;
|
|
581
|
-
rows: number;
|
|
582
|
-
};
|
|
583
|
-
output: {
|
|
584
|
-
head: number;
|
|
585
|
-
tail: number;
|
|
586
|
-
};
|
|
587
|
-
};
|
|
367
|
+
export type PtyID = string;
|
|
588
368
|
export type FormMetadata1 = {
|
|
589
369
|
[x: string]: any;
|
|
590
370
|
};
|
|
@@ -616,61 +396,17 @@ export type PtyTicketConnectToken = {
|
|
|
616
396
|
ticket: string;
|
|
617
397
|
expires_in: number;
|
|
618
398
|
};
|
|
619
|
-
export type PersistentPtyReadResult = {
|
|
620
|
-
ptyID: string;
|
|
621
|
-
title: string;
|
|
622
|
-
cwd: string;
|
|
623
|
-
foregroundProcess: string | null;
|
|
624
|
-
screen: {
|
|
625
|
-
text: string;
|
|
626
|
-
cols: number;
|
|
627
|
-
rows: number;
|
|
628
|
-
cursor: {
|
|
629
|
-
x: number;
|
|
630
|
-
y: number;
|
|
631
|
-
};
|
|
632
|
-
};
|
|
633
|
-
};
|
|
634
399
|
export type PersistentPtyHandoff = {
|
|
635
400
|
directory: string;
|
|
636
401
|
instanceID: string;
|
|
637
402
|
ticket: string;
|
|
638
403
|
expiresAt: number;
|
|
639
404
|
};
|
|
640
|
-
export type ShellInfo1 = {
|
|
641
|
-
id: string;
|
|
642
|
-
status: "running" | "exited" | "timeout" | "killed";
|
|
643
|
-
command: string;
|
|
644
|
-
cwd: string;
|
|
645
|
-
shell: string;
|
|
646
|
-
file: string;
|
|
647
|
-
pid?: number;
|
|
648
|
-
exit?: number;
|
|
649
|
-
signal?: string;
|
|
650
|
-
metadata: {
|
|
651
|
-
[x: string]: JsonValue;
|
|
652
|
-
};
|
|
653
|
-
time: {
|
|
654
|
-
started: number;
|
|
655
|
-
completed?: number;
|
|
656
|
-
};
|
|
657
|
-
};
|
|
658
|
-
export type ReferenceLocalSource = {
|
|
659
|
-
type: "local";
|
|
660
|
-
path: string;
|
|
661
|
-
};
|
|
662
405
|
export type ReferenceGitSource = {
|
|
663
406
|
type: "git";
|
|
664
407
|
repository: string;
|
|
665
408
|
branch?: string;
|
|
666
409
|
};
|
|
667
|
-
export type WorktreeDirectory = {
|
|
668
|
-
directory: string;
|
|
669
|
-
strategy?: string;
|
|
670
|
-
};
|
|
671
|
-
export type WorktreeInfo = {
|
|
672
|
-
directory: string;
|
|
673
|
-
};
|
|
674
410
|
export type VcsBranch = {
|
|
675
411
|
current?: string;
|
|
676
412
|
default?: string;
|
|
@@ -687,10 +423,7 @@ export type VcsFileStatus = {
|
|
|
687
423
|
status: "added" | "deleted" | "modified";
|
|
688
424
|
};
|
|
689
425
|
export type VcsBranchList = Array<string>;
|
|
690
|
-
export type
|
|
691
|
-
id: string;
|
|
692
|
-
name: string;
|
|
693
|
-
};
|
|
426
|
+
export type WebSearchID = string;
|
|
694
427
|
export type WebSearchResult = {
|
|
695
428
|
url: string;
|
|
696
429
|
title?: string;
|
|
@@ -713,59 +446,43 @@ export type ConfigShellOption = {
|
|
|
713
446
|
name: string;
|
|
714
447
|
acceptable: boolean;
|
|
715
448
|
};
|
|
716
|
-
export type
|
|
717
|
-
|
|
718
|
-
metadata?: {
|
|
719
|
-
[x: string]: JsonValue;
|
|
720
|
-
};
|
|
721
|
-
time: {
|
|
722
|
-
created: number;
|
|
723
|
-
};
|
|
724
|
-
type: "location-switched";
|
|
725
|
-
projectID?: string;
|
|
726
|
-
subpath?: string;
|
|
727
|
-
location: LocationPublicRef;
|
|
728
|
-
previous?: {
|
|
729
|
-
location: LocationPublicRef;
|
|
730
|
-
projectID?: string;
|
|
731
|
-
subpath?: string;
|
|
732
|
-
} | null;
|
|
449
|
+
export type LocationPublicRef = {
|
|
450
|
+
directory: AbsolutePath;
|
|
733
451
|
};
|
|
734
|
-
export type
|
|
735
|
-
|
|
736
|
-
subpath?: string;
|
|
737
|
-
location: LocationPublicRef;
|
|
452
|
+
export type FileSystemWrite = {
|
|
453
|
+
path: AbsolutePath;
|
|
738
454
|
};
|
|
739
|
-
export type
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
455
|
+
export type ReferenceLocalSource = {
|
|
456
|
+
type: "local";
|
|
457
|
+
path: AbsolutePath;
|
|
458
|
+
};
|
|
459
|
+
export type WorktreeDirectory = {
|
|
460
|
+
directory: AbsolutePath;
|
|
461
|
+
strategy?: string;
|
|
462
|
+
};
|
|
463
|
+
export type WorktreeInfo = {
|
|
464
|
+
directory: AbsolutePath;
|
|
465
|
+
};
|
|
466
|
+
export type LocationPublicInfo = {
|
|
467
|
+
directory: AbsolutePath;
|
|
468
|
+
project: {
|
|
469
|
+
id: ProjectID;
|
|
470
|
+
directory: AbsolutePath;
|
|
471
|
+
canonical: AbsolutePath;
|
|
749
472
|
};
|
|
750
473
|
};
|
|
751
|
-
export type
|
|
474
|
+
export type ModelRef = {
|
|
752
475
|
id: string;
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
} | undefined;
|
|
756
|
-
location?: LocationPublicRef | undefined;
|
|
757
|
-
type: "server.connected";
|
|
758
|
-
data: {};
|
|
759
|
-
};
|
|
760
|
-
export type ModelSettings = {
|
|
761
|
-
compaction?: ProviderCompaction;
|
|
762
|
-
} & {
|
|
763
|
-
[x: string]: any;
|
|
476
|
+
providerID: ProviderID;
|
|
477
|
+
variant?: string;
|
|
764
478
|
};
|
|
765
|
-
export type
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
479
|
+
export type SessionProviderContextProvenance = {
|
|
480
|
+
providerID: ProviderID;
|
|
481
|
+
provider: string;
|
|
482
|
+
modelID: string;
|
|
483
|
+
route: string;
|
|
484
|
+
protocol: string;
|
|
485
|
+
endpoint: string;
|
|
769
486
|
};
|
|
770
487
|
export type ProviderSettings = {
|
|
771
488
|
timeout?: number | false;
|
|
@@ -773,6 +490,13 @@ export type ProviderSettings = {
|
|
|
773
490
|
chunkTimeout?: number | false;
|
|
774
491
|
compaction?: ProviderCompaction;
|
|
775
492
|
transport?: ProviderTransport;
|
|
493
|
+
encoding?: ProviderEncoding;
|
|
494
|
+
} & {
|
|
495
|
+
[x: string]: any;
|
|
496
|
+
};
|
|
497
|
+
export type ModelSettings = {
|
|
498
|
+
compaction?: ProviderCompaction;
|
|
499
|
+
encoding?: ProviderEncoding;
|
|
776
500
|
} & {
|
|
777
501
|
[x: string]: any;
|
|
778
502
|
};
|
|
@@ -782,6 +506,13 @@ export type ConfigProviderSettings = {
|
|
|
782
506
|
chunkTimeout?: number | false;
|
|
783
507
|
compaction?: ProviderCompaction;
|
|
784
508
|
transport?: ProviderTransport;
|
|
509
|
+
encoding?: ProviderEncoding;
|
|
510
|
+
} & {
|
|
511
|
+
[x: string]: JsonValue | null;
|
|
512
|
+
};
|
|
513
|
+
export type ConfigModelSettings = {
|
|
514
|
+
compaction?: ProviderCompaction;
|
|
515
|
+
encoding?: ProviderEncoding;
|
|
785
516
|
} & {
|
|
786
517
|
[x: string]: JsonValue | null;
|
|
787
518
|
};
|
|
@@ -796,10 +527,71 @@ export type PluginInfo = {
|
|
|
796
527
|
features: PluginFeatures;
|
|
797
528
|
state: PluginState;
|
|
798
529
|
};
|
|
530
|
+
export type SessionForkBoundary = {
|
|
531
|
+
type: "before";
|
|
532
|
+
messageID: SessionMessageID;
|
|
533
|
+
} | {
|
|
534
|
+
type: "through";
|
|
535
|
+
messageID: SessionMessageID;
|
|
536
|
+
};
|
|
537
|
+
export type SessionMessageAgentSelected = {
|
|
538
|
+
id: SessionMessageID;
|
|
539
|
+
metadata?: {
|
|
540
|
+
[x: string]: JsonValue;
|
|
541
|
+
};
|
|
542
|
+
time: {
|
|
543
|
+
created: number;
|
|
544
|
+
};
|
|
545
|
+
type: "agent-switched";
|
|
546
|
+
agent: AgentID;
|
|
547
|
+
previous?: AgentID;
|
|
548
|
+
};
|
|
549
|
+
export type SessionMessageSynthetic = {
|
|
550
|
+
id: SessionMessageID;
|
|
551
|
+
metadata?: {
|
|
552
|
+
[x: string]: JsonValue;
|
|
553
|
+
};
|
|
554
|
+
time: {
|
|
555
|
+
created: number;
|
|
556
|
+
};
|
|
557
|
+
text: string;
|
|
558
|
+
description?: string;
|
|
559
|
+
type: "synthetic";
|
|
560
|
+
};
|
|
561
|
+
export type SessionMessageSystem = {
|
|
562
|
+
id: SessionMessageID;
|
|
563
|
+
metadata?: {
|
|
564
|
+
[x: string]: JsonValue;
|
|
565
|
+
};
|
|
566
|
+
time: {
|
|
567
|
+
created: number;
|
|
568
|
+
};
|
|
569
|
+
type: "system";
|
|
570
|
+
text: string;
|
|
571
|
+
description?: string;
|
|
572
|
+
};
|
|
573
|
+
export type SessionMessageCompactionRunning = {
|
|
574
|
+
type: "compaction";
|
|
575
|
+
id: SessionMessageID;
|
|
576
|
+
metadata?: {
|
|
577
|
+
[x: string]: JsonValue;
|
|
578
|
+
};
|
|
579
|
+
time: {
|
|
580
|
+
created: number;
|
|
581
|
+
};
|
|
582
|
+
status: "running";
|
|
583
|
+
reason: "auto" | "manual";
|
|
584
|
+
summary: string;
|
|
585
|
+
recent: string;
|
|
586
|
+
};
|
|
587
|
+
export type FileSystemEntry = {
|
|
588
|
+
path: RelativePath;
|
|
589
|
+
type: "file" | "directory";
|
|
590
|
+
};
|
|
799
591
|
export type SessionRevert = {
|
|
800
|
-
messageID:
|
|
592
|
+
messageID: SessionMessageID;
|
|
801
593
|
partID?: string;
|
|
802
|
-
snapshot?:
|
|
594
|
+
snapshot?: SnapshotID;
|
|
803
595
|
files?: Array<FileDiffInfo>;
|
|
804
596
|
};
|
|
805
597
|
export type SessionStatsTools = {
|
|
@@ -812,24 +604,6 @@ export type SessionStatsTools = {
|
|
|
812
604
|
totals: SessionStatsToolTotals;
|
|
813
605
|
usage: Array<SessionStatsToolUsage>;
|
|
814
606
|
};
|
|
815
|
-
export type SessionStatsModelUsage = {
|
|
816
|
-
model: ModelRef;
|
|
817
|
-
steps: number;
|
|
818
|
-
tokens: TokenUsageInfo;
|
|
819
|
-
cost: MoneyUSD;
|
|
820
|
-
};
|
|
821
|
-
export type SessionMessageModelSelected = {
|
|
822
|
-
id: string;
|
|
823
|
-
metadata?: {
|
|
824
|
-
[x: string]: JsonValue;
|
|
825
|
-
};
|
|
826
|
-
time: {
|
|
827
|
-
created: number;
|
|
828
|
-
};
|
|
829
|
-
type: "model-switched";
|
|
830
|
-
model: ModelRef;
|
|
831
|
-
previous?: ModelRef;
|
|
832
|
-
};
|
|
833
607
|
export type PromptFileAttachment = {
|
|
834
608
|
data: PromptBase64;
|
|
835
609
|
mime: string;
|
|
@@ -843,11 +617,89 @@ export type PromptAgentAttachment = {
|
|
|
843
617
|
mention?: PromptMention;
|
|
844
618
|
};
|
|
845
619
|
export type PromptSkillAttachment = {
|
|
846
|
-
id:
|
|
847
|
-
name:
|
|
620
|
+
id: SkillID;
|
|
621
|
+
name: SkillName;
|
|
848
622
|
text?: string;
|
|
849
623
|
mention?: PromptMention;
|
|
850
624
|
};
|
|
625
|
+
export type SessionMessageSkill = {
|
|
626
|
+
id: SessionMessageID;
|
|
627
|
+
metadata?: {
|
|
628
|
+
[x: string]: JsonValue;
|
|
629
|
+
};
|
|
630
|
+
time: {
|
|
631
|
+
created: number;
|
|
632
|
+
};
|
|
633
|
+
type: "skill";
|
|
634
|
+
skill: SkillID;
|
|
635
|
+
name: SkillName;
|
|
636
|
+
text: string;
|
|
637
|
+
};
|
|
638
|
+
export type SkillInfo = {
|
|
639
|
+
id: SkillID;
|
|
640
|
+
name: SkillName;
|
|
641
|
+
description?: string;
|
|
642
|
+
autoinvoke?: boolean;
|
|
643
|
+
path: AbsolutePath;
|
|
644
|
+
content: string;
|
|
645
|
+
};
|
|
646
|
+
export type SessionMessageShell = {
|
|
647
|
+
id: SessionMessageID;
|
|
648
|
+
metadata?: {
|
|
649
|
+
[x: string]: JsonValue;
|
|
650
|
+
};
|
|
651
|
+
time: {
|
|
652
|
+
created: number;
|
|
653
|
+
completed?: number;
|
|
654
|
+
};
|
|
655
|
+
type: "shell";
|
|
656
|
+
shellID: ShellID;
|
|
657
|
+
command: string;
|
|
658
|
+
status: "running" | "exited" | "timeout" | "killed";
|
|
659
|
+
exit?: number | "Infinity" | "-Infinity" | "NaN";
|
|
660
|
+
output?: {
|
|
661
|
+
output: string;
|
|
662
|
+
cursor: number;
|
|
663
|
+
size: number;
|
|
664
|
+
truncated: boolean;
|
|
665
|
+
};
|
|
666
|
+
};
|
|
667
|
+
export type ShellInfo = {
|
|
668
|
+
id: ShellID;
|
|
669
|
+
status: "running" | "exited" | "timeout" | "killed";
|
|
670
|
+
command: string;
|
|
671
|
+
cwd: string;
|
|
672
|
+
shell: string;
|
|
673
|
+
file: string;
|
|
674
|
+
pid?: number;
|
|
675
|
+
exit?: number;
|
|
676
|
+
signal?: string;
|
|
677
|
+
metadata: {
|
|
678
|
+
[x: string]: any;
|
|
679
|
+
};
|
|
680
|
+
time: {
|
|
681
|
+
started: number;
|
|
682
|
+
completed?: number;
|
|
683
|
+
};
|
|
684
|
+
};
|
|
685
|
+
export type ShellInfo1 = {
|
|
686
|
+
id: ShellID;
|
|
687
|
+
status: "running" | "exited" | "timeout" | "killed";
|
|
688
|
+
command: string;
|
|
689
|
+
cwd: string;
|
|
690
|
+
shell: string;
|
|
691
|
+
file: string;
|
|
692
|
+
pid?: number;
|
|
693
|
+
exit?: number;
|
|
694
|
+
signal?: string;
|
|
695
|
+
metadata: {
|
|
696
|
+
[x: string]: JsonValue;
|
|
697
|
+
};
|
|
698
|
+
time: {
|
|
699
|
+
started: number;
|
|
700
|
+
completed?: number;
|
|
701
|
+
};
|
|
702
|
+
};
|
|
851
703
|
export type SessionMessageAssistantText = {
|
|
852
704
|
type: "text";
|
|
853
705
|
text: string;
|
|
@@ -870,7 +722,7 @@ export type SessionMessageAssistantRetry = {
|
|
|
870
722
|
};
|
|
871
723
|
export type SessionMessageCompactionFailed = {
|
|
872
724
|
type: "compaction";
|
|
873
|
-
id:
|
|
725
|
+
id: SessionMessageID;
|
|
874
726
|
metadata?: {
|
|
875
727
|
[x: string]: JsonValue;
|
|
876
728
|
};
|
|
@@ -883,14 +735,21 @@ export type SessionMessageCompactionFailed = {
|
|
|
883
735
|
cost?: MoneyUSD;
|
|
884
736
|
tokens?: TokenUsageInfo;
|
|
885
737
|
};
|
|
886
|
-
export type
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
738
|
+
export type SessionMessageIdle = {
|
|
739
|
+
id: SessionMessageID;
|
|
740
|
+
metadata?: {
|
|
741
|
+
[x: string]: JsonValue;
|
|
742
|
+
};
|
|
743
|
+
time: {
|
|
744
|
+
created: number;
|
|
745
|
+
};
|
|
746
|
+
type: "idle";
|
|
747
|
+
outcome: "succeeded" | "failed" | "interrupted";
|
|
748
|
+
error?: SessionStructuredError;
|
|
890
749
|
};
|
|
891
750
|
export type SessionInboxSynthetic = {
|
|
892
|
-
id:
|
|
893
|
-
sessionID:
|
|
751
|
+
id: SessionMessageID;
|
|
752
|
+
sessionID: SessionID;
|
|
894
753
|
time: {
|
|
895
754
|
created: number;
|
|
896
755
|
};
|
|
@@ -899,8 +758,8 @@ export type SessionInboxSynthetic = {
|
|
|
899
758
|
delivery: SessionInboxDelivery;
|
|
900
759
|
};
|
|
901
760
|
export type SessionInboxCompaction = {
|
|
902
|
-
id:
|
|
903
|
-
sessionID:
|
|
761
|
+
id: SessionMessageID;
|
|
762
|
+
sessionID: SessionID;
|
|
904
763
|
time: {
|
|
905
764
|
created: number;
|
|
906
765
|
};
|
|
@@ -917,1382 +776,1442 @@ export type InstructionEntrySnapshot = Array<{
|
|
|
917
776
|
value: JsonValue;
|
|
918
777
|
removed: boolean;
|
|
919
778
|
}>;
|
|
920
|
-
export type
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
[x: string]: any;
|
|
925
|
-
};
|
|
926
|
-
type: "session.agent.selected";
|
|
927
|
-
durable: {
|
|
928
|
-
aggregateID: string;
|
|
929
|
-
seq: number;
|
|
930
|
-
version: 1;
|
|
931
|
-
};
|
|
932
|
-
location?: LocationRef;
|
|
933
|
-
data: {
|
|
934
|
-
sessionID: string;
|
|
935
|
-
agent: string;
|
|
936
|
-
previous?: string;
|
|
937
|
-
};
|
|
779
|
+
export type EventLogSynced = {
|
|
780
|
+
type: "log.synced";
|
|
781
|
+
aggregateID: string;
|
|
782
|
+
seq?: EventSeq;
|
|
938
783
|
};
|
|
939
|
-
export type
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
metadata?: {
|
|
943
|
-
[x: string]: any;
|
|
944
|
-
};
|
|
945
|
-
type: "session.model.selected";
|
|
946
|
-
durable: {
|
|
947
|
-
aggregateID: string;
|
|
948
|
-
seq: number;
|
|
949
|
-
version: 1;
|
|
950
|
-
};
|
|
951
|
-
location?: LocationRef;
|
|
952
|
-
data: {
|
|
953
|
-
sessionID: string;
|
|
954
|
-
model: ModelRef;
|
|
955
|
-
previous?: ModelRef;
|
|
956
|
-
};
|
|
784
|
+
export type LocationRef = {
|
|
785
|
+
directory: AbsolutePath;
|
|
786
|
+
workspaceID?: WorkspaceID;
|
|
957
787
|
};
|
|
958
|
-
export type
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
[x: string]: any;
|
|
963
|
-
};
|
|
964
|
-
type: "session.renamed";
|
|
965
|
-
durable: {
|
|
966
|
-
aggregateID: string;
|
|
967
|
-
seq: number;
|
|
968
|
-
version: 1;
|
|
969
|
-
};
|
|
970
|
-
location?: LocationRef;
|
|
971
|
-
data: {
|
|
972
|
-
sessionID: string;
|
|
973
|
-
title: string;
|
|
974
|
-
};
|
|
788
|
+
export type SessionMessageAssistantText1 = {
|
|
789
|
+
type: "text";
|
|
790
|
+
text: string;
|
|
791
|
+
state?: SessionMessageProviderState1;
|
|
975
792
|
};
|
|
976
|
-
export type
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
durable: {
|
|
984
|
-
aggregateID: string;
|
|
985
|
-
seq: number;
|
|
986
|
-
version: 1;
|
|
987
|
-
};
|
|
988
|
-
location?: LocationRef;
|
|
989
|
-
data: {
|
|
990
|
-
sessionID: string;
|
|
991
|
-
idle: number;
|
|
793
|
+
export type SessionMessageAssistantReasoning1 = {
|
|
794
|
+
type: "reasoning";
|
|
795
|
+
text: string;
|
|
796
|
+
state?: SessionMessageProviderState1;
|
|
797
|
+
time?: {
|
|
798
|
+
created: number;
|
|
799
|
+
completed?: number;
|
|
992
800
|
};
|
|
993
801
|
};
|
|
994
|
-
export type
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
location?: LocationRef;
|
|
1007
|
-
data: {
|
|
1008
|
-
sessionID: string;
|
|
1009
|
-
};
|
|
802
|
+
export type ToolContent1 = ToolTextContent | ToolFileContent1;
|
|
803
|
+
export type FormNumberField = {
|
|
804
|
+
key: string;
|
|
805
|
+
title?: string;
|
|
806
|
+
description?: string;
|
|
807
|
+
required?: boolean;
|
|
808
|
+
hidden?: boolean;
|
|
809
|
+
when?: Array<FormWhen>;
|
|
810
|
+
type: "number";
|
|
811
|
+
minimum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
812
|
+
maximum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
813
|
+
default?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1010
814
|
};
|
|
1011
|
-
export type
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
};
|
|
1023
|
-
location?: LocationRef;
|
|
1024
|
-
data: {
|
|
1025
|
-
sessionID: string;
|
|
1026
|
-
inboxID: string;
|
|
1027
|
-
};
|
|
815
|
+
export type FormIntegerField = {
|
|
816
|
+
key: string;
|
|
817
|
+
title?: string;
|
|
818
|
+
description?: string;
|
|
819
|
+
required?: boolean;
|
|
820
|
+
hidden?: boolean;
|
|
821
|
+
when?: Array<FormWhen>;
|
|
822
|
+
type: "integer";
|
|
823
|
+
minimum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
824
|
+
maximum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
825
|
+
default?: number | "Infinity" | "-Infinity" | "NaN";
|
|
1028
826
|
};
|
|
1029
|
-
export type
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
seq: number;
|
|
1039
|
-
version: 1;
|
|
1040
|
-
};
|
|
1041
|
-
location?: LocationRef;
|
|
1042
|
-
data: {
|
|
1043
|
-
sessionID: string;
|
|
1044
|
-
inboxID: string;
|
|
1045
|
-
};
|
|
827
|
+
export type FormBooleanField = {
|
|
828
|
+
key: string;
|
|
829
|
+
title?: string;
|
|
830
|
+
description?: string;
|
|
831
|
+
required?: boolean;
|
|
832
|
+
hidden?: boolean;
|
|
833
|
+
when?: Array<FormWhen>;
|
|
834
|
+
type: "boolean";
|
|
835
|
+
default?: boolean;
|
|
1046
836
|
};
|
|
1047
|
-
export type
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
delivery: SessionInboxDelivery;
|
|
1064
|
-
};
|
|
837
|
+
export type FormStringField = {
|
|
838
|
+
key: string;
|
|
839
|
+
title?: string;
|
|
840
|
+
description?: string;
|
|
841
|
+
required?: boolean;
|
|
842
|
+
hidden?: boolean;
|
|
843
|
+
when?: Array<FormWhen>;
|
|
844
|
+
type: "string";
|
|
845
|
+
format?: "email" | "uri" | "date" | "date-time";
|
|
846
|
+
minLength?: number;
|
|
847
|
+
maxLength?: number;
|
|
848
|
+
pattern?: string;
|
|
849
|
+
placeholder?: string;
|
|
850
|
+
default?: string;
|
|
851
|
+
options?: Array<FormOption>;
|
|
852
|
+
custom?: boolean;
|
|
1065
853
|
};
|
|
1066
|
-
export type
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
data: {
|
|
1080
|
-
sessionID: string;
|
|
1081
|
-
};
|
|
854
|
+
export type FormMultiselectField = {
|
|
855
|
+
key: string;
|
|
856
|
+
title?: string;
|
|
857
|
+
description?: string;
|
|
858
|
+
required?: boolean;
|
|
859
|
+
hidden?: boolean;
|
|
860
|
+
when?: Array<FormWhen>;
|
|
861
|
+
type: "multiselect";
|
|
862
|
+
options: Array<FormOption>;
|
|
863
|
+
minItems?: number;
|
|
864
|
+
maxItems?: number;
|
|
865
|
+
custom?: boolean;
|
|
866
|
+
default?: Array<string>;
|
|
1082
867
|
};
|
|
1083
|
-
export type
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
868
|
+
export type FormAnswer = {
|
|
869
|
+
[x: string]: FormValue;
|
|
870
|
+
};
|
|
871
|
+
export type ModelCompatibility = {
|
|
872
|
+
reasoningField?: ModelReasoningField;
|
|
873
|
+
requireReasoning?: boolean;
|
|
874
|
+
maxTokensField?: ModelMaxTokensField;
|
|
875
|
+
requireFinishReason?: boolean;
|
|
876
|
+
requireAssistantAfterTool?: boolean;
|
|
877
|
+
supportsPromptCacheKey?: boolean;
|
|
878
|
+
cacheFormat?: ModelCacheFormat;
|
|
879
|
+
supportsThinkingBlockBinding?: boolean;
|
|
880
|
+
supportsEffortUpdates?: boolean;
|
|
881
|
+
};
|
|
882
|
+
export type ProviderCompatibility = {
|
|
883
|
+
reasoningField?: ModelReasoningField;
|
|
884
|
+
requireReasoning?: boolean;
|
|
885
|
+
maxTokensField?: ModelMaxTokensField;
|
|
886
|
+
requireFinishReason?: boolean;
|
|
887
|
+
requireAssistantAfterTool?: boolean;
|
|
888
|
+
supportsPromptCacheKey?: boolean;
|
|
889
|
+
cacheFormat?: ModelCacheFormat;
|
|
890
|
+
};
|
|
891
|
+
export type ModelCost = {
|
|
892
|
+
tier?: {
|
|
893
|
+
type: "context";
|
|
894
|
+
size: number;
|
|
1094
895
|
};
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
896
|
+
input: MoneyUSDPerMillionTokens;
|
|
897
|
+
output: MoneyUSDPerMillionTokens;
|
|
898
|
+
cache: {
|
|
899
|
+
read: MoneyUSDPerMillionTokens;
|
|
900
|
+
write: MoneyUSDPerMillionTokens;
|
|
1098
901
|
};
|
|
1099
902
|
};
|
|
1100
|
-
export type
|
|
1101
|
-
id:
|
|
1102
|
-
|
|
903
|
+
export type IntegrationCommandMethod = {
|
|
904
|
+
id: IntegrationMethodID;
|
|
905
|
+
type: "command";
|
|
906
|
+
label: string;
|
|
907
|
+
command: Array<string>;
|
|
908
|
+
};
|
|
909
|
+
export type CredentialOAuth = {
|
|
910
|
+
type: "oauth";
|
|
911
|
+
methodID: IntegrationMethodID;
|
|
912
|
+
refresh: string;
|
|
913
|
+
access: string;
|
|
914
|
+
expires: number;
|
|
1103
915
|
metadata?: {
|
|
1104
|
-
[x: string]:
|
|
1105
|
-
};
|
|
1106
|
-
type: "session.execution.failed";
|
|
1107
|
-
durable: {
|
|
1108
|
-
aggregateID: string;
|
|
1109
|
-
seq: number;
|
|
1110
|
-
version: 1;
|
|
1111
|
-
};
|
|
1112
|
-
location?: LocationRef;
|
|
1113
|
-
data: {
|
|
1114
|
-
sessionID: string;
|
|
1115
|
-
error: SessionStructuredError;
|
|
916
|
+
[x: string]: JsonValue;
|
|
1116
917
|
};
|
|
1117
918
|
};
|
|
1118
|
-
export type
|
|
1119
|
-
|
|
1120
|
-
|
|
919
|
+
export type CredentialExternal = {
|
|
920
|
+
type: "external";
|
|
921
|
+
methodID: IntegrationMethodID;
|
|
1121
922
|
metadata?: {
|
|
1122
|
-
[x: string]:
|
|
923
|
+
[x: string]: JsonValue;
|
|
1123
924
|
};
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
925
|
+
};
|
|
926
|
+
export type ConnectionCredentialInfo = {
|
|
927
|
+
type: "credential";
|
|
928
|
+
id: CredentialID;
|
|
929
|
+
label: string;
|
|
930
|
+
method: "key" | "oauth" | "external";
|
|
931
|
+
status?: ConnectionStatus;
|
|
932
|
+
};
|
|
933
|
+
export type ConnectionEnvInfo = {
|
|
934
|
+
type: "env";
|
|
935
|
+
name: string;
|
|
936
|
+
status?: ConnectionStatus;
|
|
937
|
+
};
|
|
938
|
+
export type IntegrationAttempt = {
|
|
939
|
+
attemptID: IntegrationAttemptID;
|
|
940
|
+
url: string;
|
|
941
|
+
instructions: string;
|
|
942
|
+
mode: "auto" | "code";
|
|
943
|
+
time: {
|
|
944
|
+
created: number;
|
|
945
|
+
expires: number;
|
|
1129
946
|
};
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
947
|
+
};
|
|
948
|
+
export type IntegrationCommandAttempt = {
|
|
949
|
+
attemptID: IntegrationAttemptID;
|
|
950
|
+
time: {
|
|
951
|
+
created: number;
|
|
952
|
+
expires: number;
|
|
1134
953
|
};
|
|
1135
954
|
};
|
|
1136
|
-
export type
|
|
1137
|
-
|
|
1138
|
-
|
|
955
|
+
export type McpServer = {
|
|
956
|
+
name: string;
|
|
957
|
+
status: McpStatusConnected | McpStatusPending | McpStatusDisabled | McpStatusFailed | McpStatusNeedsAuth;
|
|
958
|
+
integrationID?: IntegrationID;
|
|
959
|
+
};
|
|
960
|
+
export type McpResourceCatalog = {
|
|
961
|
+
resources: Array<McpResource>;
|
|
962
|
+
templates: Array<McpResourceTemplate>;
|
|
963
|
+
};
|
|
964
|
+
export type Project = {
|
|
965
|
+
id: ProjectID;
|
|
966
|
+
canonical: AbsolutePath;
|
|
967
|
+
vcs?: ProjectVcs;
|
|
968
|
+
name?: string;
|
|
969
|
+
icon?: ProjectIcon;
|
|
970
|
+
commands?: ProjectCommands;
|
|
971
|
+
time: ProjectTime;
|
|
972
|
+
sandboxes: Array<string>;
|
|
973
|
+
};
|
|
974
|
+
export type PermissionRequest = {
|
|
975
|
+
id: PermissionID;
|
|
976
|
+
sessionID: SessionID;
|
|
977
|
+
action: string;
|
|
978
|
+
resources: Array<string>;
|
|
979
|
+
save?: Array<string>;
|
|
1139
980
|
metadata?: {
|
|
1140
|
-
[x: string]:
|
|
1141
|
-
};
|
|
1142
|
-
type: "session.instructions.updated";
|
|
1143
|
-
durable: {
|
|
1144
|
-
aggregateID: string;
|
|
1145
|
-
seq: number;
|
|
1146
|
-
version: 2;
|
|
981
|
+
[x: string]: JsonValue;
|
|
1147
982
|
};
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
983
|
+
source?: PermissionSource;
|
|
984
|
+
message?: string;
|
|
985
|
+
};
|
|
986
|
+
export type PermissionSavedInfo = {
|
|
987
|
+
id: PermissionSavedID;
|
|
988
|
+
projectID: ProjectID;
|
|
989
|
+
action: string;
|
|
990
|
+
resource: string;
|
|
991
|
+
time: {
|
|
992
|
+
created: number;
|
|
993
|
+
updated: number;
|
|
1155
994
|
};
|
|
1156
995
|
};
|
|
1157
|
-
export type
|
|
1158
|
-
id:
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
996
|
+
export type Pty = {
|
|
997
|
+
id: PtyID;
|
|
998
|
+
title: string;
|
|
999
|
+
command: string;
|
|
1000
|
+
args: Array<string>;
|
|
1001
|
+
cwd: string;
|
|
1002
|
+
status: "running" | "exited";
|
|
1003
|
+
pid: number;
|
|
1004
|
+
exitCode?: number;
|
|
1005
|
+
};
|
|
1006
|
+
export type PersistentPtyInfo = {
|
|
1007
|
+
id: PtyID;
|
|
1008
|
+
title: string;
|
|
1009
|
+
command: string;
|
|
1010
|
+
args: Array<string>;
|
|
1011
|
+
cwd: string;
|
|
1012
|
+
status: "running" | "exited";
|
|
1013
|
+
pid: number;
|
|
1014
|
+
exitCode?: number;
|
|
1015
|
+
sessionID: SessionID;
|
|
1016
|
+
foregroundProcess: string | null;
|
|
1017
|
+
size: {
|
|
1018
|
+
cols: number;
|
|
1019
|
+
rows: number;
|
|
1162
1020
|
};
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
seq: number;
|
|
1167
|
-
version: 1;
|
|
1021
|
+
output: {
|
|
1022
|
+
head: number;
|
|
1023
|
+
tail: number;
|
|
1168
1024
|
};
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1025
|
+
};
|
|
1026
|
+
export type PersistentPtyReadResult = {
|
|
1027
|
+
ptyID: PtyID;
|
|
1028
|
+
title: string;
|
|
1029
|
+
cwd: string;
|
|
1030
|
+
foregroundProcess: string | null;
|
|
1031
|
+
screen: {
|
|
1172
1032
|
text: string;
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1033
|
+
cols: number;
|
|
1034
|
+
rows: number;
|
|
1035
|
+
cursor: {
|
|
1036
|
+
x: number;
|
|
1037
|
+
y: number;
|
|
1176
1038
|
};
|
|
1177
1039
|
};
|
|
1178
1040
|
};
|
|
1179
|
-
export type
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1041
|
+
export type FormStringField1 = {
|
|
1042
|
+
key: string;
|
|
1043
|
+
title?: string;
|
|
1044
|
+
description?: string;
|
|
1045
|
+
required?: boolean;
|
|
1046
|
+
hidden?: boolean;
|
|
1047
|
+
when?: Array<FormWhen1>;
|
|
1048
|
+
type: "string";
|
|
1049
|
+
format?: "email" | "uri" | "date" | "date-time";
|
|
1050
|
+
minLength?: number;
|
|
1051
|
+
maxLength?: number;
|
|
1052
|
+
pattern?: string;
|
|
1053
|
+
placeholder?: string;
|
|
1054
|
+
default?: string;
|
|
1055
|
+
options?: Array<FormOption>;
|
|
1056
|
+
custom?: boolean;
|
|
1057
|
+
};
|
|
1058
|
+
export type FormNumberField1 = {
|
|
1059
|
+
key: string;
|
|
1060
|
+
title?: string;
|
|
1061
|
+
description?: string;
|
|
1062
|
+
required?: boolean;
|
|
1063
|
+
hidden?: boolean;
|
|
1064
|
+
when?: Array<FormWhen1>;
|
|
1065
|
+
type: "number";
|
|
1066
|
+
minimum?: number;
|
|
1067
|
+
maximum?: number;
|
|
1068
|
+
default?: number;
|
|
1069
|
+
};
|
|
1070
|
+
export type FormIntegerField1 = {
|
|
1071
|
+
key: string;
|
|
1072
|
+
title?: string;
|
|
1073
|
+
description?: string;
|
|
1074
|
+
required?: boolean;
|
|
1075
|
+
hidden?: boolean;
|
|
1076
|
+
when?: Array<FormWhen1>;
|
|
1077
|
+
type: "integer";
|
|
1078
|
+
minimum?: number;
|
|
1079
|
+
maximum?: number;
|
|
1080
|
+
default?: number;
|
|
1081
|
+
};
|
|
1082
|
+
export type FormBooleanField1 = {
|
|
1083
|
+
key: string;
|
|
1084
|
+
title?: string;
|
|
1085
|
+
description?: string;
|
|
1086
|
+
required?: boolean;
|
|
1087
|
+
hidden?: boolean;
|
|
1088
|
+
when?: Array<FormWhen1>;
|
|
1089
|
+
type: "boolean";
|
|
1090
|
+
default?: boolean;
|
|
1091
|
+
};
|
|
1092
|
+
export type FormMultiselectField1 = {
|
|
1093
|
+
key: string;
|
|
1094
|
+
title?: string;
|
|
1095
|
+
description?: string;
|
|
1096
|
+
required?: boolean;
|
|
1097
|
+
hidden?: boolean;
|
|
1098
|
+
when?: Array<FormWhen1>;
|
|
1099
|
+
type: "multiselect";
|
|
1100
|
+
options: Array<FormOption>;
|
|
1101
|
+
minItems?: number;
|
|
1102
|
+
maxItems?: number;
|
|
1103
|
+
custom?: boolean;
|
|
1104
|
+
default?: Array<string>;
|
|
1105
|
+
};
|
|
1106
|
+
export type FormAnswer2 = {
|
|
1107
|
+
[x: string]: FormValue1;
|
|
1198
1108
|
};
|
|
1199
|
-
export type
|
|
1200
|
-
|
|
1201
|
-
|
|
1109
|
+
export type VcsInfo = {
|
|
1110
|
+
provider?: string;
|
|
1111
|
+
branch: VcsBranch;
|
|
1112
|
+
};
|
|
1113
|
+
export type WebSearchProvider = {
|
|
1114
|
+
id: WebSearchID;
|
|
1115
|
+
name: string;
|
|
1116
|
+
};
|
|
1117
|
+
export type SessionMessageLocationSwitched = {
|
|
1118
|
+
id: SessionMessageID;
|
|
1202
1119
|
metadata?: {
|
|
1203
|
-
[x: string]:
|
|
1204
|
-
};
|
|
1205
|
-
type: "session.step.started";
|
|
1206
|
-
durable: {
|
|
1207
|
-
aggregateID: string;
|
|
1208
|
-
seq: number;
|
|
1209
|
-
version: 1;
|
|
1120
|
+
[x: string]: JsonValue;
|
|
1210
1121
|
};
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
sessionID: string;
|
|
1214
|
-
assistantMessageID: string;
|
|
1215
|
-
agent: string;
|
|
1216
|
-
model: ModelRef;
|
|
1217
|
-
snapshot?: string;
|
|
1218
|
-
started: number;
|
|
1122
|
+
time: {
|
|
1123
|
+
created: number;
|
|
1219
1124
|
};
|
|
1125
|
+
type: "location-switched";
|
|
1126
|
+
projectID?: ProjectID;
|
|
1127
|
+
subpath?: RelativePath;
|
|
1128
|
+
location: LocationPublicRef;
|
|
1129
|
+
previous?: {
|
|
1130
|
+
location: LocationPublicRef;
|
|
1131
|
+
projectID?: ProjectID;
|
|
1132
|
+
subpath?: RelativePath;
|
|
1133
|
+
} | null;
|
|
1220
1134
|
};
|
|
1221
|
-
export type
|
|
1222
|
-
|
|
1135
|
+
export type SessionInboxMovePayload = {
|
|
1136
|
+
projectID: ProjectID;
|
|
1137
|
+
subpath?: RelativePath;
|
|
1138
|
+
location: LocationPublicRef;
|
|
1139
|
+
};
|
|
1140
|
+
export type V2EventRpc = {
|
|
1141
|
+
id: EventID;
|
|
1223
1142
|
created: number;
|
|
1224
1143
|
metadata?: {
|
|
1225
1144
|
[x: string]: any;
|
|
1226
|
-
};
|
|
1227
|
-
type: "
|
|
1228
|
-
|
|
1229
|
-
aggregateID: string;
|
|
1230
|
-
seq: number;
|
|
1231
|
-
version: 1;
|
|
1232
|
-
};
|
|
1233
|
-
location?: LocationRef;
|
|
1145
|
+
} | undefined;
|
|
1146
|
+
type: `${"rpc."}${string}`;
|
|
1147
|
+
location: LocationPublicRef;
|
|
1234
1148
|
data: {
|
|
1235
|
-
|
|
1236
|
-
assistantMessageID: string;
|
|
1149
|
+
[x: string]: any;
|
|
1237
1150
|
};
|
|
1238
1151
|
};
|
|
1239
|
-
export type
|
|
1240
|
-
id:
|
|
1241
|
-
created: number;
|
|
1152
|
+
export type V2EventServerConnected = {
|
|
1153
|
+
id: EventID;
|
|
1242
1154
|
metadata?: {
|
|
1243
1155
|
[x: string]: any;
|
|
1156
|
+
} | undefined;
|
|
1157
|
+
location?: LocationPublicRef | undefined;
|
|
1158
|
+
type: "server.connected";
|
|
1159
|
+
data: {};
|
|
1160
|
+
};
|
|
1161
|
+
export type ReferenceSource = ReferenceLocalSource | ReferenceGitSource;
|
|
1162
|
+
export type WorktreeList = Array<WorktreeDirectory>;
|
|
1163
|
+
export type SessionStatsModelUsage = {
|
|
1164
|
+
model: ModelRef;
|
|
1165
|
+
steps: number;
|
|
1166
|
+
tokens: TokenUsageInfo;
|
|
1167
|
+
cost: MoneyUSD;
|
|
1168
|
+
};
|
|
1169
|
+
export type SessionMessageModelSelected = {
|
|
1170
|
+
id: SessionMessageID;
|
|
1171
|
+
metadata?: {
|
|
1172
|
+
[x: string]: JsonValue;
|
|
1244
1173
|
};
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
aggregateID: string;
|
|
1248
|
-
seq: number;
|
|
1249
|
-
version: 1;
|
|
1250
|
-
};
|
|
1251
|
-
location?: LocationRef;
|
|
1252
|
-
data: {
|
|
1253
|
-
sessionID: string;
|
|
1254
|
-
assistantMessageID: string;
|
|
1255
|
-
ordinal: number;
|
|
1174
|
+
time: {
|
|
1175
|
+
created: number;
|
|
1256
1176
|
};
|
|
1177
|
+
type: "model-switched";
|
|
1178
|
+
model: ModelRef;
|
|
1179
|
+
previous?: ModelRef;
|
|
1257
1180
|
};
|
|
1258
|
-
export type
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1181
|
+
export type SessionProviderContext = {
|
|
1182
|
+
version: 1;
|
|
1183
|
+
provenance: SessionProviderContextProvenance;
|
|
1184
|
+
messages: JsonValue;
|
|
1185
|
+
};
|
|
1186
|
+
export type ProviderRequest = {
|
|
1187
|
+
settings: ProviderSettings;
|
|
1188
|
+
headers: {
|
|
1189
|
+
[x: string]: string;
|
|
1190
|
+
};
|
|
1191
|
+
body: {
|
|
1262
1192
|
[x: string]: any;
|
|
1263
1193
|
};
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1194
|
+
};
|
|
1195
|
+
export type ModelVariant = {
|
|
1196
|
+
id: string;
|
|
1197
|
+
settings?: ModelSettings;
|
|
1198
|
+
headers?: {
|
|
1199
|
+
[x: string]: string;
|
|
1269
1200
|
};
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
sessionID: string;
|
|
1273
|
-
assistantMessageID: string;
|
|
1274
|
-
id: string;
|
|
1275
|
-
name: string;
|
|
1201
|
+
body?: {
|
|
1202
|
+
[x: string]: any;
|
|
1276
1203
|
};
|
|
1277
1204
|
};
|
|
1278
|
-
export type
|
|
1279
|
-
|
|
1280
|
-
|
|
1205
|
+
export type PermissionRuleset = Array<PermissionRule>;
|
|
1206
|
+
export type SessionMessageUser = {
|
|
1207
|
+
id: SessionMessageID;
|
|
1281
1208
|
metadata?: {
|
|
1282
|
-
[x: string]:
|
|
1209
|
+
[x: string]: JsonValue;
|
|
1283
1210
|
};
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
aggregateID: string;
|
|
1287
|
-
seq: number;
|
|
1288
|
-
version: 1;
|
|
1211
|
+
time: {
|
|
1212
|
+
created: number;
|
|
1289
1213
|
};
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1214
|
+
text: string;
|
|
1215
|
+
files?: Array<PromptFileAttachment>;
|
|
1216
|
+
agents?: Array<PromptAgentAttachment>;
|
|
1217
|
+
skills?: Array<PromptSkillAttachment>;
|
|
1218
|
+
type: "user";
|
|
1219
|
+
};
|
|
1220
|
+
export type SessionInboxUserPayload = {
|
|
1221
|
+
text: string;
|
|
1222
|
+
files?: Array<PromptFileAttachment>;
|
|
1223
|
+
agents?: Array<PromptAgentAttachment>;
|
|
1224
|
+
skills?: Array<PromptSkillAttachment>;
|
|
1225
|
+
metadata?: {
|
|
1226
|
+
[x: string]: JsonValue;
|
|
1296
1227
|
};
|
|
1297
1228
|
};
|
|
1298
|
-
export type
|
|
1299
|
-
|
|
1300
|
-
|
|
1229
|
+
export type SessionInboxUserPayload1 = {
|
|
1230
|
+
text: string;
|
|
1231
|
+
files?: Array<PromptFileAttachment>;
|
|
1232
|
+
agents?: Array<PromptAgentAttachment>;
|
|
1233
|
+
skills?: Array<PromptSkillAttachment>;
|
|
1301
1234
|
metadata?: {
|
|
1302
1235
|
[x: string]: any;
|
|
1303
1236
|
};
|
|
1304
|
-
type: "session.retry.scheduled";
|
|
1305
|
-
durable: {
|
|
1306
|
-
aggregateID: string;
|
|
1307
|
-
seq: number;
|
|
1308
|
-
version: 1;
|
|
1309
|
-
};
|
|
1310
|
-
location?: LocationRef;
|
|
1311
|
-
data: {
|
|
1312
|
-
sessionID: string;
|
|
1313
|
-
assistantMessageID: string;
|
|
1314
|
-
attempt: number;
|
|
1315
|
-
at: number;
|
|
1316
|
-
error: SessionStructuredError;
|
|
1317
|
-
};
|
|
1318
1237
|
};
|
|
1319
|
-
export type
|
|
1320
|
-
|
|
1321
|
-
|
|
1238
|
+
export type SessionMessageToolStateCompleted = {
|
|
1239
|
+
status: "completed";
|
|
1240
|
+
input: {
|
|
1241
|
+
[x: string]: JsonValue;
|
|
1242
|
+
};
|
|
1243
|
+
content: [ToolContent, ...Array<ToolContent>];
|
|
1322
1244
|
metadata?: {
|
|
1323
|
-
[x: string]:
|
|
1245
|
+
[x: string]: JsonValue;
|
|
1324
1246
|
};
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1247
|
+
};
|
|
1248
|
+
export type SessionMessageToolStateError = {
|
|
1249
|
+
status: "error";
|
|
1250
|
+
input: {
|
|
1251
|
+
[x: string]: JsonValue;
|
|
1330
1252
|
};
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
recent: string;
|
|
1336
|
-
inputID?: string;
|
|
1253
|
+
error: SessionStructuredError;
|
|
1254
|
+
content?: [ToolContent, ...Array<ToolContent>];
|
|
1255
|
+
metadata?: {
|
|
1256
|
+
[x: string]: JsonValue;
|
|
1337
1257
|
};
|
|
1338
1258
|
};
|
|
1339
|
-
export type
|
|
1340
|
-
id:
|
|
1259
|
+
export type SessionAgentSelected = {
|
|
1260
|
+
id: EventID;
|
|
1341
1261
|
created: number;
|
|
1342
1262
|
metadata?: {
|
|
1343
1263
|
[x: string]: any;
|
|
1344
1264
|
};
|
|
1345
|
-
type: "session.
|
|
1265
|
+
type: "session.agent.selected";
|
|
1346
1266
|
durable: {
|
|
1347
1267
|
aggregateID: string;
|
|
1348
|
-
seq:
|
|
1268
|
+
seq: EventSeq;
|
|
1349
1269
|
version: 1;
|
|
1350
1270
|
};
|
|
1351
1271
|
location?: LocationRef;
|
|
1352
1272
|
data: {
|
|
1353
|
-
sessionID:
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
inputID?: string;
|
|
1357
|
-
cost?: MoneyUSD;
|
|
1358
|
-
tokens?: TokenUsageInfo;
|
|
1273
|
+
sessionID: SessionID;
|
|
1274
|
+
agent: AgentID;
|
|
1275
|
+
previous?: AgentID;
|
|
1359
1276
|
};
|
|
1360
1277
|
};
|
|
1361
|
-
export type
|
|
1362
|
-
id:
|
|
1278
|
+
export type SessionModelSelected = {
|
|
1279
|
+
id: EventID;
|
|
1363
1280
|
created: number;
|
|
1364
1281
|
metadata?: {
|
|
1365
1282
|
[x: string]: any;
|
|
1366
1283
|
};
|
|
1367
|
-
type: "session.
|
|
1284
|
+
type: "session.model.selected";
|
|
1368
1285
|
durable: {
|
|
1369
1286
|
aggregateID: string;
|
|
1370
|
-
seq:
|
|
1287
|
+
seq: EventSeq;
|
|
1371
1288
|
version: 1;
|
|
1372
1289
|
};
|
|
1373
1290
|
location?: LocationRef;
|
|
1374
1291
|
data: {
|
|
1375
|
-
sessionID:
|
|
1292
|
+
sessionID: SessionID;
|
|
1293
|
+
model: ModelRef;
|
|
1294
|
+
previous?: ModelRef;
|
|
1376
1295
|
};
|
|
1377
1296
|
};
|
|
1378
|
-
export type
|
|
1379
|
-
id:
|
|
1297
|
+
export type SessionMoved = {
|
|
1298
|
+
id: EventID;
|
|
1380
1299
|
created: number;
|
|
1381
1300
|
metadata?: {
|
|
1382
1301
|
[x: string]: any;
|
|
1383
1302
|
};
|
|
1384
|
-
type: "session.
|
|
1303
|
+
type: "session.moved";
|
|
1385
1304
|
durable: {
|
|
1386
1305
|
aggregateID: string;
|
|
1387
|
-
seq:
|
|
1306
|
+
seq: EventSeq;
|
|
1388
1307
|
version: 1;
|
|
1389
1308
|
};
|
|
1390
1309
|
location?: LocationRef;
|
|
1391
1310
|
data: {
|
|
1392
|
-
sessionID:
|
|
1393
|
-
|
|
1311
|
+
sessionID: SessionID;
|
|
1312
|
+
location: LocationRef;
|
|
1313
|
+
projectID: ProjectID;
|
|
1314
|
+
subpath?: RelativePath;
|
|
1394
1315
|
};
|
|
1395
1316
|
};
|
|
1396
|
-
export type
|
|
1397
|
-
id:
|
|
1317
|
+
export type SessionRenamed = {
|
|
1318
|
+
id: EventID;
|
|
1398
1319
|
created: number;
|
|
1399
1320
|
metadata?: {
|
|
1400
1321
|
[x: string]: any;
|
|
1401
1322
|
};
|
|
1402
|
-
type: "session.
|
|
1323
|
+
type: "session.renamed";
|
|
1403
1324
|
durable: {
|
|
1404
1325
|
aggregateID: string;
|
|
1405
|
-
seq:
|
|
1326
|
+
seq: EventSeq;
|
|
1406
1327
|
version: 1;
|
|
1407
1328
|
};
|
|
1408
1329
|
location?: LocationRef;
|
|
1409
1330
|
data: {
|
|
1410
|
-
sessionID:
|
|
1411
|
-
|
|
1412
|
-
cost: MoneyUSD;
|
|
1413
|
-
tokens: TokenUsageInfo;
|
|
1414
|
-
};
|
|
1415
|
-
};
|
|
1416
|
-
export type LocationShutdown = {
|
|
1417
|
-
id: string;
|
|
1418
|
-
created: number;
|
|
1419
|
-
metadata?: {
|
|
1420
|
-
[x: string]: any;
|
|
1421
|
-
};
|
|
1422
|
-
type: "location.shutdown";
|
|
1423
|
-
location?: LocationRef;
|
|
1424
|
-
data: {};
|
|
1425
|
-
};
|
|
1426
|
-
export type ModelsDevRefreshed = {
|
|
1427
|
-
id: string;
|
|
1428
|
-
created: number;
|
|
1429
|
-
metadata?: {
|
|
1430
|
-
[x: string]: any;
|
|
1431
|
-
};
|
|
1432
|
-
type: "models-dev.refreshed";
|
|
1433
|
-
location?: LocationRef;
|
|
1434
|
-
data: {};
|
|
1435
|
-
};
|
|
1436
|
-
export type CredentialUpdated = {
|
|
1437
|
-
id: string;
|
|
1438
|
-
created: number;
|
|
1439
|
-
metadata?: {
|
|
1440
|
-
[x: string]: any;
|
|
1331
|
+
sessionID: SessionID;
|
|
1332
|
+
title: string;
|
|
1441
1333
|
};
|
|
1442
|
-
type: "credential.updated";
|
|
1443
|
-
location?: LocationRef;
|
|
1444
|
-
data: {};
|
|
1445
1334
|
};
|
|
1446
|
-
export type
|
|
1447
|
-
id:
|
|
1335
|
+
export type SessionMetadataUpdated = {
|
|
1336
|
+
id: EventID;
|
|
1448
1337
|
created: number;
|
|
1449
1338
|
metadata?: {
|
|
1450
1339
|
[x: string]: any;
|
|
1451
1340
|
};
|
|
1452
|
-
type: "
|
|
1341
|
+
type: "session.metadata.updated";
|
|
1342
|
+
durable: {
|
|
1343
|
+
aggregateID: string;
|
|
1344
|
+
seq: EventSeq;
|
|
1345
|
+
version: 1;
|
|
1346
|
+
};
|
|
1453
1347
|
location?: LocationRef;
|
|
1454
1348
|
data: {
|
|
1455
|
-
|
|
1456
|
-
|
|
1349
|
+
sessionID: SessionID;
|
|
1350
|
+
metadata: SessionMetadata;
|
|
1457
1351
|
};
|
|
1458
1352
|
};
|
|
1459
|
-
export type
|
|
1460
|
-
id:
|
|
1353
|
+
export type SessionViewed = {
|
|
1354
|
+
id: EventID;
|
|
1461
1355
|
created: number;
|
|
1462
1356
|
metadata?: {
|
|
1463
1357
|
[x: string]: any;
|
|
1464
1358
|
};
|
|
1465
|
-
type: "
|
|
1359
|
+
type: "session.viewed";
|
|
1360
|
+
durable: {
|
|
1361
|
+
aggregateID: string;
|
|
1362
|
+
seq: EventSeq;
|
|
1363
|
+
version: 1;
|
|
1364
|
+
};
|
|
1466
1365
|
location?: LocationRef;
|
|
1467
|
-
data: {
|
|
1366
|
+
data: {
|
|
1367
|
+
sessionID: SessionID;
|
|
1368
|
+
idle: number;
|
|
1369
|
+
};
|
|
1468
1370
|
};
|
|
1469
|
-
export type
|
|
1470
|
-
id:
|
|
1371
|
+
export type SessionDeleted = {
|
|
1372
|
+
id: EventID;
|
|
1471
1373
|
created: number;
|
|
1472
1374
|
metadata?: {
|
|
1473
1375
|
[x: string]: any;
|
|
1474
1376
|
};
|
|
1475
|
-
type: "
|
|
1377
|
+
type: "session.deleted";
|
|
1378
|
+
durable: {
|
|
1379
|
+
aggregateID: string;
|
|
1380
|
+
seq: EventSeq;
|
|
1381
|
+
version: 2;
|
|
1382
|
+
};
|
|
1476
1383
|
location?: LocationRef;
|
|
1477
|
-
data: {
|
|
1384
|
+
data: {
|
|
1385
|
+
sessionID: SessionID;
|
|
1386
|
+
};
|
|
1478
1387
|
};
|
|
1479
|
-
export type
|
|
1480
|
-
id:
|
|
1388
|
+
export type SessionForked = {
|
|
1389
|
+
id: EventID;
|
|
1481
1390
|
created: number;
|
|
1482
1391
|
metadata?: {
|
|
1483
1392
|
[x: string]: any;
|
|
1484
1393
|
};
|
|
1485
|
-
type: "
|
|
1394
|
+
type: "session.forked";
|
|
1395
|
+
durable: {
|
|
1396
|
+
aggregateID: string;
|
|
1397
|
+
seq: EventSeq;
|
|
1398
|
+
version: 2;
|
|
1399
|
+
};
|
|
1486
1400
|
location?: LocationRef;
|
|
1487
|
-
data: {
|
|
1401
|
+
data: {
|
|
1402
|
+
sessionID: SessionID;
|
|
1403
|
+
parentID: SessionID;
|
|
1404
|
+
boundary: SessionForkBoundary;
|
|
1405
|
+
instructions?: {
|
|
1406
|
+
[x: InstructionKey]: InstructionHash;
|
|
1407
|
+
};
|
|
1408
|
+
instructionEntries?: InstructionEntrySnapshot;
|
|
1409
|
+
};
|
|
1488
1410
|
};
|
|
1489
|
-
export type
|
|
1490
|
-
id:
|
|
1411
|
+
export type SessionInboxDelivered = {
|
|
1412
|
+
id: EventID;
|
|
1491
1413
|
created: number;
|
|
1492
1414
|
metadata?: {
|
|
1493
1415
|
[x: string]: any;
|
|
1494
1416
|
};
|
|
1495
|
-
type: "
|
|
1417
|
+
type: "session.inbox.delivered";
|
|
1418
|
+
durable: {
|
|
1419
|
+
aggregateID: string;
|
|
1420
|
+
seq: EventSeq;
|
|
1421
|
+
version: 1;
|
|
1422
|
+
};
|
|
1496
1423
|
location?: LocationRef;
|
|
1497
|
-
data: {
|
|
1424
|
+
data: {
|
|
1425
|
+
sessionID: SessionID;
|
|
1426
|
+
inboxID: SessionMessageID;
|
|
1427
|
+
};
|
|
1498
1428
|
};
|
|
1499
|
-
export type
|
|
1500
|
-
|
|
1429
|
+
export type SessionInboxMovePayload1 = {
|
|
1430
|
+
location: LocationRef;
|
|
1431
|
+
projectID: ProjectID;
|
|
1432
|
+
subpath?: RelativePath;
|
|
1433
|
+
};
|
|
1434
|
+
export type SessionInboxCancelled = {
|
|
1435
|
+
id: EventID;
|
|
1501
1436
|
created: number;
|
|
1502
1437
|
metadata?: {
|
|
1503
1438
|
[x: string]: any;
|
|
1504
1439
|
};
|
|
1505
|
-
type: "session.
|
|
1440
|
+
type: "session.inbox.cancelled";
|
|
1441
|
+
durable: {
|
|
1442
|
+
aggregateID: string;
|
|
1443
|
+
seq: EventSeq;
|
|
1444
|
+
version: 1;
|
|
1445
|
+
};
|
|
1506
1446
|
location?: LocationRef;
|
|
1507
1447
|
data: {
|
|
1508
|
-
sessionID:
|
|
1509
|
-
|
|
1510
|
-
tokens: TokenUsageInfo;
|
|
1448
|
+
sessionID: SessionID;
|
|
1449
|
+
inboxID: SessionMessageID;
|
|
1511
1450
|
};
|
|
1512
1451
|
};
|
|
1513
|
-
export type
|
|
1514
|
-
id:
|
|
1452
|
+
export type SessionInboxDeliveryChanged = {
|
|
1453
|
+
id: EventID;
|
|
1515
1454
|
created: number;
|
|
1516
1455
|
metadata?: {
|
|
1517
1456
|
[x: string]: any;
|
|
1518
1457
|
};
|
|
1519
|
-
type: "session.
|
|
1458
|
+
type: "session.inbox.delivery.changed";
|
|
1459
|
+
durable: {
|
|
1460
|
+
aggregateID: string;
|
|
1461
|
+
seq: EventSeq;
|
|
1462
|
+
version: 1;
|
|
1463
|
+
};
|
|
1520
1464
|
location?: LocationRef;
|
|
1521
1465
|
data: {
|
|
1522
|
-
sessionID:
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
delta: string;
|
|
1466
|
+
sessionID: SessionID;
|
|
1467
|
+
inboxID: SessionMessageID;
|
|
1468
|
+
delivery: SessionInboxDelivery;
|
|
1526
1469
|
};
|
|
1527
1470
|
};
|
|
1528
|
-
export type
|
|
1529
|
-
id:
|
|
1471
|
+
export type SessionExecutionStarted = {
|
|
1472
|
+
id: EventID;
|
|
1530
1473
|
created: number;
|
|
1531
1474
|
metadata?: {
|
|
1532
1475
|
[x: string]: any;
|
|
1533
1476
|
};
|
|
1534
|
-
type: "session.
|
|
1477
|
+
type: "session.execution.started";
|
|
1478
|
+
durable: {
|
|
1479
|
+
aggregateID: string;
|
|
1480
|
+
seq: EventSeq;
|
|
1481
|
+
version: 1;
|
|
1482
|
+
};
|
|
1535
1483
|
location?: LocationRef;
|
|
1536
1484
|
data: {
|
|
1537
|
-
sessionID:
|
|
1538
|
-
assistantMessageID: string;
|
|
1539
|
-
ordinal: number;
|
|
1540
|
-
delta: string;
|
|
1485
|
+
sessionID: SessionID;
|
|
1541
1486
|
};
|
|
1542
1487
|
};
|
|
1543
|
-
export type
|
|
1544
|
-
id:
|
|
1488
|
+
export type SessionExecutionSucceeded = {
|
|
1489
|
+
id: EventID;
|
|
1545
1490
|
created: number;
|
|
1546
1491
|
metadata?: {
|
|
1547
1492
|
[x: string]: any;
|
|
1548
1493
|
};
|
|
1549
|
-
type: "session.
|
|
1494
|
+
type: "session.execution.succeeded";
|
|
1495
|
+
durable: {
|
|
1496
|
+
aggregateID: string;
|
|
1497
|
+
seq: EventSeq;
|
|
1498
|
+
version: 1;
|
|
1499
|
+
};
|
|
1550
1500
|
location?: LocationRef;
|
|
1551
1501
|
data: {
|
|
1552
|
-
sessionID:
|
|
1553
|
-
assistantMessageID: string;
|
|
1554
|
-
id: string;
|
|
1555
|
-
delta: string;
|
|
1502
|
+
sessionID: SessionID;
|
|
1556
1503
|
};
|
|
1557
1504
|
};
|
|
1558
|
-
export type
|
|
1559
|
-
id:
|
|
1505
|
+
export type SessionExecutionFailed = {
|
|
1506
|
+
id: EventID;
|
|
1560
1507
|
created: number;
|
|
1561
1508
|
metadata?: {
|
|
1562
1509
|
[x: string]: any;
|
|
1563
1510
|
};
|
|
1564
|
-
type: "session.
|
|
1511
|
+
type: "session.execution.failed";
|
|
1512
|
+
durable: {
|
|
1513
|
+
aggregateID: string;
|
|
1514
|
+
seq: EventSeq;
|
|
1515
|
+
version: 1;
|
|
1516
|
+
};
|
|
1565
1517
|
location?: LocationRef;
|
|
1566
1518
|
data: {
|
|
1567
|
-
sessionID:
|
|
1568
|
-
|
|
1569
|
-
id: string;
|
|
1570
|
-
metadata: {
|
|
1571
|
-
[x: string]: JsonValue;
|
|
1572
|
-
};
|
|
1519
|
+
sessionID: SessionID;
|
|
1520
|
+
error: SessionStructuredError;
|
|
1573
1521
|
};
|
|
1574
1522
|
};
|
|
1575
|
-
export type
|
|
1576
|
-
id:
|
|
1523
|
+
export type SessionExecutionInterrupted = {
|
|
1524
|
+
id: EventID;
|
|
1577
1525
|
created: number;
|
|
1578
1526
|
metadata?: {
|
|
1579
1527
|
[x: string]: any;
|
|
1580
1528
|
};
|
|
1581
|
-
type: "session.
|
|
1529
|
+
type: "session.execution.interrupted";
|
|
1530
|
+
durable: {
|
|
1531
|
+
aggregateID: string;
|
|
1532
|
+
seq: EventSeq;
|
|
1533
|
+
version: 1;
|
|
1534
|
+
};
|
|
1582
1535
|
location?: LocationRef;
|
|
1583
1536
|
data: {
|
|
1584
|
-
sessionID:
|
|
1585
|
-
|
|
1537
|
+
sessionID: SessionID;
|
|
1538
|
+
reason: "user" | "shutdown" | "superseded" | "inactivity";
|
|
1586
1539
|
};
|
|
1587
1540
|
};
|
|
1588
|
-
export type
|
|
1589
|
-
id:
|
|
1541
|
+
export type SessionInstructionsUpdated = {
|
|
1542
|
+
id: EventID;
|
|
1590
1543
|
created: number;
|
|
1591
1544
|
metadata?: {
|
|
1592
1545
|
[x: string]: any;
|
|
1593
1546
|
};
|
|
1594
|
-
type: "
|
|
1547
|
+
type: "session.instructions.updated";
|
|
1548
|
+
durable: {
|
|
1549
|
+
aggregateID: string;
|
|
1550
|
+
seq: EventSeq;
|
|
1551
|
+
version: 2;
|
|
1552
|
+
};
|
|
1595
1553
|
location?: LocationRef;
|
|
1596
1554
|
data: {
|
|
1597
|
-
|
|
1598
|
-
|
|
1555
|
+
sessionID: SessionID;
|
|
1556
|
+
delta: {
|
|
1557
|
+
[x: string]: InstructionHash | "removed";
|
|
1558
|
+
};
|
|
1559
|
+
text?: string;
|
|
1599
1560
|
};
|
|
1600
1561
|
};
|
|
1601
|
-
export type
|
|
1602
|
-
id:
|
|
1562
|
+
export type SessionSynthetic = {
|
|
1563
|
+
id: EventID;
|
|
1603
1564
|
created: number;
|
|
1604
1565
|
metadata?: {
|
|
1605
1566
|
[x: string]: any;
|
|
1606
1567
|
};
|
|
1607
|
-
type: "
|
|
1568
|
+
type: "session.synthetic";
|
|
1569
|
+
durable: {
|
|
1570
|
+
aggregateID: string;
|
|
1571
|
+
seq: EventSeq;
|
|
1572
|
+
version: 1;
|
|
1573
|
+
};
|
|
1608
1574
|
location?: LocationRef;
|
|
1609
|
-
data: {
|
|
1575
|
+
data: {
|
|
1576
|
+
sessionID: SessionID;
|
|
1577
|
+
text: string;
|
|
1578
|
+
description?: string;
|
|
1579
|
+
metadata?: {
|
|
1580
|
+
[x: string]: any;
|
|
1581
|
+
};
|
|
1582
|
+
};
|
|
1610
1583
|
};
|
|
1611
|
-
export type
|
|
1612
|
-
id:
|
|
1584
|
+
export type SessionSkillActivated = {
|
|
1585
|
+
id: EventID;
|
|
1613
1586
|
created: number;
|
|
1614
1587
|
metadata?: {
|
|
1615
1588
|
[x: string]: any;
|
|
1616
1589
|
};
|
|
1617
|
-
type: "
|
|
1590
|
+
type: "session.skill.activated";
|
|
1591
|
+
durable: {
|
|
1592
|
+
aggregateID: string;
|
|
1593
|
+
seq: EventSeq;
|
|
1594
|
+
version: 1;
|
|
1595
|
+
};
|
|
1618
1596
|
location?: LocationRef;
|
|
1619
|
-
data: {
|
|
1597
|
+
data: {
|
|
1598
|
+
sessionID: SessionID;
|
|
1599
|
+
id: SkillID;
|
|
1600
|
+
name: SkillName;
|
|
1601
|
+
text: string;
|
|
1602
|
+
};
|
|
1620
1603
|
};
|
|
1621
|
-
export type
|
|
1622
|
-
id:
|
|
1604
|
+
export type SessionShellStarted = {
|
|
1605
|
+
id: EventID;
|
|
1623
1606
|
created: number;
|
|
1624
1607
|
metadata?: {
|
|
1625
1608
|
[x: string]: any;
|
|
1626
1609
|
};
|
|
1627
|
-
type: "
|
|
1610
|
+
type: "session.shell.started";
|
|
1611
|
+
durable: {
|
|
1612
|
+
aggregateID: string;
|
|
1613
|
+
seq: EventSeq;
|
|
1614
|
+
version: 1;
|
|
1615
|
+
};
|
|
1628
1616
|
location?: LocationRef;
|
|
1629
1617
|
data: {
|
|
1630
|
-
|
|
1618
|
+
sessionID: SessionID;
|
|
1619
|
+
shell: ShellInfo;
|
|
1631
1620
|
};
|
|
1632
1621
|
};
|
|
1633
|
-
export type
|
|
1634
|
-
id:
|
|
1622
|
+
export type SessionShellEnded = {
|
|
1623
|
+
id: EventID;
|
|
1635
1624
|
created: number;
|
|
1636
1625
|
metadata?: {
|
|
1637
1626
|
[x: string]: any;
|
|
1638
1627
|
};
|
|
1639
|
-
type: "
|
|
1628
|
+
type: "session.shell.ended";
|
|
1640
1629
|
durable: {
|
|
1641
1630
|
aggregateID: string;
|
|
1642
|
-
seq:
|
|
1631
|
+
seq: EventSeq;
|
|
1643
1632
|
version: 1;
|
|
1644
1633
|
};
|
|
1645
1634
|
location?: LocationRef;
|
|
1646
1635
|
data: {
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1636
|
+
sessionID: SessionID;
|
|
1637
|
+
shell: ShellInfo;
|
|
1638
|
+
output: {
|
|
1639
|
+
output: string;
|
|
1640
|
+
cursor: number;
|
|
1641
|
+
size: number;
|
|
1642
|
+
truncated: boolean;
|
|
1643
|
+
};
|
|
1651
1644
|
};
|
|
1652
1645
|
};
|
|
1653
|
-
export type
|
|
1654
|
-
id:
|
|
1646
|
+
export type SessionStepStarted = {
|
|
1647
|
+
id: EventID;
|
|
1655
1648
|
created: number;
|
|
1656
1649
|
metadata?: {
|
|
1657
1650
|
[x: string]: any;
|
|
1658
1651
|
};
|
|
1659
|
-
type: "
|
|
1652
|
+
type: "session.step.started";
|
|
1653
|
+
durable: {
|
|
1654
|
+
aggregateID: string;
|
|
1655
|
+
seq: EventSeq;
|
|
1656
|
+
version: 1;
|
|
1657
|
+
};
|
|
1660
1658
|
location?: LocationRef;
|
|
1661
|
-
data: {
|
|
1659
|
+
data: {
|
|
1660
|
+
sessionID: SessionID;
|
|
1661
|
+
assistantMessageID: SessionMessageID;
|
|
1662
|
+
agent: AgentID;
|
|
1663
|
+
model: ModelRef;
|
|
1664
|
+
snapshot?: SnapshotID;
|
|
1665
|
+
started: number;
|
|
1666
|
+
};
|
|
1662
1667
|
};
|
|
1663
|
-
export type
|
|
1664
|
-
id:
|
|
1668
|
+
export type SessionStepStreamed = {
|
|
1669
|
+
id: EventID;
|
|
1665
1670
|
created: number;
|
|
1666
1671
|
metadata?: {
|
|
1667
1672
|
[x: string]: any;
|
|
1668
1673
|
};
|
|
1669
|
-
type: "
|
|
1674
|
+
type: "session.step.streamed";
|
|
1675
|
+
durable: {
|
|
1676
|
+
aggregateID: string;
|
|
1677
|
+
seq: EventSeq;
|
|
1678
|
+
version: 1;
|
|
1679
|
+
};
|
|
1670
1680
|
location?: LocationRef;
|
|
1671
|
-
data: {
|
|
1681
|
+
data: {
|
|
1682
|
+
sessionID: SessionID;
|
|
1683
|
+
assistantMessageID: SessionMessageID;
|
|
1684
|
+
};
|
|
1672
1685
|
};
|
|
1673
|
-
export type
|
|
1674
|
-
id:
|
|
1686
|
+
export type SessionStepEnded = {
|
|
1687
|
+
id: EventID;
|
|
1675
1688
|
created: number;
|
|
1676
1689
|
metadata?: {
|
|
1677
1690
|
[x: string]: any;
|
|
1678
1691
|
};
|
|
1679
|
-
type: "
|
|
1692
|
+
type: "session.step.ended";
|
|
1693
|
+
durable: {
|
|
1694
|
+
aggregateID: string;
|
|
1695
|
+
seq: EventSeq;
|
|
1696
|
+
version: 1;
|
|
1697
|
+
};
|
|
1680
1698
|
location?: LocationRef;
|
|
1681
|
-
data: {
|
|
1699
|
+
data: {
|
|
1700
|
+
sessionID: SessionID;
|
|
1701
|
+
assistantMessageID: SessionMessageID;
|
|
1702
|
+
finish: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
|
|
1703
|
+
rawFinish?: string;
|
|
1704
|
+
providerState?: SessionMessageProviderState1;
|
|
1705
|
+
cost: MoneyUSD;
|
|
1706
|
+
tokens: TokenUsageInfo;
|
|
1707
|
+
snapshot?: SnapshotID;
|
|
1708
|
+
files?: Array<RelativePath>;
|
|
1709
|
+
};
|
|
1682
1710
|
};
|
|
1683
|
-
export type
|
|
1684
|
-
id:
|
|
1711
|
+
export type SessionStepFailed = {
|
|
1712
|
+
id: EventID;
|
|
1685
1713
|
created: number;
|
|
1686
1714
|
metadata?: {
|
|
1687
1715
|
[x: string]: any;
|
|
1688
1716
|
};
|
|
1689
|
-
type: "
|
|
1717
|
+
type: "session.step.failed";
|
|
1718
|
+
durable: {
|
|
1719
|
+
aggregateID: string;
|
|
1720
|
+
seq: EventSeq;
|
|
1721
|
+
version: 1;
|
|
1722
|
+
};
|
|
1690
1723
|
location?: LocationRef;
|
|
1691
1724
|
data: {
|
|
1692
|
-
|
|
1693
|
-
|
|
1725
|
+
sessionID: SessionID;
|
|
1726
|
+
assistantMessageID: SessionMessageID;
|
|
1727
|
+
error: SessionStructuredError;
|
|
1728
|
+
finish?: "content-filter";
|
|
1729
|
+
rawFinish?: string;
|
|
1730
|
+
providerState?: SessionMessageProviderState1;
|
|
1731
|
+
cost?: MoneyUSD;
|
|
1732
|
+
tokens?: TokenUsageInfo;
|
|
1733
|
+
snapshot?: SnapshotID;
|
|
1734
|
+
files?: Array<RelativePath>;
|
|
1694
1735
|
};
|
|
1695
1736
|
};
|
|
1696
|
-
export type
|
|
1697
|
-
id:
|
|
1737
|
+
export type SessionTextStarted = {
|
|
1738
|
+
id: EventID;
|
|
1698
1739
|
created: number;
|
|
1699
1740
|
metadata?: {
|
|
1700
1741
|
[x: string]: any;
|
|
1701
1742
|
};
|
|
1702
|
-
type: "
|
|
1743
|
+
type: "session.text.started";
|
|
1744
|
+
durable: {
|
|
1745
|
+
aggregateID: string;
|
|
1746
|
+
seq: EventSeq;
|
|
1747
|
+
version: 1;
|
|
1748
|
+
};
|
|
1703
1749
|
location?: LocationRef;
|
|
1704
1750
|
data: {
|
|
1705
|
-
|
|
1751
|
+
sessionID: SessionID;
|
|
1752
|
+
assistantMessageID: SessionMessageID;
|
|
1753
|
+
ordinal: number;
|
|
1706
1754
|
};
|
|
1707
1755
|
};
|
|
1708
|
-
export type
|
|
1709
|
-
id:
|
|
1756
|
+
export type SessionTextEnded = {
|
|
1757
|
+
id: EventID;
|
|
1710
1758
|
created: number;
|
|
1711
1759
|
metadata?: {
|
|
1712
1760
|
[x: string]: any;
|
|
1713
1761
|
};
|
|
1714
|
-
type: "
|
|
1762
|
+
type: "session.text.ended";
|
|
1763
|
+
durable: {
|
|
1764
|
+
aggregateID: string;
|
|
1765
|
+
seq: EventSeq;
|
|
1766
|
+
version: 1;
|
|
1767
|
+
};
|
|
1715
1768
|
location?: LocationRef;
|
|
1716
1769
|
data: {
|
|
1717
|
-
sessionID:
|
|
1718
|
-
|
|
1770
|
+
sessionID: SessionID;
|
|
1771
|
+
assistantMessageID: SessionMessageID;
|
|
1772
|
+
ordinal: number;
|
|
1773
|
+
text: string;
|
|
1774
|
+
state?: SessionMessageProviderState1;
|
|
1719
1775
|
};
|
|
1720
1776
|
};
|
|
1721
|
-
export type
|
|
1722
|
-
id:
|
|
1777
|
+
export type SessionReasoningStarted = {
|
|
1778
|
+
id: EventID;
|
|
1723
1779
|
created: number;
|
|
1724
1780
|
metadata?: {
|
|
1725
1781
|
[x: string]: any;
|
|
1726
1782
|
};
|
|
1727
|
-
type: "
|
|
1783
|
+
type: "session.reasoning.started";
|
|
1784
|
+
durable: {
|
|
1785
|
+
aggregateID: string;
|
|
1786
|
+
seq: EventSeq;
|
|
1787
|
+
version: 1;
|
|
1788
|
+
};
|
|
1728
1789
|
location?: LocationRef;
|
|
1729
1790
|
data: {
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1791
|
+
sessionID: SessionID;
|
|
1792
|
+
assistantMessageID: SessionMessageID;
|
|
1793
|
+
ordinal: number;
|
|
1794
|
+
state?: SessionMessageProviderState1;
|
|
1733
1795
|
};
|
|
1734
1796
|
};
|
|
1735
|
-
export type
|
|
1736
|
-
id:
|
|
1797
|
+
export type SessionReasoningEnded = {
|
|
1798
|
+
id: EventID;
|
|
1737
1799
|
created: number;
|
|
1738
1800
|
metadata?: {
|
|
1739
1801
|
[x: string]: any;
|
|
1740
1802
|
};
|
|
1741
|
-
type: "
|
|
1803
|
+
type: "session.reasoning.ended";
|
|
1804
|
+
durable: {
|
|
1805
|
+
aggregateID: string;
|
|
1806
|
+
seq: EventSeq;
|
|
1807
|
+
version: 1;
|
|
1808
|
+
};
|
|
1742
1809
|
location?: LocationRef;
|
|
1743
1810
|
data: {
|
|
1744
|
-
|
|
1811
|
+
sessionID: SessionID;
|
|
1812
|
+
assistantMessageID: SessionMessageID;
|
|
1813
|
+
ordinal: number;
|
|
1814
|
+
text: string;
|
|
1815
|
+
state?: SessionMessageProviderState1;
|
|
1745
1816
|
};
|
|
1746
1817
|
};
|
|
1747
|
-
export type
|
|
1748
|
-
id:
|
|
1818
|
+
export type SessionToolInputStarted = {
|
|
1819
|
+
id: EventID;
|
|
1749
1820
|
created: number;
|
|
1750
1821
|
metadata?: {
|
|
1751
1822
|
[x: string]: any;
|
|
1752
1823
|
};
|
|
1753
|
-
type: "
|
|
1824
|
+
type: "session.tool.input.started";
|
|
1825
|
+
durable: {
|
|
1826
|
+
aggregateID: string;
|
|
1827
|
+
seq: EventSeq;
|
|
1828
|
+
version: 1;
|
|
1829
|
+
};
|
|
1754
1830
|
location?: LocationRef;
|
|
1755
1831
|
data: {
|
|
1832
|
+
sessionID: SessionID;
|
|
1833
|
+
assistantMessageID: SessionMessageID;
|
|
1756
1834
|
id: string;
|
|
1757
|
-
|
|
1835
|
+
name: string;
|
|
1758
1836
|
};
|
|
1759
1837
|
};
|
|
1760
|
-
export type
|
|
1761
|
-
id:
|
|
1838
|
+
export type SessionToolInputEnded = {
|
|
1839
|
+
id: EventID;
|
|
1762
1840
|
created: number;
|
|
1763
1841
|
metadata?: {
|
|
1764
1842
|
[x: string]: any;
|
|
1765
1843
|
};
|
|
1766
|
-
type: "
|
|
1844
|
+
type: "session.tool.input.ended";
|
|
1845
|
+
durable: {
|
|
1846
|
+
aggregateID: string;
|
|
1847
|
+
seq: EventSeq;
|
|
1848
|
+
version: 1;
|
|
1849
|
+
};
|
|
1767
1850
|
location?: LocationRef;
|
|
1768
|
-
data: {
|
|
1851
|
+
data: {
|
|
1852
|
+
sessionID: SessionID;
|
|
1853
|
+
assistantMessageID: SessionMessageID;
|
|
1854
|
+
id: string;
|
|
1855
|
+
text: string;
|
|
1856
|
+
};
|
|
1769
1857
|
};
|
|
1770
|
-
export type
|
|
1771
|
-
id:
|
|
1858
|
+
export type SessionToolCalled = {
|
|
1859
|
+
id: EventID;
|
|
1772
1860
|
created: number;
|
|
1773
1861
|
metadata?: {
|
|
1774
1862
|
[x: string]: any;
|
|
1775
1863
|
};
|
|
1776
|
-
type: "session.
|
|
1864
|
+
type: "session.tool.called";
|
|
1865
|
+
durable: {
|
|
1866
|
+
aggregateID: string;
|
|
1867
|
+
seq: EventSeq;
|
|
1868
|
+
version: 1;
|
|
1869
|
+
};
|
|
1777
1870
|
location?: LocationRef;
|
|
1778
1871
|
data: {
|
|
1779
|
-
sessionID:
|
|
1872
|
+
sessionID: SessionID;
|
|
1873
|
+
assistantMessageID: SessionMessageID;
|
|
1874
|
+
id: string;
|
|
1875
|
+
input: {
|
|
1876
|
+
[x: string]: any;
|
|
1877
|
+
};
|
|
1878
|
+
executed: boolean;
|
|
1879
|
+
state?: SessionMessageProviderState1;
|
|
1780
1880
|
};
|
|
1781
1881
|
};
|
|
1782
|
-
export type
|
|
1783
|
-
id:
|
|
1882
|
+
export type SessionRetryScheduled = {
|
|
1883
|
+
id: EventID;
|
|
1784
1884
|
created: number;
|
|
1785
1885
|
metadata?: {
|
|
1786
1886
|
[x: string]: any;
|
|
1787
1887
|
};
|
|
1788
|
-
type: "
|
|
1888
|
+
type: "session.retry.scheduled";
|
|
1889
|
+
durable: {
|
|
1890
|
+
aggregateID: string;
|
|
1891
|
+
seq: EventSeq;
|
|
1892
|
+
version: 1;
|
|
1893
|
+
};
|
|
1789
1894
|
location?: LocationRef;
|
|
1790
1895
|
data: {
|
|
1791
|
-
|
|
1896
|
+
sessionID: SessionID;
|
|
1897
|
+
assistantMessageID: SessionMessageID;
|
|
1898
|
+
attempt: number;
|
|
1899
|
+
at: number;
|
|
1900
|
+
error: SessionStructuredError;
|
|
1792
1901
|
};
|
|
1793
1902
|
};
|
|
1794
|
-
export type
|
|
1795
|
-
id:
|
|
1903
|
+
export type SessionCompactionStarted = {
|
|
1904
|
+
id: EventID;
|
|
1796
1905
|
created: number;
|
|
1797
1906
|
metadata?: {
|
|
1798
1907
|
[x: string]: any;
|
|
1799
1908
|
};
|
|
1800
|
-
type: "
|
|
1909
|
+
type: "session.compaction.started";
|
|
1910
|
+
durable: {
|
|
1911
|
+
aggregateID: string;
|
|
1912
|
+
seq: EventSeq;
|
|
1913
|
+
version: 1;
|
|
1914
|
+
};
|
|
1801
1915
|
location?: LocationRef;
|
|
1802
1916
|
data: {
|
|
1803
|
-
|
|
1917
|
+
sessionID: SessionID;
|
|
1918
|
+
reason: "auto" | "manual";
|
|
1919
|
+
recent: string;
|
|
1920
|
+
inputID?: SessionMessageID;
|
|
1804
1921
|
};
|
|
1805
1922
|
};
|
|
1806
|
-
export type
|
|
1807
|
-
id:
|
|
1923
|
+
export type SessionCompactionFailed = {
|
|
1924
|
+
id: EventID;
|
|
1808
1925
|
created: number;
|
|
1809
1926
|
metadata?: {
|
|
1810
1927
|
[x: string]: any;
|
|
1811
1928
|
};
|
|
1812
|
-
type: "
|
|
1929
|
+
type: "session.compaction.failed";
|
|
1930
|
+
durable: {
|
|
1931
|
+
aggregateID: string;
|
|
1932
|
+
seq: EventSeq;
|
|
1933
|
+
version: 1;
|
|
1934
|
+
};
|
|
1813
1935
|
location?: LocationRef;
|
|
1814
1936
|
data: {
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1937
|
+
sessionID: SessionID;
|
|
1938
|
+
reason: "auto" | "manual";
|
|
1939
|
+
error: SessionStructuredError;
|
|
1940
|
+
inputID?: SessionMessageID;
|
|
1941
|
+
cost?: MoneyUSD;
|
|
1942
|
+
tokens?: TokenUsageInfo;
|
|
1819
1943
|
};
|
|
1820
1944
|
};
|
|
1821
|
-
export type
|
|
1822
|
-
id:
|
|
1945
|
+
export type SessionRevertStaged = {
|
|
1946
|
+
id: EventID;
|
|
1823
1947
|
created: number;
|
|
1824
1948
|
metadata?: {
|
|
1825
1949
|
[x: string]: any;
|
|
1826
1950
|
};
|
|
1827
|
-
type: "
|
|
1951
|
+
type: "session.revert.staged";
|
|
1952
|
+
durable: {
|
|
1953
|
+
aggregateID: string;
|
|
1954
|
+
seq: EventSeq;
|
|
1955
|
+
version: 1;
|
|
1956
|
+
};
|
|
1828
1957
|
location?: LocationRef;
|
|
1829
1958
|
data: {
|
|
1830
|
-
sessionID:
|
|
1959
|
+
sessionID: SessionID;
|
|
1960
|
+
revert: SessionRevert;
|
|
1831
1961
|
};
|
|
1832
1962
|
};
|
|
1833
|
-
export type
|
|
1834
|
-
id:
|
|
1963
|
+
export type SessionRevertCleared = {
|
|
1964
|
+
id: EventID;
|
|
1835
1965
|
created: number;
|
|
1836
1966
|
metadata?: {
|
|
1837
1967
|
[x: string]: any;
|
|
1838
1968
|
};
|
|
1839
|
-
type: "
|
|
1969
|
+
type: "session.revert.cleared";
|
|
1970
|
+
durable: {
|
|
1971
|
+
aggregateID: string;
|
|
1972
|
+
seq: EventSeq;
|
|
1973
|
+
version: 1;
|
|
1974
|
+
};
|
|
1840
1975
|
location?: LocationRef;
|
|
1841
1976
|
data: {
|
|
1842
|
-
|
|
1977
|
+
sessionID: SessionID;
|
|
1843
1978
|
};
|
|
1844
1979
|
};
|
|
1845
|
-
export type
|
|
1846
|
-
id:
|
|
1980
|
+
export type SessionRevertCommitted = {
|
|
1981
|
+
id: EventID;
|
|
1847
1982
|
created: number;
|
|
1848
1983
|
metadata?: {
|
|
1849
1984
|
[x: string]: any;
|
|
1850
1985
|
};
|
|
1851
|
-
type: "
|
|
1986
|
+
type: "session.revert.committed";
|
|
1987
|
+
durable: {
|
|
1988
|
+
aggregateID: string;
|
|
1989
|
+
seq: EventSeq;
|
|
1990
|
+
version: 1;
|
|
1991
|
+
};
|
|
1852
1992
|
location?: LocationRef;
|
|
1853
1993
|
data: {
|
|
1854
|
-
|
|
1994
|
+
sessionID: SessionID;
|
|
1995
|
+
to: SessionMessageID;
|
|
1855
1996
|
};
|
|
1856
1997
|
};
|
|
1857
|
-
export type
|
|
1858
|
-
id:
|
|
1998
|
+
export type SessionUsageRecorded = {
|
|
1999
|
+
id: EventID;
|
|
1859
2000
|
created: number;
|
|
1860
2001
|
metadata?: {
|
|
1861
2002
|
[x: string]: any;
|
|
1862
2003
|
};
|
|
1863
|
-
type: "
|
|
2004
|
+
type: "session.usage.recorded";
|
|
2005
|
+
durable: {
|
|
2006
|
+
aggregateID: string;
|
|
2007
|
+
seq: EventSeq;
|
|
2008
|
+
version: 1;
|
|
2009
|
+
};
|
|
1864
2010
|
location?: LocationRef;
|
|
1865
2011
|
data: {
|
|
1866
|
-
|
|
2012
|
+
sessionID: SessionID;
|
|
2013
|
+
source: "title" | "compaction";
|
|
2014
|
+
cost: MoneyUSD;
|
|
2015
|
+
tokens: TokenUsageInfo;
|
|
1867
2016
|
};
|
|
1868
2017
|
};
|
|
1869
|
-
export type
|
|
1870
|
-
id:
|
|
2018
|
+
export type LocationShutdown = {
|
|
2019
|
+
id: EventID;
|
|
1871
2020
|
created: number;
|
|
1872
2021
|
metadata?: {
|
|
1873
2022
|
[x: string]: any;
|
|
1874
2023
|
};
|
|
1875
|
-
type: "
|
|
2024
|
+
type: "location.shutdown";
|
|
1876
2025
|
location?: LocationRef;
|
|
1877
|
-
data: {
|
|
1878
|
-
server: string;
|
|
1879
|
-
};
|
|
2026
|
+
data: {};
|
|
1880
2027
|
};
|
|
1881
|
-
export type
|
|
1882
|
-
id:
|
|
2028
|
+
export type ModelsDevRefreshed = {
|
|
2029
|
+
id: EventID;
|
|
1883
2030
|
created: number;
|
|
1884
2031
|
metadata?: {
|
|
1885
2032
|
[x: string]: any;
|
|
1886
2033
|
};
|
|
1887
|
-
type: "
|
|
2034
|
+
type: "models-dev.refreshed";
|
|
1888
2035
|
location?: LocationRef;
|
|
1889
|
-
data: {
|
|
1890
|
-
server: string;
|
|
1891
|
-
};
|
|
2036
|
+
data: {};
|
|
1892
2037
|
};
|
|
1893
|
-
export type
|
|
1894
|
-
id:
|
|
2038
|
+
export type CredentialUpdated = {
|
|
2039
|
+
id: EventID;
|
|
1895
2040
|
created: number;
|
|
1896
2041
|
metadata?: {
|
|
1897
2042
|
[x: string]: any;
|
|
1898
2043
|
};
|
|
1899
|
-
type: "
|
|
1900
|
-
durable: {
|
|
1901
|
-
aggregateID: string;
|
|
1902
|
-
seq: number;
|
|
1903
|
-
version: 1;
|
|
1904
|
-
};
|
|
2044
|
+
type: "credential.updated";
|
|
1905
2045
|
location?: LocationRef;
|
|
1906
|
-
data: {
|
|
1907
|
-
sessionID: string;
|
|
1908
|
-
location: LocationRef;
|
|
1909
|
-
projectID: string;
|
|
1910
|
-
subpath?: string;
|
|
1911
|
-
};
|
|
1912
|
-
};
|
|
1913
|
-
export type SessionInboxMovePayload1 = {
|
|
1914
|
-
location: LocationRef;
|
|
1915
|
-
projectID: string;
|
|
1916
|
-
subpath?: string;
|
|
2046
|
+
data: {};
|
|
1917
2047
|
};
|
|
1918
|
-
export type
|
|
1919
|
-
id:
|
|
2048
|
+
export type CredentialSwitched = {
|
|
2049
|
+
id: EventID;
|
|
1920
2050
|
created: number;
|
|
1921
2051
|
metadata?: {
|
|
1922
2052
|
[x: string]: any;
|
|
1923
2053
|
};
|
|
1924
|
-
type: "
|
|
1925
|
-
durable: {
|
|
1926
|
-
aggregateID: string;
|
|
1927
|
-
seq: number;
|
|
1928
|
-
version: 1;
|
|
1929
|
-
};
|
|
2054
|
+
type: "credential.switched";
|
|
1930
2055
|
location?: LocationRef;
|
|
1931
2056
|
data: {
|
|
1932
|
-
|
|
1933
|
-
|
|
2057
|
+
integrationID: IntegrationID;
|
|
2058
|
+
credentialID: CredentialID | null;
|
|
1934
2059
|
};
|
|
1935
2060
|
};
|
|
1936
|
-
export type
|
|
1937
|
-
id:
|
|
2061
|
+
export type IntegrationUpdated = {
|
|
2062
|
+
id: EventID;
|
|
1938
2063
|
created: number;
|
|
1939
2064
|
metadata?: {
|
|
1940
2065
|
[x: string]: any;
|
|
1941
2066
|
};
|
|
1942
|
-
type: "
|
|
1943
|
-
durable: {
|
|
1944
|
-
aggregateID: string;
|
|
1945
|
-
seq: number;
|
|
1946
|
-
version: 1;
|
|
1947
|
-
};
|
|
2067
|
+
type: "integration.updated";
|
|
1948
2068
|
location?: LocationRef;
|
|
1949
|
-
data: {
|
|
1950
|
-
sessionID: string;
|
|
1951
|
-
shell: ShellInfo;
|
|
1952
|
-
};
|
|
2069
|
+
data: {};
|
|
1953
2070
|
};
|
|
1954
|
-
export type
|
|
1955
|
-
id:
|
|
2071
|
+
export type ProviderUpdated = {
|
|
2072
|
+
id: EventID;
|
|
1956
2073
|
created: number;
|
|
1957
2074
|
metadata?: {
|
|
1958
2075
|
[x: string]: any;
|
|
1959
2076
|
};
|
|
1960
|
-
type: "
|
|
1961
|
-
durable: {
|
|
1962
|
-
aggregateID: string;
|
|
1963
|
-
seq: number;
|
|
1964
|
-
version: 1;
|
|
1965
|
-
};
|
|
2077
|
+
type: "provider.updated";
|
|
1966
2078
|
location?: LocationRef;
|
|
1967
|
-
data: {
|
|
1968
|
-
sessionID: string;
|
|
1969
|
-
shell: ShellInfo;
|
|
1970
|
-
output: {
|
|
1971
|
-
output: string;
|
|
1972
|
-
cursor: number;
|
|
1973
|
-
size: number;
|
|
1974
|
-
truncated: boolean;
|
|
1975
|
-
};
|
|
1976
|
-
};
|
|
2079
|
+
data: {};
|
|
1977
2080
|
};
|
|
1978
|
-
export type
|
|
1979
|
-
id:
|
|
2081
|
+
export type ModelUpdated = {
|
|
2082
|
+
id: EventID;
|
|
1980
2083
|
created: number;
|
|
1981
2084
|
metadata?: {
|
|
1982
2085
|
[x: string]: any;
|
|
1983
2086
|
};
|
|
1984
|
-
type: "
|
|
2087
|
+
type: "model.updated";
|
|
1985
2088
|
location?: LocationRef;
|
|
1986
|
-
data: {
|
|
1987
|
-
info: ShellInfo;
|
|
1988
|
-
};
|
|
2089
|
+
data: {};
|
|
1989
2090
|
};
|
|
1990
|
-
export type
|
|
1991
|
-
id:
|
|
2091
|
+
export type AgentUpdated = {
|
|
2092
|
+
id: EventID;
|
|
1992
2093
|
created: number;
|
|
1993
2094
|
metadata?: {
|
|
1994
2095
|
[x: string]: any;
|
|
1995
2096
|
};
|
|
1996
|
-
type: "
|
|
1997
|
-
durable: {
|
|
1998
|
-
aggregateID: string;
|
|
1999
|
-
seq: number;
|
|
2000
|
-
version: 1;
|
|
2001
|
-
};
|
|
2097
|
+
type: "agent.updated";
|
|
2002
2098
|
location?: LocationRef;
|
|
2003
|
-
data: {
|
|
2004
|
-
sessionID: string;
|
|
2005
|
-
assistantMessageID: string;
|
|
2006
|
-
finish: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
|
|
2007
|
-
rawFinish?: string;
|
|
2008
|
-
providerState?: SessionMessageProviderState1;
|
|
2009
|
-
cost: MoneyUSD;
|
|
2010
|
-
tokens: TokenUsageInfo;
|
|
2011
|
-
snapshot?: string;
|
|
2012
|
-
files?: Array<string>;
|
|
2013
|
-
};
|
|
2099
|
+
data: {};
|
|
2014
2100
|
};
|
|
2015
|
-
export type
|
|
2016
|
-
id:
|
|
2101
|
+
export type SessionUsageUpdated = {
|
|
2102
|
+
id: EventID;
|
|
2017
2103
|
created: number;
|
|
2018
2104
|
metadata?: {
|
|
2019
2105
|
[x: string]: any;
|
|
2020
2106
|
};
|
|
2021
|
-
type: "session.
|
|
2022
|
-
durable: {
|
|
2023
|
-
aggregateID: string;
|
|
2024
|
-
seq: number;
|
|
2025
|
-
version: 1;
|
|
2026
|
-
};
|
|
2107
|
+
type: "session.usage.updated";
|
|
2027
2108
|
location?: LocationRef;
|
|
2028
2109
|
data: {
|
|
2029
|
-
sessionID:
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
finish?: "content-filter";
|
|
2033
|
-
rawFinish?: string;
|
|
2034
|
-
providerState?: SessionMessageProviderState1;
|
|
2035
|
-
cost?: MoneyUSD;
|
|
2036
|
-
tokens?: TokenUsageInfo;
|
|
2037
|
-
snapshot?: string;
|
|
2038
|
-
files?: Array<string>;
|
|
2110
|
+
sessionID: SessionID;
|
|
2111
|
+
cost: MoneyUSD;
|
|
2112
|
+
tokens: TokenUsageInfo;
|
|
2039
2113
|
};
|
|
2040
2114
|
};
|
|
2041
|
-
export type
|
|
2042
|
-
id:
|
|
2115
|
+
export type SessionTextDelta = {
|
|
2116
|
+
id: EventID;
|
|
2043
2117
|
created: number;
|
|
2044
2118
|
metadata?: {
|
|
2045
2119
|
[x: string]: any;
|
|
2046
2120
|
};
|
|
2047
|
-
type: "session.text.
|
|
2048
|
-
durable: {
|
|
2049
|
-
aggregateID: string;
|
|
2050
|
-
seq: number;
|
|
2051
|
-
version: 1;
|
|
2052
|
-
};
|
|
2121
|
+
type: "session.text.delta";
|
|
2053
2122
|
location?: LocationRef;
|
|
2054
2123
|
data: {
|
|
2055
|
-
sessionID:
|
|
2056
|
-
assistantMessageID:
|
|
2124
|
+
sessionID: SessionID;
|
|
2125
|
+
assistantMessageID: SessionMessageID;
|
|
2057
2126
|
ordinal: number;
|
|
2058
|
-
|
|
2059
|
-
state?: SessionMessageProviderState1;
|
|
2127
|
+
delta: string;
|
|
2060
2128
|
};
|
|
2061
2129
|
};
|
|
2062
|
-
export type
|
|
2063
|
-
id:
|
|
2130
|
+
export type SessionReasoningDelta = {
|
|
2131
|
+
id: EventID;
|
|
2064
2132
|
created: number;
|
|
2065
2133
|
metadata?: {
|
|
2066
2134
|
[x: string]: any;
|
|
2067
2135
|
};
|
|
2068
|
-
type: "session.reasoning.
|
|
2069
|
-
durable: {
|
|
2070
|
-
aggregateID: string;
|
|
2071
|
-
seq: number;
|
|
2072
|
-
version: 1;
|
|
2073
|
-
};
|
|
2136
|
+
type: "session.reasoning.delta";
|
|
2074
2137
|
location?: LocationRef;
|
|
2075
2138
|
data: {
|
|
2076
|
-
sessionID:
|
|
2077
|
-
assistantMessageID:
|
|
2139
|
+
sessionID: SessionID;
|
|
2140
|
+
assistantMessageID: SessionMessageID;
|
|
2078
2141
|
ordinal: number;
|
|
2079
|
-
|
|
2142
|
+
delta: string;
|
|
2080
2143
|
};
|
|
2081
2144
|
};
|
|
2082
|
-
export type
|
|
2083
|
-
id:
|
|
2145
|
+
export type SessionToolInputDelta = {
|
|
2146
|
+
id: EventID;
|
|
2084
2147
|
created: number;
|
|
2085
2148
|
metadata?: {
|
|
2086
2149
|
[x: string]: any;
|
|
2087
2150
|
};
|
|
2088
|
-
type: "session.
|
|
2089
|
-
durable: {
|
|
2090
|
-
aggregateID: string;
|
|
2091
|
-
seq: number;
|
|
2092
|
-
version: 1;
|
|
2093
|
-
};
|
|
2151
|
+
type: "session.tool.input.delta";
|
|
2094
2152
|
location?: LocationRef;
|
|
2095
2153
|
data: {
|
|
2096
|
-
sessionID:
|
|
2097
|
-
assistantMessageID:
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
state?: SessionMessageProviderState1;
|
|
2154
|
+
sessionID: SessionID;
|
|
2155
|
+
assistantMessageID: SessionMessageID;
|
|
2156
|
+
id: string;
|
|
2157
|
+
delta: string;
|
|
2101
2158
|
};
|
|
2102
2159
|
};
|
|
2103
|
-
export type
|
|
2104
|
-
id:
|
|
2160
|
+
export type SessionToolProgress = {
|
|
2161
|
+
id: EventID;
|
|
2105
2162
|
created: number;
|
|
2106
2163
|
metadata?: {
|
|
2107
2164
|
[x: string]: any;
|
|
2108
2165
|
};
|
|
2109
|
-
type: "session.tool.
|
|
2110
|
-
durable: {
|
|
2111
|
-
aggregateID: string;
|
|
2112
|
-
seq: number;
|
|
2113
|
-
version: 1;
|
|
2114
|
-
};
|
|
2166
|
+
type: "session.tool.progress";
|
|
2115
2167
|
location?: LocationRef;
|
|
2116
2168
|
data: {
|
|
2117
|
-
sessionID:
|
|
2118
|
-
assistantMessageID:
|
|
2169
|
+
sessionID: SessionID;
|
|
2170
|
+
assistantMessageID: SessionMessageID;
|
|
2119
2171
|
id: string;
|
|
2120
|
-
|
|
2121
|
-
[x: string]:
|
|
2172
|
+
metadata: {
|
|
2173
|
+
[x: string]: JsonValue;
|
|
2122
2174
|
};
|
|
2123
|
-
executed: boolean;
|
|
2124
|
-
state?: SessionMessageProviderState1;
|
|
2125
|
-
};
|
|
2126
|
-
};
|
|
2127
|
-
export type SessionMessageAssistantText1 = {
|
|
2128
|
-
type: "text";
|
|
2129
|
-
text: string;
|
|
2130
|
-
state?: SessionMessageProviderState1;
|
|
2131
|
-
};
|
|
2132
|
-
export type SessionMessageAssistantReasoning1 = {
|
|
2133
|
-
type: "reasoning";
|
|
2134
|
-
text: string;
|
|
2135
|
-
state?: SessionMessageProviderState1;
|
|
2136
|
-
time?: {
|
|
2137
|
-
created: number;
|
|
2138
|
-
completed?: number;
|
|
2139
2175
|
};
|
|
2140
2176
|
};
|
|
2141
|
-
export type
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
default?: number | "Infinity" | "-Infinity" | "NaN";
|
|
2153
|
-
};
|
|
2154
|
-
export type FormIntegerField = {
|
|
2155
|
-
key: string;
|
|
2156
|
-
title?: string;
|
|
2157
|
-
description?: string;
|
|
2158
|
-
required?: boolean;
|
|
2159
|
-
hidden?: boolean;
|
|
2160
|
-
when?: Array<FormWhen>;
|
|
2161
|
-
type: "integer";
|
|
2162
|
-
minimum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
2163
|
-
maximum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
2164
|
-
default?: number | "Infinity" | "-Infinity" | "NaN";
|
|
2165
|
-
};
|
|
2166
|
-
export type FormBooleanField = {
|
|
2167
|
-
key: string;
|
|
2168
|
-
title?: string;
|
|
2169
|
-
description?: string;
|
|
2170
|
-
required?: boolean;
|
|
2171
|
-
hidden?: boolean;
|
|
2172
|
-
when?: Array<FormWhen>;
|
|
2173
|
-
type: "boolean";
|
|
2174
|
-
default?: boolean;
|
|
2175
|
-
};
|
|
2176
|
-
export type FormStringField = {
|
|
2177
|
-
key: string;
|
|
2178
|
-
title?: string;
|
|
2179
|
-
description?: string;
|
|
2180
|
-
required?: boolean;
|
|
2181
|
-
hidden?: boolean;
|
|
2182
|
-
when?: Array<FormWhen>;
|
|
2183
|
-
type: "string";
|
|
2184
|
-
format?: "email" | "uri" | "date" | "date-time";
|
|
2185
|
-
minLength?: number;
|
|
2186
|
-
maxLength?: number;
|
|
2187
|
-
pattern?: string;
|
|
2188
|
-
placeholder?: string;
|
|
2189
|
-
default?: string;
|
|
2190
|
-
options?: Array<FormOption>;
|
|
2191
|
-
custom?: boolean;
|
|
2192
|
-
};
|
|
2193
|
-
export type FormMultiselectField = {
|
|
2194
|
-
key: string;
|
|
2195
|
-
title?: string;
|
|
2196
|
-
description?: string;
|
|
2197
|
-
required?: boolean;
|
|
2198
|
-
hidden?: boolean;
|
|
2199
|
-
when?: Array<FormWhen>;
|
|
2200
|
-
type: "multiselect";
|
|
2201
|
-
options: Array<FormOption>;
|
|
2202
|
-
minItems?: number;
|
|
2203
|
-
maxItems?: number;
|
|
2204
|
-
custom?: boolean;
|
|
2205
|
-
default?: Array<string>;
|
|
2206
|
-
};
|
|
2207
|
-
export type FormAnswer = {
|
|
2208
|
-
[x: string]: FormValue;
|
|
2209
|
-
};
|
|
2210
|
-
export type ModelCompatibility = {
|
|
2211
|
-
reasoningField?: ModelReasoningField;
|
|
2212
|
-
requireReasoning?: boolean;
|
|
2213
|
-
maxTokensField?: ModelMaxTokensField;
|
|
2214
|
-
requireFinishReason?: boolean;
|
|
2215
|
-
requireAssistantAfterTool?: boolean;
|
|
2216
|
-
supportsPromptCacheKey?: boolean;
|
|
2217
|
-
supportsThinkingBlockBinding?: boolean;
|
|
2218
|
-
supportsEffortUpdates?: boolean;
|
|
2219
|
-
};
|
|
2220
|
-
export type ModelCost = {
|
|
2221
|
-
tier?: {
|
|
2222
|
-
type: "context";
|
|
2223
|
-
size: number;
|
|
2224
|
-
};
|
|
2225
|
-
input: MoneyUSDPerMillionTokens;
|
|
2226
|
-
output: MoneyUSDPerMillionTokens;
|
|
2227
|
-
cache: {
|
|
2228
|
-
read: MoneyUSDPerMillionTokens;
|
|
2229
|
-
write: MoneyUSDPerMillionTokens;
|
|
2177
|
+
export type SessionCompactionDelta = {
|
|
2178
|
+
id: EventID;
|
|
2179
|
+
created: number;
|
|
2180
|
+
metadata?: {
|
|
2181
|
+
[x: string]: any;
|
|
2182
|
+
};
|
|
2183
|
+
type: "session.compaction.delta";
|
|
2184
|
+
location?: LocationRef;
|
|
2185
|
+
data: {
|
|
2186
|
+
sessionID: SessionID;
|
|
2187
|
+
text: string;
|
|
2230
2188
|
};
|
|
2231
2189
|
};
|
|
2232
|
-
export type
|
|
2233
|
-
|
|
2234
|
-
id: string;
|
|
2235
|
-
label: string;
|
|
2236
|
-
method: "key" | "oauth" | "external";
|
|
2237
|
-
status?: ConnectionStatus;
|
|
2238
|
-
};
|
|
2239
|
-
export type ConnectionEnvInfo = {
|
|
2240
|
-
type: "env";
|
|
2241
|
-
name: string;
|
|
2242
|
-
status?: ConnectionStatus;
|
|
2243
|
-
};
|
|
2244
|
-
export type McpServer = {
|
|
2245
|
-
name: string;
|
|
2246
|
-
status: McpStatusConnected | McpStatusPending | McpStatusDisabled | McpStatusFailed | McpStatusNeedsAuth;
|
|
2247
|
-
integrationID?: string;
|
|
2248
|
-
};
|
|
2249
|
-
export type McpResourceCatalog = {
|
|
2250
|
-
resources: Array<McpResource>;
|
|
2251
|
-
templates: Array<McpResourceTemplate>;
|
|
2252
|
-
};
|
|
2253
|
-
export type Project = {
|
|
2254
|
-
id: string;
|
|
2255
|
-
canonical: string;
|
|
2256
|
-
vcs?: ProjectVcs;
|
|
2257
|
-
name?: string;
|
|
2258
|
-
icon?: ProjectIcon;
|
|
2259
|
-
commands?: ProjectCommands;
|
|
2260
|
-
time: ProjectTime;
|
|
2261
|
-
sandboxes: Array<string>;
|
|
2262
|
-
};
|
|
2263
|
-
export type ProjectUpdated = {
|
|
2264
|
-
id: string;
|
|
2190
|
+
export type FilesystemChanged = {
|
|
2191
|
+
id: EventID;
|
|
2265
2192
|
created: number;
|
|
2266
2193
|
metadata?: {
|
|
2267
2194
|
[x: string]: any;
|
|
2268
2195
|
};
|
|
2269
|
-
type: "
|
|
2196
|
+
type: "filesystem.changed";
|
|
2270
2197
|
location?: LocationRef;
|
|
2271
2198
|
data: {
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
vcs?: ProjectVcs;
|
|
2275
|
-
name?: string;
|
|
2276
|
-
icon?: ProjectIcon;
|
|
2277
|
-
commands?: ProjectCommands;
|
|
2278
|
-
time: ProjectTime;
|
|
2279
|
-
sandboxes: Array<string>;
|
|
2199
|
+
file: string;
|
|
2200
|
+
event: "add" | "change" | "unlink";
|
|
2280
2201
|
};
|
|
2281
2202
|
};
|
|
2282
|
-
export type
|
|
2283
|
-
id:
|
|
2284
|
-
|
|
2285
|
-
action: string;
|
|
2286
|
-
resources: Array<string>;
|
|
2287
|
-
save?: Array<string>;
|
|
2203
|
+
export type ReferenceUpdated = {
|
|
2204
|
+
id: EventID;
|
|
2205
|
+
created: number;
|
|
2288
2206
|
metadata?: {
|
|
2289
|
-
[x: string]:
|
|
2207
|
+
[x: string]: any;
|
|
2290
2208
|
};
|
|
2291
|
-
|
|
2292
|
-
|
|
2209
|
+
type: "reference.updated";
|
|
2210
|
+
location?: LocationRef;
|
|
2211
|
+
data: {};
|
|
2293
2212
|
};
|
|
2294
2213
|
export type PermissionAsked = {
|
|
2295
|
-
id:
|
|
2214
|
+
id: EventID;
|
|
2296
2215
|
created: number;
|
|
2297
2216
|
metadata?: {
|
|
2298
2217
|
[x: string]: any;
|
|
@@ -2300,8 +2219,8 @@ export type PermissionAsked = {
|
|
|
2300
2219
|
type: "permission.asked";
|
|
2301
2220
|
location?: LocationRef;
|
|
2302
2221
|
data: {
|
|
2303
|
-
id:
|
|
2304
|
-
sessionID:
|
|
2222
|
+
id: PermissionID;
|
|
2223
|
+
sessionID: SessionID;
|
|
2305
2224
|
action: string;
|
|
2306
2225
|
resources: Array<string>;
|
|
2307
2226
|
save?: Array<string>;
|
|
@@ -2313,7 +2232,7 @@ export type PermissionAsked = {
|
|
|
2313
2232
|
};
|
|
2314
2233
|
};
|
|
2315
2234
|
export type PermissionReplied = {
|
|
2316
|
-
id:
|
|
2235
|
+
id: EventID;
|
|
2317
2236
|
created: number;
|
|
2318
2237
|
metadata?: {
|
|
2319
2238
|
[x: string]: any;
|
|
@@ -2321,346 +2240,339 @@ export type PermissionReplied = {
|
|
|
2321
2240
|
type: "permission.replied";
|
|
2322
2241
|
location?: LocationRef;
|
|
2323
2242
|
data: {
|
|
2324
|
-
sessionID:
|
|
2325
|
-
requestID:
|
|
2243
|
+
sessionID: SessionID;
|
|
2244
|
+
requestID: PermissionID;
|
|
2326
2245
|
reply: PermissionReply;
|
|
2327
2246
|
};
|
|
2328
2247
|
};
|
|
2329
|
-
export type
|
|
2330
|
-
id:
|
|
2248
|
+
export type PluginUpdated = {
|
|
2249
|
+
id: EventID;
|
|
2331
2250
|
created: number;
|
|
2332
2251
|
metadata?: {
|
|
2333
2252
|
[x: string]: any;
|
|
2334
2253
|
};
|
|
2335
|
-
type: "
|
|
2254
|
+
type: "plugin.updated";
|
|
2255
|
+
location?: LocationRef;
|
|
2256
|
+
data: {};
|
|
2257
|
+
};
|
|
2258
|
+
export type ProjectUpdated = {
|
|
2259
|
+
id: EventID;
|
|
2260
|
+
created: number;
|
|
2261
|
+
metadata?: {
|
|
2262
|
+
[x: string]: any;
|
|
2263
|
+
};
|
|
2264
|
+
type: "project.updated";
|
|
2336
2265
|
location?: LocationRef;
|
|
2337
2266
|
data: {
|
|
2338
|
-
|
|
2267
|
+
id: ProjectID;
|
|
2268
|
+
canonical: AbsolutePath;
|
|
2269
|
+
vcs?: ProjectVcs;
|
|
2270
|
+
name?: string;
|
|
2271
|
+
icon?: ProjectIcon;
|
|
2272
|
+
commands?: ProjectCommands;
|
|
2273
|
+
time: ProjectTime;
|
|
2274
|
+
sandboxes: Array<string>;
|
|
2339
2275
|
};
|
|
2340
2276
|
};
|
|
2341
|
-
export type
|
|
2342
|
-
id:
|
|
2277
|
+
export type WorktreeUpdated = {
|
|
2278
|
+
id: EventID;
|
|
2343
2279
|
created: number;
|
|
2344
2280
|
metadata?: {
|
|
2345
2281
|
[x: string]: any;
|
|
2346
2282
|
};
|
|
2347
|
-
type: "
|
|
2283
|
+
type: "worktree.updated";
|
|
2348
2284
|
location?: LocationRef;
|
|
2349
2285
|
data: {
|
|
2350
|
-
|
|
2286
|
+
projectID: ProjectID;
|
|
2351
2287
|
};
|
|
2352
2288
|
};
|
|
2353
|
-
export type
|
|
2354
|
-
id:
|
|
2289
|
+
export type WorktreeResolved = {
|
|
2290
|
+
id: EventID;
|
|
2355
2291
|
created: number;
|
|
2356
2292
|
metadata?: {
|
|
2357
2293
|
[x: string]: any;
|
|
2358
2294
|
};
|
|
2359
|
-
type: "
|
|
2295
|
+
type: "worktree.resolved";
|
|
2296
|
+
durable: {
|
|
2297
|
+
aggregateID: string;
|
|
2298
|
+
seq: EventSeq;
|
|
2299
|
+
version: 1;
|
|
2300
|
+
};
|
|
2360
2301
|
location?: LocationRef;
|
|
2361
2302
|
data: {
|
|
2362
|
-
|
|
2363
|
-
|
|
2303
|
+
projectID: ProjectID;
|
|
2304
|
+
directory: AbsolutePath;
|
|
2305
|
+
previous: ProjectID;
|
|
2306
|
+
adopted?: Array<ProjectID>;
|
|
2364
2307
|
};
|
|
2365
2308
|
};
|
|
2366
|
-
export type
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
x: number;
|
|
2372
|
-
y: number;
|
|
2309
|
+
export type CommandUpdated = {
|
|
2310
|
+
id: EventID;
|
|
2311
|
+
created: number;
|
|
2312
|
+
metadata?: {
|
|
2313
|
+
[x: string]: any;
|
|
2373
2314
|
};
|
|
2315
|
+
type: "command.updated";
|
|
2316
|
+
location?: LocationRef;
|
|
2317
|
+
data: {};
|
|
2374
2318
|
};
|
|
2375
|
-
export type
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
minLength?: number;
|
|
2385
|
-
maxLength?: number;
|
|
2386
|
-
pattern?: string;
|
|
2387
|
-
placeholder?: string;
|
|
2388
|
-
default?: string;
|
|
2389
|
-
options?: Array<FormOption>;
|
|
2390
|
-
custom?: boolean;
|
|
2391
|
-
};
|
|
2392
|
-
export type FormNumberField1 = {
|
|
2393
|
-
key: string;
|
|
2394
|
-
title?: string;
|
|
2395
|
-
description?: string;
|
|
2396
|
-
required?: boolean;
|
|
2397
|
-
hidden?: boolean;
|
|
2398
|
-
when?: Array<FormWhen1>;
|
|
2399
|
-
type: "number";
|
|
2400
|
-
minimum?: number;
|
|
2401
|
-
maximum?: number;
|
|
2402
|
-
default?: number;
|
|
2403
|
-
};
|
|
2404
|
-
export type FormIntegerField1 = {
|
|
2405
|
-
key: string;
|
|
2406
|
-
title?: string;
|
|
2407
|
-
description?: string;
|
|
2408
|
-
required?: boolean;
|
|
2409
|
-
hidden?: boolean;
|
|
2410
|
-
when?: Array<FormWhen1>;
|
|
2411
|
-
type: "integer";
|
|
2412
|
-
minimum?: number;
|
|
2413
|
-
maximum?: number;
|
|
2414
|
-
default?: number;
|
|
2415
|
-
};
|
|
2416
|
-
export type FormBooleanField1 = {
|
|
2417
|
-
key: string;
|
|
2418
|
-
title?: string;
|
|
2419
|
-
description?: string;
|
|
2420
|
-
required?: boolean;
|
|
2421
|
-
hidden?: boolean;
|
|
2422
|
-
when?: Array<FormWhen1>;
|
|
2423
|
-
type: "boolean";
|
|
2424
|
-
default?: boolean;
|
|
2425
|
-
};
|
|
2426
|
-
export type FormMultiselectField1 = {
|
|
2427
|
-
key: string;
|
|
2428
|
-
title?: string;
|
|
2429
|
-
description?: string;
|
|
2430
|
-
required?: boolean;
|
|
2431
|
-
hidden?: boolean;
|
|
2432
|
-
when?: Array<FormWhen1>;
|
|
2433
|
-
type: "multiselect";
|
|
2434
|
-
options: Array<FormOption>;
|
|
2435
|
-
minItems?: number;
|
|
2436
|
-
maxItems?: number;
|
|
2437
|
-
custom?: boolean;
|
|
2438
|
-
default?: Array<string>;
|
|
2319
|
+
export type ConfigUpdated = {
|
|
2320
|
+
id: EventID;
|
|
2321
|
+
created: number;
|
|
2322
|
+
metadata?: {
|
|
2323
|
+
[x: string]: any;
|
|
2324
|
+
};
|
|
2325
|
+
type: "config.updated";
|
|
2326
|
+
location?: LocationRef;
|
|
2327
|
+
data: {};
|
|
2439
2328
|
};
|
|
2440
|
-
export type
|
|
2441
|
-
|
|
2329
|
+
export type SkillUpdated = {
|
|
2330
|
+
id: EventID;
|
|
2331
|
+
created: number;
|
|
2332
|
+
metadata?: {
|
|
2333
|
+
[x: string]: any;
|
|
2334
|
+
};
|
|
2335
|
+
type: "skill.updated";
|
|
2336
|
+
location?: LocationRef;
|
|
2337
|
+
data: {};
|
|
2442
2338
|
};
|
|
2443
|
-
export type
|
|
2444
|
-
id:
|
|
2339
|
+
export type PtyExited = {
|
|
2340
|
+
id: EventID;
|
|
2445
2341
|
created: number;
|
|
2446
2342
|
metadata?: {
|
|
2447
2343
|
[x: string]: any;
|
|
2448
2344
|
};
|
|
2449
|
-
type: "
|
|
2345
|
+
type: "pty.exited";
|
|
2450
2346
|
location?: LocationRef;
|
|
2451
2347
|
data: {
|
|
2452
|
-
|
|
2453
|
-
|
|
2348
|
+
id: PtyID;
|
|
2349
|
+
exitCode: number;
|
|
2454
2350
|
};
|
|
2455
2351
|
};
|
|
2456
|
-
export type
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
};
|
|
2462
|
-
export type SessionInboxMove = {
|
|
2463
|
-
id: string;
|
|
2464
|
-
sessionID: string;
|
|
2465
|
-
time: {
|
|
2466
|
-
created: number;
|
|
2352
|
+
export type PtyDeleted = {
|
|
2353
|
+
id: EventID;
|
|
2354
|
+
created: number;
|
|
2355
|
+
metadata?: {
|
|
2356
|
+
[x: string]: any;
|
|
2467
2357
|
};
|
|
2468
|
-
type: "
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
export type ModelVariant = {
|
|
2473
|
-
id: string;
|
|
2474
|
-
settings?: ModelSettings;
|
|
2475
|
-
headers?: {
|
|
2476
|
-
[x: string]: string;
|
|
2358
|
+
type: "pty.deleted";
|
|
2359
|
+
location?: LocationRef;
|
|
2360
|
+
data: {
|
|
2361
|
+
id: PtyID;
|
|
2477
2362
|
};
|
|
2478
|
-
|
|
2363
|
+
};
|
|
2364
|
+
export type PersistentPtyRemoved = {
|
|
2365
|
+
id: EventID;
|
|
2366
|
+
created: number;
|
|
2367
|
+
metadata?: {
|
|
2479
2368
|
[x: string]: any;
|
|
2480
2369
|
};
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2370
|
+
type: "persistent-pty.removed";
|
|
2371
|
+
location?: LocationRef;
|
|
2372
|
+
data: {
|
|
2373
|
+
sessionID: SessionID;
|
|
2374
|
+
ptyID: PtyID;
|
|
2486
2375
|
};
|
|
2487
|
-
|
|
2376
|
+
};
|
|
2377
|
+
export type ShellCreated = {
|
|
2378
|
+
id: EventID;
|
|
2379
|
+
created: number;
|
|
2380
|
+
metadata?: {
|
|
2488
2381
|
[x: string]: any;
|
|
2489
2382
|
};
|
|
2383
|
+
type: "shell.created";
|
|
2384
|
+
location?: LocationRef;
|
|
2385
|
+
data: {
|
|
2386
|
+
info: ShellInfo;
|
|
2387
|
+
};
|
|
2490
2388
|
};
|
|
2491
|
-
export type
|
|
2492
|
-
id:
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
activation: "auto" | "enabled" | "disabled";
|
|
2497
|
-
package: string;
|
|
2498
|
-
settings?: ProviderSettings;
|
|
2499
|
-
headers?: {
|
|
2500
|
-
[x: string]: string;
|
|
2389
|
+
export type ShellExited = {
|
|
2390
|
+
id: EventID;
|
|
2391
|
+
created: number;
|
|
2392
|
+
metadata?: {
|
|
2393
|
+
[x: string]: any;
|
|
2501
2394
|
};
|
|
2502
|
-
|
|
2395
|
+
type: "shell.exited";
|
|
2396
|
+
location?: LocationRef;
|
|
2397
|
+
data: {
|
|
2398
|
+
id: ShellID;
|
|
2399
|
+
exit?: number;
|
|
2400
|
+
status: "running" | "exited" | "timeout" | "killed";
|
|
2401
|
+
};
|
|
2402
|
+
};
|
|
2403
|
+
export type ShellDeleted = {
|
|
2404
|
+
id: EventID;
|
|
2405
|
+
created: number;
|
|
2406
|
+
metadata?: {
|
|
2503
2407
|
[x: string]: any;
|
|
2504
2408
|
};
|
|
2409
|
+
type: "shell.deleted";
|
|
2410
|
+
location?: LocationRef;
|
|
2411
|
+
data: {
|
|
2412
|
+
id: ShellID;
|
|
2413
|
+
};
|
|
2505
2414
|
};
|
|
2506
|
-
export type
|
|
2507
|
-
|
|
2508
|
-
id: string;
|
|
2415
|
+
export type FormCancelled = {
|
|
2416
|
+
id: EventID;
|
|
2509
2417
|
created: number;
|
|
2510
2418
|
metadata?: {
|
|
2511
2419
|
[x: string]: any;
|
|
2512
2420
|
};
|
|
2513
|
-
type: "
|
|
2514
|
-
durable: {
|
|
2515
|
-
aggregateID: string;
|
|
2516
|
-
seq: number;
|
|
2517
|
-
version: 1;
|
|
2518
|
-
};
|
|
2421
|
+
type: "form.cancelled";
|
|
2519
2422
|
location?: LocationRef;
|
|
2520
2423
|
data: {
|
|
2424
|
+
id: FormID;
|
|
2521
2425
|
sessionID: string;
|
|
2522
|
-
revert: SessionRevert;
|
|
2523
2426
|
};
|
|
2524
2427
|
};
|
|
2525
|
-
export type
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2428
|
+
export type WebsearchUpdated = {
|
|
2429
|
+
id: EventID;
|
|
2430
|
+
created: number;
|
|
2431
|
+
metadata?: {
|
|
2432
|
+
[x: string]: any;
|
|
2529
2433
|
};
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
steps: number;
|
|
2534
|
-
tokens: TokenUsageInfo;
|
|
2535
|
-
cost: MoneyUSD;
|
|
2536
|
-
tools: SessionStatsTools;
|
|
2537
|
-
activeDays: number;
|
|
2538
|
-
streak: number;
|
|
2539
|
-
activity: Array<SessionStatsActivity>;
|
|
2540
|
-
models: Array<SessionStatsModelUsage>;
|
|
2434
|
+
type: "websearch.updated";
|
|
2435
|
+
location?: LocationRef;
|
|
2436
|
+
data: {};
|
|
2541
2437
|
};
|
|
2542
|
-
export type
|
|
2543
|
-
id:
|
|
2438
|
+
export type SessionStatusUpdated = {
|
|
2439
|
+
id: EventID;
|
|
2440
|
+
created: number;
|
|
2544
2441
|
metadata?: {
|
|
2545
|
-
[x: string]:
|
|
2442
|
+
[x: string]: any;
|
|
2546
2443
|
};
|
|
2547
|
-
|
|
2548
|
-
|
|
2444
|
+
type: "session.status";
|
|
2445
|
+
location?: LocationRef;
|
|
2446
|
+
data: {
|
|
2447
|
+
sessionID: SessionID;
|
|
2448
|
+
status: SessionStatus;
|
|
2549
2449
|
};
|
|
2550
|
-
text: string;
|
|
2551
|
-
files?: Array<PromptFileAttachment>;
|
|
2552
|
-
agents?: Array<PromptAgentAttachment>;
|
|
2553
|
-
skills?: Array<PromptSkillAttachment>;
|
|
2554
|
-
type: "user";
|
|
2555
2450
|
};
|
|
2556
|
-
export type
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
agents?: Array<PromptAgentAttachment>;
|
|
2560
|
-
skills?: Array<PromptSkillAttachment>;
|
|
2451
|
+
export type SessionIdle = {
|
|
2452
|
+
id: EventID;
|
|
2453
|
+
created: number;
|
|
2561
2454
|
metadata?: {
|
|
2562
|
-
[x: string]:
|
|
2455
|
+
[x: string]: any;
|
|
2456
|
+
};
|
|
2457
|
+
type: "session.idle";
|
|
2458
|
+
location?: LocationRef;
|
|
2459
|
+
data: {
|
|
2460
|
+
sessionID: SessionID;
|
|
2563
2461
|
};
|
|
2564
2462
|
};
|
|
2565
|
-
export type
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
agents?: Array<PromptAgentAttachment>;
|
|
2569
|
-
skills?: Array<PromptSkillAttachment>;
|
|
2463
|
+
export type TuiPromptAppend = {
|
|
2464
|
+
id: EventID;
|
|
2465
|
+
created: number;
|
|
2570
2466
|
metadata?: {
|
|
2571
2467
|
[x: string]: any;
|
|
2572
2468
|
};
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
[x: string]: JsonValue;
|
|
2469
|
+
type: "tui.prompt.append";
|
|
2470
|
+
location?: LocationRef;
|
|
2471
|
+
data: {
|
|
2472
|
+
text: string;
|
|
2578
2473
|
};
|
|
2579
|
-
|
|
2474
|
+
};
|
|
2475
|
+
export type TuiCommandExecute = {
|
|
2476
|
+
id: EventID;
|
|
2477
|
+
created: number;
|
|
2580
2478
|
metadata?: {
|
|
2581
|
-
[x: string]:
|
|
2479
|
+
[x: string]: any;
|
|
2480
|
+
};
|
|
2481
|
+
type: "tui.command.execute";
|
|
2482
|
+
location?: LocationRef;
|
|
2483
|
+
data: {
|
|
2484
|
+
command: "session.list" | "session.new" | "session.share" | "session.interrupt" | "session.background" | "session.compact" | "session.page.up" | "session.page.down" | "session.line.up" | "session.line.down" | "session.half.page.up" | "session.half.page.down" | "session.first" | "session.last" | "prompt.clear" | "prompt.submit" | "agent.cycle" | (string & {});
|
|
2582
2485
|
};
|
|
2583
2486
|
};
|
|
2584
|
-
export type
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2487
|
+
export type TuiToastShow = {
|
|
2488
|
+
id: EventID;
|
|
2489
|
+
created: number;
|
|
2490
|
+
metadata?: {
|
|
2491
|
+
[x: string]: any;
|
|
2588
2492
|
};
|
|
2589
|
-
|
|
2590
|
-
|
|
2493
|
+
type: "tui.toast.show";
|
|
2494
|
+
location?: LocationRef;
|
|
2495
|
+
data: {
|
|
2496
|
+
title?: string;
|
|
2497
|
+
message: string;
|
|
2498
|
+
variant: "info" | "success" | "warning" | "error";
|
|
2499
|
+
duration?: number | undefined;
|
|
2500
|
+
};
|
|
2501
|
+
};
|
|
2502
|
+
export type TuiSessionSelect = {
|
|
2503
|
+
id: EventID;
|
|
2504
|
+
created: number;
|
|
2591
2505
|
metadata?: {
|
|
2592
|
-
[x: string]:
|
|
2506
|
+
[x: string]: any;
|
|
2507
|
+
};
|
|
2508
|
+
type: "tui.session.select";
|
|
2509
|
+
location?: LocationRef;
|
|
2510
|
+
data: {
|
|
2511
|
+
sessionID: SessionID;
|
|
2593
2512
|
};
|
|
2594
2513
|
};
|
|
2595
|
-
export type
|
|
2596
|
-
|
|
2597
|
-
|
|
2514
|
+
export type InstallationUpdated = {
|
|
2515
|
+
id: EventID;
|
|
2516
|
+
created: number;
|
|
2598
2517
|
metadata?: {
|
|
2599
|
-
[x: string]:
|
|
2518
|
+
[x: string]: any;
|
|
2600
2519
|
};
|
|
2601
|
-
|
|
2602
|
-
|
|
2520
|
+
type: "installation.updated";
|
|
2521
|
+
location?: LocationRef;
|
|
2522
|
+
data: {
|
|
2523
|
+
version: string;
|
|
2603
2524
|
};
|
|
2604
|
-
status: "completed";
|
|
2605
|
-
reason: "auto" | "manual";
|
|
2606
|
-
model?: ModelRef;
|
|
2607
|
-
providerState?: SessionMessageProviderState;
|
|
2608
|
-
summary: string;
|
|
2609
|
-
recent: string;
|
|
2610
|
-
providerContext?: SessionProviderContext;
|
|
2611
|
-
cost?: MoneyUSD;
|
|
2612
|
-
tokens?: TokenUsageInfo;
|
|
2613
2525
|
};
|
|
2614
|
-
export type
|
|
2615
|
-
id:
|
|
2526
|
+
export type InstallationUpdateAvailable = {
|
|
2527
|
+
id: EventID;
|
|
2616
2528
|
created: number;
|
|
2617
2529
|
metadata?: {
|
|
2618
2530
|
[x: string]: any;
|
|
2619
2531
|
};
|
|
2620
|
-
type: "
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2532
|
+
type: "installation.update-available";
|
|
2533
|
+
location?: LocationRef;
|
|
2534
|
+
data: {
|
|
2535
|
+
version: string;
|
|
2536
|
+
};
|
|
2537
|
+
};
|
|
2538
|
+
export type VcsBranchUpdated = {
|
|
2539
|
+
id: EventID;
|
|
2540
|
+
created: number;
|
|
2541
|
+
metadata?: {
|
|
2542
|
+
[x: string]: any;
|
|
2625
2543
|
};
|
|
2544
|
+
type: "vcs.branch.updated";
|
|
2626
2545
|
location?: LocationRef;
|
|
2627
2546
|
data: {
|
|
2628
|
-
|
|
2629
|
-
reason: "auto" | "manual";
|
|
2630
|
-
model?: ModelRef;
|
|
2631
|
-
providerState?: SessionMessageProviderState1;
|
|
2632
|
-
providerContext?: SessionProviderContext;
|
|
2633
|
-
text: string;
|
|
2634
|
-
recent: string;
|
|
2635
|
-
cost?: MoneyUSD;
|
|
2636
|
-
tokens?: TokenUsageInfo;
|
|
2547
|
+
branch?: string;
|
|
2637
2548
|
};
|
|
2638
2549
|
};
|
|
2639
|
-
export type
|
|
2640
|
-
id:
|
|
2550
|
+
export type McpStatusChanged = {
|
|
2551
|
+
id: EventID;
|
|
2641
2552
|
created: number;
|
|
2642
2553
|
metadata?: {
|
|
2643
2554
|
[x: string]: any;
|
|
2644
2555
|
};
|
|
2645
|
-
type: "
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2556
|
+
type: "mcp.status.changed";
|
|
2557
|
+
location?: LocationRef;
|
|
2558
|
+
data: {
|
|
2559
|
+
server: string;
|
|
2560
|
+
};
|
|
2561
|
+
};
|
|
2562
|
+
export type McpResourcesChanged = {
|
|
2563
|
+
id: EventID;
|
|
2564
|
+
created: number;
|
|
2565
|
+
metadata?: {
|
|
2566
|
+
[x: string]: any;
|
|
2650
2567
|
};
|
|
2568
|
+
type: "mcp.resources.changed";
|
|
2651
2569
|
location?: LocationRef;
|
|
2652
2570
|
data: {
|
|
2653
|
-
|
|
2654
|
-
parentID: string;
|
|
2655
|
-
boundary: SessionForkBoundary;
|
|
2656
|
-
instructions?: {
|
|
2657
|
-
[x: string]: string;
|
|
2658
|
-
};
|
|
2659
|
-
instructionEntries?: InstructionEntrySnapshot;
|
|
2571
|
+
server: string;
|
|
2660
2572
|
};
|
|
2661
2573
|
};
|
|
2662
2574
|
export type SessionToolSuccess = {
|
|
2663
|
-
id:
|
|
2575
|
+
id: EventID;
|
|
2664
2576
|
created: number;
|
|
2665
2577
|
metadata?: {
|
|
2666
2578
|
[x: string]: any;
|
|
@@ -2668,13 +2580,13 @@ export type SessionToolSuccess = {
|
|
|
2668
2580
|
type: "session.tool.success";
|
|
2669
2581
|
durable: {
|
|
2670
2582
|
aggregateID: string;
|
|
2671
|
-
seq:
|
|
2583
|
+
seq: EventSeq;
|
|
2672
2584
|
version: 2;
|
|
2673
2585
|
};
|
|
2674
2586
|
location?: LocationRef;
|
|
2675
2587
|
data: {
|
|
2676
|
-
sessionID:
|
|
2677
|
-
assistantMessageID:
|
|
2588
|
+
sessionID: SessionID;
|
|
2589
|
+
assistantMessageID: SessionMessageID;
|
|
2678
2590
|
id: string;
|
|
2679
2591
|
content: [ToolContent1, ...Array<ToolContent1>];
|
|
2680
2592
|
metadata?: {
|
|
@@ -2685,7 +2597,7 @@ export type SessionToolSuccess = {
|
|
|
2685
2597
|
};
|
|
2686
2598
|
};
|
|
2687
2599
|
export type SessionToolFailed = {
|
|
2688
|
-
id:
|
|
2600
|
+
id: EventID;
|
|
2689
2601
|
created: number;
|
|
2690
2602
|
metadata?: {
|
|
2691
2603
|
[x: string]: any;
|
|
@@ -2693,13 +2605,13 @@ export type SessionToolFailed = {
|
|
|
2693
2605
|
type: "session.tool.failed";
|
|
2694
2606
|
durable: {
|
|
2695
2607
|
aggregateID: string;
|
|
2696
|
-
seq:
|
|
2608
|
+
seq: EventSeq;
|
|
2697
2609
|
version: 2;
|
|
2698
2610
|
};
|
|
2699
2611
|
location?: LocationRef;
|
|
2700
2612
|
data: {
|
|
2701
|
-
sessionID:
|
|
2702
|
-
assistantMessageID:
|
|
2613
|
+
sessionID: SessionID;
|
|
2614
|
+
assistantMessageID: SessionMessageID;
|
|
2703
2615
|
id: string;
|
|
2704
2616
|
error: SessionStructuredError;
|
|
2705
2617
|
content?: [ToolContent1, ...Array<ToolContent1>];
|
|
@@ -2715,44 +2627,106 @@ export type SessionMessageToolStateCompleted1 = {
|
|
|
2715
2627
|
input: {
|
|
2716
2628
|
[x: string]: any;
|
|
2717
2629
|
};
|
|
2718
|
-
content: [ToolContent1, ...Array<ToolContent1>];
|
|
2719
|
-
metadata?: {
|
|
2720
|
-
[x: string]: JsonValue;
|
|
2630
|
+
content: [ToolContent1, ...Array<ToolContent1>];
|
|
2631
|
+
metadata?: {
|
|
2632
|
+
[x: string]: JsonValue;
|
|
2633
|
+
};
|
|
2634
|
+
};
|
|
2635
|
+
export type SessionMessageToolStateError1 = {
|
|
2636
|
+
status: "error";
|
|
2637
|
+
input: {
|
|
2638
|
+
[x: string]: any;
|
|
2639
|
+
};
|
|
2640
|
+
error: SessionStructuredError;
|
|
2641
|
+
content?: [ToolContent1, ...Array<ToolContent1>];
|
|
2642
|
+
metadata?: {
|
|
2643
|
+
[x: string]: JsonValue;
|
|
2644
|
+
};
|
|
2645
|
+
};
|
|
2646
|
+
export type FormField = FormStringField | FormNumberField | FormIntegerField | FormBooleanField | FormMultiselectField | FormExternalField;
|
|
2647
|
+
export type FormState = {
|
|
2648
|
+
status: "pending";
|
|
2649
|
+
} | {
|
|
2650
|
+
status: "answered";
|
|
2651
|
+
answer: FormAnswer;
|
|
2652
|
+
} | {
|
|
2653
|
+
status: "cancelled";
|
|
2654
|
+
message?: string;
|
|
2655
|
+
};
|
|
2656
|
+
export type CredentialKey = {
|
|
2657
|
+
type: "key";
|
|
2658
|
+
key: string;
|
|
2659
|
+
metadata?: {
|
|
2660
|
+
[x: string]: JsonValue;
|
|
2661
|
+
};
|
|
2662
|
+
configuration?: FormAnswer;
|
|
2663
|
+
};
|
|
2664
|
+
export type ProviderInfo = {
|
|
2665
|
+
id: ProviderID;
|
|
2666
|
+
canonical?: ProviderID;
|
|
2667
|
+
integrationID?: IntegrationID;
|
|
2668
|
+
name: string;
|
|
2669
|
+
activation: "auto" | "enabled" | "disabled";
|
|
2670
|
+
package: string;
|
|
2671
|
+
compatibility?: ProviderCompatibility;
|
|
2672
|
+
settings?: ProviderSettings;
|
|
2673
|
+
headers?: {
|
|
2674
|
+
[x: string]: string;
|
|
2675
|
+
};
|
|
2676
|
+
body?: {
|
|
2677
|
+
[x: string]: any;
|
|
2678
|
+
};
|
|
2679
|
+
};
|
|
2680
|
+
export type ConnectionInfo = ConnectionCredentialInfo | ConnectionEnvInfo;
|
|
2681
|
+
export type PtyCreated = {
|
|
2682
|
+
id: EventID;
|
|
2683
|
+
created: number;
|
|
2684
|
+
metadata?: {
|
|
2685
|
+
[x: string]: any;
|
|
2686
|
+
};
|
|
2687
|
+
type: "pty.created";
|
|
2688
|
+
location?: LocationRef;
|
|
2689
|
+
data: {
|
|
2690
|
+
info: Pty;
|
|
2691
|
+
};
|
|
2692
|
+
};
|
|
2693
|
+
export type PtyUpdated = {
|
|
2694
|
+
id: EventID;
|
|
2695
|
+
created: number;
|
|
2696
|
+
metadata?: {
|
|
2697
|
+
[x: string]: any;
|
|
2698
|
+
};
|
|
2699
|
+
type: "pty.updated";
|
|
2700
|
+
location?: LocationRef;
|
|
2701
|
+
data: {
|
|
2702
|
+
info: Pty;
|
|
2721
2703
|
};
|
|
2722
2704
|
};
|
|
2723
|
-
export type
|
|
2724
|
-
|
|
2725
|
-
|
|
2705
|
+
export type PersistentPtyAdded = {
|
|
2706
|
+
id: EventID;
|
|
2707
|
+
created: number;
|
|
2708
|
+
metadata?: {
|
|
2726
2709
|
[x: string]: any;
|
|
2727
2710
|
};
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2711
|
+
type: "persistent-pty.added";
|
|
2712
|
+
location?: LocationRef;
|
|
2713
|
+
data: {
|
|
2714
|
+
sessionID: SessionID;
|
|
2715
|
+
terminal: PersistentPtyInfo;
|
|
2732
2716
|
};
|
|
2733
2717
|
};
|
|
2734
|
-
export type
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
status: "cancelled";
|
|
2742
|
-
message?: string;
|
|
2743
|
-
};
|
|
2744
|
-
export type CredentialKey = {
|
|
2745
|
-
type: "key";
|
|
2746
|
-
key: string;
|
|
2747
|
-
metadata?: {
|
|
2748
|
-
[x: string]: JsonValue;
|
|
2718
|
+
export type PersistentPtySnapshot = {
|
|
2719
|
+
info: PersistentPtyInfo;
|
|
2720
|
+
text: string;
|
|
2721
|
+
checkpoint: string;
|
|
2722
|
+
cursor: {
|
|
2723
|
+
x: number;
|
|
2724
|
+
y: number;
|
|
2749
2725
|
};
|
|
2750
|
-
configuration?: FormAnswer;
|
|
2751
2726
|
};
|
|
2752
|
-
export type ConnectionInfo = ConnectionCredentialInfo | ConnectionEnvInfo;
|
|
2753
2727
|
export type FormField1 = FormStringField1 | FormNumberField1 | FormIntegerField1 | FormBooleanField1 | FormMultiselectField1 | FormExternalField;
|
|
2754
2728
|
export type FormReplied = {
|
|
2755
|
-
id:
|
|
2729
|
+
id: EventID;
|
|
2756
2730
|
created: number;
|
|
2757
2731
|
metadata?: {
|
|
2758
2732
|
[x: string]: any;
|
|
@@ -2760,23 +2734,94 @@ export type FormReplied = {
|
|
|
2760
2734
|
type: "form.replied";
|
|
2761
2735
|
location?: LocationRef;
|
|
2762
2736
|
data: {
|
|
2763
|
-
id:
|
|
2737
|
+
id: FormID;
|
|
2764
2738
|
sessionID: string;
|
|
2765
2739
|
answer: FormAnswer2;
|
|
2766
2740
|
};
|
|
2767
2741
|
};
|
|
2742
|
+
export type SessionInboxMove = {
|
|
2743
|
+
id: SessionMessageID;
|
|
2744
|
+
sessionID: SessionID;
|
|
2745
|
+
time: {
|
|
2746
|
+
created: number;
|
|
2747
|
+
};
|
|
2748
|
+
type: "move";
|
|
2749
|
+
delivery: SessionInboxDelivery;
|
|
2750
|
+
payload: SessionInboxMovePayload;
|
|
2751
|
+
};
|
|
2768
2752
|
export type ReferenceInfo = {
|
|
2769
2753
|
name: string;
|
|
2770
|
-
path:
|
|
2754
|
+
path: AbsolutePath;
|
|
2771
2755
|
description?: string;
|
|
2772
2756
|
hidden?: boolean;
|
|
2773
2757
|
source: ReferenceSource;
|
|
2774
2758
|
};
|
|
2759
|
+
export type SessionStatsInfo = {
|
|
2760
|
+
range: {
|
|
2761
|
+
from: number;
|
|
2762
|
+
to: number;
|
|
2763
|
+
};
|
|
2764
|
+
sessions: number;
|
|
2765
|
+
subagents: number;
|
|
2766
|
+
prompts: number;
|
|
2767
|
+
steps: number;
|
|
2768
|
+
tokens: TokenUsageInfo;
|
|
2769
|
+
cost: MoneyUSD;
|
|
2770
|
+
tools: SessionStatsTools;
|
|
2771
|
+
activeDays: number;
|
|
2772
|
+
streak: number;
|
|
2773
|
+
activity: Array<SessionStatsActivity>;
|
|
2774
|
+
models: Array<SessionStatsModelUsage>;
|
|
2775
|
+
};
|
|
2776
|
+
export type SessionMessageCompactionCompleted = {
|
|
2777
|
+
type: "compaction";
|
|
2778
|
+
id: SessionMessageID;
|
|
2779
|
+
metadata?: {
|
|
2780
|
+
[x: string]: JsonValue;
|
|
2781
|
+
};
|
|
2782
|
+
time: {
|
|
2783
|
+
created: number;
|
|
2784
|
+
};
|
|
2785
|
+
status: "completed";
|
|
2786
|
+
reason: "auto" | "manual";
|
|
2787
|
+
model?: ModelRef;
|
|
2788
|
+
providerState?: SessionMessageProviderState;
|
|
2789
|
+
summary: string;
|
|
2790
|
+
recent: string;
|
|
2791
|
+
providerContext?: SessionProviderContext;
|
|
2792
|
+
cost?: MoneyUSD;
|
|
2793
|
+
tokens?: TokenUsageInfo;
|
|
2794
|
+
};
|
|
2795
|
+
export type SessionCompactionEnded = {
|
|
2796
|
+
id: EventID;
|
|
2797
|
+
created: number;
|
|
2798
|
+
metadata?: {
|
|
2799
|
+
[x: string]: any;
|
|
2800
|
+
};
|
|
2801
|
+
type: "session.compaction.ended";
|
|
2802
|
+
durable: {
|
|
2803
|
+
aggregateID: string;
|
|
2804
|
+
seq: EventSeq;
|
|
2805
|
+
version: 1;
|
|
2806
|
+
};
|
|
2807
|
+
location?: LocationRef;
|
|
2808
|
+
data: {
|
|
2809
|
+
sessionID: SessionID;
|
|
2810
|
+
reason: "auto" | "manual";
|
|
2811
|
+
model?: ModelRef;
|
|
2812
|
+
providerState?: SessionMessageProviderState1;
|
|
2813
|
+
providerContext?: SessionProviderContext;
|
|
2814
|
+
text: string;
|
|
2815
|
+
recent: string;
|
|
2816
|
+
cost?: MoneyUSD;
|
|
2817
|
+
tokens?: TokenUsageInfo;
|
|
2818
|
+
};
|
|
2819
|
+
};
|
|
2775
2820
|
export type ModelInfo = {
|
|
2776
2821
|
id: string;
|
|
2777
2822
|
modelID: string;
|
|
2778
|
-
providerID:
|
|
2779
|
-
canonical?:
|
|
2823
|
+
providerID: ProviderID;
|
|
2824
|
+
canonical?: ProviderID;
|
|
2780
2825
|
family?: string;
|
|
2781
2826
|
name: string;
|
|
2782
2827
|
compatibility?: ModelCompatibility;
|
|
@@ -2803,7 +2848,7 @@ export type ModelInfo = {
|
|
|
2803
2848
|
};
|
|
2804
2849
|
};
|
|
2805
2850
|
export type AgentInfo = {
|
|
2806
|
-
id:
|
|
2851
|
+
id: AgentID;
|
|
2807
2852
|
name: string;
|
|
2808
2853
|
model?: ModelRef;
|
|
2809
2854
|
request: ProviderRequest;
|
|
@@ -2815,33 +2860,15 @@ export type AgentInfo = {
|
|
|
2815
2860
|
steps?: number;
|
|
2816
2861
|
permissions: PermissionRuleset;
|
|
2817
2862
|
};
|
|
2818
|
-
export type SessionPermissions = {
|
|
2819
|
-
id: string;
|
|
2820
|
-
created: number;
|
|
2821
|
-
metadata?: {
|
|
2822
|
-
[x: string]: any;
|
|
2823
|
-
};
|
|
2824
|
-
type: "session.permissions";
|
|
2825
|
-
durable: {
|
|
2826
|
-
aggregateID: string;
|
|
2827
|
-
seq: number;
|
|
2828
|
-
version: 1;
|
|
2829
|
-
};
|
|
2830
|
-
location?: LocationRef;
|
|
2831
|
-
data: {
|
|
2832
|
-
sessionID: string;
|
|
2833
|
-
permissions: PermissionRuleset;
|
|
2834
|
-
};
|
|
2835
|
-
};
|
|
2836
2863
|
export type SessionInfo = {
|
|
2837
|
-
id:
|
|
2838
|
-
parentID?:
|
|
2864
|
+
id: SessionID;
|
|
2865
|
+
parentID?: SessionID;
|
|
2839
2866
|
fork?: {
|
|
2840
|
-
sessionID:
|
|
2867
|
+
sessionID: SessionID;
|
|
2841
2868
|
boundary: SessionForkBoundary;
|
|
2842
2869
|
};
|
|
2843
|
-
projectID:
|
|
2844
|
-
agent?:
|
|
2870
|
+
projectID: ProjectID;
|
|
2871
|
+
agent?: AgentID;
|
|
2845
2872
|
model?: ModelRef;
|
|
2846
2873
|
cost: MoneyUSD;
|
|
2847
2874
|
tokens: TokenUsageInfo;
|
|
@@ -2854,14 +2881,14 @@ export type SessionInfo = {
|
|
|
2854
2881
|
archived?: number;
|
|
2855
2882
|
};
|
|
2856
2883
|
title?: string;
|
|
2857
|
-
subpath?:
|
|
2884
|
+
subpath?: RelativePath;
|
|
2858
2885
|
metadata?: SessionMetadata;
|
|
2859
2886
|
permissions?: PermissionRuleset;
|
|
2860
2887
|
revert?: SessionRevert;
|
|
2861
2888
|
location: LocationPublicRef;
|
|
2862
2889
|
};
|
|
2863
2890
|
export type SessionCreated = {
|
|
2864
|
-
id:
|
|
2891
|
+
id: EventID;
|
|
2865
2892
|
created: number;
|
|
2866
2893
|
metadata?: {
|
|
2867
2894
|
[x: string]: any;
|
|
@@ -2869,28 +2896,46 @@ export type SessionCreated = {
|
|
|
2869
2896
|
type: "session.created";
|
|
2870
2897
|
durable: {
|
|
2871
2898
|
aggregateID: string;
|
|
2872
|
-
seq:
|
|
2899
|
+
seq: EventSeq;
|
|
2873
2900
|
version: 1;
|
|
2874
2901
|
};
|
|
2875
2902
|
location?: LocationRef;
|
|
2876
2903
|
data: {
|
|
2877
|
-
sessionID:
|
|
2878
|
-
projectID:
|
|
2904
|
+
sessionID: SessionID;
|
|
2905
|
+
projectID: ProjectID;
|
|
2879
2906
|
location: LocationRef;
|
|
2880
|
-
subpath?:
|
|
2881
|
-
parentID?:
|
|
2907
|
+
subpath?: RelativePath;
|
|
2908
|
+
parentID?: SessionID;
|
|
2882
2909
|
slug: string;
|
|
2883
2910
|
title?: string;
|
|
2884
|
-
agent?:
|
|
2911
|
+
agent?: AgentID;
|
|
2885
2912
|
model?: ModelRef;
|
|
2886
2913
|
metadata?: SessionMetadata;
|
|
2887
2914
|
permissions?: PermissionRuleset;
|
|
2888
2915
|
version: string;
|
|
2889
2916
|
};
|
|
2890
2917
|
};
|
|
2918
|
+
export type SessionPermissions = {
|
|
2919
|
+
id: EventID;
|
|
2920
|
+
created: number;
|
|
2921
|
+
metadata?: {
|
|
2922
|
+
[x: string]: any;
|
|
2923
|
+
};
|
|
2924
|
+
type: "session.permissions";
|
|
2925
|
+
durable: {
|
|
2926
|
+
aggregateID: string;
|
|
2927
|
+
seq: EventSeq;
|
|
2928
|
+
version: 1;
|
|
2929
|
+
};
|
|
2930
|
+
location?: LocationRef;
|
|
2931
|
+
data: {
|
|
2932
|
+
sessionID: SessionID;
|
|
2933
|
+
permissions: PermissionRuleset;
|
|
2934
|
+
};
|
|
2935
|
+
};
|
|
2891
2936
|
export type ConfigEntry = {
|
|
2892
2937
|
type: "document";
|
|
2893
|
-
path?:
|
|
2938
|
+
path?: AbsolutePath;
|
|
2894
2939
|
info: {
|
|
2895
2940
|
$schema?: string;
|
|
2896
2941
|
shell?: string;
|
|
@@ -3056,7 +3101,7 @@ export type ConfigEntry = {
|
|
|
3056
3101
|
};
|
|
3057
3102
|
};
|
|
3058
3103
|
websearch?: false | {
|
|
3059
|
-
provider: "random" |
|
|
3104
|
+
provider: "random" | WebSearchID;
|
|
3060
3105
|
};
|
|
3061
3106
|
plugins?: Array<string | {
|
|
3062
3107
|
package: string;
|
|
@@ -3072,10 +3117,11 @@ export type ConfigEntry = {
|
|
|
3072
3117
|
};
|
|
3073
3118
|
providers?: {
|
|
3074
3119
|
[x: string]: {
|
|
3075
|
-
canonical?:
|
|
3120
|
+
canonical?: ProviderID;
|
|
3076
3121
|
name?: string;
|
|
3077
3122
|
env?: Array<string>;
|
|
3078
3123
|
package?: string;
|
|
3124
|
+
compatibility?: ProviderCompatibility;
|
|
3079
3125
|
settings?: ConfigProviderSettings;
|
|
3080
3126
|
headers?: {
|
|
3081
3127
|
[x: string]: string;
|
|
@@ -3153,11 +3199,11 @@ export type ConfigEntry = {
|
|
|
3153
3199
|
};
|
|
3154
3200
|
} | {
|
|
3155
3201
|
type: "directory";
|
|
3156
|
-
path:
|
|
3202
|
+
path: AbsolutePath;
|
|
3157
3203
|
};
|
|
3158
3204
|
export type SessionInboxUser = {
|
|
3159
|
-
id:
|
|
3160
|
-
sessionID:
|
|
3205
|
+
id: SessionMessageID;
|
|
3206
|
+
sessionID: SessionID;
|
|
3161
3207
|
time: {
|
|
3162
3208
|
created: number;
|
|
3163
3209
|
};
|
|
@@ -3165,6 +3211,20 @@ export type SessionInboxUser = {
|
|
|
3165
3211
|
payload: SessionInboxUserPayload;
|
|
3166
3212
|
delivery: SessionInboxDelivery;
|
|
3167
3213
|
};
|
|
3214
|
+
export type SessionMessageAssistantTool = {
|
|
3215
|
+
type: "tool";
|
|
3216
|
+
id: string;
|
|
3217
|
+
name: string;
|
|
3218
|
+
executed?: boolean;
|
|
3219
|
+
providerState?: SessionMessageProviderState;
|
|
3220
|
+
providerResultState?: SessionMessageProviderState;
|
|
3221
|
+
state: SessionMessageToolStateStreaming | SessionMessageToolStateRunning | SessionMessageToolStateCompleted | SessionMessageToolStateError;
|
|
3222
|
+
time: {
|
|
3223
|
+
created: number;
|
|
3224
|
+
ran?: number;
|
|
3225
|
+
completed?: number;
|
|
3226
|
+
};
|
|
3227
|
+
};
|
|
3168
3228
|
export type SessionInboxItem = {
|
|
3169
3229
|
type: "user";
|
|
3170
3230
|
payload: SessionInboxUserPayload1;
|
|
@@ -3182,21 +3242,6 @@ export type SessionInboxItem = {
|
|
|
3182
3242
|
payload: SessionInboxMovePayload1;
|
|
3183
3243
|
delivery: SessionInboxDelivery;
|
|
3184
3244
|
};
|
|
3185
|
-
export type SessionMessageAssistantTool = {
|
|
3186
|
-
type: "tool";
|
|
3187
|
-
id: string;
|
|
3188
|
-
name: string;
|
|
3189
|
-
executed?: boolean;
|
|
3190
|
-
providerState?: SessionMessageProviderState;
|
|
3191
|
-
providerResultState?: SessionMessageProviderState;
|
|
3192
|
-
state: SessionMessageToolStateStreaming | SessionMessageToolStateRunning | SessionMessageToolStateCompleted | SessionMessageToolStateError;
|
|
3193
|
-
time: {
|
|
3194
|
-
created: number;
|
|
3195
|
-
ran?: number;
|
|
3196
|
-
completed?: number;
|
|
3197
|
-
};
|
|
3198
|
-
};
|
|
3199
|
-
export type SessionMessageCompaction = SessionMessageCompactionRunning | SessionMessageCompactionCompleted | SessionMessageCompactionFailed;
|
|
3200
3245
|
export type SessionMessageAssistantTool1 = {
|
|
3201
3246
|
type: "tool";
|
|
3202
3247
|
id: string;
|
|
@@ -3214,35 +3259,17 @@ export type SessionMessageAssistantTool1 = {
|
|
|
3214
3259
|
export type FormFields = [FormField, ...Array<FormField>];
|
|
3215
3260
|
export type CredentialValue = CredentialOAuth | CredentialKey | CredentialExternal;
|
|
3216
3261
|
export type FormFields2 = [FormField1, ...Array<FormField1>];
|
|
3262
|
+
export type SessionMessageCompaction = SessionMessageCompactionRunning | SessionMessageCompactionCompleted | SessionMessageCompactionFailed;
|
|
3217
3263
|
export type SessionsResponse = {
|
|
3218
3264
|
data: Array<SessionInfo>;
|
|
3219
3265
|
cursor: {
|
|
3220
|
-
previous?:
|
|
3221
|
-
next?:
|
|
3266
|
+
previous?: SessionsCursor | null;
|
|
3267
|
+
next?: SessionsCursor | null;
|
|
3222
3268
|
};
|
|
3223
3269
|
};
|
|
3224
3270
|
export type SessionInboxInfo = SessionInboxUser | SessionInboxSynthetic | SessionInboxCompaction | SessionInboxMove;
|
|
3225
|
-
export type SessionInboxEnqueued = {
|
|
3226
|
-
id: string;
|
|
3227
|
-
created: number;
|
|
3228
|
-
metadata?: {
|
|
3229
|
-
[x: string]: any;
|
|
3230
|
-
};
|
|
3231
|
-
type: "session.inbox.enqueued";
|
|
3232
|
-
durable: {
|
|
3233
|
-
aggregateID: string;
|
|
3234
|
-
seq: number;
|
|
3235
|
-
version: 1;
|
|
3236
|
-
};
|
|
3237
|
-
location?: LocationRef;
|
|
3238
|
-
data: {
|
|
3239
|
-
sessionID: string;
|
|
3240
|
-
inboxID: string;
|
|
3241
|
-
item: SessionInboxItem;
|
|
3242
|
-
};
|
|
3243
|
-
};
|
|
3244
3271
|
export type SessionMessageAssistant = {
|
|
3245
|
-
id:
|
|
3272
|
+
id: SessionMessageID;
|
|
3246
3273
|
metadata?: {
|
|
3247
3274
|
[x: string]: JsonValue;
|
|
3248
3275
|
};
|
|
@@ -3252,13 +3279,13 @@ export type SessionMessageAssistant = {
|
|
|
3252
3279
|
completed?: number;
|
|
3253
3280
|
};
|
|
3254
3281
|
type: "assistant";
|
|
3255
|
-
agent:
|
|
3282
|
+
agent: AgentID;
|
|
3256
3283
|
model: ModelRef;
|
|
3257
3284
|
content: Array<SessionMessageAssistantText | SessionMessageAssistantReasoning | SessionMessageAssistantTool>;
|
|
3258
3285
|
snapshot?: {
|
|
3259
|
-
start?:
|
|
3260
|
-
end?:
|
|
3261
|
-
files?: Array<
|
|
3286
|
+
start?: SnapshotID;
|
|
3287
|
+
end?: SnapshotID;
|
|
3288
|
+
files?: Array<RelativePath>;
|
|
3262
3289
|
};
|
|
3263
3290
|
finish?: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
|
|
3264
3291
|
rawFinish?: string;
|
|
@@ -3268,16 +3295,35 @@ export type SessionMessageAssistant = {
|
|
|
3268
3295
|
error?: SessionStructuredError;
|
|
3269
3296
|
retry?: SessionMessageAssistantRetry;
|
|
3270
3297
|
};
|
|
3298
|
+
export type SessionInboxEnqueued = {
|
|
3299
|
+
id: EventID;
|
|
3300
|
+
created: number;
|
|
3301
|
+
metadata?: {
|
|
3302
|
+
[x: string]: any;
|
|
3303
|
+
};
|
|
3304
|
+
type: "session.inbox.enqueued";
|
|
3305
|
+
durable: {
|
|
3306
|
+
aggregateID: string;
|
|
3307
|
+
seq: EventSeq;
|
|
3308
|
+
version: 1;
|
|
3309
|
+
};
|
|
3310
|
+
location?: LocationRef;
|
|
3311
|
+
data: {
|
|
3312
|
+
sessionID: SessionID;
|
|
3313
|
+
inboxID: SessionMessageID;
|
|
3314
|
+
item: SessionInboxItem;
|
|
3315
|
+
};
|
|
3316
|
+
};
|
|
3271
3317
|
export type SessionMessageAssistantContentEncoded = SessionMessageAssistantText1 | SessionMessageAssistantReasoning1 | SessionMessageAssistantTool1;
|
|
3272
3318
|
export type FormInfo = {
|
|
3273
|
-
id:
|
|
3319
|
+
id: FormID;
|
|
3274
3320
|
sessionID: string;
|
|
3275
3321
|
title: string;
|
|
3276
3322
|
metadata?: FormMetadata;
|
|
3277
3323
|
fields: FormFields;
|
|
3278
3324
|
};
|
|
3279
3325
|
export type FormDetail = {
|
|
3280
|
-
id:
|
|
3326
|
+
id: FormID;
|
|
3281
3327
|
sessionID: string;
|
|
3282
3328
|
title: string;
|
|
3283
3329
|
metadata?: FormMetadata;
|
|
@@ -3285,7 +3331,7 @@ export type FormDetail = {
|
|
|
3285
3331
|
state: FormState;
|
|
3286
3332
|
};
|
|
3287
3333
|
export type IntegrationOAuthMethod = {
|
|
3288
|
-
id:
|
|
3334
|
+
id: IntegrationMethodID;
|
|
3289
3335
|
type: "oauth";
|
|
3290
3336
|
label: string;
|
|
3291
3337
|
form?: FormFields;
|
|
@@ -3296,20 +3342,20 @@ export type IntegrationKeyMethod = {
|
|
|
3296
3342
|
form?: FormFields;
|
|
3297
3343
|
};
|
|
3298
3344
|
export type IntegrationExternalMethod = {
|
|
3299
|
-
id:
|
|
3345
|
+
id: IntegrationMethodID;
|
|
3300
3346
|
type: "external";
|
|
3301
3347
|
label: string;
|
|
3302
3348
|
form?: FormFields;
|
|
3303
3349
|
};
|
|
3304
3350
|
export type CredentialEntry = {
|
|
3305
|
-
id:
|
|
3306
|
-
integrationID:
|
|
3351
|
+
id: CredentialID;
|
|
3352
|
+
integrationID: IntegrationID;
|
|
3307
3353
|
label: string;
|
|
3308
3354
|
active: boolean;
|
|
3309
3355
|
value: CredentialValue;
|
|
3310
3356
|
};
|
|
3311
3357
|
export type FormInfo1 = {
|
|
3312
|
-
id:
|
|
3358
|
+
id: FormID;
|
|
3313
3359
|
sessionID: string;
|
|
3314
3360
|
title: string;
|
|
3315
3361
|
metadata?: FormMetadata1;
|
|
@@ -3317,7 +3363,7 @@ export type FormInfo1 = {
|
|
|
3317
3363
|
};
|
|
3318
3364
|
export type SessionMessageInfo = SessionMessageAgentSelected | SessionMessageModelSelected | SessionMessageLocationSwitched | SessionMessageUser | SessionMessageSynthetic | SessionMessageSystem | SessionMessageSkill | SessionMessageShell | SessionMessageAssistant | SessionMessageCompaction | SessionMessageIdle;
|
|
3319
3365
|
export type SessionMessageContentUpdated = {
|
|
3320
|
-
id:
|
|
3366
|
+
id: EventID;
|
|
3321
3367
|
created: number;
|
|
3322
3368
|
metadata?: {
|
|
3323
3369
|
[x: string]: any;
|
|
@@ -3325,19 +3371,19 @@ export type SessionMessageContentUpdated = {
|
|
|
3325
3371
|
type: "session.message.content.updated";
|
|
3326
3372
|
durable: {
|
|
3327
3373
|
aggregateID: string;
|
|
3328
|
-
seq:
|
|
3374
|
+
seq: EventSeq;
|
|
3329
3375
|
version: 1;
|
|
3330
3376
|
};
|
|
3331
3377
|
location?: LocationRef;
|
|
3332
3378
|
data: {
|
|
3333
|
-
sessionID:
|
|
3334
|
-
messageID:
|
|
3379
|
+
sessionID: SessionID;
|
|
3380
|
+
messageID: SessionMessageID;
|
|
3335
3381
|
content: Array<SessionMessageAssistantContentEncoded>;
|
|
3336
3382
|
};
|
|
3337
3383
|
};
|
|
3338
3384
|
export type IntegrationMethod = IntegrationOAuthMethod | IntegrationCommandMethod | IntegrationKeyMethod | IntegrationExternalMethod | IntegrationEnvMethod;
|
|
3339
3385
|
export type FormCreated = {
|
|
3340
|
-
id:
|
|
3386
|
+
id: EventID;
|
|
3341
3387
|
created: number;
|
|
3342
3388
|
metadata?: {
|
|
3343
3389
|
[x: string]: any;
|
|
@@ -3361,7 +3407,7 @@ export type SessionMessagesResponse = {
|
|
|
3361
3407
|
};
|
|
3362
3408
|
export type SessionEventDurable = SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionMetadataUpdated | SessionPermissions | SessionViewed | SessionDeleted | SessionForked | SessionInboxDelivered | SessionInboxEnqueued | SessionInboxCancelled | SessionInboxDeliveryChanged | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepStreamed | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextEnded | SessionReasoningStarted | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputEnded | SessionToolCalled | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | SessionUsageRecorded | SessionMessageContentUpdated;
|
|
3363
3409
|
export type IntegrationInfo = {
|
|
3364
|
-
id:
|
|
3410
|
+
id: IntegrationID;
|
|
3365
3411
|
name: string;
|
|
3366
3412
|
metadata?: {
|
|
3367
3413
|
[x: string]: any;
|
|
@@ -4437,6 +4483,14 @@ export type SessionImportInput = {
|
|
|
4437
4483
|
};
|
|
4438
4484
|
readonly type: "idle";
|
|
4439
4485
|
readonly outcome: "succeeded" | "failed" | "interrupted";
|
|
4486
|
+
readonly error?: {
|
|
4487
|
+
readonly type: string;
|
|
4488
|
+
readonly message: string;
|
|
4489
|
+
readonly status?: number;
|
|
4490
|
+
readonly response?: {
|
|
4491
|
+
readonly body: string;
|
|
4492
|
+
};
|
|
4493
|
+
};
|
|
4440
4494
|
}>;
|
|
4441
4495
|
readonly location?: {
|
|
4442
4496
|
readonly directory: string;
|
|
@@ -4918,6 +4972,14 @@ export type SessionImportInput = {
|
|
|
4918
4972
|
};
|
|
4919
4973
|
readonly type: "idle";
|
|
4920
4974
|
readonly outcome: "succeeded" | "failed" | "interrupted";
|
|
4975
|
+
readonly error?: {
|
|
4976
|
+
readonly type: string;
|
|
4977
|
+
readonly message: string;
|
|
4978
|
+
readonly status?: number;
|
|
4979
|
+
readonly response?: {
|
|
4980
|
+
readonly body: string;
|
|
4981
|
+
};
|
|
4982
|
+
};
|
|
4921
4983
|
}>;
|
|
4922
4984
|
readonly location?: {
|
|
4923
4985
|
readonly directory: string;
|
|
@@ -5399,6 +5461,14 @@ export type SessionImportInput = {
|
|
|
5399
5461
|
};
|
|
5400
5462
|
readonly type: "idle";
|
|
5401
5463
|
readonly outcome: "succeeded" | "failed" | "interrupted";
|
|
5464
|
+
readonly error?: {
|
|
5465
|
+
readonly type: string;
|
|
5466
|
+
readonly message: string;
|
|
5467
|
+
readonly status?: number;
|
|
5468
|
+
readonly response?: {
|
|
5469
|
+
readonly body: string;
|
|
5470
|
+
};
|
|
5471
|
+
};
|
|
5402
5472
|
}>;
|
|
5403
5473
|
readonly location?: {
|
|
5404
5474
|
readonly directory: string;
|
|
@@ -5421,7 +5491,7 @@ export type SessionExportOutput = {
|
|
|
5421
5491
|
}["data"];
|
|
5422
5492
|
export type SessionActiveOutput = {
|
|
5423
5493
|
data: {
|
|
5424
|
-
[x:
|
|
5494
|
+
[x: SessionID]: SessionActive;
|
|
5425
5495
|
};
|
|
5426
5496
|
}["data"];
|
|
5427
5497
|
export type SessionGetInput = {
|
|
@@ -7805,6 +7875,11 @@ export type CredentialRemoveInput = {
|
|
|
7805
7875
|
}["credentialID"];
|
|
7806
7876
|
};
|
|
7807
7877
|
export type CredentialRemoveOutput = void;
|
|
7878
|
+
export type ProjectListInput = {
|
|
7879
|
+
readonly archived?: {
|
|
7880
|
+
readonly archived?: boolean | undefined;
|
|
7881
|
+
}["archived"];
|
|
7882
|
+
};
|
|
7808
7883
|
export type ProjectListOutput = Array<Project>;
|
|
7809
7884
|
export type ProjectUpdateInput = {
|
|
7810
7885
|
readonly projectID: {
|
|
@@ -8008,7 +8083,7 @@ export type PermissionCreateInput = {
|
|
|
8008
8083
|
};
|
|
8009
8084
|
export type PermissionCreateOutput = {
|
|
8010
8085
|
data: {
|
|
8011
|
-
id:
|
|
8086
|
+
id: PermissionID;
|
|
8012
8087
|
effect: PermissionEffect;
|
|
8013
8088
|
};
|
|
8014
8089
|
}["data"];
|
|
@@ -8836,7 +8911,7 @@ export type WebsearchQueryInput = {
|
|
|
8836
8911
|
export type WebsearchQueryOutput = {
|
|
8837
8912
|
location: LocationPublicRef;
|
|
8838
8913
|
data: {
|
|
8839
|
-
providerID:
|
|
8914
|
+
providerID: WebSearchID;
|
|
8840
8915
|
results: Array<WebSearchResult>;
|
|
8841
8916
|
};
|
|
8842
8917
|
};
|