@myagentroam/protocol 0.11.43 → 0.11.45

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +2313 -343
  2. package/dist/index.js +101 -64
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -9466,6 +9466,44 @@ export declare const conversationImageAttachmentSchema: z.ZodEffects<z.ZodObject
9466
9466
  export type ConversationImageAttachment = z.infer<typeof conversationImageAttachmentSchema>;
9467
9467
  export declare const subagentOperationSchema: z.ZodEnum<["START", "STATUS", "CANCEL", "MESSAGE", "RESUME"]>;
9468
9468
  export type SubagentOperation = z.infer<typeof subagentOperationSchema>;
9469
+ /** Agent operations describe calls, not the lifecycle of their target Sessions. */
9470
+ export declare const agentOperationPresentationSchema: z.ZodObject<{
9471
+ action: z.ZodEnum<["START", "SEND", "WAIT", "STOP", "LIST", "VIEW"]>;
9472
+ targets: z.ZodArray<z.ZodObject<{
9473
+ agentId: z.ZodString;
9474
+ sessionId: z.ZodOptional<z.ZodString>;
9475
+ title: z.ZodOptional<z.ZodString>;
9476
+ }, "strip", z.ZodTypeAny, {
9477
+ agentId: string;
9478
+ sessionId?: string | undefined;
9479
+ title?: string | undefined;
9480
+ }, {
9481
+ agentId: string;
9482
+ sessionId?: string | undefined;
9483
+ title?: string | undefined;
9484
+ }>, "many">;
9485
+ targetsTruncated: z.ZodOptional<z.ZodLiteral<true>>;
9486
+ scope: z.ZodOptional<z.ZodString>;
9487
+ }, "strip", z.ZodTypeAny, {
9488
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
9489
+ targets: {
9490
+ agentId: string;
9491
+ sessionId?: string | undefined;
9492
+ title?: string | undefined;
9493
+ }[];
9494
+ scope?: string | undefined;
9495
+ targetsTruncated?: true | undefined;
9496
+ }, {
9497
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
9498
+ targets: {
9499
+ agentId: string;
9500
+ sessionId?: string | undefined;
9501
+ title?: string | undefined;
9502
+ }[];
9503
+ scope?: string | undefined;
9504
+ targetsTruncated?: true | undefined;
9505
+ }>;
9506
+ export type AgentOperationPresentation = z.infer<typeof agentOperationPresentationSchema>;
9469
9507
  export declare const subagentLatestMessageSchema: z.ZodObject<{
9470
9508
  itemId: z.ZodString;
9471
9509
  turnId: z.ZodString;
@@ -9701,8 +9739,6 @@ export declare const executionPresentationSchema: z.ZodEffects<z.ZodObject<{
9701
9739
  };
9702
9740
  }>;
9703
9741
  export type ExecutionPresentation = z.infer<typeof executionPresentationSchema>;
9704
- /** Append output channels of the same call; snapshots and terminal items replace normally. */
9705
- export declare function appendExecutionPresentation(previous: unknown, incoming: unknown): unknown;
9706
9742
  export declare const toolPresentationSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
9707
9743
  kind: z.ZodLiteral<"READ">;
9708
9744
  paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -10016,6 +10052,56 @@ export declare const toolPresentationSchema: z.ZodUnion<[z.ZodDiscriminatedUnion
10016
10052
  };
10017
10053
  }>]>;
10018
10054
  export type ToolPresentation = z.infer<typeof toolPresentationSchema>;
10055
+ export declare const toolOutputSchema: z.ZodEffects<z.ZodObject<{
10056
+ blocks: z.ZodEffects<z.ZodArray<z.ZodObject<{
10057
+ channel: z.ZodEnum<["STDOUT", "STDERR", "COMBINED", "TEXT"]>;
10058
+ text: z.ZodString;
10059
+ }, "strict", z.ZodTypeAny, {
10060
+ text: string;
10061
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
10062
+ }, {
10063
+ text: string;
10064
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
10065
+ }>, "many">, {
10066
+ text: string;
10067
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
10068
+ }[], {
10069
+ text: string;
10070
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
10071
+ }[]>;
10072
+ truncation: z.ZodOptional<z.ZodEnum<["HEAD", "SOURCE"]>>;
10073
+ }, "strict", z.ZodTypeAny, {
10074
+ blocks: {
10075
+ text: string;
10076
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
10077
+ }[];
10078
+ truncation?: "HEAD" | "SOURCE" | undefined;
10079
+ }, {
10080
+ blocks: {
10081
+ text: string;
10082
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
10083
+ }[];
10084
+ truncation?: "HEAD" | "SOURCE" | undefined;
10085
+ }>, {
10086
+ blocks: {
10087
+ text: string;
10088
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
10089
+ }[];
10090
+ truncation?: "HEAD" | "SOURCE" | undefined;
10091
+ }, {
10092
+ blocks: {
10093
+ text: string;
10094
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
10095
+ }[];
10096
+ truncation?: "HEAD" | "SOURCE" | undefined;
10097
+ }>;
10098
+ export type ToolOutput = z.infer<typeof toolOutputSchema>;
10099
+ /** Bound public channel tails before serialization, retaining SOURCE when its direction is unknown. */
10100
+ export declare function boundToolOutput(blocks: ToolOutput['blocks'], truncation?: ToolOutput['truncation']): ToolOutput;
10101
+ /** Append only true deltas; incompatible channel representations require a real snapshot. */
10102
+ export declare function appendToolOutput(previous: ToolOutput | undefined, incoming: ToolOutput): ToolOutput;
10103
+ /** An output delta must not erase independent input clipping facts. */
10104
+ export declare function retainExecutionInputTruncation(previous: unknown, incoming: unknown): unknown;
10019
10105
  export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
10020
10106
  id: z.ZodString;
10021
10107
  sessionId: z.ZodString;
@@ -11026,8 +11112,53 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
11026
11112
  outputSummary: z.ZodNullable<z.ZodString>;
11027
11113
  progressLabel: z.ZodNullable<z.ZodString>;
11028
11114
  errorCode: z.ZodNullable<z.ZodString>;
11029
- truncated: z.ZodBoolean;
11030
- output: z.ZodOptional<z.ZodObject<{
11115
+ errorMessage: z.ZodOptional<z.ZodString>;
11116
+ truncated: z.ZodOptional<z.ZodBoolean>;
11117
+ inputTruncated: z.ZodOptional<z.ZodLiteral<true>>;
11118
+ outputSummaryTruncated: z.ZodOptional<z.ZodLiteral<true>>;
11119
+ output: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
11120
+ blocks: z.ZodEffects<z.ZodArray<z.ZodObject<{
11121
+ channel: z.ZodEnum<["STDOUT", "STDERR", "COMBINED", "TEXT"]>;
11122
+ text: z.ZodString;
11123
+ }, "strict", z.ZodTypeAny, {
11124
+ text: string;
11125
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
11126
+ }, {
11127
+ text: string;
11128
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
11129
+ }>, "many">, {
11130
+ text: string;
11131
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
11132
+ }[], {
11133
+ text: string;
11134
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
11135
+ }[]>;
11136
+ truncation: z.ZodOptional<z.ZodEnum<["HEAD", "SOURCE"]>>;
11137
+ }, "strict", z.ZodTypeAny, {
11138
+ blocks: {
11139
+ text: string;
11140
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
11141
+ }[];
11142
+ truncation?: "HEAD" | "SOURCE" | undefined;
11143
+ }, {
11144
+ blocks: {
11145
+ text: string;
11146
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
11147
+ }[];
11148
+ truncation?: "HEAD" | "SOURCE" | undefined;
11149
+ }>, {
11150
+ blocks: {
11151
+ text: string;
11152
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
11153
+ }[];
11154
+ truncation?: "HEAD" | "SOURCE" | undefined;
11155
+ }, {
11156
+ blocks: {
11157
+ text: string;
11158
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
11159
+ }[];
11160
+ truncation?: "HEAD" | "SOURCE" | undefined;
11161
+ }>, z.ZodObject<{
11031
11162
  text: z.ZodString;
11032
11163
  truncated: z.ZodBoolean;
11033
11164
  }, "strict", z.ZodTypeAny, {
@@ -11036,7 +11167,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
11036
11167
  }, {
11037
11168
  text: string;
11038
11169
  truncated: boolean;
11039
- }>>;
11170
+ }>]>>;
11040
11171
  toolCategory: z.ZodOptional<z.ZodEnum<["IMAGE_GENERATION"]>>;
11041
11172
  toolPresentation: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
11042
11173
  kind: z.ZodLiteral<"READ">;
@@ -11140,6 +11271,42 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
11140
11271
  elapsedMs?: number | undefined;
11141
11272
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
11142
11273
  }>]>>;
11274
+ agentOperation: z.ZodOptional<z.ZodObject<{
11275
+ action: z.ZodEnum<["START", "SEND", "WAIT", "STOP", "LIST", "VIEW"]>;
11276
+ targets: z.ZodArray<z.ZodObject<{
11277
+ agentId: z.ZodString;
11278
+ sessionId: z.ZodOptional<z.ZodString>;
11279
+ title: z.ZodOptional<z.ZodString>;
11280
+ }, "strip", z.ZodTypeAny, {
11281
+ agentId: string;
11282
+ sessionId?: string | undefined;
11283
+ title?: string | undefined;
11284
+ }, {
11285
+ agentId: string;
11286
+ sessionId?: string | undefined;
11287
+ title?: string | undefined;
11288
+ }>, "many">;
11289
+ targetsTruncated: z.ZodOptional<z.ZodLiteral<true>>;
11290
+ scope: z.ZodOptional<z.ZodString>;
11291
+ }, "strip", z.ZodTypeAny, {
11292
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
11293
+ targets: {
11294
+ agentId: string;
11295
+ sessionId?: string | undefined;
11296
+ title?: string | undefined;
11297
+ }[];
11298
+ scope?: string | undefined;
11299
+ targetsTruncated?: true | undefined;
11300
+ }, {
11301
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
11302
+ targets: {
11303
+ agentId: string;
11304
+ sessionId?: string | undefined;
11305
+ title?: string | undefined;
11306
+ }[];
11307
+ scope?: string | undefined;
11308
+ targetsTruncated?: true | undefined;
11309
+ }>>;
11143
11310
  subagentOperation: z.ZodOptional<z.ZodEnum<["START", "STATUS", "CANCEL", "MESSAGE", "RESUME"]>>;
11144
11311
  subagentWait: z.ZodOptional<z.ZodBoolean>;
11145
11312
  subagentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -11209,7 +11376,6 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
11209
11376
  errorCode: string | null;
11210
11377
  title: string;
11211
11378
  toolName: string;
11212
- truncated: boolean;
11213
11379
  namespace: string;
11214
11380
  inputSummary: string | null;
11215
11381
  outputSummary: string | null;
@@ -11222,79 +11388,20 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
11222
11388
  imageIndex?: number | undefined;
11223
11389
  imageRef?: string | undefined;
11224
11390
  }[] | undefined;
11391
+ truncated?: boolean | undefined;
11225
11392
  output?: {
11226
- text: string;
11227
- truncated: boolean;
11228
- } | undefined;
11229
- toolCategory?: "IMAGE_GENERATION" | undefined;
11230
- toolPresentation?: {
11231
- kind: "READ";
11232
- paths?: string[] | undefined;
11233
- } | {
11234
- kind: "WEB_SEARCH";
11235
- query?: string | undefined;
11236
- sourceCount?: number | undefined;
11237
- sources?: {
11238
- url: string;
11239
- title?: string | undefined;
11240
- snippet?: string | undefined;
11241
- }[] | undefined;
11242
- } | {
11243
- kind: "WEB_FETCH";
11244
- status?: number | undefined;
11245
- title?: string | undefined;
11246
- mode?: "http" | "browser" | undefined;
11247
- url?: string | undefined;
11248
- contentType?: string | undefined;
11249
- requestUrl?: string | undefined;
11250
- } | {
11251
- kind: "SKILL";
11252
- name?: string | undefined;
11253
- source?: string | undefined;
11254
- description?: string | undefined;
11393
+ blocks: {
11394
+ text: string;
11395
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
11396
+ }[];
11397
+ truncation?: "HEAD" | "SOURCE" | undefined;
11255
11398
  } | {
11256
- kind: "SLEEP";
11257
- startedAt?: string | undefined;
11258
- durationMs?: number | undefined;
11259
- elapsedMs?: number | undefined;
11260
- wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
11261
- } | undefined;
11262
- subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
11263
- subagentWait?: boolean | undefined;
11264
- subagentId?: string | null | undefined;
11265
- subagentSessionId?: string | undefined;
11266
- subagentModelId?: string | undefined;
11267
- subagentModelName?: string | undefined;
11268
- subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
11269
- subagentLatestMessage?: {
11270
- text: string;
11271
- phase: "commentary" | "final_answer";
11272
- turnId: string;
11273
- itemId: string;
11274
- timestamp: string;
11275
- truncated?: boolean | undefined;
11276
- } | undefined;
11277
- }, {
11278
- errorCode: string | null;
11279
- title: string;
11280
- toolName: string;
11281
- truncated: boolean;
11282
- namespace: string;
11283
- inputSummary: string | null;
11284
- outputSummary: string | null;
11285
- progressLabel: string | null;
11286
- attachments?: {
11287
- name: string;
11288
- mime: string;
11289
- runId?: string | undefined;
11290
- byteSize?: number | undefined;
11291
- imageIndex?: number | undefined;
11292
- imageRef?: string | undefined;
11293
- }[] | undefined;
11294
- output?: {
11295
11399
  text: string;
11296
11400
  truncated: boolean;
11297
11401
  } | undefined;
11402
+ errorMessage?: string | undefined;
11403
+ inputTruncated?: true | undefined;
11404
+ outputSummaryTruncated?: true | undefined;
11298
11405
  toolCategory?: "IMAGE_GENERATION" | undefined;
11299
11406
  toolPresentation?: {
11300
11407
  kind: "READ";
@@ -11328,78 +11435,15 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
11328
11435
  elapsedMs?: number | undefined;
11329
11436
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
11330
11437
  } | undefined;
11331
- subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
11332
- subagentWait?: boolean | undefined;
11333
- subagentId?: string | null | undefined;
11334
- subagentSessionId?: string | undefined;
11335
- subagentModelId?: string | undefined;
11336
- subagentModelName?: string | undefined;
11337
- subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
11338
- subagentLatestMessage?: {
11339
- text: string;
11340
- phase: "commentary" | "final_answer";
11341
- turnId: string;
11342
- itemId: string;
11343
- timestamp: string;
11344
- truncated?: boolean | undefined;
11345
- } | undefined;
11346
- }>;
11347
- }, "strip", z.ZodTypeAny, {
11348
- status: "PENDING" | "FAILED" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
11349
- sessionId: string;
11350
- payload: {
11351
- errorCode: string | null;
11352
- title: string;
11353
- toolName: string;
11354
- truncated: boolean;
11355
- namespace: string;
11356
- inputSummary: string | null;
11357
- outputSummary: string | null;
11358
- progressLabel: string | null;
11359
- attachments?: {
11360
- name: string;
11361
- mime: string;
11362
- runId?: string | undefined;
11363
- byteSize?: number | undefined;
11364
- imageIndex?: number | undefined;
11365
- imageRef?: string | undefined;
11366
- }[] | undefined;
11367
- output?: {
11368
- text: string;
11369
- truncated: boolean;
11370
- } | undefined;
11371
- toolCategory?: "IMAGE_GENERATION" | undefined;
11372
- toolPresentation?: {
11373
- kind: "READ";
11374
- paths?: string[] | undefined;
11375
- } | {
11376
- kind: "WEB_SEARCH";
11377
- query?: string | undefined;
11378
- sourceCount?: number | undefined;
11379
- sources?: {
11380
- url: string;
11438
+ agentOperation?: {
11439
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
11440
+ targets: {
11441
+ agentId: string;
11442
+ sessionId?: string | undefined;
11381
11443
  title?: string | undefined;
11382
- snippet?: string | undefined;
11383
- }[] | undefined;
11384
- } | {
11385
- kind: "WEB_FETCH";
11386
- status?: number | undefined;
11387
- title?: string | undefined;
11388
- mode?: "http" | "browser" | undefined;
11389
- url?: string | undefined;
11390
- contentType?: string | undefined;
11391
- requestUrl?: string | undefined;
11392
- } | {
11393
- kind: "SKILL";
11394
- name?: string | undefined;
11395
- source?: string | undefined;
11396
- description?: string | undefined;
11397
- } | {
11398
- kind: "SLEEP";
11399
- startedAt?: string | undefined;
11400
- durationMs?: number | undefined;
11401
- elapsedMs?: number | undefined;
11402
- wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
11444
+ }[];
11445
+ scope?: string | undefined;
11446
+ targetsTruncated?: true | undefined;
11403
11447
  } | undefined;
11404
11448
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
11405
11449
  subagentWait?: boolean | undefined;
@@ -11416,41 +11460,10 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
11416
11460
  timestamp: string;
11417
11461
  truncated?: boolean | undefined;
11418
11462
  } | undefined;
11419
- };
11420
- kind: "tool_call";
11421
- id: string;
11422
- revision: number;
11423
- runId: string | null;
11424
- startedAt: number | null;
11425
- completedAt: number | null;
11426
- turnId: string;
11427
- parentItemId: string | null;
11428
- sourceSequence: number | null;
11429
- segmentId?: string | undefined;
11430
- segmentIndex?: number | undefined;
11431
- processGroup?: {
11432
- id: string;
11433
- isStart?: true | undefined;
11434
- } | undefined;
11435
- permissionStop?: {
11436
- source: {
11437
- sessionId: string;
11438
- executionId: string;
11439
- callId: string;
11440
- toolName: string;
11441
- parentCallId?: string | undefined;
11442
- };
11443
- action: "ask" | "deny";
11444
- reason: string;
11445
- } | undefined;
11446
- }, {
11447
- status: "PENDING" | "FAILED" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
11448
- sessionId: string;
11449
- payload: {
11463
+ }, {
11450
11464
  errorCode: string | null;
11451
11465
  title: string;
11452
11466
  toolName: string;
11453
- truncated: boolean;
11454
11467
  namespace: string;
11455
11468
  inputSummary: string | null;
11456
11469
  outputSummary: string | null;
@@ -11463,10 +11476,20 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
11463
11476
  imageIndex?: number | undefined;
11464
11477
  imageRef?: string | undefined;
11465
11478
  }[] | undefined;
11479
+ truncated?: boolean | undefined;
11466
11480
  output?: {
11481
+ blocks: {
11482
+ text: string;
11483
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
11484
+ }[];
11485
+ truncation?: "HEAD" | "SOURCE" | undefined;
11486
+ } | {
11467
11487
  text: string;
11468
11488
  truncated: boolean;
11469
11489
  } | undefined;
11490
+ errorMessage?: string | undefined;
11491
+ inputTruncated?: true | undefined;
11492
+ outputSummaryTruncated?: true | undefined;
11470
11493
  toolCategory?: "IMAGE_GENERATION" | undefined;
11471
11494
  toolPresentation?: {
11472
11495
  kind: "READ";
@@ -11500,6 +11523,226 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
11500
11523
  elapsedMs?: number | undefined;
11501
11524
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
11502
11525
  } | undefined;
11526
+ agentOperation?: {
11527
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
11528
+ targets: {
11529
+ agentId: string;
11530
+ sessionId?: string | undefined;
11531
+ title?: string | undefined;
11532
+ }[];
11533
+ scope?: string | undefined;
11534
+ targetsTruncated?: true | undefined;
11535
+ } | undefined;
11536
+ subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
11537
+ subagentWait?: boolean | undefined;
11538
+ subagentId?: string | null | undefined;
11539
+ subagentSessionId?: string | undefined;
11540
+ subagentModelId?: string | undefined;
11541
+ subagentModelName?: string | undefined;
11542
+ subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
11543
+ subagentLatestMessage?: {
11544
+ text: string;
11545
+ phase: "commentary" | "final_answer";
11546
+ turnId: string;
11547
+ itemId: string;
11548
+ timestamp: string;
11549
+ truncated?: boolean | undefined;
11550
+ } | undefined;
11551
+ }>;
11552
+ }, "strip", z.ZodTypeAny, {
11553
+ status: "PENDING" | "FAILED" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
11554
+ sessionId: string;
11555
+ payload: {
11556
+ errorCode: string | null;
11557
+ title: string;
11558
+ toolName: string;
11559
+ namespace: string;
11560
+ inputSummary: string | null;
11561
+ outputSummary: string | null;
11562
+ progressLabel: string | null;
11563
+ attachments?: {
11564
+ name: string;
11565
+ mime: string;
11566
+ runId?: string | undefined;
11567
+ byteSize?: number | undefined;
11568
+ imageIndex?: number | undefined;
11569
+ imageRef?: string | undefined;
11570
+ }[] | undefined;
11571
+ truncated?: boolean | undefined;
11572
+ output?: {
11573
+ blocks: {
11574
+ text: string;
11575
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
11576
+ }[];
11577
+ truncation?: "HEAD" | "SOURCE" | undefined;
11578
+ } | {
11579
+ text: string;
11580
+ truncated: boolean;
11581
+ } | undefined;
11582
+ errorMessage?: string | undefined;
11583
+ inputTruncated?: true | undefined;
11584
+ outputSummaryTruncated?: true | undefined;
11585
+ toolCategory?: "IMAGE_GENERATION" | undefined;
11586
+ toolPresentation?: {
11587
+ kind: "READ";
11588
+ paths?: string[] | undefined;
11589
+ } | {
11590
+ kind: "WEB_SEARCH";
11591
+ query?: string | undefined;
11592
+ sourceCount?: number | undefined;
11593
+ sources?: {
11594
+ url: string;
11595
+ title?: string | undefined;
11596
+ snippet?: string | undefined;
11597
+ }[] | undefined;
11598
+ } | {
11599
+ kind: "WEB_FETCH";
11600
+ status?: number | undefined;
11601
+ title?: string | undefined;
11602
+ mode?: "http" | "browser" | undefined;
11603
+ url?: string | undefined;
11604
+ contentType?: string | undefined;
11605
+ requestUrl?: string | undefined;
11606
+ } | {
11607
+ kind: "SKILL";
11608
+ name?: string | undefined;
11609
+ source?: string | undefined;
11610
+ description?: string | undefined;
11611
+ } | {
11612
+ kind: "SLEEP";
11613
+ startedAt?: string | undefined;
11614
+ durationMs?: number | undefined;
11615
+ elapsedMs?: number | undefined;
11616
+ wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
11617
+ } | undefined;
11618
+ agentOperation?: {
11619
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
11620
+ targets: {
11621
+ agentId: string;
11622
+ sessionId?: string | undefined;
11623
+ title?: string | undefined;
11624
+ }[];
11625
+ scope?: string | undefined;
11626
+ targetsTruncated?: true | undefined;
11627
+ } | undefined;
11628
+ subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
11629
+ subagentWait?: boolean | undefined;
11630
+ subagentId?: string | null | undefined;
11631
+ subagentSessionId?: string | undefined;
11632
+ subagentModelId?: string | undefined;
11633
+ subagentModelName?: string | undefined;
11634
+ subagentReasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
11635
+ subagentLatestMessage?: {
11636
+ text: string;
11637
+ phase: "commentary" | "final_answer";
11638
+ turnId: string;
11639
+ itemId: string;
11640
+ timestamp: string;
11641
+ truncated?: boolean | undefined;
11642
+ } | undefined;
11643
+ };
11644
+ kind: "tool_call";
11645
+ id: string;
11646
+ revision: number;
11647
+ runId: string | null;
11648
+ startedAt: number | null;
11649
+ completedAt: number | null;
11650
+ turnId: string;
11651
+ parentItemId: string | null;
11652
+ sourceSequence: number | null;
11653
+ segmentId?: string | undefined;
11654
+ segmentIndex?: number | undefined;
11655
+ processGroup?: {
11656
+ id: string;
11657
+ isStart?: true | undefined;
11658
+ } | undefined;
11659
+ permissionStop?: {
11660
+ source: {
11661
+ sessionId: string;
11662
+ executionId: string;
11663
+ callId: string;
11664
+ toolName: string;
11665
+ parentCallId?: string | undefined;
11666
+ };
11667
+ action: "ask" | "deny";
11668
+ reason: string;
11669
+ } | undefined;
11670
+ }, {
11671
+ status: "PENDING" | "FAILED" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
11672
+ sessionId: string;
11673
+ payload: {
11674
+ errorCode: string | null;
11675
+ title: string;
11676
+ toolName: string;
11677
+ namespace: string;
11678
+ inputSummary: string | null;
11679
+ outputSummary: string | null;
11680
+ progressLabel: string | null;
11681
+ attachments?: {
11682
+ name: string;
11683
+ mime: string;
11684
+ runId?: string | undefined;
11685
+ byteSize?: number | undefined;
11686
+ imageIndex?: number | undefined;
11687
+ imageRef?: string | undefined;
11688
+ }[] | undefined;
11689
+ truncated?: boolean | undefined;
11690
+ output?: {
11691
+ blocks: {
11692
+ text: string;
11693
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
11694
+ }[];
11695
+ truncation?: "HEAD" | "SOURCE" | undefined;
11696
+ } | {
11697
+ text: string;
11698
+ truncated: boolean;
11699
+ } | undefined;
11700
+ errorMessage?: string | undefined;
11701
+ inputTruncated?: true | undefined;
11702
+ outputSummaryTruncated?: true | undefined;
11703
+ toolCategory?: "IMAGE_GENERATION" | undefined;
11704
+ toolPresentation?: {
11705
+ kind: "READ";
11706
+ paths?: string[] | undefined;
11707
+ } | {
11708
+ kind: "WEB_SEARCH";
11709
+ query?: string | undefined;
11710
+ sourceCount?: number | undefined;
11711
+ sources?: {
11712
+ url: string;
11713
+ title?: string | undefined;
11714
+ snippet?: string | undefined;
11715
+ }[] | undefined;
11716
+ } | {
11717
+ kind: "WEB_FETCH";
11718
+ status?: number | undefined;
11719
+ title?: string | undefined;
11720
+ mode?: "http" | "browser" | undefined;
11721
+ url?: string | undefined;
11722
+ contentType?: string | undefined;
11723
+ requestUrl?: string | undefined;
11724
+ } | {
11725
+ kind: "SKILL";
11726
+ name?: string | undefined;
11727
+ source?: string | undefined;
11728
+ description?: string | undefined;
11729
+ } | {
11730
+ kind: "SLEEP";
11731
+ startedAt?: string | undefined;
11732
+ durationMs?: number | undefined;
11733
+ elapsedMs?: number | undefined;
11734
+ wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
11735
+ } | undefined;
11736
+ agentOperation?: {
11737
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
11738
+ targets: {
11739
+ agentId: string;
11740
+ sessionId?: string | undefined;
11741
+ title?: string | undefined;
11742
+ }[];
11743
+ scope?: string | undefined;
11744
+ targetsTruncated?: true | undefined;
11745
+ } | undefined;
11503
11746
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
11504
11747
  subagentWait?: boolean | undefined;
11505
11748
  subagentId?: string | null | undefined;
@@ -11615,11 +11858,55 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
11615
11858
  title: z.ZodOptional<z.ZodString>;
11616
11859
  command: z.ZodString;
11617
11860
  cwd: z.ZodNullable<z.ZodString>;
11618
- outputPreview: z.ZodString;
11861
+ outputPreview: z.ZodOptional<z.ZodString>;
11862
+ outputSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11863
+ outputSummaryTruncated: z.ZodOptional<z.ZodLiteral<true>>;
11619
11864
  exitCode: z.ZodNullable<z.ZodNumber>;
11620
11865
  durationMs: z.ZodNullable<z.ZodNumber>;
11621
- truncated: z.ZodBoolean;
11622
- output: z.ZodOptional<z.ZodObject<{
11866
+ truncated: z.ZodOptional<z.ZodBoolean>;
11867
+ output: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
11868
+ blocks: z.ZodEffects<z.ZodArray<z.ZodObject<{
11869
+ channel: z.ZodEnum<["STDOUT", "STDERR", "COMBINED", "TEXT"]>;
11870
+ text: z.ZodString;
11871
+ }, "strict", z.ZodTypeAny, {
11872
+ text: string;
11873
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
11874
+ }, {
11875
+ text: string;
11876
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
11877
+ }>, "many">, {
11878
+ text: string;
11879
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
11880
+ }[], {
11881
+ text: string;
11882
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
11883
+ }[]>;
11884
+ truncation: z.ZodOptional<z.ZodEnum<["HEAD", "SOURCE"]>>;
11885
+ }, "strict", z.ZodTypeAny, {
11886
+ blocks: {
11887
+ text: string;
11888
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
11889
+ }[];
11890
+ truncation?: "HEAD" | "SOURCE" | undefined;
11891
+ }, {
11892
+ blocks: {
11893
+ text: string;
11894
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
11895
+ }[];
11896
+ truncation?: "HEAD" | "SOURCE" | undefined;
11897
+ }>, {
11898
+ blocks: {
11899
+ text: string;
11900
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
11901
+ }[];
11902
+ truncation?: "HEAD" | "SOURCE" | undefined;
11903
+ }, {
11904
+ blocks: {
11905
+ text: string;
11906
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
11907
+ }[];
11908
+ truncation?: "HEAD" | "SOURCE" | undefined;
11909
+ }>, z.ZodObject<{
11623
11910
  text: z.ZodString;
11624
11911
  truncated: z.ZodBoolean;
11625
11912
  }, "strict", z.ZodTypeAny, {
@@ -11628,7 +11915,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
11628
11915
  }, {
11629
11916
  text: string;
11630
11917
  truncated: boolean;
11631
- }>>;
11918
+ }>]>>;
11632
11919
  toolPresentation: z.ZodOptional<z.ZodEffects<z.ZodObject<{
11633
11920
  kind: z.ZodLiteral<"EXECUTION">;
11634
11921
  execution: z.ZodObject<{
@@ -11843,16 +12130,23 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
11843
12130
  }, "strip", z.ZodTypeAny, {
11844
12131
  command: string;
11845
12132
  durationMs: number | null;
11846
- truncated: boolean;
11847
12133
  cwd: string | null;
11848
- outputPreview: string;
11849
12134
  exitCode: number | null;
11850
12135
  title?: string | undefined;
11851
12136
  toolName?: string | undefined;
12137
+ truncated?: boolean | undefined;
11852
12138
  output?: {
12139
+ blocks: {
12140
+ text: string;
12141
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
12142
+ }[];
12143
+ truncation?: "HEAD" | "SOURCE" | undefined;
12144
+ } | {
11853
12145
  text: string;
11854
12146
  truncated: boolean;
11855
12147
  } | undefined;
12148
+ outputSummary?: string | null | undefined;
12149
+ outputSummaryTruncated?: true | undefined;
11856
12150
  toolPresentation?: {
11857
12151
  kind: "EXECUTION";
11858
12152
  execution: {
@@ -11880,19 +12174,27 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
11880
12174
  } | undefined;
11881
12175
  };
11882
12176
  } | undefined;
12177
+ outputPreview?: string | undefined;
11883
12178
  }, {
11884
12179
  command: string;
11885
12180
  durationMs: number | null;
11886
- truncated: boolean;
11887
12181
  cwd: string | null;
11888
- outputPreview: string;
11889
12182
  exitCode: number | null;
11890
12183
  title?: string | undefined;
11891
12184
  toolName?: string | undefined;
12185
+ truncated?: boolean | undefined;
11892
12186
  output?: {
12187
+ blocks: {
12188
+ text: string;
12189
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
12190
+ }[];
12191
+ truncation?: "HEAD" | "SOURCE" | undefined;
12192
+ } | {
11893
12193
  text: string;
11894
12194
  truncated: boolean;
11895
12195
  } | undefined;
12196
+ outputSummary?: string | null | undefined;
12197
+ outputSummaryTruncated?: true | undefined;
11896
12198
  toolPresentation?: {
11897
12199
  kind: "EXECUTION";
11898
12200
  execution: {
@@ -11920,6 +12222,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
11920
12222
  } | undefined;
11921
12223
  };
11922
12224
  } | undefined;
