shuvcode 2.0.26-shuv.1 → 2.0.30-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 +1794 -1698
- 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
|
-
};
|
|
938
|
-
};
|
|
939
|
-
export type SessionModelSelected = {
|
|
940
|
-
id: string;
|
|
941
|
-
created: number;
|
|
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
|
-
};
|
|
957
|
-
};
|
|
958
|
-
export type SessionRenamed = {
|
|
959
|
-
id: string;
|
|
960
|
-
created: number;
|
|
961
|
-
metadata?: {
|
|
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
|
-
};
|
|
779
|
+
export type EventLogSynced = {
|
|
780
|
+
type: "log.synced";
|
|
781
|
+
aggregateID: string;
|
|
782
|
+
seq?: EventSeq;
|
|
975
783
|
};
|
|
976
|
-
export type
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
metadata?: {
|
|
980
|
-
[x: string]: any;
|
|
981
|
-
};
|
|
982
|
-
type: "session.viewed";
|
|
983
|
-
durable: {
|
|
984
|
-
aggregateID: string;
|
|
985
|
-
seq: number;
|
|
986
|
-
version: 1;
|
|
987
|
-
};
|
|
988
|
-
location?: LocationRef;
|
|
989
|
-
data: {
|
|
990
|
-
sessionID: string;
|
|
991
|
-
idle: number;
|
|
992
|
-
};
|
|
784
|
+
export type LocationRef = {
|
|
785
|
+
directory: AbsolutePath;
|
|
786
|
+
workspaceID?: WorkspaceID;
|
|
993
787
|
};
|
|
994
|
-
export type
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
[x: string]: any;
|
|
999
|
-
};
|
|
1000
|
-
type: "session.deleted";
|
|
1001
|
-
durable: {
|
|
1002
|
-
aggregateID: string;
|
|
1003
|
-
seq: number;
|
|
1004
|
-
version: 2;
|
|
1005
|
-
};
|
|
1006
|
-
location?: LocationRef;
|
|
1007
|
-
data: {
|
|
1008
|
-
sessionID: string;
|
|
1009
|
-
};
|
|
788
|
+
export type SessionMessageAssistantText1 = {
|
|
789
|
+
type: "text";
|
|
790
|
+
text: string;
|
|
791
|
+
state?: SessionMessageProviderState1;
|
|
1010
792
|
};
|
|
1011
|
-
export type
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
durable: {
|
|
1019
|
-
aggregateID: string;
|
|
1020
|
-
seq: number;
|
|
1021
|
-
version: 1;
|
|
1022
|
-
};
|
|
1023
|
-
location?: LocationRef;
|
|
1024
|
-
data: {
|
|
1025
|
-
sessionID: string;
|
|
1026
|
-
inboxID: string;
|
|
793
|
+
export type SessionMessageAssistantReasoning1 = {
|
|
794
|
+
type: "reasoning";
|
|
795
|
+
text: string;
|
|
796
|
+
state?: SessionMessageProviderState1;
|
|
797
|
+
time?: {
|
|
798
|
+
created: number;
|
|
799
|
+
completed?: number;
|
|
1027
800
|
};
|
|
1028
801
|
};
|
|
1029
|
-
export type
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
location?: LocationRef;
|
|
1042
|
-
data: {
|
|
1043
|
-
sessionID: string;
|
|
1044
|
-
inboxID: string;
|
|
1045
|
-
};
|
|
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";
|
|
1046
814
|
};
|
|
1047
|
-
export type
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
};
|
|
1059
|
-
location?: LocationRef;
|
|
1060
|
-
data: {
|
|
1061
|
-
sessionID: string;
|
|
1062
|
-
inboxID: string;
|
|
1063
|
-
delivery: SessionInboxDelivery;
|
|
1064
|
-
};
|
|
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";
|
|
1065
826
|
};
|
|
1066
|
-
export type
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
seq: number;
|
|
1076
|
-
version: 1;
|
|
1077
|
-
};
|
|
1078
|
-
location?: LocationRef;
|
|
1079
|
-
data: {
|
|
1080
|
-
sessionID: string;
|
|
1081
|
-
};
|
|
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;
|
|
1082
836
|
};
|
|
1083
|
-
export type
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
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;
|
|
1099
853
|
};
|
|
1100
|
-
export type
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
data: {
|
|
1114
|
-
sessionID: string;
|
|
1115
|
-
error: SessionStructuredError;
|
|
1116
|
-
};
|
|
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>;
|
|
1117
867
|
};
|
|
1118
|
-
export type
|
|
1119
|
-
|
|
1120
|
-
created: number;
|
|
1121
|
-
metadata?: {
|
|
1122
|
-
[x: string]: any;
|
|
1123
|
-
};
|
|
1124
|
-
type: "session.execution.interrupted";
|
|
1125
|
-
durable: {
|
|
1126
|
-
aggregateID: string;
|
|
1127
|
-
seq: number;
|
|
1128
|
-
version: 1;
|
|
1129
|
-
};
|
|
1130
|
-
location?: LocationRef;
|
|
1131
|
-
data: {
|
|
1132
|
-
sessionID: string;
|
|
1133
|
-
reason: "user" | "shutdown" | "superseded" | "inactivity";
|
|
1134
|
-
};
|
|
868
|
+
export type FormAnswer = {
|
|
869
|
+
[x: string]: FormValue;
|
|
1135
870
|
};
|
|
1136
|
-
export type
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
version: 2;
|
|
1147
|
-
};
|
|
1148
|
-
location?: LocationRef;
|
|
1149
|
-
data: {
|
|
1150
|
-
sessionID: string;
|
|
1151
|
-
delta: {
|
|
1152
|
-
[x: string]: string | "removed";
|
|
1153
|
-
};
|
|
1154
|
-
text?: string;
|
|
1155
|
-
};
|
|
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;
|
|
1156
881
|
};
|
|
1157
|
-
export type
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
aggregateID: string;
|
|
1166
|
-
seq: number;
|
|
1167
|
-
version: 1;
|
|
1168
|
-
};
|
|
1169
|
-
location?: LocationRef;
|
|
1170
|
-
data: {
|
|
1171
|
-
sessionID: string;
|
|
1172
|
-
text: string;
|
|
1173
|
-
description?: string;
|
|
1174
|
-
metadata?: {
|
|
1175
|
-
[x: string]: any;
|
|
1176
|
-
};
|
|
1177
|
-
};
|
|
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;
|
|
1178
890
|
};
|
|
1179
|
-
export type
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
[x: string]: any;
|
|
1184
|
-
};
|
|
1185
|
-
type: "session.skill.activated";
|
|
1186
|
-
durable: {
|
|
1187
|
-
aggregateID: string;
|
|
1188
|
-
seq: number;
|
|
1189
|
-
version: 1;
|
|
891
|
+
export type ModelCost = {
|
|
892
|
+
tier?: {
|
|
893
|
+
type: "context";
|
|
894
|
+
size: number;
|
|
1190
895
|
};
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
text: string;
|
|
896
|
+
input: MoneyUSDPerMillionTokens;
|
|
897
|
+
output: MoneyUSDPerMillionTokens;
|
|
898
|
+
cache: {
|
|
899
|
+
read: MoneyUSDPerMillionTokens;
|
|
900
|
+
write: MoneyUSDPerMillionTokens;
|
|
1197
901
|
};
|
|
1198
902
|
};
|
|
1199
|
-
export type
|
|
1200
|
-
id:
|
|
1201
|
-
|
|
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;
|
|
1202
915
|
metadata?: {
|
|
1203
|
-
[x: string]:
|
|
1204
|
-
};
|
|
1205
|
-
type: "session.step.started";
|
|
1206
|
-
durable: {
|
|
1207
|
-
aggregateID: string;
|
|
1208
|
-
seq: number;
|
|
1209
|
-
version: 1;
|
|
1210
|
-
};
|
|
1211
|
-
location?: LocationRef;
|
|
1212
|
-
data: {
|
|
1213
|
-
sessionID: string;
|
|
1214
|
-
assistantMessageID: string;
|
|
1215
|
-
agent: string;
|
|
1216
|
-
model: ModelRef;
|
|
1217
|
-
snapshot?: string;
|
|
1218
|
-
started: number;
|
|
916
|
+
[x: string]: JsonValue;
|
|
1219
917
|
};
|
|
1220
918
|
};
|
|
1221
|
-
export type
|
|
1222
|
-
|
|
1223
|
-
|
|
919
|
+
export type CredentialExternal = {
|
|
920
|
+
type: "external";
|
|
921
|
+
methodID: IntegrationMethodID;
|
|
1224
922
|
metadata?: {
|
|
1225
|
-
[x: string]:
|
|
923
|
+
[x: string]: JsonValue;
|
|
1226
924
|
};
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
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;
|
|
1232
946
|
};
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
947
|
+
};
|
|
948
|
+
export type IntegrationCommandAttempt = {
|
|
949
|
+
attemptID: IntegrationAttemptID;
|
|
950
|
+
time: {
|
|
951
|
+
created: number;
|
|
952
|
+
expires: number;
|
|
1237
953
|
};
|
|
1238
954
|
};
|
|
1239
|
-
export type
|
|
1240
|
-
|
|
1241
|
-
|
|
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>;
|
|
1242
980
|
metadata?: {
|
|
1243
|
-
[x: string]:
|
|
1244
|
-
};
|
|
1245
|
-
type: "session.text.started";
|
|
1246
|
-
durable: {
|
|
1247
|
-
aggregateID: string;
|
|
1248
|
-
seq: number;
|
|
1249
|
-
version: 1;
|
|
981
|
+
[x: string]: JsonValue;
|
|
1250
982
|
};
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
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;
|
|
1256
994
|
};
|
|
1257
995
|
};
|
|
1258
|
-
export type
|
|
1259
|
-
id:
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
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;
|
|
1263
1020
|
};
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
seq: number;
|
|
1268
|
-
version: 1;
|
|
1021
|
+
output: {
|
|
1022
|
+
head: number;
|
|
1023
|
+
tail: number;
|
|
1269
1024
|
};
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1025
|
+
};
|
|
1026
|
+
export type PersistentPtyReadResult = {
|
|
1027
|
+
ptyID: PtyID;
|
|
1028
|
+
title: string;
|
|
1029
|
+
cwd: string;
|
|
1030
|
+
foregroundProcess: string | null;
|
|
1031
|
+
screen: {
|
|
1032
|
+
text: string;
|
|
1033
|
+
cols: number;
|
|
1034
|
+
rows: number;
|
|
1035
|
+
cursor: {
|
|
1036
|
+
x: number;
|
|
1037
|
+
y: number;
|
|
1038
|
+
};
|
|
1276
1039
|
};
|
|
1277
1040
|
};
|
|
1278
|
-
export type
|
|
1279
|
-
|
|
1280
|
-
|
|
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;
|
|
1281
1119
|
metadata?: {
|
|
1282
|
-
[x: string]:
|
|
1283
|
-
};
|
|
1284
|
-
type: "session.tool.input.ended";
|
|
1285
|
-
durable: {
|
|
1286
|
-
aggregateID: string;
|
|
1287
|
-
seq: number;
|
|
1288
|
-
version: 1;
|
|
1120
|
+
[x: string]: JsonValue;
|
|
1289
1121
|
};
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
sessionID: string;
|
|
1293
|
-
assistantMessageID: string;
|
|
1294
|
-
id: string;
|
|
1295
|
-
text: string;
|
|
1122
|
+
time: {
|
|
1123
|
+
created: number;
|
|
1296
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;
|
|
1297
1134
|
};
|
|
1298
|
-
export type
|
|
1299
|
-
|
|
1135
|
+
export type SessionInboxMovePayload = {
|
|
1136
|
+
projectID: ProjectID;
|
|
1137
|
+
subpath?: RelativePath;
|
|
1138
|
+
location: LocationPublicRef;
|
|
1139
|
+
};
|
|
1140
|
+
export type V2EventRpc = {
|
|
1141
|
+
id: EventID;
|
|
1300
1142
|
created: number;
|
|
1301
1143
|
metadata?: {
|
|
1302
1144
|
[x: string]: any;
|
|
1303
|
-
};
|
|
1304
|
-
type: "
|
|
1305
|
-
|
|
1306
|
-
aggregateID: string;
|
|
1307
|
-
seq: number;
|
|
1308
|
-
version: 1;
|
|
1309
|
-
};
|
|
1310
|
-
location?: LocationRef;
|
|
1145
|
+
} | undefined;
|
|
1146
|
+
type: `${"rpc."}${string}`;
|
|
1147
|
+
location: LocationPublicRef;
|
|
1311
1148
|
data: {
|
|
1312
|
-
|
|
1313
|
-
assistantMessageID: string;
|
|
1314
|
-
id: string;
|
|
1315
|
-
recovery: {
|
|
1316
|
-
childSessionID: string;
|
|
1317
|
-
inboxID: string;
|
|
1318
|
-
inputDigest: string;
|
|
1319
|
-
agent: string;
|
|
1320
|
-
model?: ModelRef;
|
|
1321
|
-
};
|
|
1149
|
+
[x: string]: any;
|
|
1322
1150
|
};
|
|
1323
1151
|
};
|
|
1324
|
-
export type
|
|
1325
|
-
id:
|
|
1326
|
-
created: number;
|
|
1152
|
+
export type V2EventServerConnected = {
|
|
1153
|
+
id: EventID;
|
|
1327
1154
|
metadata?: {
|
|
1328
1155
|
[x: string]: any;
|
|
1329
|
-
};
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
seq: number;
|
|
1334
|
-
version: 1;
|
|
1335
|
-
};
|
|
1336
|
-
location?: LocationRef;
|
|
1337
|
-
data: {
|
|
1338
|
-
sessionID: string;
|
|
1339
|
-
assistantMessageID: string;
|
|
1340
|
-
attempt: number;
|
|
1341
|
-
at: number;
|
|
1342
|
-
error: SessionStructuredError;
|
|
1343
|
-
};
|
|
1156
|
+
} | undefined;
|
|
1157
|
+
location?: LocationPublicRef | undefined;
|
|
1158
|
+
type: "server.connected";
|
|
1159
|
+
data: {};
|
|
1344
1160
|
};
|
|
1345
|
-
export type
|
|
1346
|
-
|
|
1347
|
-
|
|
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;
|
|
1348
1171
|
metadata?: {
|
|
1349
|
-
[x: string]:
|
|
1350
|
-
};
|
|
1351
|
-
type: "session.compaction.started";
|
|
1352
|
-
durable: {
|
|
1353
|
-
aggregateID: string;
|
|
1354
|
-
seq: number;
|
|
1355
|
-
version: 1;
|
|
1172
|
+
[x: string]: JsonValue;
|
|
1356
1173
|
};
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
sessionID: string;
|
|
1360
|
-
reason: "auto" | "manual";
|
|
1361
|
-
recent: string;
|
|
1362
|
-
inputID?: string;
|
|
1174
|
+
time: {
|
|
1175
|
+
created: number;
|
|
1363
1176
|
};
|
|
1177
|
+
type: "model-switched";
|
|
1178
|
+
model: ModelRef;
|
|
1179
|
+
previous?: ModelRef;
|
|
1364
1180
|
};
|
|
1365
|
-
export type
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
seq: number;
|
|
1375
|
-
version: 1;
|
|
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;
|
|
1376
1190
|
};
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
sessionID: string;
|
|
1380
|
-
reason: "auto" | "manual";
|
|
1381
|
-
error: SessionStructuredError;
|
|
1382
|
-
inputID?: string;
|
|
1383
|
-
cost?: MoneyUSD;
|
|
1384
|
-
tokens?: TokenUsageInfo;
|
|
1191
|
+
body: {
|
|
1192
|
+
[x: string]: any;
|
|
1385
1193
|
};
|
|
1386
1194
|
};
|
|
1387
|
-
export type
|
|
1195
|
+
export type ModelVariant = {
|
|
1388
1196
|
id: string;
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
[x: string]:
|
|
1392
|
-
};
|
|
1393
|
-
type: "session.revert.cleared";
|
|
1394
|
-
durable: {
|
|
1395
|
-
aggregateID: string;
|
|
1396
|
-
seq: number;
|
|
1397
|
-
version: 1;
|
|
1197
|
+
settings?: ModelSettings;
|
|
1198
|
+
headers?: {
|
|
1199
|
+
[x: string]: string;
|
|
1398
1200
|
};
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
sessionID: string;
|
|
1201
|
+
body?: {
|
|
1202
|
+
[x: string]: any;
|
|
1402
1203
|
};
|
|
1403
1204
|
};
|
|
1404
|
-
export type
|
|
1405
|
-
|
|
1406
|
-
|
|
1205
|
+
export type PermissionRuleset = Array<PermissionRule>;
|
|
1206
|
+
export type SessionMessageUser = {
|
|
1207
|
+
id: SessionMessageID;
|
|
1407
1208
|
metadata?: {
|
|
1408
|
-
[x: string]:
|
|
1409
|
-
};
|
|
1410
|
-
type: "session.revert.committed";
|
|
1411
|
-
durable: {
|
|
1412
|
-
aggregateID: string;
|
|
1413
|
-
seq: number;
|
|
1414
|
-
version: 1;
|
|
1209
|
+
[x: string]: JsonValue;
|
|
1415
1210
|
};
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
sessionID: string;
|
|
1419
|
-
to: string;
|
|
1211
|
+
time: {
|
|
1212
|
+
created: number;
|
|
1420
1213
|
};
|
|
1214
|
+
text: string;
|
|
1215
|
+
files?: Array<PromptFileAttachment>;
|
|
1216
|
+
agents?: Array<PromptAgentAttachment>;
|
|
1217
|
+
skills?: Array<PromptSkillAttachment>;
|
|
1218
|
+
type: "user";
|
|
1421
1219
|
};
|
|
1422
|
-
export type
|
|
1423
|
-
|
|
1424
|
-
|
|
1220
|
+
export type SessionInboxUserPayload = {
|
|
1221
|
+
text: string;
|
|
1222
|
+
files?: Array<PromptFileAttachment>;
|
|
1223
|
+
agents?: Array<PromptAgentAttachment>;
|
|
1224
|
+
skills?: Array<PromptSkillAttachment>;
|
|
1425
1225
|
metadata?: {
|
|
1426
|
-
[x: string]:
|
|
1427
|
-
};
|
|
1428
|
-
type: "session.usage.recorded";
|
|
1429
|
-
durable: {
|
|
1430
|
-
aggregateID: string;
|
|
1431
|
-
seq: number;
|
|
1432
|
-
version: 1;
|
|
1433
|
-
};
|
|
1434
|
-
location?: LocationRef;
|
|
1435
|
-
data: {
|
|
1436
|
-
sessionID: string;
|
|
1437
|
-
source: "title" | "compaction";
|
|
1438
|
-
cost: MoneyUSD;
|
|
1439
|
-
tokens: TokenUsageInfo;
|
|
1226
|
+
[x: string]: JsonValue;
|
|
1440
1227
|
};
|
|
1441
1228
|
};
|
|
1442
|
-
export type
|
|
1443
|
-
|
|
1444
|
-
|
|
1229
|
+
export type SessionInboxUserPayload1 = {
|
|
1230
|
+
text: string;
|
|
1231
|
+
files?: Array<PromptFileAttachment>;
|
|
1232
|
+
agents?: Array<PromptAgentAttachment>;
|
|
1233
|
+
skills?: Array<PromptSkillAttachment>;
|
|
1445
1234
|
metadata?: {
|
|
1446
1235
|
[x: string]: any;
|
|
1447
1236
|
};
|
|
1448
|
-
type: "location.shutdown";
|
|
1449
|
-
location?: LocationRef;
|
|
1450
|
-
data: {};
|
|
1451
1237
|
};
|
|
1452
|
-
export type
|
|
1453
|
-
|
|
1454
|
-
|
|
1238
|
+
export type SessionMessageToolStateCompleted = {
|
|
1239
|
+
status: "completed";
|
|
1240
|
+
input: {
|
|
1241
|
+
[x: string]: JsonValue;
|
|
1242
|
+
};
|
|
1243
|
+
content: [ToolContent, ...Array<ToolContent>];
|
|
1455
1244
|
metadata?: {
|
|
1456
|
-
[x: string]:
|
|
1245
|
+
[x: string]: JsonValue;
|
|
1457
1246
|
};
|
|
1458
|
-
type: "models-dev.refreshed";
|
|
1459
|
-
location?: LocationRef;
|
|
1460
|
-
data: {};
|
|
1461
1247
|
};
|
|
1462
|
-
export type
|
|
1463
|
-
|
|
1464
|
-
|
|
1248
|
+
export type SessionMessageToolStateError = {
|
|
1249
|
+
status: "error";
|
|
1250
|
+
input: {
|
|
1251
|
+
[x: string]: JsonValue;
|
|
1252
|
+
};
|
|
1253
|
+
error: SessionStructuredError;
|
|
1254
|
+
content?: [ToolContent, ...Array<ToolContent>];
|
|
1465
1255
|
metadata?: {
|
|
1466
|
-
[x: string]:
|
|
1256
|
+
[x: string]: JsonValue;
|
|
1467
1257
|
};
|
|
1468
|
-
type: "credential.updated";
|
|
1469
|
-
location?: LocationRef;
|
|
1470
|
-
data: {};
|
|
1471
1258
|
};
|
|
1472
|
-
export type
|
|
1473
|
-
id:
|
|
1259
|
+
export type SessionAgentSelected = {
|
|
1260
|
+
id: EventID;
|
|
1474
1261
|
created: number;
|
|
1475
1262
|
metadata?: {
|
|
1476
1263
|
[x: string]: any;
|
|
1477
1264
|
};
|
|
1478
|
-
type: "
|
|
1265
|
+
type: "session.agent.selected";
|
|
1266
|
+
durable: {
|
|
1267
|
+
aggregateID: string;
|
|
1268
|
+
seq: EventSeq;
|
|
1269
|
+
version: 1;
|
|
1270
|
+
};
|
|
1479
1271
|
location?: LocationRef;
|
|
1480
1272
|
data: {
|
|
1481
|
-
|
|
1482
|
-
|
|
1273
|
+
sessionID: SessionID;
|
|
1274
|
+
agent: AgentID;
|
|
1275
|
+
previous?: AgentID;
|
|
1483
1276
|
};
|
|
1484
1277
|
};
|
|
1485
|
-
export type
|
|
1486
|
-
id:
|
|
1278
|
+
export type SessionModelSelected = {
|
|
1279
|
+
id: EventID;
|
|
1487
1280
|
created: number;
|
|
1488
1281
|
metadata?: {
|
|
1489
1282
|
[x: string]: any;
|
|
1490
1283
|
};
|
|
1491
|
-
type: "
|
|
1284
|
+
type: "session.model.selected";
|
|
1285
|
+
durable: {
|
|
1286
|
+
aggregateID: string;
|
|
1287
|
+
seq: EventSeq;
|
|
1288
|
+
version: 1;
|
|
1289
|
+
};
|
|
1492
1290
|
location?: LocationRef;
|
|
1493
|
-
data: {
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
created: number;
|
|
1498
|
-
metadata?: {
|
|
1499
|
-
[x: string]: any;
|
|
1291
|
+
data: {
|
|
1292
|
+
sessionID: SessionID;
|
|
1293
|
+
model: ModelRef;
|
|
1294
|
+
previous?: ModelRef;
|
|
1500
1295
|
};
|
|
1501
|
-
type: "provider.updated";
|
|
1502
|
-
location?: LocationRef;
|
|
1503
|
-
data: {};
|
|
1504
1296
|
};
|
|
1505
|
-
export type
|
|
1506
|
-
id:
|
|
1297
|
+
export type SessionMoved = {
|
|
1298
|
+
id: EventID;
|
|
1507
1299
|
created: number;
|
|
1508
1300
|
metadata?: {
|
|
1509
1301
|
[x: string]: any;
|
|
1510
1302
|
};
|
|
1511
|
-
type: "
|
|
1303
|
+
type: "session.moved";
|
|
1304
|
+
durable: {
|
|
1305
|
+
aggregateID: string;
|
|
1306
|
+
seq: EventSeq;
|
|
1307
|
+
version: 1;
|
|
1308
|
+
};
|
|
1512
1309
|
location?: LocationRef;
|
|
1513
|
-
data: {
|
|
1310
|
+
data: {
|
|
1311
|
+
sessionID: SessionID;
|
|
1312
|
+
location: LocationRef;
|
|
1313
|
+
projectID: ProjectID;
|
|
1314
|
+
subpath?: RelativePath;
|
|
1315
|
+
};
|
|
1514
1316
|
};
|
|
1515
|
-
export type
|
|
1516
|
-
id:
|
|
1317
|
+
export type SessionRenamed = {
|
|
1318
|
+
id: EventID;
|
|
1517
1319
|
created: number;
|
|
1518
1320
|
metadata?: {
|
|
1519
1321
|
[x: string]: any;
|
|
1520
1322
|
};
|
|
1521
|
-
type: "
|
|
1323
|
+
type: "session.renamed";
|
|
1324
|
+
durable: {
|
|
1325
|
+
aggregateID: string;
|
|
1326
|
+
seq: EventSeq;
|
|
1327
|
+
version: 1;
|
|
1328
|
+
};
|
|
1522
1329
|
location?: LocationRef;
|
|
1523
|
-
data: {
|
|
1330
|
+
data: {
|
|
1331
|
+
sessionID: SessionID;
|
|
1332
|
+
title: string;
|
|
1333
|
+
};
|
|
1524
1334
|
};
|
|
1525
|
-
export type
|
|
1526
|
-
id:
|
|
1335
|
+
export type SessionMetadataUpdated = {
|
|
1336
|
+
id: EventID;
|
|
1527
1337
|
created: number;
|
|
1528
1338
|
metadata?: {
|
|
1529
1339
|
[x: string]: any;
|
|
1530
1340
|
};
|
|
1531
|
-
type: "session.
|
|
1341
|
+
type: "session.metadata.updated";
|
|
1342
|
+
durable: {
|
|
1343
|
+
aggregateID: string;
|
|
1344
|
+
seq: EventSeq;
|
|
1345
|
+
version: 1;
|
|
1346
|
+
};
|
|
1532
1347
|
location?: LocationRef;
|
|
1533
1348
|
data: {
|
|
1534
|
-
sessionID:
|
|
1535
|
-
|
|
1536
|
-
tokens: TokenUsageInfo;
|
|
1349
|
+
sessionID: SessionID;
|
|
1350
|
+
metadata: SessionMetadata;
|
|
1537
1351
|
};
|
|
1538
1352
|
};
|
|
1539
|
-
export type
|
|
1540
|
-
id:
|
|
1353
|
+
export type SessionViewed = {
|
|
1354
|
+
id: EventID;
|
|
1541
1355
|
created: number;
|
|
1542
1356
|
metadata?: {
|
|
1543
1357
|
[x: string]: any;
|
|
1544
1358
|
};
|
|
1545
|
-
type: "session.
|
|
1359
|
+
type: "session.viewed";
|
|
1360
|
+
durable: {
|
|
1361
|
+
aggregateID: string;
|
|
1362
|
+
seq: EventSeq;
|
|
1363
|
+
version: 1;
|
|
1364
|
+
};
|
|
1546
1365
|
location?: LocationRef;
|
|
1547
1366
|
data: {
|
|
1548
|
-
sessionID:
|
|
1549
|
-
|
|
1550
|
-
ordinal: number;
|
|
1551
|
-
delta: string;
|
|
1367
|
+
sessionID: SessionID;
|
|
1368
|
+
idle: number;
|
|
1552
1369
|
};
|
|
1553
1370
|
};
|
|
1554
|
-
export type
|
|
1555
|
-
id:
|
|
1371
|
+
export type SessionDeleted = {
|
|
1372
|
+
id: EventID;
|
|
1556
1373
|
created: number;
|
|
1557
1374
|
metadata?: {
|
|
1558
1375
|
[x: string]: any;
|
|
1559
1376
|
};
|
|
1560
|
-
type: "session.
|
|
1377
|
+
type: "session.deleted";
|
|
1378
|
+
durable: {
|
|
1379
|
+
aggregateID: string;
|
|
1380
|
+
seq: EventSeq;
|
|
1381
|
+
version: 2;
|
|
1382
|
+
};
|
|
1561
1383
|
location?: LocationRef;
|
|
1562
1384
|
data: {
|
|
1563
|
-
sessionID:
|
|
1564
|
-
assistantMessageID: string;
|
|
1565
|
-
ordinal: number;
|
|
1566
|
-
delta: string;
|
|
1385
|
+
sessionID: SessionID;
|
|
1567
1386
|
};
|
|
1568
1387
|
};
|
|
1569
|
-
export type
|
|
1570
|
-
id:
|
|
1388
|
+
export type SessionForked = {
|
|
1389
|
+
id: EventID;
|
|
1571
1390
|
created: number;
|
|
1572
1391
|
metadata?: {
|
|
1573
1392
|
[x: string]: any;
|
|
1574
1393
|
};
|
|
1575
|
-
type: "session.
|
|
1394
|
+
type: "session.forked";
|
|
1395
|
+
durable: {
|
|
1396
|
+
aggregateID: string;
|
|
1397
|
+
seq: EventSeq;
|
|
1398
|
+
version: 2;
|
|
1399
|
+
};
|
|
1576
1400
|
location?: LocationRef;
|
|
1577
1401
|
data: {
|
|
1578
|
-
sessionID:
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1402
|
+
sessionID: SessionID;
|
|
1403
|
+
parentID: SessionID;
|
|
1404
|
+
boundary: SessionForkBoundary;
|
|
1405
|
+
instructions?: {
|
|
1406
|
+
[x: InstructionKey]: InstructionHash;
|
|
1407
|
+
};
|
|
1408
|
+
instructionEntries?: InstructionEntrySnapshot;
|
|
1582
1409
|
};
|
|
1583
1410
|
};
|
|
1584
|
-
export type
|
|
1585
|
-
id:
|
|
1411
|
+
export type SessionInboxDelivered = {
|
|
1412
|
+
id: EventID;
|
|
1586
1413
|
created: number;
|
|
1587
1414
|
metadata?: {
|
|
1588
1415
|
[x: string]: any;
|
|
1589
1416
|
};
|
|
1590
|
-
type: "session.
|
|
1417
|
+
type: "session.inbox.delivered";
|
|
1418
|
+
durable: {
|
|
1419
|
+
aggregateID: string;
|
|
1420
|
+
seq: EventSeq;
|
|
1421
|
+
version: 1;
|
|
1422
|
+
};
|
|
1591
1423
|
location?: LocationRef;
|
|
1592
1424
|
data: {
|
|
1593
|
-
sessionID:
|
|
1594
|
-
|
|
1595
|
-
id: string;
|
|
1596
|
-
metadata: {
|
|
1597
|
-
[x: string]: JsonValue;
|
|
1598
|
-
};
|
|
1425
|
+
sessionID: SessionID;
|
|
1426
|
+
inboxID: SessionMessageID;
|
|
1599
1427
|
};
|
|
1600
1428
|
};
|
|
1601
|
-
export type
|
|
1602
|
-
|
|
1429
|
+
export type SessionInboxMovePayload1 = {
|
|
1430
|
+
location: LocationRef;
|
|
1431
|
+
projectID: ProjectID;
|
|
1432
|
+
subpath?: RelativePath;
|
|
1433
|
+
};
|
|
1434
|
+
export type SessionInboxCancelled = {
|
|
1435
|
+
id: EventID;
|
|
1603
1436
|
created: number;
|
|
1604
1437
|
metadata?: {
|
|
1605
1438
|
[x: string]: any;
|
|
1606
1439
|
};
|
|
1607
|
-
type: "session.
|
|
1440
|
+
type: "session.inbox.cancelled";
|
|
1441
|
+
durable: {
|
|
1442
|
+
aggregateID: string;
|
|
1443
|
+
seq: EventSeq;
|
|
1444
|
+
version: 1;
|
|
1445
|
+
};
|
|
1608
1446
|
location?: LocationRef;
|
|
1609
1447
|
data: {
|
|
1610
|
-
sessionID:
|
|
1611
|
-
|
|
1448
|
+
sessionID: SessionID;
|
|
1449
|
+
inboxID: SessionMessageID;
|
|
1612
1450
|
};
|
|
1613
1451
|
};
|
|
1614
|
-
export type
|
|
1615
|
-
id:
|
|
1452
|
+
export type SessionInboxDeliveryChanged = {
|
|
1453
|
+
id: EventID;
|
|
1616
1454
|
created: number;
|
|
1617
1455
|
metadata?: {
|
|
1618
1456
|
[x: string]: any;
|
|
1619
1457
|
};
|
|
1620
|
-
type: "
|
|
1458
|
+
type: "session.inbox.delivery.changed";
|
|
1459
|
+
durable: {
|
|
1460
|
+
aggregateID: string;
|
|
1461
|
+
seq: EventSeq;
|
|
1462
|
+
version: 1;
|
|
1463
|
+
};
|
|
1621
1464
|
location?: LocationRef;
|
|
1622
1465
|
data: {
|
|
1623
|
-
|
|
1624
|
-
|
|
1466
|
+
sessionID: SessionID;
|
|
1467
|
+
inboxID: SessionMessageID;
|
|
1468
|
+
delivery: SessionInboxDelivery;
|
|
1625
1469
|
};
|
|
1626
1470
|
};
|
|
1627
|
-
export type
|
|
1628
|
-
id:
|
|
1471
|
+
export type SessionExecutionStarted = {
|
|
1472
|
+
id: EventID;
|
|
1629
1473
|
created: number;
|
|
1630
1474
|
metadata?: {
|
|
1631
1475
|
[x: string]: any;
|
|
1632
1476
|
};
|
|
1633
|
-
type: "
|
|
1477
|
+
type: "session.execution.started";
|
|
1478
|
+
durable: {
|
|
1479
|
+
aggregateID: string;
|
|
1480
|
+
seq: EventSeq;
|
|
1481
|
+
version: 1;
|
|
1482
|
+
};
|
|
1634
1483
|
location?: LocationRef;
|
|
1635
|
-
data: {
|
|
1484
|
+
data: {
|
|
1485
|
+
sessionID: SessionID;
|
|
1486
|
+
};
|
|
1636
1487
|
};
|
|
1637
|
-
export type
|
|
1638
|
-
id:
|
|
1488
|
+
export type SessionExecutionSucceeded = {
|
|
1489
|
+
id: EventID;
|
|
1639
1490
|
created: number;
|
|
1640
1491
|
metadata?: {
|
|
1641
1492
|
[x: string]: any;
|
|
1642
1493
|
};
|
|
1643
|
-
type: "
|
|
1494
|
+
type: "session.execution.succeeded";
|
|
1495
|
+
durable: {
|
|
1496
|
+
aggregateID: string;
|
|
1497
|
+
seq: EventSeq;
|
|
1498
|
+
version: 1;
|
|
1499
|
+
};
|
|
1644
1500
|
location?: LocationRef;
|
|
1645
1501
|
data: {
|
|
1646
|
-
sessionID:
|
|
1647
|
-
requestID: string;
|
|
1502
|
+
sessionID: SessionID;
|
|
1648
1503
|
};
|
|
1649
1504
|
};
|
|
1650
|
-
export type
|
|
1651
|
-
id:
|
|
1505
|
+
export type SessionExecutionFailed = {
|
|
1506
|
+
id: EventID;
|
|
1652
1507
|
created: number;
|
|
1653
1508
|
metadata?: {
|
|
1654
1509
|
[x: string]: any;
|
|
1655
1510
|
};
|
|
1656
|
-
type: "
|
|
1511
|
+
type: "session.execution.failed";
|
|
1512
|
+
durable: {
|
|
1513
|
+
aggregateID: string;
|
|
1514
|
+
seq: EventSeq;
|
|
1515
|
+
version: 1;
|
|
1516
|
+
};
|
|
1657
1517
|
location?: LocationRef;
|
|
1658
|
-
data: {
|
|
1518
|
+
data: {
|
|
1519
|
+
sessionID: SessionID;
|
|
1520
|
+
error: SessionStructuredError;
|
|
1521
|
+
};
|
|
1659
1522
|
};
|
|
1660
|
-
export type
|
|
1661
|
-
id:
|
|
1523
|
+
export type SessionExecutionInterrupted = {
|
|
1524
|
+
id: EventID;
|
|
1662
1525
|
created: number;
|
|
1663
1526
|
metadata?: {
|
|
1664
1527
|
[x: string]: any;
|
|
1665
1528
|
};
|
|
1666
|
-
type: "
|
|
1529
|
+
type: "session.execution.interrupted";
|
|
1530
|
+
durable: {
|
|
1531
|
+
aggregateID: string;
|
|
1532
|
+
seq: EventSeq;
|
|
1533
|
+
version: 1;
|
|
1534
|
+
};
|
|
1667
1535
|
location?: LocationRef;
|
|
1668
1536
|
data: {
|
|
1669
|
-
|
|
1537
|
+
sessionID: SessionID;
|
|
1538
|
+
reason: "user" | "shutdown" | "superseded" | "inactivity";
|
|
1670
1539
|
};
|
|
1671
1540
|
};
|
|
1672
|
-
export type
|
|
1673
|
-
id:
|
|
1541
|
+
export type SessionInstructionsUpdated = {
|
|
1542
|
+
id: EventID;
|
|
1674
1543
|
created: number;
|
|
1675
1544
|
metadata?: {
|
|
1676
1545
|
[x: string]: any;
|
|
1677
1546
|
};
|
|
1678
|
-
type: "
|
|
1547
|
+
type: "session.instructions.updated";
|
|
1679
1548
|
durable: {
|
|
1680
1549
|
aggregateID: string;
|
|
1681
|
-
seq:
|
|
1682
|
-
version:
|
|
1550
|
+
seq: EventSeq;
|
|
1551
|
+
version: 2;
|
|
1683
1552
|
};
|
|
1684
1553
|
location?: LocationRef;
|
|
1685
1554
|
data: {
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1555
|
+
sessionID: SessionID;
|
|
1556
|
+
delta: {
|
|
1557
|
+
[x: string]: InstructionHash | "removed";
|
|
1558
|
+
};
|
|
1559
|
+
text?: string;
|
|
1690
1560
|
};
|
|
1691
1561
|
};
|
|
1692
|
-
export type
|
|
1693
|
-
id:
|
|
1562
|
+
export type SessionSynthetic = {
|
|
1563
|
+
id: EventID;
|
|
1694
1564
|
created: number;
|
|
1695
1565
|
metadata?: {
|
|
1696
1566
|
[x: string]: any;
|
|
1697
1567
|
};
|
|
1698
|
-
type: "
|
|
1568
|
+
type: "session.synthetic";
|
|
1569
|
+
durable: {
|
|
1570
|
+
aggregateID: string;
|
|
1571
|
+
seq: EventSeq;
|
|
1572
|
+
version: 1;
|
|
1573
|
+
};
|
|
1699
1574
|
location?: LocationRef;
|
|
1700
|
-
data: {
|
|
1575
|
+
data: {
|
|
1576
|
+
sessionID: SessionID;
|
|
1577
|
+
text: string;
|
|
1578
|
+
description?: string;
|
|
1579
|
+
metadata?: {
|
|
1580
|
+
[x: string]: any;
|
|
1581
|
+
};
|
|
1582
|
+
};
|
|
1701
1583
|
};
|
|
1702
|
-
export type
|
|
1703
|
-
id:
|
|
1584
|
+
export type SessionSkillActivated = {
|
|
1585
|
+
id: EventID;
|
|
1704
1586
|
created: number;
|
|
1705
1587
|
metadata?: {
|
|
1706
1588
|
[x: string]: any;
|
|
1707
1589
|
};
|
|
1708
|
-
type: "
|
|
1590
|
+
type: "session.skill.activated";
|
|
1591
|
+
durable: {
|
|
1592
|
+
aggregateID: string;
|
|
1593
|
+
seq: EventSeq;
|
|
1594
|
+
version: 1;
|
|
1595
|
+
};
|
|
1709
1596
|
location?: LocationRef;
|
|
1710
|
-
data: {
|
|
1597
|
+
data: {
|
|
1598
|
+
sessionID: SessionID;
|
|
1599
|
+
id: SkillID;
|
|
1600
|
+
name: SkillName;
|
|
1601
|
+
text: string;
|
|
1602
|
+
};
|
|
1711
1603
|
};
|
|
1712
|
-
export type
|
|
1713
|
-
id:
|
|
1604
|
+
export type SessionShellStarted = {
|
|
1605
|
+
id: EventID;
|
|
1714
1606
|
created: number;
|
|
1715
1607
|
metadata?: {
|
|
1716
1608
|
[x: string]: any;
|
|
1717
1609
|
};
|
|
1718
|
-
type: "
|
|
1610
|
+
type: "session.shell.started";
|
|
1611
|
+
durable: {
|
|
1612
|
+
aggregateID: string;
|
|
1613
|
+
seq: EventSeq;
|
|
1614
|
+
version: 1;
|
|
1615
|
+
};
|
|
1719
1616
|
location?: LocationRef;
|
|
1720
|
-
data: {
|
|
1617
|
+
data: {
|
|
1618
|
+
sessionID: SessionID;
|
|
1619
|
+
shell: ShellInfo;
|
|
1620
|
+
};
|
|
1721
1621
|
};
|
|
1722
|
-
export type
|
|
1723
|
-
id:
|
|
1622
|
+
export type SessionShellEnded = {
|
|
1623
|
+
id: EventID;
|
|
1724
1624
|
created: number;
|
|
1725
1625
|
metadata?: {
|
|
1726
1626
|
[x: string]: any;
|
|
1727
1627
|
};
|
|
1728
|
-
type: "
|
|
1628
|
+
type: "session.shell.ended";
|
|
1629
|
+
durable: {
|
|
1630
|
+
aggregateID: string;
|
|
1631
|
+
seq: EventSeq;
|
|
1632
|
+
version: 1;
|
|
1633
|
+
};
|
|
1729
1634
|
location?: LocationRef;
|
|
1730
1635
|
data: {
|
|
1731
|
-
|
|
1732
|
-
|
|
1636
|
+
sessionID: SessionID;
|
|
1637
|
+
shell: ShellInfo;
|
|
1638
|
+
output: {
|
|
1639
|
+
output: string;
|
|
1640
|
+
cursor: number;
|
|
1641
|
+
size: number;
|
|
1642
|
+
truncated: boolean;
|
|
1643
|
+
};
|
|
1733
1644
|
};
|
|
1734
1645
|
};
|
|
1735
|
-
export type
|
|
1736
|
-
id:
|
|
1646
|
+
export type SessionStepStarted = {
|
|
1647
|
+
id: EventID;
|
|
1737
1648
|
created: number;
|
|
1738
1649
|
metadata?: {
|
|
1739
1650
|
[x: string]: any;
|
|
1740
1651
|
};
|
|
1741
|
-
type: "
|
|
1652
|
+
type: "session.step.started";
|
|
1653
|
+
durable: {
|
|
1654
|
+
aggregateID: string;
|
|
1655
|
+
seq: EventSeq;
|
|
1656
|
+
version: 1;
|
|
1657
|
+
};
|
|
1742
1658
|
location?: LocationRef;
|
|
1743
1659
|
data: {
|
|
1744
|
-
|
|
1660
|
+
sessionID: SessionID;
|
|
1661
|
+
assistantMessageID: SessionMessageID;
|
|
1662
|
+
agent: AgentID;
|
|
1663
|
+
model: ModelRef;
|
|
1664
|
+
snapshot?: SnapshotID;
|
|
1665
|
+
started: number;
|
|
1745
1666
|
};
|
|
1746
1667
|
};
|
|
1747
|
-
export type
|
|
1748
|
-
id:
|
|
1668
|
+
export type SessionStepStreamed = {
|
|
1669
|
+
id: EventID;
|
|
1749
1670
|
created: number;
|
|
1750
1671
|
metadata?: {
|
|
1751
1672
|
[x: string]: any;
|
|
1752
1673
|
};
|
|
1753
|
-
type: "
|
|
1674
|
+
type: "session.step.streamed";
|
|
1675
|
+
durable: {
|
|
1676
|
+
aggregateID: string;
|
|
1677
|
+
seq: EventSeq;
|
|
1678
|
+
version: 1;
|
|
1679
|
+
};
|
|
1754
1680
|
location?: LocationRef;
|
|
1755
1681
|
data: {
|
|
1756
|
-
sessionID:
|
|
1757
|
-
|
|
1682
|
+
sessionID: SessionID;
|
|
1683
|
+
assistantMessageID: SessionMessageID;
|
|
1758
1684
|
};
|
|
1759
1685
|
};
|
|
1760
|
-
export type
|
|
1761
|
-
id:
|
|
1686
|
+
export type SessionStepEnded = {
|
|
1687
|
+
id: EventID;
|
|
1762
1688
|
created: number;
|
|
1763
1689
|
metadata?: {
|
|
1764
1690
|
[x: string]: any;
|
|
1765
1691
|
};
|
|
1766
|
-
type: "
|
|
1692
|
+
type: "session.step.ended";
|
|
1693
|
+
durable: {
|
|
1694
|
+
aggregateID: string;
|
|
1695
|
+
seq: EventSeq;
|
|
1696
|
+
version: 1;
|
|
1697
|
+
};
|
|
1767
1698
|
location?: LocationRef;
|
|
1768
1699
|
data: {
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
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>;
|
|
1772
1709
|
};
|
|
1773
1710
|
};
|
|
1774
|
-
export type
|
|
1775
|
-
id:
|
|
1711
|
+
export type SessionStepFailed = {
|
|
1712
|
+
id: EventID;
|
|
1776
1713
|
created: number;
|
|
1777
1714
|
metadata?: {
|
|
1778
1715
|
[x: string]: any;
|
|
1779
1716
|
};
|
|
1780
|
-
type: "
|
|
1717
|
+
type: "session.step.failed";
|
|
1718
|
+
durable: {
|
|
1719
|
+
aggregateID: string;
|
|
1720
|
+
seq: EventSeq;
|
|
1721
|
+
version: 1;
|
|
1722
|
+
};
|
|
1781
1723
|
location?: LocationRef;
|
|
1782
1724
|
data: {
|
|
1783
|
-
|
|
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>;
|
|
1784
1735
|
};
|
|
1785
1736
|
};
|
|
1786
|
-
export type
|
|
1787
|
-
id:
|
|
1737
|
+
export type SessionTextStarted = {
|
|
1738
|
+
id: EventID;
|
|
1788
1739
|
created: number;
|
|
1789
1740
|
metadata?: {
|
|
1790
1741
|
[x: string]: any;
|
|
1791
1742
|
};
|
|
1792
|
-
type: "
|
|
1743
|
+
type: "session.text.started";
|
|
1744
|
+
durable: {
|
|
1745
|
+
aggregateID: string;
|
|
1746
|
+
seq: EventSeq;
|
|
1747
|
+
version: 1;
|
|
1748
|
+
};
|
|
1793
1749
|
location?: LocationRef;
|
|
1794
1750
|
data: {
|
|
1795
|
-
|
|
1796
|
-
|
|
1751
|
+
sessionID: SessionID;
|
|
1752
|
+
assistantMessageID: SessionMessageID;
|
|
1753
|
+
ordinal: number;
|
|
1797
1754
|
};
|
|
1798
1755
|
};
|
|
1799
|
-
export type
|
|
1800
|
-
id:
|
|
1756
|
+
export type SessionTextEnded = {
|
|
1757
|
+
id: EventID;
|
|
1801
1758
|
created: number;
|
|
1802
1759
|
metadata?: {
|
|
1803
1760
|
[x: string]: any;
|
|
1804
1761
|
};
|
|
1805
|
-
type: "
|
|
1762
|
+
type: "session.text.ended";
|
|
1763
|
+
durable: {
|
|
1764
|
+
aggregateID: string;
|
|
1765
|
+
seq: EventSeq;
|
|
1766
|
+
version: 1;
|
|
1767
|
+
};
|
|
1806
1768
|
location?: LocationRef;
|
|
1807
|
-
data: {
|
|
1769
|
+
data: {
|
|
1770
|
+
sessionID: SessionID;
|
|
1771
|
+
assistantMessageID: SessionMessageID;
|
|
1772
|
+
ordinal: number;
|
|
1773
|
+
text: string;
|
|
1774
|
+
state?: SessionMessageProviderState1;
|
|
1775
|
+
};
|
|
1808
1776
|
};
|
|
1809
|
-
export type
|
|
1810
|
-
id:
|
|
1777
|
+
export type SessionReasoningStarted = {
|
|
1778
|
+
id: EventID;
|
|
1811
1779
|
created: number;
|
|
1812
1780
|
metadata?: {
|
|
1813
1781
|
[x: string]: any;
|
|
1814
1782
|
};
|
|
1815
|
-
type: "session.
|
|
1783
|
+
type: "session.reasoning.started";
|
|
1784
|
+
durable: {
|
|
1785
|
+
aggregateID: string;
|
|
1786
|
+
seq: EventSeq;
|
|
1787
|
+
version: 1;
|
|
1788
|
+
};
|
|
1816
1789
|
location?: LocationRef;
|
|
1817
1790
|
data: {
|
|
1818
|
-
sessionID:
|
|
1791
|
+
sessionID: SessionID;
|
|
1792
|
+
assistantMessageID: SessionMessageID;
|
|
1793
|
+
ordinal: number;
|
|
1794
|
+
state?: SessionMessageProviderState1;
|
|
1819
1795
|
};
|
|
1820
1796
|
};
|
|
1821
|
-
export type
|
|
1822
|
-
id:
|
|
1797
|
+
export type SessionReasoningEnded = {
|
|
1798
|
+
id: EventID;
|
|
1823
1799
|
created: number;
|
|
1824
1800
|
metadata?: {
|
|
1825
1801
|
[x: string]: any;
|
|
1826
1802
|
};
|
|
1827
|
-
type: "
|
|
1803
|
+
type: "session.reasoning.ended";
|
|
1804
|
+
durable: {
|
|
1805
|
+
aggregateID: string;
|
|
1806
|
+
seq: EventSeq;
|
|
1807
|
+
version: 1;
|
|
1808
|
+
};
|
|
1828
1809
|
location?: LocationRef;
|
|
1829
1810
|
data: {
|
|
1811
|
+
sessionID: SessionID;
|
|
1812
|
+
assistantMessageID: SessionMessageID;
|
|
1813
|
+
ordinal: number;
|
|
1830
1814
|
text: string;
|
|
1815
|
+
state?: SessionMessageProviderState1;
|
|
1831
1816
|
};
|
|
1832
1817
|
};
|
|
1833
|
-
export type
|
|
1834
|
-
id:
|
|
1818
|
+
export type SessionToolInputStarted = {
|
|
1819
|
+
id: EventID;
|
|
1835
1820
|
created: number;
|
|
1836
1821
|
metadata?: {
|
|
1837
1822
|
[x: string]: any;
|
|
1838
1823
|
};
|
|
1839
|
-
type: "
|
|
1824
|
+
type: "session.tool.input.started";
|
|
1825
|
+
durable: {
|
|
1826
|
+
aggregateID: string;
|
|
1827
|
+
seq: EventSeq;
|
|
1828
|
+
version: 1;
|
|
1829
|
+
};
|
|
1840
1830
|
location?: LocationRef;
|
|
1841
1831
|
data: {
|
|
1842
|
-
|
|
1832
|
+
sessionID: SessionID;
|
|
1833
|
+
assistantMessageID: SessionMessageID;
|
|
1834
|
+
id: string;
|
|
1835
|
+
name: string;
|
|
1843
1836
|
};
|
|
1844
1837
|
};
|
|
1845
|
-
export type
|
|
1846
|
-
id:
|
|
1838
|
+
export type SessionToolInputEnded = {
|
|
1839
|
+
id: EventID;
|
|
1847
1840
|
created: number;
|
|
1848
1841
|
metadata?: {
|
|
1849
1842
|
[x: string]: any;
|
|
1850
1843
|
};
|
|
1851
|
-
type: "
|
|
1844
|
+
type: "session.tool.input.ended";
|
|
1845
|
+
durable: {
|
|
1846
|
+
aggregateID: string;
|
|
1847
|
+
seq: EventSeq;
|
|
1848
|
+
version: 1;
|
|
1849
|
+
};
|
|
1852
1850
|
location?: LocationRef;
|
|
1853
1851
|
data: {
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1852
|
+
sessionID: SessionID;
|
|
1853
|
+
assistantMessageID: SessionMessageID;
|
|
1854
|
+
id: string;
|
|
1855
|
+
text: string;
|
|
1858
1856
|
};
|
|
1859
1857
|
};
|
|
1860
|
-
export type
|
|
1861
|
-
id:
|
|
1858
|
+
export type SessionToolCalled = {
|
|
1859
|
+
id: EventID;
|
|
1862
1860
|
created: number;
|
|
1863
1861
|
metadata?: {
|
|
1864
1862
|
[x: string]: any;
|
|
1865
1863
|
};
|
|
1866
|
-
type: "
|
|
1864
|
+
type: "session.tool.called";
|
|
1865
|
+
durable: {
|
|
1866
|
+
aggregateID: string;
|
|
1867
|
+
seq: EventSeq;
|
|
1868
|
+
version: 1;
|
|
1869
|
+
};
|
|
1867
1870
|
location?: LocationRef;
|
|
1868
1871
|
data: {
|
|
1869
|
-
sessionID:
|
|
1872
|
+
sessionID: SessionID;
|
|
1873
|
+
assistantMessageID: SessionMessageID;
|
|
1874
|
+
id: string;
|
|
1875
|
+
input: {
|
|
1876
|
+
[x: string]: any;
|
|
1877
|
+
};
|
|
1878
|
+
executed: boolean;
|
|
1879
|
+
state?: SessionMessageProviderState1;
|
|
1870
1880
|
};
|
|
1871
1881
|
};
|
|
1872
|
-
export type
|
|
1873
|
-
id:
|
|
1882
|
+
export type SessionToolSubagentPrepared = {
|
|
1883
|
+
id: EventID;
|
|
1874
1884
|
created: number;
|
|
1875
1885
|
metadata?: {
|
|
1876
1886
|
[x: string]: any;
|
|
1877
1887
|
};
|
|
1878
|
-
type: "
|
|
1888
|
+
type: "session.tool.subagent.prepared";
|
|
1889
|
+
durable: {
|
|
1890
|
+
aggregateID: string;
|
|
1891
|
+
seq: EventSeq;
|
|
1892
|
+
version: 1;
|
|
1893
|
+
};
|
|
1879
1894
|
location?: LocationRef;
|
|
1880
1895
|
data: {
|
|
1881
|
-
|
|
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
|
+
};
|
|
1882
1906
|
};
|
|
1883
1907
|
};
|
|
1884
|
-
export type
|
|
1885
|
-
id:
|
|
1908
|
+
export type SessionRetryScheduled = {
|
|
1909
|
+
id: EventID;
|
|
1886
1910
|
created: number;
|
|
1887
1911
|
metadata?: {
|
|
1888
1912
|
[x: string]: any;
|
|
1889
1913
|
};
|
|
1890
|
-
type: "
|
|
1914
|
+
type: "session.retry.scheduled";
|
|
1915
|
+
durable: {
|
|
1916
|
+
aggregateID: string;
|
|
1917
|
+
seq: EventSeq;
|
|
1918
|
+
version: 1;
|
|
1919
|
+
};
|
|
1891
1920
|
location?: LocationRef;
|
|
1892
1921
|
data: {
|
|
1893
|
-
|
|
1922
|
+
sessionID: SessionID;
|
|
1923
|
+
assistantMessageID: SessionMessageID;
|
|
1924
|
+
attempt: number;
|
|
1925
|
+
at: number;
|
|
1926
|
+
error: SessionStructuredError;
|
|
1894
1927
|
};
|
|
1895
1928
|
};
|
|
1896
|
-
export type
|
|
1897
|
-
id:
|
|
1929
|
+
export type SessionCompactionStarted = {
|
|
1930
|
+
id: EventID;
|
|
1898
1931
|
created: number;
|
|
1899
1932
|
metadata?: {
|
|
1900
1933
|
[x: string]: any;
|
|
1901
1934
|
};
|
|
1902
|
-
type: "
|
|
1935
|
+
type: "session.compaction.started";
|
|
1936
|
+
durable: {
|
|
1937
|
+
aggregateID: string;
|
|
1938
|
+
seq: EventSeq;
|
|
1939
|
+
version: 1;
|
|
1940
|
+
};
|
|
1903
1941
|
location?: LocationRef;
|
|
1904
1942
|
data: {
|
|
1905
|
-
|
|
1943
|
+
sessionID: SessionID;
|
|
1944
|
+
reason: "auto" | "manual";
|
|
1945
|
+
recent: string;
|
|
1946
|
+
inputID?: SessionMessageID;
|
|
1906
1947
|
};
|
|
1907
1948
|
};
|
|
1908
|
-
export type
|
|
1909
|
-
id:
|
|
1949
|
+
export type SessionCompactionFailed = {
|
|
1950
|
+
id: EventID;
|
|
1910
1951
|
created: number;
|
|
1911
1952
|
metadata?: {
|
|
1912
1953
|
[x: string]: any;
|
|
1913
1954
|
};
|
|
1914
|
-
type: "
|
|
1955
|
+
type: "session.compaction.failed";
|
|
1956
|
+
durable: {
|
|
1957
|
+
aggregateID: string;
|
|
1958
|
+
seq: EventSeq;
|
|
1959
|
+
version: 1;
|
|
1960
|
+
};
|
|
1915
1961
|
location?: LocationRef;
|
|
1916
1962
|
data: {
|
|
1917
|
-
|
|
1963
|
+
sessionID: SessionID;
|
|
1964
|
+
reason: "auto" | "manual";
|
|
1965
|
+
error: SessionStructuredError;
|
|
1966
|
+
inputID?: SessionMessageID;
|
|
1967
|
+
cost?: MoneyUSD;
|
|
1968
|
+
tokens?: TokenUsageInfo;
|
|
1918
1969
|
};
|
|
1919
1970
|
};
|
|
1920
|
-
export type
|
|
1921
|
-
id:
|
|
1971
|
+
export type SessionRevertStaged = {
|
|
1972
|
+
id: EventID;
|
|
1922
1973
|
created: number;
|
|
1923
1974
|
metadata?: {
|
|
1924
1975
|
[x: string]: any;
|
|
1925
1976
|
};
|
|
1926
|
-
type: "
|
|
1977
|
+
type: "session.revert.staged";
|
|
1978
|
+
durable: {
|
|
1979
|
+
aggregateID: string;
|
|
1980
|
+
seq: EventSeq;
|
|
1981
|
+
version: 1;
|
|
1982
|
+
};
|
|
1927
1983
|
location?: LocationRef;
|
|
1928
1984
|
data: {
|
|
1929
|
-
|
|
1985
|
+
sessionID: SessionID;
|
|
1986
|
+
revert: SessionRevert;
|
|
1930
1987
|
};
|
|
1931
1988
|
};
|
|
1932
|
-
export type
|
|
1933
|
-
id:
|
|
1989
|
+
export type SessionRevertCleared = {
|
|
1990
|
+
id: EventID;
|
|
1934
1991
|
created: number;
|
|
1935
1992
|
metadata?: {
|
|
1936
1993
|
[x: string]: any;
|
|
1937
1994
|
};
|
|
1938
|
-
type: "session.
|
|
1995
|
+
type: "session.revert.cleared";
|
|
1939
1996
|
durable: {
|
|
1940
1997
|
aggregateID: string;
|
|
1941
|
-
seq:
|
|
1998
|
+
seq: EventSeq;
|
|
1942
1999
|
version: 1;
|
|
1943
2000
|
};
|
|
1944
2001
|
location?: LocationRef;
|
|
1945
2002
|
data: {
|
|
1946
|
-
sessionID:
|
|
1947
|
-
location: LocationRef;
|
|
1948
|
-
projectID: string;
|
|
1949
|
-
subpath?: string;
|
|
2003
|
+
sessionID: SessionID;
|
|
1950
2004
|
};
|
|
1951
2005
|
};
|
|
1952
|
-
export type
|
|
1953
|
-
|
|
1954
|
-
projectID: string;
|
|
1955
|
-
subpath?: string;
|
|
1956
|
-
};
|
|
1957
|
-
export type SessionMetadataUpdated = {
|
|
1958
|
-
id: string;
|
|
2006
|
+
export type SessionRevertCommitted = {
|
|
2007
|
+
id: EventID;
|
|
1959
2008
|
created: number;
|
|
1960
2009
|
metadata?: {
|
|
1961
2010
|
[x: string]: any;
|
|
1962
2011
|
};
|
|
1963
|
-
type: "session.
|
|
2012
|
+
type: "session.revert.committed";
|
|
1964
2013
|
durable: {
|
|
1965
2014
|
aggregateID: string;
|
|
1966
|
-
seq:
|
|
2015
|
+
seq: EventSeq;
|
|
1967
2016
|
version: 1;
|
|
1968
2017
|
};
|
|
1969
2018
|
location?: LocationRef;
|
|
1970
2019
|
data: {
|
|
1971
|
-
sessionID:
|
|
1972
|
-
|
|
2020
|
+
sessionID: SessionID;
|
|
2021
|
+
to: SessionMessageID;
|
|
1973
2022
|
};
|
|
1974
2023
|
};
|
|
1975
|
-
export type
|
|
1976
|
-
id:
|
|
2024
|
+
export type SessionUsageRecorded = {
|
|
2025
|
+
id: EventID;
|
|
1977
2026
|
created: number;
|
|
1978
2027
|
metadata?: {
|
|
1979
2028
|
[x: string]: any;
|
|
1980
2029
|
};
|
|
1981
|
-
type: "session.
|
|
2030
|
+
type: "session.usage.recorded";
|
|
1982
2031
|
durable: {
|
|
1983
2032
|
aggregateID: string;
|
|
1984
|
-
seq:
|
|
2033
|
+
seq: EventSeq;
|
|
1985
2034
|
version: 1;
|
|
1986
2035
|
};
|
|
1987
2036
|
location?: LocationRef;
|
|
1988
2037
|
data: {
|
|
1989
|
-
sessionID:
|
|
1990
|
-
|
|
2038
|
+
sessionID: SessionID;
|
|
2039
|
+
source: "title" | "compaction";
|
|
2040
|
+
cost: MoneyUSD;
|
|
2041
|
+
tokens: TokenUsageInfo;
|
|
1991
2042
|
};
|
|
1992
2043
|
};
|
|
1993
|
-
export type
|
|
1994
|
-
id:
|
|
2044
|
+
export type LocationShutdown = {
|
|
2045
|
+
id: EventID;
|
|
1995
2046
|
created: number;
|
|
1996
2047
|
metadata?: {
|
|
1997
2048
|
[x: string]: any;
|
|
1998
2049
|
};
|
|
1999
|
-
type: "
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2050
|
+
type: "location.shutdown";
|
|
2051
|
+
location?: LocationRef;
|
|
2052
|
+
data: {};
|
|
2053
|
+
};
|
|
2054
|
+
export type ModelsDevRefreshed = {
|
|
2055
|
+
id: EventID;
|
|
2056
|
+
created: number;
|
|
2057
|
+
metadata?: {
|
|
2058
|
+
[x: string]: any;
|
|
2004
2059
|
};
|
|
2060
|
+
type: "models-dev.refreshed";
|
|
2005
2061
|
location?: LocationRef;
|
|
2006
|
-
data: {
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
truncated: boolean;
|
|
2014
|
-
};
|
|
2062
|
+
data: {};
|
|
2063
|
+
};
|
|
2064
|
+
export type CredentialUpdated = {
|
|
2065
|
+
id: EventID;
|
|
2066
|
+
created: number;
|
|
2067
|
+
metadata?: {
|
|
2068
|
+
[x: string]: any;
|
|
2015
2069
|
};
|
|
2070
|
+
type: "credential.updated";
|
|
2071
|
+
location?: LocationRef;
|
|
2072
|
+
data: {};
|
|
2016
2073
|
};
|
|
2017
|
-
export type
|
|
2018
|
-
id:
|
|
2074
|
+
export type CredentialSwitched = {
|
|
2075
|
+
id: EventID;
|
|
2019
2076
|
created: number;
|
|
2020
2077
|
metadata?: {
|
|
2021
2078
|
[x: string]: any;
|
|
2022
2079
|
};
|
|
2023
|
-
type: "
|
|
2080
|
+
type: "credential.switched";
|
|
2024
2081
|
location?: LocationRef;
|
|
2025
2082
|
data: {
|
|
2026
|
-
|
|
2083
|
+
integrationID: IntegrationID;
|
|
2084
|
+
credentialID: CredentialID | null;
|
|
2027
2085
|
};
|
|
2028
2086
|
};
|
|
2029
|
-
export type
|
|
2030
|
-
id:
|
|
2087
|
+
export type IntegrationUpdated = {
|
|
2088
|
+
id: EventID;
|
|
2031
2089
|
created: number;
|
|
2032
2090
|
metadata?: {
|
|
2033
2091
|
[x: string]: any;
|
|
2034
2092
|
};
|
|
2035
|
-
type: "
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2093
|
+
type: "integration.updated";
|
|
2094
|
+
location?: LocationRef;
|
|
2095
|
+
data: {};
|
|
2096
|
+
};
|
|
2097
|
+
export type ProviderUpdated = {
|
|
2098
|
+
id: EventID;
|
|
2099
|
+
created: number;
|
|
2100
|
+
metadata?: {
|
|
2101
|
+
[x: string]: any;
|
|
2040
2102
|
};
|
|
2103
|
+
type: "provider.updated";
|
|
2041
2104
|
location?: LocationRef;
|
|
2042
|
-
data: {
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
tokens: TokenUsageInfo;
|
|
2050
|
-
snapshot?: string;
|
|
2051
|
-
files?: Array<string>;
|
|
2105
|
+
data: {};
|
|
2106
|
+
};
|
|
2107
|
+
export type ModelUpdated = {
|
|
2108
|
+
id: EventID;
|
|
2109
|
+
created: number;
|
|
2110
|
+
metadata?: {
|
|
2111
|
+
[x: string]: any;
|
|
2052
2112
|
};
|
|
2113
|
+
type: "model.updated";
|
|
2114
|
+
location?: LocationRef;
|
|
2115
|
+
data: {};
|
|
2053
2116
|
};
|
|
2054
|
-
export type
|
|
2055
|
-
id:
|
|
2117
|
+
export type AgentUpdated = {
|
|
2118
|
+
id: EventID;
|
|
2056
2119
|
created: number;
|
|
2057
2120
|
metadata?: {
|
|
2058
2121
|
[x: string]: any;
|
|
2059
2122
|
};
|
|
2060
|
-
type: "
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2123
|
+
type: "agent.updated";
|
|
2124
|
+
location?: LocationRef;
|
|
2125
|
+
data: {};
|
|
2126
|
+
};
|
|
2127
|
+
export type SessionUsageUpdated = {
|
|
2128
|
+
id: EventID;
|
|
2129
|
+
created: number;
|
|
2130
|
+
metadata?: {
|
|
2131
|
+
[x: string]: any;
|
|
2065
2132
|
};
|
|
2133
|
+
type: "session.usage.updated";
|
|
2066
2134
|
location?: LocationRef;
|
|
2067
2135
|
data: {
|
|
2068
|
-
sessionID:
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
finish?: "content-filter";
|
|
2072
|
-
rawFinish?: string;
|
|
2073
|
-
providerState?: SessionMessageProviderState1;
|
|
2074
|
-
cost?: MoneyUSD;
|
|
2075
|
-
tokens?: TokenUsageInfo;
|
|
2076
|
-
snapshot?: string;
|
|
2077
|
-
files?: Array<string>;
|
|
2136
|
+
sessionID: SessionID;
|
|
2137
|
+
cost: MoneyUSD;
|
|
2138
|
+
tokens: TokenUsageInfo;
|
|
2078
2139
|
};
|
|
2079
2140
|
};
|
|
2080
|
-
export type
|
|
2081
|
-
id:
|
|
2141
|
+
export type SessionTextDelta = {
|
|
2142
|
+
id: EventID;
|
|
2082
2143
|
created: number;
|
|
2083
2144
|
metadata?: {
|
|
2084
2145
|
[x: string]: any;
|
|
2085
2146
|
};
|
|
2086
|
-
type: "session.text.
|
|
2087
|
-
durable: {
|
|
2088
|
-
aggregateID: string;
|
|
2089
|
-
seq: number;
|
|
2090
|
-
version: 1;
|
|
2091
|
-
};
|
|
2147
|
+
type: "session.text.delta";
|
|
2092
2148
|
location?: LocationRef;
|
|
2093
2149
|
data: {
|
|
2094
|
-
sessionID:
|
|
2095
|
-
assistantMessageID:
|
|
2150
|
+
sessionID: SessionID;
|
|
2151
|
+
assistantMessageID: SessionMessageID;
|
|
2096
2152
|
ordinal: number;
|
|
2097
|
-
|
|
2098
|
-
state?: SessionMessageProviderState1;
|
|
2153
|
+
delta: string;
|
|
2099
2154
|
};
|
|
2100
2155
|
};
|
|
2101
|
-
export type
|
|
2102
|
-
id:
|
|
2156
|
+
export type SessionReasoningDelta = {
|
|
2157
|
+
id: EventID;
|
|
2103
2158
|
created: number;
|
|
2104
2159
|
metadata?: {
|
|
2105
2160
|
[x: string]: any;
|
|
2106
2161
|
};
|
|
2107
|
-
type: "session.reasoning.
|
|
2108
|
-
durable: {
|
|
2109
|
-
aggregateID: string;
|
|
2110
|
-
seq: number;
|
|
2111
|
-
version: 1;
|
|
2112
|
-
};
|
|
2162
|
+
type: "session.reasoning.delta";
|
|
2113
2163
|
location?: LocationRef;
|
|
2114
2164
|
data: {
|
|
2115
|
-
sessionID:
|
|
2116
|
-
assistantMessageID:
|
|
2165
|
+
sessionID: SessionID;
|
|
2166
|
+
assistantMessageID: SessionMessageID;
|
|
2117
2167
|
ordinal: number;
|
|
2118
|
-
|
|
2168
|
+
delta: string;
|
|
2119
2169
|
};
|
|
2120
2170
|
};
|
|
2121
|
-
export type
|
|
2122
|
-
id:
|
|
2171
|
+
export type SessionToolInputDelta = {
|
|
2172
|
+
id: EventID;
|
|
2123
2173
|
created: number;
|
|
2124
2174
|
metadata?: {
|
|
2125
2175
|
[x: string]: any;
|
|
2126
2176
|
};
|
|
2127
|
-
type: "session.
|
|
2128
|
-
durable: {
|
|
2129
|
-
aggregateID: string;
|
|
2130
|
-
seq: number;
|
|
2131
|
-
version: 1;
|
|
2132
|
-
};
|
|
2177
|
+
type: "session.tool.input.delta";
|
|
2133
2178
|
location?: LocationRef;
|
|
2134
2179
|
data: {
|
|
2135
|
-
sessionID:
|
|
2136
|
-
assistantMessageID:
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
state?: SessionMessageProviderState1;
|
|
2180
|
+
sessionID: SessionID;
|
|
2181
|
+
assistantMessageID: SessionMessageID;
|
|
2182
|
+
id: string;
|
|
2183
|
+
delta: string;
|
|
2140
2184
|
};
|
|
2141
2185
|
};
|
|
2142
|
-
export type
|
|
2143
|
-
id:
|
|
2186
|
+
export type SessionToolProgress = {
|
|
2187
|
+
id: EventID;
|
|
2144
2188
|
created: number;
|
|
2145
2189
|
metadata?: {
|
|
2146
2190
|
[x: string]: any;
|
|
2147
2191
|
};
|
|
2148
|
-
type: "session.tool.
|
|
2149
|
-
durable: {
|
|
2150
|
-
aggregateID: string;
|
|
2151
|
-
seq: number;
|
|
2152
|
-
version: 1;
|
|
2153
|
-
};
|
|
2192
|
+
type: "session.tool.progress";
|
|
2154
2193
|
location?: LocationRef;
|
|
2155
2194
|
data: {
|
|
2156
|
-
sessionID:
|
|
2157
|
-
assistantMessageID:
|
|
2195
|
+
sessionID: SessionID;
|
|
2196
|
+
assistantMessageID: SessionMessageID;
|
|
2158
2197
|
id: string;
|
|
2159
|
-
|
|
2160
|
-
[x: string]:
|
|
2198
|
+
metadata: {
|
|
2199
|
+
[x: string]: JsonValue;
|
|
2161
2200
|
};
|
|
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;
|
|
2269
2201
|
};
|
|
2270
2202
|
};
|
|
2271
|
-
export type
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
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>;
|
|
2203
|
+
export type SessionCompactionDelta = {
|
|
2204
|
+
id: EventID;
|
|
2205
|
+
created: number;
|
|
2206
|
+
metadata?: {
|
|
2207
|
+
[x: string]: any;
|
|
2208
|
+
};
|
|
2209
|
+
type: "session.compaction.delta";
|
|
2210
|
+
location?: LocationRef;
|
|
2211
|
+
data: {
|
|
2212
|
+
sessionID: SessionID;
|
|
2213
|
+
text: string;
|
|
2214
|
+
};
|
|
2301
2215
|
};
|
|
2302
|
-
export type
|
|
2303
|
-
id:
|
|
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,127 +2266,216 @@ 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;
|
|
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: {};
|
|
2430
2357
|
};
|
|
2431
|
-
export type
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
maximum?: number;
|
|
2441
|
-
default?: number;
|
|
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: {};
|
|
2442
2367
|
};
|
|
2443
|
-
export type
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
maximum?: number;
|
|
2453
|
-
default?: number;
|
|
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: {};
|
|
2454
2377
|
};
|
|
2455
|
-
export type
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2378
|
+
export type PtyExited = {
|
|
2379
|
+
id: EventID;
|
|
2380
|
+
created: number;
|
|
2381
|
+
metadata?: {
|
|
2382
|
+
[x: string]: any;
|
|
2383
|
+
};
|
|
2384
|
+
type: "pty.exited";
|
|
2385
|
+
location?: LocationRef;
|
|
2386
|
+
data: {
|
|
2387
|
+
id: PtyID;
|
|
2388
|
+
exitCode: number;
|
|
2389
|
+
};
|
|
2464
2390
|
};
|
|
2465
|
-
export type
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
custom?: boolean;
|
|
2477
|
-
default?: Array<string>;
|
|
2391
|
+
export type PtyDeleted = {
|
|
2392
|
+
id: EventID;
|
|
2393
|
+
created: number;
|
|
2394
|
+
metadata?: {
|
|
2395
|
+
[x: string]: any;
|
|
2396
|
+
};
|
|
2397
|
+
type: "pty.deleted";
|
|
2398
|
+
location?: LocationRef;
|
|
2399
|
+
data: {
|
|
2400
|
+
id: PtyID;
|
|
2401
|
+
};
|
|
2478
2402
|
};
|
|
2479
|
-
export type
|
|
2480
|
-
|
|
2403
|
+
export type PersistentPtyRemoved = {
|
|
2404
|
+
id: EventID;
|
|
2405
|
+
created: number;
|
|
2406
|
+
metadata?: {
|
|
2407
|
+
[x: string]: any;
|
|
2408
|
+
};
|
|
2409
|
+
type: "persistent-pty.removed";
|
|
2410
|
+
location?: LocationRef;
|
|
2411
|
+
data: {
|
|
2412
|
+
sessionID: SessionID;
|
|
2413
|
+
ptyID: PtyID;
|
|
2414
|
+
};
|
|
2415
|
+
};
|
|
2416
|
+
export type ShellCreated = {
|
|
2417
|
+
id: EventID;
|
|
2418
|
+
created: number;
|
|
2419
|
+
metadata?: {
|
|
2420
|
+
[x: string]: any;
|
|
2421
|
+
};
|
|
2422
|
+
type: "shell.created";
|
|
2423
|
+
location?: LocationRef;
|
|
2424
|
+
data: {
|
|
2425
|
+
info: ShellInfo;
|
|
2426
|
+
};
|
|
2427
|
+
};
|
|
2428
|
+
export type ShellExited = {
|
|
2429
|
+
id: EventID;
|
|
2430
|
+
created: number;
|
|
2431
|
+
metadata?: {
|
|
2432
|
+
[x: string]: any;
|
|
2433
|
+
};
|
|
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?: {
|
|
2446
|
+
[x: string]: any;
|
|
2447
|
+
};
|
|
2448
|
+
type: "shell.deleted";
|
|
2449
|
+
location?: LocationRef;
|
|
2450
|
+
data: {
|
|
2451
|
+
id: ShellID;
|
|
2452
|
+
};
|
|
2453
|
+
};
|
|
2454
|
+
export type FormCancelled = {
|
|
2455
|
+
id: EventID;
|
|
2456
|
+
created: number;
|
|
2457
|
+
metadata?: {
|
|
2458
|
+
[x: string]: any;
|
|
2459
|
+
};
|
|
2460
|
+
type: "form.cancelled";
|
|
2461
|
+
location?: LocationRef;
|
|
2462
|
+
data: {
|
|
2463
|
+
id: FormID;
|
|
2464
|
+
sessionID: string;
|
|
2465
|
+
};
|
|
2466
|
+
};
|
|
2467
|
+
export type WebsearchUpdated = {
|
|
2468
|
+
id: EventID;
|
|
2469
|
+
created: number;
|
|
2470
|
+
metadata?: {
|
|
2471
|
+
[x: string]: any;
|
|
2472
|
+
};
|
|
2473
|
+
type: "websearch.updated";
|
|
2474
|
+
location?: LocationRef;
|
|
2475
|
+
data: {};
|
|
2481
2476
|
};
|
|
2482
2477
|
export type SessionStatusUpdated = {
|
|
2483
|
-
id:
|
|
2478
|
+
id: EventID;
|
|
2484
2479
|
created: number;
|
|
2485
2480
|
metadata?: {
|
|
2486
2481
|
[x: string]: any;
|
|
@@ -2488,218 +2483,135 @@ export type SessionStatusUpdated = {
|
|
|
2488
2483
|
type: "session.status";
|
|
2489
2484
|
location?: LocationRef;
|
|
2490
2485
|
data: {
|
|
2491
|
-
sessionID:
|
|
2486
|
+
sessionID: SessionID;
|
|
2492
2487
|
status: SessionStatus;
|
|
2493
2488
|
};
|
|
2494
2489
|
};
|
|
2495
|
-
export type
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
branch: VcsBranch;
|
|
2500
|
-
};
|
|
2501
|
-
export type SessionInboxMove = {
|
|
2502
|
-
id: string;
|
|
2503
|
-
sessionID: string;
|
|
2504
|
-
time: {
|
|
2505
|
-
created: number;
|
|
2506
|
-
};
|
|
2507
|
-
type: "move";
|
|
2508
|
-
delivery: SessionInboxDelivery;
|
|
2509
|
-
payload: SessionInboxMovePayload;
|
|
2510
|
-
};
|
|
2511
|
-
export type ModelVariant = {
|
|
2512
|
-
id: string;
|
|
2513
|
-
settings?: ModelSettings;
|
|
2514
|
-
headers?: {
|
|
2515
|
-
[x: string]: string;
|
|
2516
|
-
};
|
|
2517
|
-
body?: {
|
|
2490
|
+
export type SessionIdle = {
|
|
2491
|
+
id: EventID;
|
|
2492
|
+
created: number;
|
|
2493
|
+
metadata?: {
|
|
2518
2494
|
[x: string]: any;
|
|
2519
2495
|
};
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
[x: string]: string;
|
|
2525
|
-
};
|
|
2526
|
-
body: {
|
|
2527
|
-
[x: string]: any;
|
|
2496
|
+
type: "session.idle";
|
|
2497
|
+
location?: LocationRef;
|
|
2498
|
+
data: {
|
|
2499
|
+
sessionID: SessionID;
|
|
2528
2500
|
};
|
|
2529
2501
|
};
|
|
2530
|
-
export type
|
|
2531
|
-
id:
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
name: string;
|
|
2535
|
-
activation: "auto" | "enabled" | "disabled";
|
|
2536
|
-
package: string;
|
|
2537
|
-
settings?: ProviderSettings;
|
|
2538
|
-
headers?: {
|
|
2539
|
-
[x: string]: string;
|
|
2540
|
-
};
|
|
2541
|
-
body?: {
|
|
2502
|
+
export type TuiPromptAppend = {
|
|
2503
|
+
id: EventID;
|
|
2504
|
+
created: number;
|
|
2505
|
+
metadata?: {
|
|
2542
2506
|
[x: string]: any;
|
|
2543
2507
|
};
|
|
2508
|
+
type: "tui.prompt.append";
|
|
2509
|
+
location?: LocationRef;
|
|
2510
|
+
data: {
|
|
2511
|
+
text: string;
|
|
2512
|
+
};
|
|
2544
2513
|
};
|
|
2545
|
-
export type
|
|
2546
|
-
|
|
2547
|
-
id: string;
|
|
2514
|
+
export type TuiCommandExecute = {
|
|
2515
|
+
id: EventID;
|
|
2548
2516
|
created: number;
|
|
2549
2517
|
metadata?: {
|
|
2550
2518
|
[x: string]: any;
|
|
2551
2519
|
};
|
|
2552
|
-
type: "
|
|
2553
|
-
durable: {
|
|
2554
|
-
aggregateID: string;
|
|
2555
|
-
seq: number;
|
|
2556
|
-
version: 1;
|
|
2557
|
-
};
|
|
2520
|
+
type: "tui.command.execute";
|
|
2558
2521
|
location?: LocationRef;
|
|
2559
2522
|
data: {
|
|
2560
|
-
|
|
2561
|
-
revert: SessionRevert;
|
|
2562
|
-
};
|
|
2563
|
-
};
|
|
2564
|
-
export type SessionStatsInfo = {
|
|
2565
|
-
range: {
|
|
2566
|
-
from: number;
|
|
2567
|
-
to: number;
|
|
2523
|
+
command: "session.list" | "session.new" | "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 & {});
|
|
2568
2524
|
};
|
|
2569
|
-
sessions: number;
|
|
2570
|
-
subagents: number;
|
|
2571
|
-
prompts: number;
|
|
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>;
|
|
2580
2525
|
};
|
|
2581
|
-
export type
|
|
2582
|
-
id:
|
|
2526
|
+
export type TuiToastShow = {
|
|
2527
|
+
id: EventID;
|
|
2528
|
+
created: number;
|
|
2583
2529
|
metadata?: {
|
|
2584
|
-
[x: string]:
|
|
2530
|
+
[x: string]: any;
|
|
2585
2531
|
};
|
|
2586
|
-
|
|
2587
|
-
|
|
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;
|
|
2588
2539
|
};
|
|
2589
|
-
text: string;
|
|
2590
|
-
files?: Array<PromptFileAttachment>;
|
|
2591
|
-
agents?: Array<PromptAgentAttachment>;
|
|
2592
|
-
skills?: Array<PromptSkillAttachment>;
|
|
2593
|
-
type: "user";
|
|
2594
2540
|
};
|
|
2595
|
-
export type
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
agents?: Array<PromptAgentAttachment>;
|
|
2599
|
-
skills?: Array<PromptSkillAttachment>;
|
|
2541
|
+
export type TuiSessionSelect = {
|
|
2542
|
+
id: EventID;
|
|
2543
|
+
created: number;
|
|
2600
2544
|
metadata?: {
|
|
2601
|
-
[x: string]:
|
|
2545
|
+
[x: string]: any;
|
|
2546
|
+
};
|
|
2547
|
+
type: "tui.session.select";
|
|
2548
|
+
location?: LocationRef;
|
|
2549
|
+
data: {
|
|
2550
|
+
sessionID: SessionID;
|
|
2602
2551
|
};
|
|
2603
2552
|
};
|
|
2604
|
-
export type
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
agents?: Array<PromptAgentAttachment>;
|
|
2608
|
-
skills?: Array<PromptSkillAttachment>;
|
|
2553
|
+
export type InstallationUpdated = {
|
|
2554
|
+
id: EventID;
|
|
2555
|
+
created: number;
|
|
2609
2556
|
metadata?: {
|
|
2610
2557
|
[x: string]: any;
|
|
2611
2558
|
};
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
[x: string]: JsonValue;
|
|
2617
|
-
};
|
|
2618
|
-
content: [ToolContent, ...Array<ToolContent>];
|
|
2619
|
-
metadata?: {
|
|
2620
|
-
[x: string]: JsonValue;
|
|
2559
|
+
type: "installation.updated";
|
|
2560
|
+
location?: LocationRef;
|
|
2561
|
+
data: {
|
|
2562
|
+
version: string;
|
|
2621
2563
|
};
|
|
2622
2564
|
};
|
|
2623
|
-
export type
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
[x: string]: JsonValue;
|
|
2627
|
-
};
|
|
2628
|
-
error: SessionStructuredError;
|
|
2629
|
-
content?: [ToolContent, ...Array<ToolContent>];
|
|
2565
|
+
export type InstallationUpdateAvailable = {
|
|
2566
|
+
id: EventID;
|
|
2567
|
+
created: number;
|
|
2630
2568
|
metadata?: {
|
|
2631
|
-
[x: string]:
|
|
2569
|
+
[x: string]: any;
|
|
2570
|
+
};
|
|
2571
|
+
type: "installation.update-available";
|
|
2572
|
+
location?: LocationRef;
|
|
2573
|
+
data: {
|
|
2574
|
+
version: string;
|
|
2632
2575
|
};
|
|
2633
2576
|
};
|
|
2634
|
-
export type
|
|
2635
|
-
|
|
2636
|
-
|
|
2577
|
+
export type VcsBranchUpdated = {
|
|
2578
|
+
id: EventID;
|
|
2579
|
+
created: number;
|
|
2637
2580
|
metadata?: {
|
|
2638
|
-
[x: string]:
|
|
2581
|
+
[x: string]: any;
|
|
2639
2582
|
};
|
|
2640
|
-
|
|
2641
|
-
|
|
2583
|
+
type: "vcs.branch.updated";
|
|
2584
|
+
location?: LocationRef;
|
|
2585
|
+
data: {
|
|
2586
|
+
branch?: string;
|
|
2642
2587
|
};
|
|
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
2588
|
};
|
|
2653
|
-
export type
|
|
2654
|
-
id:
|
|
2589
|
+
export type McpStatusChanged = {
|
|
2590
|
+
id: EventID;
|
|
2655
2591
|
created: number;
|
|
2656
2592
|
metadata?: {
|
|
2657
2593
|
[x: string]: any;
|
|
2658
2594
|
};
|
|
2659
|
-
type: "
|
|
2660
|
-
durable: {
|
|
2661
|
-
aggregateID: string;
|
|
2662
|
-
seq: number;
|
|
2663
|
-
version: 1;
|
|
2664
|
-
};
|
|
2595
|
+
type: "mcp.status.changed";
|
|
2665
2596
|
location?: LocationRef;
|
|
2666
2597
|
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;
|
|
2598
|
+
server: string;
|
|
2676
2599
|
};
|
|
2677
2600
|
};
|
|
2678
|
-
export type
|
|
2679
|
-
id:
|
|
2601
|
+
export type McpResourcesChanged = {
|
|
2602
|
+
id: EventID;
|
|
2680
2603
|
created: number;
|
|
2681
2604
|
metadata?: {
|
|
2682
2605
|
[x: string]: any;
|
|
2683
2606
|
};
|
|
2684
|
-
type: "
|
|
2685
|
-
durable: {
|
|
2686
|
-
aggregateID: string;
|
|
2687
|
-
seq: number;
|
|
2688
|
-
version: 2;
|
|
2689
|
-
};
|
|
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>];
|
|
@@ -2780,18 +2692,80 @@ export type FormState = {
|
|
|
2780
2692
|
status: "cancelled";
|
|
2781
2693
|
message?: string;
|
|
2782
2694
|
};
|
|
2783
|
-
export type CredentialKey = {
|
|
2784
|
-
type: "key";
|
|
2785
|
-
key: string;
|
|
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;
|
|
2786
2747
|
metadata?: {
|
|
2787
|
-
[x: string]:
|
|
2748
|
+
[x: string]: any;
|
|
2749
|
+
};
|
|
2750
|
+
type: "persistent-pty.added";
|
|
2751
|
+
location?: LocationRef;
|
|
2752
|
+
data: {
|
|
2753
|
+
sessionID: SessionID;
|
|
2754
|
+
terminal: PersistentPtyInfo;
|
|
2755
|
+
};
|
|
2756
|
+
};
|
|
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;
|
|
@@ -2946,6 +2991,11 @@ export type ConfigEntry = {
|
|
|
2946
2991
|
};
|
|
2947
2992
|
username?: string;
|
|
2948
2993
|
permissions?: PermissionRuleset;
|
|
2994
|
+
policies?: Array<{
|
|
2995
|
+
action: "provider.use" | "tool.use" | "integration.use";
|
|
2996
|
+
resource: string;
|
|
2997
|
+
effect: "allow" | "deny";
|
|
2998
|
+
}>;
|
|
2949
2999
|
agents?: {
|
|
2950
3000
|
[x: string]: {
|
|
2951
3001
|
model?: string | {
|
|
@@ -3095,7 +3145,7 @@ export type ConfigEntry = {
|
|
|
3095
3145
|
};
|
|
3096
3146
|
};
|
|
3097
3147
|
websearch?: false | {
|
|
3098
|
-
provider: "random" |
|
|
3148
|
+
provider: "random" | WebSearchID;
|
|
3099
3149
|
};
|
|
3100
3150
|
plugins?: Array<string | {
|
|
3101
3151
|
package: string;
|
|
@@ -3111,10 +3161,11 @@ export type ConfigEntry = {
|
|
|
3111
3161
|
};
|
|
3112
3162
|
providers?: {
|
|
3113
3163
|
[x: string]: {
|
|
3114
|
-
canonical?:
|
|
3164
|
+
canonical?: ProviderID;
|
|
3115
3165
|
name?: string;
|
|
3116
3166
|
env?: Array<string>;
|
|
3117
3167
|
package?: string;
|
|
3168
|
+
compatibility?: ProviderCompatibility;
|
|
3118
3169
|
settings?: ConfigProviderSettings;
|
|
3119
3170
|
headers?: {
|
|
3120
3171
|
[x: string]: string;
|
|
@@ -3193,11 +3244,11 @@ export type ConfigEntry = {
|
|
|
3193
3244
|
};
|
|
3194
3245
|
} | {
|
|
3195
3246
|
type: "directory";
|
|
3196
|
-
path:
|
|
3247
|
+
path: AbsolutePath;
|
|
3197
3248
|
};
|
|
3198
3249
|
export type SessionInboxUser = {
|
|
3199
|
-
id:
|
|
3200
|
-
sessionID:
|
|
3250
|
+
id: SessionMessageID;
|
|
3251
|
+
sessionID: SessionID;
|
|
3201
3252
|
time: {
|
|
3202
3253
|
created: number;
|
|
3203
3254
|
};
|
|
@@ -3205,6 +3256,20 @@ export type SessionInboxUser = {
|
|
|
3205
3256
|
payload: SessionInboxUserPayload;
|
|
3206
3257
|
delivery: SessionInboxDelivery;
|
|
3207
3258
|
};
|
|
3259
|
+
export type SessionMessageAssistantTool = {
|
|
3260
|
+
type: "tool";
|
|
3261
|
+
id: string;
|
|
3262
|
+
name: string;
|
|
3263
|
+
executed?: boolean;
|
|
3264
|
+
providerState?: SessionMessageProviderState;
|
|
3265
|
+
providerResultState?: SessionMessageProviderState;
|
|
3266
|
+
state: SessionMessageToolStateStreaming | SessionMessageToolStateRunning | SessionMessageToolStateCompleted | SessionMessageToolStateError;
|
|
3267
|
+
time: {
|
|
3268
|
+
created: number;
|
|
3269
|
+
ran?: number;
|
|
3270
|
+
completed?: number;
|
|
3271
|
+
};
|
|
3272
|
+
};
|
|
3208
3273
|
export type SessionInboxItem = {
|
|
3209
3274
|
type: "user";
|
|
3210
3275
|
payload: SessionInboxUserPayload1;
|
|
@@ -3222,21 +3287,6 @@ export type SessionInboxItem = {
|
|
|
3222
3287
|
payload: SessionInboxMovePayload1;
|
|
3223
3288
|
delivery: SessionInboxDelivery;
|
|
3224
3289
|
};
|
|
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
3290
|
export type SessionMessageAssistantTool1 = {
|
|
3241
3291
|
type: "tool";
|
|
3242
3292
|
id: string;
|
|
@@ -3254,35 +3304,17 @@ export type SessionMessageAssistantTool1 = {
|
|
|
3254
3304
|
export type FormFields = [FormField, ...Array<FormField>];
|
|
3255
3305
|
export type CredentialValue = CredentialOAuth | CredentialKey | CredentialExternal;
|
|
3256
3306
|
export type FormFields2 = [FormField1, ...Array<FormField1>];
|
|
3307
|
+
export type SessionMessageCompaction = SessionMessageCompactionRunning | SessionMessageCompactionCompleted | SessionMessageCompactionFailed;
|
|
3257
3308
|
export type SessionsResponse = {
|
|
3258
3309
|
data: Array<SessionInfo>;
|
|
3259
3310
|
cursor: {
|
|
3260
|
-
previous?:
|
|
3261
|
-
next?:
|
|
3311
|
+
previous?: SessionsCursor | null;
|
|
3312
|
+
next?: SessionsCursor | null;
|
|
3262
3313
|
};
|
|
3263
3314
|
};
|
|
3264
3315
|
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
3316
|
export type SessionMessageAssistant = {
|
|
3285
|
-
id:
|
|
3317
|
+
id: SessionMessageID;
|
|
3286
3318
|
metadata?: {
|
|
3287
3319
|
[x: string]: JsonValue;
|
|
3288
3320
|
};
|
|
@@ -3292,13 +3324,13 @@ export type SessionMessageAssistant = {
|
|
|
3292
3324
|
completed?: number;
|
|
3293
3325
|
};
|
|
3294
3326
|
type: "assistant";
|
|
3295
|
-
agent:
|
|
3327
|
+
agent: AgentID;
|
|
3296
3328
|
model: ModelRef;
|
|
3297
3329
|
content: Array<SessionMessageAssistantText | SessionMessageAssistantReasoning | SessionMessageAssistantTool>;
|
|
3298
3330
|
snapshot?: {
|
|
3299
|
-
start?:
|
|
3300
|
-
end?:
|
|
3301
|
-
files?: Array<
|
|
3331
|
+
start?: SnapshotID;
|
|
3332
|
+
end?: SnapshotID;
|
|
3333
|
+
files?: Array<RelativePath>;
|
|
3302
3334
|
};
|
|
3303
3335
|
finish?: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
|
|
3304
3336
|
rawFinish?: string;
|
|
@@ -3308,16 +3340,35 @@ export type SessionMessageAssistant = {
|
|
|
3308
3340
|
error?: SessionStructuredError;
|
|
3309
3341
|
retry?: SessionMessageAssistantRetry;
|
|
3310
3342
|
};
|
|
3343
|
+
export type SessionInboxEnqueued = {
|
|
3344
|
+
id: EventID;
|
|
3345
|
+
created: number;
|
|
3346
|
+
metadata?: {
|
|
3347
|
+
[x: string]: any;
|
|
3348
|
+
};
|
|
3349
|
+
type: "session.inbox.enqueued";
|
|
3350
|
+
durable: {
|
|
3351
|
+
aggregateID: string;
|
|
3352
|
+
seq: EventSeq;
|
|
3353
|
+
version: 1;
|
|
3354
|
+
};
|
|
3355
|
+
location?: LocationRef;
|
|
3356
|
+
data: {
|
|
3357
|
+
sessionID: SessionID;
|
|
3358
|
+
inboxID: SessionMessageID;
|
|
3359
|
+
item: SessionInboxItem;
|
|
3360
|
+
};
|
|
3361
|
+
};
|
|
3311
3362
|
export type SessionMessageAssistantContentEncoded = SessionMessageAssistantText1 | SessionMessageAssistantReasoning1 | SessionMessageAssistantTool1;
|
|
3312
3363
|
export type FormInfo = {
|
|
3313
|
-
id:
|
|
3364
|
+
id: FormID;
|
|
3314
3365
|
sessionID: string;
|
|
3315
3366
|
title: string;
|
|
3316
3367
|
metadata?: FormMetadata;
|
|
3317
3368
|
fields: FormFields;
|
|
3318
3369
|
};
|
|
3319
3370
|
export type FormDetail = {
|
|
3320
|
-
id:
|
|
3371
|
+
id: FormID;
|
|
3321
3372
|
sessionID: string;
|
|
3322
3373
|
title: string;
|
|
3323
3374
|
metadata?: FormMetadata;
|
|
@@ -3325,7 +3376,7 @@ export type FormDetail = {
|
|
|
3325
3376
|
state: FormState;
|
|
3326
3377
|
};
|
|
3327
3378
|
export type IntegrationOAuthMethod = {
|
|
3328
|
-
id:
|
|
3379
|
+
id: IntegrationMethodID;
|
|
3329
3380
|
type: "oauth";
|
|
3330
3381
|
label: string;
|
|
3331
3382
|
form?: FormFields;
|
|
@@ -3336,20 +3387,20 @@ export type IntegrationKeyMethod = {
|
|
|
3336
3387
|
form?: FormFields;
|
|
3337
3388
|
};
|
|
3338
3389
|
export type IntegrationExternalMethod = {
|
|
3339
|
-
id:
|
|
3390
|
+
id: IntegrationMethodID;
|
|
3340
3391
|
type: "external";
|
|
3341
3392
|
label: string;
|
|
3342
3393
|
form?: FormFields;
|
|
3343
3394
|
};
|
|
3344
3395
|
export type CredentialEntry = {
|
|
3345
|
-
id:
|
|
3346
|
-
integrationID:
|
|
3396
|
+
id: CredentialID;
|
|
3397
|
+
integrationID: IntegrationID;
|
|
3347
3398
|
label: string;
|
|
3348
3399
|
active: boolean;
|
|
3349
3400
|
value: CredentialValue;
|
|
3350
3401
|
};
|
|
3351
3402
|
export type FormInfo1 = {
|
|
3352
|
-
id:
|
|
3403
|
+
id: FormID;
|
|
3353
3404
|
sessionID: string;
|
|
3354
3405
|
title: string;
|
|
3355
3406
|
metadata?: FormMetadata1;
|
|
@@ -3357,7 +3408,7 @@ export type FormInfo1 = {
|
|
|
3357
3408
|
};
|
|
3358
3409
|
export type SessionMessageInfo = SessionMessageAgentSelected | SessionMessageModelSelected | SessionMessageLocationSwitched | SessionMessageUser | SessionMessageSynthetic | SessionMessageSystem | SessionMessageSkill | SessionMessageShell | SessionMessageAssistant | SessionMessageCompaction | SessionMessageIdle;
|
|
3359
3410
|
export type SessionMessageContentUpdated = {
|
|
3360
|
-
id:
|
|
3411
|
+
id: EventID;
|
|
3361
3412
|
created: number;
|
|
3362
3413
|
metadata?: {
|
|
3363
3414
|
[x: string]: any;
|
|
@@ -3365,19 +3416,19 @@ export type SessionMessageContentUpdated = {
|
|
|
3365
3416
|
type: "session.message.content.updated";
|
|
3366
3417
|
durable: {
|
|
3367
3418
|
aggregateID: string;
|
|
3368
|
-
seq:
|
|
3419
|
+
seq: EventSeq;
|
|
3369
3420
|
version: 1;
|
|
3370
3421
|
};
|
|
3371
3422
|
location?: LocationRef;
|
|
3372
3423
|
data: {
|
|
3373
|
-
sessionID:
|
|
3374
|
-
messageID:
|
|
3424
|
+
sessionID: SessionID;
|
|
3425
|
+
messageID: SessionMessageID;
|
|
3375
3426
|
content: Array<SessionMessageAssistantContentEncoded>;
|
|
3376
3427
|
};
|
|
3377
3428
|
};
|
|
3378
3429
|
export type IntegrationMethod = IntegrationOAuthMethod | IntegrationCommandMethod | IntegrationKeyMethod | IntegrationExternalMethod | IntegrationEnvMethod;
|
|
3379
3430
|
export type FormCreated = {
|
|
3380
|
-
id:
|
|
3431
|
+
id: EventID;
|
|
3381
3432
|
created: number;
|
|
3382
3433
|
metadata?: {
|
|
3383
3434
|
[x: string]: any;
|
|
@@ -3401,7 +3452,7 @@ export type SessionMessagesResponse = {
|
|
|
3401
3452
|
};
|
|
3402
3453
|
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
3454
|
export type IntegrationInfo = {
|
|
3404
|
-
id:
|
|
3455
|
+
id: IntegrationID;
|
|
3405
3456
|
name: string;
|
|
3406
3457
|
metadata?: {
|
|
3407
3458
|
[x: string]: any;
|
|
@@ -4477,6 +4528,14 @@ export type SessionImportInput = {
|
|
|
4477
4528
|
};
|
|
4478
4529
|
readonly type: "idle";
|
|
4479
4530
|
readonly outcome: "succeeded" | "failed" | "interrupted";
|
|
4531
|
+
readonly error?: {
|
|
4532
|
+
readonly type: string;
|
|
4533
|
+
readonly message: string;
|
|
4534
|
+
readonly status?: number;
|
|
4535
|
+
readonly response?: {
|
|
4536
|
+
readonly body: string;
|
|
4537
|
+
};
|
|
4538
|
+
};
|
|
4480
4539
|
}>;
|
|
4481
4540
|
readonly location?: {
|
|
4482
4541
|
readonly directory: string;
|
|
@@ -4958,6 +5017,14 @@ export type SessionImportInput = {
|
|
|
4958
5017
|
};
|
|
4959
5018
|
readonly type: "idle";
|
|
4960
5019
|
readonly outcome: "succeeded" | "failed" | "interrupted";
|
|
5020
|
+
readonly error?: {
|
|
5021
|
+
readonly type: string;
|
|
5022
|
+
readonly message: string;
|
|
5023
|
+
readonly status?: number;
|
|
5024
|
+
readonly response?: {
|
|
5025
|
+
readonly body: string;
|
|
5026
|
+
};
|
|
5027
|
+
};
|
|
4961
5028
|
}>;
|
|
4962
5029
|
readonly location?: {
|
|
4963
5030
|
readonly directory: string;
|
|
@@ -5439,6 +5506,14 @@ export type SessionImportInput = {
|
|
|
5439
5506
|
};
|
|
5440
5507
|
readonly type: "idle";
|
|
5441
5508
|
readonly outcome: "succeeded" | "failed" | "interrupted";
|
|
5509
|
+
readonly error?: {
|
|
5510
|
+
readonly type: string;
|
|
5511
|
+
readonly message: string;
|
|
5512
|
+
readonly status?: number;
|
|
5513
|
+
readonly response?: {
|
|
5514
|
+
readonly body: string;
|
|
5515
|
+
};
|
|
5516
|
+
};
|
|
5442
5517
|
}>;
|
|
5443
5518
|
readonly location?: {
|
|
5444
5519
|
readonly directory: string;
|
|
@@ -5461,7 +5536,7 @@ export type SessionExportOutput = {
|
|
|
5461
5536
|
}["data"];
|
|
5462
5537
|
export type SessionActiveOutput = {
|
|
5463
5538
|
data: {
|
|
5464
|
-
[x:
|
|
5539
|
+
[x: SessionID]: SessionActive;
|
|
5465
5540
|
};
|
|
5466
5541
|
}["data"];
|
|
5467
5542
|
export type SessionGetInput = {
|
|
@@ -5568,7 +5643,7 @@ export type SessionPromptInput = {
|
|
|
5568
5643
|
readonly sessionID: {
|
|
5569
5644
|
readonly sessionID: string;
|
|
5570
5645
|
}["sessionID"];
|
|
5571
|
-
readonly id?: {
|
|
5646
|
+
readonly id?: ({
|
|
5572
5647
|
readonly id?: string | null;
|
|
5573
5648
|
readonly text: string;
|
|
5574
5649
|
readonly files?: ReadonlyArray<{
|
|
@@ -5602,8 +5677,10 @@ export type SessionPromptInput = {
|
|
|
5602
5677
|
};
|
|
5603
5678
|
readonly delivery?: ("steer" | "queue") | null;
|
|
5604
5679
|
readonly resume?: boolean | null;
|
|
5605
|
-
}
|
|
5606
|
-
|
|
5680
|
+
} & {
|
|
5681
|
+
readonly [x: string]: JsonValue | null;
|
|
5682
|
+
})["id"];
|
|
5683
|
+
readonly text: ({
|
|
5607
5684
|
readonly id?: string | null;
|
|
5608
5685
|
readonly text: string;
|
|
5609
5686
|
readonly files?: ReadonlyArray<{
|
|
@@ -5637,8 +5714,10 @@ export type SessionPromptInput = {
|
|
|
5637
5714
|
};
|
|
5638
5715
|
readonly delivery?: ("steer" | "queue") | null;
|
|
5639
5716
|
readonly resume?: boolean | null;
|
|
5640
|
-
}
|
|
5641
|
-
|
|
5717
|
+
} & {
|
|
5718
|
+
readonly [x: string]: JsonValue | null;
|
|
5719
|
+
})["text"];
|
|
5720
|
+
readonly files?: ({
|
|
5642
5721
|
readonly id?: string | null;
|
|
5643
5722
|
readonly text: string;
|
|
5644
5723
|
readonly files?: ReadonlyArray<{
|
|
@@ -5672,8 +5751,10 @@ export type SessionPromptInput = {
|
|
|
5672
5751
|
};
|
|
5673
5752
|
readonly delivery?: ("steer" | "queue") | null;
|
|
5674
5753
|
readonly resume?: boolean | null;
|
|
5675
|
-
}
|
|
5676
|
-
|
|
5754
|
+
} & {
|
|
5755
|
+
readonly [x: string]: JsonValue | null;
|
|
5756
|
+
})["files"];
|
|
5757
|
+
readonly agents?: ({
|
|
5677
5758
|
readonly id?: string | null;
|
|
5678
5759
|
readonly text: string;
|
|
5679
5760
|
readonly files?: ReadonlyArray<{
|
|
@@ -5707,8 +5788,10 @@ export type SessionPromptInput = {
|
|
|
5707
5788
|
};
|
|
5708
5789
|
readonly delivery?: ("steer" | "queue") | null;
|
|
5709
5790
|
readonly resume?: boolean | null;
|
|
5710
|
-
}
|
|
5711
|
-
|
|
5791
|
+
} & {
|
|
5792
|
+
readonly [x: string]: JsonValue | null;
|
|
5793
|
+
})["agents"];
|
|
5794
|
+
readonly skills?: ({
|
|
5712
5795
|
readonly id?: string | null;
|
|
5713
5796
|
readonly text: string;
|
|
5714
5797
|
readonly files?: ReadonlyArray<{
|
|
@@ -5742,8 +5825,10 @@ export type SessionPromptInput = {
|
|
|
5742
5825
|
};
|
|
5743
5826
|
readonly delivery?: ("steer" | "queue") | null;
|
|
5744
5827
|
readonly resume?: boolean | null;
|
|
5745
|
-
}
|
|
5746
|
-
|
|
5828
|
+
} & {
|
|
5829
|
+
readonly [x: string]: JsonValue | null;
|
|
5830
|
+
})["skills"];
|
|
5831
|
+
readonly metadata?: ({
|
|
5747
5832
|
readonly id?: string | null;
|
|
5748
5833
|
readonly text: string;
|
|
5749
5834
|
readonly files?: ReadonlyArray<{
|
|
@@ -5777,8 +5862,10 @@ export type SessionPromptInput = {
|
|
|
5777
5862
|
};
|
|
5778
5863
|
readonly delivery?: ("steer" | "queue") | null;
|
|
5779
5864
|
readonly resume?: boolean | null;
|
|
5780
|
-
}
|
|
5781
|
-
|
|
5865
|
+
} & {
|
|
5866
|
+
readonly [x: string]: JsonValue | null;
|
|
5867
|
+
})["metadata"];
|
|
5868
|
+
readonly delivery?: ({
|
|
5782
5869
|
readonly id?: string | null;
|
|
5783
5870
|
readonly text: string;
|
|
5784
5871
|
readonly files?: ReadonlyArray<{
|
|
@@ -5812,8 +5899,10 @@ export type SessionPromptInput = {
|
|
|
5812
5899
|
};
|
|
5813
5900
|
readonly delivery?: ("steer" | "queue") | null;
|
|
5814
5901
|
readonly resume?: boolean | null;
|
|
5815
|
-
}
|
|
5816
|
-
|
|
5902
|
+
} & {
|
|
5903
|
+
readonly [x: string]: JsonValue | null;
|
|
5904
|
+
})["delivery"];
|
|
5905
|
+
readonly resume?: ({
|
|
5817
5906
|
readonly id?: string | null;
|
|
5818
5907
|
readonly text: string;
|
|
5819
5908
|
readonly files?: ReadonlyArray<{
|
|
@@ -5847,7 +5936,9 @@ export type SessionPromptInput = {
|
|
|
5847
5936
|
};
|
|
5848
5937
|
readonly delivery?: ("steer" | "queue") | null;
|
|
5849
5938
|
readonly resume?: boolean | null;
|
|
5850
|
-
}
|
|
5939
|
+
} & {
|
|
5940
|
+
readonly [x: string]: JsonValue | null;
|
|
5941
|
+
})["resume"];
|
|
5851
5942
|
};
|
|
5852
5943
|
export type SessionPromptOutput = {
|
|
5853
5944
|
data: SessionInboxUser;
|
|
@@ -7845,6 +7936,11 @@ export type CredentialRemoveInput = {
|
|
|
7845
7936
|
}["credentialID"];
|
|
7846
7937
|
};
|
|
7847
7938
|
export type CredentialRemoveOutput = void;
|
|
7939
|
+
export type ProjectListInput = {
|
|
7940
|
+
readonly archived?: {
|
|
7941
|
+
readonly archived?: boolean | undefined;
|
|
7942
|
+
}["archived"];
|
|
7943
|
+
};
|
|
7848
7944
|
export type ProjectListOutput = Array<Project>;
|
|
7849
7945
|
export type ProjectUpdateInput = {
|
|
7850
7946
|
readonly projectID: {
|
|
@@ -8048,7 +8144,7 @@ export type PermissionCreateInput = {
|
|
|
8048
8144
|
};
|
|
8049
8145
|
export type PermissionCreateOutput = {
|
|
8050
8146
|
data: {
|
|
8051
|
-
id:
|
|
8147
|
+
id: PermissionID;
|
|
8052
8148
|
effect: PermissionEffect;
|
|
8053
8149
|
};
|
|
8054
8150
|
}["data"];
|
|
@@ -8876,7 +8972,7 @@ export type WebsearchQueryInput = {
|
|
|
8876
8972
|
export type WebsearchQueryOutput = {
|
|
8877
8973
|
location: LocationPublicRef;
|
|
8878
8974
|
data: {
|
|
8879
|
-
providerID:
|
|
8975
|
+
providerID: WebSearchID;
|
|
8880
8976
|
results: Array<WebSearchResult>;
|
|
8881
8977
|
};
|
|
8882
8978
|
};
|