@myagentroam/protocol 0.9.77 → 0.9.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2895 -1
- package/dist/index.js +14 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -13063,6 +13063,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
|
|
|
13063
13063
|
after: string;
|
|
13064
13064
|
} | undefined;
|
|
13065
13065
|
}>, "many">;
|
|
13066
|
+
historyNextCursor: z.ZodNullable<z.ZodString>;
|
|
13066
13067
|
files: z.ZodArray<z.ZodObject<{
|
|
13067
13068
|
id: z.ZodString;
|
|
13068
13069
|
conversationId: z.ZodString;
|
|
@@ -13648,6 +13649,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
|
|
|
13648
13649
|
currentVersionId: string | null;
|
|
13649
13650
|
icon?: string | undefined;
|
|
13650
13651
|
};
|
|
13652
|
+
historyNextCursor: string | null;
|
|
13651
13653
|
nodeAppVersion?: string | undefined;
|
|
13652
13654
|
}, {
|
|
13653
13655
|
error: {
|
|
@@ -14072,6 +14074,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
|
|
|
14072
14074
|
currentVersionId: string | null;
|
|
14073
14075
|
icon?: string | undefined;
|
|
14074
14076
|
};
|
|
14077
|
+
historyNextCursor: string | null;
|
|
14075
14078
|
nodeAppVersion?: string | undefined;
|
|
14076
14079
|
}>, {
|
|
14077
14080
|
error: {
|
|
@@ -14496,6 +14499,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
|
|
|
14496
14499
|
currentVersionId: string | null;
|
|
14497
14500
|
icon?: string | undefined;
|
|
14498
14501
|
};
|
|
14502
|
+
historyNextCursor: string | null;
|
|
14499
14503
|
nodeAppVersion?: string | undefined;
|
|
14500
14504
|
}, {
|
|
14501
14505
|
error: {
|
|
@@ -14920,6 +14924,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
|
|
|
14920
14924
|
currentVersionId: string | null;
|
|
14921
14925
|
icon?: string | undefined;
|
|
14922
14926
|
};
|
|
14927
|
+
historyNextCursor: string | null;
|
|
14923
14928
|
nodeAppVersion?: string | undefined;
|
|
14924
14929
|
}>;
|
|
14925
14930
|
export type HostedConversationSnapshot = z.infer<typeof hostedConversationSnapshotSchema>;
|
|
@@ -15193,6 +15198,2895 @@ export declare const hostedConversationIdInputSchema: z.ZodObject<{
|
|
|
15193
15198
|
conversationId: string;
|
|
15194
15199
|
}>;
|
|
15195
15200
|
export type HostedConversationIdInput = z.infer<typeof hostedConversationIdInputSchema>;
|
|
15201
|
+
export declare const hostedConversationHistoryInputSchema: z.ZodObject<{
|
|
15202
|
+
conversationId: z.ZodString;
|
|
15203
|
+
} & {
|
|
15204
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
15205
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
15206
|
+
}, "strict", z.ZodTypeAny, {
|
|
15207
|
+
conversationId: string;
|
|
15208
|
+
limit: number;
|
|
15209
|
+
cursor?: string | undefined;
|
|
15210
|
+
}, {
|
|
15211
|
+
conversationId: string;
|
|
15212
|
+
cursor?: string | undefined;
|
|
15213
|
+
limit?: number | undefined;
|
|
15214
|
+
}>;
|
|
15215
|
+
export type HostedConversationHistoryInput = z.infer<typeof hostedConversationHistoryInputSchema>;
|
|
15216
|
+
export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
|
|
15217
|
+
turns: z.ZodArray<z.ZodObject<{
|
|
15218
|
+
id: z.ZodString;
|
|
15219
|
+
sessionId: z.ZodString;
|
|
15220
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
15221
|
+
userItemId: z.ZodNullable<z.ZodString>;
|
|
15222
|
+
status: z.ZodEnum<["PREPARING", "RUNNING", "WAITING_INPUT", "WAITING_APPROVAL", "SUCCEEDED", "FAILED", "CANCELLED", "INTERRUPTED", "LOST"]>;
|
|
15223
|
+
model: z.ZodNullable<z.ZodString>;
|
|
15224
|
+
effort: z.ZodNullable<z.ZodString>;
|
|
15225
|
+
access: z.ZodNullable<z.ZodString>;
|
|
15226
|
+
rewind: z.ZodOptional<z.ZodObject<{
|
|
15227
|
+
before: z.ZodNullable<z.ZodString>;
|
|
15228
|
+
after: z.ZodString;
|
|
15229
|
+
}, "strip", z.ZodTypeAny, {
|
|
15230
|
+
before: string | null;
|
|
15231
|
+
after: string;
|
|
15232
|
+
}, {
|
|
15233
|
+
before: string | null;
|
|
15234
|
+
after: string;
|
|
15235
|
+
}>>;
|
|
15236
|
+
items: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
15237
|
+
id: z.ZodString;
|
|
15238
|
+
sessionId: z.ZodString;
|
|
15239
|
+
turnId: z.ZodString;
|
|
15240
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
15241
|
+
parentItemId: z.ZodNullable<z.ZodString>;
|
|
15242
|
+
sourceSequence: z.ZodNullable<z.ZodNumber>;
|
|
15243
|
+
revision: z.ZodNumber;
|
|
15244
|
+
status: z.ZodEnum<["PENDING", "IN_PROGRESS", "COMPLETED", "FAILED", "DECLINED", "CANCELLED", "INTERRUPTED"]>;
|
|
15245
|
+
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
15246
|
+
completedAt: z.ZodNullable<z.ZodNumber>;
|
|
15247
|
+
segmentId: z.ZodOptional<z.ZodString>;
|
|
15248
|
+
segmentIndex: z.ZodOptional<z.ZodNumber>;
|
|
15249
|
+
} & {
|
|
15250
|
+
kind: z.ZodLiteral<"assistant_message">;
|
|
15251
|
+
payload: z.ZodObject<{
|
|
15252
|
+
text: z.ZodString;
|
|
15253
|
+
format: z.ZodLiteral<"markdown">;
|
|
15254
|
+
model: z.ZodNullable<z.ZodString>;
|
|
15255
|
+
}, "strip", z.ZodTypeAny, {
|
|
15256
|
+
model: string | null;
|
|
15257
|
+
text: string;
|
|
15258
|
+
format: "markdown";
|
|
15259
|
+
}, {
|
|
15260
|
+
model: string | null;
|
|
15261
|
+
text: string;
|
|
15262
|
+
format: "markdown";
|
|
15263
|
+
}>;
|
|
15264
|
+
}, "strip", z.ZodTypeAny, {
|
|
15265
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
15266
|
+
kind: "assistant_message";
|
|
15267
|
+
id: string;
|
|
15268
|
+
revision: number;
|
|
15269
|
+
runId: string | null;
|
|
15270
|
+
sessionId: string;
|
|
15271
|
+
completedAt: number | null;
|
|
15272
|
+
startedAt: number | null;
|
|
15273
|
+
payload: {
|
|
15274
|
+
model: string | null;
|
|
15275
|
+
text: string;
|
|
15276
|
+
format: "markdown";
|
|
15277
|
+
};
|
|
15278
|
+
turnId: string;
|
|
15279
|
+
parentItemId: string | null;
|
|
15280
|
+
sourceSequence: number | null;
|
|
15281
|
+
segmentId?: string | undefined;
|
|
15282
|
+
segmentIndex?: number | undefined;
|
|
15283
|
+
}, {
|
|
15284
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
15285
|
+
kind: "assistant_message";
|
|
15286
|
+
id: string;
|
|
15287
|
+
revision: number;
|
|
15288
|
+
runId: string | null;
|
|
15289
|
+
sessionId: string;
|
|
15290
|
+
completedAt: number | null;
|
|
15291
|
+
startedAt: number | null;
|
|
15292
|
+
payload: {
|
|
15293
|
+
model: string | null;
|
|
15294
|
+
text: string;
|
|
15295
|
+
format: "markdown";
|
|
15296
|
+
};
|
|
15297
|
+
turnId: string;
|
|
15298
|
+
parentItemId: string | null;
|
|
15299
|
+
sourceSequence: number | null;
|
|
15300
|
+
segmentId?: string | undefined;
|
|
15301
|
+
segmentIndex?: number | undefined;
|
|
15302
|
+
}>, z.ZodObject<{
|
|
15303
|
+
id: z.ZodString;
|
|
15304
|
+
sessionId: z.ZodString;
|
|
15305
|
+
turnId: z.ZodString;
|
|
15306
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
15307
|
+
parentItemId: z.ZodNullable<z.ZodString>;
|
|
15308
|
+
sourceSequence: z.ZodNullable<z.ZodNumber>;
|
|
15309
|
+
revision: z.ZodNumber;
|
|
15310
|
+
status: z.ZodEnum<["PENDING", "IN_PROGRESS", "COMPLETED", "FAILED", "DECLINED", "CANCELLED", "INTERRUPTED"]>;
|
|
15311
|
+
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
15312
|
+
completedAt: z.ZodNullable<z.ZodNumber>;
|
|
15313
|
+
segmentId: z.ZodOptional<z.ZodString>;
|
|
15314
|
+
segmentIndex: z.ZodOptional<z.ZodNumber>;
|
|
15315
|
+
} & {
|
|
15316
|
+
kind: z.ZodLiteral<"user_message">;
|
|
15317
|
+
payload: z.ZodObject<{
|
|
15318
|
+
clientMessageId: z.ZodNullable<z.ZodString>;
|
|
15319
|
+
text: z.ZodString;
|
|
15320
|
+
contexts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
15321
|
+
type: z.ZodEnum<["file", "directory", "changes", "diff", "turn", "message", "terminal_selection"]>;
|
|
15322
|
+
referenceId: z.ZodString;
|
|
15323
|
+
label: z.ZodString;
|
|
15324
|
+
path: z.ZodOptional<z.ZodString>;
|
|
15325
|
+
startLine: z.ZodOptional<z.ZodNumber>;
|
|
15326
|
+
endLine: z.ZodOptional<z.ZodNumber>;
|
|
15327
|
+
}, "strip", z.ZodTypeAny, {
|
|
15328
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
15329
|
+
label: string;
|
|
15330
|
+
referenceId: string;
|
|
15331
|
+
path?: string | undefined;
|
|
15332
|
+
startLine?: number | undefined;
|
|
15333
|
+
endLine?: number | undefined;
|
|
15334
|
+
}, {
|
|
15335
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
15336
|
+
label: string;
|
|
15337
|
+
referenceId: string;
|
|
15338
|
+
path?: string | undefined;
|
|
15339
|
+
startLine?: number | undefined;
|
|
15340
|
+
endLine?: number | undefined;
|
|
15341
|
+
}>, "many">>;
|
|
15342
|
+
delivery: z.ZodEnum<["PENDING", "ACCEPTED", "STEERED", "QUEUED_NEXT_TURN", "REJECTED"]>;
|
|
15343
|
+
}, "strip", z.ZodTypeAny, {
|
|
15344
|
+
clientMessageId: string | null;
|
|
15345
|
+
text: string;
|
|
15346
|
+
contexts: {
|
|
15347
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
15348
|
+
label: string;
|
|
15349
|
+
referenceId: string;
|
|
15350
|
+
path?: string | undefined;
|
|
15351
|
+
startLine?: number | undefined;
|
|
15352
|
+
endLine?: number | undefined;
|
|
15353
|
+
}[];
|
|
15354
|
+
delivery: "PENDING" | "ACCEPTED" | "STEERED" | "QUEUED_NEXT_TURN" | "REJECTED";
|
|
15355
|
+
}, {
|
|
15356
|
+
clientMessageId: string | null;
|
|
15357
|
+
text: string;
|
|
15358
|
+
delivery: "PENDING" | "ACCEPTED" | "STEERED" | "QUEUED_NEXT_TURN" | "REJECTED";
|
|
15359
|
+
contexts?: {
|
|
15360
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
15361
|
+
label: string;
|
|
15362
|
+
referenceId: string;
|
|
15363
|
+
path?: string | undefined;
|
|
15364
|
+
startLine?: number | undefined;
|
|
15365
|
+
endLine?: number | undefined;
|
|
15366
|
+
}[] | undefined;
|
|
15367
|
+
}>;
|
|
15368
|
+
}, "strip", z.ZodTypeAny, {
|
|
15369
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
15370
|
+
kind: "user_message";
|
|
15371
|
+
id: string;
|
|
15372
|
+
revision: number;
|
|
15373
|
+
runId: string | null;
|
|
15374
|
+
sessionId: string;
|
|
15375
|
+
completedAt: number | null;
|
|
15376
|
+
startedAt: number | null;
|
|
15377
|
+
payload: {
|
|
15378
|
+
clientMessageId: string | null;
|
|
15379
|
+
text: string;
|
|
15380
|
+
contexts: {
|
|
15381
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
15382
|
+
label: string;
|
|
15383
|
+
referenceId: string;
|
|
15384
|
+
path?: string | undefined;
|
|
15385
|
+
startLine?: number | undefined;
|
|
15386
|
+
endLine?: number | undefined;
|
|
15387
|
+
}[];
|
|
15388
|
+
delivery: "PENDING" | "ACCEPTED" | "STEERED" | "QUEUED_NEXT_TURN" | "REJECTED";
|
|
15389
|
+
};
|
|
15390
|
+
turnId: string;
|
|
15391
|
+
parentItemId: string | null;
|
|
15392
|
+
sourceSequence: number | null;
|
|
15393
|
+
segmentId?: string | undefined;
|
|
15394
|
+
segmentIndex?: number | undefined;
|
|
15395
|
+
}, {
|
|
15396
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
15397
|
+
kind: "user_message";
|
|
15398
|
+
id: string;
|
|
15399
|
+
revision: number;
|
|
15400
|
+
runId: string | null;
|
|
15401
|
+
sessionId: string;
|
|
15402
|
+
completedAt: number | null;
|
|
15403
|
+
startedAt: number | null;
|
|
15404
|
+
payload: {
|
|
15405
|
+
clientMessageId: string | null;
|
|
15406
|
+
text: string;
|
|
15407
|
+
delivery: "PENDING" | "ACCEPTED" | "STEERED" | "QUEUED_NEXT_TURN" | "REJECTED";
|
|
15408
|
+
contexts?: {
|
|
15409
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
15410
|
+
label: string;
|
|
15411
|
+
referenceId: string;
|
|
15412
|
+
path?: string | undefined;
|
|
15413
|
+
startLine?: number | undefined;
|
|
15414
|
+
endLine?: number | undefined;
|
|
15415
|
+
}[] | undefined;
|
|
15416
|
+
};
|
|
15417
|
+
turnId: string;
|
|
15418
|
+
parentItemId: string | null;
|
|
15419
|
+
sourceSequence: number | null;
|
|
15420
|
+
segmentId?: string | undefined;
|
|
15421
|
+
segmentIndex?: number | undefined;
|
|
15422
|
+
}>, z.ZodObject<{
|
|
15423
|
+
id: z.ZodString;
|
|
15424
|
+
sessionId: z.ZodString;
|
|
15425
|
+
turnId: z.ZodString;
|
|
15426
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
15427
|
+
parentItemId: z.ZodNullable<z.ZodString>;
|
|
15428
|
+
sourceSequence: z.ZodNullable<z.ZodNumber>;
|
|
15429
|
+
revision: z.ZodNumber;
|
|
15430
|
+
status: z.ZodEnum<["PENDING", "IN_PROGRESS", "COMPLETED", "FAILED", "DECLINED", "CANCELLED", "INTERRUPTED"]>;
|
|
15431
|
+
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
15432
|
+
completedAt: z.ZodNullable<z.ZodNumber>;
|
|
15433
|
+
segmentId: z.ZodOptional<z.ZodString>;
|
|
15434
|
+
segmentIndex: z.ZodOptional<z.ZodNumber>;
|
|
15435
|
+
} & {
|
|
15436
|
+
kind: z.ZodLiteral<"reasoning_summary">;
|
|
15437
|
+
payload: z.ZodObject<{
|
|
15438
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
15439
|
+
index: z.ZodNumber;
|
|
15440
|
+
text: z.ZodString;
|
|
15441
|
+
}, "strip", z.ZodTypeAny, {
|
|
15442
|
+
text: string;
|
|
15443
|
+
index: number;
|
|
15444
|
+
}, {
|
|
15445
|
+
text: string;
|
|
15446
|
+
index: number;
|
|
15447
|
+
}>, "many">;
|
|
15448
|
+
}, "strip", z.ZodTypeAny, {
|
|
15449
|
+
sections: {
|
|
15450
|
+
text: string;
|
|
15451
|
+
index: number;
|
|
15452
|
+
}[];
|
|
15453
|
+
}, {
|
|
15454
|
+
sections: {
|
|
15455
|
+
text: string;
|
|
15456
|
+
index: number;
|
|
15457
|
+
}[];
|
|
15458
|
+
}>;
|
|
15459
|
+
}, "strip", z.ZodTypeAny, {
|
|
15460
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
15461
|
+
kind: "reasoning_summary";
|
|
15462
|
+
id: string;
|
|
15463
|
+
revision: number;
|
|
15464
|
+
runId: string | null;
|
|
15465
|
+
sessionId: string;
|
|
15466
|
+
completedAt: number | null;
|
|
15467
|
+
startedAt: number | null;
|
|
15468
|
+
payload: {
|
|
15469
|
+
sections: {
|
|
15470
|
+
text: string;
|
|
15471
|
+
index: number;
|
|
15472
|
+
}[];
|
|
15473
|
+
};
|
|
15474
|
+
turnId: string;
|
|
15475
|
+
parentItemId: string | null;
|
|
15476
|
+
sourceSequence: number | null;
|
|
15477
|
+
segmentId?: string | undefined;
|
|
15478
|
+
segmentIndex?: number | undefined;
|
|
15479
|
+
}, {
|
|
15480
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
15481
|
+
kind: "reasoning_summary";
|
|
15482
|
+
id: string;
|
|
15483
|
+
revision: number;
|
|
15484
|
+
runId: string | null;
|
|
15485
|
+
sessionId: string;
|
|
15486
|
+
completedAt: number | null;
|
|
15487
|
+
startedAt: number | null;
|
|
15488
|
+
payload: {
|
|
15489
|
+
sections: {
|
|
15490
|
+
text: string;
|
|
15491
|
+
index: number;
|
|
15492
|
+
}[];
|
|
15493
|
+
};
|
|
15494
|
+
turnId: string;
|
|
15495
|
+
parentItemId: string | null;
|
|
15496
|
+
sourceSequence: number | null;
|
|
15497
|
+
segmentId?: string | undefined;
|
|
15498
|
+
segmentIndex?: number | undefined;
|
|
15499
|
+
}>, z.ZodObject<{
|
|
15500
|
+
id: z.ZodString;
|
|
15501
|
+
sessionId: z.ZodString;
|
|
15502
|
+
turnId: z.ZodString;
|
|
15503
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
15504
|
+
parentItemId: z.ZodNullable<z.ZodString>;
|
|
15505
|
+
sourceSequence: z.ZodNullable<z.ZodNumber>;
|
|
15506
|
+
revision: z.ZodNumber;
|
|
15507
|
+
status: z.ZodEnum<["PENDING", "IN_PROGRESS", "COMPLETED", "FAILED", "DECLINED", "CANCELLED", "INTERRUPTED"]>;
|
|
15508
|
+
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
15509
|
+
completedAt: z.ZodNullable<z.ZodNumber>;
|
|
15510
|
+
segmentId: z.ZodOptional<z.ZodString>;
|
|
15511
|
+
segmentIndex: z.ZodOptional<z.ZodNumber>;
|
|
15512
|
+
} & {
|
|
15513
|
+
kind: z.ZodLiteral<"plan">;
|
|
15514
|
+
payload: z.ZodObject<{
|
|
15515
|
+
explanation: z.ZodNullable<z.ZodString>;
|
|
15516
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
15517
|
+
id: z.ZodString;
|
|
15518
|
+
text: z.ZodString;
|
|
15519
|
+
status: z.ZodEnum<["PENDING", "IN_PROGRESS", "COMPLETED"]>;
|
|
15520
|
+
}, "strip", z.ZodTypeAny, {
|
|
15521
|
+
status: "PENDING" | "IN_PROGRESS" | "COMPLETED";
|
|
15522
|
+
id: string;
|
|
15523
|
+
text: string;
|
|
15524
|
+
}, {
|
|
15525
|
+
status: "PENDING" | "IN_PROGRESS" | "COMPLETED";
|
|
15526
|
+
id: string;
|
|
15527
|
+
text: string;
|
|
15528
|
+
}>, "many">;
|
|
15529
|
+
}, "strip", z.ZodTypeAny, {
|
|
15530
|
+
explanation: string | null;
|
|
15531
|
+
steps: {
|
|
15532
|
+
status: "PENDING" | "IN_PROGRESS" | "COMPLETED";
|
|
15533
|
+
id: string;
|
|
15534
|
+
text: string;
|
|
15535
|
+
}[];
|
|
15536
|
+
}, {
|
|
15537
|
+
explanation: string | null;
|
|
15538
|
+
steps: {
|
|
15539
|
+
status: "PENDING" | "IN_PROGRESS" | "COMPLETED";
|
|
15540
|
+
id: string;
|
|
15541
|
+
text: string;
|
|
15542
|
+
}[];
|
|
15543
|
+
}>;
|
|
15544
|
+
}, "strip", z.ZodTypeAny, {
|
|
15545
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
15546
|
+
kind: "plan";
|
|
15547
|
+
id: string;
|
|
15548
|
+
revision: number;
|
|
15549
|
+
runId: string | null;
|
|
15550
|
+
sessionId: string;
|
|
15551
|
+
completedAt: number | null;
|
|
15552
|
+
startedAt: number | null;
|
|
15553
|
+
payload: {
|
|
15554
|
+
explanation: string | null;
|
|
15555
|
+
steps: {
|
|
15556
|
+
status: "PENDING" | "IN_PROGRESS" | "COMPLETED";
|
|
15557
|
+
id: string;
|
|
15558
|
+
text: string;
|
|
15559
|
+
}[];
|
|
15560
|
+
};
|
|
15561
|
+
turnId: string;
|
|
15562
|
+
parentItemId: string | null;
|
|
15563
|
+
sourceSequence: number | null;
|
|
15564
|
+
segmentId?: string | undefined;
|
|
15565
|
+
segmentIndex?: number | undefined;
|
|
15566
|
+
}, {
|
|
15567
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
15568
|
+
kind: "plan";
|
|
15569
|
+
id: string;
|
|
15570
|
+
revision: number;
|
|
15571
|
+
runId: string | null;
|
|
15572
|
+
sessionId: string;
|
|
15573
|
+
completedAt: number | null;
|
|
15574
|
+
startedAt: number | null;
|
|
15575
|
+
payload: {
|
|
15576
|
+
explanation: string | null;
|
|
15577
|
+
steps: {
|
|
15578
|
+
status: "PENDING" | "IN_PROGRESS" | "COMPLETED";
|
|
15579
|
+
id: string;
|
|
15580
|
+
text: string;
|
|
15581
|
+
}[];
|
|
15582
|
+
};
|
|
15583
|
+
turnId: string;
|
|
15584
|
+
parentItemId: string | null;
|
|
15585
|
+
sourceSequence: number | null;
|
|
15586
|
+
segmentId?: string | undefined;
|
|
15587
|
+
segmentIndex?: number | undefined;
|
|
15588
|
+
}>, z.ZodObject<{
|
|
15589
|
+
id: z.ZodString;
|
|
15590
|
+
sessionId: z.ZodString;
|
|
15591
|
+
turnId: z.ZodString;
|
|
15592
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
15593
|
+
parentItemId: z.ZodNullable<z.ZodString>;
|
|
15594
|
+
sourceSequence: z.ZodNullable<z.ZodNumber>;
|
|
15595
|
+
revision: z.ZodNumber;
|
|
15596
|
+
status: z.ZodEnum<["PENDING", "IN_PROGRESS", "COMPLETED", "FAILED", "DECLINED", "CANCELLED", "INTERRUPTED"]>;
|
|
15597
|
+
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
15598
|
+
completedAt: z.ZodNullable<z.ZodNumber>;
|
|
15599
|
+
segmentId: z.ZodOptional<z.ZodString>;
|
|
15600
|
+
segmentIndex: z.ZodOptional<z.ZodNumber>;
|
|
15601
|
+
} & {
|
|
15602
|
+
kind: z.ZodLiteral<"todo_list">;
|
|
15603
|
+
payload: z.ZodObject<{
|
|
15604
|
+
items: z.ZodArray<z.ZodObject<{
|
|
15605
|
+
id: z.ZodString;
|
|
15606
|
+
text: z.ZodString;
|
|
15607
|
+
status: z.ZodEnum<["PENDING", "IN_PROGRESS", "COMPLETED"]>;
|
|
15608
|
+
}, "strip", z.ZodTypeAny, {
|
|
15609
|
+
status: "PENDING" | "IN_PROGRESS" | "COMPLETED";
|
|
15610
|
+
id: string;
|
|
15611
|
+
text: string;
|
|
15612
|
+
}, {
|
|
15613
|
+
status: "PENDING" | "IN_PROGRESS" | "COMPLETED";
|
|
15614
|
+
id: string;
|
|
15615
|
+
text: string;
|
|
15616
|
+
}>, "many">;
|
|
15617
|
+
}, "strip", z.ZodTypeAny, {
|
|
15618
|
+
items: {
|
|
15619
|
+
status: "PENDING" | "IN_PROGRESS" | "COMPLETED";
|
|
15620
|
+
id: string;
|
|
15621
|
+
text: string;
|
|
15622
|
+
}[];
|
|
15623
|
+
}, {
|
|
15624
|
+
items: {
|
|
15625
|
+
status: "PENDING" | "IN_PROGRESS" | "COMPLETED";
|
|
15626
|
+
id: string;
|
|
15627
|
+
text: string;
|
|
15628
|
+
}[];
|
|
15629
|
+
}>;
|
|
15630
|
+
}, "strip", z.ZodTypeAny, {
|
|
15631
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
15632
|
+
kind: "todo_list";
|
|
15633
|
+
id: string;
|
|
15634
|
+
revision: number;
|
|
15635
|
+
runId: string | null;
|
|
15636
|
+
sessionId: string;
|
|
15637
|
+
completedAt: number | null;
|
|
15638
|
+
startedAt: number | null;
|
|
15639
|
+
payload: {
|
|
15640
|
+
items: {
|
|
15641
|
+
status: "PENDING" | "IN_PROGRESS" | "COMPLETED";
|
|
15642
|
+
id: string;
|
|
15643
|
+
text: string;
|
|
15644
|
+
}[];
|
|
15645
|
+
};
|
|
15646
|
+
turnId: string;
|
|
15647
|
+
parentItemId: string | null;
|
|
15648
|
+
sourceSequence: number | null;
|
|
15649
|
+
segmentId?: string | undefined;
|
|
15650
|
+
segmentIndex?: number | undefined;
|
|
15651
|
+
}, {
|
|
15652
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
15653
|
+
kind: "todo_list";
|
|
15654
|
+
id: string;
|
|
15655
|
+
revision: number;
|
|
15656
|
+
runId: string | null;
|
|
15657
|
+
sessionId: string;
|
|
15658
|
+
completedAt: number | null;
|
|
15659
|
+
startedAt: number | null;
|
|
15660
|
+
payload: {
|
|
15661
|
+
items: {
|
|
15662
|
+
status: "PENDING" | "IN_PROGRESS" | "COMPLETED";
|
|
15663
|
+
id: string;
|
|
15664
|
+
text: string;
|
|
15665
|
+
}[];
|
|
15666
|
+
};
|
|
15667
|
+
turnId: string;
|
|
15668
|
+
parentItemId: string | null;
|
|
15669
|
+
sourceSequence: number | null;
|
|
15670
|
+
segmentId?: string | undefined;
|
|
15671
|
+
segmentIndex?: number | undefined;
|
|
15672
|
+
}>, z.ZodObject<{
|
|
15673
|
+
id: z.ZodString;
|
|
15674
|
+
sessionId: z.ZodString;
|
|
15675
|
+
turnId: z.ZodString;
|
|
15676
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
15677
|
+
parentItemId: z.ZodNullable<z.ZodString>;
|
|
15678
|
+
sourceSequence: z.ZodNullable<z.ZodNumber>;
|
|
15679
|
+
revision: z.ZodNumber;
|
|
15680
|
+
status: z.ZodEnum<["PENDING", "IN_PROGRESS", "COMPLETED", "FAILED", "DECLINED", "CANCELLED", "INTERRUPTED"]>;
|
|
15681
|
+
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
15682
|
+
completedAt: z.ZodNullable<z.ZodNumber>;
|
|
15683
|
+
segmentId: z.ZodOptional<z.ZodString>;
|
|
15684
|
+
segmentIndex: z.ZodOptional<z.ZodNumber>;
|
|
15685
|
+
} & {
|
|
15686
|
+
kind: z.ZodLiteral<"tool_call">;
|
|
15687
|
+
payload: z.ZodObject<{
|
|
15688
|
+
namespace: z.ZodString;
|
|
15689
|
+
toolName: z.ZodString;
|
|
15690
|
+
title: z.ZodString;
|
|
15691
|
+
inputSummary: z.ZodNullable<z.ZodString>;
|
|
15692
|
+
outputSummary: z.ZodNullable<z.ZodString>;
|
|
15693
|
+
progressLabel: z.ZodNullable<z.ZodString>;
|
|
15694
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
15695
|
+
truncated: z.ZodBoolean;
|
|
15696
|
+
toolCategory: z.ZodOptional<z.ZodEnum<["IMAGE_GENERATION"]>>;
|
|
15697
|
+
subagentOperation: z.ZodOptional<z.ZodEnum<["START", "STATUS", "CANCEL", "MESSAGE", "RESUME"]>>;
|
|
15698
|
+
subagentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15699
|
+
subagentModelId: z.ZodOptional<z.ZodString>;
|
|
15700
|
+
subagentModelName: z.ZodOptional<z.ZodString>;
|
|
15701
|
+
subagentReasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
|
|
15702
|
+
subagentLatestMessage: z.ZodOptional<z.ZodObject<{
|
|
15703
|
+
itemId: z.ZodString;
|
|
15704
|
+
turnId: z.ZodString;
|
|
15705
|
+
phase: z.ZodEnum<["commentary", "final_answer"]>;
|
|
15706
|
+
text: z.ZodEffects<z.ZodString, string, string>;
|
|
15707
|
+
timestamp: z.ZodString;
|
|
15708
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
15709
|
+
}, "strip", z.ZodTypeAny, {
|
|
15710
|
+
turnId: string;
|
|
15711
|
+
text: string;
|
|
15712
|
+
itemId: string;
|
|
15713
|
+
phase: "commentary" | "final_answer";
|
|
15714
|
+
timestamp: string;
|
|
15715
|
+
truncated?: boolean | undefined;
|
|
15716
|
+
}, {
|
|
15717
|
+
turnId: string;
|
|
15718
|
+
text: string;
|
|
15719
|
+
itemId: string;
|
|
15720
|
+
phase: "commentary" | "final_answer";
|
|
15721
|
+
timestamp: string;
|
|
15722
|
+
truncated?: boolean | undefined;
|
|
15723
|
+
}>>;
|
|
15724
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
15725
|
+
name: z.ZodString;
|
|
15726
|
+
mime: z.ZodString;
|
|
15727
|
+
byteSize: z.ZodOptional<z.ZodNumber>;
|
|
15728
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
15729
|
+
imageIndex: z.ZodOptional<z.ZodNumber>;
|
|
15730
|
+
}, "strict", z.ZodTypeAny, {
|
|
15731
|
+
mime: string;
|
|
15732
|
+
name: string;
|
|
15733
|
+
runId?: string | undefined;
|
|
15734
|
+
byteSize?: number | undefined;
|
|
15735
|
+
imageIndex?: number | undefined;
|
|
15736
|
+
}, {
|
|
15737
|
+
mime: string;
|
|
15738
|
+
name: string;
|
|
15739
|
+
runId?: string | undefined;
|
|
15740
|
+
byteSize?: number | undefined;
|
|
15741
|
+
imageIndex?: number | undefined;
|
|
15742
|
+
}>, {
|
|
15743
|
+
mime: string;
|
|
15744
|
+
name: string;
|
|
15745
|
+
runId?: string | undefined;
|
|
15746
|
+
byteSize?: number | undefined;
|
|
15747
|
+
imageIndex?: number | undefined;
|
|
15748
|
+
}, {
|
|
15749
|
+
mime: string;
|
|
15750
|
+
name: string;
|
|
15751
|
+
runId?: string | undefined;
|
|
15752
|
+
byteSize?: number | undefined;
|
|
15753
|
+
imageIndex?: number | undefined;
|
|
15754
|
+
}>, "many">>;
|
|
15755
|
+
}, "strip", z.ZodTypeAny, {
|
|
15756
|
+
errorCode: string | null;
|
|
15757
|
+
truncated: boolean;
|
|
15758
|
+
namespace: string;
|
|
15759
|
+
toolName: string;
|
|
15760
|
+
title: string;
|
|
15761
|
+
inputSummary: string | null;
|
|
15762
|
+
outputSummary: string | null;
|
|
15763
|
+
progressLabel: string | null;
|
|
15764
|
+
toolCategory?: "IMAGE_GENERATION" | undefined;
|
|
15765
|
+
subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
|
|
15766
|
+
subagentId?: string | null | undefined;
|
|
15767
|
+
subagentModelId?: string | undefined;
|
|
15768
|
+
subagentModelName?: string | undefined;
|
|
15769
|
+
subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
|
|
15770
|
+
subagentLatestMessage?: {
|
|
15771
|
+
turnId: string;
|
|
15772
|
+
text: string;
|
|
15773
|
+
itemId: string;
|
|
15774
|
+
phase: "commentary" | "final_answer";
|
|
15775
|
+
timestamp: string;
|
|
15776
|
+
truncated?: boolean | undefined;
|
|
15777
|
+
} | undefined;
|
|
15778
|
+
attachments?: {
|
|
15779
|
+
mime: string;
|
|
15780
|
+
name: string;
|
|
15781
|
+
runId?: string | undefined;
|
|
15782
|
+
byteSize?: number | undefined;
|
|
15783
|
+
imageIndex?: number | undefined;
|
|
15784
|
+
}[] | undefined;
|
|
15785
|
+
}, {
|
|
15786
|
+
errorCode: string | null;
|
|
15787
|
+
truncated: boolean;
|
|
15788
|
+
namespace: string;
|
|
15789
|
+
toolName: string;
|
|
15790
|
+
title: string;
|
|
15791
|
+
inputSummary: string | null;
|
|
15792
|
+
outputSummary: string | null;
|
|
15793
|
+
progressLabel: string | null;
|
|
15794
|
+
toolCategory?: "IMAGE_GENERATION" | undefined;
|
|
15795
|
+
subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
|
|
15796
|
+
subagentId?: string | null | undefined;
|
|
15797
|
+
subagentModelId?: string | undefined;
|
|
15798
|
+
subagentModelName?: string | undefined;
|
|
15799
|
+
subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
|
|
15800
|
+
subagentLatestMessage?: {
|
|
15801
|
+
turnId: string;
|
|
15802
|
+
text: string;
|
|
15803
|
+
itemId: string;
|
|
15804
|
+
phase: "commentary" | "final_answer";
|
|
15805
|
+
timestamp: string;
|
|
15806
|
+
truncated?: boolean | undefined;
|
|
15807
|
+
} | undefined;
|
|
15808
|
+
attachments?: {
|
|
15809
|
+
mime: string;
|
|
15810
|
+
name: string;
|
|
15811
|
+
runId?: string | undefined;
|
|
15812
|
+
byteSize?: number | undefined;
|
|
15813
|
+
imageIndex?: number | undefined;
|
|
15814
|
+
}[] | undefined;
|
|
15815
|
+
}>;
|
|
15816
|
+
}, "strip", z.ZodTypeAny, {
|
|
15817
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
15818
|
+
kind: "tool_call";
|
|
15819
|
+
id: string;
|
|
15820
|
+
revision: number;
|
|
15821
|
+
runId: string | null;
|
|
15822
|
+
sessionId: string;
|
|
15823
|
+
completedAt: number | null;
|
|
15824
|
+
startedAt: number | null;
|
|
15825
|
+
payload: {
|
|
15826
|
+
errorCode: string | null;
|
|
15827
|
+
truncated: boolean;
|
|
15828
|
+
namespace: string;
|
|
15829
|
+
toolName: string;
|
|
15830
|
+
title: string;
|
|
15831
|
+
inputSummary: string | null;
|
|
15832
|
+
outputSummary: string | null;
|
|
15833
|
+
progressLabel: string | null;
|
|
15834
|
+
toolCategory?: "IMAGE_GENERATION" | undefined;
|
|
15835
|
+
subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
|
|
15836
|
+
subagentId?: string | null | undefined;
|
|
15837
|
+
subagentModelId?: string | undefined;
|
|
15838
|
+
subagentModelName?: string | undefined;
|
|
15839
|
+
subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
|
|
15840
|
+
subagentLatestMessage?: {
|
|
15841
|
+
turnId: string;
|
|
15842
|
+
text: string;
|
|
15843
|
+
itemId: string;
|
|
15844
|
+
phase: "commentary" | "final_answer";
|
|
15845
|
+
timestamp: string;
|
|
15846
|
+
truncated?: boolean | undefined;
|
|
15847
|
+
} | undefined;
|
|
15848
|
+
attachments?: {
|
|
15849
|
+
mime: string;
|
|
15850
|
+
name: string;
|
|
15851
|
+
runId?: string | undefined;
|
|
15852
|
+
byteSize?: number | undefined;
|
|
15853
|
+
imageIndex?: number | undefined;
|
|
15854
|
+
}[] | undefined;
|
|
15855
|
+
};
|
|
15856
|
+
turnId: string;
|
|
15857
|
+
parentItemId: string | null;
|
|
15858
|
+
sourceSequence: number | null;
|
|
15859
|
+
segmentId?: string | undefined;
|
|
15860
|
+
segmentIndex?: number | undefined;
|
|
15861
|
+
}, {
|
|
15862
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
15863
|
+
kind: "tool_call";
|
|
15864
|
+
id: string;
|
|
15865
|
+
revision: number;
|
|
15866
|
+
runId: string | null;
|
|
15867
|
+
sessionId: string;
|
|
15868
|
+
completedAt: number | null;
|
|
15869
|
+
startedAt: number | null;
|
|
15870
|
+
payload: {
|
|
15871
|
+
errorCode: string | null;
|
|
15872
|
+
truncated: boolean;
|
|
15873
|
+
namespace: string;
|
|
15874
|
+
toolName: string;
|
|
15875
|
+
title: string;
|
|
15876
|
+
inputSummary: string | null;
|
|
15877
|
+
outputSummary: string | null;
|
|
15878
|
+
progressLabel: string | null;
|
|
15879
|
+
toolCategory?: "IMAGE_GENERATION" | undefined;
|
|
15880
|
+
subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
|
|
15881
|
+
subagentId?: string | null | undefined;
|
|
15882
|
+
subagentModelId?: string | undefined;
|
|
15883
|
+
subagentModelName?: string | undefined;
|
|
15884
|
+
subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
|
|
15885
|
+
subagentLatestMessage?: {
|
|
15886
|
+
turnId: string;
|
|
15887
|
+
text: string;
|
|
15888
|
+
itemId: string;
|
|
15889
|
+
phase: "commentary" | "final_answer";
|
|
15890
|
+
timestamp: string;
|
|
15891
|
+
truncated?: boolean | undefined;
|
|
15892
|
+
} | undefined;
|
|
15893
|
+
attachments?: {
|
|
15894
|
+
mime: string;
|
|
15895
|
+
name: string;
|
|
15896
|
+
runId?: string | undefined;
|
|
15897
|
+
byteSize?: number | undefined;
|
|
15898
|
+
imageIndex?: number | undefined;
|
|
15899
|
+
}[] | undefined;
|
|
15900
|
+
};
|
|
15901
|
+
turnId: string;
|
|
15902
|
+
parentItemId: string | null;
|
|
15903
|
+
sourceSequence: number | null;
|
|
15904
|
+
segmentId?: string | undefined;
|
|
15905
|
+
segmentIndex?: number | undefined;
|
|
15906
|
+
}>, z.ZodObject<{
|
|
15907
|
+
id: z.ZodString;
|
|
15908
|
+
sessionId: z.ZodString;
|
|
15909
|
+
turnId: z.ZodString;
|
|
15910
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
15911
|
+
parentItemId: z.ZodNullable<z.ZodString>;
|
|
15912
|
+
sourceSequence: z.ZodNullable<z.ZodNumber>;
|
|
15913
|
+
revision: z.ZodNumber;
|
|
15914
|
+
status: z.ZodEnum<["PENDING", "IN_PROGRESS", "COMPLETED", "FAILED", "DECLINED", "CANCELLED", "INTERRUPTED"]>;
|
|
15915
|
+
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
15916
|
+
completedAt: z.ZodNullable<z.ZodNumber>;
|
|
15917
|
+
segmentId: z.ZodOptional<z.ZodString>;
|
|
15918
|
+
segmentIndex: z.ZodOptional<z.ZodNumber>;
|
|
15919
|
+
} & {
|
|
15920
|
+
kind: z.ZodLiteral<"command_execution">;
|
|
15921
|
+
payload: z.ZodObject<{
|
|
15922
|
+
command: z.ZodString;
|
|
15923
|
+
cwd: z.ZodNullable<z.ZodString>;
|
|
15924
|
+
outputPreview: z.ZodString;
|
|
15925
|
+
outputRef: z.ZodNullable<z.ZodString>;
|
|
15926
|
+
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
15927
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
15928
|
+
truncated: z.ZodBoolean;
|
|
15929
|
+
}, "strip", z.ZodTypeAny, {
|
|
15930
|
+
command: string;
|
|
15931
|
+
durationMs: number | null;
|
|
15932
|
+
truncated: boolean;
|
|
15933
|
+
cwd: string | null;
|
|
15934
|
+
outputPreview: string;
|
|
15935
|
+
outputRef: string | null;
|
|
15936
|
+
exitCode: number | null;
|
|
15937
|
+
}, {
|
|
15938
|
+
command: string;
|
|
15939
|
+
durationMs: number | null;
|
|
15940
|
+
truncated: boolean;
|
|
15941
|
+
cwd: string | null;
|
|
15942
|
+
outputPreview: string;
|
|
15943
|
+
outputRef: string | null;
|
|
15944
|
+
exitCode: number | null;
|
|
15945
|
+
}>;
|
|
15946
|
+
}, "strip", z.ZodTypeAny, {
|
|
15947
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
15948
|
+
kind: "command_execution";
|
|
15949
|
+
id: string;
|
|
15950
|
+
revision: number;
|
|
15951
|
+
runId: string | null;
|
|
15952
|
+
sessionId: string;
|
|
15953
|
+
completedAt: number | null;
|
|
15954
|
+
startedAt: number | null;
|
|
15955
|
+
payload: {
|
|
15956
|
+
command: string;
|
|
15957
|
+
durationMs: number | null;
|
|
15958
|
+
truncated: boolean;
|
|
15959
|
+
cwd: string | null;
|
|
15960
|
+
outputPreview: string;
|
|
15961
|
+
outputRef: string | null;
|
|
15962
|
+
exitCode: number | null;
|
|
15963
|
+
};
|
|
15964
|
+
turnId: string;
|
|
15965
|
+
parentItemId: string | null;
|
|
15966
|
+
sourceSequence: number | null;
|
|
15967
|
+
segmentId?: string | undefined;
|
|
15968
|
+
segmentIndex?: number | undefined;
|
|
15969
|
+
}, {
|
|
15970
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
15971
|
+
kind: "command_execution";
|
|
15972
|
+
id: string;
|
|
15973
|
+
revision: number;
|
|
15974
|
+
runId: string | null;
|
|
15975
|
+
sessionId: string;
|
|
15976
|
+
completedAt: number | null;
|
|
15977
|
+
startedAt: number | null;
|
|
15978
|
+
payload: {
|
|
15979
|
+
command: string;
|
|
15980
|
+
durationMs: number | null;
|
|
15981
|
+
truncated: boolean;
|
|
15982
|
+
cwd: string | null;
|
|
15983
|
+
outputPreview: string;
|
|
15984
|
+
outputRef: string | null;
|
|
15985
|
+
exitCode: number | null;
|
|
15986
|
+
};
|
|
15987
|
+
turnId: string;
|
|
15988
|
+
parentItemId: string | null;
|
|
15989
|
+
sourceSequence: number | null;
|
|
15990
|
+
segmentId?: string | undefined;
|
|
15991
|
+
segmentIndex?: number | undefined;
|
|
15992
|
+
}>, z.ZodObject<{
|
|
15993
|
+
id: z.ZodString;
|
|
15994
|
+
sessionId: z.ZodString;
|
|
15995
|
+
turnId: z.ZodString;
|
|
15996
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
15997
|
+
parentItemId: z.ZodNullable<z.ZodString>;
|
|
15998
|
+
sourceSequence: z.ZodNullable<z.ZodNumber>;
|
|
15999
|
+
revision: z.ZodNumber;
|
|
16000
|
+
status: z.ZodEnum<["PENDING", "IN_PROGRESS", "COMPLETED", "FAILED", "DECLINED", "CANCELLED", "INTERRUPTED"]>;
|
|
16001
|
+
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
16002
|
+
completedAt: z.ZodNullable<z.ZodNumber>;
|
|
16003
|
+
segmentId: z.ZodOptional<z.ZodString>;
|
|
16004
|
+
segmentIndex: z.ZodOptional<z.ZodNumber>;
|
|
16005
|
+
} & {
|
|
16006
|
+
kind: z.ZodLiteral<"file_change">;
|
|
16007
|
+
payload: z.ZodObject<{
|
|
16008
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
16009
|
+
path: z.ZodString;
|
|
16010
|
+
change: z.ZodEnum<["ADDED", "MODIFIED", "DELETED", "RENAMED", "COPIED", "TYPE_CHANGED"]>;
|
|
16011
|
+
additions: z.ZodNullable<z.ZodNumber>;
|
|
16012
|
+
deletions: z.ZodNullable<z.ZodNumber>;
|
|
16013
|
+
diffAvailable: z.ZodBoolean;
|
|
16014
|
+
}, "strip", z.ZodTypeAny, {
|
|
16015
|
+
path: string;
|
|
16016
|
+
change: "ADDED" | "MODIFIED" | "DELETED" | "RENAMED" | "COPIED" | "TYPE_CHANGED";
|
|
16017
|
+
additions: number | null;
|
|
16018
|
+
deletions: number | null;
|
|
16019
|
+
diffAvailable: boolean;
|
|
16020
|
+
}, {
|
|
16021
|
+
path: string;
|
|
16022
|
+
change: "ADDED" | "MODIFIED" | "DELETED" | "RENAMED" | "COPIED" | "TYPE_CHANGED";
|
|
16023
|
+
additions: number | null;
|
|
16024
|
+
deletions: number | null;
|
|
16025
|
+
diffAvailable: boolean;
|
|
16026
|
+
}>, "many">;
|
|
16027
|
+
}, "strip", z.ZodTypeAny, {
|
|
16028
|
+
changes: {
|
|
16029
|
+
path: string;
|
|
16030
|
+
change: "ADDED" | "MODIFIED" | "DELETED" | "RENAMED" | "COPIED" | "TYPE_CHANGED";
|
|
16031
|
+
additions: number | null;
|
|
16032
|
+
deletions: number | null;
|
|
16033
|
+
diffAvailable: boolean;
|
|
16034
|
+
}[];
|
|
16035
|
+
}, {
|
|
16036
|
+
changes: {
|
|
16037
|
+
path: string;
|
|
16038
|
+
change: "ADDED" | "MODIFIED" | "DELETED" | "RENAMED" | "COPIED" | "TYPE_CHANGED";
|
|
16039
|
+
additions: number | null;
|
|
16040
|
+
deletions: number | null;
|
|
16041
|
+
diffAvailable: boolean;
|
|
16042
|
+
}[];
|
|
16043
|
+
}>;
|
|
16044
|
+
}, "strip", z.ZodTypeAny, {
|
|
16045
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16046
|
+
kind: "file_change";
|
|
16047
|
+
id: string;
|
|
16048
|
+
revision: number;
|
|
16049
|
+
runId: string | null;
|
|
16050
|
+
sessionId: string;
|
|
16051
|
+
completedAt: number | null;
|
|
16052
|
+
startedAt: number | null;
|
|
16053
|
+
payload: {
|
|
16054
|
+
changes: {
|
|
16055
|
+
path: string;
|
|
16056
|
+
change: "ADDED" | "MODIFIED" | "DELETED" | "RENAMED" | "COPIED" | "TYPE_CHANGED";
|
|
16057
|
+
additions: number | null;
|
|
16058
|
+
deletions: number | null;
|
|
16059
|
+
diffAvailable: boolean;
|
|
16060
|
+
}[];
|
|
16061
|
+
};
|
|
16062
|
+
turnId: string;
|
|
16063
|
+
parentItemId: string | null;
|
|
16064
|
+
sourceSequence: number | null;
|
|
16065
|
+
segmentId?: string | undefined;
|
|
16066
|
+
segmentIndex?: number | undefined;
|
|
16067
|
+
}, {
|
|
16068
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16069
|
+
kind: "file_change";
|
|
16070
|
+
id: string;
|
|
16071
|
+
revision: number;
|
|
16072
|
+
runId: string | null;
|
|
16073
|
+
sessionId: string;
|
|
16074
|
+
completedAt: number | null;
|
|
16075
|
+
startedAt: number | null;
|
|
16076
|
+
payload: {
|
|
16077
|
+
changes: {
|
|
16078
|
+
path: string;
|
|
16079
|
+
change: "ADDED" | "MODIFIED" | "DELETED" | "RENAMED" | "COPIED" | "TYPE_CHANGED";
|
|
16080
|
+
additions: number | null;
|
|
16081
|
+
deletions: number | null;
|
|
16082
|
+
diffAvailable: boolean;
|
|
16083
|
+
}[];
|
|
16084
|
+
};
|
|
16085
|
+
turnId: string;
|
|
16086
|
+
parentItemId: string | null;
|
|
16087
|
+
sourceSequence: number | null;
|
|
16088
|
+
segmentId?: string | undefined;
|
|
16089
|
+
segmentIndex?: number | undefined;
|
|
16090
|
+
}>, z.ZodObject<{
|
|
16091
|
+
id: z.ZodString;
|
|
16092
|
+
sessionId: z.ZodString;
|
|
16093
|
+
turnId: z.ZodString;
|
|
16094
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
16095
|
+
parentItemId: z.ZodNullable<z.ZodString>;
|
|
16096
|
+
sourceSequence: z.ZodNullable<z.ZodNumber>;
|
|
16097
|
+
revision: z.ZodNumber;
|
|
16098
|
+
status: z.ZodEnum<["PENDING", "IN_PROGRESS", "COMPLETED", "FAILED", "DECLINED", "CANCELLED", "INTERRUPTED"]>;
|
|
16099
|
+
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
16100
|
+
completedAt: z.ZodNullable<z.ZodNumber>;
|
|
16101
|
+
segmentId: z.ZodOptional<z.ZodString>;
|
|
16102
|
+
segmentIndex: z.ZodOptional<z.ZodNumber>;
|
|
16103
|
+
} & {
|
|
16104
|
+
kind: z.ZodLiteral<"approval">;
|
|
16105
|
+
payload: z.ZodObject<{
|
|
16106
|
+
approvalId: z.ZodString;
|
|
16107
|
+
category: z.ZodEnum<["COMMAND", "FILE_CHANGE", "NETWORK", "TOOL", "OTHER"]>;
|
|
16108
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
16109
|
+
expiresAt: z.ZodNumber;
|
|
16110
|
+
resolvedDecision: z.ZodNullable<z.ZodString>;
|
|
16111
|
+
}, "strip", z.ZodTypeAny, {
|
|
16112
|
+
reason: string | null;
|
|
16113
|
+
expiresAt: number;
|
|
16114
|
+
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
16115
|
+
approvalId: string;
|
|
16116
|
+
resolvedDecision: string | null;
|
|
16117
|
+
}, {
|
|
16118
|
+
reason: string | null;
|
|
16119
|
+
expiresAt: number;
|
|
16120
|
+
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
16121
|
+
approvalId: string;
|
|
16122
|
+
resolvedDecision: string | null;
|
|
16123
|
+
}>;
|
|
16124
|
+
}, "strip", z.ZodTypeAny, {
|
|
16125
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16126
|
+
kind: "approval";
|
|
16127
|
+
id: string;
|
|
16128
|
+
revision: number;
|
|
16129
|
+
runId: string | null;
|
|
16130
|
+
sessionId: string;
|
|
16131
|
+
completedAt: number | null;
|
|
16132
|
+
startedAt: number | null;
|
|
16133
|
+
payload: {
|
|
16134
|
+
reason: string | null;
|
|
16135
|
+
expiresAt: number;
|
|
16136
|
+
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
16137
|
+
approvalId: string;
|
|
16138
|
+
resolvedDecision: string | null;
|
|
16139
|
+
};
|
|
16140
|
+
turnId: string;
|
|
16141
|
+
parentItemId: string | null;
|
|
16142
|
+
sourceSequence: number | null;
|
|
16143
|
+
segmentId?: string | undefined;
|
|
16144
|
+
segmentIndex?: number | undefined;
|
|
16145
|
+
}, {
|
|
16146
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16147
|
+
kind: "approval";
|
|
16148
|
+
id: string;
|
|
16149
|
+
revision: number;
|
|
16150
|
+
runId: string | null;
|
|
16151
|
+
sessionId: string;
|
|
16152
|
+
completedAt: number | null;
|
|
16153
|
+
startedAt: number | null;
|
|
16154
|
+
payload: {
|
|
16155
|
+
reason: string | null;
|
|
16156
|
+
expiresAt: number;
|
|
16157
|
+
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
16158
|
+
approvalId: string;
|
|
16159
|
+
resolvedDecision: string | null;
|
|
16160
|
+
};
|
|
16161
|
+
turnId: string;
|
|
16162
|
+
parentItemId: string | null;
|
|
16163
|
+
sourceSequence: number | null;
|
|
16164
|
+
segmentId?: string | undefined;
|
|
16165
|
+
segmentIndex?: number | undefined;
|
|
16166
|
+
}>, z.ZodObject<{
|
|
16167
|
+
id: z.ZodString;
|
|
16168
|
+
sessionId: z.ZodString;
|
|
16169
|
+
turnId: z.ZodString;
|
|
16170
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
16171
|
+
parentItemId: z.ZodNullable<z.ZodString>;
|
|
16172
|
+
sourceSequence: z.ZodNullable<z.ZodNumber>;
|
|
16173
|
+
revision: z.ZodNumber;
|
|
16174
|
+
status: z.ZodEnum<["PENDING", "IN_PROGRESS", "COMPLETED", "FAILED", "DECLINED", "CANCELLED", "INTERRUPTED"]>;
|
|
16175
|
+
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
16176
|
+
completedAt: z.ZodNullable<z.ZodNumber>;
|
|
16177
|
+
segmentId: z.ZodOptional<z.ZodString>;
|
|
16178
|
+
segmentIndex: z.ZodOptional<z.ZodNumber>;
|
|
16179
|
+
} & {
|
|
16180
|
+
kind: z.ZodLiteral<"user_input_request">;
|
|
16181
|
+
payload: z.ZodObject<{
|
|
16182
|
+
requestId: z.ZodString;
|
|
16183
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
16184
|
+
id: z.ZodString;
|
|
16185
|
+
prompt: z.ZodString;
|
|
16186
|
+
input: z.ZodEnum<["SINGLE_SELECT", "MULTI_SELECT", "SHORT_TEXT"]>;
|
|
16187
|
+
options: z.ZodArray<z.ZodObject<{
|
|
16188
|
+
value: z.ZodString;
|
|
16189
|
+
label: z.ZodString;
|
|
16190
|
+
description: z.ZodNullable<z.ZodString>;
|
|
16191
|
+
}, "strip", z.ZodTypeAny, {
|
|
16192
|
+
value: string;
|
|
16193
|
+
description: string | null;
|
|
16194
|
+
label: string;
|
|
16195
|
+
}, {
|
|
16196
|
+
value: string;
|
|
16197
|
+
description: string | null;
|
|
16198
|
+
label: string;
|
|
16199
|
+
}>, "many">;
|
|
16200
|
+
allowOther: z.ZodBoolean;
|
|
16201
|
+
multiSelect: z.ZodOptional<z.ZodBoolean>;
|
|
16202
|
+
}, "strip", z.ZodTypeAny, {
|
|
16203
|
+
options: {
|
|
16204
|
+
value: string;
|
|
16205
|
+
description: string | null;
|
|
16206
|
+
label: string;
|
|
16207
|
+
}[];
|
|
16208
|
+
id: string;
|
|
16209
|
+
prompt: string;
|
|
16210
|
+
input: "SINGLE_SELECT" | "MULTI_SELECT" | "SHORT_TEXT";
|
|
16211
|
+
allowOther: boolean;
|
|
16212
|
+
multiSelect?: boolean | undefined;
|
|
16213
|
+
}, {
|
|
16214
|
+
options: {
|
|
16215
|
+
value: string;
|
|
16216
|
+
description: string | null;
|
|
16217
|
+
label: string;
|
|
16218
|
+
}[];
|
|
16219
|
+
id: string;
|
|
16220
|
+
prompt: string;
|
|
16221
|
+
input: "SINGLE_SELECT" | "MULTI_SELECT" | "SHORT_TEXT";
|
|
16222
|
+
allowOther: boolean;
|
|
16223
|
+
multiSelect?: boolean | undefined;
|
|
16224
|
+
}>, "many">;
|
|
16225
|
+
}, "strip", z.ZodTypeAny, {
|
|
16226
|
+
requestId: string;
|
|
16227
|
+
questions: {
|
|
16228
|
+
options: {
|
|
16229
|
+
value: string;
|
|
16230
|
+
description: string | null;
|
|
16231
|
+
label: string;
|
|
16232
|
+
}[];
|
|
16233
|
+
id: string;
|
|
16234
|
+
prompt: string;
|
|
16235
|
+
input: "SINGLE_SELECT" | "MULTI_SELECT" | "SHORT_TEXT";
|
|
16236
|
+
allowOther: boolean;
|
|
16237
|
+
multiSelect?: boolean | undefined;
|
|
16238
|
+
}[];
|
|
16239
|
+
}, {
|
|
16240
|
+
requestId: string;
|
|
16241
|
+
questions: {
|
|
16242
|
+
options: {
|
|
16243
|
+
value: string;
|
|
16244
|
+
description: string | null;
|
|
16245
|
+
label: string;
|
|
16246
|
+
}[];
|
|
16247
|
+
id: string;
|
|
16248
|
+
prompt: string;
|
|
16249
|
+
input: "SINGLE_SELECT" | "MULTI_SELECT" | "SHORT_TEXT";
|
|
16250
|
+
allowOther: boolean;
|
|
16251
|
+
multiSelect?: boolean | undefined;
|
|
16252
|
+
}[];
|
|
16253
|
+
}>;
|
|
16254
|
+
}, "strip", z.ZodTypeAny, {
|
|
16255
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16256
|
+
kind: "user_input_request";
|
|
16257
|
+
id: string;
|
|
16258
|
+
revision: number;
|
|
16259
|
+
runId: string | null;
|
|
16260
|
+
sessionId: string;
|
|
16261
|
+
completedAt: number | null;
|
|
16262
|
+
startedAt: number | null;
|
|
16263
|
+
payload: {
|
|
16264
|
+
requestId: string;
|
|
16265
|
+
questions: {
|
|
16266
|
+
options: {
|
|
16267
|
+
value: string;
|
|
16268
|
+
description: string | null;
|
|
16269
|
+
label: string;
|
|
16270
|
+
}[];
|
|
16271
|
+
id: string;
|
|
16272
|
+
prompt: string;
|
|
16273
|
+
input: "SINGLE_SELECT" | "MULTI_SELECT" | "SHORT_TEXT";
|
|
16274
|
+
allowOther: boolean;
|
|
16275
|
+
multiSelect?: boolean | undefined;
|
|
16276
|
+
}[];
|
|
16277
|
+
};
|
|
16278
|
+
turnId: string;
|
|
16279
|
+
parentItemId: string | null;
|
|
16280
|
+
sourceSequence: number | null;
|
|
16281
|
+
segmentId?: string | undefined;
|
|
16282
|
+
segmentIndex?: number | undefined;
|
|
16283
|
+
}, {
|
|
16284
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16285
|
+
kind: "user_input_request";
|
|
16286
|
+
id: string;
|
|
16287
|
+
revision: number;
|
|
16288
|
+
runId: string | null;
|
|
16289
|
+
sessionId: string;
|
|
16290
|
+
completedAt: number | null;
|
|
16291
|
+
startedAt: number | null;
|
|
16292
|
+
payload: {
|
|
16293
|
+
requestId: string;
|
|
16294
|
+
questions: {
|
|
16295
|
+
options: {
|
|
16296
|
+
value: string;
|
|
16297
|
+
description: string | null;
|
|
16298
|
+
label: string;
|
|
16299
|
+
}[];
|
|
16300
|
+
id: string;
|
|
16301
|
+
prompt: string;
|
|
16302
|
+
input: "SINGLE_SELECT" | "MULTI_SELECT" | "SHORT_TEXT";
|
|
16303
|
+
allowOther: boolean;
|
|
16304
|
+
multiSelect?: boolean | undefined;
|
|
16305
|
+
}[];
|
|
16306
|
+
};
|
|
16307
|
+
turnId: string;
|
|
16308
|
+
parentItemId: string | null;
|
|
16309
|
+
sourceSequence: number | null;
|
|
16310
|
+
segmentId?: string | undefined;
|
|
16311
|
+
segmentIndex?: number | undefined;
|
|
16312
|
+
}>, z.ZodObject<{
|
|
16313
|
+
id: z.ZodString;
|
|
16314
|
+
sessionId: z.ZodString;
|
|
16315
|
+
turnId: z.ZodString;
|
|
16316
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
16317
|
+
parentItemId: z.ZodNullable<z.ZodString>;
|
|
16318
|
+
sourceSequence: z.ZodNullable<z.ZodNumber>;
|
|
16319
|
+
revision: z.ZodNumber;
|
|
16320
|
+
status: z.ZodEnum<["PENDING", "IN_PROGRESS", "COMPLETED", "FAILED", "DECLINED", "CANCELLED", "INTERRUPTED"]>;
|
|
16321
|
+
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
16322
|
+
completedAt: z.ZodNullable<z.ZodNumber>;
|
|
16323
|
+
segmentId: z.ZodOptional<z.ZodString>;
|
|
16324
|
+
segmentIndex: z.ZodOptional<z.ZodNumber>;
|
|
16325
|
+
} & {
|
|
16326
|
+
kind: z.ZodLiteral<"context_compaction">;
|
|
16327
|
+
payload: z.ZodObject<{
|
|
16328
|
+
phase: z.ZodEnum<["STARTED", "COMPLETED"]>;
|
|
16329
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
16330
|
+
}, "strip", z.ZodTypeAny, {
|
|
16331
|
+
phase: "COMPLETED" | "STARTED";
|
|
16332
|
+
summary: string | null;
|
|
16333
|
+
}, {
|
|
16334
|
+
phase: "COMPLETED" | "STARTED";
|
|
16335
|
+
summary: string | null;
|
|
16336
|
+
}>;
|
|
16337
|
+
}, "strip", z.ZodTypeAny, {
|
|
16338
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16339
|
+
kind: "context_compaction";
|
|
16340
|
+
id: string;
|
|
16341
|
+
revision: number;
|
|
16342
|
+
runId: string | null;
|
|
16343
|
+
sessionId: string;
|
|
16344
|
+
completedAt: number | null;
|
|
16345
|
+
startedAt: number | null;
|
|
16346
|
+
payload: {
|
|
16347
|
+
phase: "COMPLETED" | "STARTED";
|
|
16348
|
+
summary: string | null;
|
|
16349
|
+
};
|
|
16350
|
+
turnId: string;
|
|
16351
|
+
parentItemId: string | null;
|
|
16352
|
+
sourceSequence: number | null;
|
|
16353
|
+
segmentId?: string | undefined;
|
|
16354
|
+
segmentIndex?: number | undefined;
|
|
16355
|
+
}, {
|
|
16356
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16357
|
+
kind: "context_compaction";
|
|
16358
|
+
id: string;
|
|
16359
|
+
revision: number;
|
|
16360
|
+
runId: string | null;
|
|
16361
|
+
sessionId: string;
|
|
16362
|
+
completedAt: number | null;
|
|
16363
|
+
startedAt: number | null;
|
|
16364
|
+
payload: {
|
|
16365
|
+
phase: "COMPLETED" | "STARTED";
|
|
16366
|
+
summary: string | null;
|
|
16367
|
+
};
|
|
16368
|
+
turnId: string;
|
|
16369
|
+
parentItemId: string | null;
|
|
16370
|
+
sourceSequence: number | null;
|
|
16371
|
+
segmentId?: string | undefined;
|
|
16372
|
+
segmentIndex?: number | undefined;
|
|
16373
|
+
}>, z.ZodObject<{
|
|
16374
|
+
id: z.ZodString;
|
|
16375
|
+
sessionId: z.ZodString;
|
|
16376
|
+
turnId: z.ZodString;
|
|
16377
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
16378
|
+
parentItemId: z.ZodNullable<z.ZodString>;
|
|
16379
|
+
sourceSequence: z.ZodNullable<z.ZodNumber>;
|
|
16380
|
+
revision: z.ZodNumber;
|
|
16381
|
+
status: z.ZodEnum<["PENDING", "IN_PROGRESS", "COMPLETED", "FAILED", "DECLINED", "CANCELLED", "INTERRUPTED"]>;
|
|
16382
|
+
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
16383
|
+
completedAt: z.ZodNullable<z.ZodNumber>;
|
|
16384
|
+
segmentId: z.ZodOptional<z.ZodString>;
|
|
16385
|
+
segmentIndex: z.ZodOptional<z.ZodNumber>;
|
|
16386
|
+
} & {
|
|
16387
|
+
kind: z.ZodLiteral<"warning">;
|
|
16388
|
+
payload: z.ZodObject<{
|
|
16389
|
+
code: z.ZodString;
|
|
16390
|
+
message: z.ZodString;
|
|
16391
|
+
recoverable: z.ZodBoolean;
|
|
16392
|
+
}, "strip", z.ZodTypeAny, {
|
|
16393
|
+
code: string;
|
|
16394
|
+
message: string;
|
|
16395
|
+
recoverable: boolean;
|
|
16396
|
+
}, {
|
|
16397
|
+
code: string;
|
|
16398
|
+
message: string;
|
|
16399
|
+
recoverable: boolean;
|
|
16400
|
+
}>;
|
|
16401
|
+
}, "strip", z.ZodTypeAny, {
|
|
16402
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16403
|
+
kind: "warning";
|
|
16404
|
+
id: string;
|
|
16405
|
+
revision: number;
|
|
16406
|
+
runId: string | null;
|
|
16407
|
+
sessionId: string;
|
|
16408
|
+
completedAt: number | null;
|
|
16409
|
+
startedAt: number | null;
|
|
16410
|
+
payload: {
|
|
16411
|
+
code: string;
|
|
16412
|
+
message: string;
|
|
16413
|
+
recoverable: boolean;
|
|
16414
|
+
};
|
|
16415
|
+
turnId: string;
|
|
16416
|
+
parentItemId: string | null;
|
|
16417
|
+
sourceSequence: number | null;
|
|
16418
|
+
segmentId?: string | undefined;
|
|
16419
|
+
segmentIndex?: number | undefined;
|
|
16420
|
+
}, {
|
|
16421
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16422
|
+
kind: "warning";
|
|
16423
|
+
id: string;
|
|
16424
|
+
revision: number;
|
|
16425
|
+
runId: string | null;
|
|
16426
|
+
sessionId: string;
|
|
16427
|
+
completedAt: number | null;
|
|
16428
|
+
startedAt: number | null;
|
|
16429
|
+
payload: {
|
|
16430
|
+
code: string;
|
|
16431
|
+
message: string;
|
|
16432
|
+
recoverable: boolean;
|
|
16433
|
+
};
|
|
16434
|
+
turnId: string;
|
|
16435
|
+
parentItemId: string | null;
|
|
16436
|
+
sourceSequence: number | null;
|
|
16437
|
+
segmentId?: string | undefined;
|
|
16438
|
+
segmentIndex?: number | undefined;
|
|
16439
|
+
}>, z.ZodObject<{
|
|
16440
|
+
id: z.ZodString;
|
|
16441
|
+
sessionId: z.ZodString;
|
|
16442
|
+
turnId: z.ZodString;
|
|
16443
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
16444
|
+
parentItemId: z.ZodNullable<z.ZodString>;
|
|
16445
|
+
sourceSequence: z.ZodNullable<z.ZodNumber>;
|
|
16446
|
+
revision: z.ZodNumber;
|
|
16447
|
+
status: z.ZodEnum<["PENDING", "IN_PROGRESS", "COMPLETED", "FAILED", "DECLINED", "CANCELLED", "INTERRUPTED"]>;
|
|
16448
|
+
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
16449
|
+
completedAt: z.ZodNullable<z.ZodNumber>;
|
|
16450
|
+
segmentId: z.ZodOptional<z.ZodString>;
|
|
16451
|
+
segmentIndex: z.ZodOptional<z.ZodNumber>;
|
|
16452
|
+
} & {
|
|
16453
|
+
kind: z.ZodLiteral<"error">;
|
|
16454
|
+
payload: z.ZodObject<{
|
|
16455
|
+
code: z.ZodString;
|
|
16456
|
+
message: z.ZodString;
|
|
16457
|
+
httpStatus: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16458
|
+
recoverable: z.ZodBoolean;
|
|
16459
|
+
retryAfterMs: z.ZodNullable<z.ZodNumber>;
|
|
16460
|
+
}, "strip", z.ZodTypeAny, {
|
|
16461
|
+
code: string;
|
|
16462
|
+
message: string;
|
|
16463
|
+
recoverable: boolean;
|
|
16464
|
+
retryAfterMs: number | null;
|
|
16465
|
+
httpStatus?: number | null | undefined;
|
|
16466
|
+
}, {
|
|
16467
|
+
code: string;
|
|
16468
|
+
message: string;
|
|
16469
|
+
recoverable: boolean;
|
|
16470
|
+
retryAfterMs: number | null;
|
|
16471
|
+
httpStatus?: number | null | undefined;
|
|
16472
|
+
}>;
|
|
16473
|
+
}, "strip", z.ZodTypeAny, {
|
|
16474
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16475
|
+
kind: "error";
|
|
16476
|
+
id: string;
|
|
16477
|
+
revision: number;
|
|
16478
|
+
runId: string | null;
|
|
16479
|
+
sessionId: string;
|
|
16480
|
+
completedAt: number | null;
|
|
16481
|
+
startedAt: number | null;
|
|
16482
|
+
payload: {
|
|
16483
|
+
code: string;
|
|
16484
|
+
message: string;
|
|
16485
|
+
recoverable: boolean;
|
|
16486
|
+
retryAfterMs: number | null;
|
|
16487
|
+
httpStatus?: number | null | undefined;
|
|
16488
|
+
};
|
|
16489
|
+
turnId: string;
|
|
16490
|
+
parentItemId: string | null;
|
|
16491
|
+
sourceSequence: number | null;
|
|
16492
|
+
segmentId?: string | undefined;
|
|
16493
|
+
segmentIndex?: number | undefined;
|
|
16494
|
+
}, {
|
|
16495
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16496
|
+
kind: "error";
|
|
16497
|
+
id: string;
|
|
16498
|
+
revision: number;
|
|
16499
|
+
runId: string | null;
|
|
16500
|
+
sessionId: string;
|
|
16501
|
+
completedAt: number | null;
|
|
16502
|
+
startedAt: number | null;
|
|
16503
|
+
payload: {
|
|
16504
|
+
code: string;
|
|
16505
|
+
message: string;
|
|
16506
|
+
recoverable: boolean;
|
|
16507
|
+
retryAfterMs: number | null;
|
|
16508
|
+
httpStatus?: number | null | undefined;
|
|
16509
|
+
};
|
|
16510
|
+
turnId: string;
|
|
16511
|
+
parentItemId: string | null;
|
|
16512
|
+
sourceSequence: number | null;
|
|
16513
|
+
segmentId?: string | undefined;
|
|
16514
|
+
segmentIndex?: number | undefined;
|
|
16515
|
+
}>, z.ZodObject<{
|
|
16516
|
+
id: z.ZodString;
|
|
16517
|
+
sessionId: z.ZodString;
|
|
16518
|
+
turnId: z.ZodString;
|
|
16519
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
16520
|
+
parentItemId: z.ZodNullable<z.ZodString>;
|
|
16521
|
+
sourceSequence: z.ZodNullable<z.ZodNumber>;
|
|
16522
|
+
revision: z.ZodNumber;
|
|
16523
|
+
status: z.ZodEnum<["PENDING", "IN_PROGRESS", "COMPLETED", "FAILED", "DECLINED", "CANCELLED", "INTERRUPTED"]>;
|
|
16524
|
+
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
16525
|
+
completedAt: z.ZodNullable<z.ZodNumber>;
|
|
16526
|
+
segmentId: z.ZodOptional<z.ZodString>;
|
|
16527
|
+
segmentIndex: z.ZodOptional<z.ZodNumber>;
|
|
16528
|
+
} & {
|
|
16529
|
+
kind: z.ZodLiteral<"turn_summary">;
|
|
16530
|
+
payload: z.ZodObject<{
|
|
16531
|
+
status: z.ZodEnum<["STARTING", "RUNNING", "CANCELLING", "SUCCEEDED", "FAILED", "CANCELLED", "INTERRUPTED"]>;
|
|
16532
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
16533
|
+
}, "strip", z.ZodTypeAny, {
|
|
16534
|
+
status: "FAILED" | "SUCCEEDED" | "CANCELLED" | "STARTING" | "RUNNING" | "CANCELLING" | "INTERRUPTED";
|
|
16535
|
+
durationMs: number | null;
|
|
16536
|
+
}, {
|
|
16537
|
+
status: "FAILED" | "SUCCEEDED" | "CANCELLED" | "STARTING" | "RUNNING" | "CANCELLING" | "INTERRUPTED";
|
|
16538
|
+
durationMs: number | null;
|
|
16539
|
+
}>;
|
|
16540
|
+
}, "strip", z.ZodTypeAny, {
|
|
16541
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16542
|
+
kind: "turn_summary";
|
|
16543
|
+
id: string;
|
|
16544
|
+
revision: number;
|
|
16545
|
+
runId: string | null;
|
|
16546
|
+
sessionId: string;
|
|
16547
|
+
completedAt: number | null;
|
|
16548
|
+
startedAt: number | null;
|
|
16549
|
+
payload: {
|
|
16550
|
+
status: "FAILED" | "SUCCEEDED" | "CANCELLED" | "STARTING" | "RUNNING" | "CANCELLING" | "INTERRUPTED";
|
|
16551
|
+
durationMs: number | null;
|
|
16552
|
+
};
|
|
16553
|
+
turnId: string;
|
|
16554
|
+
parentItemId: string | null;
|
|
16555
|
+
sourceSequence: number | null;
|
|
16556
|
+
segmentId?: string | undefined;
|
|
16557
|
+
segmentIndex?: number | undefined;
|
|
16558
|
+
}, {
|
|
16559
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16560
|
+
kind: "turn_summary";
|
|
16561
|
+
id: string;
|
|
16562
|
+
revision: number;
|
|
16563
|
+
runId: string | null;
|
|
16564
|
+
sessionId: string;
|
|
16565
|
+
completedAt: number | null;
|
|
16566
|
+
startedAt: number | null;
|
|
16567
|
+
payload: {
|
|
16568
|
+
status: "FAILED" | "SUCCEEDED" | "CANCELLED" | "STARTING" | "RUNNING" | "CANCELLING" | "INTERRUPTED";
|
|
16569
|
+
durationMs: number | null;
|
|
16570
|
+
};
|
|
16571
|
+
turnId: string;
|
|
16572
|
+
parentItemId: string | null;
|
|
16573
|
+
sourceSequence: number | null;
|
|
16574
|
+
segmentId?: string | undefined;
|
|
16575
|
+
segmentIndex?: number | undefined;
|
|
16576
|
+
}>, z.ZodObject<{
|
|
16577
|
+
id: z.ZodString;
|
|
16578
|
+
sessionId: z.ZodString;
|
|
16579
|
+
turnId: z.ZodString;
|
|
16580
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
16581
|
+
parentItemId: z.ZodNullable<z.ZodString>;
|
|
16582
|
+
sourceSequence: z.ZodNullable<z.ZodNumber>;
|
|
16583
|
+
revision: z.ZodNumber;
|
|
16584
|
+
status: z.ZodEnum<["PENDING", "IN_PROGRESS", "COMPLETED", "FAILED", "DECLINED", "CANCELLED", "INTERRUPTED"]>;
|
|
16585
|
+
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
16586
|
+
completedAt: z.ZodNullable<z.ZodNumber>;
|
|
16587
|
+
segmentId: z.ZodOptional<z.ZodString>;
|
|
16588
|
+
segmentIndex: z.ZodOptional<z.ZodNumber>;
|
|
16589
|
+
} & {
|
|
16590
|
+
kind: z.ZodLiteral<"unknown">;
|
|
16591
|
+
payload: z.ZodObject<{
|
|
16592
|
+
sourceEventType: z.ZodString;
|
|
16593
|
+
label: z.ZodString;
|
|
16594
|
+
}, "strip", z.ZodTypeAny, {
|
|
16595
|
+
label: string;
|
|
16596
|
+
sourceEventType: string;
|
|
16597
|
+
}, {
|
|
16598
|
+
label: string;
|
|
16599
|
+
sourceEventType: string;
|
|
16600
|
+
}>;
|
|
16601
|
+
}, "strip", z.ZodTypeAny, {
|
|
16602
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16603
|
+
kind: "unknown";
|
|
16604
|
+
id: string;
|
|
16605
|
+
revision: number;
|
|
16606
|
+
runId: string | null;
|
|
16607
|
+
sessionId: string;
|
|
16608
|
+
completedAt: number | null;
|
|
16609
|
+
startedAt: number | null;
|
|
16610
|
+
payload: {
|
|
16611
|
+
label: string;
|
|
16612
|
+
sourceEventType: string;
|
|
16613
|
+
};
|
|
16614
|
+
turnId: string;
|
|
16615
|
+
parentItemId: string | null;
|
|
16616
|
+
sourceSequence: number | null;
|
|
16617
|
+
segmentId?: string | undefined;
|
|
16618
|
+
segmentIndex?: number | undefined;
|
|
16619
|
+
}, {
|
|
16620
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16621
|
+
kind: "unknown";
|
|
16622
|
+
id: string;
|
|
16623
|
+
revision: number;
|
|
16624
|
+
runId: string | null;
|
|
16625
|
+
sessionId: string;
|
|
16626
|
+
completedAt: number | null;
|
|
16627
|
+
startedAt: number | null;
|
|
16628
|
+
payload: {
|
|
16629
|
+
label: string;
|
|
16630
|
+
sourceEventType: string;
|
|
16631
|
+
};
|
|
16632
|
+
turnId: string;
|
|
16633
|
+
parentItemId: string | null;
|
|
16634
|
+
sourceSequence: number | null;
|
|
16635
|
+
segmentId?: string | undefined;
|
|
16636
|
+
segmentIndex?: number | undefined;
|
|
16637
|
+
}>]>, "many">;
|
|
16638
|
+
startedAt: z.ZodNullable<z.ZodNumber>;
|
|
16639
|
+
completedAt: z.ZodNullable<z.ZodNumber>;
|
|
16640
|
+
}, "strip", z.ZodTypeAny, {
|
|
16641
|
+
status: "FAILED" | "SUCCEEDED" | "CANCELLED" | "RUNNING" | "INTERRUPTED" | "PREPARING" | "WAITING_INPUT" | "WAITING_APPROVAL" | "LOST";
|
|
16642
|
+
id: string;
|
|
16643
|
+
runId: string | null;
|
|
16644
|
+
sessionId: string;
|
|
16645
|
+
completedAt: number | null;
|
|
16646
|
+
access: string | null;
|
|
16647
|
+
model: string | null;
|
|
16648
|
+
items: ({
|
|
16649
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16650
|
+
kind: "assistant_message";
|
|
16651
|
+
id: string;
|
|
16652
|
+
revision: number;
|
|
16653
|
+
runId: string | null;
|
|
16654
|
+
sessionId: string;
|
|
16655
|
+
completedAt: number | null;
|
|
16656
|
+
startedAt: number | null;
|
|
16657
|
+
payload: {
|
|
16658
|
+
model: string | null;
|
|
16659
|
+
text: string;
|
|
16660
|
+
format: "markdown";
|
|
16661
|
+
};
|
|
16662
|
+
turnId: string;
|
|
16663
|
+
parentItemId: string | null;
|
|
16664
|
+
sourceSequence: number | null;
|
|
16665
|
+
segmentId?: string | undefined;
|
|
16666
|
+
segmentIndex?: number | undefined;
|
|
16667
|
+
} | {
|
|
16668
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16669
|
+
kind: "user_message";
|
|
16670
|
+
id: string;
|
|
16671
|
+
revision: number;
|
|
16672
|
+
runId: string | null;
|
|
16673
|
+
sessionId: string;
|
|
16674
|
+
completedAt: number | null;
|
|
16675
|
+
startedAt: number | null;
|
|
16676
|
+
payload: {
|
|
16677
|
+
clientMessageId: string | null;
|
|
16678
|
+
text: string;
|
|
16679
|
+
contexts: {
|
|
16680
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
16681
|
+
label: string;
|
|
16682
|
+
referenceId: string;
|
|
16683
|
+
path?: string | undefined;
|
|
16684
|
+
startLine?: number | undefined;
|
|
16685
|
+
endLine?: number | undefined;
|
|
16686
|
+
}[];
|
|
16687
|
+
delivery: "PENDING" | "ACCEPTED" | "STEERED" | "QUEUED_NEXT_TURN" | "REJECTED";
|
|
16688
|
+
};
|
|
16689
|
+
turnId: string;
|
|
16690
|
+
parentItemId: string | null;
|
|
16691
|
+
sourceSequence: number | null;
|
|
16692
|
+
segmentId?: string | undefined;
|
|
16693
|
+
segmentIndex?: number | undefined;
|
|
16694
|
+
} | {
|
|
16695
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16696
|
+
kind: "plan";
|
|
16697
|
+
id: string;
|
|
16698
|
+
revision: number;
|
|
16699
|
+
runId: string | null;
|
|
16700
|
+
sessionId: string;
|
|
16701
|
+
completedAt: number | null;
|
|
16702
|
+
startedAt: number | null;
|
|
16703
|
+
payload: {
|
|
16704
|
+
explanation: string | null;
|
|
16705
|
+
steps: {
|
|
16706
|
+
status: "PENDING" | "IN_PROGRESS" | "COMPLETED";
|
|
16707
|
+
id: string;
|
|
16708
|
+
text: string;
|
|
16709
|
+
}[];
|
|
16710
|
+
};
|
|
16711
|
+
turnId: string;
|
|
16712
|
+
parentItemId: string | null;
|
|
16713
|
+
sourceSequence: number | null;
|
|
16714
|
+
segmentId?: string | undefined;
|
|
16715
|
+
segmentIndex?: number | undefined;
|
|
16716
|
+
} | {
|
|
16717
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16718
|
+
kind: "todo_list";
|
|
16719
|
+
id: string;
|
|
16720
|
+
revision: number;
|
|
16721
|
+
runId: string | null;
|
|
16722
|
+
sessionId: string;
|
|
16723
|
+
completedAt: number | null;
|
|
16724
|
+
startedAt: number | null;
|
|
16725
|
+
payload: {
|
|
16726
|
+
items: {
|
|
16727
|
+
status: "PENDING" | "IN_PROGRESS" | "COMPLETED";
|
|
16728
|
+
id: string;
|
|
16729
|
+
text: string;
|
|
16730
|
+
}[];
|
|
16731
|
+
};
|
|
16732
|
+
turnId: string;
|
|
16733
|
+
parentItemId: string | null;
|
|
16734
|
+
sourceSequence: number | null;
|
|
16735
|
+
segmentId?: string | undefined;
|
|
16736
|
+
segmentIndex?: number | undefined;
|
|
16737
|
+
} | {
|
|
16738
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16739
|
+
kind: "approval";
|
|
16740
|
+
id: string;
|
|
16741
|
+
revision: number;
|
|
16742
|
+
runId: string | null;
|
|
16743
|
+
sessionId: string;
|
|
16744
|
+
completedAt: number | null;
|
|
16745
|
+
startedAt: number | null;
|
|
16746
|
+
payload: {
|
|
16747
|
+
reason: string | null;
|
|
16748
|
+
expiresAt: number;
|
|
16749
|
+
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
16750
|
+
approvalId: string;
|
|
16751
|
+
resolvedDecision: string | null;
|
|
16752
|
+
};
|
|
16753
|
+
turnId: string;
|
|
16754
|
+
parentItemId: string | null;
|
|
16755
|
+
sourceSequence: number | null;
|
|
16756
|
+
segmentId?: string | undefined;
|
|
16757
|
+
segmentIndex?: number | undefined;
|
|
16758
|
+
} | {
|
|
16759
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16760
|
+
kind: "turn_summary";
|
|
16761
|
+
id: string;
|
|
16762
|
+
revision: number;
|
|
16763
|
+
runId: string | null;
|
|
16764
|
+
sessionId: string;
|
|
16765
|
+
completedAt: number | null;
|
|
16766
|
+
startedAt: number | null;
|
|
16767
|
+
payload: {
|
|
16768
|
+
status: "FAILED" | "SUCCEEDED" | "CANCELLED" | "STARTING" | "RUNNING" | "CANCELLING" | "INTERRUPTED";
|
|
16769
|
+
durationMs: number | null;
|
|
16770
|
+
};
|
|
16771
|
+
turnId: string;
|
|
16772
|
+
parentItemId: string | null;
|
|
16773
|
+
sourceSequence: number | null;
|
|
16774
|
+
segmentId?: string | undefined;
|
|
16775
|
+
segmentIndex?: number | undefined;
|
|
16776
|
+
} | {
|
|
16777
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16778
|
+
kind: "reasoning_summary";
|
|
16779
|
+
id: string;
|
|
16780
|
+
revision: number;
|
|
16781
|
+
runId: string | null;
|
|
16782
|
+
sessionId: string;
|
|
16783
|
+
completedAt: number | null;
|
|
16784
|
+
startedAt: number | null;
|
|
16785
|
+
payload: {
|
|
16786
|
+
sections: {
|
|
16787
|
+
text: string;
|
|
16788
|
+
index: number;
|
|
16789
|
+
}[];
|
|
16790
|
+
};
|
|
16791
|
+
turnId: string;
|
|
16792
|
+
parentItemId: string | null;
|
|
16793
|
+
sourceSequence: number | null;
|
|
16794
|
+
segmentId?: string | undefined;
|
|
16795
|
+
segmentIndex?: number | undefined;
|
|
16796
|
+
} | {
|
|
16797
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16798
|
+
kind: "tool_call";
|
|
16799
|
+
id: string;
|
|
16800
|
+
revision: number;
|
|
16801
|
+
runId: string | null;
|
|
16802
|
+
sessionId: string;
|
|
16803
|
+
completedAt: number | null;
|
|
16804
|
+
startedAt: number | null;
|
|
16805
|
+
payload: {
|
|
16806
|
+
errorCode: string | null;
|
|
16807
|
+
truncated: boolean;
|
|
16808
|
+
namespace: string;
|
|
16809
|
+
toolName: string;
|
|
16810
|
+
title: string;
|
|
16811
|
+
inputSummary: string | null;
|
|
16812
|
+
outputSummary: string | null;
|
|
16813
|
+
progressLabel: string | null;
|
|
16814
|
+
toolCategory?: "IMAGE_GENERATION" | undefined;
|
|
16815
|
+
subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
|
|
16816
|
+
subagentId?: string | null | undefined;
|
|
16817
|
+
subagentModelId?: string | undefined;
|
|
16818
|
+
subagentModelName?: string | undefined;
|
|
16819
|
+
subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
|
|
16820
|
+
subagentLatestMessage?: {
|
|
16821
|
+
turnId: string;
|
|
16822
|
+
text: string;
|
|
16823
|
+
itemId: string;
|
|
16824
|
+
phase: "commentary" | "final_answer";
|
|
16825
|
+
timestamp: string;
|
|
16826
|
+
truncated?: boolean | undefined;
|
|
16827
|
+
} | undefined;
|
|
16828
|
+
attachments?: {
|
|
16829
|
+
mime: string;
|
|
16830
|
+
name: string;
|
|
16831
|
+
runId?: string | undefined;
|
|
16832
|
+
byteSize?: number | undefined;
|
|
16833
|
+
imageIndex?: number | undefined;
|
|
16834
|
+
}[] | undefined;
|
|
16835
|
+
};
|
|
16836
|
+
turnId: string;
|
|
16837
|
+
parentItemId: string | null;
|
|
16838
|
+
sourceSequence: number | null;
|
|
16839
|
+
segmentId?: string | undefined;
|
|
16840
|
+
segmentIndex?: number | undefined;
|
|
16841
|
+
} | {
|
|
16842
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16843
|
+
kind: "command_execution";
|
|
16844
|
+
id: string;
|
|
16845
|
+
revision: number;
|
|
16846
|
+
runId: string | null;
|
|
16847
|
+
sessionId: string;
|
|
16848
|
+
completedAt: number | null;
|
|
16849
|
+
startedAt: number | null;
|
|
16850
|
+
payload: {
|
|
16851
|
+
command: string;
|
|
16852
|
+
durationMs: number | null;
|
|
16853
|
+
truncated: boolean;
|
|
16854
|
+
cwd: string | null;
|
|
16855
|
+
outputPreview: string;
|
|
16856
|
+
outputRef: string | null;
|
|
16857
|
+
exitCode: number | null;
|
|
16858
|
+
};
|
|
16859
|
+
turnId: string;
|
|
16860
|
+
parentItemId: string | null;
|
|
16861
|
+
sourceSequence: number | null;
|
|
16862
|
+
segmentId?: string | undefined;
|
|
16863
|
+
segmentIndex?: number | undefined;
|
|
16864
|
+
} | {
|
|
16865
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16866
|
+
kind: "file_change";
|
|
16867
|
+
id: string;
|
|
16868
|
+
revision: number;
|
|
16869
|
+
runId: string | null;
|
|
16870
|
+
sessionId: string;
|
|
16871
|
+
completedAt: number | null;
|
|
16872
|
+
startedAt: number | null;
|
|
16873
|
+
payload: {
|
|
16874
|
+
changes: {
|
|
16875
|
+
path: string;
|
|
16876
|
+
change: "ADDED" | "MODIFIED" | "DELETED" | "RENAMED" | "COPIED" | "TYPE_CHANGED";
|
|
16877
|
+
additions: number | null;
|
|
16878
|
+
deletions: number | null;
|
|
16879
|
+
diffAvailable: boolean;
|
|
16880
|
+
}[];
|
|
16881
|
+
};
|
|
16882
|
+
turnId: string;
|
|
16883
|
+
parentItemId: string | null;
|
|
16884
|
+
sourceSequence: number | null;
|
|
16885
|
+
segmentId?: string | undefined;
|
|
16886
|
+
segmentIndex?: number | undefined;
|
|
16887
|
+
} | {
|
|
16888
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16889
|
+
kind: "user_input_request";
|
|
16890
|
+
id: string;
|
|
16891
|
+
revision: number;
|
|
16892
|
+
runId: string | null;
|
|
16893
|
+
sessionId: string;
|
|
16894
|
+
completedAt: number | null;
|
|
16895
|
+
startedAt: number | null;
|
|
16896
|
+
payload: {
|
|
16897
|
+
requestId: string;
|
|
16898
|
+
questions: {
|
|
16899
|
+
options: {
|
|
16900
|
+
value: string;
|
|
16901
|
+
description: string | null;
|
|
16902
|
+
label: string;
|
|
16903
|
+
}[];
|
|
16904
|
+
id: string;
|
|
16905
|
+
prompt: string;
|
|
16906
|
+
input: "SINGLE_SELECT" | "MULTI_SELECT" | "SHORT_TEXT";
|
|
16907
|
+
allowOther: boolean;
|
|
16908
|
+
multiSelect?: boolean | undefined;
|
|
16909
|
+
}[];
|
|
16910
|
+
};
|
|
16911
|
+
turnId: string;
|
|
16912
|
+
parentItemId: string | null;
|
|
16913
|
+
sourceSequence: number | null;
|
|
16914
|
+
segmentId?: string | undefined;
|
|
16915
|
+
segmentIndex?: number | undefined;
|
|
16916
|
+
} | {
|
|
16917
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16918
|
+
kind: "context_compaction";
|
|
16919
|
+
id: string;
|
|
16920
|
+
revision: number;
|
|
16921
|
+
runId: string | null;
|
|
16922
|
+
sessionId: string;
|
|
16923
|
+
completedAt: number | null;
|
|
16924
|
+
startedAt: number | null;
|
|
16925
|
+
payload: {
|
|
16926
|
+
phase: "COMPLETED" | "STARTED";
|
|
16927
|
+
summary: string | null;
|
|
16928
|
+
};
|
|
16929
|
+
turnId: string;
|
|
16930
|
+
parentItemId: string | null;
|
|
16931
|
+
sourceSequence: number | null;
|
|
16932
|
+
segmentId?: string | undefined;
|
|
16933
|
+
segmentIndex?: number | undefined;
|
|
16934
|
+
} | {
|
|
16935
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16936
|
+
kind: "warning";
|
|
16937
|
+
id: string;
|
|
16938
|
+
revision: number;
|
|
16939
|
+
runId: string | null;
|
|
16940
|
+
sessionId: string;
|
|
16941
|
+
completedAt: number | null;
|
|
16942
|
+
startedAt: number | null;
|
|
16943
|
+
payload: {
|
|
16944
|
+
code: string;
|
|
16945
|
+
message: string;
|
|
16946
|
+
recoverable: boolean;
|
|
16947
|
+
};
|
|
16948
|
+
turnId: string;
|
|
16949
|
+
parentItemId: string | null;
|
|
16950
|
+
sourceSequence: number | null;
|
|
16951
|
+
segmentId?: string | undefined;
|
|
16952
|
+
segmentIndex?: number | undefined;
|
|
16953
|
+
} | {
|
|
16954
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16955
|
+
kind: "error";
|
|
16956
|
+
id: string;
|
|
16957
|
+
revision: number;
|
|
16958
|
+
runId: string | null;
|
|
16959
|
+
sessionId: string;
|
|
16960
|
+
completedAt: number | null;
|
|
16961
|
+
startedAt: number | null;
|
|
16962
|
+
payload: {
|
|
16963
|
+
code: string;
|
|
16964
|
+
message: string;
|
|
16965
|
+
recoverable: boolean;
|
|
16966
|
+
retryAfterMs: number | null;
|
|
16967
|
+
httpStatus?: number | null | undefined;
|
|
16968
|
+
};
|
|
16969
|
+
turnId: string;
|
|
16970
|
+
parentItemId: string | null;
|
|
16971
|
+
sourceSequence: number | null;
|
|
16972
|
+
segmentId?: string | undefined;
|
|
16973
|
+
segmentIndex?: number | undefined;
|
|
16974
|
+
} | {
|
|
16975
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
16976
|
+
kind: "unknown";
|
|
16977
|
+
id: string;
|
|
16978
|
+
revision: number;
|
|
16979
|
+
runId: string | null;
|
|
16980
|
+
sessionId: string;
|
|
16981
|
+
completedAt: number | null;
|
|
16982
|
+
startedAt: number | null;
|
|
16983
|
+
payload: {
|
|
16984
|
+
label: string;
|
|
16985
|
+
sourceEventType: string;
|
|
16986
|
+
};
|
|
16987
|
+
turnId: string;
|
|
16988
|
+
parentItemId: string | null;
|
|
16989
|
+
sourceSequence: number | null;
|
|
16990
|
+
segmentId?: string | undefined;
|
|
16991
|
+
segmentIndex?: number | undefined;
|
|
16992
|
+
})[];
|
|
16993
|
+
startedAt: number | null;
|
|
16994
|
+
effort: string | null;
|
|
16995
|
+
userItemId: string | null;
|
|
16996
|
+
rewind?: {
|
|
16997
|
+
before: string | null;
|
|
16998
|
+
after: string;
|
|
16999
|
+
} | undefined;
|
|
17000
|
+
}, {
|
|
17001
|
+
status: "FAILED" | "SUCCEEDED" | "CANCELLED" | "RUNNING" | "INTERRUPTED" | "PREPARING" | "WAITING_INPUT" | "WAITING_APPROVAL" | "LOST";
|
|
17002
|
+
id: string;
|
|
17003
|
+
runId: string | null;
|
|
17004
|
+
sessionId: string;
|
|
17005
|
+
completedAt: number | null;
|
|
17006
|
+
access: string | null;
|
|
17007
|
+
model: string | null;
|
|
17008
|
+
items: ({
|
|
17009
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17010
|
+
kind: "assistant_message";
|
|
17011
|
+
id: string;
|
|
17012
|
+
revision: number;
|
|
17013
|
+
runId: string | null;
|
|
17014
|
+
sessionId: string;
|
|
17015
|
+
completedAt: number | null;
|
|
17016
|
+
startedAt: number | null;
|
|
17017
|
+
payload: {
|
|
17018
|
+
model: string | null;
|
|
17019
|
+
text: string;
|
|
17020
|
+
format: "markdown";
|
|
17021
|
+
};
|
|
17022
|
+
turnId: string;
|
|
17023
|
+
parentItemId: string | null;
|
|
17024
|
+
sourceSequence: number | null;
|
|
17025
|
+
segmentId?: string | undefined;
|
|
17026
|
+
segmentIndex?: number | undefined;
|
|
17027
|
+
} | {
|
|
17028
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17029
|
+
kind: "user_message";
|
|
17030
|
+
id: string;
|
|
17031
|
+
revision: number;
|
|
17032
|
+
runId: string | null;
|
|
17033
|
+
sessionId: string;
|
|
17034
|
+
completedAt: number | null;
|
|
17035
|
+
startedAt: number | null;
|
|
17036
|
+
payload: {
|
|
17037
|
+
clientMessageId: string | null;
|
|
17038
|
+
text: string;
|
|
17039
|
+
delivery: "PENDING" | "ACCEPTED" | "STEERED" | "QUEUED_NEXT_TURN" | "REJECTED";
|
|
17040
|
+
contexts?: {
|
|
17041
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
17042
|
+
label: string;
|
|
17043
|
+
referenceId: string;
|
|
17044
|
+
path?: string | undefined;
|
|
17045
|
+
startLine?: number | undefined;
|
|
17046
|
+
endLine?: number | undefined;
|
|
17047
|
+
}[] | undefined;
|
|
17048
|
+
};
|
|
17049
|
+
turnId: string;
|
|
17050
|
+
parentItemId: string | null;
|
|
17051
|
+
sourceSequence: number | null;
|
|
17052
|
+
segmentId?: string | undefined;
|
|
17053
|
+
segmentIndex?: number | undefined;
|
|
17054
|
+
} | {
|
|
17055
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17056
|
+
kind: "plan";
|
|
17057
|
+
id: string;
|
|
17058
|
+
revision: number;
|
|
17059
|
+
runId: string | null;
|
|
17060
|
+
sessionId: string;
|
|
17061
|
+
completedAt: number | null;
|
|
17062
|
+
startedAt: number | null;
|
|
17063
|
+
payload: {
|
|
17064
|
+
explanation: string | null;
|
|
17065
|
+
steps: {
|
|
17066
|
+
status: "PENDING" | "IN_PROGRESS" | "COMPLETED";
|
|
17067
|
+
id: string;
|
|
17068
|
+
text: string;
|
|
17069
|
+
}[];
|
|
17070
|
+
};
|
|
17071
|
+
turnId: string;
|
|
17072
|
+
parentItemId: string | null;
|
|
17073
|
+
sourceSequence: number | null;
|
|
17074
|
+
segmentId?: string | undefined;
|
|
17075
|
+
segmentIndex?: number | undefined;
|
|
17076
|
+
} | {
|
|
17077
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17078
|
+
kind: "todo_list";
|
|
17079
|
+
id: string;
|
|
17080
|
+
revision: number;
|
|
17081
|
+
runId: string | null;
|
|
17082
|
+
sessionId: string;
|
|
17083
|
+
completedAt: number | null;
|
|
17084
|
+
startedAt: number | null;
|
|
17085
|
+
payload: {
|
|
17086
|
+
items: {
|
|
17087
|
+
status: "PENDING" | "IN_PROGRESS" | "COMPLETED";
|
|
17088
|
+
id: string;
|
|
17089
|
+
text: string;
|
|
17090
|
+
}[];
|
|
17091
|
+
};
|
|
17092
|
+
turnId: string;
|
|
17093
|
+
parentItemId: string | null;
|
|
17094
|
+
sourceSequence: number | null;
|
|
17095
|
+
segmentId?: string | undefined;
|
|
17096
|
+
segmentIndex?: number | undefined;
|
|
17097
|
+
} | {
|
|
17098
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17099
|
+
kind: "approval";
|
|
17100
|
+
id: string;
|
|
17101
|
+
revision: number;
|
|
17102
|
+
runId: string | null;
|
|
17103
|
+
sessionId: string;
|
|
17104
|
+
completedAt: number | null;
|
|
17105
|
+
startedAt: number | null;
|
|
17106
|
+
payload: {
|
|
17107
|
+
reason: string | null;
|
|
17108
|
+
expiresAt: number;
|
|
17109
|
+
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
17110
|
+
approvalId: string;
|
|
17111
|
+
resolvedDecision: string | null;
|
|
17112
|
+
};
|
|
17113
|
+
turnId: string;
|
|
17114
|
+
parentItemId: string | null;
|
|
17115
|
+
sourceSequence: number | null;
|
|
17116
|
+
segmentId?: string | undefined;
|
|
17117
|
+
segmentIndex?: number | undefined;
|
|
17118
|
+
} | {
|
|
17119
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17120
|
+
kind: "turn_summary";
|
|
17121
|
+
id: string;
|
|
17122
|
+
revision: number;
|
|
17123
|
+
runId: string | null;
|
|
17124
|
+
sessionId: string;
|
|
17125
|
+
completedAt: number | null;
|
|
17126
|
+
startedAt: number | null;
|
|
17127
|
+
payload: {
|
|
17128
|
+
status: "FAILED" | "SUCCEEDED" | "CANCELLED" | "STARTING" | "RUNNING" | "CANCELLING" | "INTERRUPTED";
|
|
17129
|
+
durationMs: number | null;
|
|
17130
|
+
};
|
|
17131
|
+
turnId: string;
|
|
17132
|
+
parentItemId: string | null;
|
|
17133
|
+
sourceSequence: number | null;
|
|
17134
|
+
segmentId?: string | undefined;
|
|
17135
|
+
segmentIndex?: number | undefined;
|
|
17136
|
+
} | {
|
|
17137
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17138
|
+
kind: "reasoning_summary";
|
|
17139
|
+
id: string;
|
|
17140
|
+
revision: number;
|
|
17141
|
+
runId: string | null;
|
|
17142
|
+
sessionId: string;
|
|
17143
|
+
completedAt: number | null;
|
|
17144
|
+
startedAt: number | null;
|
|
17145
|
+
payload: {
|
|
17146
|
+
sections: {
|
|
17147
|
+
text: string;
|
|
17148
|
+
index: number;
|
|
17149
|
+
}[];
|
|
17150
|
+
};
|
|
17151
|
+
turnId: string;
|
|
17152
|
+
parentItemId: string | null;
|
|
17153
|
+
sourceSequence: number | null;
|
|
17154
|
+
segmentId?: string | undefined;
|
|
17155
|
+
segmentIndex?: number | undefined;
|
|
17156
|
+
} | {
|
|
17157
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17158
|
+
kind: "tool_call";
|
|
17159
|
+
id: string;
|
|
17160
|
+
revision: number;
|
|
17161
|
+
runId: string | null;
|
|
17162
|
+
sessionId: string;
|
|
17163
|
+
completedAt: number | null;
|
|
17164
|
+
startedAt: number | null;
|
|
17165
|
+
payload: {
|
|
17166
|
+
errorCode: string | null;
|
|
17167
|
+
truncated: boolean;
|
|
17168
|
+
namespace: string;
|
|
17169
|
+
toolName: string;
|
|
17170
|
+
title: string;
|
|
17171
|
+
inputSummary: string | null;
|
|
17172
|
+
outputSummary: string | null;
|
|
17173
|
+
progressLabel: string | null;
|
|
17174
|
+
toolCategory?: "IMAGE_GENERATION" | undefined;
|
|
17175
|
+
subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
|
|
17176
|
+
subagentId?: string | null | undefined;
|
|
17177
|
+
subagentModelId?: string | undefined;
|
|
17178
|
+
subagentModelName?: string | undefined;
|
|
17179
|
+
subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
|
|
17180
|
+
subagentLatestMessage?: {
|
|
17181
|
+
turnId: string;
|
|
17182
|
+
text: string;
|
|
17183
|
+
itemId: string;
|
|
17184
|
+
phase: "commentary" | "final_answer";
|
|
17185
|
+
timestamp: string;
|
|
17186
|
+
truncated?: boolean | undefined;
|
|
17187
|
+
} | undefined;
|
|
17188
|
+
attachments?: {
|
|
17189
|
+
mime: string;
|
|
17190
|
+
name: string;
|
|
17191
|
+
runId?: string | undefined;
|
|
17192
|
+
byteSize?: number | undefined;
|
|
17193
|
+
imageIndex?: number | undefined;
|
|
17194
|
+
}[] | undefined;
|
|
17195
|
+
};
|
|
17196
|
+
turnId: string;
|
|
17197
|
+
parentItemId: string | null;
|
|
17198
|
+
sourceSequence: number | null;
|
|
17199
|
+
segmentId?: string | undefined;
|
|
17200
|
+
segmentIndex?: number | undefined;
|
|
17201
|
+
} | {
|
|
17202
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17203
|
+
kind: "command_execution";
|
|
17204
|
+
id: string;
|
|
17205
|
+
revision: number;
|
|
17206
|
+
runId: string | null;
|
|
17207
|
+
sessionId: string;
|
|
17208
|
+
completedAt: number | null;
|
|
17209
|
+
startedAt: number | null;
|
|
17210
|
+
payload: {
|
|
17211
|
+
command: string;
|
|
17212
|
+
durationMs: number | null;
|
|
17213
|
+
truncated: boolean;
|
|
17214
|
+
cwd: string | null;
|
|
17215
|
+
outputPreview: string;
|
|
17216
|
+
outputRef: string | null;
|
|
17217
|
+
exitCode: number | null;
|
|
17218
|
+
};
|
|
17219
|
+
turnId: string;
|
|
17220
|
+
parentItemId: string | null;
|
|
17221
|
+
sourceSequence: number | null;
|
|
17222
|
+
segmentId?: string | undefined;
|
|
17223
|
+
segmentIndex?: number | undefined;
|
|
17224
|
+
} | {
|
|
17225
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17226
|
+
kind: "file_change";
|
|
17227
|
+
id: string;
|
|
17228
|
+
revision: number;
|
|
17229
|
+
runId: string | null;
|
|
17230
|
+
sessionId: string;
|
|
17231
|
+
completedAt: number | null;
|
|
17232
|
+
startedAt: number | null;
|
|
17233
|
+
payload: {
|
|
17234
|
+
changes: {
|
|
17235
|
+
path: string;
|
|
17236
|
+
change: "ADDED" | "MODIFIED" | "DELETED" | "RENAMED" | "COPIED" | "TYPE_CHANGED";
|
|
17237
|
+
additions: number | null;
|
|
17238
|
+
deletions: number | null;
|
|
17239
|
+
diffAvailable: boolean;
|
|
17240
|
+
}[];
|
|
17241
|
+
};
|
|
17242
|
+
turnId: string;
|
|
17243
|
+
parentItemId: string | null;
|
|
17244
|
+
sourceSequence: number | null;
|
|
17245
|
+
segmentId?: string | undefined;
|
|
17246
|
+
segmentIndex?: number | undefined;
|
|
17247
|
+
} | {
|
|
17248
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17249
|
+
kind: "user_input_request";
|
|
17250
|
+
id: string;
|
|
17251
|
+
revision: number;
|
|
17252
|
+
runId: string | null;
|
|
17253
|
+
sessionId: string;
|
|
17254
|
+
completedAt: number | null;
|
|
17255
|
+
startedAt: number | null;
|
|
17256
|
+
payload: {
|
|
17257
|
+
requestId: string;
|
|
17258
|
+
questions: {
|
|
17259
|
+
options: {
|
|
17260
|
+
value: string;
|
|
17261
|
+
description: string | null;
|
|
17262
|
+
label: string;
|
|
17263
|
+
}[];
|
|
17264
|
+
id: string;
|
|
17265
|
+
prompt: string;
|
|
17266
|
+
input: "SINGLE_SELECT" | "MULTI_SELECT" | "SHORT_TEXT";
|
|
17267
|
+
allowOther: boolean;
|
|
17268
|
+
multiSelect?: boolean | undefined;
|
|
17269
|
+
}[];
|
|
17270
|
+
};
|
|
17271
|
+
turnId: string;
|
|
17272
|
+
parentItemId: string | null;
|
|
17273
|
+
sourceSequence: number | null;
|
|
17274
|
+
segmentId?: string | undefined;
|
|
17275
|
+
segmentIndex?: number | undefined;
|
|
17276
|
+
} | {
|
|
17277
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17278
|
+
kind: "context_compaction";
|
|
17279
|
+
id: string;
|
|
17280
|
+
revision: number;
|
|
17281
|
+
runId: string | null;
|
|
17282
|
+
sessionId: string;
|
|
17283
|
+
completedAt: number | null;
|
|
17284
|
+
startedAt: number | null;
|
|
17285
|
+
payload: {
|
|
17286
|
+
phase: "COMPLETED" | "STARTED";
|
|
17287
|
+
summary: string | null;
|
|
17288
|
+
};
|
|
17289
|
+
turnId: string;
|
|
17290
|
+
parentItemId: string | null;
|
|
17291
|
+
sourceSequence: number | null;
|
|
17292
|
+
segmentId?: string | undefined;
|
|
17293
|
+
segmentIndex?: number | undefined;
|
|
17294
|
+
} | {
|
|
17295
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17296
|
+
kind: "warning";
|
|
17297
|
+
id: string;
|
|
17298
|
+
revision: number;
|
|
17299
|
+
runId: string | null;
|
|
17300
|
+
sessionId: string;
|
|
17301
|
+
completedAt: number | null;
|
|
17302
|
+
startedAt: number | null;
|
|
17303
|
+
payload: {
|
|
17304
|
+
code: string;
|
|
17305
|
+
message: string;
|
|
17306
|
+
recoverable: boolean;
|
|
17307
|
+
};
|
|
17308
|
+
turnId: string;
|
|
17309
|
+
parentItemId: string | null;
|
|
17310
|
+
sourceSequence: number | null;
|
|
17311
|
+
segmentId?: string | undefined;
|
|
17312
|
+
segmentIndex?: number | undefined;
|
|
17313
|
+
} | {
|
|
17314
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17315
|
+
kind: "error";
|
|
17316
|
+
id: string;
|
|
17317
|
+
revision: number;
|
|
17318
|
+
runId: string | null;
|
|
17319
|
+
sessionId: string;
|
|
17320
|
+
completedAt: number | null;
|
|
17321
|
+
startedAt: number | null;
|
|
17322
|
+
payload: {
|
|
17323
|
+
code: string;
|
|
17324
|
+
message: string;
|
|
17325
|
+
recoverable: boolean;
|
|
17326
|
+
retryAfterMs: number | null;
|
|
17327
|
+
httpStatus?: number | null | undefined;
|
|
17328
|
+
};
|
|
17329
|
+
turnId: string;
|
|
17330
|
+
parentItemId: string | null;
|
|
17331
|
+
sourceSequence: number | null;
|
|
17332
|
+
segmentId?: string | undefined;
|
|
17333
|
+
segmentIndex?: number | undefined;
|
|
17334
|
+
} | {
|
|
17335
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17336
|
+
kind: "unknown";
|
|
17337
|
+
id: string;
|
|
17338
|
+
revision: number;
|
|
17339
|
+
runId: string | null;
|
|
17340
|
+
sessionId: string;
|
|
17341
|
+
completedAt: number | null;
|
|
17342
|
+
startedAt: number | null;
|
|
17343
|
+
payload: {
|
|
17344
|
+
label: string;
|
|
17345
|
+
sourceEventType: string;
|
|
17346
|
+
};
|
|
17347
|
+
turnId: string;
|
|
17348
|
+
parentItemId: string | null;
|
|
17349
|
+
sourceSequence: number | null;
|
|
17350
|
+
segmentId?: string | undefined;
|
|
17351
|
+
segmentIndex?: number | undefined;
|
|
17352
|
+
})[];
|
|
17353
|
+
startedAt: number | null;
|
|
17354
|
+
effort: string | null;
|
|
17355
|
+
userItemId: string | null;
|
|
17356
|
+
rewind?: {
|
|
17357
|
+
before: string | null;
|
|
17358
|
+
after: string;
|
|
17359
|
+
} | undefined;
|
|
17360
|
+
}>, "many">;
|
|
17361
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
17362
|
+
}, "strict", z.ZodTypeAny, {
|
|
17363
|
+
turns: {
|
|
17364
|
+
status: "FAILED" | "SUCCEEDED" | "CANCELLED" | "RUNNING" | "INTERRUPTED" | "PREPARING" | "WAITING_INPUT" | "WAITING_APPROVAL" | "LOST";
|
|
17365
|
+
id: string;
|
|
17366
|
+
runId: string | null;
|
|
17367
|
+
sessionId: string;
|
|
17368
|
+
completedAt: number | null;
|
|
17369
|
+
access: string | null;
|
|
17370
|
+
model: string | null;
|
|
17371
|
+
items: ({
|
|
17372
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17373
|
+
kind: "assistant_message";
|
|
17374
|
+
id: string;
|
|
17375
|
+
revision: number;
|
|
17376
|
+
runId: string | null;
|
|
17377
|
+
sessionId: string;
|
|
17378
|
+
completedAt: number | null;
|
|
17379
|
+
startedAt: number | null;
|
|
17380
|
+
payload: {
|
|
17381
|
+
model: string | null;
|
|
17382
|
+
text: string;
|
|
17383
|
+
format: "markdown";
|
|
17384
|
+
};
|
|
17385
|
+
turnId: string;
|
|
17386
|
+
parentItemId: string | null;
|
|
17387
|
+
sourceSequence: number | null;
|
|
17388
|
+
segmentId?: string | undefined;
|
|
17389
|
+
segmentIndex?: number | undefined;
|
|
17390
|
+
} | {
|
|
17391
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17392
|
+
kind: "user_message";
|
|
17393
|
+
id: string;
|
|
17394
|
+
revision: number;
|
|
17395
|
+
runId: string | null;
|
|
17396
|
+
sessionId: string;
|
|
17397
|
+
completedAt: number | null;
|
|
17398
|
+
startedAt: number | null;
|
|
17399
|
+
payload: {
|
|
17400
|
+
clientMessageId: string | null;
|
|
17401
|
+
text: string;
|
|
17402
|
+
contexts: {
|
|
17403
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
17404
|
+
label: string;
|
|
17405
|
+
referenceId: string;
|
|
17406
|
+
path?: string | undefined;
|
|
17407
|
+
startLine?: number | undefined;
|
|
17408
|
+
endLine?: number | undefined;
|
|
17409
|
+
}[];
|
|
17410
|
+
delivery: "PENDING" | "ACCEPTED" | "STEERED" | "QUEUED_NEXT_TURN" | "REJECTED";
|
|
17411
|
+
};
|
|
17412
|
+
turnId: string;
|
|
17413
|
+
parentItemId: string | null;
|
|
17414
|
+
sourceSequence: number | null;
|
|
17415
|
+
segmentId?: string | undefined;
|
|
17416
|
+
segmentIndex?: number | undefined;
|
|
17417
|
+
} | {
|
|
17418
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17419
|
+
kind: "plan";
|
|
17420
|
+
id: string;
|
|
17421
|
+
revision: number;
|
|
17422
|
+
runId: string | null;
|
|
17423
|
+
sessionId: string;
|
|
17424
|
+
completedAt: number | null;
|
|
17425
|
+
startedAt: number | null;
|
|
17426
|
+
payload: {
|
|
17427
|
+
explanation: string | null;
|
|
17428
|
+
steps: {
|
|
17429
|
+
status: "PENDING" | "IN_PROGRESS" | "COMPLETED";
|
|
17430
|
+
id: string;
|
|
17431
|
+
text: string;
|
|
17432
|
+
}[];
|
|
17433
|
+
};
|
|
17434
|
+
turnId: string;
|
|
17435
|
+
parentItemId: string | null;
|
|
17436
|
+
sourceSequence: number | null;
|
|
17437
|
+
segmentId?: string | undefined;
|
|
17438
|
+
segmentIndex?: number | undefined;
|
|
17439
|
+
} | {
|
|
17440
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17441
|
+
kind: "todo_list";
|
|
17442
|
+
id: string;
|
|
17443
|
+
revision: number;
|
|
17444
|
+
runId: string | null;
|
|
17445
|
+
sessionId: string;
|
|
17446
|
+
completedAt: number | null;
|
|
17447
|
+
startedAt: number | null;
|
|
17448
|
+
payload: {
|
|
17449
|
+
items: {
|
|
17450
|
+
status: "PENDING" | "IN_PROGRESS" | "COMPLETED";
|
|
17451
|
+
id: string;
|
|
17452
|
+
text: string;
|
|
17453
|
+
}[];
|
|
17454
|
+
};
|
|
17455
|
+
turnId: string;
|
|
17456
|
+
parentItemId: string | null;
|
|
17457
|
+
sourceSequence: number | null;
|
|
17458
|
+
segmentId?: string | undefined;
|
|
17459
|
+
segmentIndex?: number | undefined;
|
|
17460
|
+
} | {
|
|
17461
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17462
|
+
kind: "approval";
|
|
17463
|
+
id: string;
|
|
17464
|
+
revision: number;
|
|
17465
|
+
runId: string | null;
|
|
17466
|
+
sessionId: string;
|
|
17467
|
+
completedAt: number | null;
|
|
17468
|
+
startedAt: number | null;
|
|
17469
|
+
payload: {
|
|
17470
|
+
reason: string | null;
|
|
17471
|
+
expiresAt: number;
|
|
17472
|
+
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
17473
|
+
approvalId: string;
|
|
17474
|
+
resolvedDecision: string | null;
|
|
17475
|
+
};
|
|
17476
|
+
turnId: string;
|
|
17477
|
+
parentItemId: string | null;
|
|
17478
|
+
sourceSequence: number | null;
|
|
17479
|
+
segmentId?: string | undefined;
|
|
17480
|
+
segmentIndex?: number | undefined;
|
|
17481
|
+
} | {
|
|
17482
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17483
|
+
kind: "turn_summary";
|
|
17484
|
+
id: string;
|
|
17485
|
+
revision: number;
|
|
17486
|
+
runId: string | null;
|
|
17487
|
+
sessionId: string;
|
|
17488
|
+
completedAt: number | null;
|
|
17489
|
+
startedAt: number | null;
|
|
17490
|
+
payload: {
|
|
17491
|
+
status: "FAILED" | "SUCCEEDED" | "CANCELLED" | "STARTING" | "RUNNING" | "CANCELLING" | "INTERRUPTED";
|
|
17492
|
+
durationMs: number | null;
|
|
17493
|
+
};
|
|
17494
|
+
turnId: string;
|
|
17495
|
+
parentItemId: string | null;
|
|
17496
|
+
sourceSequence: number | null;
|
|
17497
|
+
segmentId?: string | undefined;
|
|
17498
|
+
segmentIndex?: number | undefined;
|
|
17499
|
+
} | {
|
|
17500
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17501
|
+
kind: "reasoning_summary";
|
|
17502
|
+
id: string;
|
|
17503
|
+
revision: number;
|
|
17504
|
+
runId: string | null;
|
|
17505
|
+
sessionId: string;
|
|
17506
|
+
completedAt: number | null;
|
|
17507
|
+
startedAt: number | null;
|
|
17508
|
+
payload: {
|
|
17509
|
+
sections: {
|
|
17510
|
+
text: string;
|
|
17511
|
+
index: number;
|
|
17512
|
+
}[];
|
|
17513
|
+
};
|
|
17514
|
+
turnId: string;
|
|
17515
|
+
parentItemId: string | null;
|
|
17516
|
+
sourceSequence: number | null;
|
|
17517
|
+
segmentId?: string | undefined;
|
|
17518
|
+
segmentIndex?: number | undefined;
|
|
17519
|
+
} | {
|
|
17520
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17521
|
+
kind: "tool_call";
|
|
17522
|
+
id: string;
|
|
17523
|
+
revision: number;
|
|
17524
|
+
runId: string | null;
|
|
17525
|
+
sessionId: string;
|
|
17526
|
+
completedAt: number | null;
|
|
17527
|
+
startedAt: number | null;
|
|
17528
|
+
payload: {
|
|
17529
|
+
errorCode: string | null;
|
|
17530
|
+
truncated: boolean;
|
|
17531
|
+
namespace: string;
|
|
17532
|
+
toolName: string;
|
|
17533
|
+
title: string;
|
|
17534
|
+
inputSummary: string | null;
|
|
17535
|
+
outputSummary: string | null;
|
|
17536
|
+
progressLabel: string | null;
|
|
17537
|
+
toolCategory?: "IMAGE_GENERATION" | undefined;
|
|
17538
|
+
subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
|
|
17539
|
+
subagentId?: string | null | undefined;
|
|
17540
|
+
subagentModelId?: string | undefined;
|
|
17541
|
+
subagentModelName?: string | undefined;
|
|
17542
|
+
subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
|
|
17543
|
+
subagentLatestMessage?: {
|
|
17544
|
+
turnId: string;
|
|
17545
|
+
text: string;
|
|
17546
|
+
itemId: string;
|
|
17547
|
+
phase: "commentary" | "final_answer";
|
|
17548
|
+
timestamp: string;
|
|
17549
|
+
truncated?: boolean | undefined;
|
|
17550
|
+
} | undefined;
|
|
17551
|
+
attachments?: {
|
|
17552
|
+
mime: string;
|
|
17553
|
+
name: string;
|
|
17554
|
+
runId?: string | undefined;
|
|
17555
|
+
byteSize?: number | undefined;
|
|
17556
|
+
imageIndex?: number | undefined;
|
|
17557
|
+
}[] | undefined;
|
|
17558
|
+
};
|
|
17559
|
+
turnId: string;
|
|
17560
|
+
parentItemId: string | null;
|
|
17561
|
+
sourceSequence: number | null;
|
|
17562
|
+
segmentId?: string | undefined;
|
|
17563
|
+
segmentIndex?: number | undefined;
|
|
17564
|
+
} | {
|
|
17565
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17566
|
+
kind: "command_execution";
|
|
17567
|
+
id: string;
|
|
17568
|
+
revision: number;
|
|
17569
|
+
runId: string | null;
|
|
17570
|
+
sessionId: string;
|
|
17571
|
+
completedAt: number | null;
|
|
17572
|
+
startedAt: number | null;
|
|
17573
|
+
payload: {
|
|
17574
|
+
command: string;
|
|
17575
|
+
durationMs: number | null;
|
|
17576
|
+
truncated: boolean;
|
|
17577
|
+
cwd: string | null;
|
|
17578
|
+
outputPreview: string;
|
|
17579
|
+
outputRef: string | null;
|
|
17580
|
+
exitCode: number | null;
|
|
17581
|
+
};
|
|
17582
|
+
turnId: string;
|
|
17583
|
+
parentItemId: string | null;
|
|
17584
|
+
sourceSequence: number | null;
|
|
17585
|
+
segmentId?: string | undefined;
|
|
17586
|
+
segmentIndex?: number | undefined;
|
|
17587
|
+
} | {
|
|
17588
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17589
|
+
kind: "file_change";
|
|
17590
|
+
id: string;
|
|
17591
|
+
revision: number;
|
|
17592
|
+
runId: string | null;
|
|
17593
|
+
sessionId: string;
|
|
17594
|
+
completedAt: number | null;
|
|
17595
|
+
startedAt: number | null;
|
|
17596
|
+
payload: {
|
|
17597
|
+
changes: {
|
|
17598
|
+
path: string;
|
|
17599
|
+
change: "ADDED" | "MODIFIED" | "DELETED" | "RENAMED" | "COPIED" | "TYPE_CHANGED";
|
|
17600
|
+
additions: number | null;
|
|
17601
|
+
deletions: number | null;
|
|
17602
|
+
diffAvailable: boolean;
|
|
17603
|
+
}[];
|
|
17604
|
+
};
|
|
17605
|
+
turnId: string;
|
|
17606
|
+
parentItemId: string | null;
|
|
17607
|
+
sourceSequence: number | null;
|
|
17608
|
+
segmentId?: string | undefined;
|
|
17609
|
+
segmentIndex?: number | undefined;
|
|
17610
|
+
} | {
|
|
17611
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17612
|
+
kind: "user_input_request";
|
|
17613
|
+
id: string;
|
|
17614
|
+
revision: number;
|
|
17615
|
+
runId: string | null;
|
|
17616
|
+
sessionId: string;
|
|
17617
|
+
completedAt: number | null;
|
|
17618
|
+
startedAt: number | null;
|
|
17619
|
+
payload: {
|
|
17620
|
+
requestId: string;
|
|
17621
|
+
questions: {
|
|
17622
|
+
options: {
|
|
17623
|
+
value: string;
|
|
17624
|
+
description: string | null;
|
|
17625
|
+
label: string;
|
|
17626
|
+
}[];
|
|
17627
|
+
id: string;
|
|
17628
|
+
prompt: string;
|
|
17629
|
+
input: "SINGLE_SELECT" | "MULTI_SELECT" | "SHORT_TEXT";
|
|
17630
|
+
allowOther: boolean;
|
|
17631
|
+
multiSelect?: boolean | undefined;
|
|
17632
|
+
}[];
|
|
17633
|
+
};
|
|
17634
|
+
turnId: string;
|
|
17635
|
+
parentItemId: string | null;
|
|
17636
|
+
sourceSequence: number | null;
|
|
17637
|
+
segmentId?: string | undefined;
|
|
17638
|
+
segmentIndex?: number | undefined;
|
|
17639
|
+
} | {
|
|
17640
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17641
|
+
kind: "context_compaction";
|
|
17642
|
+
id: string;
|
|
17643
|
+
revision: number;
|
|
17644
|
+
runId: string | null;
|
|
17645
|
+
sessionId: string;
|
|
17646
|
+
completedAt: number | null;
|
|
17647
|
+
startedAt: number | null;
|
|
17648
|
+
payload: {
|
|
17649
|
+
phase: "COMPLETED" | "STARTED";
|
|
17650
|
+
summary: string | null;
|
|
17651
|
+
};
|
|
17652
|
+
turnId: string;
|
|
17653
|
+
parentItemId: string | null;
|
|
17654
|
+
sourceSequence: number | null;
|
|
17655
|
+
segmentId?: string | undefined;
|
|
17656
|
+
segmentIndex?: number | undefined;
|
|
17657
|
+
} | {
|
|
17658
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17659
|
+
kind: "warning";
|
|
17660
|
+
id: string;
|
|
17661
|
+
revision: number;
|
|
17662
|
+
runId: string | null;
|
|
17663
|
+
sessionId: string;
|
|
17664
|
+
completedAt: number | null;
|
|
17665
|
+
startedAt: number | null;
|
|
17666
|
+
payload: {
|
|
17667
|
+
code: string;
|
|
17668
|
+
message: string;
|
|
17669
|
+
recoverable: boolean;
|
|
17670
|
+
};
|
|
17671
|
+
turnId: string;
|
|
17672
|
+
parentItemId: string | null;
|
|
17673
|
+
sourceSequence: number | null;
|
|
17674
|
+
segmentId?: string | undefined;
|
|
17675
|
+
segmentIndex?: number | undefined;
|
|
17676
|
+
} | {
|
|
17677
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17678
|
+
kind: "error";
|
|
17679
|
+
id: string;
|
|
17680
|
+
revision: number;
|
|
17681
|
+
runId: string | null;
|
|
17682
|
+
sessionId: string;
|
|
17683
|
+
completedAt: number | null;
|
|
17684
|
+
startedAt: number | null;
|
|
17685
|
+
payload: {
|
|
17686
|
+
code: string;
|
|
17687
|
+
message: string;
|
|
17688
|
+
recoverable: boolean;
|
|
17689
|
+
retryAfterMs: number | null;
|
|
17690
|
+
httpStatus?: number | null | undefined;
|
|
17691
|
+
};
|
|
17692
|
+
turnId: string;
|
|
17693
|
+
parentItemId: string | null;
|
|
17694
|
+
sourceSequence: number | null;
|
|
17695
|
+
segmentId?: string | undefined;
|
|
17696
|
+
segmentIndex?: number | undefined;
|
|
17697
|
+
} | {
|
|
17698
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17699
|
+
kind: "unknown";
|
|
17700
|
+
id: string;
|
|
17701
|
+
revision: number;
|
|
17702
|
+
runId: string | null;
|
|
17703
|
+
sessionId: string;
|
|
17704
|
+
completedAt: number | null;
|
|
17705
|
+
startedAt: number | null;
|
|
17706
|
+
payload: {
|
|
17707
|
+
label: string;
|
|
17708
|
+
sourceEventType: string;
|
|
17709
|
+
};
|
|
17710
|
+
turnId: string;
|
|
17711
|
+
parentItemId: string | null;
|
|
17712
|
+
sourceSequence: number | null;
|
|
17713
|
+
segmentId?: string | undefined;
|
|
17714
|
+
segmentIndex?: number | undefined;
|
|
17715
|
+
})[];
|
|
17716
|
+
startedAt: number | null;
|
|
17717
|
+
effort: string | null;
|
|
17718
|
+
userItemId: string | null;
|
|
17719
|
+
rewind?: {
|
|
17720
|
+
before: string | null;
|
|
17721
|
+
after: string;
|
|
17722
|
+
} | undefined;
|
|
17723
|
+
}[];
|
|
17724
|
+
nextCursor: string | null;
|
|
17725
|
+
}, {
|
|
17726
|
+
turns: {
|
|
17727
|
+
status: "FAILED" | "SUCCEEDED" | "CANCELLED" | "RUNNING" | "INTERRUPTED" | "PREPARING" | "WAITING_INPUT" | "WAITING_APPROVAL" | "LOST";
|
|
17728
|
+
id: string;
|
|
17729
|
+
runId: string | null;
|
|
17730
|
+
sessionId: string;
|
|
17731
|
+
completedAt: number | null;
|
|
17732
|
+
access: string | null;
|
|
17733
|
+
model: string | null;
|
|
17734
|
+
items: ({
|
|
17735
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17736
|
+
kind: "assistant_message";
|
|
17737
|
+
id: string;
|
|
17738
|
+
revision: number;
|
|
17739
|
+
runId: string | null;
|
|
17740
|
+
sessionId: string;
|
|
17741
|
+
completedAt: number | null;
|
|
17742
|
+
startedAt: number | null;
|
|
17743
|
+
payload: {
|
|
17744
|
+
model: string | null;
|
|
17745
|
+
text: string;
|
|
17746
|
+
format: "markdown";
|
|
17747
|
+
};
|
|
17748
|
+
turnId: string;
|
|
17749
|
+
parentItemId: string | null;
|
|
17750
|
+
sourceSequence: number | null;
|
|
17751
|
+
segmentId?: string | undefined;
|
|
17752
|
+
segmentIndex?: number | undefined;
|
|
17753
|
+
} | {
|
|
17754
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17755
|
+
kind: "user_message";
|
|
17756
|
+
id: string;
|
|
17757
|
+
revision: number;
|
|
17758
|
+
runId: string | null;
|
|
17759
|
+
sessionId: string;
|
|
17760
|
+
completedAt: number | null;
|
|
17761
|
+
startedAt: number | null;
|
|
17762
|
+
payload: {
|
|
17763
|
+
clientMessageId: string | null;
|
|
17764
|
+
text: string;
|
|
17765
|
+
delivery: "PENDING" | "ACCEPTED" | "STEERED" | "QUEUED_NEXT_TURN" | "REJECTED";
|
|
17766
|
+
contexts?: {
|
|
17767
|
+
type: "message" | "changes" | "file" | "directory" | "diff" | "turn" | "terminal_selection";
|
|
17768
|
+
label: string;
|
|
17769
|
+
referenceId: string;
|
|
17770
|
+
path?: string | undefined;
|
|
17771
|
+
startLine?: number | undefined;
|
|
17772
|
+
endLine?: number | undefined;
|
|
17773
|
+
}[] | undefined;
|
|
17774
|
+
};
|
|
17775
|
+
turnId: string;
|
|
17776
|
+
parentItemId: string | null;
|
|
17777
|
+
sourceSequence: number | null;
|
|
17778
|
+
segmentId?: string | undefined;
|
|
17779
|
+
segmentIndex?: number | undefined;
|
|
17780
|
+
} | {
|
|
17781
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17782
|
+
kind: "plan";
|
|
17783
|
+
id: string;
|
|
17784
|
+
revision: number;
|
|
17785
|
+
runId: string | null;
|
|
17786
|
+
sessionId: string;
|
|
17787
|
+
completedAt: number | null;
|
|
17788
|
+
startedAt: number | null;
|
|
17789
|
+
payload: {
|
|
17790
|
+
explanation: string | null;
|
|
17791
|
+
steps: {
|
|
17792
|
+
status: "PENDING" | "IN_PROGRESS" | "COMPLETED";
|
|
17793
|
+
id: string;
|
|
17794
|
+
text: string;
|
|
17795
|
+
}[];
|
|
17796
|
+
};
|
|
17797
|
+
turnId: string;
|
|
17798
|
+
parentItemId: string | null;
|
|
17799
|
+
sourceSequence: number | null;
|
|
17800
|
+
segmentId?: string | undefined;
|
|
17801
|
+
segmentIndex?: number | undefined;
|
|
17802
|
+
} | {
|
|
17803
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17804
|
+
kind: "todo_list";
|
|
17805
|
+
id: string;
|
|
17806
|
+
revision: number;
|
|
17807
|
+
runId: string | null;
|
|
17808
|
+
sessionId: string;
|
|
17809
|
+
completedAt: number | null;
|
|
17810
|
+
startedAt: number | null;
|
|
17811
|
+
payload: {
|
|
17812
|
+
items: {
|
|
17813
|
+
status: "PENDING" | "IN_PROGRESS" | "COMPLETED";
|
|
17814
|
+
id: string;
|
|
17815
|
+
text: string;
|
|
17816
|
+
}[];
|
|
17817
|
+
};
|
|
17818
|
+
turnId: string;
|
|
17819
|
+
parentItemId: string | null;
|
|
17820
|
+
sourceSequence: number | null;
|
|
17821
|
+
segmentId?: string | undefined;
|
|
17822
|
+
segmentIndex?: number | undefined;
|
|
17823
|
+
} | {
|
|
17824
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17825
|
+
kind: "approval";
|
|
17826
|
+
id: string;
|
|
17827
|
+
revision: number;
|
|
17828
|
+
runId: string | null;
|
|
17829
|
+
sessionId: string;
|
|
17830
|
+
completedAt: number | null;
|
|
17831
|
+
startedAt: number | null;
|
|
17832
|
+
payload: {
|
|
17833
|
+
reason: string | null;
|
|
17834
|
+
expiresAt: number;
|
|
17835
|
+
category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
|
|
17836
|
+
approvalId: string;
|
|
17837
|
+
resolvedDecision: string | null;
|
|
17838
|
+
};
|
|
17839
|
+
turnId: string;
|
|
17840
|
+
parentItemId: string | null;
|
|
17841
|
+
sourceSequence: number | null;
|
|
17842
|
+
segmentId?: string | undefined;
|
|
17843
|
+
segmentIndex?: number | undefined;
|
|
17844
|
+
} | {
|
|
17845
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17846
|
+
kind: "turn_summary";
|
|
17847
|
+
id: string;
|
|
17848
|
+
revision: number;
|
|
17849
|
+
runId: string | null;
|
|
17850
|
+
sessionId: string;
|
|
17851
|
+
completedAt: number | null;
|
|
17852
|
+
startedAt: number | null;
|
|
17853
|
+
payload: {
|
|
17854
|
+
status: "FAILED" | "SUCCEEDED" | "CANCELLED" | "STARTING" | "RUNNING" | "CANCELLING" | "INTERRUPTED";
|
|
17855
|
+
durationMs: number | null;
|
|
17856
|
+
};
|
|
17857
|
+
turnId: string;
|
|
17858
|
+
parentItemId: string | null;
|
|
17859
|
+
sourceSequence: number | null;
|
|
17860
|
+
segmentId?: string | undefined;
|
|
17861
|
+
segmentIndex?: number | undefined;
|
|
17862
|
+
} | {
|
|
17863
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17864
|
+
kind: "reasoning_summary";
|
|
17865
|
+
id: string;
|
|
17866
|
+
revision: number;
|
|
17867
|
+
runId: string | null;
|
|
17868
|
+
sessionId: string;
|
|
17869
|
+
completedAt: number | null;
|
|
17870
|
+
startedAt: number | null;
|
|
17871
|
+
payload: {
|
|
17872
|
+
sections: {
|
|
17873
|
+
text: string;
|
|
17874
|
+
index: number;
|
|
17875
|
+
}[];
|
|
17876
|
+
};
|
|
17877
|
+
turnId: string;
|
|
17878
|
+
parentItemId: string | null;
|
|
17879
|
+
sourceSequence: number | null;
|
|
17880
|
+
segmentId?: string | undefined;
|
|
17881
|
+
segmentIndex?: number | undefined;
|
|
17882
|
+
} | {
|
|
17883
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17884
|
+
kind: "tool_call";
|
|
17885
|
+
id: string;
|
|
17886
|
+
revision: number;
|
|
17887
|
+
runId: string | null;
|
|
17888
|
+
sessionId: string;
|
|
17889
|
+
completedAt: number | null;
|
|
17890
|
+
startedAt: number | null;
|
|
17891
|
+
payload: {
|
|
17892
|
+
errorCode: string | null;
|
|
17893
|
+
truncated: boolean;
|
|
17894
|
+
namespace: string;
|
|
17895
|
+
toolName: string;
|
|
17896
|
+
title: string;
|
|
17897
|
+
inputSummary: string | null;
|
|
17898
|
+
outputSummary: string | null;
|
|
17899
|
+
progressLabel: string | null;
|
|
17900
|
+
toolCategory?: "IMAGE_GENERATION" | undefined;
|
|
17901
|
+
subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
|
|
17902
|
+
subagentId?: string | null | undefined;
|
|
17903
|
+
subagentModelId?: string | undefined;
|
|
17904
|
+
subagentModelName?: string | undefined;
|
|
17905
|
+
subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
|
|
17906
|
+
subagentLatestMessage?: {
|
|
17907
|
+
turnId: string;
|
|
17908
|
+
text: string;
|
|
17909
|
+
itemId: string;
|
|
17910
|
+
phase: "commentary" | "final_answer";
|
|
17911
|
+
timestamp: string;
|
|
17912
|
+
truncated?: boolean | undefined;
|
|
17913
|
+
} | undefined;
|
|
17914
|
+
attachments?: {
|
|
17915
|
+
mime: string;
|
|
17916
|
+
name: string;
|
|
17917
|
+
runId?: string | undefined;
|
|
17918
|
+
byteSize?: number | undefined;
|
|
17919
|
+
imageIndex?: number | undefined;
|
|
17920
|
+
}[] | undefined;
|
|
17921
|
+
};
|
|
17922
|
+
turnId: string;
|
|
17923
|
+
parentItemId: string | null;
|
|
17924
|
+
sourceSequence: number | null;
|
|
17925
|
+
segmentId?: string | undefined;
|
|
17926
|
+
segmentIndex?: number | undefined;
|
|
17927
|
+
} | {
|
|
17928
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17929
|
+
kind: "command_execution";
|
|
17930
|
+
id: string;
|
|
17931
|
+
revision: number;
|
|
17932
|
+
runId: string | null;
|
|
17933
|
+
sessionId: string;
|
|
17934
|
+
completedAt: number | null;
|
|
17935
|
+
startedAt: number | null;
|
|
17936
|
+
payload: {
|
|
17937
|
+
command: string;
|
|
17938
|
+
durationMs: number | null;
|
|
17939
|
+
truncated: boolean;
|
|
17940
|
+
cwd: string | null;
|
|
17941
|
+
outputPreview: string;
|
|
17942
|
+
outputRef: string | null;
|
|
17943
|
+
exitCode: number | null;
|
|
17944
|
+
};
|
|
17945
|
+
turnId: string;
|
|
17946
|
+
parentItemId: string | null;
|
|
17947
|
+
sourceSequence: number | null;
|
|
17948
|
+
segmentId?: string | undefined;
|
|
17949
|
+
segmentIndex?: number | undefined;
|
|
17950
|
+
} | {
|
|
17951
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17952
|
+
kind: "file_change";
|
|
17953
|
+
id: string;
|
|
17954
|
+
revision: number;
|
|
17955
|
+
runId: string | null;
|
|
17956
|
+
sessionId: string;
|
|
17957
|
+
completedAt: number | null;
|
|
17958
|
+
startedAt: number | null;
|
|
17959
|
+
payload: {
|
|
17960
|
+
changes: {
|
|
17961
|
+
path: string;
|
|
17962
|
+
change: "ADDED" | "MODIFIED" | "DELETED" | "RENAMED" | "COPIED" | "TYPE_CHANGED";
|
|
17963
|
+
additions: number | null;
|
|
17964
|
+
deletions: number | null;
|
|
17965
|
+
diffAvailable: boolean;
|
|
17966
|
+
}[];
|
|
17967
|
+
};
|
|
17968
|
+
turnId: string;
|
|
17969
|
+
parentItemId: string | null;
|
|
17970
|
+
sourceSequence: number | null;
|
|
17971
|
+
segmentId?: string | undefined;
|
|
17972
|
+
segmentIndex?: number | undefined;
|
|
17973
|
+
} | {
|
|
17974
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
17975
|
+
kind: "user_input_request";
|
|
17976
|
+
id: string;
|
|
17977
|
+
revision: number;
|
|
17978
|
+
runId: string | null;
|
|
17979
|
+
sessionId: string;
|
|
17980
|
+
completedAt: number | null;
|
|
17981
|
+
startedAt: number | null;
|
|
17982
|
+
payload: {
|
|
17983
|
+
requestId: string;
|
|
17984
|
+
questions: {
|
|
17985
|
+
options: {
|
|
17986
|
+
value: string;
|
|
17987
|
+
description: string | null;
|
|
17988
|
+
label: string;
|
|
17989
|
+
}[];
|
|
17990
|
+
id: string;
|
|
17991
|
+
prompt: string;
|
|
17992
|
+
input: "SINGLE_SELECT" | "MULTI_SELECT" | "SHORT_TEXT";
|
|
17993
|
+
allowOther: boolean;
|
|
17994
|
+
multiSelect?: boolean | undefined;
|
|
17995
|
+
}[];
|
|
17996
|
+
};
|
|
17997
|
+
turnId: string;
|
|
17998
|
+
parentItemId: string | null;
|
|
17999
|
+
sourceSequence: number | null;
|
|
18000
|
+
segmentId?: string | undefined;
|
|
18001
|
+
segmentIndex?: number | undefined;
|
|
18002
|
+
} | {
|
|
18003
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
18004
|
+
kind: "context_compaction";
|
|
18005
|
+
id: string;
|
|
18006
|
+
revision: number;
|
|
18007
|
+
runId: string | null;
|
|
18008
|
+
sessionId: string;
|
|
18009
|
+
completedAt: number | null;
|
|
18010
|
+
startedAt: number | null;
|
|
18011
|
+
payload: {
|
|
18012
|
+
phase: "COMPLETED" | "STARTED";
|
|
18013
|
+
summary: string | null;
|
|
18014
|
+
};
|
|
18015
|
+
turnId: string;
|
|
18016
|
+
parentItemId: string | null;
|
|
18017
|
+
sourceSequence: number | null;
|
|
18018
|
+
segmentId?: string | undefined;
|
|
18019
|
+
segmentIndex?: number | undefined;
|
|
18020
|
+
} | {
|
|
18021
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
18022
|
+
kind: "warning";
|
|
18023
|
+
id: string;
|
|
18024
|
+
revision: number;
|
|
18025
|
+
runId: string | null;
|
|
18026
|
+
sessionId: string;
|
|
18027
|
+
completedAt: number | null;
|
|
18028
|
+
startedAt: number | null;
|
|
18029
|
+
payload: {
|
|
18030
|
+
code: string;
|
|
18031
|
+
message: string;
|
|
18032
|
+
recoverable: boolean;
|
|
18033
|
+
};
|
|
18034
|
+
turnId: string;
|
|
18035
|
+
parentItemId: string | null;
|
|
18036
|
+
sourceSequence: number | null;
|
|
18037
|
+
segmentId?: string | undefined;
|
|
18038
|
+
segmentIndex?: number | undefined;
|
|
18039
|
+
} | {
|
|
18040
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
18041
|
+
kind: "error";
|
|
18042
|
+
id: string;
|
|
18043
|
+
revision: number;
|
|
18044
|
+
runId: string | null;
|
|
18045
|
+
sessionId: string;
|
|
18046
|
+
completedAt: number | null;
|
|
18047
|
+
startedAt: number | null;
|
|
18048
|
+
payload: {
|
|
18049
|
+
code: string;
|
|
18050
|
+
message: string;
|
|
18051
|
+
recoverable: boolean;
|
|
18052
|
+
retryAfterMs: number | null;
|
|
18053
|
+
httpStatus?: number | null | undefined;
|
|
18054
|
+
};
|
|
18055
|
+
turnId: string;
|
|
18056
|
+
parentItemId: string | null;
|
|
18057
|
+
sourceSequence: number | null;
|
|
18058
|
+
segmentId?: string | undefined;
|
|
18059
|
+
segmentIndex?: number | undefined;
|
|
18060
|
+
} | {
|
|
18061
|
+
status: "FAILED" | "PENDING" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
|
|
18062
|
+
kind: "unknown";
|
|
18063
|
+
id: string;
|
|
18064
|
+
revision: number;
|
|
18065
|
+
runId: string | null;
|
|
18066
|
+
sessionId: string;
|
|
18067
|
+
completedAt: number | null;
|
|
18068
|
+
startedAt: number | null;
|
|
18069
|
+
payload: {
|
|
18070
|
+
label: string;
|
|
18071
|
+
sourceEventType: string;
|
|
18072
|
+
};
|
|
18073
|
+
turnId: string;
|
|
18074
|
+
parentItemId: string | null;
|
|
18075
|
+
sourceSequence: number | null;
|
|
18076
|
+
segmentId?: string | undefined;
|
|
18077
|
+
segmentIndex?: number | undefined;
|
|
18078
|
+
})[];
|
|
18079
|
+
startedAt: number | null;
|
|
18080
|
+
effort: string | null;
|
|
18081
|
+
userItemId: string | null;
|
|
18082
|
+
rewind?: {
|
|
18083
|
+
before: string | null;
|
|
18084
|
+
after: string;
|
|
18085
|
+
} | undefined;
|
|
18086
|
+
}[];
|
|
18087
|
+
nextCursor: string | null;
|
|
18088
|
+
}>;
|
|
18089
|
+
export type HostedConversationHistoryPage = z.infer<typeof hostedConversationHistoryPageSchema>;
|
|
15196
18090
|
export declare const hostedConversationRollbackInputSchema: z.ZodObject<{
|
|
15197
18091
|
conversationId: z.ZodString;
|
|
15198
18092
|
} & {
|
|
@@ -21927,7 +24821,7 @@ export declare const gitHistoryFileSchema: z.ZodObject<{
|
|
|
21927
24821
|
previousPath?: string | undefined;
|
|
21928
24822
|
}>;
|
|
21929
24823
|
export type GitHistoryFile = z.infer<typeof gitHistoryFileSchema>;
|
|
21930
|
-
export declare const workbenchNodeOperationSchema: z.ZodEnum<["workspace.git.settings.get", "workspace.git.settings.update", "node.workbench.capabilities", "runner.usage.status", "runner.usage.read", "workspace.directories.list", "workspace.remove", "workspace.watch", "workspace.unwatch", "session.unwatch", "session.metadata.update", "session.pin.move", "session.rewind", "session.rollback", "session.remove", "workspace.sessions.cleanup", "session.config.update", "session.turns.list", "session.events.read", "session.context.read", "session.command.execute", "runner.command.execute", "runner.profiles.list", "runner.defaults.save", "mar-agent.model.test", "workspace.files.list", "workspace.file.read", "workspace.file.write", "workspace.file.content.read", "workspace.file.direct.metadata", "workspace.files.search", "workspace.files.mutate", "workspace.content.search", "workspace.files.upload.preflight", "workspace.files.upload.create", "workspace.files.upload.chunk", "workspace.files.upload.status", "workspace.files.upload.complete", "workspace.files.upload.cancel", "workspace.changes.current", "workspace.change.diff", "workspace.change.restore", "workspace.git.refs.list", "workspace.git.history.list", "workspace.git.commit.files", "workspace.git.commit.file.diff", "workspace.git.commit.file.content.read", "workspace.git.commit.file.direct.metadata", "run.image.read", "terminal.open", "terminal.list", "terminal.close", "terminal.attach.authorize", "node.upgrade.request", "node.upgrade.cancel", "node.skills.inspect", "node.skills.install", "node.skills.remove", "workspace.skills.inspect", "workspace.skills.install", "workspace.skills.remove", "workspace.skills.git-exclude-repair", "skill.install.job.get", "node.mcps.inspect", "node.mcps.install", "node.mcps.remove", "workspace.mcps.inspect", "workspace.mcps.install", "workspace.mcps.remove", "conversation.template.source.inspect", "conversation.template.publish", "conversation.template.publish.status", "conversation.template.version.inspect", "conversation.hosting.enable", "conversation.hosting.disable", "conversation.hosting.storage.inspect", "conversation.hosting.cleanup.preview", "conversation.hosting.cleanup.execute", "conversation.hosted.list", "conversation.hosted.create", "conversation.hosted.get", "conversation.hosted.watch", "conversation.hosted.unwatch", "conversation.hosted.message", "conversation.hosted.rollback", "conversation.hosted.interrupt", "conversation.hosted.config.update", "conversation.hosted.metadata.update", "conversation.hosted.image.read", "conversation.hosted.files.list", "conversation.hosted.file.read", "conversation.hosted.file.delete", "conversation.hosted.files.upload.preflight", "conversation.hosted.files.upload.create", "conversation.hosted.files.upload.chunk", "conversation.hosted.files.upload.status", "conversation.hosted.files.upload.complete", "conversation.hosted.files.upload.cancel", "conversation.hosted.delete"]>;
|
|
24824
|
+
export declare const workbenchNodeOperationSchema: z.ZodEnum<["workspace.git.settings.get", "workspace.git.settings.update", "node.workbench.capabilities", "runner.usage.status", "runner.usage.read", "workspace.directories.list", "workspace.remove", "workspace.watch", "workspace.unwatch", "session.unwatch", "session.metadata.update", "session.pin.move", "session.rewind", "session.rollback", "session.remove", "workspace.sessions.cleanup", "session.config.update", "session.turns.list", "session.events.read", "session.context.read", "session.command.execute", "runner.command.execute", "runner.profiles.list", "runner.defaults.save", "mar-agent.model.test", "workspace.files.list", "workspace.file.read", "workspace.file.write", "workspace.file.content.read", "workspace.file.direct.metadata", "workspace.files.search", "workspace.files.mutate", "workspace.content.search", "workspace.files.upload.preflight", "workspace.files.upload.create", "workspace.files.upload.chunk", "workspace.files.upload.status", "workspace.files.upload.complete", "workspace.files.upload.cancel", "workspace.changes.current", "workspace.change.diff", "workspace.change.restore", "workspace.git.refs.list", "workspace.git.history.list", "workspace.git.commit.files", "workspace.git.commit.file.diff", "workspace.git.commit.file.content.read", "workspace.git.commit.file.direct.metadata", "run.image.read", "terminal.open", "terminal.list", "terminal.close", "terminal.attach.authorize", "node.upgrade.request", "node.upgrade.cancel", "node.skills.inspect", "node.skills.install", "node.skills.remove", "workspace.skills.inspect", "workspace.skills.install", "workspace.skills.remove", "workspace.skills.git-exclude-repair", "skill.install.job.get", "node.mcps.inspect", "node.mcps.install", "node.mcps.remove", "workspace.mcps.inspect", "workspace.mcps.install", "workspace.mcps.remove", "conversation.template.source.inspect", "conversation.template.publish", "conversation.template.publish.status", "conversation.template.version.inspect", "conversation.hosting.enable", "conversation.hosting.disable", "conversation.hosting.storage.inspect", "conversation.hosting.cleanup.preview", "conversation.hosting.cleanup.execute", "conversation.hosted.list", "conversation.hosted.create", "conversation.hosted.get", "conversation.hosted.history", "conversation.hosted.watch", "conversation.hosted.unwatch", "conversation.hosted.message", "conversation.hosted.rollback", "conversation.hosted.interrupt", "conversation.hosted.config.update", "conversation.hosted.metadata.update", "conversation.hosted.image.read", "conversation.hosted.files.list", "conversation.hosted.file.read", "conversation.hosted.file.delete", "conversation.hosted.files.upload.preflight", "conversation.hosted.files.upload.create", "conversation.hosted.files.upload.chunk", "conversation.hosted.files.upload.status", "conversation.hosted.files.upload.complete", "conversation.hosted.files.upload.cancel", "conversation.hosted.delete"]>;
|
|
21931
24825
|
export type WorkbenchNodeOperation = z.infer<typeof workbenchNodeOperationSchema>;
|
|
21932
24826
|
/**
|
|
21933
24827
|
* A small, explicit envelope keeps WebSocket messages independently parseable
|