12225
+ outputPreview?: string | undefined;
11923
12226
  }>;
11924
12227
  }, "strip", z.ZodTypeAny, {
11925
12228
  status: "PENDING" | "FAILED" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
@@ -11927,16 +12230,23 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
11927
12230
  payload: {
11928
12231
  command: string;
11929
12232
  durationMs: number | null;
11930
- truncated: boolean;
11931
12233
  cwd: string | null;
11932
- outputPreview: string;
11933
12234
  exitCode: number | null;
11934
12235
  title?: string | undefined;
11935
12236
  toolName?: string | undefined;
12237
+ truncated?: boolean | undefined;
11936
12238
  output?: {
12239
+ blocks: {
12240
+ text: string;
12241
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
12242
+ }[];
12243
+ truncation?: "HEAD" | "SOURCE" | undefined;
12244
+ } | {
11937
12245
  text: string;
11938
12246
  truncated: boolean;
11939
12247
  } | undefined;
12248
+ outputSummary?: string | null | undefined;
12249
+ outputSummaryTruncated?: true | undefined;
11940
12250
  toolPresentation?: {
11941
12251
  kind: "EXECUTION";
11942
12252
  execution: {
@@ -11964,6 +12274,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
11964
12274
  } | undefined;
11965
12275
  };
11966
12276
  } | undefined;
12277
+ outputPreview?: string | undefined;
11967
12278
  };
11968
12279
  kind: "command_execution";
11969
12280
  id: string;
@@ -11997,16 +12308,23 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
11997
12308
  payload: {
11998
12309
  command: string;
11999
12310
  durationMs: number | null;
12000
- truncated: boolean;
12001
12311
  cwd: string | null;
12002
- outputPreview: string;
12003
12312
  exitCode: number | null;
12004
12313
  title?: string | undefined;
12005
12314
  toolName?: string | undefined;
12315
+ truncated?: boolean | undefined;
12006
12316
  output?: {
12317
+ blocks: {
12318
+ text: string;
12319
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
12320
+ }[];
12321
+ truncation?: "HEAD" | "SOURCE" | undefined;
12322
+ } | {
12007
12323
  text: string;
12008
12324
  truncated: boolean;
12009
12325
  } | undefined;
12326
+ outputSummary?: string | null | undefined;
12327
+ outputSummaryTruncated?: true | undefined;
12010
12328
  toolPresentation?: {
12011
12329
  kind: "EXECUTION";
12012
12330
  execution: {
@@ -12034,6 +12352,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
12034
12352
  } | undefined;
12035
12353
  };
12036
12354
  } | undefined;
12355
+ outputPreview?: string | undefined;
12037
12356
  };
12038
12357
  kind: "command_execution";
12039
12358
  id: string;
@@ -14523,8 +14842,53 @@ export declare const conversationTurnSchema: z.ZodObject<{
14523
14842
  outputSummary: z.ZodNullable<z.ZodString>;
14524
14843
  progressLabel: z.ZodNullable<z.ZodString>;
14525
14844
  errorCode: z.ZodNullable<z.ZodString>;
14526
- truncated: z.ZodBoolean;
14527
- output: z.ZodOptional<z.ZodObject<{
14845
+ errorMessage: z.ZodOptional<z.ZodString>;
14846
+ truncated: z.ZodOptional<z.ZodBoolean>;
14847
+ inputTruncated: z.ZodOptional<z.ZodLiteral<true>>;
14848
+ outputSummaryTruncated: z.ZodOptional<z.ZodLiteral<true>>;
14849
+ output: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
14850
+ blocks: z.ZodEffects<z.ZodArray<z.ZodObject<{
14851
+ channel: z.ZodEnum<["STDOUT", "STDERR", "COMBINED", "TEXT"]>;
14852
+ text: z.ZodString;
14853
+ }, "strict", z.ZodTypeAny, {
14854
+ text: string;
14855
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
14856
+ }, {
14857
+ text: string;
14858
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
14859
+ }>, "many">, {
14860
+ text: string;
14861
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
14862
+ }[], {
14863
+ text: string;
14864
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
14865
+ }[]>;
14866
+ truncation: z.ZodOptional<z.ZodEnum<["HEAD", "SOURCE"]>>;
14867
+ }, "strict", z.ZodTypeAny, {
14868
+ blocks: {
14869
+ text: string;
14870
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
14871
+ }[];
14872
+ truncation?: "HEAD" | "SOURCE" | undefined;
14873
+ }, {
14874
+ blocks: {
14875
+ text: string;
14876
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
14877
+ }[];
14878
+ truncation?: "HEAD" | "SOURCE" | undefined;
14879
+ }>, {
14880
+ blocks: {
14881
+ text: string;
14882
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
14883
+ }[];
14884
+ truncation?: "HEAD" | "SOURCE" | undefined;
14885
+ }, {
14886
+ blocks: {
14887
+ text: string;
14888
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
14889
+ }[];
14890
+ truncation?: "HEAD" | "SOURCE" | undefined;
14891
+ }>, z.ZodObject<{
14528
14892
  text: z.ZodString;
14529
14893
  truncated: z.ZodBoolean;
14530
14894
  }, "strict", z.ZodTypeAny, {
@@ -14533,7 +14897,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
14533
14897
  }, {
14534
14898
  text: string;
14535
14899
  truncated: boolean;
14536
- }>>;
14900
+ }>]>>;
14537
14901
  toolCategory: z.ZodOptional<z.ZodEnum<["IMAGE_GENERATION"]>>;
14538
14902
  toolPresentation: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
14539
14903
  kind: z.ZodLiteral<"READ">;
@@ -14637,6 +15001,42 @@ export declare const conversationTurnSchema: z.ZodObject<{
14637
15001
  elapsedMs?: number | undefined;
14638
15002
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
14639
15003
  }>]>>;
15004
+ agentOperation: z.ZodOptional<z.ZodObject<{
15005
+ action: z.ZodEnum<["START", "SEND", "WAIT", "STOP", "LIST", "VIEW"]>;
15006
+ targets: z.ZodArray<z.ZodObject<{
15007
+ agentId: z.ZodString;
15008
+ sessionId: z.ZodOptional<z.ZodString>;
15009
+ title: z.ZodOptional<z.ZodString>;
15010
+ }, "strip", z.ZodTypeAny, {
15011
+ agentId: string;
15012
+ sessionId?: string | undefined;
15013
+ title?: string | undefined;
15014
+ }, {
15015
+ agentId: string;
15016
+ sessionId?: string | undefined;
15017
+ title?: string | undefined;
15018
+ }>, "many">;
15019
+ targetsTruncated: z.ZodOptional<z.ZodLiteral<true>>;
15020
+ scope: z.ZodOptional<z.ZodString>;
15021
+ }, "strip", z.ZodTypeAny, {
15022
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
15023
+ targets: {
15024
+ agentId: string;
15025
+ sessionId?: string | undefined;
15026
+ title?: string | undefined;
15027
+ }[];
15028
+ scope?: string | undefined;
15029
+ targetsTruncated?: true | undefined;
15030
+ }, {
15031
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
15032
+ targets: {
15033
+ agentId: string;
15034
+ sessionId?: string | undefined;
15035
+ title?: string | undefined;
15036
+ }[];
15037
+ scope?: string | undefined;
15038
+ targetsTruncated?: true | undefined;
15039
+ }>>;
14640
15040
  subagentOperation: z.ZodOptional<z.ZodEnum<["START", "STATUS", "CANCEL", "MESSAGE", "RESUME"]>>;
14641
15041
  subagentWait: z.ZodOptional<z.ZodBoolean>;
