shuvcode 2.0.26-shuv.1 → 2.0.28-shuv.1
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/client/api.d.ts +1 -0
- package/client/client.d.ts +3 -3
- package/client/generated/client.d.ts +4 -4
- package/client/generated/client.js +8 -1
- package/client/generated/types.d.ts +1756 -1665
- package/client/index.js +5 -5
- package/package.json +13 -13
|
@@ -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,1421 +776,1468 @@ 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
|
-
|
|
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;
|
|
1108
|
+
};
|
|
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;
|
|
1182
1119
|
metadata?: {
|
|
1183
|
-
[x: string]:
|
|
1184
|
-
};
|
|
1185
|
-
type: "session.skill.activated";
|
|
1186
|
-
durable: {
|
|
1187
|
-
aggregateID: string;
|
|
1188
|
-
seq: number;
|
|
1189
|
-
version: 1;
|
|
1120
|
+
[x: string]: JsonValue;
|
|
1190
1121
|
};
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
sessionID: string;
|
|
1194
|
-
id: string;
|
|
1195
|
-
name: string;
|
|
1196
|
-
text: string;
|
|
1122
|
+
time: {
|
|
1123
|
+
created: number;
|
|
1197
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;
|
|
1198
1134
|
};
|
|
1199
|
-
export type
|
|
1200
|
-
|
|
1135
|
+
export type SessionInboxMovePayload = {
|
|
1136
|
+
projectID: ProjectID;
|
|
1137
|
+
subpath?: RelativePath;
|
|
1138
|
+
location: LocationPublicRef;
|
|
1139
|
+
};
|
|
1140
|
+
export type V2EventRpc = {
|
|
1141
|
+
id: EventID;
|
|
1201
1142
|
created: number;
|
|
1202
1143
|
metadata?: {
|
|
1203
1144
|
[x: string]: any;
|
|
1204
|
-
};
|
|
1205
|
-
type: "
|
|
1206
|
-
|
|
1207
|
-
aggregateID: string;
|
|
1208
|
-
seq: number;
|
|
1209
|
-
version: 1;
|
|
1210
|
-
};
|
|
1211
|
-
location?: LocationRef;
|
|
1145
|
+
} | undefined;
|
|
1146
|
+
type: `${"rpc."}${string}`;
|
|
1147
|
+
location: LocationPublicRef;
|
|
1212
1148
|
data: {
|
|
1213
|
-
|
|
1214
|
-
assistantMessageID: string;
|
|
1215
|
-
agent: string;
|
|
1216
|
-
model: ModelRef;
|
|
1217
|
-
snapshot?: string;
|
|
1218
|
-
started: number;
|
|
1149
|
+
[x: string]: any;
|
|
1219
1150
|
};
|
|
1220
1151
|
};
|
|
1221
|
-
export type
|
|
1222
|
-
id:
|
|
1223
|
-
created: number;
|
|
1152
|
+
export type V2EventServerConnected = {
|
|
1153
|
+
id: EventID;
|
|
1224
1154
|
metadata?: {
|
|
1225
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;
|
|
1226
1173
|
};
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
aggregateID: string;
|
|
1230
|
-
seq: number;
|
|
1231
|
-
version: 1;
|
|
1232
|
-
};
|
|
1233
|
-
location?: LocationRef;
|
|
1234
|
-
data: {
|
|
1235
|
-
sessionID: string;
|
|
1236
|
-
assistantMessageID: string;
|
|
1174
|
+
time: {
|
|
1175
|
+
created: number;
|
|
1237
1176
|
};
|
|
1177
|
+
type: "model-switched";
|
|
1178
|
+
model: ModelRef;
|
|
1179
|
+
previous?: ModelRef;
|
|
1238
1180
|
};
|
|
1239
|
-
export type
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
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: {
|
|
1243
1192
|
[x: string]: any;
|
|
1244
1193
|
};
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1194
|
+
};
|
|
1195
|
+
export type ModelVariant = {
|
|
1196
|
+
id: string;
|
|
1197
|
+
settings?: ModelSettings;
|
|
1198
|
+
headers?: {
|
|
1199
|
+
[x: string]: string;
|
|
1250
1200
|
};
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
sessionID: string;
|
|
1254
|
-
assistantMessageID: string;
|
|
1255
|
-
ordinal: number;
|
|
1201
|
+
body?: {
|
|
1202
|
+
[x: string]: any;
|
|
1256
1203
|
};
|
|
1257
1204
|
};
|
|
1258
|
-
export type
|
|
1259
|
-
|
|
1260
|
-
|
|
1205
|
+
export type PermissionRuleset = Array<PermissionRule>;
|
|
1206
|
+
export type SessionMessageUser = {
|
|
1207
|
+
id: SessionMessageID;
|
|
1261
1208
|
metadata?: {
|
|
1262
|
-
[x: string]:
|
|
1209
|
+
[x: string]: JsonValue;
|
|
1263
1210
|
};
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
aggregateID: string;
|
|
1267
|
-
seq: number;
|
|
1268
|
-
version: 1;
|
|
1211
|
+
time: {
|
|
1212
|
+
created: number;
|
|
1269
1213
|
};
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
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;
|
|
1276
1227
|
};
|
|
1277
1228
|
};
|
|
1278
|
-
export type
|
|
1279
|
-
|
|
1280
|
-
|
|
1229
|
+
export type SessionInboxUserPayload1 = {
|
|
1230
|
+
text: string;
|
|
1231
|
+
files?: Array<PromptFileAttachment>;
|
|
1232
|
+
agents?: Array<PromptAgentAttachment>;
|
|
1233
|
+
skills?: Array<PromptSkillAttachment>;
|
|
1281
1234
|
metadata?: {
|
|
1282
1235
|
[x: string]: any;
|
|
1283
1236
|
};
|
|
1284
|
-
type: "session.tool.input.ended";
|
|
1285
|
-
durable: {
|
|
1286
|
-
aggregateID: string;
|
|
1287
|
-
seq: number;
|
|
1288
|
-
version: 1;
|
|
1289
|
-
};
|
|
1290
|
-
location?: LocationRef;
|
|
1291
|
-
data: {
|
|
1292
|
-
sessionID: string;
|
|
1293
|
-
assistantMessageID: string;
|
|
1294
|
-
id: string;
|
|
1295
|
-
text: string;
|
|
1296
|
-
};
|
|
1297
1237
|
};
|
|
1298
|
-
export type
|
|
1299
|
-
|
|
1300
|
-
|
|
1238
|
+
export type SessionMessageToolStateCompleted = {
|
|
1239
|
+
status: "completed";
|
|
1240
|
+
input: {
|
|
1241
|
+
[x: string]: JsonValue;
|
|
1242
|
+
};
|
|
1243
|
+
content: [ToolContent, ...Array<ToolContent>];
|
|
1301
1244
|
metadata?: {
|
|
1302
|
-
[x: string]:
|
|
1245
|
+
[x: string]: JsonValue;
|
|
1303
1246
|
};
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1247
|
+
};
|
|
1248
|
+
export type SessionMessageToolStateError = {
|
|
1249
|
+
status: "error";
|
|
1250
|
+
input: {
|
|
1251
|
+
[x: string]: JsonValue;
|
|
1309
1252
|
};
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
id: string;
|
|
1315
|
-
recovery: {
|
|
1316
|
-
childSessionID: string;
|
|
1317
|
-
inboxID: string;
|
|
1318
|
-
inputDigest: string;
|
|
1319
|
-
agent: string;
|
|
1320
|
-
model?: ModelRef;
|
|
1321
|
-
};
|
|
1253
|
+
error: SessionStructuredError;
|
|
1254
|
+
content?: [ToolContent, ...Array<ToolContent>];
|
|
1255
|
+
metadata?: {
|
|
1256
|
+
[x: string]: JsonValue;
|
|
1322
1257
|
};
|
|
1323
1258
|
};
|
|
1324
|
-
export type
|
|
1325
|
-
id:
|
|
1259
|
+
export type SessionAgentSelected = {
|
|
1260
|
+
id: EventID;
|
|
1326
1261
|
created: number;
|
|
1327
1262
|
metadata?: {
|
|
1328
1263
|
[x: string]: any;
|
|
1329
1264
|
};
|
|
1330
|
-
type: "session.
|
|
1265
|
+
type: "session.agent.selected";
|
|
1331
1266
|
durable: {
|
|
1332
1267
|
aggregateID: string;
|
|
1333
|
-
seq:
|
|
1268
|
+
seq: EventSeq;
|
|
1334
1269
|
version: 1;
|
|
1335
1270
|
};
|
|
1336
1271
|
location?: LocationRef;
|
|
1337
1272
|
data: {
|
|
1338
|
-
sessionID:
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
at: number;
|
|
1342
|
-
error: SessionStructuredError;
|
|
1273
|
+
sessionID: SessionID;
|
|
1274
|
+
agent: AgentID;
|
|
1275
|
+
previous?: AgentID;
|
|
1343
1276
|
};
|
|
1344
1277
|
};
|
|
1345
|
-
export type
|
|
1346
|
-
id:
|
|
1278
|
+
export type SessionModelSelected = {
|
|
1279
|
+
id: EventID;
|
|
1347
1280
|
created: number;
|
|
1348
1281
|
metadata?: {
|
|
1349
1282
|
[x: string]: any;
|
|
1350
1283
|
};
|
|
1351
|
-
type: "session.
|
|
1284
|
+
type: "session.model.selected";
|
|
1352
1285
|
durable: {
|
|
1353
1286
|
aggregateID: string;
|
|
1354
|
-
seq:
|
|
1287
|
+
seq: EventSeq;
|
|
1355
1288
|
version: 1;
|
|
1356
1289
|
};
|
|
1357
1290
|
location?: LocationRef;
|
|
1358
1291
|
data: {
|
|
1359
|
-
sessionID:
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
inputID?: string;
|
|
1292
|
+
sessionID: SessionID;
|
|
1293
|
+
model: ModelRef;
|
|
1294
|
+
previous?: ModelRef;
|
|
1363
1295
|
};
|
|
1364
1296
|
};
|
|
1365
|
-
export type
|
|
1366
|
-
id:
|
|
1297
|
+
export type SessionMoved = {
|
|
1298
|
+
id: EventID;
|
|
1367
1299
|
created: number;
|
|
1368
1300
|
metadata?: {
|
|
1369
1301
|
[x: string]: any;
|
|
1370
1302
|
};
|
|
1371
|
-
type: "session.
|
|
1303
|
+
type: "session.moved";
|
|
1372
1304
|
durable: {
|
|
1373
1305
|
aggregateID: string;
|
|
1374
|
-
seq:
|
|
1306
|
+
seq: EventSeq;
|
|
1375
1307
|
version: 1;
|
|
1376
1308
|
};
|
|
1377
1309
|
location?: LocationRef;
|
|
1378
1310
|
data: {
|
|
1379
|
-
sessionID:
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
cost?: MoneyUSD;
|
|
1384
|
-
tokens?: TokenUsageInfo;
|
|
1311
|
+
sessionID: SessionID;
|
|
1312
|
+
location: LocationRef;
|
|
1313
|
+
projectID: ProjectID;
|
|
1314
|
+
subpath?: RelativePath;
|
|
1385
1315
|
};
|
|
1386
1316
|
};
|
|
1387
|
-
export type
|
|
1388
|
-
id:
|
|
1317
|
+
export type SessionRenamed = {
|
|
1318
|
+
id: EventID;
|
|
1389
1319
|
created: number;
|
|
1390
1320
|
metadata?: {
|
|
1391
1321
|
[x: string]: any;
|
|
1392
1322
|
};
|
|
1393
|
-
type: "session.
|
|
1323
|
+
type: "session.renamed";
|
|
1394
1324
|
durable: {
|
|
1395
1325
|
aggregateID: string;
|
|
1396
|
-
seq:
|
|
1326
|
+
seq: EventSeq;
|
|
1397
1327
|
version: 1;
|
|
1398
1328
|
};
|
|
1399
1329
|
location?: LocationRef;
|
|
1400
1330
|
data: {
|
|
1401
|
-
sessionID:
|
|
1331
|
+
sessionID: SessionID;
|
|
1332
|
+
title: string;
|
|
1402
1333
|
};
|
|
1403
1334
|
};
|
|
1404
|
-
export type
|
|
1405
|
-
id:
|
|
1335
|
+
export type SessionMetadataUpdated = {
|
|
1336
|
+
id: EventID;
|
|
1406
1337
|
created: number;
|
|
1407
1338
|
metadata?: {
|
|
1408
1339
|
[x: string]: any;
|
|
1409
1340
|
};
|
|
1410
|
-
type: "session.
|
|
1341
|
+
type: "session.metadata.updated";
|
|
1411
1342
|
durable: {
|
|
1412
1343
|
aggregateID: string;
|
|
1413
|
-
seq:
|
|
1344
|
+
seq: EventSeq;
|
|
1414
1345
|
version: 1;
|
|
1415
1346
|
};
|
|
1416
1347
|
location?: LocationRef;
|
|
1417
1348
|
data: {
|
|
1418
|
-
sessionID:
|
|
1419
|
-
|
|
1349
|
+
sessionID: SessionID;
|
|
1350
|
+
metadata: SessionMetadata;
|
|
1420
1351
|
};
|
|
1421
1352
|
};
|
|
1422
|
-
export type
|
|
1423
|
-
id:
|
|
1353
|
+
export type SessionViewed = {
|
|
1354
|
+
id: EventID;
|
|
1424
1355
|
created: number;
|
|
1425
1356
|
metadata?: {
|
|
1426
1357
|
[x: string]: any;
|
|
1427
1358
|
};
|
|
1428
|
-
type: "session.
|
|
1359
|
+
type: "session.viewed";
|
|
1429
1360
|
durable: {
|
|
1430
1361
|
aggregateID: string;
|
|
1431
|
-
seq:
|
|
1362
|
+
seq: EventSeq;
|
|
1432
1363
|
version: 1;
|
|
1433
1364
|
};
|
|
1434
1365
|
location?: LocationRef;
|
|
1435
|
-
data: {
|
|
1436
|
-
sessionID:
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
tokens: TokenUsageInfo;
|
|
1440
|
-
};
|
|
1441
|
-
};
|
|
1442
|
-
export type LocationShutdown = {
|
|
1443
|
-
id: string;
|
|
1444
|
-
created: number;
|
|
1445
|
-
metadata?: {
|
|
1446
|
-
[x: string]: any;
|
|
1447
|
-
};
|
|
1448
|
-
type: "location.shutdown";
|
|
1449
|
-
location?: LocationRef;
|
|
1450
|
-
data: {};
|
|
1451
|
-
};
|
|
1452
|
-
export type ModelsDevRefreshed = {
|
|
1453
|
-
id: string;
|
|
1454
|
-
created: number;
|
|
1455
|
-
metadata?: {
|
|
1456
|
-
[x: string]: any;
|
|
1457
|
-
};
|
|
1458
|
-
type: "models-dev.refreshed";
|
|
1459
|
-
location?: LocationRef;
|
|
1460
|
-
data: {};
|
|
1461
|
-
};
|
|
1462
|
-
export type CredentialUpdated = {
|
|
1463
|
-
id: string;
|
|
1464
|
-
created: number;
|
|
1465
|
-
metadata?: {
|
|
1466
|
-
[x: string]: any;
|
|
1467
|
-
};
|
|
1468
|
-
type: "credential.updated";
|
|
1469
|
-
location?: LocationRef;
|
|
1470
|
-
data: {};
|
|
1366
|
+
data: {
|
|
1367
|
+
sessionID: SessionID;
|
|
1368
|
+
idle: number;
|
|
1369
|
+
};
|
|
1471
1370
|
};
|
|
1472
|
-
export type
|
|
1473
|
-
id:
|
|
1371
|
+
export type SessionDeleted = {
|
|
1372
|
+
id: EventID;
|
|
1474
1373
|
created: number;
|
|
1475
1374
|
metadata?: {
|
|
1476
1375
|
[x: string]: any;
|
|
1477
1376
|
};
|
|
1478
|
-
type: "
|
|
1377
|
+
type: "session.deleted";
|
|
1378
|
+
durable: {
|
|
1379
|
+
aggregateID: string;
|
|
1380
|
+
seq: EventSeq;
|
|
1381
|
+
version: 2;
|
|
1382
|
+
};
|
|
1479
1383
|
location?: LocationRef;
|
|
1480
1384
|
data: {
|
|
1481
|
-
|
|
1482
|
-
credentialID: string | null;
|
|
1385
|
+
sessionID: SessionID;
|
|
1483
1386
|
};
|
|
1484
1387
|
};
|
|
1485
|
-
export type
|
|
1486
|
-
id:
|
|
1388
|
+
export type SessionForked = {
|
|
1389
|
+
id: EventID;
|
|
1487
1390
|
created: number;
|
|
1488
1391
|
metadata?: {
|
|
1489
1392
|
[x: string]: any;
|
|
1490
1393
|
};
|
|
1491
|
-
type: "
|
|
1394
|
+
type: "session.forked";
|
|
1395
|
+
durable: {
|
|
1396
|
+
aggregateID: string;
|
|
1397
|
+
seq: EventSeq;
|
|
1398
|
+
version: 2;
|
|
1399
|
+
};
|
|
1492
1400
|
location?: LocationRef;
|
|
1493
|
-
data: {
|
|
1401
|
+
data: {
|
|
1402
|
+
sessionID: SessionID;
|
|
1403
|
+
parentID: SessionID;
|
|
1404
|
+
boundary: SessionForkBoundary;
|
|
1405
|
+
instructions?: {
|
|
1406
|
+
[x: InstructionKey]: InstructionHash;
|
|
1407
|
+
};
|
|
1408
|
+
instructionEntries?: InstructionEntrySnapshot;
|
|
1409
|
+
};
|
|
1494
1410
|
};
|
|
1495
|
-
export type
|
|
1496
|
-
id:
|
|
1411
|
+
export type SessionInboxDelivered = {
|
|
1412
|
+
id: EventID;
|
|
1497
1413
|
created: number;
|
|
1498
1414
|
metadata?: {
|
|
1499
1415
|
[x: string]: any;
|
|
1500
1416
|
};
|
|
1501
|
-
type: "
|
|
1417
|
+
type: "session.inbox.delivered";
|
|
1418
|
+
durable: {
|
|
1419
|
+
aggregateID: string;
|
|
1420
|
+
seq: EventSeq;
|
|
1421
|
+
version: 1;
|
|
1422
|
+
};
|
|
1502
1423
|
location?: LocationRef;
|
|
1503
|
-
data: {
|
|
1424
|
+
data: {
|
|
1425
|
+
sessionID: SessionID;
|
|
1426
|
+
inboxID: SessionMessageID;
|
|
1427
|
+
};
|
|
1504
1428
|
};
|
|
1505
|
-
export type
|
|
1506
|
-
|
|
1429
|
+
export type SessionInboxMovePayload1 = {
|
|
1430
|
+
location: LocationRef;
|
|
1431
|
+
projectID: ProjectID;
|
|
1432
|
+
subpath?: RelativePath;
|
|
1433
|
+
};
|
|
1434
|
+
export type SessionInboxCancelled = {
|
|
1435
|
+
id: EventID;
|
|
1507
1436
|
created: number;
|
|
1508
1437
|
metadata?: {
|
|
1509
1438
|
[x: string]: any;
|
|
1510
1439
|
};
|
|
1511
|
-
type: "
|
|
1440
|
+
type: "session.inbox.cancelled";
|
|
1441
|
+
durable: {
|
|
1442
|
+
aggregateID: string;
|
|
1443
|
+
seq: EventSeq;
|
|
1444
|
+
version: 1;
|
|
1445
|
+
};
|
|
1512
1446
|
location?: LocationRef;
|
|
1513
|
-
data: {
|
|
1447
|
+
data: {
|
|
1448
|
+
sessionID: SessionID;
|
|
1449
|
+
inboxID: SessionMessageID;
|
|
1450
|
+
};
|
|
1514
1451
|
};
|
|
1515
|
-
export type
|
|
1516
|
-
id:
|
|
1452
|
+
export type SessionInboxDeliveryChanged = {
|
|
1453
|
+
id: EventID;
|
|
1517
1454
|
created: number;
|
|
1518
1455
|
metadata?: {
|
|
1519
1456
|
[x: string]: any;
|
|
1520
1457
|
};
|
|
1521
|
-
type: "
|
|
1458
|
+
type: "session.inbox.delivery.changed";
|
|
1459
|
+
durable: {
|
|
1460
|
+
aggregateID: string;
|
|
1461
|
+
seq: EventSeq;
|
|
1462
|
+
version: 1;
|
|
1463
|
+
};
|
|
1522
1464
|
location?: LocationRef;
|
|
1523
|
-
data: {
|
|
1465
|
+
data: {
|
|
1466
|
+
sessionID: SessionID;
|
|
1467
|
+
inboxID: SessionMessageID;
|
|
1468
|
+
delivery: SessionInboxDelivery;
|
|
1469
|
+
};
|
|
1524
1470
|
};
|
|
1525
|
-
export type
|
|
1526
|
-
id:
|
|
1471
|
+
export type SessionExecutionStarted = {
|
|
1472
|
+
id: EventID;
|
|
1527
1473
|
created: number;
|
|
1528
1474
|
metadata?: {
|
|
1529
1475
|
[x: string]: any;
|
|
1530
1476
|
};
|
|
1531
|
-
type: "session.
|
|
1477
|
+
type: "session.execution.started";
|
|
1478
|
+
durable: {
|
|
1479
|
+
aggregateID: string;
|
|
1480
|
+
seq: EventSeq;
|
|
1481
|
+
version: 1;
|
|
1482
|
+
};
|
|
1532
1483
|
location?: LocationRef;
|
|
1533
1484
|
data: {
|
|
1534
|
-
sessionID:
|
|
1535
|
-
cost: MoneyUSD;
|
|
1536
|
-
tokens: TokenUsageInfo;
|
|
1485
|
+
sessionID: SessionID;
|
|
1537
1486
|
};
|
|
1538
1487
|
};
|
|
1539
|
-
export type
|
|
1540
|
-
id:
|
|
1488
|
+
export type SessionExecutionSucceeded = {
|
|
1489
|
+
id: EventID;
|
|
1541
1490
|
created: number;
|
|
1542
1491
|
metadata?: {
|
|
1543
1492
|
[x: string]: any;
|
|
1544
1493
|
};
|
|
1545
|
-
type: "session.
|
|
1494
|
+
type: "session.execution.succeeded";
|
|
1495
|
+
durable: {
|
|
1496
|
+
aggregateID: string;
|
|
1497
|
+
seq: EventSeq;
|
|
1498
|
+
version: 1;
|
|
1499
|
+
};
|
|
1546
1500
|
location?: LocationRef;
|
|
1547
1501
|
data: {
|
|
1548
|
-
sessionID:
|
|
1549
|
-
assistantMessageID: string;
|
|
1550
|
-
ordinal: number;
|
|
1551
|
-
delta: string;
|
|
1502
|
+
sessionID: SessionID;
|
|
1552
1503
|
};
|
|
1553
1504
|
};
|
|
1554
|
-
export type
|
|
1555
|
-
id:
|
|
1505
|
+
export type SessionExecutionFailed = {
|
|
1506
|
+
id: EventID;
|
|
1556
1507
|
created: number;
|
|
1557
1508
|
metadata?: {
|
|
1558
1509
|
[x: string]: any;
|
|
1559
1510
|
};
|
|
1560
|
-
type: "session.
|
|
1511
|
+
type: "session.execution.failed";
|
|
1512
|
+
durable: {
|
|
1513
|
+
aggregateID: string;
|
|
1514
|
+
seq: EventSeq;
|
|
1515
|
+
version: 1;
|
|
1516
|
+
};
|
|
1561
1517
|
location?: LocationRef;
|
|
1562
1518
|
data: {
|
|
1563
|
-
sessionID:
|
|
1564
|
-
|
|
1565
|
-
ordinal: number;
|
|
1566
|
-
delta: string;
|
|
1519
|
+
sessionID: SessionID;
|
|
1520
|
+
error: SessionStructuredError;
|
|
1567
1521
|
};
|
|
1568
1522
|
};
|
|
1569
|
-
export type
|
|
1570
|
-
id:
|
|
1523
|
+
export type SessionExecutionInterrupted = {
|
|
1524
|
+
id: EventID;
|
|
1571
1525
|
created: number;
|
|
1572
1526
|
metadata?: {
|
|
1573
1527
|
[x: string]: any;
|
|
1574
1528
|
};
|
|
1575
|
-
type: "session.
|
|
1529
|
+
type: "session.execution.interrupted";
|
|
1530
|
+
durable: {
|
|
1531
|
+
aggregateID: string;
|
|
1532
|
+
seq: EventSeq;
|
|
1533
|
+
version: 1;
|
|
1534
|
+
};
|
|
1576
1535
|
location?: LocationRef;
|
|
1577
1536
|
data: {
|
|
1578
|
-
sessionID:
|
|
1579
|
-
|
|
1580
|
-
id: string;
|
|
1581
|
-
delta: string;
|
|
1537
|
+
sessionID: SessionID;
|
|
1538
|
+
reason: "user" | "shutdown" | "superseded" | "inactivity";
|
|
1582
1539
|
};
|
|
1583
1540
|
};
|
|
1584
|
-
export type
|
|
1585
|
-
id:
|
|
1541
|
+
export type SessionInstructionsUpdated = {
|
|
1542
|
+
id: EventID;
|
|
1586
1543
|
created: number;
|
|
1587
1544
|
metadata?: {
|
|
1588
1545
|
[x: string]: any;
|
|
1589
1546
|
};
|
|
1590
|
-
type: "session.
|
|
1547
|
+
type: "session.instructions.updated";
|
|
1548
|
+
durable: {
|
|
1549
|
+
aggregateID: string;
|
|
1550
|
+
seq: EventSeq;
|
|
1551
|
+
version: 2;
|
|
1552
|
+
};
|
|
1591
1553
|
location?: LocationRef;
|
|
1592
1554
|
data: {
|
|
1593
|
-
sessionID:
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
metadata: {
|
|
1597
|
-
[x: string]: JsonValue;
|
|
1555
|
+
sessionID: SessionID;
|
|
1556
|
+
delta: {
|
|
1557
|
+
[x: string]: InstructionHash | "removed";
|
|
1598
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: "session.
|
|
1568
|
+
type: "session.synthetic";
|
|
1569
|
+
durable: {
|
|
1570
|
+
aggregateID: string;
|
|
1571
|
+
seq: EventSeq;
|
|
1572
|
+
version: 1;
|
|
1573
|
+
};
|
|
1608
1574
|
location?: LocationRef;
|
|
1609
1575
|
data: {
|
|
1610
|
-
sessionID:
|
|
1576
|
+
sessionID: SessionID;
|
|
1611
1577
|
text: string;
|
|
1578
|
+
description?: string;
|
|
1579
|
+
metadata?: {
|
|
1580
|
+
[x: string]: any;
|
|
1581
|
+
};
|
|
1612
1582
|
};
|
|
1613
1583
|
};
|
|
1614
|
-
export type
|
|
1615
|
-
id:
|
|
1584
|
+
export type SessionSkillActivated = {
|
|
1585
|
+
id: EventID;
|
|
1616
1586
|
created: number;
|
|
1617
1587
|
metadata?: {
|
|
1618
1588
|
[x: string]: any;
|
|
1619
1589
|
};
|
|
1620
|
-
type: "
|
|
1590
|
+
type: "session.skill.activated";
|
|
1591
|
+
durable: {
|
|
1592
|
+
aggregateID: string;
|
|
1593
|
+
seq: EventSeq;
|
|
1594
|
+
version: 1;
|
|
1595
|
+
};
|
|
1621
1596
|
location?: LocationRef;
|
|
1622
1597
|
data: {
|
|
1623
|
-
|
|
1624
|
-
|
|
1598
|
+
sessionID: SessionID;
|
|
1599
|
+
id: SkillID;
|
|
1600
|
+
name: SkillName;
|
|
1601
|
+
text: string;
|
|
1625
1602
|
};
|
|
1626
1603
|
};
|
|
1627
|
-
export type
|
|
1628
|
-
id:
|
|
1604
|
+
export type SessionShellStarted = {
|
|
1605
|
+
id: EventID;
|
|
1629
1606
|
created: number;
|
|
1630
1607
|
metadata?: {
|
|
1631
1608
|
[x: string]: any;
|
|
1632
1609
|
};
|
|
1633
|
-
type: "
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
id: string;
|
|
1639
|
-
created: number;
|
|
1640
|
-
metadata?: {
|
|
1641
|
-
[x: string]: any;
|
|
1610
|
+
type: "session.shell.started";
|
|
1611
|
+
durable: {
|
|
1612
|
+
aggregateID: string;
|
|
1613
|
+
seq: EventSeq;
|
|
1614
|
+
version: 1;
|
|
1642
1615
|
};
|
|
1643
|
-
type: "permission.cancelled";
|
|
1644
1616
|
location?: LocationRef;
|
|
1645
1617
|
data: {
|
|
1646
|
-
sessionID:
|
|
1647
|
-
|
|
1618
|
+
sessionID: SessionID;
|
|
1619
|
+
shell: ShellInfo;
|
|
1648
1620
|
};
|
|
1649
1621
|
};
|
|
1650
|
-
export type
|
|
1651
|
-
id:
|
|
1622
|
+
export type SessionShellEnded = {
|
|
1623
|
+
id: EventID;
|
|
1652
1624
|
created: number;
|
|
1653
1625
|
metadata?: {
|
|
1654
1626
|
[x: string]: any;
|
|
1655
1627
|
};
|
|
1656
|
-
type: "
|
|
1628
|
+
type: "session.shell.ended";
|
|
1629
|
+
durable: {
|
|
1630
|
+
aggregateID: string;
|
|
1631
|
+
seq: EventSeq;
|
|
1632
|
+
version: 1;
|
|
1633
|
+
};
|
|
1657
1634
|
location?: LocationRef;
|
|
1658
|
-
data: {
|
|
1635
|
+
data: {
|
|
1636
|
+
sessionID: SessionID;
|
|
1637
|
+
shell: ShellInfo;
|
|
1638
|
+
output: {
|
|
1639
|
+
output: string;
|
|
1640
|
+
cursor: number;
|
|
1641
|
+
size: number;
|
|
1642
|
+
truncated: boolean;
|
|
1643
|
+
};
|
|
1644
|
+
};
|
|
1659
1645
|
};
|
|
1660
|
-
export type
|
|
1661
|
-
id:
|
|
1646
|
+
export type SessionStepStarted = {
|
|
1647
|
+
id: EventID;
|
|
1662
1648
|
created: number;
|
|
1663
1649
|
metadata?: {
|
|
1664
1650
|
[x: string]: any;
|
|
1665
1651
|
};
|
|
1666
|
-
type: "
|
|
1652
|
+
type: "session.step.started";
|
|
1653
|
+
durable: {
|
|
1654
|
+
aggregateID: string;
|
|
1655
|
+
seq: EventSeq;
|
|
1656
|
+
version: 1;
|
|
1657
|
+
};
|
|
1667
1658
|
location?: LocationRef;
|
|
1668
1659
|
data: {
|
|
1669
|
-
|
|
1660
|
+
sessionID: SessionID;
|
|
1661
|
+
assistantMessageID: SessionMessageID;
|
|
1662
|
+
agent: AgentID;
|
|
1663
|
+
model: ModelRef;
|
|
1664
|
+
snapshot?: SnapshotID;
|
|
1665
|
+
started: number;
|
|
1670
1666
|
};
|
|
1671
1667
|
};
|
|
1672
|
-
export type
|
|
1673
|
-
id:
|
|
1668
|
+
export type SessionStepStreamed = {
|
|
1669
|
+
id: EventID;
|
|
1674
1670
|
created: number;
|
|
1675
1671
|
metadata?: {
|
|
1676
1672
|
[x: string]: any;
|
|
1677
1673
|
};
|
|
1678
|
-
type: "
|
|
1674
|
+
type: "session.step.streamed";
|
|
1679
1675
|
durable: {
|
|
1680
1676
|
aggregateID: string;
|
|
1681
|
-
seq:
|
|
1677
|
+
seq: EventSeq;
|
|
1682
1678
|
version: 1;
|
|
1683
1679
|
};
|
|
1684
1680
|
location?: LocationRef;
|
|
1685
1681
|
data: {
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
previous: string;
|
|
1689
|
-
adopted?: Array<string>;
|
|
1682
|
+
sessionID: SessionID;
|
|
1683
|
+
assistantMessageID: SessionMessageID;
|
|
1690
1684
|
};
|
|
1691
1685
|
};
|
|
1692
|
-
export type
|
|
1693
|
-
id:
|
|
1686
|
+
export type SessionStepEnded = {
|
|
1687
|
+
id: EventID;
|
|
1694
1688
|
created: number;
|
|
1695
1689
|
metadata?: {
|
|
1696
1690
|
[x: string]: any;
|
|
1697
1691
|
};
|
|
1698
|
-
type: "
|
|
1692
|
+
type: "session.step.ended";
|
|
1693
|
+
durable: {
|
|
1694
|
+
aggregateID: string;
|
|
1695
|
+
seq: EventSeq;
|
|
1696
|
+
version: 1;
|
|
1697
|
+
};
|
|
1699
1698
|
location?: LocationRef;
|
|
1700
|
-
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
|
+
};
|
|
1701
1710
|
};
|
|
1702
|
-
export type
|
|
1703
|
-
id:
|
|
1711
|
+
export type SessionStepFailed = {
|
|
1712
|
+
id: EventID;
|
|
1704
1713
|
created: number;
|
|
1705
1714
|
metadata?: {
|
|
1706
1715
|
[x: string]: any;
|
|
1707
1716
|
};
|
|
1708
|
-
type: "
|
|
1717
|
+
type: "session.step.failed";
|
|
1718
|
+
durable: {
|
|
1719
|
+
aggregateID: string;
|
|
1720
|
+
seq: EventSeq;
|
|
1721
|
+
version: 1;
|
|
1722
|
+
};
|
|
1709
1723
|
location?: LocationRef;
|
|
1710
|
-
data: {
|
|
1724
|
+
data: {
|
|
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>;
|
|
1735
|
+
};
|
|
1711
1736
|
};
|
|
1712
|
-
export type
|
|
1713
|
-
id:
|
|
1737
|
+
export type SessionTextStarted = {
|
|
1738
|
+
id: EventID;
|
|
1714
1739
|
created: number;
|
|
1715
1740
|
metadata?: {
|
|
1716
1741
|
[x: string]: any;
|
|
1717
1742
|
};
|
|
1718
|
-
type: "
|
|
1743
|
+
type: "session.text.started";
|
|
1744
|
+
durable: {
|
|
1745
|
+
aggregateID: string;
|
|
1746
|
+
seq: EventSeq;
|
|
1747
|
+
version: 1;
|
|
1748
|
+
};
|
|
1719
1749
|
location?: LocationRef;
|
|
1720
|
-
data: {
|
|
1750
|
+
data: {
|
|
1751
|
+
sessionID: SessionID;
|
|
1752
|
+
assistantMessageID: SessionMessageID;
|
|
1753
|
+
ordinal: number;
|
|
1754
|
+
};
|
|
1721
1755
|
};
|
|
1722
|
-
export type
|
|
1723
|
-
id:
|
|
1756
|
+
export type SessionTextEnded = {
|
|
1757
|
+
id: EventID;
|
|
1724
1758
|
created: number;
|
|
1725
1759
|
metadata?: {
|
|
1726
1760
|
[x: string]: any;
|
|
1727
1761
|
};
|
|
1728
|
-
type: "
|
|
1762
|
+
type: "session.text.ended";
|
|
1763
|
+
durable: {
|
|
1764
|
+
aggregateID: string;
|
|
1765
|
+
seq: EventSeq;
|
|
1766
|
+
version: 1;
|
|
1767
|
+
};
|
|
1729
1768
|
location?: LocationRef;
|
|
1730
1769
|
data: {
|
|
1731
|
-
|
|
1732
|
-
|
|
1770
|
+
sessionID: SessionID;
|
|
1771
|
+
assistantMessageID: SessionMessageID;
|
|
1772
|
+
ordinal: number;
|
|
1773
|
+
text: string;
|
|
1774
|
+
state?: SessionMessageProviderState1;
|
|
1733
1775
|
};
|
|
1734
1776
|
};
|
|
1735
|
-
export type
|
|
1736
|
-
id:
|
|
1777
|
+
export type SessionReasoningStarted = {
|
|
1778
|
+
id: EventID;
|
|
1737
1779
|
created: number;
|
|
1738
1780
|
metadata?: {
|
|
1739
1781
|
[x: string]: any;
|
|
1740
1782
|
};
|
|
1741
|
-
type: "
|
|
1783
|
+
type: "session.reasoning.started";
|
|
1784
|
+
durable: {
|
|
1785
|
+
aggregateID: string;
|
|
1786
|
+
seq: EventSeq;
|
|
1787
|
+
version: 1;
|
|
1788
|
+
};
|
|
1742
1789
|
location?: LocationRef;
|
|
1743
1790
|
data: {
|
|
1744
|
-
|
|
1791
|
+
sessionID: SessionID;
|
|
1792
|
+
assistantMessageID: SessionMessageID;
|
|
1793
|
+
ordinal: number;
|
|
1794
|
+
state?: SessionMessageProviderState1;
|
|
1745
1795
|
};
|
|
1746
1796
|
};
|
|
1747
|
-
export type
|
|
1748
|
-
id:
|
|
1797
|
+
export type SessionReasoningEnded = {
|
|
1798
|
+
id: EventID;
|
|
1749
1799
|
created: number;
|
|
1750
1800
|
metadata?: {
|
|
1751
1801
|
[x: string]: any;
|
|
1752
1802
|
};
|
|
1753
|
-
type: "
|
|
1803
|
+
type: "session.reasoning.ended";
|
|
1804
|
+
durable: {
|
|
1805
|
+
aggregateID: string;
|
|
1806
|
+
seq: EventSeq;
|
|
1807
|
+
version: 1;
|
|
1808
|
+
};
|
|
1754
1809
|
location?: LocationRef;
|
|
1755
1810
|
data: {
|
|
1756
|
-
sessionID:
|
|
1757
|
-
|
|
1811
|
+
sessionID: SessionID;
|
|
1812
|
+
assistantMessageID: SessionMessageID;
|
|
1813
|
+
ordinal: number;
|
|
1814
|
+
text: string;
|
|
1815
|
+
state?: SessionMessageProviderState1;
|
|
1758
1816
|
};
|
|
1759
1817
|
};
|
|
1760
|
-
export type
|
|
1761
|
-
id:
|
|
1818
|
+
export type SessionToolInputStarted = {
|
|
1819
|
+
id: EventID;
|
|
1762
1820
|
created: number;
|
|
1763
1821
|
metadata?: {
|
|
1764
1822
|
[x: string]: any;
|
|
1765
1823
|
};
|
|
1766
|
-
type: "
|
|
1824
|
+
type: "session.tool.input.started";
|
|
1825
|
+
durable: {
|
|
1826
|
+
aggregateID: string;
|
|
1827
|
+
seq: EventSeq;
|
|
1828
|
+
version: 1;
|
|
1829
|
+
};
|
|
1767
1830
|
location?: LocationRef;
|
|
1768
1831
|
data: {
|
|
1832
|
+
sessionID: SessionID;
|
|
1833
|
+
assistantMessageID: SessionMessageID;
|
|
1769
1834
|
id: string;
|
|
1770
|
-
|
|
1771
|
-
status: "running" | "exited" | "timeout" | "killed";
|
|
1835
|
+
name: string;
|
|
1772
1836
|
};
|
|
1773
1837
|
};
|
|
1774
|
-
export type
|
|
1775
|
-
id:
|
|
1838
|
+
export type SessionToolInputEnded = {
|
|
1839
|
+
id: EventID;
|
|
1776
1840
|
created: number;
|
|
1777
1841
|
metadata?: {
|
|
1778
1842
|
[x: string]: any;
|
|
1779
1843
|
};
|
|
1780
|
-
type: "
|
|
1844
|
+
type: "session.tool.input.ended";
|
|
1845
|
+
durable: {
|
|
1846
|
+
aggregateID: string;
|
|
1847
|
+
seq: EventSeq;
|
|
1848
|
+
version: 1;
|
|
1849
|
+
};
|
|
1781
1850
|
location?: LocationRef;
|
|
1782
1851
|
data: {
|
|
1852
|
+
sessionID: SessionID;
|
|
1853
|
+
assistantMessageID: SessionMessageID;
|
|
1783
1854
|
id: string;
|
|
1855
|
+
text: string;
|
|
1784
1856
|
};
|
|
1785
1857
|
};
|
|
1786
|
-
export type
|
|
1787
|
-
id:
|
|
1858
|
+
export type SessionToolCalled = {
|
|
1859
|
+
id: EventID;
|
|
1788
1860
|
created: number;
|
|
1789
1861
|
metadata?: {
|
|
1790
1862
|
[x: string]: any;
|
|
1791
1863
|
};
|
|
1792
|
-
type: "
|
|
1864
|
+
type: "session.tool.called";
|
|
1865
|
+
durable: {
|
|
1866
|
+
aggregateID: string;
|
|
1867
|
+
seq: EventSeq;
|
|
1868
|
+
version: 1;
|
|
1869
|
+
};
|
|
1793
1870
|
location?: LocationRef;
|
|
1794
1871
|
data: {
|
|
1872
|
+
sessionID: SessionID;
|
|
1873
|
+
assistantMessageID: SessionMessageID;
|
|
1795
1874
|
id: string;
|
|
1796
|
-
|
|
1875
|
+
input: {
|
|
1876
|
+
[x: string]: any;
|
|
1877
|
+
};
|
|
1878
|
+
executed: boolean;
|
|
1879
|
+
state?: SessionMessageProviderState1;
|
|
1797
1880
|
};
|
|
1798
1881
|
};
|
|
1799
|
-
export type
|
|
1800
|
-
id:
|
|
1882
|
+
export type SessionToolSubagentPrepared = {
|
|
1883
|
+
id: EventID;
|
|
1801
1884
|
created: number;
|
|
1802
1885
|
metadata?: {
|
|
1803
1886
|
[x: string]: any;
|
|
1804
1887
|
};
|
|
1805
|
-
type: "
|
|
1888
|
+
type: "session.tool.subagent.prepared";
|
|
1889
|
+
durable: {
|
|
1890
|
+
aggregateID: string;
|
|
1891
|
+
seq: EventSeq;
|
|
1892
|
+
version: 1;
|
|
1893
|
+
};
|
|
1806
1894
|
location?: LocationRef;
|
|
1807
|
-
data: {
|
|
1895
|
+
data: {
|
|
1896
|
+
sessionID: SessionID;
|
|
1897
|
+
assistantMessageID: SessionMessageID;
|
|
1898
|
+
id: string;
|
|
1899
|
+
recovery: {
|
|
1900
|
+
childSessionID: SessionID;
|
|
1901
|
+
inboxID: SessionMessageID;
|
|
1902
|
+
inputDigest: string;
|
|
1903
|
+
agent: AgentID;
|
|
1904
|
+
model?: ModelRef;
|
|
1905
|
+
};
|
|
1906
|
+
};
|
|
1808
1907
|
};
|
|
1809
|
-
export type
|
|
1810
|
-
id:
|
|
1908
|
+
export type SessionRetryScheduled = {
|
|
1909
|
+
id: EventID;
|
|
1811
1910
|
created: number;
|
|
1812
1911
|
metadata?: {
|
|
1813
1912
|
[x: string]: any;
|
|
1814
1913
|
};
|
|
1815
|
-
type: "session.
|
|
1914
|
+
type: "session.retry.scheduled";
|
|
1915
|
+
durable: {
|
|
1916
|
+
aggregateID: string;
|
|
1917
|
+
seq: EventSeq;
|
|
1918
|
+
version: 1;
|
|
1919
|
+
};
|
|
1816
1920
|
location?: LocationRef;
|
|
1817
1921
|
data: {
|
|
1818
|
-
sessionID:
|
|
1922
|
+
sessionID: SessionID;
|
|
1923
|
+
assistantMessageID: SessionMessageID;
|
|
1924
|
+
attempt: number;
|
|
1925
|
+
at: number;
|
|
1926
|
+
error: SessionStructuredError;
|
|
1819
1927
|
};
|
|
1820
1928
|
};
|
|
1821
|
-
export type
|
|
1822
|
-
id:
|
|
1929
|
+
export type SessionCompactionStarted = {
|
|
1930
|
+
id: EventID;
|
|
1823
1931
|
created: number;
|
|
1824
1932
|
metadata?: {
|
|
1825
1933
|
[x: string]: any;
|
|
1826
1934
|
};
|
|
1827
|
-
type: "
|
|
1935
|
+
type: "session.compaction.started";
|
|
1936
|
+
durable: {
|
|
1937
|
+
aggregateID: string;
|
|
1938
|
+
seq: EventSeq;
|
|
1939
|
+
version: 1;
|
|
1940
|
+
};
|
|
1828
1941
|
location?: LocationRef;
|
|
1829
1942
|
data: {
|
|
1830
|
-
|
|
1943
|
+
sessionID: SessionID;
|
|
1944
|
+
reason: "auto" | "manual";
|
|
1945
|
+
recent: string;
|
|
1946
|
+
inputID?: SessionMessageID;
|
|
1831
1947
|
};
|
|
1832
1948
|
};
|
|
1833
|
-
export type
|
|
1834
|
-
id:
|
|
1949
|
+
export type SessionCompactionFailed = {
|
|
1950
|
+
id: EventID;
|
|
1835
1951
|
created: number;
|
|
1836
1952
|
metadata?: {
|
|
1837
1953
|
[x: string]: any;
|
|
1838
1954
|
};
|
|
1839
|
-
type: "
|
|
1955
|
+
type: "session.compaction.failed";
|
|
1956
|
+
durable: {
|
|
1957
|
+
aggregateID: string;
|
|
1958
|
+
seq: EventSeq;
|
|
1959
|
+
version: 1;
|
|
1960
|
+
};
|
|
1840
1961
|
location?: LocationRef;
|
|
1841
1962
|
data: {
|
|
1842
|
-
|
|
1963
|
+
sessionID: SessionID;
|
|
1964
|
+
reason: "auto" | "manual";
|
|
1965
|
+
error: SessionStructuredError;
|
|
1966
|
+
inputID?: SessionMessageID;
|
|
1967
|
+
cost?: MoneyUSD;
|
|
1968
|
+
tokens?: TokenUsageInfo;
|
|
1843
1969
|
};
|
|
1844
1970
|
};
|
|
1845
|
-
export type
|
|
1846
|
-
id:
|
|
1971
|
+
export type SessionRevertStaged = {
|
|
1972
|
+
id: EventID;
|
|
1847
1973
|
created: number;
|
|
1848
1974
|
metadata?: {
|
|
1849
1975
|
[x: string]: any;
|
|
1850
1976
|
};
|
|
1851
|
-
type: "
|
|
1977
|
+
type: "session.revert.staged";
|
|
1978
|
+
durable: {
|
|
1979
|
+
aggregateID: string;
|
|
1980
|
+
seq: EventSeq;
|
|
1981
|
+
version: 1;
|
|
1982
|
+
};
|
|
1852
1983
|
location?: LocationRef;
|
|
1853
1984
|
data: {
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
variant: "info" | "success" | "warning" | "error";
|
|
1857
|
-
duration?: number | undefined;
|
|
1985
|
+
sessionID: SessionID;
|
|
1986
|
+
revert: SessionRevert;
|
|
1858
1987
|
};
|
|
1859
1988
|
};
|
|
1860
|
-
export type
|
|
1861
|
-
id:
|
|
1989
|
+
export type SessionRevertCleared = {
|
|
1990
|
+
id: EventID;
|
|
1862
1991
|
created: number;
|
|
1863
1992
|
metadata?: {
|
|
1864
1993
|
[x: string]: any;
|
|
1865
1994
|
};
|
|
1866
|
-
type: "
|
|
1995
|
+
type: "session.revert.cleared";
|
|
1996
|
+
durable: {
|
|
1997
|
+
aggregateID: string;
|
|
1998
|
+
seq: EventSeq;
|
|
1999
|
+
version: 1;
|
|
2000
|
+
};
|
|
1867
2001
|
location?: LocationRef;
|
|
1868
2002
|
data: {
|
|
1869
|
-
sessionID:
|
|
2003
|
+
sessionID: SessionID;
|
|
1870
2004
|
};
|
|
1871
2005
|
};
|
|
1872
|
-
export type
|
|
1873
|
-
id:
|
|
2006
|
+
export type SessionRevertCommitted = {
|
|
2007
|
+
id: EventID;
|
|
1874
2008
|
created: number;
|
|
1875
2009
|
metadata?: {
|
|
1876
2010
|
[x: string]: any;
|
|
1877
2011
|
};
|
|
1878
|
-
type: "
|
|
2012
|
+
type: "session.revert.committed";
|
|
2013
|
+
durable: {
|
|
2014
|
+
aggregateID: string;
|
|
2015
|
+
seq: EventSeq;
|
|
2016
|
+
version: 1;
|
|
2017
|
+
};
|
|
1879
2018
|
location?: LocationRef;
|
|
1880
2019
|
data: {
|
|
1881
|
-
|
|
2020
|
+
sessionID: SessionID;
|
|
2021
|
+
to: SessionMessageID;
|
|
1882
2022
|
};
|
|
1883
2023
|
};
|
|
1884
|
-
export type
|
|
1885
|
-
id:
|
|
2024
|
+
export type SessionUsageRecorded = {
|
|
2025
|
+
id: EventID;
|
|
1886
2026
|
created: number;
|
|
1887
2027
|
metadata?: {
|
|
1888
2028
|
[x: string]: any;
|
|
1889
2029
|
};
|
|
1890
|
-
type: "
|
|
2030
|
+
type: "session.usage.recorded";
|
|
2031
|
+
durable: {
|
|
2032
|
+
aggregateID: string;
|
|
2033
|
+
seq: EventSeq;
|
|
2034
|
+
version: 1;
|
|
2035
|
+
};
|
|
1891
2036
|
location?: LocationRef;
|
|
1892
2037
|
data: {
|
|
1893
|
-
|
|
2038
|
+
sessionID: SessionID;
|
|
2039
|
+
source: "title" | "compaction";
|
|
2040
|
+
cost: MoneyUSD;
|
|
2041
|
+
tokens: TokenUsageInfo;
|
|
1894
2042
|
};
|
|
1895
2043
|
};
|
|
1896
|
-
export type
|
|
1897
|
-
id:
|
|
2044
|
+
export type LocationShutdown = {
|
|
2045
|
+
id: EventID;
|
|
1898
2046
|
created: number;
|
|
1899
2047
|
metadata?: {
|
|
1900
2048
|
[x: string]: any;
|
|
1901
2049
|
};
|
|
1902
|
-
type: "
|
|
2050
|
+
type: "location.shutdown";
|
|
1903
2051
|
location?: LocationRef;
|
|
1904
|
-
data: {
|
|
1905
|
-
branch?: string;
|
|
1906
|
-
};
|
|
2052
|
+
data: {};
|
|
1907
2053
|
};
|
|
1908
|
-
export type
|
|
1909
|
-
id:
|
|
2054
|
+
export type ModelsDevRefreshed = {
|
|
2055
|
+
id: EventID;
|
|
1910
2056
|
created: number;
|
|
1911
2057
|
metadata?: {
|
|
1912
2058
|
[x: string]: any;
|
|
1913
2059
|
};
|
|
1914
|
-
type: "
|
|
2060
|
+
type: "models-dev.refreshed";
|
|
1915
2061
|
location?: LocationRef;
|
|
1916
|
-
data: {
|
|
1917
|
-
server: string;
|
|
1918
|
-
};
|
|
2062
|
+
data: {};
|
|
1919
2063
|
};
|
|
1920
|
-
export type
|
|
1921
|
-
id:
|
|
2064
|
+
export type CredentialUpdated = {
|
|
2065
|
+
id: EventID;
|
|
1922
2066
|
created: number;
|
|
1923
2067
|
metadata?: {
|
|
1924
2068
|
[x: string]: any;
|
|
1925
2069
|
};
|
|
1926
|
-
type: "
|
|
2070
|
+
type: "credential.updated";
|
|
1927
2071
|
location?: LocationRef;
|
|
1928
|
-
data: {
|
|
1929
|
-
server: string;
|
|
1930
|
-
};
|
|
2072
|
+
data: {};
|
|
1931
2073
|
};
|
|
1932
|
-
export type
|
|
1933
|
-
id:
|
|
2074
|
+
export type CredentialSwitched = {
|
|
2075
|
+
id: EventID;
|
|
1934
2076
|
created: number;
|
|
1935
2077
|
metadata?: {
|
|
1936
2078
|
[x: string]: any;
|
|
1937
2079
|
};
|
|
1938
|
-
type: "
|
|
1939
|
-
durable: {
|
|
1940
|
-
aggregateID: string;
|
|
1941
|
-
seq: number;
|
|
1942
|
-
version: 1;
|
|
1943
|
-
};
|
|
2080
|
+
type: "credential.switched";
|
|
1944
2081
|
location?: LocationRef;
|
|
1945
2082
|
data: {
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
projectID: string;
|
|
1949
|
-
subpath?: string;
|
|
2083
|
+
integrationID: IntegrationID;
|
|
2084
|
+
credentialID: CredentialID | null;
|
|
1950
2085
|
};
|
|
1951
2086
|
};
|
|
1952
|
-
export type
|
|
1953
|
-
|
|
1954
|
-
projectID: string;
|
|
1955
|
-
subpath?: string;
|
|
1956
|
-
};
|
|
1957
|
-
export type SessionMetadataUpdated = {
|
|
1958
|
-
id: string;
|
|
2087
|
+
export type IntegrationUpdated = {
|
|
2088
|
+
id: EventID;
|
|
1959
2089
|
created: number;
|
|
1960
2090
|
metadata?: {
|
|
1961
2091
|
[x: string]: any;
|
|
1962
2092
|
};
|
|
1963
|
-
type: "
|
|
1964
|
-
durable: {
|
|
1965
|
-
aggregateID: string;
|
|
1966
|
-
seq: number;
|
|
1967
|
-
version: 1;
|
|
1968
|
-
};
|
|
2093
|
+
type: "integration.updated";
|
|
1969
2094
|
location?: LocationRef;
|
|
1970
|
-
data: {
|
|
1971
|
-
sessionID: string;
|
|
1972
|
-
metadata: SessionMetadata;
|
|
1973
|
-
};
|
|
2095
|
+
data: {};
|
|
1974
2096
|
};
|
|
1975
|
-
export type
|
|
1976
|
-
id:
|
|
2097
|
+
export type ProviderUpdated = {
|
|
2098
|
+
id: EventID;
|
|
1977
2099
|
created: number;
|
|
1978
2100
|
metadata?: {
|
|
1979
2101
|
[x: string]: any;
|
|
1980
2102
|
};
|
|
1981
|
-
type: "
|
|
1982
|
-
durable: {
|
|
1983
|
-
aggregateID: string;
|
|
1984
|
-
seq: number;
|
|
1985
|
-
version: 1;
|
|
1986
|
-
};
|
|
2103
|
+
type: "provider.updated";
|
|
1987
2104
|
location?: LocationRef;
|
|
1988
|
-
data: {
|
|
1989
|
-
sessionID: string;
|
|
1990
|
-
shell: ShellInfo;
|
|
1991
|
-
};
|
|
2105
|
+
data: {};
|
|
1992
2106
|
};
|
|
1993
|
-
export type
|
|
1994
|
-
id:
|
|
2107
|
+
export type ModelUpdated = {
|
|
2108
|
+
id: EventID;
|
|
1995
2109
|
created: number;
|
|
1996
2110
|
metadata?: {
|
|
1997
2111
|
[x: string]: any;
|
|
1998
2112
|
};
|
|
1999
|
-
type: "
|
|
2000
|
-
durable: {
|
|
2001
|
-
aggregateID: string;
|
|
2002
|
-
seq: number;
|
|
2003
|
-
version: 1;
|
|
2004
|
-
};
|
|
2113
|
+
type: "model.updated";
|
|
2005
2114
|
location?: LocationRef;
|
|
2006
|
-
data: {
|
|
2007
|
-
sessionID: string;
|
|
2008
|
-
shell: ShellInfo;
|
|
2009
|
-
output: {
|
|
2010
|
-
output: string;
|
|
2011
|
-
cursor: number;
|
|
2012
|
-
size: number;
|
|
2013
|
-
truncated: boolean;
|
|
2014
|
-
};
|
|
2015
|
-
};
|
|
2115
|
+
data: {};
|
|
2016
2116
|
};
|
|
2017
|
-
export type
|
|
2018
|
-
id:
|
|
2117
|
+
export type AgentUpdated = {
|
|
2118
|
+
id: EventID;
|
|
2019
2119
|
created: number;
|
|
2020
2120
|
metadata?: {
|
|
2021
2121
|
[x: string]: any;
|
|
2022
2122
|
};
|
|
2023
|
-
type: "
|
|
2123
|
+
type: "agent.updated";
|
|
2024
2124
|
location?: LocationRef;
|
|
2025
|
-
data: {
|
|
2026
|
-
info: ShellInfo;
|
|
2027
|
-
};
|
|
2125
|
+
data: {};
|
|
2028
2126
|
};
|
|
2029
|
-
export type
|
|
2030
|
-
id:
|
|
2127
|
+
export type SessionUsageUpdated = {
|
|
2128
|
+
id: EventID;
|
|
2031
2129
|
created: number;
|
|
2032
2130
|
metadata?: {
|
|
2033
2131
|
[x: string]: any;
|
|
2034
2132
|
};
|
|
2035
|
-
type: "session.
|
|
2036
|
-
durable: {
|
|
2037
|
-
aggregateID: string;
|
|
2038
|
-
seq: number;
|
|
2039
|
-
version: 1;
|
|
2040
|
-
};
|
|
2133
|
+
type: "session.usage.updated";
|
|
2041
2134
|
location?: LocationRef;
|
|
2042
2135
|
data: {
|
|
2043
|
-
sessionID:
|
|
2044
|
-
assistantMessageID: string;
|
|
2045
|
-
finish: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
|
|
2046
|
-
rawFinish?: string;
|
|
2047
|
-
providerState?: SessionMessageProviderState1;
|
|
2136
|
+
sessionID: SessionID;
|
|
2048
2137
|
cost: MoneyUSD;
|
|
2049
2138
|
tokens: TokenUsageInfo;
|
|
2050
|
-
snapshot?: string;
|
|
2051
|
-
files?: Array<string>;
|
|
2052
2139
|
};
|
|
2053
2140
|
};
|
|
2054
|
-
export type
|
|
2055
|
-
id:
|
|
2141
|
+
export type SessionTextDelta = {
|
|
2142
|
+
id: EventID;
|
|
2056
2143
|
created: number;
|
|
2057
2144
|
metadata?: {
|
|
2058
2145
|
[x: string]: any;
|
|
2059
2146
|
};
|
|
2060
|
-
type: "session.
|
|
2061
|
-
durable: {
|
|
2062
|
-
aggregateID: string;
|
|
2063
|
-
seq: number;
|
|
2064
|
-
version: 1;
|
|
2065
|
-
};
|
|
2147
|
+
type: "session.text.delta";
|
|
2066
2148
|
location?: LocationRef;
|
|
2067
2149
|
data: {
|
|
2068
|
-
sessionID:
|
|
2069
|
-
assistantMessageID:
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
rawFinish?: string;
|
|
2073
|
-
providerState?: SessionMessageProviderState1;
|
|
2074
|
-
cost?: MoneyUSD;
|
|
2075
|
-
tokens?: TokenUsageInfo;
|
|
2076
|
-
snapshot?: string;
|
|
2077
|
-
files?: Array<string>;
|
|
2150
|
+
sessionID: SessionID;
|
|
2151
|
+
assistantMessageID: SessionMessageID;
|
|
2152
|
+
ordinal: number;
|
|
2153
|
+
delta: string;
|
|
2078
2154
|
};
|
|
2079
2155
|
};
|
|
2080
|
-
export type
|
|
2081
|
-
id:
|
|
2156
|
+
export type SessionReasoningDelta = {
|
|
2157
|
+
id: EventID;
|
|
2082
2158
|
created: number;
|
|
2083
2159
|
metadata?: {
|
|
2084
2160
|
[x: string]: any;
|
|
2085
2161
|
};
|
|
2086
|
-
type: "session.
|
|
2087
|
-
durable: {
|
|
2088
|
-
aggregateID: string;
|
|
2089
|
-
seq: number;
|
|
2090
|
-
version: 1;
|
|
2091
|
-
};
|
|
2162
|
+
type: "session.reasoning.delta";
|
|
2092
2163
|
location?: LocationRef;
|
|
2093
2164
|
data: {
|
|
2094
|
-
sessionID:
|
|
2095
|
-
assistantMessageID:
|
|
2165
|
+
sessionID: SessionID;
|
|
2166
|
+
assistantMessageID: SessionMessageID;
|
|
2096
2167
|
ordinal: number;
|
|
2097
|
-
|
|
2098
|
-
state?: SessionMessageProviderState1;
|
|
2168
|
+
delta: string;
|
|
2099
2169
|
};
|
|
2100
2170
|
};
|
|
2101
|
-
export type
|
|
2102
|
-
id:
|
|
2171
|
+
export type SessionToolInputDelta = {
|
|
2172
|
+
id: EventID;
|
|
2103
2173
|
created: number;
|
|
2104
2174
|
metadata?: {
|
|
2105
2175
|
[x: string]: any;
|
|
2106
2176
|
};
|
|
2107
|
-
type: "session.
|
|
2108
|
-
durable: {
|
|
2109
|
-
aggregateID: string;
|
|
2110
|
-
seq: number;
|
|
2111
|
-
version: 1;
|
|
2112
|
-
};
|
|
2177
|
+
type: "session.tool.input.delta";
|
|
2113
2178
|
location?: LocationRef;
|
|
2114
2179
|
data: {
|
|
2115
|
-
sessionID:
|
|
2116
|
-
assistantMessageID:
|
|
2117
|
-
|
|
2118
|
-
|
|
2180
|
+
sessionID: SessionID;
|
|
2181
|
+
assistantMessageID: SessionMessageID;
|
|
2182
|
+
id: string;
|
|
2183
|
+
delta: string;
|
|
2119
2184
|
};
|
|
2120
2185
|
};
|
|
2121
|
-
export type
|
|
2122
|
-
id:
|
|
2186
|
+
export type SessionToolProgress = {
|
|
2187
|
+
id: EventID;
|
|
2123
2188
|
created: number;
|
|
2124
2189
|
metadata?: {
|
|
2125
2190
|
[x: string]: any;
|
|
2126
2191
|
};
|
|
2127
|
-
type: "session.
|
|
2128
|
-
durable: {
|
|
2129
|
-
aggregateID: string;
|
|
2130
|
-
seq: number;
|
|
2131
|
-
version: 1;
|
|
2132
|
-
};
|
|
2192
|
+
type: "session.tool.progress";
|
|
2133
2193
|
location?: LocationRef;
|
|
2134
2194
|
data: {
|
|
2135
|
-
sessionID:
|
|
2136
|
-
assistantMessageID:
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2195
|
+
sessionID: SessionID;
|
|
2196
|
+
assistantMessageID: SessionMessageID;
|
|
2197
|
+
id: string;
|
|
2198
|
+
metadata: {
|
|
2199
|
+
[x: string]: JsonValue;
|
|
2200
|
+
};
|
|
2140
2201
|
};
|
|
2141
2202
|
};
|
|
2142
|
-
export type
|
|
2143
|
-
id:
|
|
2203
|
+
export type SessionCompactionDelta = {
|
|
2204
|
+
id: EventID;
|
|
2144
2205
|
created: number;
|
|
2145
2206
|
metadata?: {
|
|
2146
2207
|
[x: string]: any;
|
|
2147
2208
|
};
|
|
2148
|
-
type: "session.
|
|
2149
|
-
durable: {
|
|
2150
|
-
aggregateID: string;
|
|
2151
|
-
seq: number;
|
|
2152
|
-
version: 1;
|
|
2153
|
-
};
|
|
2209
|
+
type: "session.compaction.delta";
|
|
2154
2210
|
location?: LocationRef;
|
|
2155
2211
|
data: {
|
|
2156
|
-
sessionID:
|
|
2157
|
-
|
|
2158
|
-
id: string;
|
|
2159
|
-
input: {
|
|
2160
|
-
[x: string]: any;
|
|
2161
|
-
};
|
|
2162
|
-
executed: boolean;
|
|
2163
|
-
state?: SessionMessageProviderState1;
|
|
2164
|
-
};
|
|
2165
|
-
};
|
|
2166
|
-
export type SessionMessageAssistantText1 = {
|
|
2167
|
-
type: "text";
|
|
2168
|
-
text: string;
|
|
2169
|
-
state?: SessionMessageProviderState1;
|
|
2170
|
-
};
|
|
2171
|
-
export type SessionMessageAssistantReasoning1 = {
|
|
2172
|
-
type: "reasoning";
|
|
2173
|
-
text: string;
|
|
2174
|
-
state?: SessionMessageProviderState1;
|
|
2175
|
-
time?: {
|
|
2176
|
-
created: number;
|
|
2177
|
-
completed?: number;
|
|
2178
|
-
};
|
|
2179
|
-
};
|
|
2180
|
-
export type ToolContent1 = ToolTextContent | ToolFileContent1;
|
|
2181
|
-
export type FormNumberField = {
|
|
2182
|
-
key: string;
|
|
2183
|
-
title?: string;
|
|
2184
|
-
description?: string;
|
|
2185
|
-
required?: boolean;
|
|
2186
|
-
hidden?: boolean;
|
|
2187
|
-
when?: Array<FormWhen>;
|
|
2188
|
-
type: "number";
|
|
2189
|
-
minimum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
2190
|
-
maximum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
2191
|
-
default?: number | "Infinity" | "-Infinity" | "NaN";
|
|
2192
|
-
};
|
|
2193
|
-
export type FormIntegerField = {
|
|
2194
|
-
key: string;
|
|
2195
|
-
title?: string;
|
|
2196
|
-
description?: string;
|
|
2197
|
-
required?: boolean;
|
|
2198
|
-
hidden?: boolean;
|
|
2199
|
-
when?: Array<FormWhen>;
|
|
2200
|
-
type: "integer";
|
|
2201
|
-
minimum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
2202
|
-
maximum?: number | "Infinity" | "-Infinity" | "NaN";
|
|
2203
|
-
default?: number | "Infinity" | "-Infinity" | "NaN";
|
|
2204
|
-
};
|
|
2205
|
-
export type FormBooleanField = {
|
|
2206
|
-
key: string;
|
|
2207
|
-
title?: string;
|
|
2208
|
-
description?: string;
|
|
2209
|
-
required?: boolean;
|
|
2210
|
-
hidden?: boolean;
|
|
2211
|
-
when?: Array<FormWhen>;
|
|
2212
|
-
type: "boolean";
|
|
2213
|
-
default?: boolean;
|
|
2214
|
-
};
|
|
2215
|
-
export type FormStringField = {
|
|
2216
|
-
key: string;
|
|
2217
|
-
title?: string;
|
|
2218
|
-
description?: string;
|
|
2219
|
-
required?: boolean;
|
|
2220
|
-
hidden?: boolean;
|
|
2221
|
-
when?: Array<FormWhen>;
|
|
2222
|
-
type: "string";
|
|
2223
|
-
format?: "email" | "uri" | "date" | "date-time";
|
|
2224
|
-
minLength?: number;
|
|
2225
|
-
maxLength?: number;
|
|
2226
|
-
pattern?: string;
|
|
2227
|
-
placeholder?: string;
|
|
2228
|
-
default?: string;
|
|
2229
|
-
options?: Array<FormOption>;
|
|
2230
|
-
custom?: boolean;
|
|
2231
|
-
};
|
|
2232
|
-
export type FormMultiselectField = {
|
|
2233
|
-
key: string;
|
|
2234
|
-
title?: string;
|
|
2235
|
-
description?: string;
|
|
2236
|
-
required?: boolean;
|
|
2237
|
-
hidden?: boolean;
|
|
2238
|
-
when?: Array<FormWhen>;
|
|
2239
|
-
type: "multiselect";
|
|
2240
|
-
options: Array<FormOption>;
|
|
2241
|
-
minItems?: number;
|
|
2242
|
-
maxItems?: number;
|
|
2243
|
-
custom?: boolean;
|
|
2244
|
-
default?: Array<string>;
|
|
2245
|
-
};
|
|
2246
|
-
export type FormAnswer = {
|
|
2247
|
-
[x: string]: FormValue;
|
|
2248
|
-
};
|
|
2249
|
-
export type ModelCompatibility = {
|
|
2250
|
-
reasoningField?: ModelReasoningField;
|
|
2251
|
-
requireReasoning?: boolean;
|
|
2252
|
-
maxTokensField?: ModelMaxTokensField;
|
|
2253
|
-
requireFinishReason?: boolean;
|
|
2254
|
-
requireAssistantAfterTool?: boolean;
|
|
2255
|
-
supportsPromptCacheKey?: boolean;
|
|
2256
|
-
supportsThinkingBlockBinding?: boolean;
|
|
2257
|
-
supportsEffortUpdates?: boolean;
|
|
2258
|
-
};
|
|
2259
|
-
export type ModelCost = {
|
|
2260
|
-
tier?: {
|
|
2261
|
-
type: "context";
|
|
2262
|
-
size: number;
|
|
2263
|
-
};
|
|
2264
|
-
input: MoneyUSDPerMillionTokens;
|
|
2265
|
-
output: MoneyUSDPerMillionTokens;
|
|
2266
|
-
cache: {
|
|
2267
|
-
read: MoneyUSDPerMillionTokens;
|
|
2268
|
-
write: MoneyUSDPerMillionTokens;
|
|
2212
|
+
sessionID: SessionID;
|
|
2213
|
+
text: string;
|
|
2269
2214
|
};
|
|
2270
2215
|
};
|
|
2271
|
-
export type
|
|
2272
|
-
|
|
2273
|
-
id: string;
|
|
2274
|
-
label: string;
|
|
2275
|
-
method: "key" | "oauth" | "external";
|
|
2276
|
-
status?: ConnectionStatus;
|
|
2277
|
-
};
|
|
2278
|
-
export type ConnectionEnvInfo = {
|
|
2279
|
-
type: "env";
|
|
2280
|
-
name: string;
|
|
2281
|
-
status?: ConnectionStatus;
|
|
2282
|
-
};
|
|
2283
|
-
export type McpServer = {
|
|
2284
|
-
name: string;
|
|
2285
|
-
status: McpStatusConnected | McpStatusPending | McpStatusDisabled | McpStatusFailed | McpStatusNeedsAuth;
|
|
2286
|
-
integrationID?: string;
|
|
2287
|
-
};
|
|
2288
|
-
export type McpResourceCatalog = {
|
|
2289
|
-
resources: Array<McpResource>;
|
|
2290
|
-
templates: Array<McpResourceTemplate>;
|
|
2291
|
-
};
|
|
2292
|
-
export type Project = {
|
|
2293
|
-
id: string;
|
|
2294
|
-
canonical: string;
|
|
2295
|
-
vcs?: ProjectVcs;
|
|
2296
|
-
name?: string;
|
|
2297
|
-
icon?: ProjectIcon;
|
|
2298
|
-
commands?: ProjectCommands;
|
|
2299
|
-
time: ProjectTime;
|
|
2300
|
-
sandboxes: Array<string>;
|
|
2301
|
-
};
|
|
2302
|
-
export type ProjectUpdated = {
|
|
2303
|
-
id: string;
|
|
2216
|
+
export type FilesystemChanged = {
|
|
2217
|
+
id: EventID;
|
|
2304
2218
|
created: number;
|
|
2305
2219
|
metadata?: {
|
|
2306
2220
|
[x: string]: any;
|
|
2307
2221
|
};
|
|
2308
|
-
type: "
|
|
2222
|
+
type: "filesystem.changed";
|
|
2309
2223
|
location?: LocationRef;
|
|
2310
2224
|
data: {
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
vcs?: ProjectVcs;
|
|
2314
|
-
name?: string;
|
|
2315
|
-
icon?: ProjectIcon;
|
|
2316
|
-
commands?: ProjectCommands;
|
|
2317
|
-
time: ProjectTime;
|
|
2318
|
-
sandboxes: Array<string>;
|
|
2225
|
+
file: string;
|
|
2226
|
+
event: "add" | "change" | "unlink";
|
|
2319
2227
|
};
|
|
2320
2228
|
};
|
|
2321
|
-
export type
|
|
2322
|
-
id:
|
|
2323
|
-
|
|
2324
|
-
action: string;
|
|
2325
|
-
resources: Array<string>;
|
|
2326
|
-
save?: Array<string>;
|
|
2229
|
+
export type ReferenceUpdated = {
|
|
2230
|
+
id: EventID;
|
|
2231
|
+
created: number;
|
|
2327
2232
|
metadata?: {
|
|
2328
|
-
[x: string]:
|
|
2233
|
+
[x: string]: any;
|
|
2329
2234
|
};
|
|
2330
|
-
|
|
2331
|
-
|
|
2235
|
+
type: "reference.updated";
|
|
2236
|
+
location?: LocationRef;
|
|
2237
|
+
data: {};
|
|
2332
2238
|
};
|
|
2333
2239
|
export type PermissionAsked = {
|
|
2334
|
-
id:
|
|
2240
|
+
id: EventID;
|
|
2335
2241
|
created: number;
|
|
2336
2242
|
metadata?: {
|
|
2337
2243
|
[x: string]: any;
|
|
@@ -2339,8 +2245,8 @@ export type PermissionAsked = {
|
|
|
2339
2245
|
type: "permission.asked";
|
|
2340
2246
|
location?: LocationRef;
|
|
2341
2247
|
data: {
|
|
2342
|
-
id:
|
|
2343
|
-
sessionID:
|
|
2248
|
+
id: PermissionID;
|
|
2249
|
+
sessionID: SessionID;
|
|
2344
2250
|
action: string;
|
|
2345
2251
|
resources: Array<string>;
|
|
2346
2252
|
save?: Array<string>;
|
|
@@ -2352,7 +2258,7 @@ export type PermissionAsked = {
|
|
|
2352
2258
|
};
|
|
2353
2259
|
};
|
|
2354
2260
|
export type PermissionReplied = {
|
|
2355
|
-
id:
|
|
2261
|
+
id: EventID;
|
|
2356
2262
|
created: number;
|
|
2357
2263
|
metadata?: {
|
|
2358
2264
|
[x: string]: any;
|
|
@@ -2360,346 +2266,352 @@ export type PermissionReplied = {
|
|
|
2360
2266
|
type: "permission.replied";
|
|
2361
2267
|
location?: LocationRef;
|
|
2362
2268
|
data: {
|
|
2363
|
-
sessionID:
|
|
2364
|
-
requestID:
|
|
2269
|
+
sessionID: SessionID;
|
|
2270
|
+
requestID: PermissionID;
|
|
2365
2271
|
reply: PermissionReply;
|
|
2366
2272
|
};
|
|
2367
2273
|
};
|
|
2368
|
-
export type
|
|
2369
|
-
id:
|
|
2274
|
+
export type PermissionCancelled = {
|
|
2275
|
+
id: EventID;
|
|
2370
2276
|
created: number;
|
|
2371
2277
|
metadata?: {
|
|
2372
2278
|
[x: string]: any;
|
|
2373
2279
|
};
|
|
2374
|
-
type: "
|
|
2280
|
+
type: "permission.cancelled";
|
|
2375
2281
|
location?: LocationRef;
|
|
2376
2282
|
data: {
|
|
2377
|
-
|
|
2283
|
+
sessionID: SessionID;
|
|
2284
|
+
requestID: PermissionID;
|
|
2378
2285
|
};
|
|
2379
2286
|
};
|
|
2380
|
-
export type
|
|
2381
|
-
id:
|
|
2287
|
+
export type PluginUpdated = {
|
|
2288
|
+
id: EventID;
|
|
2382
2289
|
created: number;
|
|
2383
2290
|
metadata?: {
|
|
2384
2291
|
[x: string]: any;
|
|
2385
2292
|
};
|
|
2386
|
-
type: "
|
|
2293
|
+
type: "plugin.updated";
|
|
2294
|
+
location?: LocationRef;
|
|
2295
|
+
data: {};
|
|
2296
|
+
};
|
|
2297
|
+
export type ProjectUpdated = {
|
|
2298
|
+
id: EventID;
|
|
2299
|
+
created: number;
|
|
2300
|
+
metadata?: {
|
|
2301
|
+
[x: string]: any;
|
|
2302
|
+
};
|
|
2303
|
+
type: "project.updated";
|
|
2387
2304
|
location?: LocationRef;
|
|
2388
2305
|
data: {
|
|
2389
|
-
|
|
2306
|
+
id: ProjectID;
|
|
2307
|
+
canonical: AbsolutePath;
|
|
2308
|
+
vcs?: ProjectVcs;
|
|
2309
|
+
name?: string;
|
|
2310
|
+
icon?: ProjectIcon;
|
|
2311
|
+
commands?: ProjectCommands;
|
|
2312
|
+
time: ProjectTime;
|
|
2313
|
+
sandboxes: Array<string>;
|
|
2390
2314
|
};
|
|
2391
2315
|
};
|
|
2392
|
-
export type
|
|
2393
|
-
id:
|
|
2316
|
+
export type WorktreeUpdated = {
|
|
2317
|
+
id: EventID;
|
|
2394
2318
|
created: number;
|
|
2395
2319
|
metadata?: {
|
|
2396
2320
|
[x: string]: any;
|
|
2397
2321
|
};
|
|
2398
|
-
type: "
|
|
2322
|
+
type: "worktree.updated";
|
|
2399
2323
|
location?: LocationRef;
|
|
2400
2324
|
data: {
|
|
2401
|
-
|
|
2402
|
-
terminal: PersistentPtyInfo;
|
|
2325
|
+
projectID: ProjectID;
|
|
2403
2326
|
};
|
|
2404
2327
|
};
|
|
2405
|
-
export type
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2328
|
+
export type WorktreeResolved = {
|
|
2329
|
+
id: EventID;
|
|
2330
|
+
created: number;
|
|
2331
|
+
metadata?: {
|
|
2332
|
+
[x: string]: any;
|
|
2333
|
+
};
|
|
2334
|
+
type: "worktree.resolved";
|
|
2335
|
+
durable: {
|
|
2336
|
+
aggregateID: string;
|
|
2337
|
+
seq: EventSeq;
|
|
2338
|
+
version: 1;
|
|
2339
|
+
};
|
|
2340
|
+
location?: LocationRef;
|
|
2341
|
+
data: {
|
|
2342
|
+
projectID: ProjectID;
|
|
2343
|
+
directory: AbsolutePath;
|
|
2344
|
+
previous: ProjectID;
|
|
2345
|
+
adopted?: Array<ProjectID>;
|
|
2412
2346
|
};
|
|
2413
2347
|
};
|
|
2414
|
-
export type
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
minLength?: number;
|
|
2424
|
-
maxLength?: number;
|
|
2425
|
-
pattern?: string;
|
|
2426
|
-
placeholder?: string;
|
|
2427
|
-
default?: string;
|
|
2428
|
-
options?: Array<FormOption>;
|
|
2429
|
-
custom?: boolean;
|
|
2430
|
-
};
|
|
2431
|
-
export type FormNumberField1 = {
|
|
2432
|
-
key: string;
|
|
2433
|
-
title?: string;
|
|
2434
|
-
description?: string;
|
|
2435
|
-
required?: boolean;
|
|
2436
|
-
hidden?: boolean;
|
|
2437
|
-
when?: Array<FormWhen1>;
|
|
2438
|
-
type: "number";
|
|
2439
|
-
minimum?: number;
|
|
2440
|
-
maximum?: number;
|
|
2441
|
-
default?: number;
|
|
2442
|
-
};
|
|
2443
|
-
export type FormIntegerField1 = {
|
|
2444
|
-
key: string;
|
|
2445
|
-
title?: string;
|
|
2446
|
-
description?: string;
|
|
2447
|
-
required?: boolean;
|
|
2448
|
-
hidden?: boolean;
|
|
2449
|
-
when?: Array<FormWhen1>;
|
|
2450
|
-
type: "integer";
|
|
2451
|
-
minimum?: number;
|
|
2452
|
-
maximum?: number;
|
|
2453
|
-
default?: number;
|
|
2454
|
-
};
|
|
2455
|
-
export type FormBooleanField1 = {
|
|
2456
|
-
key: string;
|
|
2457
|
-
title?: string;
|
|
2458
|
-
description?: string;
|
|
2459
|
-
required?: boolean;
|
|
2460
|
-
hidden?: boolean;
|
|
2461
|
-
when?: Array<FormWhen1>;
|
|
2462
|
-
type: "boolean";
|
|
2463
|
-
default?: boolean;
|
|
2348
|
+
export type CommandUpdated = {
|
|
2349
|
+
id: EventID;
|
|
2350
|
+
created: number;
|
|
2351
|
+
metadata?: {
|
|
2352
|
+
[x: string]: any;
|
|
2353
|
+
};
|
|
2354
|
+
type: "command.updated";
|
|
2355
|
+
location?: LocationRef;
|
|
2356
|
+
data: {};
|
|
2464
2357
|
};
|
|
2465
|
-
export type
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
minItems?: number;
|
|
2475
|
-
maxItems?: number;
|
|
2476
|
-
custom?: boolean;
|
|
2477
|
-
default?: Array<string>;
|
|
2358
|
+
export type ConfigUpdated = {
|
|
2359
|
+
id: EventID;
|
|
2360
|
+
created: number;
|
|
2361
|
+
metadata?: {
|
|
2362
|
+
[x: string]: any;
|
|
2363
|
+
};
|
|
2364
|
+
type: "config.updated";
|
|
2365
|
+
location?: LocationRef;
|
|
2366
|
+
data: {};
|
|
2478
2367
|
};
|
|
2479
|
-
export type
|
|
2480
|
-
|
|
2368
|
+
export type SkillUpdated = {
|
|
2369
|
+
id: EventID;
|
|
2370
|
+
created: number;
|
|
2371
|
+
metadata?: {
|
|
2372
|
+
[x: string]: any;
|
|
2373
|
+
};
|
|
2374
|
+
type: "skill.updated";
|
|
2375
|
+
location?: LocationRef;
|
|
2376
|
+
data: {};
|
|
2481
2377
|
};
|
|
2482
|
-
export type
|
|
2483
|
-
id:
|
|
2378
|
+
export type PtyExited = {
|
|
2379
|
+
id: EventID;
|
|
2484
2380
|
created: number;
|
|
2485
2381
|
metadata?: {
|
|
2486
2382
|
[x: string]: any;
|
|
2487
2383
|
};
|
|
2488
|
-
type: "
|
|
2384
|
+
type: "pty.exited";
|
|
2489
2385
|
location?: LocationRef;
|
|
2490
2386
|
data: {
|
|
2491
|
-
|
|
2492
|
-
|
|
2387
|
+
id: PtyID;
|
|
2388
|
+
exitCode: number;
|
|
2493
2389
|
};
|
|
2494
2390
|
};
|
|
2495
|
-
export type
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
};
|
|
2501
|
-
export type SessionInboxMove = {
|
|
2502
|
-
id: string;
|
|
2503
|
-
sessionID: string;
|
|
2504
|
-
time: {
|
|
2505
|
-
created: number;
|
|
2391
|
+
export type PtyDeleted = {
|
|
2392
|
+
id: EventID;
|
|
2393
|
+
created: number;
|
|
2394
|
+
metadata?: {
|
|
2395
|
+
[x: string]: any;
|
|
2506
2396
|
};
|
|
2507
|
-
type: "
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
export type ModelVariant = {
|
|
2512
|
-
id: string;
|
|
2513
|
-
settings?: ModelSettings;
|
|
2514
|
-
headers?: {
|
|
2515
|
-
[x: string]: string;
|
|
2397
|
+
type: "pty.deleted";
|
|
2398
|
+
location?: LocationRef;
|
|
2399
|
+
data: {
|
|
2400
|
+
id: PtyID;
|
|
2516
2401
|
};
|
|
2517
|
-
|
|
2402
|
+
};
|
|
2403
|
+
export type PersistentPtyRemoved = {
|
|
2404
|
+
id: EventID;
|
|
2405
|
+
created: number;
|
|
2406
|
+
metadata?: {
|
|
2518
2407
|
[x: string]: any;
|
|
2519
2408
|
};
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2409
|
+
type: "persistent-pty.removed";
|
|
2410
|
+
location?: LocationRef;
|
|
2411
|
+
data: {
|
|
2412
|
+
sessionID: SessionID;
|
|
2413
|
+
ptyID: PtyID;
|
|
2525
2414
|
};
|
|
2526
|
-
|
|
2415
|
+
};
|
|
2416
|
+
export type ShellCreated = {
|
|
2417
|
+
id: EventID;
|
|
2418
|
+
created: number;
|
|
2419
|
+
metadata?: {
|
|
2527
2420
|
[x: string]: any;
|
|
2528
2421
|
};
|
|
2422
|
+
type: "shell.created";
|
|
2423
|
+
location?: LocationRef;
|
|
2424
|
+
data: {
|
|
2425
|
+
info: ShellInfo;
|
|
2426
|
+
};
|
|
2529
2427
|
};
|
|
2530
|
-
export type
|
|
2531
|
-
id:
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
activation: "auto" | "enabled" | "disabled";
|
|
2536
|
-
package: string;
|
|
2537
|
-
settings?: ProviderSettings;
|
|
2538
|
-
headers?: {
|
|
2539
|
-
[x: string]: string;
|
|
2428
|
+
export type ShellExited = {
|
|
2429
|
+
id: EventID;
|
|
2430
|
+
created: number;
|
|
2431
|
+
metadata?: {
|
|
2432
|
+
[x: string]: any;
|
|
2540
2433
|
};
|
|
2541
|
-
|
|
2434
|
+
type: "shell.exited";
|
|
2435
|
+
location?: LocationRef;
|
|
2436
|
+
data: {
|
|
2437
|
+
id: ShellID;
|
|
2438
|
+
exit?: number;
|
|
2439
|
+
status: "running" | "exited" | "timeout" | "killed";
|
|
2440
|
+
};
|
|
2441
|
+
};
|
|
2442
|
+
export type ShellDeleted = {
|
|
2443
|
+
id: EventID;
|
|
2444
|
+
created: number;
|
|
2445
|
+
metadata?: {
|
|
2542
2446
|
[x: string]: any;
|
|
2543
2447
|
};
|
|
2448
|
+
type: "shell.deleted";
|
|
2449
|
+
location?: LocationRef;
|
|
2450
|
+
data: {
|
|
2451
|
+
id: ShellID;
|
|
2452
|
+
};
|
|
2544
2453
|
};
|
|
2545
|
-
export type
|
|
2546
|
-
|
|
2547
|
-
id: string;
|
|
2454
|
+
export type FormCancelled = {
|
|
2455
|
+
id: EventID;
|
|
2548
2456
|
created: number;
|
|
2549
2457
|
metadata?: {
|
|
2550
2458
|
[x: string]: any;
|
|
2551
2459
|
};
|
|
2552
|
-
type: "
|
|
2553
|
-
durable: {
|
|
2554
|
-
aggregateID: string;
|
|
2555
|
-
seq: number;
|
|
2556
|
-
version: 1;
|
|
2557
|
-
};
|
|
2460
|
+
type: "form.cancelled";
|
|
2558
2461
|
location?: LocationRef;
|
|
2559
2462
|
data: {
|
|
2463
|
+
id: FormID;
|
|
2560
2464
|
sessionID: string;
|
|
2561
|
-
revert: SessionRevert;
|
|
2562
2465
|
};
|
|
2563
2466
|
};
|
|
2564
|
-
export type
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2467
|
+
export type WebsearchUpdated = {
|
|
2468
|
+
id: EventID;
|
|
2469
|
+
created: number;
|
|
2470
|
+
metadata?: {
|
|
2471
|
+
[x: string]: any;
|
|
2568
2472
|
};
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
steps: number;
|
|
2573
|
-
tokens: TokenUsageInfo;
|
|
2574
|
-
cost: MoneyUSD;
|
|
2575
|
-
tools: SessionStatsTools;
|
|
2576
|
-
activeDays: number;
|
|
2577
|
-
streak: number;
|
|
2578
|
-
activity: Array<SessionStatsActivity>;
|
|
2579
|
-
models: Array<SessionStatsModelUsage>;
|
|
2473
|
+
type: "websearch.updated";
|
|
2474
|
+
location?: LocationRef;
|
|
2475
|
+
data: {};
|
|
2580
2476
|
};
|
|
2581
|
-
export type
|
|
2582
|
-
id:
|
|
2477
|
+
export type SessionStatusUpdated = {
|
|
2478
|
+
id: EventID;
|
|
2479
|
+
created: number;
|
|
2583
2480
|
metadata?: {
|
|
2584
|
-
[x: string]:
|
|
2481
|
+
[x: string]: any;
|
|
2585
2482
|
};
|
|
2586
|
-
|
|
2587
|
-
|
|
2483
|
+
type: "session.status";
|
|
2484
|
+
location?: LocationRef;
|
|
2485
|
+
data: {
|
|
2486
|
+
sessionID: SessionID;
|
|
2487
|
+
status: SessionStatus;
|
|
2588
2488
|
};
|
|
2589
|
-
text: string;
|
|
2590
|
-
files?: Array<PromptFileAttachment>;
|
|
2591
|
-
agents?: Array<PromptAgentAttachment>;
|
|
2592
|
-
skills?: Array<PromptSkillAttachment>;
|
|
2593
|
-
type: "user";
|
|
2594
2489
|
};
|
|
2595
|
-
export type
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
agents?: Array<PromptAgentAttachment>;
|
|
2599
|
-
skills?: Array<PromptSkillAttachment>;
|
|
2490
|
+
export type SessionIdle = {
|
|
2491
|
+
id: EventID;
|
|
2492
|
+
created: number;
|
|
2600
2493
|
metadata?: {
|
|
2601
|
-
[x: string]:
|
|
2494
|
+
[x: string]: any;
|
|
2495
|
+
};
|
|
2496
|
+
type: "session.idle";
|
|
2497
|
+
location?: LocationRef;
|
|
2498
|
+
data: {
|
|
2499
|
+
sessionID: SessionID;
|
|
2602
2500
|
};
|
|
2603
2501
|
};
|
|
2604
|
-
export type
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
agents?: Array<PromptAgentAttachment>;
|
|
2608
|
-
skills?: Array<PromptSkillAttachment>;
|
|
2502
|
+
export type TuiPromptAppend = {
|
|
2503
|
+
id: EventID;
|
|
2504
|
+
created: number;
|
|
2609
2505
|
metadata?: {
|
|
2610
2506
|
[x: string]: any;
|
|
2611
2507
|
};
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
[x: string]: JsonValue;
|
|
2508
|
+
type: "tui.prompt.append";
|
|
2509
|
+
location?: LocationRef;
|
|
2510
|
+
data: {
|
|
2511
|
+
text: string;
|
|
2617
2512
|
};
|
|
2618
|
-
|
|
2513
|
+
};
|
|
2514
|
+
export type TuiCommandExecute = {
|
|
2515
|
+
id: EventID;
|
|
2516
|
+
created: number;
|
|
2619
2517
|
metadata?: {
|
|
2620
|
-
[x: string]:
|
|
2518
|
+
[x: string]: any;
|
|
2519
|
+
};
|
|
2520
|
+
type: "tui.command.execute";
|
|
2521
|
+
location?: LocationRef;
|
|
2522
|
+
data: {
|
|
2523
|
+
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 & {});
|
|
2621
2524
|
};
|
|
2622
2525
|
};
|
|
2623
|
-
export type
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2526
|
+
export type TuiToastShow = {
|
|
2527
|
+
id: EventID;
|
|
2528
|
+
created: number;
|
|
2529
|
+
metadata?: {
|
|
2530
|
+
[x: string]: any;
|
|
2627
2531
|
};
|
|
2628
|
-
|
|
2629
|
-
|
|
2532
|
+
type: "tui.toast.show";
|
|
2533
|
+
location?: LocationRef;
|
|
2534
|
+
data: {
|
|
2535
|
+
title?: string;
|
|
2536
|
+
message: string;
|
|
2537
|
+
variant: "info" | "success" | "warning" | "error";
|
|
2538
|
+
duration?: number | undefined;
|
|
2539
|
+
};
|
|
2540
|
+
};
|
|
2541
|
+
export type TuiSessionSelect = {
|
|
2542
|
+
id: EventID;
|
|
2543
|
+
created: number;
|
|
2630
2544
|
metadata?: {
|
|
2631
|
-
[x: string]:
|
|
2545
|
+
[x: string]: any;
|
|
2546
|
+
};
|
|
2547
|
+
type: "tui.session.select";
|
|
2548
|
+
location?: LocationRef;
|
|
2549
|
+
data: {
|
|
2550
|
+
sessionID: SessionID;
|
|
2632
2551
|
};
|
|
2633
2552
|
};
|
|
2634
|
-
export type
|
|
2635
|
-
|
|
2636
|
-
|
|
2553
|
+
export type InstallationUpdated = {
|
|
2554
|
+
id: EventID;
|
|
2555
|
+
created: number;
|
|
2637
2556
|
metadata?: {
|
|
2638
|
-
[x: string]:
|
|
2557
|
+
[x: string]: any;
|
|
2639
2558
|
};
|
|
2640
|
-
|
|
2641
|
-
|
|
2559
|
+
type: "installation.updated";
|
|
2560
|
+
location?: LocationRef;
|
|
2561
|
+
data: {
|
|
2562
|
+
version: string;
|
|
2642
2563
|
};
|
|
2643
|
-
status: "completed";
|
|
2644
|
-
reason: "auto" | "manual";
|
|
2645
|
-
model?: ModelRef;
|
|
2646
|
-
providerState?: SessionMessageProviderState;
|
|
2647
|
-
summary: string;
|
|
2648
|
-
recent: string;
|
|
2649
|
-
providerContext?: SessionProviderContext;
|
|
2650
|
-
cost?: MoneyUSD;
|
|
2651
|
-
tokens?: TokenUsageInfo;
|
|
2652
2564
|
};
|
|
2653
|
-
export type
|
|
2654
|
-
id:
|
|
2565
|
+
export type InstallationUpdateAvailable = {
|
|
2566
|
+
id: EventID;
|
|
2655
2567
|
created: number;
|
|
2656
2568
|
metadata?: {
|
|
2657
2569
|
[x: string]: any;
|
|
2658
2570
|
};
|
|
2659
|
-
type: "
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
version: 1;
|
|
2571
|
+
type: "installation.update-available";
|
|
2572
|
+
location?: LocationRef;
|
|
2573
|
+
data: {
|
|
2574
|
+
version: string;
|
|
2664
2575
|
};
|
|
2576
|
+
};
|
|
2577
|
+
export type VcsBranchUpdated = {
|
|
2578
|
+
id: EventID;
|
|
2579
|
+
created: number;
|
|
2580
|
+
metadata?: {
|
|
2581
|
+
[x: string]: any;
|
|
2582
|
+
};
|
|
2583
|
+
type: "vcs.branch.updated";
|
|
2665
2584
|
location?: LocationRef;
|
|
2666
2585
|
data: {
|
|
2667
|
-
|
|
2668
|
-
reason: "auto" | "manual";
|
|
2669
|
-
model?: ModelRef;
|
|
2670
|
-
providerState?: SessionMessageProviderState1;
|
|
2671
|
-
providerContext?: SessionProviderContext;
|
|
2672
|
-
text: string;
|
|
2673
|
-
recent: string;
|
|
2674
|
-
cost?: MoneyUSD;
|
|
2675
|
-
tokens?: TokenUsageInfo;
|
|
2586
|
+
branch?: string;
|
|
2676
2587
|
};
|
|
2677
2588
|
};
|
|
2678
|
-
export type
|
|
2679
|
-
id:
|
|
2589
|
+
export type McpStatusChanged = {
|
|
2590
|
+
id: EventID;
|
|
2680
2591
|
created: number;
|
|
2681
2592
|
metadata?: {
|
|
2682
2593
|
[x: string]: any;
|
|
2683
2594
|
};
|
|
2684
|
-
type: "
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2595
|
+
type: "mcp.status.changed";
|
|
2596
|
+
location?: LocationRef;
|
|
2597
|
+
data: {
|
|
2598
|
+
server: string;
|
|
2599
|
+
};
|
|
2600
|
+
};
|
|
2601
|
+
export type McpResourcesChanged = {
|
|
2602
|
+
id: EventID;
|
|
2603
|
+
created: number;
|
|
2604
|
+
metadata?: {
|
|
2605
|
+
[x: string]: any;
|
|
2689
2606
|
};
|
|
2607
|
+
type: "mcp.resources.changed";
|
|
2690
2608
|
location?: LocationRef;
|
|
2691
2609
|
data: {
|
|
2692
|
-
|
|
2693
|
-
parentID: string;
|
|
2694
|
-
boundary: SessionForkBoundary;
|
|
2695
|
-
instructions?: {
|
|
2696
|
-
[x: string]: string;
|
|
2697
|
-
};
|
|
2698
|
-
instructionEntries?: InstructionEntrySnapshot;
|
|
2610
|
+
server: string;
|
|
2699
2611
|
};
|
|
2700
2612
|
};
|
|
2701
2613
|
export type SessionToolSuccess = {
|
|
2702
|
-
id:
|
|
2614
|
+
id: EventID;
|
|
2703
2615
|
created: number;
|
|
2704
2616
|
metadata?: {
|
|
2705
2617
|
[x: string]: any;
|
|
@@ -2707,13 +2619,13 @@ export type SessionToolSuccess = {
|
|
|
2707
2619
|
type: "session.tool.success";
|
|
2708
2620
|
durable: {
|
|
2709
2621
|
aggregateID: string;
|
|
2710
|
-
seq:
|
|
2622
|
+
seq: EventSeq;
|
|
2711
2623
|
version: 2;
|
|
2712
2624
|
};
|
|
2713
2625
|
location?: LocationRef;
|
|
2714
2626
|
data: {
|
|
2715
|
-
sessionID:
|
|
2716
|
-
assistantMessageID:
|
|
2627
|
+
sessionID: SessionID;
|
|
2628
|
+
assistantMessageID: SessionMessageID;
|
|
2717
2629
|
id: string;
|
|
2718
2630
|
content: [ToolContent1, ...Array<ToolContent1>];
|
|
2719
2631
|
metadata?: {
|
|
@@ -2724,7 +2636,7 @@ export type SessionToolSuccess = {
|
|
|
2724
2636
|
};
|
|
2725
2637
|
};
|
|
2726
2638
|
export type SessionToolFailed = {
|
|
2727
|
-
id:
|
|
2639
|
+
id: EventID;
|
|
2728
2640
|
created: number;
|
|
2729
2641
|
metadata?: {
|
|
2730
2642
|
[x: string]: any;
|
|
@@ -2732,13 +2644,13 @@ export type SessionToolFailed = {
|
|
|
2732
2644
|
type: "session.tool.failed";
|
|
2733
2645
|
durable: {
|
|
2734
2646
|
aggregateID: string;
|
|
2735
|
-
seq:
|
|
2647
|
+
seq: EventSeq;
|
|
2736
2648
|
version: 2;
|
|
2737
2649
|
};
|
|
2738
2650
|
location?: LocationRef;
|
|
2739
2651
|
data: {
|
|
2740
|
-
sessionID:
|
|
2741
|
-
assistantMessageID:
|
|
2652
|
+
sessionID: SessionID;
|
|
2653
|
+
assistantMessageID: SessionMessageID;
|
|
2742
2654
|
id: string;
|
|
2743
2655
|
error: SessionStructuredError;
|
|
2744
2656
|
content?: [ToolContent1, ...Array<ToolContent1>];
|
|
@@ -2767,31 +2679,93 @@ export type SessionMessageToolStateError1 = {
|
|
|
2767
2679
|
error: SessionStructuredError;
|
|
2768
2680
|
content?: [ToolContent1, ...Array<ToolContent1>];
|
|
2769
2681
|
metadata?: {
|
|
2770
|
-
[x: string]: JsonValue;
|
|
2682
|
+
[x: string]: JsonValue;
|
|
2683
|
+
};
|
|
2684
|
+
};
|
|
2685
|
+
export type FormField = FormStringField | FormNumberField | FormIntegerField | FormBooleanField | FormMultiselectField | FormExternalField;
|
|
2686
|
+
export type FormState = {
|
|
2687
|
+
status: "pending";
|
|
2688
|
+
} | {
|
|
2689
|
+
status: "answered";
|
|
2690
|
+
answer: FormAnswer;
|
|
2691
|
+
} | {
|
|
2692
|
+
status: "cancelled";
|
|
2693
|
+
message?: string;
|
|
2694
|
+
};
|
|
2695
|
+
export type CredentialKey = {
|
|
2696
|
+
type: "key";
|
|
2697
|
+
key: string;
|
|
2698
|
+
metadata?: {
|
|
2699
|
+
[x: string]: JsonValue;
|
|
2700
|
+
};
|
|
2701
|
+
configuration?: FormAnswer;
|
|
2702
|
+
};
|
|
2703
|
+
export type ProviderInfo = {
|
|
2704
|
+
id: ProviderID;
|
|
2705
|
+
canonical?: ProviderID;
|
|
2706
|
+
integrationID?: IntegrationID;
|
|
2707
|
+
name: string;
|
|
2708
|
+
activation: "auto" | "enabled" | "disabled";
|
|
2709
|
+
package: string;
|
|
2710
|
+
compatibility?: ProviderCompatibility;
|
|
2711
|
+
settings?: ProviderSettings;
|
|
2712
|
+
headers?: {
|
|
2713
|
+
[x: string]: string;
|
|
2714
|
+
};
|
|
2715
|
+
body?: {
|
|
2716
|
+
[x: string]: any;
|
|
2717
|
+
};
|
|
2718
|
+
};
|
|
2719
|
+
export type ConnectionInfo = ConnectionCredentialInfo | ConnectionEnvInfo;
|
|
2720
|
+
export type PtyCreated = {
|
|
2721
|
+
id: EventID;
|
|
2722
|
+
created: number;
|
|
2723
|
+
metadata?: {
|
|
2724
|
+
[x: string]: any;
|
|
2725
|
+
};
|
|
2726
|
+
type: "pty.created";
|
|
2727
|
+
location?: LocationRef;
|
|
2728
|
+
data: {
|
|
2729
|
+
info: Pty;
|
|
2730
|
+
};
|
|
2731
|
+
};
|
|
2732
|
+
export type PtyUpdated = {
|
|
2733
|
+
id: EventID;
|
|
2734
|
+
created: number;
|
|
2735
|
+
metadata?: {
|
|
2736
|
+
[x: string]: any;
|
|
2737
|
+
};
|
|
2738
|
+
type: "pty.updated";
|
|
2739
|
+
location?: LocationRef;
|
|
2740
|
+
data: {
|
|
2741
|
+
info: Pty;
|
|
2742
|
+
};
|
|
2743
|
+
};
|
|
2744
|
+
export type PersistentPtyAdded = {
|
|
2745
|
+
id: EventID;
|
|
2746
|
+
created: number;
|
|
2747
|
+
metadata?: {
|
|
2748
|
+
[x: string]: any;
|
|
2749
|
+
};
|
|
2750
|
+
type: "persistent-pty.added";
|
|
2751
|
+
location?: LocationRef;
|
|
2752
|
+
data: {
|
|
2753
|
+
sessionID: SessionID;
|
|
2754
|
+
terminal: PersistentPtyInfo;
|
|
2771
2755
|
};
|
|
2772
2756
|
};
|
|
2773
|
-
export type
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
status: "cancelled";
|
|
2781
|
-
message?: string;
|
|
2782
|
-
};
|
|
2783
|
-
export type CredentialKey = {
|
|
2784
|
-
type: "key";
|
|
2785
|
-
key: string;
|
|
2786
|
-
metadata?: {
|
|
2787
|
-
[x: string]: JsonValue;
|
|
2757
|
+
export type PersistentPtySnapshot = {
|
|
2758
|
+
info: PersistentPtyInfo;
|
|
2759
|
+
text: string;
|
|
2760
|
+
checkpoint: string;
|
|
2761
|
+
cursor: {
|
|
2762
|
+
x: number;
|
|
2763
|
+
y: number;
|
|
2788
2764
|
};
|
|
2789
|
-
configuration?: FormAnswer;
|
|
2790
2765
|
};
|
|
2791
|
-
export type ConnectionInfo = ConnectionCredentialInfo | ConnectionEnvInfo;
|
|
2792
2766
|
export type FormField1 = FormStringField1 | FormNumberField1 | FormIntegerField1 | FormBooleanField1 | FormMultiselectField1 | FormExternalField;
|
|
2793
2767
|
export type FormReplied = {
|
|
2794
|
-
id:
|
|
2768
|
+
id: EventID;
|
|
2795
2769
|
created: number;
|
|
2796
2770
|
metadata?: {
|
|
2797
2771
|
[x: string]: any;
|
|
@@ -2799,23 +2773,94 @@ export type FormReplied = {
|
|
|
2799
2773
|
type: "form.replied";
|
|
2800
2774
|
location?: LocationRef;
|
|
2801
2775
|
data: {
|
|
2802
|
-
id:
|
|
2776
|
+
id: FormID;
|
|
2803
2777
|
sessionID: string;
|
|
2804
2778
|
answer: FormAnswer2;
|
|
2805
2779
|
};
|
|
2806
2780
|
};
|
|
2781
|
+
export type SessionInboxMove = {
|
|
2782
|
+
id: SessionMessageID;
|
|
2783
|
+
sessionID: SessionID;
|
|
2784
|
+
time: {
|
|
2785
|
+
created: number;
|
|
2786
|
+
};
|
|
2787
|
+
type: "move";
|
|
2788
|
+
delivery: SessionInboxDelivery;
|
|
2789
|
+
payload: SessionInboxMovePayload;
|
|
2790
|
+
};
|
|
2807
2791
|
export type ReferenceInfo = {
|
|
2808
2792
|
name: string;
|
|
2809
|
-
path:
|
|
2793
|
+
path: AbsolutePath;
|
|
2810
2794
|
description?: string;
|
|
2811
2795
|
hidden?: boolean;
|
|
2812
2796
|
source: ReferenceSource;
|
|
2813
2797
|
};
|
|
2798
|
+
export type SessionStatsInfo = {
|
|
2799
|
+
range: {
|
|
2800
|
+
from: number;
|
|
2801
|
+
to: number;
|
|
2802
|
+
};
|
|
2803
|
+
sessions: number;
|
|
2804
|
+
subagents: number;
|
|
2805
|
+
prompts: number;
|
|
2806
|
+
steps: number;
|
|
2807
|
+
tokens: TokenUsageInfo;
|
|
2808
|
+
cost: MoneyUSD;
|
|
2809
|
+
tools: SessionStatsTools;
|
|
2810
|
+
activeDays: number;
|
|
2811
|
+
streak: number;
|
|
2812
|
+
activity: Array<SessionStatsActivity>;
|
|
2813
|
+
models: Array<SessionStatsModelUsage>;
|
|
2814
|
+
};
|
|
2815
|
+
export type SessionMessageCompactionCompleted = {
|
|
2816
|
+
type: "compaction";
|
|
2817
|
+
id: SessionMessageID;
|
|
2818
|
+
metadata?: {
|
|
2819
|
+
[x: string]: JsonValue;
|
|
2820
|
+
};
|
|
2821
|
+
time: {
|
|
2822
|
+
created: number;
|
|
2823
|
+
};
|
|
2824
|
+
status: "completed";
|
|
2825
|
+
reason: "auto" | "manual";
|
|
2826
|
+
model?: ModelRef;
|
|
2827
|
+
providerState?: SessionMessageProviderState;
|
|
2828
|
+
summary: string;
|
|
2829
|
+
recent: string;
|
|
2830
|
+
providerContext?: SessionProviderContext;
|
|
2831
|
+
cost?: MoneyUSD;
|
|
2832
|
+
tokens?: TokenUsageInfo;
|
|
2833
|
+
};
|
|
2834
|
+
export type SessionCompactionEnded = {
|
|
2835
|
+
id: EventID;
|
|
2836
|
+
created: number;
|
|
2837
|
+
metadata?: {
|
|
2838
|
+
[x: string]: any;
|
|
2839
|
+
};
|
|
2840
|
+
type: "session.compaction.ended";
|
|
2841
|
+
durable: {
|
|
2842
|
+
aggregateID: string;
|
|
2843
|
+
seq: EventSeq;
|
|
2844
|
+
version: 1;
|
|
2845
|
+
};
|
|
2846
|
+
location?: LocationRef;
|
|
2847
|
+
data: {
|
|
2848
|
+
sessionID: SessionID;
|
|
2849
|
+
reason: "auto" | "manual";
|
|
2850
|
+
model?: ModelRef;
|
|
2851
|
+
providerState?: SessionMessageProviderState1;
|
|
2852
|
+
providerContext?: SessionProviderContext;
|
|
2853
|
+
text: string;
|
|
2854
|
+
recent: string;
|
|
2855
|
+
cost?: MoneyUSD;
|
|
2856
|
+
tokens?: TokenUsageInfo;
|
|
2857
|
+
};
|
|
2858
|
+
};
|
|
2814
2859
|
export type ModelInfo = {
|
|
2815
2860
|
id: string;
|
|
2816
2861
|
modelID: string;
|
|
2817
|
-
providerID:
|
|
2818
|
-
canonical?:
|
|
2862
|
+
providerID: ProviderID;
|
|
2863
|
+
canonical?: ProviderID;
|
|
2819
2864
|
family?: string;
|
|
2820
2865
|
name: string;
|
|
2821
2866
|
compatibility?: ModelCompatibility;
|
|
@@ -2842,7 +2887,7 @@ export type ModelInfo = {
|
|
|
2842
2887
|
};
|
|
2843
2888
|
};
|
|
2844
2889
|
export type AgentInfo = {
|
|
2845
|
-
id:
|
|
2890
|
+
id: AgentID;
|
|
2846
2891
|
name: string;
|
|
2847
2892
|
model?: ModelRef;
|
|
2848
2893
|
request: ProviderRequest;
|
|
@@ -2854,33 +2899,15 @@ export type AgentInfo = {
|
|
|
2854
2899
|
steps?: number;
|
|
2855
2900
|
permissions: PermissionRuleset;
|
|
2856
2901
|
};
|
|
2857
|
-
export type SessionPermissions = {
|
|
2858
|
-
id: string;
|
|
2859
|
-
created: number;
|
|
2860
|
-
metadata?: {
|
|
2861
|
-
[x: string]: any;
|
|
2862
|
-
};
|
|
2863
|
-
type: "session.permissions";
|
|
2864
|
-
durable: {
|
|
2865
|
-
aggregateID: string;
|
|
2866
|
-
seq: number;
|
|
2867
|
-
version: 1;
|
|
2868
|
-
};
|
|
2869
|
-
location?: LocationRef;
|
|
2870
|
-
data: {
|
|
2871
|
-
sessionID: string;
|
|
2872
|
-
permissions: PermissionRuleset;
|
|
2873
|
-
};
|
|
2874
|
-
};
|
|
2875
2902
|
export type SessionInfo = {
|
|
2876
|
-
id:
|
|
2877
|
-
parentID?:
|
|
2903
|
+
id: SessionID;
|
|
2904
|
+
parentID?: SessionID;
|
|
2878
2905
|
fork?: {
|
|
2879
|
-
sessionID:
|
|
2906
|
+
sessionID: SessionID;
|
|
2880
2907
|
boundary: SessionForkBoundary;
|
|
2881
2908
|
};
|
|
2882
|
-
projectID:
|
|
2883
|
-
agent?:
|
|
2909
|
+
projectID: ProjectID;
|
|
2910
|
+
agent?: AgentID;
|
|
2884
2911
|
model?: ModelRef;
|
|
2885
2912
|
cost: MoneyUSD;
|
|
2886
2913
|
tokens: TokenUsageInfo;
|
|
@@ -2893,14 +2920,14 @@ export type SessionInfo = {
|
|
|
2893
2920
|
archived?: number;
|
|
2894
2921
|
};
|
|
2895
2922
|
title?: string;
|
|
2896
|
-
subpath?:
|
|
2923
|
+
subpath?: RelativePath;
|
|
2897
2924
|
metadata?: SessionMetadata;
|
|
2898
2925
|
permissions?: PermissionRuleset;
|
|
2899
2926
|
revert?: SessionRevert;
|
|
2900
2927
|
location: LocationPublicRef;
|
|
2901
2928
|
};
|
|
2902
2929
|
export type SessionCreated = {
|
|
2903
|
-
id:
|
|
2930
|
+
id: EventID;
|
|
2904
2931
|
created: number;
|
|
2905
2932
|
metadata?: {
|
|
2906
2933
|
[x: string]: any;
|
|
@@ -2908,28 +2935,46 @@ export type SessionCreated = {
|
|
|
2908
2935
|
type: "session.created";
|
|
2909
2936
|
durable: {
|
|
2910
2937
|
aggregateID: string;
|
|
2911
|
-
seq:
|
|
2938
|
+
seq: EventSeq;
|
|
2912
2939
|
version: 1;
|
|
2913
2940
|
};
|
|
2914
2941
|
location?: LocationRef;
|
|
2915
2942
|
data: {
|
|
2916
|
-
sessionID:
|
|
2917
|
-
projectID:
|
|
2943
|
+
sessionID: SessionID;
|
|
2944
|
+
projectID: ProjectID;
|
|
2918
2945
|
location: LocationRef;
|
|
2919
|
-
subpath?:
|
|
2920
|
-
parentID?:
|
|
2946
|
+
subpath?: RelativePath;
|
|
2947
|
+
parentID?: SessionID;
|
|
2921
2948
|
slug: string;
|
|
2922
2949
|
title?: string;
|
|
2923
|
-
agent?:
|
|
2950
|
+
agent?: AgentID;
|
|
2924
2951
|
model?: ModelRef;
|
|
2925
2952
|
metadata?: SessionMetadata;
|
|
2926
2953
|
permissions?: PermissionRuleset;
|
|
2927
2954
|
version: string;
|
|
2928
2955
|
};
|
|
2929
2956
|
};
|
|
2957
|
+
export type SessionPermissions = {
|
|
2958
|
+
id: EventID;
|
|
2959
|
+
created: number;
|
|
2960
|
+
metadata?: {
|
|
2961
|
+
[x: string]: any;
|
|
2962
|
+
};
|
|
2963
|
+
type: "session.permissions";
|
|
2964
|
+
durable: {
|
|
2965
|
+
aggregateID: string;
|
|
2966
|
+
seq: EventSeq;
|
|
2967
|
+
version: 1;
|
|
2968
|
+
};
|
|
2969
|
+
location?: LocationRef;
|
|
2970
|
+
data: {
|
|
2971
|
+
sessionID: SessionID;
|
|
2972
|
+
permissions: PermissionRuleset;
|
|
2973
|
+
};
|
|
2974
|
+
};
|
|
2930
2975
|
export type ConfigEntry = {
|
|
2931
2976
|
type: "document";
|
|
2932
|
-
path?:
|
|
2977
|
+
path?: AbsolutePath;
|
|
2933
2978
|
info: {
|
|
2934
2979
|
$schema?: string;
|
|
2935
2980
|
shell?: string;
|
|
@@ -3095,7 +3140,7 @@ export type ConfigEntry = {
|
|
|
3095
3140
|
};
|
|
3096
3141
|
};
|
|
3097
3142
|
websearch?: false | {
|
|
3098
|
-
provider: "random" |
|
|
3143
|
+
provider: "random" | WebSearchID;
|
|
3099
3144
|
};
|
|
3100
3145
|
plugins?: Array<string | {
|
|
3101
3146
|
package: string;
|
|
@@ -3111,10 +3156,11 @@ export type ConfigEntry = {
|
|
|
3111
3156
|
};
|
|
3112
3157
|
providers?: {
|
|
3113
3158
|
[x: string]: {
|
|
3114
|
-
canonical?:
|
|
3159
|
+
canonical?: ProviderID;
|
|
3115
3160
|
name?: string;
|
|
3116
3161
|
env?: Array<string>;
|
|
3117
3162
|
package?: string;
|
|
3163
|
+
compatibility?: ProviderCompatibility;
|
|
3118
3164
|
settings?: ConfigProviderSettings;
|
|
3119
3165
|
headers?: {
|
|
3120
3166
|
[x: string]: string;
|
|
@@ -3193,11 +3239,11 @@ export type ConfigEntry = {
|
|
|
3193
3239
|
};
|
|
3194
3240
|
} | {
|
|
3195
3241
|
type: "directory";
|
|
3196
|
-
path:
|
|
3242
|
+
path: AbsolutePath;
|
|
3197
3243
|
};
|
|
3198
3244
|
export type SessionInboxUser = {
|
|
3199
|
-
id:
|
|
3200
|
-
sessionID:
|
|
3245
|
+
id: SessionMessageID;
|
|
3246
|
+
sessionID: SessionID;
|
|
3201
3247
|
time: {
|
|
3202
3248
|
created: number;
|
|
3203
3249
|
};
|
|
@@ -3205,6 +3251,20 @@ export type SessionInboxUser = {
|
|
|
3205
3251
|
payload: SessionInboxUserPayload;
|
|
3206
3252
|
delivery: SessionInboxDelivery;
|
|
3207
3253
|
};
|
|
3254
|
+
export type SessionMessageAssistantTool = {
|
|
3255
|
+
type: "tool";
|
|
3256
|
+
id: string;
|
|
3257
|
+
name: string;
|
|
3258
|
+
executed?: boolean;
|
|
3259
|
+
providerState?: SessionMessageProviderState;
|
|
3260
|
+
providerResultState?: SessionMessageProviderState;
|
|
3261
|
+
state: SessionMessageToolStateStreaming | SessionMessageToolStateRunning | SessionMessageToolStateCompleted | SessionMessageToolStateError;
|
|
3262
|
+
time: {
|
|
3263
|
+
created: number;
|
|
3264
|
+
ran?: number;
|
|
3265
|
+
completed?: number;
|
|
3266
|
+
};
|
|
3267
|
+
};
|
|
3208
3268
|
export type SessionInboxItem = {
|
|
3209
3269
|
type: "user";
|
|
3210
3270
|
payload: SessionInboxUserPayload1;
|
|
@@ -3222,21 +3282,6 @@ export type SessionInboxItem = {
|
|
|
3222
3282
|
payload: SessionInboxMovePayload1;
|
|
3223
3283
|
delivery: SessionInboxDelivery;
|
|
3224
3284
|
};
|
|
3225
|
-
export type SessionMessageAssistantTool = {
|
|
3226
|
-
type: "tool";
|
|
3227
|
-
id: string;
|
|
3228
|
-
name: string;
|
|
3229
|
-
executed?: boolean;
|
|
3230
|
-
providerState?: SessionMessageProviderState;
|
|
3231
|
-
providerResultState?: SessionMessageProviderState;
|
|
3232
|
-
state: SessionMessageToolStateStreaming | SessionMessageToolStateRunning | SessionMessageToolStateCompleted | SessionMessageToolStateError;
|
|
3233
|
-
time: {
|
|
3234
|
-
created: number;
|
|
3235
|
-
ran?: number;
|
|
3236
|
-
completed?: number;
|
|
3237
|
-
};
|
|
3238
|
-
};
|
|
3239
|
-
export type SessionMessageCompaction = SessionMessageCompactionRunning | SessionMessageCompactionCompleted | SessionMessageCompactionFailed;
|
|
3240
3285
|
export type SessionMessageAssistantTool1 = {
|
|
3241
3286
|
type: "tool";
|
|
3242
3287
|
id: string;
|
|
@@ -3254,35 +3299,17 @@ export type SessionMessageAssistantTool1 = {
|
|
|
3254
3299
|
export type FormFields = [FormField, ...Array<FormField>];
|
|
3255
3300
|
export type CredentialValue = CredentialOAuth | CredentialKey | CredentialExternal;
|
|
3256
3301
|
export type FormFields2 = [FormField1, ...Array<FormField1>];
|
|
3302
|
+
export type SessionMessageCompaction = SessionMessageCompactionRunning | SessionMessageCompactionCompleted | SessionMessageCompactionFailed;
|
|
3257
3303
|
export type SessionsResponse = {
|
|
3258
3304
|
data: Array<SessionInfo>;
|
|
3259
3305
|
cursor: {
|
|
3260
|
-
previous?:
|
|
3261
|
-
next?:
|
|
3306
|
+
previous?: SessionsCursor | null;
|
|
3307
|
+
next?: SessionsCursor | null;
|
|
3262
3308
|
};
|
|
3263
3309
|
};
|
|
3264
3310
|
export type SessionInboxInfo = SessionInboxUser | SessionInboxSynthetic | SessionInboxCompaction | SessionInboxMove;
|
|
3265
|
-
export type SessionInboxEnqueued = {
|
|
3266
|
-
id: string;
|
|
3267
|
-
created: number;
|
|
3268
|
-
metadata?: {
|
|
3269
|
-
[x: string]: any;
|
|
3270
|
-
};
|
|
3271
|
-
type: "session.inbox.enqueued";
|
|
3272
|
-
durable: {
|
|
3273
|
-
aggregateID: string;
|
|
3274
|
-
seq: number;
|
|
3275
|
-
version: 1;
|
|
3276
|
-
};
|
|
3277
|
-
location?: LocationRef;
|
|
3278
|
-
data: {
|
|
3279
|
-
sessionID: string;
|
|
3280
|
-
inboxID: string;
|
|
3281
|
-
item: SessionInboxItem;
|
|
3282
|
-
};
|
|
3283
|
-
};
|
|
3284
3311
|
export type SessionMessageAssistant = {
|
|
3285
|
-
id:
|
|
3312
|
+
id: SessionMessageID;
|
|
3286
3313
|
metadata?: {
|
|
3287
3314
|
[x: string]: JsonValue;
|
|
3288
3315
|
};
|
|
@@ -3292,13 +3319,13 @@ export type SessionMessageAssistant = {
|
|
|
3292
3319
|
completed?: number;
|
|
3293
3320
|
};
|
|
3294
3321
|
type: "assistant";
|
|
3295
|
-
agent:
|
|
3322
|
+
agent: AgentID;
|
|
3296
3323
|
model: ModelRef;
|
|
3297
3324
|
content: Array<SessionMessageAssistantText | SessionMessageAssistantReasoning | SessionMessageAssistantTool>;
|
|
3298
3325
|
snapshot?: {
|
|
3299
|
-
start?:
|
|
3300
|
-
end?:
|
|
3301
|
-
files?: Array<
|
|
3326
|
+
start?: SnapshotID;
|
|
3327
|
+
end?: SnapshotID;
|
|
3328
|
+
files?: Array<RelativePath>;
|
|
3302
3329
|
};
|
|
3303
3330
|
finish?: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
|
|
3304
3331
|
rawFinish?: string;
|
|
@@ -3308,16 +3335,35 @@ export type SessionMessageAssistant = {
|
|
|
3308
3335
|
error?: SessionStructuredError;
|
|
3309
3336
|
retry?: SessionMessageAssistantRetry;
|
|
3310
3337
|
};
|
|
3338
|
+
export type SessionInboxEnqueued = {
|
|
3339
|
+
id: EventID;
|
|
3340
|
+
created: number;
|
|
3341
|
+
metadata?: {
|
|
3342
|
+
[x: string]: any;
|
|
3343
|
+
};
|
|
3344
|
+
type: "session.inbox.enqueued";
|
|
3345
|
+
durable: {
|
|
3346
|
+
aggregateID: string;
|
|
3347
|
+
seq: EventSeq;
|
|
3348
|
+
version: 1;
|
|
3349
|
+
};
|
|
3350
|
+
location?: LocationRef;
|
|
3351
|
+
data: {
|
|
3352
|
+
sessionID: SessionID;
|
|
3353
|
+
inboxID: SessionMessageID;
|
|
3354
|
+
item: SessionInboxItem;
|
|
3355
|
+
};
|
|
3356
|
+
};
|
|
3311
3357
|
export type SessionMessageAssistantContentEncoded = SessionMessageAssistantText1 | SessionMessageAssistantReasoning1 | SessionMessageAssistantTool1;
|
|
3312
3358
|
export type FormInfo = {
|
|
3313
|
-
id:
|
|
3359
|
+
id: FormID;
|
|
3314
3360
|
sessionID: string;
|
|
3315
3361
|
title: string;
|
|
3316
3362
|
metadata?: FormMetadata;
|
|
3317
3363
|
fields: FormFields;
|
|
3318
3364
|
};
|
|
3319
3365
|
export type FormDetail = {
|
|
3320
|
-
id:
|
|
3366
|
+
id: FormID;
|
|
3321
3367
|
sessionID: string;
|
|
3322
3368
|
title: string;
|
|
3323
3369
|
metadata?: FormMetadata;
|
|
@@ -3325,7 +3371,7 @@ export type FormDetail = {
|
|
|
3325
3371
|
state: FormState;
|
|
3326
3372
|
};
|
|
3327
3373
|
export type IntegrationOAuthMethod = {
|
|
3328
|
-
id:
|
|
3374
|
+
id: IntegrationMethodID;
|
|
3329
3375
|
type: "oauth";
|
|
3330
3376
|
label: string;
|
|
3331
3377
|
form?: FormFields;
|
|
@@ -3336,20 +3382,20 @@ export type IntegrationKeyMethod = {
|
|
|
3336
3382
|
form?: FormFields;
|
|
3337
3383
|
};
|
|
3338
3384
|
export type IntegrationExternalMethod = {
|
|
3339
|
-
id:
|
|
3385
|
+
id: IntegrationMethodID;
|
|
3340
3386
|
type: "external";
|
|
3341
3387
|
label: string;
|
|
3342
3388
|
form?: FormFields;
|
|
3343
3389
|
};
|
|
3344
3390
|
export type CredentialEntry = {
|
|
3345
|
-
id:
|
|
3346
|
-
integrationID:
|
|
3391
|
+
id: CredentialID;
|
|
3392
|
+
integrationID: IntegrationID;
|
|
3347
3393
|
label: string;
|
|
3348
3394
|
active: boolean;
|
|
3349
3395
|
value: CredentialValue;
|
|
3350
3396
|
};
|
|
3351
3397
|
export type FormInfo1 = {
|
|
3352
|
-
id:
|
|
3398
|
+
id: FormID;
|
|
3353
3399
|
sessionID: string;
|
|
3354
3400
|
title: string;
|
|
3355
3401
|
metadata?: FormMetadata1;
|
|
@@ -3357,7 +3403,7 @@ export type FormInfo1 = {
|
|
|
3357
3403
|
};
|
|
3358
3404
|
export type SessionMessageInfo = SessionMessageAgentSelected | SessionMessageModelSelected | SessionMessageLocationSwitched | SessionMessageUser | SessionMessageSynthetic | SessionMessageSystem | SessionMessageSkill | SessionMessageShell | SessionMessageAssistant | SessionMessageCompaction | SessionMessageIdle;
|
|
3359
3405
|
export type SessionMessageContentUpdated = {
|
|
3360
|
-
id:
|
|
3406
|
+
id: EventID;
|
|
3361
3407
|
created: number;
|
|
3362
3408
|
metadata?: {
|
|
3363
3409
|
[x: string]: any;
|
|
@@ -3365,19 +3411,19 @@ export type SessionMessageContentUpdated = {
|
|
|
3365
3411
|
type: "session.message.content.updated";
|
|
3366
3412
|
durable: {
|
|
3367
3413
|
aggregateID: string;
|
|
3368
|
-
seq:
|
|
3414
|
+
seq: EventSeq;
|
|
3369
3415
|
version: 1;
|
|
3370
3416
|
};
|
|
3371
3417
|
location?: LocationRef;
|
|
3372
3418
|
data: {
|
|
3373
|
-
sessionID:
|
|
3374
|
-
messageID:
|
|
3419
|
+
sessionID: SessionID;
|
|
3420
|
+
messageID: SessionMessageID;
|
|
3375
3421
|
content: Array<SessionMessageAssistantContentEncoded>;
|
|
3376
3422
|
};
|
|
3377
3423
|
};
|
|
3378
3424
|
export type IntegrationMethod = IntegrationOAuthMethod | IntegrationCommandMethod | IntegrationKeyMethod | IntegrationExternalMethod | IntegrationEnvMethod;
|
|
3379
3425
|
export type FormCreated = {
|
|
3380
|
-
id:
|
|
3426
|
+
id: EventID;
|
|
3381
3427
|
created: number;
|
|
3382
3428
|
metadata?: {
|
|
3383
3429
|
[x: string]: any;
|
|
@@ -3401,7 +3447,7 @@ export type SessionMessagesResponse = {
|
|
|
3401
3447
|
};
|
|
3402
3448
|
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 | SessionToolSubagentPrepared | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | SessionUsageRecorded | SessionMessageContentUpdated;
|
|
3403
3449
|
export type IntegrationInfo = {
|
|
3404
|
-
id:
|
|
3450
|
+
id: IntegrationID;
|
|
3405
3451
|
name: string;
|
|
3406
3452
|
metadata?: {
|
|
3407
3453
|
[x: string]: any;
|
|
@@ -4477,6 +4523,14 @@ export type SessionImportInput = {
|
|
|
4477
4523
|
};
|
|
4478
4524
|
readonly type: "idle";
|
|
4479
4525
|
readonly outcome: "succeeded" | "failed" | "interrupted";
|
|
4526
|
+
readonly error?: {
|
|
4527
|
+
readonly type: string;
|
|
4528
|
+
readonly message: string;
|
|
4529
|
+
readonly status?: number;
|
|
4530
|
+
readonly response?: {
|
|
4531
|
+
readonly body: string;
|
|
4532
|
+
};
|
|
4533
|
+
};
|
|
4480
4534
|
}>;
|
|
4481
4535
|
readonly location?: {
|
|
4482
4536
|
readonly directory: string;
|
|
@@ -4958,6 +5012,14 @@ export type SessionImportInput = {
|
|
|
4958
5012
|
};
|
|
4959
5013
|
readonly type: "idle";
|
|
4960
5014
|
readonly outcome: "succeeded" | "failed" | "interrupted";
|
|
5015
|
+
readonly error?: {
|
|
5016
|
+
readonly type: string;
|
|
5017
|
+
readonly message: string;
|
|
5018
|
+
readonly status?: number;
|
|
5019
|
+
readonly response?: {
|
|
5020
|
+
readonly body: string;
|
|
5021
|
+
};
|
|
5022
|
+
};
|
|
4961
5023
|
}>;
|
|
4962
5024
|
readonly location?: {
|
|
4963
5025
|
readonly directory: string;
|
|
@@ -5439,6 +5501,14 @@ export type SessionImportInput = {
|
|
|
5439
5501
|
};
|
|
5440
5502
|
readonly type: "idle";
|
|
5441
5503
|
readonly outcome: "succeeded" | "failed" | "interrupted";
|
|
5504
|
+
readonly error?: {
|
|
5505
|
+
readonly type: string;
|
|
5506
|
+
readonly message: string;
|
|
5507
|
+
readonly status?: number;
|
|
5508
|
+
readonly response?: {
|
|
5509
|
+
readonly body: string;
|
|
5510
|
+
};
|
|
5511
|
+
};
|
|
5442
5512
|
}>;
|
|
5443
5513
|
readonly location?: {
|
|
5444
5514
|
readonly directory: string;
|
|
@@ -5461,7 +5531,7 @@ export type SessionExportOutput = {
|
|
|
5461
5531
|
}["data"];
|
|
5462
5532
|
export type SessionActiveOutput = {
|
|
5463
5533
|
data: {
|
|
5464
|
-
[x:
|
|
5534
|
+
[x: SessionID]: SessionActive;
|
|
5465
5535
|
};
|
|
5466
5536
|
}["data"];
|
|
5467
5537
|
export type SessionGetInput = {
|
|
@@ -5568,7 +5638,7 @@ export type SessionPromptInput = {
|
|
|
5568
5638
|
readonly sessionID: {
|
|
5569
5639
|
readonly sessionID: string;
|
|
5570
5640
|
}["sessionID"];
|
|
5571
|
-
readonly id?: {
|
|
5641
|
+
readonly id?: ({
|
|
5572
5642
|
readonly id?: string | null;
|
|
5573
5643
|
readonly text: string;
|
|
5574
5644
|
readonly files?: ReadonlyArray<{
|
|
@@ -5602,8 +5672,10 @@ export type SessionPromptInput = {
|
|
|
5602
5672
|
};
|
|
5603
5673
|
readonly delivery?: ("steer" | "queue") | null;
|
|
5604
5674
|
readonly resume?: boolean | null;
|
|
5605
|
-
}
|
|
5606
|
-
|
|
5675
|
+
} & {
|
|
5676
|
+
readonly [x: string]: JsonValue | null;
|
|
5677
|
+
})["id"];
|
|
5678
|
+
readonly text: ({
|
|
5607
5679
|
readonly id?: string | null;
|
|
5608
5680
|
readonly text: string;
|
|
5609
5681
|
readonly files?: ReadonlyArray<{
|
|
@@ -5637,8 +5709,10 @@ export type SessionPromptInput = {
|
|
|
5637
5709
|
};
|
|
5638
5710
|
readonly delivery?: ("steer" | "queue") | null;
|
|
5639
5711
|
readonly resume?: boolean | null;
|
|
5640
|
-
}
|
|
5641
|
-
|
|
5712
|
+
} & {
|
|
5713
|
+
readonly [x: string]: JsonValue | null;
|
|
5714
|
+
})["text"];
|
|
5715
|
+
readonly files?: ({
|
|
5642
5716
|
readonly id?: string | null;
|
|
5643
5717
|
readonly text: string;
|
|
5644
5718
|
readonly files?: ReadonlyArray<{
|
|
@@ -5672,8 +5746,10 @@ export type SessionPromptInput = {
|
|
|
5672
5746
|
};
|
|
5673
5747
|
readonly delivery?: ("steer" | "queue") | null;
|
|
5674
5748
|
readonly resume?: boolean | null;
|
|
5675
|
-
}
|
|
5676
|
-
|
|
5749
|
+
} & {
|
|
5750
|
+
readonly [x: string]: JsonValue | null;
|
|
5751
|
+
})["files"];
|
|
5752
|
+
readonly agents?: ({
|
|
5677
5753
|
readonly id?: string | null;
|
|
5678
5754
|
readonly text: string;
|
|
5679
5755
|
readonly files?: ReadonlyArray<{
|
|
@@ -5707,8 +5783,10 @@ export type SessionPromptInput = {
|
|
|
5707
5783
|
};
|
|
5708
5784
|
readonly delivery?: ("steer" | "queue") | null;
|
|
5709
5785
|
readonly resume?: boolean | null;
|
|
5710
|
-
}
|
|
5711
|
-
|
|
5786
|
+
} & {
|
|
5787
|
+
readonly [x: string]: JsonValue | null;
|
|
5788
|
+
})["agents"];
|
|
5789
|
+
readonly skills?: ({
|
|
5712
5790
|
readonly id?: string | null;
|
|
5713
5791
|
readonly text: string;
|
|
5714
5792
|
readonly files?: ReadonlyArray<{
|
|
@@ -5742,8 +5820,10 @@ export type SessionPromptInput = {
|
|
|
5742
5820
|
};
|
|
5743
5821
|
readonly delivery?: ("steer" | "queue") | null;
|
|
5744
5822
|
readonly resume?: boolean | null;
|
|
5745
|
-
}
|
|
5746
|
-
|
|
5823
|
+
} & {
|
|
5824
|
+
readonly [x: string]: JsonValue | null;
|
|
5825
|
+
})["skills"];
|
|
5826
|
+
readonly metadata?: ({
|
|
5747
5827
|
readonly id?: string | null;
|
|
5748
5828
|
readonly text: string;
|
|
5749
5829
|
readonly files?: ReadonlyArray<{
|
|
@@ -5777,8 +5857,10 @@ export type SessionPromptInput = {
|
|
|
5777
5857
|
};
|
|
5778
5858
|
readonly delivery?: ("steer" | "queue") | null;
|
|
5779
5859
|
readonly resume?: boolean | null;
|
|
5780
|
-
}
|
|
5781
|
-
|
|
5860
|
+
} & {
|
|
5861
|
+
readonly [x: string]: JsonValue | null;
|
|
5862
|
+
})["metadata"];
|
|
5863
|
+
readonly delivery?: ({
|
|
5782
5864
|
readonly id?: string | null;
|
|
5783
5865
|
readonly text: string;
|
|
5784
5866
|
readonly files?: ReadonlyArray<{
|
|
@@ -5812,8 +5894,10 @@ export type SessionPromptInput = {
|
|
|
5812
5894
|
};
|
|
5813
5895
|
readonly delivery?: ("steer" | "queue") | null;
|
|
5814
5896
|
readonly resume?: boolean | null;
|
|
5815
|
-
}
|
|
5816
|
-
|
|
5897
|
+
} & {
|
|
5898
|
+
readonly [x: string]: JsonValue | null;
|
|
5899
|
+
})["delivery"];
|
|
5900
|
+
readonly resume?: ({
|
|
5817
5901
|
readonly id?: string | null;
|
|
5818
5902
|
readonly text: string;
|
|
5819
5903
|
readonly files?: ReadonlyArray<{
|
|
@@ -5847,7 +5931,9 @@ export type SessionPromptInput = {
|
|
|
5847
5931
|
};
|
|
5848
5932
|
readonly delivery?: ("steer" | "queue") | null;
|
|
5849
5933
|
readonly resume?: boolean | null;
|
|
5850
|
-
}
|
|
5934
|
+
} & {
|
|
5935
|
+
readonly [x: string]: JsonValue | null;
|
|
5936
|
+
})["resume"];
|
|
5851
5937
|
};
|
|
5852
5938
|
export type SessionPromptOutput = {
|
|
5853
5939
|
data: SessionInboxUser;
|
|
@@ -7845,6 +7931,11 @@ export type CredentialRemoveInput = {
|
|
|
7845
7931
|
}["credentialID"];
|
|
7846
7932
|
};
|
|
7847
7933
|
export type CredentialRemoveOutput = void;
|
|
7934
|
+
export type ProjectListInput = {
|
|
7935
|
+
readonly archived?: {
|
|
7936
|
+
readonly archived?: boolean | undefined;
|
|
7937
|
+
}["archived"];
|
|
7938
|
+
};
|
|
7848
7939
|
export type ProjectListOutput = Array<Project>;
|
|
7849
7940
|
export type ProjectUpdateInput = {
|
|
7850
7941
|
readonly projectID: {
|
|
@@ -8048,7 +8139,7 @@ export type PermissionCreateInput = {
|
|
|
8048
8139
|
};
|
|
8049
8140
|
export type PermissionCreateOutput = {
|
|
8050
8141
|
data: {
|
|
8051
|
-
id:
|
|
8142
|
+
id: PermissionID;
|
|
8052
8143
|
effect: PermissionEffect;
|
|
8053
8144
|
};
|
|
8054
8145
|
}["data"];
|
|
@@ -8876,7 +8967,7 @@ export type WebsearchQueryInput = {
|
|
|
8876
8967
|
export type WebsearchQueryOutput = {
|
|
8877
8968
|
location: LocationPublicRef;
|
|
8878
8969
|
data: {
|
|
8879
|
-
providerID:
|
|
8970
|
+
providerID: WebSearchID;
|
|
8880
8971
|
results: Array<WebSearchResult>;
|
|
8881
8972
|
};
|
|
8882
8973
|
};
|