14642
15042
  subagentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -14706,7 +15106,6 @@ export declare const conversationTurnSchema: z.ZodObject<{
14706
15106
  errorCode: string | null;
14707
15107
  title: string;
14708
15108
  toolName: string;
14709
- truncated: boolean;
14710
15109
  namespace: string;
14711
15110
  inputSummary: string | null;
14712
15111
  outputSummary: string | null;
@@ -14719,10 +15118,20 @@ export declare const conversationTurnSchema: z.ZodObject<{
14719
15118
  imageIndex?: number | undefined;
14720
15119
  imageRef?: string | undefined;
14721
15120
  }[] | undefined;
15121
+ truncated?: boolean | undefined;
14722
15122
  output?: {
15123
+ blocks: {
15124
+ text: string;
15125
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
15126
+ }[];
15127
+ truncation?: "HEAD" | "SOURCE" | undefined;
15128
+ } | {
14723
15129
  text: string;
14724
15130
  truncated: boolean;
14725
15131
  } | undefined;
15132
+ errorMessage?: string | undefined;
15133
+ inputTruncated?: true | undefined;
15134
+ outputSummaryTruncated?: true | undefined;
14726
15135
  toolCategory?: "IMAGE_GENERATION" | undefined;
14727
15136
  toolPresentation?: {
14728
15137
  kind: "READ";
@@ -14756,6 +15165,16 @@ export declare const conversationTurnSchema: z.ZodObject<{
14756
15165
  elapsedMs?: number | undefined;
14757
15166
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
14758
15167
  } | undefined;
15168
+ agentOperation?: {
15169
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
15170
+ targets: {
15171
+ agentId: string;
15172
+ sessionId?: string | undefined;
15173
+ title?: string | undefined;
15174
+ }[];
15175
+ scope?: string | undefined;
15176
+ targetsTruncated?: true | undefined;
15177
+ } | undefined;
14759
15178
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
14760
15179
  subagentWait?: boolean | undefined;
14761
15180
  subagentId?: string | null | undefined;
@@ -14775,7 +15194,6 @@ export declare const conversationTurnSchema: z.ZodObject<{
14775
15194
  errorCode: string | null;
14776
15195
  title: string;
14777
15196
  toolName: string;
14778
- truncated: boolean;
14779
15197
  namespace: string;
14780
15198
  inputSummary: string | null;
14781
15199
  outputSummary: string | null;
@@ -14788,10 +15206,20 @@ export declare const conversationTurnSchema: z.ZodObject<{
14788
15206
  imageIndex?: number | undefined;
14789
15207
  imageRef?: string | undefined;
14790
15208
  }[] | undefined;
15209
+ truncated?: boolean | undefined;
14791
15210
  output?: {
15211
+ blocks: {
15212
+ text: string;
15213
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
15214
+ }[];
15215
+ truncation?: "HEAD" | "SOURCE" | undefined;
15216
+ } | {
14792
15217
  text: string;
14793
15218
  truncated: boolean;
14794
15219
  } | undefined;
15220
+ errorMessage?: string | undefined;
15221
+ inputTruncated?: true | undefined;
15222
+ outputSummaryTruncated?: true | undefined;
14795
15223
  toolCategory?: "IMAGE_GENERATION" | undefined;
14796
15224
  toolPresentation?: {
14797
15225
  kind: "READ";
@@ -14825,6 +15253,16 @@ export declare const conversationTurnSchema: z.ZodObject<{
14825
15253
  elapsedMs?: number | undefined;
14826
15254
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
14827
15255
  } | undefined;
15256
+ agentOperation?: {
15257
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
15258
+ targets: {
15259
+ agentId: string;
15260
+ sessionId?: string | undefined;
15261
+ title?: string | undefined;
15262
+ }[];
15263
+ scope?: string | undefined;
15264
+ targetsTruncated?: true | undefined;
15265
+ } | undefined;
14828
15266
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
14829
15267
  subagentWait?: boolean | undefined;
14830
15268
  subagentId?: string | null | undefined;
@@ -14848,7 +15286,6 @@ export declare const conversationTurnSchema: z.ZodObject<{
14848
15286
  errorCode: string | null;
14849
15287
  title: string;
14850
15288
  toolName: string;
14851
- truncated: boolean;
14852
15289
  namespace: string;
14853
15290
  inputSummary: string | null;
14854
15291
  outputSummary: string | null;
@@ -14861,10 +15298,20 @@ export declare const conversationTurnSchema: z.ZodObject<{
14861
15298
  imageIndex?: number | undefined;
14862
15299
  imageRef?: string | undefined;
14863
15300
  }[] | undefined;
15301
+ truncated?: boolean | undefined;
14864
15302
  output?: {
15303
+ blocks: {
15304
+ text: string;
15305
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
15306
+ }[];
15307
+ truncation?: "HEAD" | "SOURCE" | undefined;
15308
+ } | {
14865
15309
  text: string;
14866
15310
  truncated: boolean;
14867
15311
  } | undefined;
15312
+ errorMessage?: string | undefined;
15313
+ inputTruncated?: true | undefined;
15314
+ outputSummaryTruncated?: true | undefined;
14868
15315
  toolCategory?: "IMAGE_GENERATION" | undefined;
14869
15316
  toolPresentation?: {
14870
15317
  kind: "READ";
@@ -14898,6 +15345,16 @@ export declare const conversationTurnSchema: z.ZodObject<{
14898
15345
  elapsedMs?: number | undefined;
14899
15346
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
14900
15347
  } | undefined;
15348
+ agentOperation?: {
15349
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
15350
+ targets: {
15351
+ agentId: string;
15352
+ sessionId?: string | undefined;
15353
+ title?: string | undefined;
15354
+ }[];
15355
+ scope?: string | undefined;
15356
+ targetsTruncated?: true | undefined;
15357
+ } | undefined;
14901
15358
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
14902
15359
  subagentWait?: boolean | undefined;
14903
15360
  subagentId?: string | null | undefined;
@@ -14947,7 +15404,6 @@ export declare const conversationTurnSchema: z.ZodObject<{
14947
15404
  errorCode: string | null;
14948
15405
  title: string;
14949
15406
  toolName: string;
14950
- truncated: boolean;
14951
15407
  namespace: string;
14952
15408
  inputSummary: string | null;
14953
15409
  outputSummary: string | null;
@@ -14960,10 +15416,20 @@ export declare const conversationTurnSchema: z.ZodObject<{
14960
15416
  imageIndex?: number | undefined;
14961
15417
  imageRef?: string | undefined;
14962
15418
  }[] | undefined;
15419
+ truncated?: boolean | undefined;
14963
15420
  output?: {
15421
+ blocks: {
15422
+ text: string;
15423
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
15424
+ }[];
15425
+ truncation?: "HEAD" | "SOURCE" | undefined;
15426
+ } | {
14964
15427
  text: string;
14965
15428
  truncated: boolean;
14966
15429
  } | undefined;
15430
+ errorMessage?: string | undefined;
15431
+ inputTruncated?: true | undefined;
15432
+ outputSummaryTruncated?: true | undefined;
14967
15433
  toolCategory?: "IMAGE_GENERATION" | undefined;
14968
15434
  toolPresentation?: {
14969
15435
  kind: "READ";
@@ -14997,6 +15463,16 @@ export declare const conversationTurnSchema: z.ZodObject<{
14997
15463
  elapsedMs?: number | undefined;
14998
15464
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
14999
15465
  } | undefined;
15466
+ agentOperation?: {
15467
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
15468
+ targets: {
15469
+ agentId: string;
15470
+ sessionId?: string | undefined;
15471
+ title?: string | undefined;
15472
+ }[];
15473
+ scope?: string | undefined;
15474
+ targetsTruncated?: true | undefined;
15475
+ } | undefined;
15000
15476
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
15001
15477
  subagentWait?: boolean | undefined;
15002
15478
  subagentId?: string | null | undefined;
@@ -15112,11 +15588,55 @@ export declare const conversationTurnSchema: z.ZodObject<{
15112
15588
  title: z.ZodOptional<z.ZodString>;
15113
15589
  command: z.ZodString;
15114
15590
  cwd: z.ZodNullable<z.ZodString>;
15115
- outputPreview: z.ZodString;
15591
+ outputPreview: z.ZodOptional<z.ZodString>;
15592
+ outputSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15593
+ outputSummaryTruncated: z.ZodOptional<z.ZodLiteral<true>>;
15116
15594
  exitCode: z.ZodNullable<z.ZodNumber>;
15117
15595
  durationMs: z.ZodNullable<z.ZodNumber>;
15118
- truncated: z.ZodBoolean;
15119
- output: z.ZodOptional<z.ZodObject<{
15596
+ truncated: z.ZodOptional<z.ZodBoolean>;
15597
+ output: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
15598
+ blocks: z.ZodEffects<z.ZodArray<z.ZodObject<{
15599
+ channel: z.ZodEnum<["STDOUT", "STDERR", "COMBINED", "TEXT"]>;
15600
+ text: z.ZodString;
15601
+ }, "strict", z.ZodTypeAny, {
15602
+ text: string;
15603
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
15604
+ }, {
15605
+ text: string;
15606
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
15607
+ }>, "many">, {
15608
+ text: string;
15609
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
15610
+ }[], {
15611
+ text: string;
15612
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
15613
+ }[]>;
15614
+ truncation: z.ZodOptional<z.ZodEnum<["HEAD", "SOURCE"]>>;
15615
+ }, "strict", z.ZodTypeAny, {
15616
+ blocks: {
15617
+ text: string;
15618
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
15619
+ }[];
15620
+ truncation?: "HEAD" | "SOURCE" | undefined;
15621
+ }, {
15622
+ blocks: {
15623
+ text: string;
15624
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
15625
+ }[];
15626
+ truncation?: "HEAD" | "SOURCE" | undefined;
15627
+ }>, {
15628
+ blocks: {
15629
+ text: string;
15630
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
15631
+ }[];
15632
+ truncation?: "HEAD" | "SOURCE" | undefined;
15633
+ }, {
15634
+ blocks: {
15635
+ text: string;
15636
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
15637
+ }[];
15638
+ truncation?: "HEAD" | "SOURCE" | undefined;
15639
+ }>, z.ZodObject<{
15120
15640
  text: z.ZodString;
15121
15641
  truncated: z.ZodBoolean;
15122
15642
  }, "strict", z.ZodTypeAny, {
@@ -15125,7 +15645,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
15125
15645
  }, {
15126
15646
  text: string;
15127
15647
  truncated: boolean;
15128
- }>>;
15648
+ }>]>>;
15129
15649
  toolPresentation: z.ZodOptional<z.ZodEffects<z.ZodObject<{
15130
15650
  kind: z.ZodLiteral<"EXECUTION">;
15131
15651
  execution: z.ZodObject<{
@@ -15340,16 +15860,23 @@ export declare const conversationTurnSchema: z.ZodObject<{
15340
15860
  }, "strip", z.ZodTypeAny, {
15341
15861
  command: string;
15342
15862
  durationMs: number | null;
15343
- truncated: boolean;
15344
15863
  cwd: string | null;
15345
- outputPreview: string;
15346
15864
  exitCode: number | null;
15347
15865
  title?: string | undefined;
15348
15866
  toolName?: string | undefined;
15867
+ truncated?: boolean | undefined;
15349
15868
  output?: {
15869
+ blocks: {
15870
+ text: string;
15871
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
15872
+ }[];
15873
+ truncation?: "HEAD" | "SOURCE" | undefined;
15874
+ } | {
15350
15875
  text: string;
15351
15876
  truncated: boolean;
15352
15877
  } | undefined;
15878
+ outputSummary?: string | null | undefined;
15879
+ outputSummaryTruncated?: true | undefined;
15353
15880
  toolPresentation?: {
15354
15881
  kind: "EXECUTION";
15355
15882
  execution: {
@@ -15377,19 +15904,27 @@ export declare const conversationTurnSchema: z.ZodObject<{
15377
15904
  } | undefined;
15378
15905
  };
15379
15906
  } | undefined;
15907
+ outputPreview?: string | undefined;
15380
15908
  }, {
15381
15909
  command: string;
15382
15910
  durationMs: number | null;
15383
- truncated: boolean;
15384
15911
  cwd: string | null;
15385
- outputPreview: string;
15386
15912
  exitCode: number | null;
15387
15913
  title?: string | undefined;
15388
15914
  toolName?: string | undefined;
15915
+ truncated?: boolean | undefined;
15389
15916
  output?: {
15917
+ blocks: {
15918
+ text: string;
15919
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
15920
+ }[];
15921
+ truncation?: "HEAD" | "SOURCE" | undefined;
15922
+ } | {
15390
15923
  text: string;
15391
15924
  truncated: boolean;
15392
15925
  } | undefined;
15926
+ outputSummary?: string | null | undefined;
15927
+ outputSummaryTruncated?: true | undefined;
15393
15928
  toolPresentation?: {
15394
15929
  kind: "EXECUTION";
15395
15930
  execution: {
@@ -15417,6 +15952,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
15417
15952
  } | undefined;
15418
15953
  };
15419
15954
  } | undefined;
15955
+ outputPreview?: string | undefined;
15420
15956
  }>;
15421
15957
  }, "strip", z.ZodTypeAny, {
15422
15958
  status: "PENDING" | "FAILED" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
@@ -15424,16 +15960,23 @@ export declare const conversationTurnSchema: z.ZodObject<{
15424
15960
  payload: {
15425
15961
  command: string;
15426
15962
  durationMs: number | null;
15427
- truncated: boolean;
15428
15963
  cwd: string | null;
15429
- outputPreview: string;
15430
15964
  exitCode: number | null;
15431
15965
  title?: string | undefined;
15432
15966
  toolName?: string | undefined;
15967
+ truncated?: boolean | undefined;
15433
15968
  output?: {
15969
+ blocks: {
15970
+ text: string;
15971
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
15972
+ }[];
15973
+ truncation?: "HEAD" | "SOURCE" | undefined;
15974
+ } | {
15434
15975
  text: string;
15435
15976
  truncated: boolean;
15436
15977
  } | undefined;
15978
+ outputSummary?: string | null | undefined;
15979
+ outputSummaryTruncated?: true | undefined;
15437
15980
  toolPresentation?: {
15438
15981
  kind: "EXECUTION";
15439
15982
  execution: {
@@ -15461,6 +16004,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
15461
16004
  } | undefined;
15462
16005
  };
15463
16006
  } | undefined;
16007
+ outputPreview?: string | undefined;
15464
16008
  };
15465
16009
  kind: "command_execution";
15466
16010
  id: string;
@@ -15494,16 +16038,23 @@ export declare const conversationTurnSchema: z.ZodObject<{
15494
16038
  payload: {
15495
16039
  command: string;
15496
16040
  durationMs: number | null;
15497
- truncated: boolean;
15498
16041
  cwd: string | null;
15499
- outputPreview: string;
15500
16042
  exitCode: number | null;
15501
16043
  title?: string | undefined;
15502
16044
  toolName?: string | undefined;
16045
+ truncated?: boolean | undefined;
15503
16046
  output?: {
16047
+ blocks: {
16048
+ text: string;
16049
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
16050
+ }[];
16051
+ truncation?: "HEAD" | "SOURCE" | undefined;
16052
+ } | {
15504
16053
  text: string;
15505
16054
  truncated: boolean;
15506
16055
  } | undefined;
16056
+ outputSummary?: string | null | undefined;
16057
+ outputSummaryTruncated?: true | undefined;
15507
16058
  toolPresentation?: {
15508
16059
  kind: "EXECUTION";
15509
16060
  execution: {
@@ -15531,6 +16082,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
15531
16082
  } | undefined;
15532
16083
  };
15533
16084
  } | undefined;
16085
+ outputPreview?: string | undefined;
15534
16086
  };
15535
16087
  kind: "command_execution";
15536
16088
  id: string;
@@ -17272,7 +17824,6 @@ export declare const conversationTurnSchema: z.ZodObject<{
17272
17824
  errorCode: string | null;
17273
17825
  title: string;
17274
17826
  toolName: string;
17275
- truncated: boolean;
17276
17827
  namespace: string;
17277
17828
  inputSummary: string | null;
17278
17829
  outputSummary: string | null;
@@ -17285,10 +17836,20 @@ export declare const conversationTurnSchema: z.ZodObject<{
17285
17836
  imageIndex?: number | undefined;
17286
17837
  imageRef?: string | undefined;
17287
17838
  }[] | undefined;
17839
+ truncated?: boolean | undefined;
17288
17840
  output?: {
17841
+ blocks: {
17842
+ text: string;
17843
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
17844
+ }[];
17845
+ truncation?: "HEAD" | "SOURCE" | undefined;
17846
+ } | {
17289
17847
  text: string;
17290
17848
  truncated: boolean;
17291
17849
  } | undefined;
17850
+ errorMessage?: string | undefined;
17851
+ inputTruncated?: true | undefined;
17852
+ outputSummaryTruncated?: true | undefined;
17292
17853
  toolCategory?: "IMAGE_GENERATION" | undefined;
17293
17854
  toolPresentation?: {
17294
17855
  kind: "READ";
@@ -17322,6 +17883,16 @@ export declare const conversationTurnSchema: z.ZodObject<{
17322
17883
  elapsedMs?: number | undefined;
17323
17884
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
17324
17885
  } | undefined;
17886
+ agentOperation?: {
17887
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
17888
+ targets: {
17889
+ agentId: string;
17890
+ sessionId?: string | undefined;
17891
+ title?: string | undefined;
17892
+ }[];
17893
+ scope?: string | undefined;
17894
+ targetsTruncated?: true | undefined;
17895
+ } | undefined;
17325
17896
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
17326
17897
  subagentWait?: boolean | undefined;
17327
17898
  subagentId?: string | null | undefined;
@@ -17370,16 +17941,23 @@ export declare const conversationTurnSchema: z.ZodObject<{
17370
17941
  payload: {
17371
17942
  command: string;
17372
17943
  durationMs: number | null;
17373
- truncated: boolean;
17374
17944
  cwd: string | null;
17375
- outputPreview: string;
17376
17945
  exitCode: number | null;
17377
17946
  title?: string | undefined;
17378
17947
  toolName?: string | undefined;
17948
+ truncated?: boolean | undefined;
17379
17949
  output?: {
17950
+ blocks: {
17951
+ text: string;
17952
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
17953
+ }[];
17954
+ truncation?: "HEAD" | "SOURCE" | undefined;
17955
+ } | {
17380
17956
  text: string;
17381
17957
  truncated: boolean;
17382
17958
  } | undefined;
17959
+ outputSummary?: string | null | undefined;
17960
+ outputSummaryTruncated?: true | undefined;
17383
17961
  toolPresentation?: {
17384
17962
  kind: "EXECUTION";
17385
17963
  execution: {
@@ -17407,6 +17985,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
17407
17985
  } | undefined;
17408
17986
  };
17409
17987
  } | undefined;
17988
+ outputPreview?: string | undefined;
17410
17989
  };
17411
17990
  kind: "command_execution";
17412
17991
  id: string;
@@ -17955,7 +18534,6 @@ export declare const conversationTurnSchema: z.ZodObject<{
17955
18534
  errorCode: string | null;
17956
18535
  title: string;
17957
18536
  toolName: string;
17958
- truncated: boolean;
17959
18537
  namespace: string;
17960
18538
  inputSummary: string | null;
17961
18539
  outputSummary: string | null;
@@ -17968,10 +18546,20 @@ export declare const conversationTurnSchema: z.ZodObject<{
17968
18546
  imageIndex?: number | undefined;
17969
18547
  imageRef?: string | undefined;
17970
18548
  }[] | undefined;
18549
+ truncated?: boolean | undefined;
17971
18550
  output?: {
18551
+ blocks: {
18552
+ text: string;
18553
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
18554
+ }[];
18555
+ truncation?: "HEAD" | "SOURCE" | undefined;
18556
+ } | {
17972
18557
  text: string;
17973
18558
  truncated: boolean;
17974
18559
  } | undefined;
18560
+ errorMessage?: string | undefined;
18561
+ inputTruncated?: true | undefined;
18562
+ outputSummaryTruncated?: true | undefined;
17975
18563
  toolCategory?: "IMAGE_GENERATION" | undefined;
17976
18564
  toolPresentation?: {
17977
18565
  kind: "READ";
@@ -18005,6 +18593,16 @@ export declare const conversationTurnSchema: z.ZodObject<{
18005
18593
  elapsedMs?: number | undefined;
18006
18594
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
18007
18595
  } | undefined;
18596
+ agentOperation?: {
18597
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
18598
+ targets: {
18599
+ agentId: string;
18600
+ sessionId?: string | undefined;
18601
+ title?: string | undefined;
18602
+ }[];
18603
+ scope?: string | undefined;
18604
+ targetsTruncated?: true | undefined;
18605
+ } | undefined;
18008
18606
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
18009
18607
  subagentWait?: boolean | undefined;
18010
18608
  subagentId?: string | null | undefined;
@@ -18053,16 +18651,23 @@ export declare const conversationTurnSchema: z.ZodObject<{
18053
18651
  payload: {
18054
18652
  command: string;
18055
18653
  durationMs: number | null;
18056
- truncated: boolean;
18057
18654
  cwd: string | null;
18058
- outputPreview: string;
18059
18655
  exitCode: number | null;
18060
18656
  title?: string | undefined;
18061
18657
  toolName?: string | undefined;
18658
+ truncated?: boolean | undefined;
18062
18659
  output?: {
18660
+ blocks: {
18661
+ text: string;
18662
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
18663
+ }[];
18664
+ truncation?: "HEAD" | "SOURCE" | undefined;
18665
+ } | {
18063
18666
  text: string;
18064
18667
  truncated: boolean;
18065
18668
  } | undefined;
18669
+ outputSummary?: string | null | undefined;
18670
+ outputSummaryTruncated?: true | undefined;
18066
18671
  toolPresentation?: {
18067
18672
  kind: "EXECUTION";
18068
18673
  execution: {
@@ -18090,6 +18695,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
18090
18695
  } | undefined;
18091
18696
  };
18092
18697
  } | undefined;
18698
+ outputPreview?: string | undefined;
18093
18699
  };
18094
18700
  kind: "command_execution";
18095
18701
  id: string;
@@ -20884,8 +21490,53 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
20884
21490
  outputSummary: z.ZodNullable<z.ZodString>;
20885
21491
  progressLabel: z.ZodNullable<z.ZodString>;
20886
21492
  errorCode: z.ZodNullable<z.ZodString>;
20887
- truncated: z.ZodBoolean;
20888
- output: z.ZodOptional<z.ZodObject<{
21493
+ errorMessage: z.ZodOptional<z.ZodString>;
21494
+ truncated: z.ZodOptional<z.ZodBoolean>;
21495
+ inputTruncated: z.ZodOptional<z.ZodLiteral<true>>;
21496
+ outputSummaryTruncated: z.ZodOptional<z.ZodLiteral<true>>;
21497
+ output: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
21498
+ blocks: z.ZodEffects<z.ZodArray<z.ZodObject<{
21499
+ channel: z.ZodEnum<["STDOUT", "STDERR", "COMBINED", "TEXT"]>;
21500
+ text: z.ZodString;
21501
+ }, "strict", z.ZodTypeAny, {
21502
+ text: string;
21503
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
21504
+ }, {
21505
+ text: string;
21506
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
21507
+ }>, "many">, {
21508
+ text: string;
21509
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
21510
+ }[], {
21511
+ text: string;
21512
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
21513
+ }[]>;
21514
+ truncation: z.ZodOptional<z.ZodEnum<["HEAD", "SOURCE"]>>;
21515
+ }, "strict", z.ZodTypeAny, {
21516
+ blocks: {
21517
+ text: string;
21518
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
21519
+ }[];
21520
+ truncation?: "HEAD" | "SOURCE" | undefined;
21521
+ }, {
21522
+ blocks: {
21523
+ text: string;
21524
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
21525
+ }[];
21526
+ truncation?: "HEAD" | "SOURCE" | undefined;
21527
+ }>, {
21528
+ blocks: {
21529
+ text: string;
21530
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
21531
+ }[];
21532
+ truncation?: "HEAD" | "SOURCE" | undefined;
21533
+ }, {
21534
+ blocks: {
21535
+ text: string;
21536
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
21537
+ }[];
21538
+ truncation?: "HEAD" | "SOURCE" | undefined;
21539
+ }>, z.ZodObject<{
20889
21540
  text: z.ZodString;
20890
21541
  truncated: z.ZodBoolean;
20891
21542
  }, "strict", z.ZodTypeAny, {
@@ -20894,7 +21545,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
20894
21545
  }, {
20895
21546
  text: string;
20896
21547
  truncated: boolean;
20897
- }>>;
21548
+ }>]>>;
20898
21549
  toolCategory: z.ZodOptional<z.ZodEnum<["IMAGE_GENERATION"]>>;
20899
21550
  toolPresentation: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
20900
21551
  kind: z.ZodLiteral<"READ">;
@@ -20998,6 +21649,42 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
20998
21649
  elapsedMs?: number | undefined;
20999
21650
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
21000
21651
  }>]>>;
21652
+ agentOperation: z.ZodOptional<z.ZodObject<{
21653
+ action: z.ZodEnum<["START", "SEND", "WAIT", "STOP", "LIST", "VIEW"]>;
21654
+ targets: z.ZodArray<z.ZodObject<{
21655
+ agentId: z.ZodString;
21656
+ sessionId: z.ZodOptional<z.ZodString>;
21657
+ title: z.ZodOptional<z.ZodString>;
21658
+ }, "strip", z.ZodTypeAny, {
21659
+ agentId: string;
21660
+ sessionId?: string | undefined;
21661
+ title?: string | undefined;
21662
+ }, {
21663
+ agentId: string;
21664
+ sessionId?: string | undefined;
21665
+ title?: string | undefined;
21666
+ }>, "many">;
21667
+ targetsTruncated: z.ZodOptional<z.ZodLiteral<true>>;
21668
+ scope: z.ZodOptional<z.ZodString>;
21669
+ }, "strip", z.ZodTypeAny, {
21670
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
21671
+ targets: {
21672
+ agentId: string;
21673
+ sessionId?: string | undefined;
21674
+ title?: string | undefined;
21675
+ }[];
21676
+ scope?: string | undefined;
21677
+ targetsTruncated?: true | undefined;
21678
+ }, {
21679
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
21680
+ targets: {
21681
+ agentId: string;
21682
+ sessionId?: string | undefined;
21683
+ title?: string | undefined;
21684
+ }[];
21685
+ scope?: string | undefined;
21686
+ targetsTruncated?: true | undefined;
21687
+ }>>;
21001
21688
  subagentOperation: z.ZodOptional<z.ZodEnum<["START", "STATUS", "CANCEL", "MESSAGE", "RESUME"]>>;
21002
21689
  subagentWait: z.ZodOptional<z.ZodBoolean>;
21003
21690
  subagentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -21067,7 +21754,6 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
21067
21754
  errorCode: string | null;
21068
21755
  title: string;
21069
21756
  toolName: string;
21070
- truncated: boolean;
21071
21757
  namespace: string;
21072
21758
  inputSummary: string | null;
21073
21759
  outputSummary: string | null;
@@ -21080,10 +21766,20 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
21080
21766
  imageIndex?: number | undefined;
21081
21767
  imageRef?: string | undefined;
21082
21768
  }[] | undefined;
21769
+ truncated?: boolean | undefined;
21083
21770
  output?: {
21771
+ blocks: {
21772
+ text: string;
21773
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
21774
+ }[];
21775
+ truncation?: "HEAD" | "SOURCE" | undefined;
21776
+ } | {
21084
21777
  text: string;
21085
21778
  truncated: boolean;
21086
21779
  } | undefined;
21780
+ errorMessage?: string | undefined;
21781
+ inputTruncated?: true | undefined;
21782
+ outputSummaryTruncated?: true | undefined;
21087
21783
  toolCategory?: "IMAGE_GENERATION" | undefined;
21088
21784
  toolPresentation?: {
21089
21785
  kind: "READ";
@@ -21117,6 +21813,16 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
21117
21813
  elapsedMs?: number | undefined;
21118
21814
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
21119
21815
  } | undefined;
21816
+ agentOperation?: {
21817
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
21818
+ targets: {
21819
+ agentId: string;
21820
+ sessionId?: string | undefined;
21821
+ title?: string | undefined;
21822
+ }[];
21823
+ scope?: string | undefined;
21824
+ targetsTruncated?: true | undefined;
21825
+ } | undefined;
21120
21826
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
21121
21827
  subagentWait?: boolean | undefined;
21122
21828
  subagentId?: string | null | undefined;
@@ -21136,7 +21842,6 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
21136
21842
  errorCode: string | null;
21137
21843
  title: string;
21138
21844
  toolName: string;
21139
- truncated: boolean;
21140
21845
  namespace: string;
21141
21846
  inputSummary: string | null;
21142
21847
  outputSummary: string | null;
@@ -21149,10 +21854,20 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
21149
21854
  imageIndex?: number | undefined;
21150
21855
  imageRef?: string | undefined;
21151
21856
  }[] | undefined;
21857
+ truncated?: boolean | undefined;
21152
21858
  output?: {
21859
+ blocks: {
21860
+ text: string;
21861
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
21862
+ }[];
21863
+ truncation?: "HEAD" | "SOURCE" | undefined;
21864
+ } | {
21153
21865
  text: string;
21154
21866
  truncated: boolean;
21155
21867
  } | undefined;
21868
+ errorMessage?: string | undefined;
21869
+ inputTruncated?: true | undefined;
21870
+ outputSummaryTruncated?: true | undefined;
21156
21871
  toolCategory?: "IMAGE_GENERATION" | undefined;
21157
21872
  toolPresentation?: {
21158
21873
  kind: "READ";
@@ -21186,6 +21901,16 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
21186
21901
  elapsedMs?: number | undefined;
21187
21902
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
21188
21903
  } | undefined;
21904
+ agentOperation?: {
21905
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
21906
+ targets: {
21907
+ agentId: string;
21908
+ sessionId?: string | undefined;
21909
+ title?: string | undefined;
21910
+ }[];
21911
+ scope?: string | undefined;
21912
+ targetsTruncated?: true | undefined;
21913
+ } | undefined;
21189
21914
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
21190
21915
  subagentWait?: boolean | undefined;
21191
21916
  subagentId?: string | null | undefined;
@@ -21209,7 +21934,6 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
21209
21934
  errorCode: string | null;
21210
21935
  title: string;
21211
21936
  toolName: string;
21212
- truncated: boolean;
21213
21937
  namespace: string;
21214
21938
  inputSummary: string | null;
21215
21939
  outputSummary: string | null;
@@ -21222,10 +21946,20 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
21222
21946
  imageIndex?: number | undefined;
21223
21947
  imageRef?: string | undefined;
21224
21948
  }[] | undefined;
21949
+ truncated?: boolean | undefined;
21225
21950
  output?: {
21951
+ blocks: {
21952
+ text: string;
21953
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
21954
+ }[];
21955
+ truncation?: "HEAD" | "SOURCE" | undefined;
21956
+ } | {
21226
21957
  text: string;
21227
21958
  truncated: boolean;
21228
21959
  } | undefined;
21960
+ errorMessage?: string | undefined;
21961
+ inputTruncated?: true | undefined;
21962
+ outputSummaryTruncated?: true | undefined;
21229
21963
  toolCategory?: "IMAGE_GENERATION" | undefined;
21230
21964
  toolPresentation?: {
21231
21965
  kind: "READ";
@@ -21259,6 +21993,16 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
21259
21993
  elapsedMs?: number | undefined;
21260
21994
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
21261
21995
  } | undefined;
21996
+ agentOperation?: {
21997
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
21998
+ targets: {
21999
+ agentId: string;
22000
+ sessionId?: string | undefined;
22001
+ title?: string | undefined;
22002
+ }[];
22003
+ scope?: string | undefined;
22004
+ targetsTruncated?: true | undefined;
22005
+ } | undefined;
21262
22006
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
21263
22007
  subagentWait?: boolean | undefined;
21264
22008
  subagentId?: string | null | undefined;
@@ -21308,7 +22052,6 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
21308
22052
  errorCode: string | null;
21309
22053
  title: string;
21310
22054
  toolName: string;
21311
- truncated: boolean;
21312
22055
  namespace: string;
21313
22056
  inputSummary: string | null;
21314
22057
  outputSummary: string | null;
@@ -21321,10 +22064,20 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
21321
22064
  imageIndex?: number | undefined;
21322
22065
  imageRef?: string | undefined;
21323
22066
  }[] | undefined;
22067
+ truncated?: boolean | undefined;
21324
22068
  output?: {
22069
+ blocks: {
22070
+ text: string;
22071
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
22072
+ }[];
22073
+ truncation?: "HEAD" | "SOURCE" | undefined;
22074
+ } | {
21325
22075
  text: string;
21326
22076
  truncated: boolean;
21327
22077
  } | undefined;
22078
+ errorMessage?: string | undefined;
22079
+ inputTruncated?: true | undefined;
22080
+ outputSummaryTruncated?: true | undefined;
21328
22081
  toolCategory?: "IMAGE_GENERATION" | undefined;
21329
22082
  toolPresentation?: {
21330
22083
  kind: "READ";
@@ -21358,6 +22111,16 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
21358
22111
  elapsedMs?: number | undefined;
21359
22112
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
21360
22113
  } | undefined;
22114
+ agentOperation?: {
22115
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
22116
+ targets: {
22117
+ agentId: string;
22118
+ sessionId?: string | undefined;
22119
+ title?: string | undefined;
22120
+ }[];
22121
+ scope?: string | undefined;
22122
+ targetsTruncated?: true | undefined;
22123
+ } | undefined;
21361
22124
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
21362
22125
  subagentWait?: boolean | undefined;
21363
22126
  subagentId?: string | null | undefined;
@@ -21473,11 +22236,55 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
21473
22236
  title: z.ZodOptional<z.ZodString>;
21474
22237
  command: z.ZodString;
21475
22238
  cwd: z.ZodNullable<z.ZodString>;
21476
- outputPreview: z.ZodString;
22239
+ outputPreview: z.ZodOptional<z.ZodString>;
22240
+ outputSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22241
+ outputSummaryTruncated: z.ZodOptional<z.ZodLiteral<true>>;
21477
22242
  exitCode: z.ZodNullable<z.ZodNumber>;
21478
22243
  durationMs: z.ZodNullable<z.ZodNumber>;
21479
- truncated: z.ZodBoolean;
21480
- output: z.ZodOptional<z.ZodObject<{
22244
+ truncated: z.ZodOptional<z.ZodBoolean>;
22245
+ output: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
22246
+ blocks: z.ZodEffects<z.ZodArray<z.ZodObject<{
22247
+ channel: z.ZodEnum<["STDOUT", "STDERR", "COMBINED", "TEXT"]>;
22248
+ text: z.ZodString;
22249
+ }, "strict", z.ZodTypeAny, {
22250
+ text: string;
22251
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
22252
+ }, {
22253
+ text: string;
22254
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
22255
+ }>, "many">, {
22256
+ text: string;
22257
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
22258
+ }[], {
22259
+ text: string;
22260
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
22261
+ }[]>;
22262
+ truncation: z.ZodOptional<z.ZodEnum<["HEAD", "SOURCE"]>>;
22263
+ }, "strict", z.ZodTypeAny, {
22264
+ blocks: {
22265
+ text: string;
22266
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
22267
+ }[];
22268
+ truncation?: "HEAD" | "SOURCE" | undefined;
22269
+ }, {
22270
+ blocks: {
22271
+ text: string;
22272
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
22273
+ }[];
22274
+ truncation?: "HEAD" | "SOURCE" | undefined;
22275
+ }>, {
22276
+ blocks: {
22277
+ text: string;
22278
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
22279
+ }[];
22280
+ truncation?: "HEAD" | "SOURCE" | undefined;
22281
+ }, {
22282
+ blocks: {
22283
+ text: string;
22284
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
22285
+ }[];
22286
+ truncation?: "HEAD" | "SOURCE" | undefined;
22287
+ }>, z.ZodObject<{
21481
22288
  text: z.ZodString;
21482
22289
  truncated: z.ZodBoolean;
21483
22290
  }, "strict", z.ZodTypeAny, {
@@ -21486,7 +22293,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
21486
22293
  }, {
21487
22294
  text: string;
21488
22295
  truncated: boolean;
21489
- }>>;
22296
+ }>]>>;
21490
22297
  toolPresentation: z.ZodOptional<z.ZodEffects<z.ZodObject<{
21491
22298
  kind: z.ZodLiteral<"EXECUTION">;
21492
22299
  execution: z.ZodObject<{
@@ -21701,16 +22508,23 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
21701
22508
  }, "strip", z.ZodTypeAny, {
21702
22509
  command: string;
21703
22510
  durationMs: number | null;
21704
- truncated: boolean;
21705
22511
  cwd: string | null;
21706
- outputPreview: string;
21707
22512
  exitCode: number | null;
21708
22513
  title?: string | undefined;
21709
22514
  toolName?: string | undefined;
22515
+ truncated?: boolean | undefined;
21710
22516
  output?: {
22517
+ blocks: {
22518
+ text: string;
22519
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
22520
+ }[];
22521
+ truncation?: "HEAD" | "SOURCE" | undefined;
22522
+ } | {
21711
22523
  text: string;
21712
22524
  truncated: boolean;
21713
22525
  } | undefined;
22526
+ outputSummary?: string | null | undefined;
22527
+ outputSummaryTruncated?: true | undefined;
21714
22528
  toolPresentation?: {
21715
22529
  kind: "EXECUTION";
21716
22530
  execution: {
@@ -21738,19 +22552,27 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
21738
22552
  } | undefined;
21739
22553
  };
21740
22554
  } | undefined;
22555
+ outputPreview?: string | undefined;
21741
22556
  }, {
21742
22557
  command: string;
21743
22558
  durationMs: number | null;
21744
- truncated: boolean;
21745
22559
  cwd: string | null;
21746
- outputPreview: string;
21747
22560
  exitCode: number | null;
21748
22561
  title?: string | undefined;
21749
22562
  toolName?: string | undefined;
22563
+ truncated?: boolean | undefined;
21750
22564
  output?: {
22565
+ blocks: {
22566
+ text: string;
22567
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
22568
+ }[];
22569
+ truncation?: "HEAD" | "SOURCE" | undefined;
22570
+ } | {
21751
22571
  text: string;
21752
22572
  truncated: boolean;
21753
22573
  } | undefined;
22574
+ outputSummary?: string | null | undefined;
22575
+ outputSummaryTruncated?: true | undefined;
21754
22576
  toolPresentation?: {
21755
22577
  kind: "EXECUTION";
21756
22578
  execution: {
@@ -21778,6 +22600,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
21778
22600
  } | undefined;
21779
22601
  };
21780
22602
  } | undefined;
22603
+ outputPreview?: string | undefined;
21781
22604
  }>;
21782
22605
  }, "strip", z.ZodTypeAny, {
21783
22606
  status: "PENDING" | "FAILED" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
@@ -21785,16 +22608,23 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
21785
22608
  payload: {
21786
22609
  command: string;
21787
22610
  durationMs: number | null;
21788
- truncated: boolean;
21789
22611
  cwd: string | null;
21790
- outputPreview: string;
21791
22612
  exitCode: number | null;
21792
22613
  title?: string | undefined;
21793
22614
  toolName?: string | undefined;
22615
+ truncated?: boolean | undefined;
21794
22616
  output?: {
22617
+ blocks: {
22618
+ text: string;
22619
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
22620
+ }[];
22621
+ truncation?: "HEAD" | "SOURCE" | undefined;
22622
+ } | {
21795
22623
  text: string;
21796
22624
  truncated: boolean;
21797
22625
  } | undefined;
22626
+ outputSummary?: string | null | undefined;
22627
+ outputSummaryTruncated?: true | undefined;
21798
22628
  toolPresentation?: {
21799
22629
  kind: "EXECUTION";
21800
22630
  execution: {
@@ -21822,6 +22652,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
21822
22652
  } | undefined;
21823
22653
  };
21824
22654
  } | undefined;
22655
+ outputPreview?: string | undefined;
21825
22656
  };
21826
22657
  kind: "command_execution";
21827
22658
  id: string;
@@ -21855,16 +22686,23 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
21855
22686
  payload: {
21856
22687
  command: string;
21857
22688
  durationMs: number | null;
21858
- truncated: boolean;
21859
22689
  cwd: string | null;
21860
- outputPreview: string;
21861
22690
  exitCode: number | null;
21862
22691
  title?: string | undefined;
21863
22692
  toolName?: string | undefined;
22693
+ truncated?: boolean | undefined;
21864
22694
  output?: {
22695
+ blocks: {
22696
+ text: string;
22697
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
22698
+ }[];
22699
+ truncation?: "HEAD" | "SOURCE" | undefined;
22700
+ } | {
21865
22701
  text: string;
21866
22702
  truncated: boolean;
21867
22703
  } | undefined;
22704
+ outputSummary?: string | null | undefined;
22705
+ outputSummaryTruncated?: true | undefined;
21868
22706
  toolPresentation?: {
21869
22707
  kind: "EXECUTION";
21870
22708
  execution: {
@@ -21892,6 +22730,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
21892
22730
  } | undefined;
21893
22731
  };
21894
22732
  } | undefined;
22733
+ outputPreview?: string | undefined;
21895
22734
  };
21896
22735
  kind: "command_execution";
21897
22736
  id: string;
@@ -23633,7 +24472,6 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
23633
24472
  errorCode: string | null;
23634
24473
  title: string;
23635
24474
  toolName: string;
23636
- truncated: boolean;
23637
24475
  namespace: string;
23638
24476
  inputSummary: string | null;
23639
24477
  outputSummary: string | null;
@@ -23646,10 +24484,20 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
23646
24484
  imageIndex?: number | undefined;
23647
24485
  imageRef?: string | undefined;
23648
24486
  }[] | undefined;
24487
+ truncated?: boolean | undefined;
23649
24488
  output?: {
24489
+ blocks: {
24490
+ text: string;
24491
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
24492
+ }[];
24493
+ truncation?: "HEAD" | "SOURCE" | undefined;
24494
+ } | {
23650
24495
  text: string;
23651
24496
  truncated: boolean;
23652
24497
  } | undefined;
24498
+ errorMessage?: string | undefined;
24499
+ inputTruncated?: true | undefined;
24500
+ outputSummaryTruncated?: true | undefined;
23653
24501
  toolCategory?: "IMAGE_GENERATION" | undefined;
23654
24502
  toolPresentation?: {
23655
24503
  kind: "READ";
@@ -23683,6 +24531,16 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
23683
24531
  elapsedMs?: number | undefined;
23684
24532
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
23685
24533
  } | undefined;
24534
+ agentOperation?: {
24535
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
24536
+ targets: {
24537
+ agentId: string;
24538
+ sessionId?: string | undefined;
24539
+ title?: string | undefined;
24540
+ }[];
24541
+ scope?: string | undefined;
24542
+ targetsTruncated?: true | undefined;
24543
+ } | undefined;
23686
24544
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
23687
24545
  subagentWait?: boolean | undefined;
23688
24546
  subagentId?: string | null | undefined;
@@ -23731,16 +24589,23 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
23731
24589
  payload: {
23732
24590
  command: string;
23733
24591
  durationMs: number | null;
23734
- truncated: boolean;
23735
24592
  cwd: string | null;
23736
- outputPreview: string;
23737
24593
  exitCode: number | null;
23738
24594
  title?: string | undefined;
23739
24595
  toolName?: string | undefined;
24596
+ truncated?: boolean | undefined;
23740
24597
  output?: {
24598
+ blocks: {
24599
+ text: string;
24600
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
24601
+ }[];
24602
+ truncation?: "HEAD" | "SOURCE" | undefined;
24603
+ } | {
23741
24604
  text: string;
23742
24605
  truncated: boolean;
23743
24606
  } | undefined;
24607
+ outputSummary?: string | null | undefined;
24608
+ outputSummaryTruncated?: true | undefined;
23744
24609
  toolPresentation?: {
23745
24610
  kind: "EXECUTION";
23746
24611
  execution: {
@@ -23768,6 +24633,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
23768
24633
  } | undefined;
23769
24634
  };
23770
24635
  } | undefined;
24636
+ outputPreview?: string | undefined;
23771
24637
  };
23772
24638
  kind: "command_execution";
23773
24639
  id: string;
@@ -24316,7 +25182,6 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
24316
25182
  errorCode: string | null;
24317
25183
  title: string;
24318
25184
  toolName: string;
24319
- truncated: boolean;
24320
25185
  namespace: string;
24321
25186
  inputSummary: string | null;
24322
25187
  outputSummary: string | null;
@@ -24329,10 +25194,20 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
24329
25194
  imageIndex?: number | undefined;
24330
25195
  imageRef?: string | undefined;
24331
25196
  }[] | undefined;
25197
+ truncated?: boolean | undefined;
24332
25198
  output?: {
25199
+ blocks: {
25200
+ text: string;
25201
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
25202
+ }[];
25203
+ truncation?: "HEAD" | "SOURCE" | undefined;
25204
+ } | {
24333
25205
  text: string;
24334
25206
  truncated: boolean;
24335
25207
  } | undefined;
25208
+ errorMessage?: string | undefined;
25209
+ inputTruncated?: true | undefined;
25210
+ outputSummaryTruncated?: true | undefined;
24336
25211
  toolCategory?: "IMAGE_GENERATION" | undefined;
24337
25212
  toolPresentation?: {
24338
25213
  kind: "READ";
@@ -24366,6 +25241,16 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
24366
25241
  elapsedMs?: number | undefined;
24367
25242
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
24368
25243
  } | undefined;
25244
+ agentOperation?: {
25245
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
25246
+ targets: {
25247
+ agentId: string;
25248
+ sessionId?: string | undefined;
25249
+ title?: string | undefined;
25250
+ }[];
25251
+ scope?: string | undefined;
25252
+ targetsTruncated?: true | undefined;
25253
+ } | undefined;
24369
25254
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
24370
25255
  subagentWait?: boolean | undefined;
24371
25256
  subagentId?: string | null | undefined;
@@ -24414,16 +25299,23 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
24414
25299
  payload: {
24415
25300
  command: string;
24416
25301
  durationMs: number | null;
24417
- truncated: boolean;
24418
25302
  cwd: string | null;
24419
- outputPreview: string;
24420
25303
  exitCode: number | null;
24421
25304
  title?: string | undefined;
24422
25305
  toolName?: string | undefined;
25306
+ truncated?: boolean | undefined;
24423
25307
  output?: {
25308
+ blocks: {
25309
+ text: string;
25310
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
25311
+ }[];
25312
+ truncation?: "HEAD" | "SOURCE" | undefined;
25313
+ } | {
24424
25314
  text: string;
24425
25315
  truncated: boolean;
24426
25316
  } | undefined;
25317
+ outputSummary?: string | null | undefined;
25318
+ outputSummaryTruncated?: true | undefined;
24427
25319
  toolPresentation?: {
24428
25320
  kind: "EXECUTION";
24429
25321
  execution: {
@@ -24451,6 +25343,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
24451
25343
  } | undefined;
24452
25344
  };
24453
25345
  } | undefined;
25346
+ outputPreview?: string | undefined;
24454
25347
  };
24455
25348
  kind: "command_execution";
24456
25349
  id: string;
@@ -25238,7 +26131,6 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
25238
26131
  errorCode: string | null;
25239
26132
  title: string;
25240
26133
  toolName: string;
25241
- truncated: boolean;
25242
26134
  namespace: string;
25243
26135
  inputSummary: string | null;
25244
26136
  outputSummary: string | null;
@@ -25251,10 +26143,20 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
25251
26143
  imageIndex?: number | undefined;
25252
26144
  imageRef?: string | undefined;
25253
26145
  }[] | undefined;
26146
+ truncated?: boolean | undefined;
25254
26147
  output?: {
26148
+ blocks: {
26149
+ text: string;
26150
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
26151
+ }[];
26152
+ truncation?: "HEAD" | "SOURCE" | undefined;
26153
+ } | {
25255
26154
  text: string;
25256
26155
  truncated: boolean;
25257
26156
  } | undefined;
26157
+ errorMessage?: string | undefined;
26158
+ inputTruncated?: true | undefined;
26159
+ outputSummaryTruncated?: true | undefined;
25258
26160
  toolCategory?: "IMAGE_GENERATION" | undefined;
25259
26161
  toolPresentation?: {
25260
26162
  kind: "READ";
@@ -25288,6 +26190,16 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
25288
26190
  elapsedMs?: number | undefined;
25289
26191
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
25290
26192
  } | undefined;
26193
+ agentOperation?: {
26194
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
26195
+ targets: {
26196
+ agentId: string;
26197
+ sessionId?: string | undefined;
26198
+ title?: string | undefined;
26199
+ }[];
26200
+ scope?: string | undefined;
26201
+ targetsTruncated?: true | undefined;
26202
+ } | undefined;
25291
26203
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
25292
26204
  subagentWait?: boolean | undefined;
25293
26205
  subagentId?: string | null | undefined;
@@ -25336,16 +26248,23 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
25336
26248
  payload: {
25337
26249
  command: string;
25338
26250
  durationMs: number | null;
25339
- truncated: boolean;
25340
26251
  cwd: string | null;
25341
- outputPreview: string;
25342
26252
  exitCode: number | null;
25343
26253
  title?: string | undefined;
25344
26254
  toolName?: string | undefined;
26255
+ truncated?: boolean | undefined;
25345
26256
  output?: {
26257
+ blocks: {
26258
+ text: string;
26259
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
26260
+ }[];
26261
+ truncation?: "HEAD" | "SOURCE" | undefined;
26262
+ } | {
25346
26263
  text: string;
25347
26264
  truncated: boolean;
25348
26265
  } | undefined;
26266
+ outputSummary?: string | null | undefined;
26267
+ outputSummaryTruncated?: true | undefined;
25349
26268
  toolPresentation?: {
25350
26269
  kind: "EXECUTION";
25351
26270
  execution: {
@@ -25373,6 +26292,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
25373
26292
  } | undefined;
25374
26293
  };
25375
26294
  } | undefined;
26295
+ outputPreview?: string | undefined;
25376
26296
  };
25377
26297
  kind: "command_execution";
25378
26298
  id: string;
@@ -25986,7 +26906,6 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
25986
26906
  errorCode: string | null;
25987
26907
  title: string;
25988
26908
  toolName: string;
25989
- truncated: boolean;
25990
26909
  namespace: string;
25991
26910
  inputSummary: string | null;
25992
26911
  outputSummary: string | null;
@@ -25999,10 +26918,20 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
25999
26918
  imageIndex?: number | undefined;
26000
26919
  imageRef?: string | undefined;
26001
26920
  }[] | undefined;
26921
+ truncated?: boolean | undefined;
26002
26922
  output?: {
26923
+ blocks: {
26924
+ text: string;
26925
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
26926
+ }[];
26927
+ truncation?: "HEAD" | "SOURCE" | undefined;
26928
+ } | {
26003
26929
  text: string;
26004
26930
  truncated: boolean;
26005
26931
  } | undefined;
26932
+ errorMessage?: string | undefined;
26933
+ inputTruncated?: true | undefined;
26934
+ outputSummaryTruncated?: true | undefined;
26006
26935
  toolCategory?: "IMAGE_GENERATION" | undefined;
26007
26936
  toolPresentation?: {
26008
26937
  kind: "READ";
@@ -26036,6 +26965,16 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
26036
26965
  elapsedMs?: number | undefined;
26037
26966
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
26038
26967
  } | undefined;
26968
+ agentOperation?: {
26969
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
26970
+ targets: {
26971
+ agentId: string;
26972
+ sessionId?: string | undefined;
26973
+ title?: string | undefined;
26974
+ }[];
26975
+ scope?: string | undefined;
26976
+ targetsTruncated?: true | undefined;
26977
+ } | undefined;
26039
26978
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
26040
26979
  subagentWait?: boolean | undefined;
26041
26980
  subagentId?: string | null | undefined;
@@ -26084,16 +27023,23 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
26084
27023
  payload: {
26085
27024
  command: string;
26086
27025
  durationMs: number | null;
26087
- truncated: boolean;
26088
27026
  cwd: string | null;
26089
- outputPreview: string;
26090
27027
  exitCode: number | null;
26091
27028
  title?: string | undefined;
26092
27029
  toolName?: string | undefined;
27030
+ truncated?: boolean | undefined;
26093
27031
  output?: {
27032
+ blocks: {
27033
+ text: string;
27034
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
27035
+ }[];
27036
+ truncation?: "HEAD" | "SOURCE" | undefined;
27037
+ } | {
26094
27038
  text: string;
26095
27039
  truncated: boolean;
26096
27040
  } | undefined;
27041
+ outputSummary?: string | null | undefined;
27042
+ outputSummaryTruncated?: true | undefined;
26097
27043
  toolPresentation?: {
26098
27044
  kind: "EXECUTION";
26099
27045
  execution: {
@@ -26121,6 +27067,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
26121
27067
  } | undefined;
26122
27068
  };
26123
27069
  } | undefined;
27070
+ outputPreview?: string | undefined;
26124
27071
  };
26125
27072
  kind: "command_execution";
26126
27073
  id: string;
@@ -26734,7 +27681,6 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
26734
27681
  errorCode: string | null;
26735
27682
  title: string;
26736
27683
  toolName: string;
26737
- truncated: boolean;
26738
27684
  namespace: string;
26739
27685
  inputSummary: string | null;
26740
27686
  outputSummary: string | null;
@@ -26747,10 +27693,20 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
26747
27693
  imageIndex?: number | undefined;
26748
27694
  imageRef?: string | undefined;
26749
27695
  }[] | undefined;
27696
+ truncated?: boolean | undefined;
26750
27697
  output?: {
27698
+ blocks: {
27699
+ text: string;
27700
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
27701
+ }[];
27702
+ truncation?: "HEAD" | "SOURCE" | undefined;
27703
+ } | {
26751
27704
  text: string;
26752
27705
  truncated: boolean;
26753
27706
  } | undefined;
27707
+ errorMessage?: string | undefined;
27708
+ inputTruncated?: true | undefined;
27709
+ outputSummaryTruncated?: true | undefined;
26754
27710
  toolCategory?: "IMAGE_GENERATION" | undefined;
26755
27711
  toolPresentation?: {
26756
27712
  kind: "READ";
@@ -26784,6 +27740,16 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
26784
27740
  elapsedMs?: number | undefined;
26785
27741
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
26786
27742
  } | undefined;
27743
+ agentOperation?: {
27744
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
27745
+ targets: {
27746
+ agentId: string;
27747
+ sessionId?: string | undefined;
27748
+ title?: string | undefined;
27749
+ }[];
27750
+ scope?: string | undefined;
27751
+ targetsTruncated?: true | undefined;
27752
+ } | undefined;
26787
27753
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
26788
27754
  subagentWait?: boolean | undefined;
26789
27755
  subagentId?: string | null | undefined;
@@ -26832,16 +27798,23 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
26832
27798
  payload: {
26833
27799
  command: string;
26834
27800
  durationMs: number | null;
26835
- truncated: boolean;
26836
27801
  cwd: string | null;
26837
- outputPreview: string;
26838
27802
  exitCode: number | null;
26839
27803
  title?: string | undefined;
26840
27804
  toolName?: string | undefined;
27805
+ truncated?: boolean | undefined;
26841
27806
  output?: {
27807
+ blocks: {
27808
+ text: string;
27809
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
27810
+ }[];
27811
+ truncation?: "HEAD" | "SOURCE" | undefined;
27812
+ } | {
26842
27813
  text: string;
26843
27814
  truncated: boolean;
26844
27815
  } | undefined;
27816
+ outputSummary?: string | null | undefined;
27817
+ outputSummaryTruncated?: true | undefined;
26845
27818
  toolPresentation?: {
26846
27819
  kind: "EXECUTION";
26847
27820
  execution: {
@@ -26869,6 +27842,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
26869
27842
  } | undefined;
26870
27843
  };
26871
27844
  } | undefined;
27845
+ outputPreview?: string | undefined;
26872
27846
  };
26873
27847
  kind: "command_execution";
26874
27848
  id: string;
@@ -27482,7 +28456,6 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
27482
28456
  errorCode: string | null;
27483
28457
  title: string;
27484
28458
  toolName: string;
27485
- truncated: boolean;
27486
28459
  namespace: string;
27487
28460
  inputSummary: string | null;
27488
28461
  outputSummary: string | null;
@@ -27495,10 +28468,20 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
27495
28468
  imageIndex?: number | undefined;
27496
28469
  imageRef?: string | undefined;
27497
28470
  }[] | undefined;
28471
+ truncated?: boolean | undefined;
27498
28472
  output?: {
28473
+ blocks: {
28474
+ text: string;
28475
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
28476
+ }[];
28477
+ truncation?: "HEAD" | "SOURCE" | undefined;
28478
+ } | {
27499
28479
  text: string;
27500
28480
  truncated: boolean;
27501
28481
  } | undefined;
28482
+ errorMessage?: string | undefined;
28483
+ inputTruncated?: true | undefined;
28484
+ outputSummaryTruncated?: true | undefined;
27502
28485
  toolCategory?: "IMAGE_GENERATION" | undefined;
27503
28486
  toolPresentation?: {
27504
28487
  kind: "READ";
@@ -27532,6 +28515,16 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
27532
28515
  elapsedMs?: number | undefined;
27533
28516
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
27534
28517
  } | undefined;
28518
+ agentOperation?: {
28519
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
28520
+ targets: {
28521
+ agentId: string;
28522
+ sessionId?: string | undefined;
28523
+ title?: string | undefined;
28524
+ }[];
28525
+ scope?: string | undefined;
28526
+ targetsTruncated?: true | undefined;
28527
+ } | undefined;
27535
28528
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
27536
28529
  subagentWait?: boolean | undefined;
27537
28530
  subagentId?: string | null | undefined;
@@ -27580,16 +28573,23 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
27580
28573
  payload: {
27581
28574
  command: string;
27582
28575
  durationMs: number | null;
27583
- truncated: boolean;
27584
28576
  cwd: string | null;
27585
- outputPreview: string;
27586
28577
  exitCode: number | null;
27587
28578
  title?: string | undefined;
27588
28579
  toolName?: string | undefined;
28580
+ truncated?: boolean | undefined;
27589
28581
  output?: {
28582
+ blocks: {
28583
+ text: string;
28584
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
28585
+ }[];
28586
+ truncation?: "HEAD" | "SOURCE" | undefined;
28587
+ } | {
27590
28588
  text: string;
27591
28589
  truncated: boolean;
27592
28590
  } | undefined;
28591
+ outputSummary?: string | null | undefined;
28592
+ outputSummaryTruncated?: true | undefined;
27593
28593
  toolPresentation?: {
27594
28594
  kind: "EXECUTION";
27595
28595
  execution: {
@@ -27617,6 +28617,7 @@ export declare const hostedConversationSnapshotSchema: z.ZodEffects<z.ZodObject<
27617
28617
  } | undefined;
27618
28618
  };
27619
28619
  } | undefined;
28620
+ outputPreview?: string | undefined;
27620
28621
  };
27621
28622
  kind: "command_execution";
27622
28623
  id: string;
@@ -29387,8 +30388,53 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
29387
30388
  outputSummary: z.ZodNullable<z.ZodString>;
29388
30389
  progressLabel: z.ZodNullable<z.ZodString>;
29389
30390
  errorCode: z.ZodNullable<z.ZodString>;
29390
- truncated: z.ZodBoolean;
29391
- output: z.ZodOptional<z.ZodObject<{
30391
+ errorMessage: z.ZodOptional<z.ZodString>;
30392
+ truncated: z.ZodOptional<z.ZodBoolean>;
30393
+ inputTruncated: z.ZodOptional<z.ZodLiteral<true>>;
30394
+ outputSummaryTruncated: z.ZodOptional<z.ZodLiteral<true>>;
30395
+ output: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
30396
+ blocks: z.ZodEffects<z.ZodArray<z.ZodObject<{
30397
+ channel: z.ZodEnum<["STDOUT", "STDERR", "COMBINED", "TEXT"]>;
30398
+ text: z.ZodString;
30399
+ }, "strict", z.ZodTypeAny, {
30400
+ text: string;
30401
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
30402
+ }, {
30403
+ text: string;
30404
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
30405
+ }>, "many">, {
30406
+ text: string;
30407
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
30408
+ }[], {
30409
+ text: string;
30410
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
30411
+ }[]>;
30412
+ truncation: z.ZodOptional<z.ZodEnum<["HEAD", "SOURCE"]>>;
30413
+ }, "strict", z.ZodTypeAny, {
30414
+ blocks: {
30415
+ text: string;
30416
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
30417
+ }[];
30418
+ truncation?: "HEAD" | "SOURCE" | undefined;
30419
+ }, {
30420
+ blocks: {
30421
+ text: string;
30422
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
30423
+ }[];
30424
+ truncation?: "HEAD" | "SOURCE" | undefined;
30425
+ }>, {
30426
+ blocks: {
30427
+ text: string;
30428
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
30429
+ }[];
30430
+ truncation?: "HEAD" | "SOURCE" | undefined;
30431
+ }, {
30432
+ blocks: {
30433
+ text: string;
30434
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
30435
+ }[];
30436
+ truncation?: "HEAD" | "SOURCE" | undefined;
30437
+ }>, z.ZodObject<{
29392
30438
  text: z.ZodString;
29393
30439
  truncated: z.ZodBoolean;
29394
30440
  }, "strict", z.ZodTypeAny, {
@@ -29397,7 +30443,7 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
29397
30443
  }, {
29398
30444
  text: string;
29399
30445
  truncated: boolean;
29400
- }>>;
30446
+ }>]>>;
29401
30447
  toolCategory: z.ZodOptional<z.ZodEnum<["IMAGE_GENERATION"]>>;
29402
30448
  toolPresentation: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
29403
30449
  kind: z.ZodLiteral<"READ">;
@@ -29501,6 +30547,42 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
29501
30547
  elapsedMs?: number | undefined;
29502
30548
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
29503
30549
  }>]>>;
30550
+ agentOperation: z.ZodOptional<z.ZodObject<{
30551
+ action: z.ZodEnum<["START", "SEND", "WAIT", "STOP", "LIST", "VIEW"]>;
30552
+ targets: z.ZodArray<z.ZodObject<{
30553
+ agentId: z.ZodString;
30554
+ sessionId: z.ZodOptional<z.ZodString>;
30555
+ title: z.ZodOptional<z.ZodString>;
30556
+ }, "strip", z.ZodTypeAny, {
30557
+ agentId: string;
30558
+ sessionId?: string | undefined;
30559
+ title?: string | undefined;
30560
+ }, {
30561
+ agentId: string;
30562
+ sessionId?: string | undefined;
30563
+ title?: string | undefined;
30564
+ }>, "many">;
30565
+ targetsTruncated: z.ZodOptional<z.ZodLiteral<true>>;
30566
+ scope: z.ZodOptional<z.ZodString>;
30567
+ }, "strip", z.ZodTypeAny, {
30568
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
30569
+ targets: {
30570
+ agentId: string;
30571
+ sessionId?: string | undefined;
30572
+ title?: string | undefined;
30573
+ }[];
30574
+ scope?: string | undefined;
30575
+ targetsTruncated?: true | undefined;
30576
+ }, {
30577
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
30578
+ targets: {
30579
+ agentId: string;
30580
+ sessionId?: string | undefined;
30581
+ title?: string | undefined;
30582
+ }[];
30583
+ scope?: string | undefined;
30584
+ targetsTruncated?: true | undefined;
30585
+ }>>;
29504
30586
  subagentOperation: z.ZodOptional<z.ZodEnum<["START", "STATUS", "CANCEL", "MESSAGE", "RESUME"]>>;
29505
30587
  subagentWait: z.ZodOptional<z.ZodBoolean>;
29506
30588
  subagentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -29570,7 +30652,6 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
29570
30652
  errorCode: string | null;
29571
30653
  title: string;
29572
30654
  toolName: string;
29573
- truncated: boolean;
29574
30655
  namespace: string;
29575
30656
  inputSummary: string | null;
29576
30657
  outputSummary: string | null;
@@ -29583,10 +30664,20 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
29583
30664
  imageIndex?: number | undefined;
29584
30665
  imageRef?: string | undefined;
29585
30666
  }[] | undefined;
30667
+ truncated?: boolean | undefined;
29586
30668
  output?: {
30669
+ blocks: {
30670
+ text: string;
30671
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
30672
+ }[];
30673
+ truncation?: "HEAD" | "SOURCE" | undefined;
30674
+ } | {
29587
30675
  text: string;
29588
30676
  truncated: boolean;
29589
30677
  } | undefined;
30678
+ errorMessage?: string | undefined;
30679
+ inputTruncated?: true | undefined;
30680
+ outputSummaryTruncated?: true | undefined;
29590
30681
  toolCategory?: "IMAGE_GENERATION" | undefined;
29591
30682
  toolPresentation?: {
29592
30683
  kind: "READ";
@@ -29620,6 +30711,16 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
29620
30711
  elapsedMs?: number | undefined;
29621
30712
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
29622
30713
  } | undefined;
30714
+ agentOperation?: {
30715
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
30716
+ targets: {
30717
+ agentId: string;
30718
+ sessionId?: string | undefined;
30719
+ title?: string | undefined;
30720
+ }[];
30721
+ scope?: string | undefined;
30722
+ targetsTruncated?: true | undefined;
30723
+ } | undefined;
29623
30724
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
29624
30725
  subagentWait?: boolean | undefined;
29625
30726
  subagentId?: string | null | undefined;
@@ -29639,7 +30740,6 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
29639
30740
  errorCode: string | null;
29640
30741
  title: string;
29641
30742
  toolName: string;
29642
- truncated: boolean;
29643
30743
  namespace: string;
29644
30744
  inputSummary: string | null;
29645
30745
  outputSummary: string | null;
@@ -29652,10 +30752,20 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
29652
30752
  imageIndex?: number | undefined;
29653
30753
  imageRef?: string | undefined;
29654
30754
  }[] | undefined;
30755
+ truncated?: boolean | undefined;
29655
30756
  output?: {
30757
+ blocks: {
30758
+ text: string;
30759
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
30760
+ }[];
30761
+ truncation?: "HEAD" | "SOURCE" | undefined;
30762
+ } | {
29656
30763
  text: string;
29657
30764
  truncated: boolean;
29658
30765
  } | undefined;
30766
+ errorMessage?: string | undefined;
30767
+ inputTruncated?: true | undefined;
30768
+ outputSummaryTruncated?: true | undefined;
29659
30769
  toolCategory?: "IMAGE_GENERATION" | undefined;
29660
30770
  toolPresentation?: {
29661
30771
  kind: "READ";
@@ -29689,6 +30799,16 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
29689
30799
  elapsedMs?: number | undefined;
29690
30800
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
29691
30801
  } | undefined;
30802
+ agentOperation?: {
30803
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
30804
+ targets: {
30805
+ agentId: string;
30806
+ sessionId?: string | undefined;
30807
+ title?: string | undefined;
30808
+ }[];
30809
+ scope?: string | undefined;
30810
+ targetsTruncated?: true | undefined;
30811
+ } | undefined;
29692
30812
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
29693
30813
  subagentWait?: boolean | undefined;
29694
30814
  subagentId?: string | null | undefined;
@@ -29712,7 +30832,6 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
29712
30832
  errorCode: string | null;
29713
30833
  title: string;
29714
30834
  toolName: string;
29715
- truncated: boolean;
29716
30835
  namespace: string;
29717
30836
  inputSummary: string | null;
29718
30837
  outputSummary: string | null;
@@ -29725,10 +30844,20 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
29725
30844
  imageIndex?: number | undefined;
29726
30845
  imageRef?: string | undefined;
29727
30846
  }[] | undefined;
30847
+ truncated?: boolean | undefined;
29728
30848
  output?: {
30849
+ blocks: {
30850
+ text: string;
30851
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
30852
+ }[];
30853
+ truncation?: "HEAD" | "SOURCE" | undefined;
30854
+ } | {
29729
30855
  text: string;
29730
30856
  truncated: boolean;
29731
30857
  } | undefined;
30858
+ errorMessage?: string | undefined;
30859
+ inputTruncated?: true | undefined;
30860
+ outputSummaryTruncated?: true | undefined;
29732
30861
  toolCategory?: "IMAGE_GENERATION" | undefined;
29733
30862
  toolPresentation?: {
29734
30863
  kind: "READ";
@@ -29762,6 +30891,16 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
29762
30891
  elapsedMs?: number | undefined;
29763
30892
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
29764
30893
  } | undefined;
30894
+ agentOperation?: {
30895
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
30896
+ targets: {
30897
+ agentId: string;
30898
+ sessionId?: string | undefined;
30899
+ title?: string | undefined;
30900
+ }[];
30901
+ scope?: string | undefined;
30902
+ targetsTruncated?: true | undefined;
30903
+ } | undefined;
29765
30904
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
29766
30905
  subagentWait?: boolean | undefined;
29767
30906
  subagentId?: string | null | undefined;
@@ -29811,7 +30950,6 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
29811
30950
  errorCode: string | null;
29812
30951
  title: string;
29813
30952
  toolName: string;
29814
- truncated: boolean;
29815
30953
  namespace: string;
29816
30954
  inputSummary: string | null;
29817
30955
  outputSummary: string | null;
@@ -29824,10 +30962,20 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
29824
30962
  imageIndex?: number | undefined;
29825
30963
  imageRef?: string | undefined;
29826
30964
  }[] | undefined;
30965
+ truncated?: boolean | undefined;
29827
30966
  output?: {
30967
+ blocks: {
30968
+ text: string;
30969
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
30970
+ }[];
30971
+ truncation?: "HEAD" | "SOURCE" | undefined;
30972
+ } | {
29828
30973
  text: string;
29829
30974
  truncated: boolean;
29830
30975
  } | undefined;
30976
+ errorMessage?: string | undefined;
30977
+ inputTruncated?: true | undefined;
30978
+ outputSummaryTruncated?: true | undefined;
29831
30979
  toolCategory?: "IMAGE_GENERATION" | undefined;
29832
30980
  toolPresentation?: {
29833
30981
  kind: "READ";
@@ -29861,6 +31009,16 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
29861
31009
  elapsedMs?: number | undefined;
29862
31010
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
29863
31011
  } | undefined;
31012
+ agentOperation?: {
31013
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
31014
+ targets: {
31015
+ agentId: string;
31016
+ sessionId?: string | undefined;
31017
+ title?: string | undefined;
31018
+ }[];
31019
+ scope?: string | undefined;
31020
+ targetsTruncated?: true | undefined;
31021
+ } | undefined;
29864
31022
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
29865
31023
  subagentWait?: boolean | undefined;
29866
31024
  subagentId?: string | null | undefined;
@@ -29976,11 +31134,55 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
29976
31134
  title: z.ZodOptional<z.ZodString>;
29977
31135
  command: z.ZodString;
29978
31136
  cwd: z.ZodNullable<z.ZodString>;
29979
- outputPreview: z.ZodString;
31137
+ outputPreview: z.ZodOptional<z.ZodString>;
31138
+ outputSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31139
+ outputSummaryTruncated: z.ZodOptional<z.ZodLiteral<true>>;
29980
31140
  exitCode: z.ZodNullable<z.ZodNumber>;
29981
31141
  durationMs: z.ZodNullable<z.ZodNumber>;
29982
- truncated: z.ZodBoolean;
29983
- output: z.ZodOptional<z.ZodObject<{
31142
+ truncated: z.ZodOptional<z.ZodBoolean>;
31143
+ output: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
31144
+ blocks: z.ZodEffects<z.ZodArray<z.ZodObject<{
31145
+ channel: z.ZodEnum<["STDOUT", "STDERR", "COMBINED", "TEXT"]>;
31146
+ text: z.ZodString;
31147
+ }, "strict", z.ZodTypeAny, {
31148
+ text: string;
31149
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
31150
+ }, {
31151
+ text: string;
31152
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
31153
+ }>, "many">, {
31154
+ text: string;
31155
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
31156
+ }[], {
31157
+ text: string;
31158
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
31159
+ }[]>;
31160
+ truncation: z.ZodOptional<z.ZodEnum<["HEAD", "SOURCE"]>>;
31161
+ }, "strict", z.ZodTypeAny, {
31162
+ blocks: {
31163
+ text: string;
31164
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
31165
+ }[];
31166
+ truncation?: "HEAD" | "SOURCE" | undefined;
31167
+ }, {
31168
+ blocks: {
31169
+ text: string;
31170
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
31171
+ }[];
31172
+ truncation?: "HEAD" | "SOURCE" | undefined;
31173
+ }>, {
31174
+ blocks: {
31175
+ text: string;
31176
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
31177
+ }[];
31178
+ truncation?: "HEAD" | "SOURCE" | undefined;
31179
+ }, {
31180
+ blocks: {
31181
+ text: string;
31182
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
31183
+ }[];
31184
+ truncation?: "HEAD" | "SOURCE" | undefined;
31185
+ }>, z.ZodObject<{
29984
31186
  text: z.ZodString;
29985
31187
  truncated: z.ZodBoolean;
29986
31188
  }, "strict", z.ZodTypeAny, {
@@ -29989,7 +31191,7 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
29989
31191
  }, {
29990
31192
  text: string;
29991
31193
  truncated: boolean;
29992
- }>>;
31194
+ }>]>>;
29993
31195
  toolPresentation: z.ZodOptional<z.ZodEffects<z.ZodObject<{
29994
31196
  kind: z.ZodLiteral<"EXECUTION">;
29995
31197
  execution: z.ZodObject<{
@@ -30204,16 +31406,23 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
30204
31406
  }, "strip", z.ZodTypeAny, {
30205
31407
  command: string;
30206
31408
  durationMs: number | null;
30207
- truncated: boolean;
30208
31409
  cwd: string | null;
30209
- outputPreview: string;
30210
31410
  exitCode: number | null;
30211
31411
  title?: string | undefined;
30212
31412
  toolName?: string | undefined;
31413
+ truncated?: boolean | undefined;
30213
31414
  output?: {
31415
+ blocks: {
31416
+ text: string;
31417
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
31418
+ }[];
31419
+ truncation?: "HEAD" | "SOURCE" | undefined;
31420
+ } | {
30214
31421
  text: string;
30215
31422
  truncated: boolean;
30216
31423
  } | undefined;
31424
+ outputSummary?: string | null | undefined;
31425
+ outputSummaryTruncated?: true | undefined;
30217
31426
  toolPresentation?: {
30218
31427
  kind: "EXECUTION";
30219
31428
  execution: {
@@ -30241,19 +31450,27 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
30241
31450
  } | undefined;
30242
31451
  };
30243
31452
  } | undefined;
31453
+ outputPreview?: string | undefined;
30244
31454
  }, {
30245
31455
  command: string;
30246
31456
  durationMs: number | null;
30247
- truncated: boolean;
30248
31457
  cwd: string | null;
30249
- outputPreview: string;
30250
31458
  exitCode: number | null;
30251
31459
  title?: string | undefined;
30252
31460
  toolName?: string | undefined;
31461
+ truncated?: boolean | undefined;
30253
31462
  output?: {
31463
+ blocks: {
31464
+ text: string;
31465
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
31466
+ }[];
31467
+ truncation?: "HEAD" | "SOURCE" | undefined;
31468
+ } | {
30254
31469
  text: string;
30255
31470
  truncated: boolean;
30256
31471
  } | undefined;
31472
+ outputSummary?: string | null | undefined;
31473
+ outputSummaryTruncated?: true | undefined;
30257
31474
  toolPresentation?: {
30258
31475
  kind: "EXECUTION";
30259
31476
  execution: {
@@ -30281,6 +31498,7 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
30281
31498
  } | undefined;
30282
31499
  };
30283
31500
  } | undefined;
31501
+ outputPreview?: string | undefined;
30284
31502
  }>;
30285
31503
  }, "strip", z.ZodTypeAny, {
30286
31504
  status: "PENDING" | "FAILED" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
@@ -30288,16 +31506,23 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
30288
31506
  payload: {
30289
31507
  command: string;
30290
31508
  durationMs: number | null;
30291
- truncated: boolean;
30292
31509
  cwd: string | null;
30293
- outputPreview: string;
30294
31510
  exitCode: number | null;
30295
31511
  title?: string | undefined;
30296
31512
  toolName?: string | undefined;
31513
+ truncated?: boolean | undefined;
30297
31514
  output?: {
31515
+ blocks: {
31516
+ text: string;
31517
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
31518
+ }[];
31519
+ truncation?: "HEAD" | "SOURCE" | undefined;
31520
+ } | {
30298
31521
  text: string;
30299
31522
  truncated: boolean;
30300
31523
  } | undefined;
31524
+ outputSummary?: string | null | undefined;
31525
+ outputSummaryTruncated?: true | undefined;
30301
31526
  toolPresentation?: {
30302
31527
  kind: "EXECUTION";
30303
31528
  execution: {
@@ -30325,6 +31550,7 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
30325
31550
  } | undefined;
30326
31551
  };
30327
31552
  } | undefined;
31553
+ outputPreview?: string | undefined;
30328
31554
  };
30329
31555
  kind: "command_execution";
30330
31556
  id: string;
@@ -30358,16 +31584,23 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
30358
31584
  payload: {
30359
31585
  command: string;
30360
31586
  durationMs: number | null;
30361
- truncated: boolean;
30362
31587
  cwd: string | null;
30363
- outputPreview: string;
30364
31588
  exitCode: number | null;
30365
31589
  title?: string | undefined;
30366
31590
  toolName?: string | undefined;
31591
+ truncated?: boolean | undefined;
30367
31592
  output?: {
31593
+ blocks: {
31594
+ text: string;
31595
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
31596
+ }[];
31597
+ truncation?: "HEAD" | "SOURCE" | undefined;
31598
+ } | {
30368
31599
  text: string;
30369
31600
  truncated: boolean;
30370
31601
  } | undefined;
31602
+ outputSummary?: string | null | undefined;
31603
+ outputSummaryTruncated?: true | undefined;
30371
31604
  toolPresentation?: {
30372
31605
  kind: "EXECUTION";
30373
31606
  execution: {
@@ -30395,6 +31628,7 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
30395
31628
  } | undefined;
30396
31629
  };
30397
31630
  } | undefined;
31631
+ outputPreview?: string | undefined;
30398
31632
  };
30399
31633
  kind: "command_execution";
30400
31634
  id: string;
@@ -32136,7 +33370,6 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
32136
33370
  errorCode: string | null;
32137
33371
  title: string;
32138
33372
  toolName: string;
32139
- truncated: boolean;
32140
33373
  namespace: string;
32141
33374
  inputSummary: string | null;
32142
33375
  outputSummary: string | null;
@@ -32149,10 +33382,20 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
32149
33382
  imageIndex?: number | undefined;
32150
33383
  imageRef?: string | undefined;
32151
33384
  }[] | undefined;
33385
+ truncated?: boolean | undefined;
32152
33386
  output?: {
33387
+ blocks: {
33388
+ text: string;
33389
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
33390
+ }[];
33391
+ truncation?: "HEAD" | "SOURCE" | undefined;
33392
+ } | {
32153
33393
  text: string;
32154
33394
  truncated: boolean;
32155
33395
  } | undefined;
33396
+ errorMessage?: string | undefined;
33397
+ inputTruncated?: true | undefined;
33398
+ outputSummaryTruncated?: true | undefined;
32156
33399
  toolCategory?: "IMAGE_GENERATION" | undefined;
32157
33400
  toolPresentation?: {
32158
33401
  kind: "READ";
@@ -32186,6 +33429,16 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
32186
33429
  elapsedMs?: number | undefined;
32187
33430
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
32188
33431
  } | undefined;
33432
+ agentOperation?: {
33433
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
33434
+ targets: {
33435
+ agentId: string;
33436
+ sessionId?: string | undefined;
33437
+ title?: string | undefined;
33438
+ }[];
33439
+ scope?: string | undefined;
33440
+ targetsTruncated?: true | undefined;
33441
+ } | undefined;
32189
33442
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
32190
33443
  subagentWait?: boolean | undefined;
32191
33444
  subagentId?: string | null | undefined;
@@ -32234,16 +33487,23 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
32234
33487
  payload: {
32235
33488
  command: string;
32236
33489
  durationMs: number | null;
32237
- truncated: boolean;
32238
33490
  cwd: string | null;
32239
- outputPreview: string;
32240
33491
  exitCode: number | null;
32241
33492
  title?: string | undefined;
32242
33493
  toolName?: string | undefined;
33494
+ truncated?: boolean | undefined;
32243
33495
  output?: {
33496
+ blocks: {
33497
+ text: string;
33498
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
33499
+ }[];
33500
+ truncation?: "HEAD" | "SOURCE" | undefined;
33501
+ } | {
32244
33502
  text: string;
32245
33503
  truncated: boolean;
32246
33504
  } | undefined;
33505
+ outputSummary?: string | null | undefined;
33506
+ outputSummaryTruncated?: true | undefined;
32247
33507
  toolPresentation?: {
32248
33508
  kind: "EXECUTION";
32249
33509
  execution: {
@@ -32271,6 +33531,7 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
32271
33531
  } | undefined;
32272
33532
  };
32273
33533
  } | undefined;
33534
+ outputPreview?: string | undefined;
32274
33535
  };
32275
33536
  kind: "command_execution";
32276
33537
  id: string;
@@ -32819,7 +34080,6 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
32819
34080
  errorCode: string | null;
32820
34081
  title: string;
32821
34082
  toolName: string;
32822
- truncated: boolean;
32823
34083
  namespace: string;
32824
34084
  inputSummary: string | null;
32825
34085
  outputSummary: string | null;
@@ -32832,10 +34092,20 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
32832
34092
  imageIndex?: number | undefined;
32833
34093
  imageRef?: string | undefined;
32834
34094
  }[] | undefined;
34095
+ truncated?: boolean | undefined;
32835
34096
  output?: {
34097
+ blocks: {
34098
+ text: string;
34099
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
34100
+ }[];
34101
+ truncation?: "HEAD" | "SOURCE" | undefined;
34102
+ } | {
32836
34103
  text: string;
32837
34104
  truncated: boolean;
32838
34105
  } | undefined;
34106
+ errorMessage?: string | undefined;
34107
+ inputTruncated?: true | undefined;
34108
+ outputSummaryTruncated?: true | undefined;
32839
34109
  toolCategory?: "IMAGE_GENERATION" | undefined;
32840
34110
  toolPresentation?: {
32841
34111
  kind: "READ";
@@ -32869,6 +34139,16 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
32869
34139
  elapsedMs?: number | undefined;
32870
34140
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
32871
34141
  } | undefined;
34142
+ agentOperation?: {
34143
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
34144
+ targets: {
34145
+ agentId: string;
34146
+ sessionId?: string | undefined;
34147
+ title?: string | undefined;
34148
+ }[];
34149
+ scope?: string | undefined;
34150
+ targetsTruncated?: true | undefined;
34151
+ } | undefined;
32872
34152
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
32873
34153
  subagentWait?: boolean | undefined;
32874
34154
  subagentId?: string | null | undefined;
@@ -32917,16 +34197,23 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
32917
34197
  payload: {
32918
34198
  command: string;
32919
34199
  durationMs: number | null;
32920
- truncated: boolean;
32921
34200
  cwd: string | null;
32922
- outputPreview: string;
32923
34201
  exitCode: number | null;
32924
34202
  title?: string | undefined;
32925
34203
  toolName?: string | undefined;
34204
+ truncated?: boolean | undefined;
32926
34205
  output?: {
34206
+ blocks: {
34207
+ text: string;
34208
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
34209
+ }[];
34210
+ truncation?: "HEAD" | "SOURCE" | undefined;
34211
+ } | {
32927
34212
  text: string;
32928
34213
  truncated: boolean;
32929
34214
  } | undefined;
34215
+ outputSummary?: string | null | undefined;
34216
+ outputSummaryTruncated?: true | undefined;
32930
34217
  toolPresentation?: {
32931
34218
  kind: "EXECUTION";
32932
34219
  execution: {
@@ -32954,6 +34241,7 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
32954
34241
  } | undefined;
32955
34242
  };
32956
34243
  } | undefined;
34244
+ outputPreview?: string | undefined;
32957
34245
  };
32958
34246
  kind: "command_execution";
32959
34247
  id: string;
@@ -33506,7 +34794,6 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
33506
34794
  errorCode: string | null;
33507
34795
  title: string;
33508
34796
  toolName: string;
33509
- truncated: boolean;
33510
34797
  namespace: string;
33511
34798
  inputSummary: string | null;
33512
34799
  outputSummary: string | null;
@@ -33519,10 +34806,20 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
33519
34806
  imageIndex?: number | undefined;
33520
34807
  imageRef?: string | undefined;
33521
34808
  }[] | undefined;
34809
+ truncated?: boolean | undefined;
33522
34810
  output?: {
34811
+ blocks: {
34812
+ text: string;
34813
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
34814
+ }[];
34815
+ truncation?: "HEAD" | "SOURCE" | undefined;
34816
+ } | {
33523
34817
  text: string;
33524
34818
  truncated: boolean;
33525
34819
  } | undefined;
34820
+ errorMessage?: string | undefined;
34821
+ inputTruncated?: true | undefined;
34822
+ outputSummaryTruncated?: true | undefined;
33526
34823
  toolCategory?: "IMAGE_GENERATION" | undefined;
33527
34824
  toolPresentation?: {
33528
34825
  kind: "READ";
@@ -33556,6 +34853,16 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
33556
34853
  elapsedMs?: number | undefined;
33557
34854
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
33558
34855
  } | undefined;
34856
+ agentOperation?: {
34857
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
34858
+ targets: {
34859
+ agentId: string;
34860
+ sessionId?: string | undefined;
34861
+ title?: string | undefined;
34862
+ }[];
34863
+ scope?: string | undefined;
34864
+ targetsTruncated?: true | undefined;
34865
+ } | undefined;
33559
34866
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
33560
34867
  subagentWait?: boolean | undefined;
33561
34868
  subagentId?: string | null | undefined;
@@ -33604,16 +34911,23 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
33604
34911
  payload: {
33605
34912
  command: string;
33606
34913
  durationMs: number | null;
33607
- truncated: boolean;
33608
34914
  cwd: string | null;
33609
- outputPreview: string;
33610
34915
  exitCode: number | null;
33611
34916
  title?: string | undefined;
33612
34917
  toolName?: string | undefined;
34918
+ truncated?: boolean | undefined;
33613
34919
  output?: {
34920
+ blocks: {
34921
+ text: string;
34922
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
34923
+ }[];
34924
+ truncation?: "HEAD" | "SOURCE" | undefined;
34925
+ } | {
33614
34926
  text: string;
33615
34927
  truncated: boolean;
33616
34928
  } | undefined;
34929
+ outputSummary?: string | null | undefined;
34930
+ outputSummaryTruncated?: true | undefined;
33617
34931
  toolPresentation?: {
33618
34932
  kind: "EXECUTION";
33619
34933
  execution: {
@@ -33641,6 +34955,7 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
33641
34955
  } | undefined;
33642
34956
  };
33643
34957
  } | undefined;
34958
+ outputPreview?: string | undefined;
33644
34959
  };
33645
34960
  kind: "command_execution";
33646
34961
  id: string;
@@ -34192,7 +35507,6 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
34192
35507
  errorCode: string | null;
34193
35508
  title: string;
34194
35509
  toolName: string;
34195
- truncated: boolean;
34196
35510
  namespace: string;
34197
35511
  inputSummary: string | null;
34198
35512
  outputSummary: string | null;
@@ -34205,10 +35519,20 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
34205
35519
  imageIndex?: number | undefined;
34206
35520
  imageRef?: string | undefined;
34207
35521
  }[] | undefined;
35522
+ truncated?: boolean | undefined;
34208
35523
  output?: {
35524
+ blocks: {
35525
+ text: string;
35526
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
35527
+ }[];
35528
+ truncation?: "HEAD" | "SOURCE" | undefined;
35529
+ } | {
34209
35530
  text: string;
34210
35531
  truncated: boolean;
34211
35532
  } | undefined;
35533
+ errorMessage?: string | undefined;
35534
+ inputTruncated?: true | undefined;
35535
+ outputSummaryTruncated?: true | undefined;
34212
35536
  toolCategory?: "IMAGE_GENERATION" | undefined;
34213
35537
  toolPresentation?: {
34214
35538
  kind: "READ";
@@ -34242,6 +35566,16 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
34242
35566
  elapsedMs?: number | undefined;
34243
35567
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
34244
35568
  } | undefined;
35569
+ agentOperation?: {
35570
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
35571
+ targets: {
35572
+ agentId: string;
35573
+ sessionId?: string | undefined;
35574
+ title?: string | undefined;
35575
+ }[];
35576
+ scope?: string | undefined;
35577
+ targetsTruncated?: true | undefined;
35578
+ } | undefined;
34245
35579
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
34246
35580
  subagentWait?: boolean | undefined;
34247
35581
  subagentId?: string | null | undefined;
@@ -34290,16 +35624,23 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
34290
35624
  payload: {
34291
35625
  command: string;
34292
35626
  durationMs: number | null;
34293
- truncated: boolean;
34294
35627
  cwd: string | null;
34295
- outputPreview: string;
34296
35628
  exitCode: number | null;
34297
35629
  title?: string | undefined;
34298
35630
  toolName?: string | undefined;
35631
+ truncated?: boolean | undefined;
34299
35632
  output?: {
35633
+ blocks: {
35634
+ text: string;
35635
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
35636
+ }[];
35637
+ truncation?: "HEAD" | "SOURCE" | undefined;
35638
+ } | {
34300
35639
  text: string;
34301
35640
  truncated: boolean;
34302
35641
  } | undefined;
35642
+ outputSummary?: string | null | undefined;
35643
+ outputSummaryTruncated?: true | undefined;
34303
35644
  toolPresentation?: {
34304
35645
  kind: "EXECUTION";
34305
35646
  execution: {
@@ -34327,6 +35668,7 @@ export declare const hostedConversationHistoryPageSchema: z.ZodObject<{
34327
35668
  } | undefined;
34328
35669
  };
34329
35670
  } | undefined;
35671
+ outputPreview?: string | undefined;
34330
35672
  };
34331
35673
  kind: "command_execution";
34332
35674
  id: string;
@@ -36920,8 +38262,53 @@ export declare const conversationSegmentSchema: z.ZodObject<{
36920
38262
  outputSummary: z.ZodNullable<z.ZodString>;
36921
38263
  progressLabel: z.ZodNullable<z.ZodString>;
36922
38264
  errorCode: z.ZodNullable<z.ZodString>;
36923
- truncated: z.ZodBoolean;
36924
- output: z.ZodOptional<z.ZodObject<{
38265
+ errorMessage: z.ZodOptional<z.ZodString>;
38266
+ truncated: z.ZodOptional<z.ZodBoolean>;
38267
+ inputTruncated: z.ZodOptional<z.ZodLiteral<true>>;
38268
+ outputSummaryTruncated: z.ZodOptional<z.ZodLiteral<true>>;
38269
+ output: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
38270
+ blocks: z.ZodEffects<z.ZodArray<z.ZodObject<{
38271
+ channel: z.ZodEnum<["STDOUT", "STDERR", "COMBINED", "TEXT"]>;
38272
+ text: z.ZodString;
38273
+ }, "strict", z.ZodTypeAny, {
38274
+ text: string;
38275
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
38276
+ }, {
38277
+ text: string;
38278
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
38279
+ }>, "many">, {
38280
+ text: string;
38281
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
38282
+ }[], {
38283
+ text: string;
38284
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
38285
+ }[]>;
38286
+ truncation: z.ZodOptional<z.ZodEnum<["HEAD", "SOURCE"]>>;
38287
+ }, "strict", z.ZodTypeAny, {
38288
+ blocks: {
38289
+ text: string;
38290
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
38291
+ }[];
38292
+ truncation?: "HEAD" | "SOURCE" | undefined;
38293
+ }, {
38294
+ blocks: {
38295
+ text: string;
38296
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
38297
+ }[];
38298
+ truncation?: "HEAD" | "SOURCE" | undefined;
38299
+ }>, {
38300
+ blocks: {
38301
+ text: string;
38302
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
38303
+ }[];
38304
+ truncation?: "HEAD" | "SOURCE" | undefined;
38305
+ }, {
38306
+ blocks: {
38307
+ text: string;
38308
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
38309
+ }[];
38310
+ truncation?: "HEAD" | "SOURCE" | undefined;
38311
+ }>, z.ZodObject<{
36925
38312
  text: z.ZodString;
36926
38313
  truncated: z.ZodBoolean;
36927
38314
  }, "strict", z.ZodTypeAny, {
@@ -36930,7 +38317,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
36930
38317
  }, {
36931
38318
  text: string;
36932
38319
  truncated: boolean;
36933
- }>>;
38320
+ }>]>>;
36934
38321
  toolCategory: z.ZodOptional<z.ZodEnum<["IMAGE_GENERATION"]>>;
36935
38322
  toolPresentation: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
36936
38323
  kind: z.ZodLiteral<"READ">;
@@ -37034,6 +38421,42 @@ export declare const conversationSegmentSchema: z.ZodObject<{
37034
38421
  elapsedMs?: number | undefined;
37035
38422
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
37036
38423
  }>]>>;
38424
+ agentOperation: z.ZodOptional<z.ZodObject<{
38425
+ action: z.ZodEnum<["START", "SEND", "WAIT", "STOP", "LIST", "VIEW"]>;
38426
+ targets: z.ZodArray<z.ZodObject<{
38427
+ agentId: z.ZodString;
38428
+ sessionId: z.ZodOptional<z.ZodString>;
38429
+ title: z.ZodOptional<z.ZodString>;
38430
+ }, "strip", z.ZodTypeAny, {
38431
+ agentId: string;
38432
+ sessionId?: string | undefined;
38433
+ title?: string | undefined;
38434
+ }, {
38435
+ agentId: string;
38436
+ sessionId?: string | undefined;
38437
+ title?: string | undefined;
38438
+ }>, "many">;
38439
+ targetsTruncated: z.ZodOptional<z.ZodLiteral<true>>;
38440
+ scope: z.ZodOptional<z.ZodString>;
38441
+ }, "strip", z.ZodTypeAny, {
38442
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
38443
+ targets: {
38444
+ agentId: string;
38445
+ sessionId?: string | undefined;
38446
+ title?: string | undefined;
38447
+ }[];
38448
+ scope?: string | undefined;
38449
+ targetsTruncated?: true | undefined;
38450
+ }, {
38451
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
38452
+ targets: {
38453
+ agentId: string;
38454
+ sessionId?: string | undefined;
38455
+ title?: string | undefined;
38456
+ }[];
38457
+ scope?: string | undefined;
38458
+ targetsTruncated?: true | undefined;
38459
+ }>>;
37037
38460
  subagentOperation: z.ZodOptional<z.ZodEnum<["START", "STATUS", "CANCEL", "MESSAGE", "RESUME"]>>;
37038
38461
  subagentWait: z.ZodOptional<z.ZodBoolean>;
37039
38462
  subagentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -37103,7 +38526,6 @@ export declare const conversationSegmentSchema: z.ZodObject<{
37103
38526
  errorCode: string | null;
37104
38527
  title: string;
37105
38528
  toolName: string;
37106
- truncated: boolean;
37107
38529
  namespace: string;
37108
38530
  inputSummary: string | null;
37109
38531
  outputSummary: string | null;
@@ -37116,10 +38538,20 @@ export declare const conversationSegmentSchema: z.ZodObject<{
37116
38538
  imageIndex?: number | undefined;
37117
38539
  imageRef?: string | undefined;
37118
38540
  }[] | undefined;
38541
+ truncated?: boolean | undefined;
37119
38542
  output?: {
38543
+ blocks: {
38544
+ text: string;
38545
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
38546
+ }[];
38547
+ truncation?: "HEAD" | "SOURCE" | undefined;
38548
+ } | {
37120
38549
  text: string;
37121
38550
  truncated: boolean;
37122
38551
  } | undefined;
38552
+ errorMessage?: string | undefined;
38553
+ inputTruncated?: true | undefined;
38554
+ outputSummaryTruncated?: true | undefined;
37123
38555
  toolCategory?: "IMAGE_GENERATION" | undefined;
37124
38556
  toolPresentation?: {
37125
38557
  kind: "READ";
@@ -37153,6 +38585,16 @@ export declare const conversationSegmentSchema: z.ZodObject<{
37153
38585
  elapsedMs?: number | undefined;
37154
38586
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
37155
38587
  } | undefined;
38588
+ agentOperation?: {
38589
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
38590
+ targets: {
38591
+ agentId: string;
38592
+ sessionId?: string | undefined;
38593
+ title?: string | undefined;
38594
+ }[];
38595
+ scope?: string | undefined;
38596
+ targetsTruncated?: true | undefined;
38597
+ } | undefined;
37156
38598
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
37157
38599
  subagentWait?: boolean | undefined;
37158
38600
  subagentId?: string | null | undefined;
@@ -37172,7 +38614,6 @@ export declare const conversationSegmentSchema: z.ZodObject<{
37172
38614
  errorCode: string | null;
37173
38615
  title: string;
37174
38616
  toolName: string;
37175
- truncated: boolean;
37176
38617
  namespace: string;
37177
38618
  inputSummary: string | null;
37178
38619
  outputSummary: string | null;
@@ -37185,10 +38626,20 @@ export declare const conversationSegmentSchema: z.ZodObject<{
37185
38626
  imageIndex?: number | undefined;
37186
38627
  imageRef?: string | undefined;
37187
38628
  }[] | undefined;
38629
+ truncated?: boolean | undefined;
37188
38630
  output?: {
38631
+ blocks: {
38632
+ text: string;
38633
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
38634
+ }[];
38635
+ truncation?: "HEAD" | "SOURCE" | undefined;
38636
+ } | {
37189
38637
  text: string;
37190
38638
  truncated: boolean;
37191
38639
  } | undefined;
38640
+ errorMessage?: string | undefined;
38641
+ inputTruncated?: true | undefined;
38642
+ outputSummaryTruncated?: true | undefined;
37192
38643
  toolCategory?: "IMAGE_GENERATION" | undefined;
37193
38644
  toolPresentation?: {
37194
38645
  kind: "READ";
@@ -37222,6 +38673,16 @@ export declare const conversationSegmentSchema: z.ZodObject<{
37222
38673
  elapsedMs?: number | undefined;
37223
38674
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
37224
38675
  } | undefined;
38676
+ agentOperation?: {
38677
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
38678
+ targets: {
38679
+ agentId: string;
38680
+ sessionId?: string | undefined;
38681
+ title?: string | undefined;
38682
+ }[];
38683
+ scope?: string | undefined;
38684
+ targetsTruncated?: true | undefined;
38685
+ } | undefined;
37225
38686
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
37226
38687
  subagentWait?: boolean | undefined;
37227
38688
  subagentId?: string | null | undefined;
@@ -37245,7 +38706,6 @@ export declare const conversationSegmentSchema: z.ZodObject<{
37245
38706
  errorCode: string | null;
37246
38707
  title: string;
37247
38708
  toolName: string;
37248
- truncated: boolean;
37249
38709
  namespace: string;
37250
38710
  inputSummary: string | null;
37251
38711
  outputSummary: string | null;
@@ -37258,10 +38718,20 @@ export declare const conversationSegmentSchema: z.ZodObject<{
37258
38718
  imageIndex?: number | undefined;
37259
38719
  imageRef?: string | undefined;
37260
38720
  }[] | undefined;
38721
+ truncated?: boolean | undefined;
37261
38722
  output?: {
38723
+ blocks: {
38724
+ text: string;
38725
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
38726
+ }[];
38727
+ truncation?: "HEAD" | "SOURCE" | undefined;
38728
+ } | {
37262
38729
  text: string;
37263
38730
  truncated: boolean;
37264
38731
  } | undefined;
38732
+ errorMessage?: string | undefined;
38733
+ inputTruncated?: true | undefined;
38734
+ outputSummaryTruncated?: true | undefined;
37265
38735
  toolCategory?: "IMAGE_GENERATION" | undefined;
37266
38736
  toolPresentation?: {
37267
38737
  kind: "READ";
@@ -37295,6 +38765,16 @@ export declare const conversationSegmentSchema: z.ZodObject<{
37295
38765
  elapsedMs?: number | undefined;
37296
38766
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
37297
38767
  } | undefined;
38768
+ agentOperation?: {
38769
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
38770
+ targets: {
38771
+ agentId: string;
38772
+ sessionId?: string | undefined;
38773
+ title?: string | undefined;
38774
+ }[];
38775
+ scope?: string | undefined;
38776
+ targetsTruncated?: true | undefined;
38777
+ } | undefined;
37298
38778
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
37299
38779
  subagentWait?: boolean | undefined;
37300
38780
  subagentId?: string | null | undefined;
@@ -37344,7 +38824,6 @@ export declare const conversationSegmentSchema: z.ZodObject<{
37344
38824
  errorCode: string | null;
37345
38825
  title: string;
37346
38826
  toolName: string;
37347
- truncated: boolean;
37348
38827
  namespace: string;
37349
38828
  inputSummary: string | null;
37350
38829
  outputSummary: string | null;
@@ -37357,10 +38836,20 @@ export declare const conversationSegmentSchema: z.ZodObject<{
37357
38836
  imageIndex?: number | undefined;
37358
38837
  imageRef?: string | undefined;
37359
38838
  }[] | undefined;
38839
+ truncated?: boolean | undefined;
37360
38840
  output?: {
38841
+ blocks: {
38842
+ text: string;
38843
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
38844
+ }[];
38845
+ truncation?: "HEAD" | "SOURCE" | undefined;
38846
+ } | {
37361
38847
  text: string;
37362
38848
  truncated: boolean;
37363
38849
  } | undefined;
38850
+ errorMessage?: string | undefined;
38851
+ inputTruncated?: true | undefined;
38852
+ outputSummaryTruncated?: true | undefined;
37364
38853
  toolCategory?: "IMAGE_GENERATION" | undefined;
37365
38854
  toolPresentation?: {
37366
38855
  kind: "READ";
@@ -37394,6 +38883,16 @@ export declare const conversationSegmentSchema: z.ZodObject<{
37394
38883
  elapsedMs?: number | undefined;
37395
38884
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
37396
38885
  } | undefined;
38886
+ agentOperation?: {
38887
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
38888
+ targets: {
38889
+ agentId: string;
38890
+ sessionId?: string | undefined;
38891
+ title?: string | undefined;
38892
+ }[];
38893
+ scope?: string | undefined;
38894
+ targetsTruncated?: true | undefined;
38895
+ } | undefined;
37397
38896
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
37398
38897
  subagentWait?: boolean | undefined;
37399
38898
  subagentId?: string | null | undefined;
@@ -37509,11 +39008,55 @@ export declare const conversationSegmentSchema: z.ZodObject<{
37509
39008
  title: z.ZodOptional<z.ZodString>;
37510
39009
  command: z.ZodString;
37511
39010
  cwd: z.ZodNullable<z.ZodString>;
37512
- outputPreview: z.ZodString;
39011
+ outputPreview: z.ZodOptional<z.ZodString>;
39012
+ outputSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39013
+ outputSummaryTruncated: z.ZodOptional<z.ZodLiteral<true>>;
37513
39014
  exitCode: z.ZodNullable<z.ZodNumber>;
37514
39015
  durationMs: z.ZodNullable<z.ZodNumber>;
37515
- truncated: z.ZodBoolean;
37516
- output: z.ZodOptional<z.ZodObject<{
39016
+ truncated: z.ZodOptional<z.ZodBoolean>;
39017
+ output: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
39018
+ blocks: z.ZodEffects<z.ZodArray<z.ZodObject<{
39019
+ channel: z.ZodEnum<["STDOUT", "STDERR", "COMBINED", "TEXT"]>;
39020
+ text: z.ZodString;
39021
+ }, "strict", z.ZodTypeAny, {
39022
+ text: string;
39023
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
39024
+ }, {
39025
+ text: string;
39026
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
39027
+ }>, "many">, {
39028
+ text: string;
39029
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
39030
+ }[], {
39031
+ text: string;
39032
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
39033
+ }[]>;
39034
+ truncation: z.ZodOptional<z.ZodEnum<["HEAD", "SOURCE"]>>;
39035
+ }, "strict", z.ZodTypeAny, {
39036
+ blocks: {
39037
+ text: string;
39038
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
39039
+ }[];
39040
+ truncation?: "HEAD" | "SOURCE" | undefined;
39041
+ }, {
39042
+ blocks: {
39043
+ text: string;
39044
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
39045
+ }[];
39046
+ truncation?: "HEAD" | "SOURCE" | undefined;
39047
+ }>, {
39048
+ blocks: {
39049
+ text: string;
39050
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
39051
+ }[];
39052
+ truncation?: "HEAD" | "SOURCE" | undefined;
39053
+ }, {
39054
+ blocks: {
39055
+ text: string;
39056
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
39057
+ }[];
39058
+ truncation?: "HEAD" | "SOURCE" | undefined;
39059
+ }>, z.ZodObject<{
37517
39060
  text: z.ZodString;
37518
39061
  truncated: z.ZodBoolean;
37519
39062
  }, "strict", z.ZodTypeAny, {
@@ -37522,7 +39065,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
37522
39065
  }, {
37523
39066
  text: string;
37524
39067
  truncated: boolean;
37525
- }>>;
39068
+ }>]>>;
37526
39069
  toolPresentation: z.ZodOptional<z.ZodEffects<z.ZodObject<{
37527
39070
  kind: z.ZodLiteral<"EXECUTION">;
37528
39071
  execution: z.ZodObject<{
@@ -37737,16 +39280,23 @@ export declare const conversationSegmentSchema: z.ZodObject<{
37737
39280
  }, "strip", z.ZodTypeAny, {
37738
39281
  command: string;
37739
39282
  durationMs: number | null;
37740
- truncated: boolean;
37741
39283
  cwd: string | null;
37742
- outputPreview: string;
37743
39284
  exitCode: number | null;
37744
39285
  title?: string | undefined;
37745
39286
  toolName?: string | undefined;
39287
+ truncated?: boolean | undefined;
37746
39288
  output?: {
39289
+ blocks: {
39290
+ text: string;
39291
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
39292
+ }[];
39293
+ truncation?: "HEAD" | "SOURCE" | undefined;
39294
+ } | {
37747
39295
  text: string;
37748
39296
  truncated: boolean;
37749
39297
  } | undefined;
39298
+ outputSummary?: string | null | undefined;
39299
+ outputSummaryTruncated?: true | undefined;
37750
39300
  toolPresentation?: {
37751
39301
  kind: "EXECUTION";
37752
39302
  execution: {
@@ -37774,19 +39324,27 @@ export declare const conversationSegmentSchema: z.ZodObject<{
37774
39324
  } | undefined;
37775
39325
  };
37776
39326
  } | undefined;
39327
+ outputPreview?: string | undefined;
37777
39328
  }, {
37778
39329
  command: string;
37779
39330
  durationMs: number | null;
37780
- truncated: boolean;
37781
39331
  cwd: string | null;
37782
- outputPreview: string;
37783
39332
  exitCode: number | null;
37784
39333
  title?: string | undefined;
37785
39334
  toolName?: string | undefined;
39335
+ truncated?: boolean | undefined;
37786
39336
  output?: {
39337
+ blocks: {
39338
+ text: string;
39339
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
39340
+ }[];
39341
+ truncation?: "HEAD" | "SOURCE" | undefined;
39342
+ } | {
37787
39343
  text: string;
37788
39344
  truncated: boolean;
37789
39345
  } | undefined;
39346
+ outputSummary?: string | null | undefined;
39347
+ outputSummaryTruncated?: true | undefined;
37790
39348
  toolPresentation?: {
37791
39349
  kind: "EXECUTION";
37792
39350
  execution: {
@@ -37814,6 +39372,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
37814
39372
  } | undefined;
37815
39373
  };
37816
39374
  } | undefined;
39375
+ outputPreview?: string | undefined;
37817
39376
  }>;
37818
39377
  }, "strip", z.ZodTypeAny, {
37819
39378
  status: "PENDING" | "FAILED" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
@@ -37821,16 +39380,23 @@ export declare const conversationSegmentSchema: z.ZodObject<{
37821
39380
  payload: {
37822
39381
  command: string;
37823
39382
  durationMs: number | null;
37824
- truncated: boolean;
37825
39383
  cwd: string | null;
37826
- outputPreview: string;
37827
39384
  exitCode: number | null;
37828
39385
  title?: string | undefined;
37829
39386
  toolName?: string | undefined;
39387
+ truncated?: boolean | undefined;
37830
39388
  output?: {
39389
+ blocks: {
39390
+ text: string;
39391
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
39392
+ }[];
39393
+ truncation?: "HEAD" | "SOURCE" | undefined;
39394
+ } | {
37831
39395
  text: string;
37832
39396
  truncated: boolean;
37833
39397
  } | undefined;
39398
+ outputSummary?: string | null | undefined;
39399
+ outputSummaryTruncated?: true | undefined;
37834
39400
  toolPresentation?: {
37835
39401
  kind: "EXECUTION";
37836
39402
  execution: {
@@ -37858,6 +39424,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
37858
39424
  } | undefined;
37859
39425
  };
37860
39426
  } | undefined;
39427
+ outputPreview?: string | undefined;
37861
39428
  };
37862
39429
  kind: "command_execution";
37863
39430
  id: string;
@@ -37891,16 +39458,23 @@ export declare const conversationSegmentSchema: z.ZodObject<{
37891
39458
  payload: {
37892
39459
  command: string;
37893
39460
  durationMs: number | null;
37894
- truncated: boolean;
37895
39461
  cwd: string | null;
37896
- outputPreview: string;
37897
39462
  exitCode: number | null;
37898
39463
  title?: string | undefined;
37899
39464
  toolName?: string | undefined;
39465
+ truncated?: boolean | undefined;
37900
39466
  output?: {
39467
+ blocks: {
39468
+ text: string;
39469
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
39470
+ }[];
39471
+ truncation?: "HEAD" | "SOURCE" | undefined;
39472
+ } | {
37901
39473
  text: string;
37902
39474
  truncated: boolean;
37903
39475
  } | undefined;
39476
+ outputSummary?: string | null | undefined;
39477
+ outputSummaryTruncated?: true | undefined;
37904
39478
  toolPresentation?: {
37905
39479
  kind: "EXECUTION";
37906
39480
  execution: {
@@ -37928,6 +39502,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
37928
39502
  } | undefined;
37929
39503
  };
37930
39504
  } | undefined;
39505
+ outputPreview?: string | undefined;
37931
39506
  };
37932
39507
  kind: "command_execution";
37933
39508
  id: string;
@@ -39668,7 +41243,6 @@ export declare const conversationSegmentSchema: z.ZodObject<{
39668
41243
  errorCode: string | null;
39669
41244
  title: string;
39670
41245
  toolName: string;
39671
- truncated: boolean;
39672
41246
  namespace: string;
39673
41247
  inputSummary: string | null;
39674
41248
  outputSummary: string | null;
@@ -39681,10 +41255,20 @@ export declare const conversationSegmentSchema: z.ZodObject<{
39681
41255
  imageIndex?: number | undefined;
39682
41256
  imageRef?: string | undefined;
39683
41257
  }[] | undefined;
41258
+ truncated?: boolean | undefined;
39684
41259
  output?: {
41260
+ blocks: {
41261
+ text: string;
41262
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
41263
+ }[];
41264
+ truncation?: "HEAD" | "SOURCE" | undefined;
41265
+ } | {
39685
41266
  text: string;
39686
41267
  truncated: boolean;
39687
41268
  } | undefined;
41269
+ errorMessage?: string | undefined;
41270
+ inputTruncated?: true | undefined;
41271
+ outputSummaryTruncated?: true | undefined;
39688
41272
  toolCategory?: "IMAGE_GENERATION" | undefined;
39689
41273
  toolPresentation?: {
39690
41274
  kind: "READ";
@@ -39718,6 +41302,16 @@ export declare const conversationSegmentSchema: z.ZodObject<{
39718
41302
  elapsedMs?: number | undefined;
39719
41303
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
39720
41304
  } | undefined;
41305
+ agentOperation?: {
41306
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
41307
+ targets: {
41308
+ agentId: string;
41309
+ sessionId?: string | undefined;
41310
+ title?: string | undefined;
41311
+ }[];
41312
+ scope?: string | undefined;
41313
+ targetsTruncated?: true | undefined;
41314
+ } | undefined;
39721
41315
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
39722
41316
  subagentWait?: boolean | undefined;
39723
41317
  subagentId?: string | null | undefined;
@@ -39766,16 +41360,23 @@ export declare const conversationSegmentSchema: z.ZodObject<{
39766
41360
  payload: {
39767
41361
  command: string;
39768
41362
  durationMs: number | null;
39769
- truncated: boolean;
39770
41363
  cwd: string | null;
39771
- outputPreview: string;
39772
41364
  exitCode: number | null;
39773
41365
  title?: string | undefined;
39774
41366
  toolName?: string | undefined;
41367
+ truncated?: boolean | undefined;
39775
41368
  output?: {
41369
+ blocks: {
41370
+ text: string;
41371
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
41372
+ }[];
41373
+ truncation?: "HEAD" | "SOURCE" | undefined;
41374
+ } | {
39776
41375
  text: string;
39777
41376
  truncated: boolean;
39778
41377
  } | undefined;
41378
+ outputSummary?: string | null | undefined;
41379
+ outputSummaryTruncated?: true | undefined;
39779
41380
  toolPresentation?: {
39780
41381
  kind: "EXECUTION";
39781
41382
  execution: {
@@ -39803,6 +41404,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
39803
41404
  } | undefined;
39804
41405
  };
39805
41406
  } | undefined;
41407
+ outputPreview?: string | undefined;
39806
41408
  };
39807
41409
  kind: "command_execution";
39808
41410
  id: string;
@@ -40349,7 +41951,6 @@ export declare const conversationSegmentSchema: z.ZodObject<{
40349
41951
  errorCode: string | null;
40350
41952
  title: string;
40351
41953
  toolName: string;
40352
- truncated: boolean;
40353
41954
  namespace: string;
40354
41955
  inputSummary: string | null;
40355
41956
  outputSummary: string | null;
@@ -40362,10 +41963,20 @@ export declare const conversationSegmentSchema: z.ZodObject<{
40362
41963
  imageIndex?: number | undefined;
40363
41964
  imageRef?: string | undefined;
40364
41965
  }[] | undefined;
41966
+ truncated?: boolean | undefined;
40365
41967
  output?: {
41968
+ blocks: {
41969
+ text: string;
41970
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
41971
+ }[];
41972
+ truncation?: "HEAD" | "SOURCE" | undefined;
41973
+ } | {
40366
41974
  text: string;
40367
41975
  truncated: boolean;
40368
41976
  } | undefined;
41977
+ errorMessage?: string | undefined;
41978
+ inputTruncated?: true | undefined;
41979
+ outputSummaryTruncated?: true | undefined;
40369
41980
  toolCategory?: "IMAGE_GENERATION" | undefined;
40370
41981
  toolPresentation?: {
40371
41982
  kind: "READ";
@@ -40399,6 +42010,16 @@ export declare const conversationSegmentSchema: z.ZodObject<{
40399
42010
  elapsedMs?: number | undefined;
40400
42011
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
40401
42012
  } | undefined;
42013
+ agentOperation?: {
42014
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
42015
+ targets: {
42016
+ agentId: string;
42017
+ sessionId?: string | undefined;
42018
+ title?: string | undefined;
42019
+ }[];
42020
+ scope?: string | undefined;
42021
+ targetsTruncated?: true | undefined;
42022
+ } | undefined;
40402
42023
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
40403
42024
  subagentWait?: boolean | undefined;
40404
42025
  subagentId?: string | null | undefined;
@@ -40447,16 +42068,23 @@ export declare const conversationSegmentSchema: z.ZodObject<{
40447
42068
  payload: {
40448
42069
  command: string;
40449
42070
  durationMs: number | null;
40450
- truncated: boolean;
40451
42071
  cwd: string | null;
40452
- outputPreview: string;
40453
42072
  exitCode: number | null;
40454
42073
  title?: string | undefined;
40455
42074
  toolName?: string | undefined;
42075
+ truncated?: boolean | undefined;
40456
42076
  output?: {
42077
+ blocks: {
42078
+ text: string;
42079
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
42080
+ }[];
42081
+ truncation?: "HEAD" | "SOURCE" | undefined;
42082
+ } | {
40457
42083
  text: string;
40458
42084
  truncated: boolean;
40459
42085
  } | undefined;
42086
+ outputSummary?: string | null | undefined;
42087
+ outputSummaryTruncated?: true | undefined;
40460
42088
  toolPresentation?: {
40461
42089
  kind: "EXECUTION";
40462
42090
  execution: {
@@ -40484,6 +42112,7 @@ export declare const conversationSegmentSchema: z.ZodObject<{
40484
42112
  } | undefined;
40485
42113
  };
40486
42114
  } | undefined;
42115
+ outputPreview?: string | undefined;
40487
42116
  };
40488
42117
  kind: "command_execution";
40489
42118
  id: string;
@@ -41782,8 +43411,53 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
41782
43411
  outputSummary: z.ZodNullable<z.ZodString>;
41783
43412
  progressLabel: z.ZodNullable<z.ZodString>;
41784
43413
  errorCode: z.ZodNullable<z.ZodString>;
41785
- truncated: z.ZodBoolean;
41786
- output: z.ZodOptional<z.ZodObject<{
43414
+ errorMessage: z.ZodOptional<z.ZodString>;
43415
+ truncated: z.ZodOptional<z.ZodBoolean>;
43416
+ inputTruncated: z.ZodOptional<z.ZodLiteral<true>>;
43417
+ outputSummaryTruncated: z.ZodOptional<z.ZodLiteral<true>>;
43418
+ output: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
43419
+ blocks: z.ZodEffects<z.ZodArray<z.ZodObject<{
43420
+ channel: z.ZodEnum<["STDOUT", "STDERR", "COMBINED", "TEXT"]>;
43421
+ text: z.ZodString;
43422
+ }, "strict", z.ZodTypeAny, {
43423
+ text: string;
43424
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
43425
+ }, {
43426
+ text: string;
43427
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
43428
+ }>, "many">, {
43429
+ text: string;
43430
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
43431
+ }[], {
43432
+ text: string;
43433
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
43434
+ }[]>;
43435
+ truncation: z.ZodOptional<z.ZodEnum<["HEAD", "SOURCE"]>>;
43436
+ }, "strict", z.ZodTypeAny, {
43437
+ blocks: {
43438
+ text: string;
43439
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
43440
+ }[];
43441
+ truncation?: "HEAD" | "SOURCE" | undefined;
43442
+ }, {
43443
+ blocks: {
43444
+ text: string;
43445
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
43446
+ }[];
43447
+ truncation?: "HEAD" | "SOURCE" | undefined;
43448
+ }>, {
43449
+ blocks: {
43450
+ text: string;
43451
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
43452
+ }[];
43453
+ truncation?: "HEAD" | "SOURCE" | undefined;
43454
+ }, {
43455
+ blocks: {
43456
+ text: string;
43457
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
43458
+ }[];
43459
+ truncation?: "HEAD" | "SOURCE" | undefined;
43460
+ }>, z.ZodObject<{
41787
43461
  text: z.ZodString;
41788
43462
  truncated: z.ZodBoolean;
41789
43463
  }, "strict", z.ZodTypeAny, {
@@ -41792,7 +43466,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
41792
43466
  }, {
41793
43467
  text: string;
41794
43468
  truncated: boolean;
41795
- }>>;
43469
+ }>]>>;
41796
43470
  toolCategory: z.ZodOptional<z.ZodEnum<["IMAGE_GENERATION"]>>;
41797
43471
  toolPresentation: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
41798
43472
  kind: z.ZodLiteral<"READ">;
@@ -41896,6 +43570,42 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
41896
43570
  elapsedMs?: number | undefined;
41897
43571
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
41898
43572
  }>]>>;
43573
+ agentOperation: z.ZodOptional<z.ZodObject<{
43574
+ action: z.ZodEnum<["START", "SEND", "WAIT", "STOP", "LIST", "VIEW"]>;
43575
+ targets: z.ZodArray<z.ZodObject<{
43576
+ agentId: z.ZodString;
43577
+ sessionId: z.ZodOptional<z.ZodString>;
43578
+ title: z.ZodOptional<z.ZodString>;
43579
+ }, "strip", z.ZodTypeAny, {
43580
+ agentId: string;
43581
+ sessionId?: string | undefined;
43582
+ title?: string | undefined;
43583
+ }, {
43584
+ agentId: string;
43585
+ sessionId?: string | undefined;
43586
+ title?: string | undefined;
43587
+ }>, "many">;
43588
+ targetsTruncated: z.ZodOptional<z.ZodLiteral<true>>;
43589
+ scope: z.ZodOptional<z.ZodString>;
43590
+ }, "strip", z.ZodTypeAny, {
43591
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
43592
+ targets: {
43593
+ agentId: string;
43594
+ sessionId?: string | undefined;
43595
+ title?: string | undefined;
43596
+ }[];
43597
+ scope?: string | undefined;
43598
+ targetsTruncated?: true | undefined;
43599
+ }, {
43600
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
43601
+ targets: {
43602
+ agentId: string;
43603
+ sessionId?: string | undefined;
43604
+ title?: string | undefined;
43605
+ }[];
43606
+ scope?: string | undefined;
43607
+ targetsTruncated?: true | undefined;
43608
+ }>>;
41899
43609
  subagentOperation: z.ZodOptional<z.ZodEnum<["START", "STATUS", "CANCEL", "MESSAGE", "RESUME"]>>;
41900
43610
  subagentWait: z.ZodOptional<z.ZodBoolean>;
41901
43611
  subagentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -41965,7 +43675,6 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
41965
43675
  errorCode: string | null;
41966
43676
  title: string;
41967
43677
  toolName: string;
41968
- truncated: boolean;
41969
43678
  namespace: string;
41970
43679
  inputSummary: string | null;
41971
43680
  outputSummary: string | null;
@@ -41978,10 +43687,20 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
41978
43687
  imageIndex?: number | undefined;
41979
43688
  imageRef?: string | undefined;
41980
43689
  }[] | undefined;
43690
+ truncated?: boolean | undefined;
41981
43691
  output?: {
43692
+ blocks: {
43693
+ text: string;
43694
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
43695
+ }[];
43696
+ truncation?: "HEAD" | "SOURCE" | undefined;
43697
+ } | {
41982
43698
  text: string;
41983
43699
  truncated: boolean;
41984
43700
  } | undefined;
43701
+ errorMessage?: string | undefined;
43702
+ inputTruncated?: true | undefined;
43703
+ outputSummaryTruncated?: true | undefined;
41985
43704
  toolCategory?: "IMAGE_GENERATION" | undefined;
41986
43705
  toolPresentation?: {
41987
43706
  kind: "READ";
@@ -42015,6 +43734,16 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
42015
43734
  elapsedMs?: number | undefined;
42016
43735
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
42017
43736
  } | undefined;
43737
+ agentOperation?: {
43738
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
43739
+ targets: {
43740
+ agentId: string;
43741
+ sessionId?: string | undefined;
43742
+ title?: string | undefined;
43743
+ }[];
43744
+ scope?: string | undefined;
43745
+ targetsTruncated?: true | undefined;
43746
+ } | undefined;
42018
43747
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
42019
43748
  subagentWait?: boolean | undefined;
42020
43749
  subagentId?: string | null | undefined;
@@ -42034,7 +43763,6 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
42034
43763
  errorCode: string | null;
42035
43764
  title: string;
42036
43765
  toolName: string;
42037
- truncated: boolean;
42038
43766
  namespace: string;
42039
43767
  inputSummary: string | null;
42040
43768
  outputSummary: string | null;
@@ -42047,10 +43775,20 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
42047
43775
  imageIndex?: number | undefined;
42048
43776
  imageRef?: string | undefined;
42049
43777
  }[] | undefined;
43778
+ truncated?: boolean | undefined;
42050
43779
  output?: {
43780
+ blocks: {
43781
+ text: string;
43782
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
43783
+ }[];
43784
+ truncation?: "HEAD" | "SOURCE" | undefined;
43785
+ } | {
42051
43786
  text: string;
42052
43787
  truncated: boolean;
42053
43788
  } | undefined;
43789
+ errorMessage?: string | undefined;
43790
+ inputTruncated?: true | undefined;
43791
+ outputSummaryTruncated?: true | undefined;
42054
43792
  toolCategory?: "IMAGE_GENERATION" | undefined;
42055
43793
  toolPresentation?: {
42056
43794
  kind: "READ";
@@ -42084,6 +43822,16 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
42084
43822
  elapsedMs?: number | undefined;
42085
43823
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
42086
43824
  } | undefined;
43825
+ agentOperation?: {
43826
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
43827
+ targets: {
43828
+ agentId: string;
43829
+ sessionId?: string | undefined;
43830
+ title?: string | undefined;
43831
+ }[];
43832
+ scope?: string | undefined;
43833
+ targetsTruncated?: true | undefined;
43834
+ } | undefined;
42087
43835
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
42088
43836
  subagentWait?: boolean | undefined;
42089
43837
  subagentId?: string | null | undefined;
@@ -42107,7 +43855,6 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
42107
43855
  errorCode: string | null;
42108
43856
  title: string;
42109
43857
  toolName: string;
42110
- truncated: boolean;
42111
43858
  namespace: string;
42112
43859
  inputSummary: string | null;
42113
43860
  outputSummary: string | null;
@@ -42120,10 +43867,20 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
42120
43867
  imageIndex?: number | undefined;
42121
43868
  imageRef?: string | undefined;
42122
43869
  }[] | undefined;
43870
+ truncated?: boolean | undefined;
42123
43871
  output?: {
43872
+ blocks: {
43873
+ text: string;
43874
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
43875
+ }[];
43876
+ truncation?: "HEAD" | "SOURCE" | undefined;
43877
+ } | {
42124
43878
  text: string;
42125
43879
  truncated: boolean;
42126
43880
  } | undefined;
43881
+ errorMessage?: string | undefined;
43882
+ inputTruncated?: true | undefined;
43883
+ outputSummaryTruncated?: true | undefined;
42127
43884
  toolCategory?: "IMAGE_GENERATION" | undefined;
42128
43885
  toolPresentation?: {
42129
43886
  kind: "READ";
@@ -42157,6 +43914,16 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
42157
43914
  elapsedMs?: number | undefined;
42158
43915
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
42159
43916
  } | undefined;
43917
+ agentOperation?: {
43918
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
43919
+ targets: {
43920
+ agentId: string;
43921
+ sessionId?: string | undefined;
43922
+ title?: string | undefined;
43923
+ }[];
43924
+ scope?: string | undefined;
43925
+ targetsTruncated?: true | undefined;
43926
+ } | undefined;
42160
43927
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
42161
43928
  subagentWait?: boolean | undefined;
42162
43929
  subagentId?: string | null | undefined;
@@ -42206,7 +43973,6 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
42206
43973
  errorCode: string | null;
42207
43974
  title: string;
42208
43975
  toolName: string;
42209
- truncated: boolean;
42210
43976
  namespace: string;
42211
43977
  inputSummary: string | null;
42212
43978
  outputSummary: string | null;
@@ -42219,10 +43985,20 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
42219
43985
  imageIndex?: number | undefined;
42220
43986
  imageRef?: string | undefined;
42221
43987
  }[] | undefined;
43988
+ truncated?: boolean | undefined;
42222
43989
  output?: {
43990
+ blocks: {
43991
+ text: string;
43992
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
43993
+ }[];
43994
+ truncation?: "HEAD" | "SOURCE" | undefined;
43995
+ } | {
42223
43996
  text: string;
42224
43997
  truncated: boolean;
42225
43998
  } | undefined;
43999
+ errorMessage?: string | undefined;
44000
+ inputTruncated?: true | undefined;
44001
+ outputSummaryTruncated?: true | undefined;
42226
44002
  toolCategory?: "IMAGE_GENERATION" | undefined;
42227
44003
  toolPresentation?: {
42228
44004
  kind: "READ";
@@ -42256,6 +44032,16 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
42256
44032
  elapsedMs?: number | undefined;
42257
44033
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
42258
44034
  } | undefined;
44035
+ agentOperation?: {
44036
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
44037
+ targets: {
44038
+ agentId: string;
44039
+ sessionId?: string | undefined;
44040
+ title?: string | undefined;
44041
+ }[];
44042
+ scope?: string | undefined;
44043
+ targetsTruncated?: true | undefined;
44044
+ } | undefined;
42259
44045
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
42260
44046
  subagentWait?: boolean | undefined;
42261
44047
  subagentId?: string | null | undefined;
@@ -42371,11 +44157,55 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
42371
44157
  title: z.ZodOptional<z.ZodString>;
42372
44158
  command: z.ZodString;
42373
44159
  cwd: z.ZodNullable<z.ZodString>;
42374
- outputPreview: z.ZodString;
44160
+ outputPreview: z.ZodOptional<z.ZodString>;
44161
+ outputSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44162
+ outputSummaryTruncated: z.ZodOptional<z.ZodLiteral<true>>;
42375
44163
  exitCode: z.ZodNullable<z.ZodNumber>;
42376
44164
  durationMs: z.ZodNullable<z.ZodNumber>;
42377
- truncated: z.ZodBoolean;
42378
- output: z.ZodOptional<z.ZodObject<{
44165
+ truncated: z.ZodOptional<z.ZodBoolean>;
44166
+ output: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
44167
+ blocks: z.ZodEffects<z.ZodArray<z.ZodObject<{
44168
+ channel: z.ZodEnum<["STDOUT", "STDERR", "COMBINED", "TEXT"]>;
44169
+ text: z.ZodString;
44170
+ }, "strict", z.ZodTypeAny, {
44171
+ text: string;
44172
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
44173
+ }, {
44174
+ text: string;
44175
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
44176
+ }>, "many">, {
44177
+ text: string;
44178
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
44179
+ }[], {
44180
+ text: string;
44181
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
44182
+ }[]>;
44183
+ truncation: z.ZodOptional<z.ZodEnum<["HEAD", "SOURCE"]>>;
44184
+ }, "strict", z.ZodTypeAny, {
44185
+ blocks: {
44186
+ text: string;
44187
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
44188
+ }[];
44189
+ truncation?: "HEAD" | "SOURCE" | undefined;
44190
+ }, {
44191
+ blocks: {
44192
+ text: string;
44193
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
44194
+ }[];
44195
+ truncation?: "HEAD" | "SOURCE" | undefined;
44196
+ }>, {
44197
+ blocks: {
44198
+ text: string;
44199
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
44200
+ }[];
44201
+ truncation?: "HEAD" | "SOURCE" | undefined;
44202
+ }, {
44203
+ blocks: {
44204
+ text: string;
44205
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
44206
+ }[];
44207
+ truncation?: "HEAD" | "SOURCE" | undefined;
44208
+ }>, z.ZodObject<{
42379
44209
  text: z.ZodString;
42380
44210
  truncated: z.ZodBoolean;
42381
44211
  }, "strict", z.ZodTypeAny, {
@@ -42384,7 +44214,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
42384
44214
  }, {
42385
44215
  text: string;
42386
44216
  truncated: boolean;
42387
- }>>;
44217
+ }>]>>;
42388
44218
  toolPresentation: z.ZodOptional<z.ZodEffects<z.ZodObject<{
42389
44219
  kind: z.ZodLiteral<"EXECUTION">;
42390
44220
  execution: z.ZodObject<{
@@ -42599,16 +44429,23 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
42599
44429
  }, "strip", z.ZodTypeAny, {
42600
44430
  command: string;
42601
44431
  durationMs: number | null;
42602
- truncated: boolean;
42603
44432
  cwd: string | null;
42604
- outputPreview: string;
42605
44433
  exitCode: number | null;
42606
44434
  title?: string | undefined;
42607
44435
  toolName?: string | undefined;
44436
+ truncated?: boolean | undefined;
42608
44437
  output?: {
44438
+ blocks: {
44439
+ text: string;
44440
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
44441
+ }[];
44442
+ truncation?: "HEAD" | "SOURCE" | undefined;
44443
+ } | {
42609
44444
  text: string;
42610
44445
  truncated: boolean;
42611
44446
  } | undefined;
44447
+ outputSummary?: string | null | undefined;
44448
+ outputSummaryTruncated?: true | undefined;
42612
44449
  toolPresentation?: {
42613
44450
  kind: "EXECUTION";
42614
44451
  execution: {
@@ -42636,19 +44473,27 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
42636
44473
  } | undefined;
42637
44474
  };
42638
44475
  } | undefined;
44476
+ outputPreview?: string | undefined;
42639
44477
  }, {
42640
44478
  command: string;
42641
44479
  durationMs: number | null;
42642
- truncated: boolean;
42643
44480
  cwd: string | null;
42644
- outputPreview: string;
42645
44481
  exitCode: number | null;
42646
44482
  title?: string | undefined;
42647
44483
  toolName?: string | undefined;
44484
+ truncated?: boolean | undefined;
42648
44485
  output?: {
44486
+ blocks: {
44487
+ text: string;
44488
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
44489
+ }[];
44490
+ truncation?: "HEAD" | "SOURCE" | undefined;
44491
+ } | {
42649
44492
  text: string;
42650
44493
  truncated: boolean;
42651
44494
  } | undefined;
44495
+ outputSummary?: string | null | undefined;
44496
+ outputSummaryTruncated?: true | undefined;
42652
44497
  toolPresentation?: {
42653
44498
  kind: "EXECUTION";
42654
44499
  execution: {
@@ -42676,6 +44521,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
42676
44521
  } | undefined;
42677
44522
  };
42678
44523
  } | undefined;
44524
+ outputPreview?: string | undefined;
42679
44525
  }>;
42680
44526
  }, "strip", z.ZodTypeAny, {
42681
44527
  status: "PENDING" | "FAILED" | "CANCELLED" | "INTERRUPTED" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
@@ -42683,16 +44529,23 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
42683
44529
  payload: {
42684
44530
  command: string;
42685
44531
  durationMs: number | null;
42686
- truncated: boolean;
42687
44532
  cwd: string | null;
42688
- outputPreview: string;
42689
44533
  exitCode: number | null;
42690
44534
  title?: string | undefined;
42691
44535
  toolName?: string | undefined;
44536
+ truncated?: boolean | undefined;
42692
44537
  output?: {
44538
+ blocks: {
44539
+ text: string;
44540
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
44541
+ }[];
44542
+ truncation?: "HEAD" | "SOURCE" | undefined;
44543
+ } | {
42693
44544
  text: string;
42694
44545
  truncated: boolean;
42695
44546
  } | undefined;
44547
+ outputSummary?: string | null | undefined;
44548
+ outputSummaryTruncated?: true | undefined;
42696
44549
  toolPresentation?: {
42697
44550
  kind: "EXECUTION";
42698
44551
  execution: {
@@ -42720,6 +44573,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
42720
44573
  } | undefined;
42721
44574
  };
42722
44575
  } | undefined;
44576
+ outputPreview?: string | undefined;
42723
44577
  };
42724
44578
  kind: "command_execution";
42725
44579
  id: string;
@@ -42753,16 +44607,23 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
42753
44607
  payload: {
42754
44608
  command: string;
42755
44609
  durationMs: number | null;
42756
- truncated: boolean;
42757
44610
  cwd: string | null;
42758
- outputPreview: string;
42759
44611
  exitCode: number | null;
42760
44612
  title?: string | undefined;
42761
44613
  toolName?: string | undefined;
44614
+ truncated?: boolean | undefined;
42762
44615
  output?: {
44616
+ blocks: {
44617
+ text: string;
44618
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
44619
+ }[];
44620
+ truncation?: "HEAD" | "SOURCE" | undefined;
44621
+ } | {
42763
44622
  text: string;
42764
44623
  truncated: boolean;
42765
44624
  } | undefined;
44625
+ outputSummary?: string | null | undefined;
44626
+ outputSummaryTruncated?: true | undefined;
42766
44627
  toolPresentation?: {
42767
44628
  kind: "EXECUTION";
42768
44629
  execution: {
@@ -42790,6 +44651,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
42790
44651
  } | undefined;
42791
44652
  };
42792
44653
  } | undefined;
44654
+ outputPreview?: string | undefined;
42793
44655
  };
42794
44656
  kind: "command_execution";
42795
44657
  id: string;
@@ -44530,7 +46392,6 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
44530
46392
  errorCode: string | null;
44531
46393
  title: string;
44532
46394
  toolName: string;
44533
- truncated: boolean;
44534
46395
  namespace: string;
44535
46396
  inputSummary: string | null;
44536
46397
  outputSummary: string | null;
@@ -44543,10 +46404,20 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
44543
46404
  imageIndex?: number | undefined;
44544
46405
  imageRef?: string | undefined;
44545
46406
  }[] | undefined;
46407
+ truncated?: boolean | undefined;
44546
46408
  output?: {
46409
+ blocks: {
46410
+ text: string;
46411
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
46412
+ }[];
46413
+ truncation?: "HEAD" | "SOURCE" | undefined;
46414
+ } | {
44547
46415
  text: string;
44548
46416
  truncated: boolean;
44549
46417
  } | undefined;
46418
+ errorMessage?: string | undefined;
46419
+ inputTruncated?: true | undefined;
46420
+ outputSummaryTruncated?: true | undefined;
44550
46421
  toolCategory?: "IMAGE_GENERATION" | undefined;
44551
46422
  toolPresentation?: {
44552
46423
  kind: "READ";
@@ -44580,6 +46451,16 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
44580
46451
  elapsedMs?: number | undefined;
44581
46452
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
44582
46453
  } | undefined;
46454
+ agentOperation?: {
46455
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
46456
+ targets: {
46457
+ agentId: string;
46458
+ sessionId?: string | undefined;
46459
+ title?: string | undefined;
46460
+ }[];
46461
+ scope?: string | undefined;
46462
+ targetsTruncated?: true | undefined;
46463
+ } | undefined;
44583
46464
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
44584
46465
  subagentWait?: boolean | undefined;
44585
46466
  subagentId?: string | null | undefined;
@@ -44628,16 +46509,23 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
44628
46509
  payload: {
44629
46510
  command: string;
44630
46511
  durationMs: number | null;
44631
- truncated: boolean;
44632
46512
  cwd: string | null;
44633
- outputPreview: string;
44634
46513
  exitCode: number | null;
44635
46514
  title?: string | undefined;
44636
46515
  toolName?: string | undefined;
46516
+ truncated?: boolean | undefined;
44637
46517
  output?: {
46518
+ blocks: {
46519
+ text: string;
46520
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
46521
+ }[];
46522
+ truncation?: "HEAD" | "SOURCE" | undefined;
46523
+ } | {
44638
46524
  text: string;
44639
46525
  truncated: boolean;
44640
46526
  } | undefined;
46527
+ outputSummary?: string | null | undefined;
46528
+ outputSummaryTruncated?: true | undefined;
44641
46529
  toolPresentation?: {
44642
46530
  kind: "EXECUTION";
44643
46531
  execution: {
@@ -44665,6 +46553,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
44665
46553
  } | undefined;
44666
46554
  };
44667
46555
  } | undefined;
46556
+ outputPreview?: string | undefined;
44668
46557
  };
44669
46558
  kind: "command_execution";
44670
46559
  id: string;
@@ -45211,7 +47100,6 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
45211
47100
  errorCode: string | null;
45212
47101
  title: string;
45213
47102
  toolName: string;
45214
- truncated: boolean;
45215
47103
  namespace: string;
45216
47104
  inputSummary: string | null;
45217
47105
  outputSummary: string | null;
@@ -45224,10 +47112,20 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
45224
47112
  imageIndex?: number | undefined;
45225
47113
  imageRef?: string | undefined;
45226
47114
  }[] | undefined;
47115
+ truncated?: boolean | undefined;
45227
47116
  output?: {
47117
+ blocks: {
47118
+ text: string;
47119
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
47120
+ }[];
47121
+ truncation?: "HEAD" | "SOURCE" | undefined;
47122
+ } | {
45228
47123
  text: string;
45229
47124
  truncated: boolean;
45230
47125
  } | undefined;
47126
+ errorMessage?: string | undefined;
47127
+ inputTruncated?: true | undefined;
47128
+ outputSummaryTruncated?: true | undefined;
45231
47129
  toolCategory?: "IMAGE_GENERATION" | undefined;
45232
47130
  toolPresentation?: {
45233
47131
  kind: "READ";
@@ -45261,6 +47159,16 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
45261
47159
  elapsedMs?: number | undefined;
45262
47160
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
45263
47161
  } | undefined;
47162
+ agentOperation?: {
47163
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
47164
+ targets: {
47165
+ agentId: string;
47166
+ sessionId?: string | undefined;
47167
+ title?: string | undefined;
47168
+ }[];
47169
+ scope?: string | undefined;
47170
+ targetsTruncated?: true | undefined;
47171
+ } | undefined;
45264
47172
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
45265
47173
  subagentWait?: boolean | undefined;
45266
47174
  subagentId?: string | null | undefined;
@@ -45309,16 +47217,23 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
45309
47217
  payload: {
45310
47218
  command: string;
45311
47219
  durationMs: number | null;
45312
- truncated: boolean;
45313
47220
  cwd: string | null;
45314
- outputPreview: string;
45315
47221
  exitCode: number | null;
45316
47222
  title?: string | undefined;
45317
47223
  toolName?: string | undefined;
47224
+ truncated?: boolean | undefined;
45318
47225
  output?: {
47226
+ blocks: {
47227
+ text: string;
47228
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
47229
+ }[];
47230
+ truncation?: "HEAD" | "SOURCE" | undefined;
47231
+ } | {
45319
47232
  text: string;
45320
47233
  truncated: boolean;
45321
47234
  } | undefined;
47235
+ outputSummary?: string | null | undefined;
47236
+ outputSummaryTruncated?: true | undefined;
45322
47237
  toolPresentation?: {
45323
47238
  kind: "EXECUTION";
45324
47239
  execution: {
@@ -45346,6 +47261,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
45346
47261
  } | undefined;
45347
47262
  };
45348
47263
  } | undefined;
47264
+ outputPreview?: string | undefined;
45349
47265
  };
45350
47266
  kind: "command_execution";
45351
47267
  id: string;
@@ -45904,7 +47820,6 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
45904
47820
  errorCode: string | null;
45905
47821
  title: string;
45906
47822
  toolName: string;
45907
- truncated: boolean;
45908
47823
  namespace: string;
45909
47824
  inputSummary: string | null;
45910
47825
  outputSummary: string | null;
@@ -45917,10 +47832,20 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
45917
47832
  imageIndex?: number | undefined;
45918
47833
  imageRef?: string | undefined;
45919
47834
  }[] | undefined;
47835
+ truncated?: boolean | undefined;
45920
47836
  output?: {
47837
+ blocks: {
47838
+ text: string;
47839
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
47840
+ }[];
47841
+ truncation?: "HEAD" | "SOURCE" | undefined;
47842
+ } | {
45921
47843
  text: string;
45922
47844
  truncated: boolean;
45923
47845
  } | undefined;
47846
+ errorMessage?: string | undefined;
47847
+ inputTruncated?: true | undefined;
47848
+ outputSummaryTruncated?: true | undefined;
45924
47849
  toolCategory?: "IMAGE_GENERATION" | undefined;
45925
47850
  toolPresentation?: {
45926
47851
  kind: "READ";
@@ -45954,6 +47879,16 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
45954
47879
  elapsedMs?: number | undefined;
45955
47880
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
45956
47881
  } | undefined;
47882
+ agentOperation?: {
47883
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
47884
+ targets: {
47885
+ agentId: string;
47886
+ sessionId?: string | undefined;
47887
+ title?: string | undefined;
47888
+ }[];
47889
+ scope?: string | undefined;
47890
+ targetsTruncated?: true | undefined;
47891
+ } | undefined;
45957
47892
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
45958
47893
  subagentWait?: boolean | undefined;
45959
47894
  subagentId?: string | null | undefined;
@@ -46002,16 +47937,23 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
46002
47937
  payload: {
46003
47938
  command: string;
46004
47939
  durationMs: number | null;
46005
- truncated: boolean;
46006
47940
  cwd: string | null;
46007
- outputPreview: string;
46008
47941
  exitCode: number | null;
46009
47942
  title?: string | undefined;
46010
47943
  toolName?: string | undefined;
47944
+ truncated?: boolean | undefined;
46011
47945
  output?: {
47946
+ blocks: {
47947
+ text: string;
47948
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
47949
+ }[];
47950
+ truncation?: "HEAD" | "SOURCE" | undefined;
47951
+ } | {
46012
47952
  text: string;
46013
47953
  truncated: boolean;
46014
47954
  } | undefined;
47955
+ outputSummary?: string | null | undefined;
47956
+ outputSummaryTruncated?: true | undefined;
46015
47957
  toolPresentation?: {
46016
47958
  kind: "EXECUTION";
46017
47959
  execution: {
@@ -46039,6 +47981,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
46039
47981
  } | undefined;
46040
47982
  };
46041
47983
  } | undefined;
47984
+ outputPreview?: string | undefined;
46042
47985
  };
46043
47986
  kind: "command_execution";
46044
47987
  id: string;
@@ -46594,7 +48537,6 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
46594
48537
  errorCode: string | null;
46595
48538
  title: string;
46596
48539
  toolName: string;
46597
- truncated: boolean;
46598
48540
  namespace: string;
46599
48541
  inputSummary: string | null;
46600
48542
  outputSummary: string | null;
@@ -46607,10 +48549,20 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
46607
48549
  imageIndex?: number | undefined;
46608
48550
  imageRef?: string | undefined;
46609
48551
  }[] | undefined;
48552
+ truncated?: boolean | undefined;
46610
48553
  output?: {
48554
+ blocks: {
48555
+ text: string;
48556
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
48557
+ }[];
48558
+ truncation?: "HEAD" | "SOURCE" | undefined;
48559
+ } | {
46611
48560
  text: string;
46612
48561
  truncated: boolean;
46613
48562
  } | undefined;
48563
+ errorMessage?: string | undefined;
48564
+ inputTruncated?: true | undefined;
48565
+ outputSummaryTruncated?: true | undefined;
46614
48566
  toolCategory?: "IMAGE_GENERATION" | undefined;
46615
48567
  toolPresentation?: {
46616
48568
  kind: "READ";
@@ -46644,6 +48596,16 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
46644
48596
  elapsedMs?: number | undefined;
46645
48597
  wakeReason?: "elapsed" | "steer" | "subagent_message" | undefined;
46646
48598
  } | undefined;
48599
+ agentOperation?: {
48600
+ action: "SEND" | "START" | "WAIT" | "STOP" | "LIST" | "VIEW";
48601
+ targets: {
48602
+ agentId: string;
48603
+ sessionId?: string | undefined;
48604
+ title?: string | undefined;
48605
+ }[];
48606
+ scope?: string | undefined;
48607
+ targetsTruncated?: true | undefined;
48608
+ } | undefined;
46647
48609
  subagentOperation?: "MESSAGE" | "START" | "STATUS" | "CANCEL" | "RESUME" | undefined;
46648
48610
  subagentWait?: boolean | undefined;
46649
48611
  subagentId?: string | null | undefined;
@@ -46692,16 +48654,23 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
46692
48654
  payload: {
46693
48655
  command: string;
46694
48656
  durationMs: number | null;
46695
- truncated: boolean;
46696
48657
  cwd: string | null;
46697
- outputPreview: string;
46698
48658
  exitCode: number | null;
46699
48659
  title?: string | undefined;
46700
48660
  toolName?: string | undefined;
48661
+ truncated?: boolean | undefined;
46701
48662
  output?: {
48663
+ blocks: {
48664
+ text: string;
48665
+ channel: "TEXT" | "STDOUT" | "STDERR" | "COMBINED";
48666
+ }[];
48667
+ truncation?: "HEAD" | "SOURCE" | undefined;
48668
+ } | {
46702
48669
  text: string;
46703
48670
  truncated: boolean;
46704
48671
  } | undefined;
48672
+ outputSummary?: string | null | undefined;
48673
+ outputSummaryTruncated?: true | undefined;
46705
48674
  toolPresentation?: {
46706
48675
  kind: "EXECUTION";
46707
48676
  execution: {
@@ -46729,6 +48698,7 @@ export declare const conversationSegmentPageSchema: z.ZodObject<{
46729
48698
  } | undefined;
46730
48699
  };
46731
48700
  } | undefined;
48701
+ outputPreview?: string | undefined;
46732
48702
  };
46733
48703
  kind: "command_execution";
46734
48704
  id: string;
@@ -47507,15 +49477,15 @@ export declare const workspaceSymbolDefinitionSchema: z.ZodObject<{
47507
49477
  column: number;
47508
49478
  }[];
47509
49479
  state: "FAILED" | "READY" | "UNAVAILABLE" | "BUILDING" | "STALE";
47510
- truncated: boolean;
47511
- paths: {
49480
+ targets: {
47512
49481
  path: string;
47513
49482
  line: number;
47514
49483
  scope?: string | undefined;
47515
49484
  kind?: string | undefined;
47516
49485
  preview?: string | undefined;
47517
49486
  }[];
47518
- targets: {
49487
+ truncated: boolean;
49488
+ paths: {
47519
49489
  path: string;
47520
49490
  line: number;
47521
49491
  scope?: string | undefined;
@@ -47526,7 +49496,6 @@ export declare const workspaceSymbolDefinitionSchema: z.ZodObject<{
47526
49496
  failureCode?: "SYMBOL_INDEX_BUILD_FAILED" | "SYMBOL_INDEX_LIMIT_EXCEEDED" | undefined;
47527
49497
  }, {
47528
49498
  state: "FAILED" | "READY" | "UNAVAILABLE" | "BUILDING" | "STALE";
47529
- truncated: boolean;
47530
49499
  targets: {
47531
49500
  path: string;
47532
49501
  line: number;
@@ -47534,6 +49503,7 @@ export declare const workspaceSymbolDefinitionSchema: z.ZodObject<{
47534
49503
  kind?: string | undefined;
47535
49504
  preview?: string | undefined;
47536
49505
  }[];
49506
+ truncated: boolean;
47537
49507
  references?: {
47538
49508
  path: string;
47539
49509
  preview: string;
@@ -48343,7 +50313,7 @@ export declare const gitHistoryFileSchema: z.ZodObject<{
48343
50313
  previousPath?: string | undefined;
48344
50314
  }>;
48345
50315
  export type GitHistoryFile = z.infer<typeof gitHistoryFileSchema>;
48346
- export declare const workbenchNodeOperationSchema: z.ZodEnum<["agent.network", "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.schedule.get", "session.schedule.list", "session.schedule.agent.save", "session.cli.context", "session.graph", "session.goal.get", "session.schedule.save", "session.schedule.remove", "session.schedule.proposal.resolve", "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.tool-resource.read", "session.command.execute", "runner.command.execute", "runner.profiles.list", "runner.defaults.save", "mar-agent.model.test", "prompt-completion.context", "prompt-completion.generate", "prompt-completion.cancel", "workspace.files.list", "workspace.file.read", "workspace.file.write", "workspace.file.content.read", "workspace.file.direct.metadata", "workspace.files.search", "workspace.files.mutate", "workspace.files.reveal", "workspace.content.search", "workspace.symbol.prepare", "workspace.symbol.definition", "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", "model.resource.read", "terminal.open", "terminal.command.open", "terminal.list", "terminal.close", "terminal.attach.authorize", "terminal.direct.preflight", "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", "computer.use.enable", "computer.use.disable", "conversation.hosted.list", "conversation.hosted.model-options", "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.template.switch", "conversation.hosted.metadata.update", "conversation.hosted.image.read", "conversation.hosted.tool-resource.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"]>;
50316
+ export declare const workbenchNodeOperationSchema: z.ZodEnum<["agent.network", "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.schedule.get", "session.schedule.list", "session.schedule.agent.save", "session.cli.context", "session.graph", "session.goal.get", "session.schedule.save", "session.schedule.remove", "session.schedule.proposal.resolve", "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.tool-resource.read", "session.command.execute", "runner.command.execute", "runner.profiles.list", "runner.defaults.save", "mar-agent.model.test", "prompt-completion.context", "prompt-completion.generate", "prompt-completion.cancel", "workspace.files.list", "workspace.file.read", "workspace.file.write", "workspace.file.content.read", "workspace.file.direct.metadata", "workspace.files.search", "workspace.files.mutate", "workspace.files.reveal", "workspace.content.search", "workspace.symbol.prepare", "workspace.symbol.definition", "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.fetch", "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", "model.resource.read", "terminal.open", "terminal.command.open", "terminal.list", "terminal.close", "terminal.attach.authorize", "terminal.direct.preflight", "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", "computer.use.enable", "computer.use.disable", "conversation.hosted.list", "conversation.hosted.model-options", "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.template.switch", "conversation.hosted.metadata.update", "conversation.hosted.image.read", "conversation.hosted.tool-resource.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"]>;
48347
50317
  export type WorkbenchNodeOperation = z.infer<typeof workbenchNodeOperationSchema>;
48348
50318
  /**
48349
50319
  * A small, explicit envelope keeps WebSocket messages independently parseable