@linkshell/gateway 0.2.46 → 0.2.47

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.
@@ -387,23 +387,35 @@ export declare const terminalMkdirPayloadSchema: z.ZodObject<{
387
387
  }>;
388
388
  export declare const terminalBrowsePayloadSchema: z.ZodObject<{
389
389
  path: z.ZodString;
390
+ includeFiles: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
391
+ requestId: z.ZodOptional<z.ZodString>;
390
392
  }, "strip", z.ZodTypeAny, {
391
393
  path: string;
394
+ includeFiles: boolean;
395
+ requestId?: string | undefined;
392
396
  }, {
393
397
  path: string;
398
+ requestId?: string | undefined;
399
+ includeFiles?: boolean | undefined;
394
400
  }>;
395
401
  export declare const terminalBrowseEntrySchema: z.ZodObject<{
396
402
  name: z.ZodString;
397
403
  path: z.ZodString;
398
404
  isDirectory: z.ZodBoolean;
405
+ size: z.ZodOptional<z.ZodNumber>;
406
+ modifiedAt: z.ZodOptional<z.ZodString>;
399
407
  }, "strip", z.ZodTypeAny, {
400
408
  path: string;
401
409
  name: string;
402
410
  isDirectory: boolean;
411
+ size?: number | undefined;
412
+ modifiedAt?: string | undefined;
403
413
  }, {
404
414
  path: string;
405
415
  name: string;
406
416
  isDirectory: boolean;
417
+ size?: number | undefined;
418
+ modifiedAt?: string | undefined;
407
419
  }>;
408
420
  export declare const terminalBrowseResultPayloadSchema: z.ZodObject<{
409
421
  path: z.ZodString;
@@ -411,23 +423,33 @@ export declare const terminalBrowseResultPayloadSchema: z.ZodObject<{
411
423
  name: z.ZodString;
412
424
  path: z.ZodString;
413
425
  isDirectory: z.ZodBoolean;
426
+ size: z.ZodOptional<z.ZodNumber>;
427
+ modifiedAt: z.ZodOptional<z.ZodString>;
414
428
  }, "strip", z.ZodTypeAny, {
415
429
  path: string;
416
430
  name: string;
417
431
  isDirectory: boolean;
432
+ size?: number | undefined;
433
+ modifiedAt?: string | undefined;
418
434
  }, {
419
435
  path: string;
420
436
  name: string;
421
437
  isDirectory: boolean;
438
+ size?: number | undefined;
439
+ modifiedAt?: string | undefined;
422
440
  }>, "many">;
423
441
  error: z.ZodOptional<z.ZodString>;
442
+ requestId: z.ZodOptional<z.ZodString>;
424
443
  }, "strip", z.ZodTypeAny, {
425
444
  path: string;
426
445
  entries: {
427
446
  path: string;
428
447
  name: string;
429
448
  isDirectory: boolean;
449
+ size?: number | undefined;
450
+ modifiedAt?: string | undefined;
430
451
  }[];
452
+ requestId?: string | undefined;
431
453
  error?: string | undefined;
432
454
  }, {
433
455
  path: string;
@@ -435,9 +457,50 @@ export declare const terminalBrowseResultPayloadSchema: z.ZodObject<{
435
457
  path: string;
436
458
  name: string;
437
459
  isDirectory: boolean;
460
+ size?: number | undefined;
461
+ modifiedAt?: string | undefined;
438
462
  }[];
463
+ requestId?: string | undefined;
439
464
  error?: string | undefined;
440
465
  }>;
466
+ export declare const terminalFileReadPayloadSchema: z.ZodObject<{
467
+ path: z.ZodString;
468
+ maxBytes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
469
+ requestId: z.ZodOptional<z.ZodString>;
470
+ }, "strip", z.ZodTypeAny, {
471
+ path: string;
472
+ maxBytes: number;
473
+ requestId?: string | undefined;
474
+ }, {
475
+ path: string;
476
+ requestId?: string | undefined;
477
+ maxBytes?: number | undefined;
478
+ }>;
479
+ export declare const terminalFileReadResultPayloadSchema: z.ZodObject<{
480
+ path: z.ZodString;
481
+ content: z.ZodDefault<z.ZodString>;
482
+ encoding: z.ZodDefault<z.ZodLiteral<"utf8">>;
483
+ size: z.ZodOptional<z.ZodNumber>;
484
+ truncated: z.ZodDefault<z.ZodBoolean>;
485
+ error: z.ZodOptional<z.ZodString>;
486
+ requestId: z.ZodOptional<z.ZodString>;
487
+ }, "strip", z.ZodTypeAny, {
488
+ path: string;
489
+ encoding: "utf8";
490
+ content: string;
491
+ truncated: boolean;
492
+ requestId?: string | undefined;
493
+ error?: string | undefined;
494
+ size?: number | undefined;
495
+ }, {
496
+ path: string;
497
+ requestId?: string | undefined;
498
+ encoding?: "utf8" | undefined;
499
+ error?: string | undefined;
500
+ size?: number | undefined;
501
+ content?: string | undefined;
502
+ truncated?: boolean | undefined;
503
+ }>;
441
504
  export declare const terminalStatusPayloadSchema: z.ZodObject<{
442
505
  phase: z.ZodEnum<["thinking", "tool_use", "outputting", "waiting", "idle", "error"]>;
443
506
  seq: z.ZodOptional<z.ZodNumber>;
@@ -691,14 +754,14 @@ export declare const agentMessageSchema: z.ZodObject<{
691
754
  isStreaming: z.ZodOptional<z.ZodBoolean>;
692
755
  }, "strip", z.ZodTypeAny, {
693
756
  role: "user" | "assistant" | "system";
694
- id: string;
695
757
  content: string;
758
+ id: string;
696
759
  createdAt: number;
697
760
  isStreaming?: boolean | undefined;
698
761
  }, {
699
762
  role: "user" | "assistant" | "system";
700
- id: string;
701
763
  content: string;
764
+ id: string;
702
765
  createdAt: number;
703
766
  isStreaming?: boolean | undefined;
704
767
  }>;
@@ -1336,14 +1399,14 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1336
1399
  isStreaming: z.ZodOptional<z.ZodBoolean>;
1337
1400
  }, "strip", z.ZodTypeAny, {
1338
1401
  role: "user" | "assistant" | "system";
1339
- id: string;
1340
1402
  content: string;
1403
+ id: string;
1341
1404
  createdAt: number;
1342
1405
  isStreaming?: boolean | undefined;
1343
1406
  }, {
1344
1407
  role: "user" | "assistant" | "system";
1345
- id: string;
1346
1408
  content: string;
1409
+ id: string;
1347
1410
  createdAt: number;
1348
1411
  isStreaming?: boolean | undefined;
1349
1412
  }>>;
@@ -1389,8 +1452,8 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1389
1452
  kind: "message" | "status" | "error" | "message_delta" | "tool_call" | "tool_result" | "plan";
1390
1453
  message?: {
1391
1454
  role: "user" | "assistant" | "system";
1392
- id: string;
1393
1455
  content: string;
1456
+ id: string;
1394
1457
  createdAt: number;
1395
1458
  isStreaming?: boolean | undefined;
1396
1459
  } | undefined;
@@ -1415,8 +1478,8 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1415
1478
  kind: "message" | "status" | "error" | "message_delta" | "tool_call" | "tool_result" | "plan";
1416
1479
  message?: {
1417
1480
  role: "user" | "assistant" | "system";
1418
- id: string;
1419
1481
  content: string;
1482
+ id: string;
1420
1483
  createdAt: number;
1421
1484
  isStreaming?: boolean | undefined;
1422
1485
  } | undefined;
@@ -1775,14 +1838,14 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1775
1838
  isStreaming: z.ZodOptional<z.ZodBoolean>;
1776
1839
  }, "strip", z.ZodTypeAny, {
1777
1840
  role: "user" | "assistant" | "system";
1778
- id: string;
1779
1841
  content: string;
1842
+ id: string;
1780
1843
  createdAt: number;
1781
1844
  isStreaming?: boolean | undefined;
1782
1845
  }, {
1783
1846
  role: "user" | "assistant" | "system";
1784
- id: string;
1785
1847
  content: string;
1848
+ id: string;
1786
1849
  createdAt: number;
1787
1850
  isStreaming?: boolean | undefined;
1788
1851
  }>, "many">>;
@@ -1853,8 +1916,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1853
1916
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
1854
1917
  messages: {
1855
1918
  role: "user" | "assistant" | "system";
1856
- id: string;
1857
1919
  content: string;
1920
+ id: string;
1858
1921
  createdAt: number;
1859
1922
  isStreaming?: boolean | undefined;
1860
1923
  }[];
@@ -1989,8 +2052,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1989
2052
  } | undefined;
1990
2053
  messages?: {
1991
2054
  role: "user" | "assistant" | "system";
1992
- id: string;
1993
2055
  content: string;
2056
+ id: string;
1994
2057
  createdAt: number;
1995
2058
  isStreaming?: boolean | undefined;
1996
2059
  }[] | undefined;
@@ -2680,6 +2743,12 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2680
2743
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
2681
2744
  role?: "user" | "assistant" | "system" | undefined;
2682
2745
  error?: string | undefined;
2746
+ content?: {
2747
+ type: "text" | "image";
2748
+ data?: string | undefined;
2749
+ text?: string | undefined;
2750
+ mimeType?: string | undefined;
2751
+ }[] | undefined;
2683
2752
  text?: string | undefined;
2684
2753
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
2685
2754
  plan?: {
@@ -2687,12 +2756,6 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2687
2756
  id: string;
2688
2757
  text: string;
2689
2758
  }[] | undefined;
2690
- content?: {
2691
- type: "text" | "image";
2692
- data?: string | undefined;
2693
- text?: string | undefined;
2694
- mimeType?: string | undefined;
2695
- }[] | undefined;
2696
2759
  isStreaming?: boolean | undefined;
2697
2760
  toolCall?: {
2698
2761
  status: "running" | "pending" | "completed" | "failed";
@@ -2780,6 +2843,12 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2780
2843
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
2781
2844
  role?: "user" | "assistant" | "system" | undefined;
2782
2845
  error?: string | undefined;
2846
+ content?: {
2847
+ type: "text" | "image";
2848
+ data?: string | undefined;
2849
+ text?: string | undefined;
2850
+ mimeType?: string | undefined;
2851
+ }[] | undefined;
2783
2852
  text?: string | undefined;
2784
2853
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
2785
2854
  plan?: {
@@ -2787,12 +2856,6 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2787
2856
  id: string;
2788
2857
  text: string;
2789
2858
  }[] | undefined;
2790
- content?: {
2791
- type: "text" | "image";
2792
- data?: string | undefined;
2793
- text?: string | undefined;
2794
- mimeType?: string | undefined;
2795
- }[] | undefined;
2796
2859
  isStreaming?: boolean | undefined;
2797
2860
  toolCall?: {
2798
2861
  name: string;
@@ -3604,6 +3667,12 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3604
3667
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
3605
3668
  role?: "user" | "assistant" | "system" | undefined;
3606
3669
  error?: string | undefined;
3670
+ content?: {
3671
+ type: "text" | "image";
3672
+ data?: string | undefined;
3673
+ text?: string | undefined;
3674
+ mimeType?: string | undefined;
3675
+ }[] | undefined;
3607
3676
  text?: string | undefined;
3608
3677
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3609
3678
  plan?: {
@@ -3611,12 +3680,6 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3611
3680
  id: string;
3612
3681
  text: string;
3613
3682
  }[] | undefined;
3614
- content?: {
3615
- type: "text" | "image";
3616
- data?: string | undefined;
3617
- text?: string | undefined;
3618
- mimeType?: string | undefined;
3619
- }[] | undefined;
3620
3683
  isStreaming?: boolean | undefined;
3621
3684
  toolCall?: {
3622
3685
  status: "running" | "pending" | "completed" | "failed";
@@ -3704,6 +3767,12 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3704
3767
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
3705
3768
  role?: "user" | "assistant" | "system" | undefined;
3706
3769
  error?: string | undefined;
3770
+ content?: {
3771
+ type: "text" | "image";
3772
+ data?: string | undefined;
3773
+ text?: string | undefined;
3774
+ mimeType?: string | undefined;
3775
+ }[] | undefined;
3707
3776
  text?: string | undefined;
3708
3777
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3709
3778
  plan?: {
@@ -3711,12 +3780,6 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3711
3780
  id: string;
3712
3781
  text: string;
3713
3782
  }[] | undefined;
3714
- content?: {
3715
- type: "text" | "image";
3716
- data?: string | undefined;
3717
- text?: string | undefined;
3718
- mimeType?: string | undefined;
3719
- }[] | undefined;
3720
3783
  isStreaming?: boolean | undefined;
3721
3784
  toolCall?: {
3722
3785
  name: string;
@@ -3822,6 +3885,12 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3822
3885
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
3823
3886
  role?: "user" | "assistant" | "system" | undefined;
3824
3887
  error?: string | undefined;
3888
+ content?: {
3889
+ type: "text" | "image";
3890
+ data?: string | undefined;
3891
+ text?: string | undefined;
3892
+ mimeType?: string | undefined;
3893
+ }[] | undefined;
3825
3894
  text?: string | undefined;
3826
3895
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3827
3896
  plan?: {
@@ -3829,12 +3898,6 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3829
3898
  id: string;
3830
3899
  text: string;
3831
3900
  }[] | undefined;
3832
- content?: {
3833
- type: "text" | "image";
3834
- data?: string | undefined;
3835
- text?: string | undefined;
3836
- mimeType?: string | undefined;
3837
- }[] | undefined;
3838
3901
  isStreaming?: boolean | undefined;
3839
3902
  toolCall?: {
3840
3903
  status: "running" | "pending" | "completed" | "failed";
@@ -3940,6 +4003,12 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3940
4003
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
3941
4004
  role?: "user" | "assistant" | "system" | undefined;
3942
4005
  error?: string | undefined;
4006
+ content?: {
4007
+ type: "text" | "image";
4008
+ data?: string | undefined;
4009
+ text?: string | undefined;
4010
+ mimeType?: string | undefined;
4011
+ }[] | undefined;
3943
4012
  text?: string | undefined;
3944
4013
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3945
4014
  plan?: {
@@ -3947,12 +4016,6 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3947
4016
  id: string;
3948
4017
  text: string;
3949
4018
  }[] | undefined;
3950
- content?: {
3951
- type: "text" | "image";
3952
- data?: string | undefined;
3953
- text?: string | undefined;
3954
- mimeType?: string | undefined;
3955
- }[] | undefined;
3956
4019
  isStreaming?: boolean | undefined;
3957
4020
  toolCall?: {
3958
4021
  name: string;
@@ -4617,6 +4680,12 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4617
4680
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4618
4681
  role?: "user" | "assistant" | "system" | undefined;
4619
4682
  error?: string | undefined;
4683
+ content?: {
4684
+ type: "text" | "image";
4685
+ data?: string | undefined;
4686
+ text?: string | undefined;
4687
+ mimeType?: string | undefined;
4688
+ }[] | undefined;
4620
4689
  text?: string | undefined;
4621
4690
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4622
4691
  plan?: {
@@ -4624,12 +4693,6 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4624
4693
  id: string;
4625
4694
  text: string;
4626
4695
  }[] | undefined;
4627
- content?: {
4628
- type: "text" | "image";
4629
- data?: string | undefined;
4630
- text?: string | undefined;
4631
- mimeType?: string | undefined;
4632
- }[] | undefined;
4633
4696
  isStreaming?: boolean | undefined;
4634
4697
  toolCall?: {
4635
4698
  status: "running" | "pending" | "completed" | "failed";
@@ -4717,6 +4780,12 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4717
4780
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4718
4781
  role?: "user" | "assistant" | "system" | undefined;
4719
4782
  error?: string | undefined;
4783
+ content?: {
4784
+ type: "text" | "image";
4785
+ data?: string | undefined;
4786
+ text?: string | undefined;
4787
+ mimeType?: string | undefined;
4788
+ }[] | undefined;
4720
4789
  text?: string | undefined;
4721
4790
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4722
4791
  plan?: {
@@ -4724,12 +4793,6 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4724
4793
  id: string;
4725
4794
  text: string;
4726
4795
  }[] | undefined;
4727
- content?: {
4728
- type: "text" | "image";
4729
- data?: string | undefined;
4730
- text?: string | undefined;
4731
- mimeType?: string | undefined;
4732
- }[] | undefined;
4733
4796
  isStreaming?: boolean | undefined;
4734
4797
  toolCall?: {
4735
4798
  name: string;
@@ -4836,6 +4899,12 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4836
4899
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4837
4900
  role?: "user" | "assistant" | "system" | undefined;
4838
4901
  error?: string | undefined;
4902
+ content?: {
4903
+ type: "text" | "image";
4904
+ data?: string | undefined;
4905
+ text?: string | undefined;
4906
+ mimeType?: string | undefined;
4907
+ }[] | undefined;
4839
4908
  text?: string | undefined;
4840
4909
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4841
4910
  plan?: {
@@ -4843,12 +4912,6 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4843
4912
  id: string;
4844
4913
  text: string;
4845
4914
  }[] | undefined;
4846
- content?: {
4847
- type: "text" | "image";
4848
- data?: string | undefined;
4849
- text?: string | undefined;
4850
- mimeType?: string | undefined;
4851
- }[] | undefined;
4852
4915
  isStreaming?: boolean | undefined;
4853
4916
  toolCall?: {
4854
4917
  status: "running" | "pending" | "completed" | "failed";
@@ -4958,6 +5021,12 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4958
5021
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4959
5022
  role?: "user" | "assistant" | "system" | undefined;
4960
5023
  error?: string | undefined;
5024
+ content?: {
5025
+ type: "text" | "image";
5026
+ data?: string | undefined;
5027
+ text?: string | undefined;
5028
+ mimeType?: string | undefined;
5029
+ }[] | undefined;
4961
5030
  text?: string | undefined;
4962
5031
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4963
5032
  plan?: {
@@ -4965,12 +5034,6 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4965
5034
  id: string;
4966
5035
  text: string;
4967
5036
  }[] | undefined;
4968
- content?: {
4969
- type: "text" | "image";
4970
- data?: string | undefined;
4971
- text?: string | undefined;
4972
- mimeType?: string | undefined;
4973
- }[] | undefined;
4974
5037
  isStreaming?: boolean | undefined;
4975
5038
  toolCall?: {
4976
5039
  name: string;
@@ -5434,6 +5497,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5434
5497
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
5435
5498
  role?: "user" | "assistant" | "system" | undefined;
5436
5499
  error?: string | undefined;
5500
+ content?: {
5501
+ type: "text" | "image";
5502
+ data?: string | undefined;
5503
+ text?: string | undefined;
5504
+ mimeType?: string | undefined;
5505
+ }[] | undefined;
5437
5506
  text?: string | undefined;
5438
5507
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5439
5508
  plan?: {
@@ -5441,12 +5510,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5441
5510
  id: string;
5442
5511
  text: string;
5443
5512
  }[] | undefined;
5444
- content?: {
5445
- type: "text" | "image";
5446
- data?: string | undefined;
5447
- text?: string | undefined;
5448
- mimeType?: string | undefined;
5449
- }[] | undefined;
5450
5513
  isStreaming?: boolean | undefined;
5451
5514
  toolCall?: {
5452
5515
  status: "running" | "pending" | "completed" | "failed";
@@ -5534,6 +5597,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5534
5597
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
5535
5598
  role?: "user" | "assistant" | "system" | undefined;
5536
5599
  error?: string | undefined;
5600
+ content?: {
5601
+ type: "text" | "image";
5602
+ data?: string | undefined;
5603
+ text?: string | undefined;
5604
+ mimeType?: string | undefined;
5605
+ }[] | undefined;
5537
5606
  text?: string | undefined;
5538
5607
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5539
5608
  plan?: {
@@ -5541,12 +5610,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5541
5610
  id: string;
5542
5611
  text: string;
5543
5612
  }[] | undefined;
5544
- content?: {
5545
- type: "text" | "image";
5546
- data?: string | undefined;
5547
- text?: string | undefined;
5548
- mimeType?: string | undefined;
5549
- }[] | undefined;
5550
5613
  isStreaming?: boolean | undefined;
5551
5614
  toolCall?: {
5552
5615
  name: string;
@@ -5954,6 +6017,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5954
6017
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
5955
6018
  role?: "user" | "assistant" | "system" | undefined;
5956
6019
  error?: string | undefined;
6020
+ content?: {
6021
+ type: "text" | "image";
6022
+ data?: string | undefined;
6023
+ text?: string | undefined;
6024
+ mimeType?: string | undefined;
6025
+ }[] | undefined;
5957
6026
  text?: string | undefined;
5958
6027
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5959
6028
  plan?: {
@@ -5961,12 +6030,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5961
6030
  id: string;
5962
6031
  text: string;
5963
6032
  }[] | undefined;
5964
- content?: {
5965
- type: "text" | "image";
5966
- data?: string | undefined;
5967
- text?: string | undefined;
5968
- mimeType?: string | undefined;
5969
- }[] | undefined;
5970
6033
  isStreaming?: boolean | undefined;
5971
6034
  toolCall?: {
5972
6035
  status: "running" | "pending" | "completed" | "failed";
@@ -6050,6 +6113,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6050
6113
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6051
6114
  role?: "user" | "assistant" | "system" | undefined;
6052
6115
  error?: string | undefined;
6116
+ content?: {
6117
+ type: "text" | "image";
6118
+ data?: string | undefined;
6119
+ text?: string | undefined;
6120
+ mimeType?: string | undefined;
6121
+ }[] | undefined;
6053
6122
  text?: string | undefined;
6054
6123
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6055
6124
  plan?: {
@@ -6057,12 +6126,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6057
6126
  id: string;
6058
6127
  text: string;
6059
6128
  }[] | undefined;
6060
- content?: {
6061
- type: "text" | "image";
6062
- data?: string | undefined;
6063
- text?: string | undefined;
6064
- mimeType?: string | undefined;
6065
- }[] | undefined;
6066
6129
  isStreaming?: boolean | undefined;
6067
6130
  toolCall?: {
6068
6131
  name: string;
@@ -6168,6 +6231,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6168
6231
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6169
6232
  role?: "user" | "assistant" | "system" | undefined;
6170
6233
  error?: string | undefined;
6234
+ content?: {
6235
+ type: "text" | "image";
6236
+ data?: string | undefined;
6237
+ text?: string | undefined;
6238
+ mimeType?: string | undefined;
6239
+ }[] | undefined;
6171
6240
  text?: string | undefined;
6172
6241
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6173
6242
  plan?: {
@@ -6175,12 +6244,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6175
6244
  id: string;
6176
6245
  text: string;
6177
6246
  }[] | undefined;
6178
- content?: {
6179
- type: "text" | "image";
6180
- data?: string | undefined;
6181
- text?: string | undefined;
6182
- mimeType?: string | undefined;
6183
- }[] | undefined;
6184
6247
  isStreaming?: boolean | undefined;
6185
6248
  toolCall?: {
6186
6249
  status: "running" | "pending" | "completed" | "failed";
@@ -6266,6 +6329,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6266
6329
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6267
6330
  role?: "user" | "assistant" | "system" | undefined;
6268
6331
  error?: string | undefined;
6332
+ content?: {
6333
+ type: "text" | "image";
6334
+ data?: string | undefined;
6335
+ text?: string | undefined;
6336
+ mimeType?: string | undefined;
6337
+ }[] | undefined;
6269
6338
  text?: string | undefined;
6270
6339
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6271
6340
  plan?: {
@@ -6273,12 +6342,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6273
6342
  id: string;
6274
6343
  text: string;
6275
6344
  }[] | undefined;
6276
- content?: {
6277
- type: "text" | "image";
6278
- data?: string | undefined;
6279
- text?: string | undefined;
6280
- mimeType?: string | undefined;
6281
- }[] | undefined;
6282
6345
  isStreaming?: boolean | undefined;
6283
6346
  toolCall?: {
6284
6347
  status: "running" | "pending" | "completed" | "failed";
@@ -6384,6 +6447,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6384
6447
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6385
6448
  role?: "user" | "assistant" | "system" | undefined;
6386
6449
  error?: string | undefined;
6450
+ content?: {
6451
+ type: "text" | "image";
6452
+ data?: string | undefined;
6453
+ text?: string | undefined;
6454
+ mimeType?: string | undefined;
6455
+ }[] | undefined;
6387
6456
  text?: string | undefined;
6388
6457
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6389
6458
  plan?: {
@@ -6391,12 +6460,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6391
6460
  id: string;
6392
6461
  text: string;
6393
6462
  }[] | undefined;
6394
- content?: {
6395
- type: "text" | "image";
6396
- data?: string | undefined;
6397
- text?: string | undefined;
6398
- mimeType?: string | undefined;
6399
- }[] | undefined;
6400
6463
  isStreaming?: boolean | undefined;
6401
6464
  toolCall?: {
6402
6465
  name: string;
@@ -6482,6 +6545,12 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6482
6545
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6483
6546
  role?: "user" | "assistant" | "system" | undefined;
6484
6547
  error?: string | undefined;
6548
+ content?: {
6549
+ type: "text" | "image";
6550
+ data?: string | undefined;
6551
+ text?: string | undefined;
6552
+ mimeType?: string | undefined;
6553
+ }[] | undefined;
6485
6554
  text?: string | undefined;
6486
6555
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6487
6556
  plan?: {
@@ -6489,12 +6558,6 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6489
6558
  id: string;
6490
6559
  text: string;
6491
6560
  }[] | undefined;
6492
- content?: {
6493
- type: "text" | "image";
6494
- data?: string | undefined;
6495
- text?: string | undefined;
6496
- mimeType?: string | undefined;
6497
- }[] | undefined;
6498
6561
  isStreaming?: boolean | undefined;
6499
6562
  toolCall?: {
6500
6563
  name: string;
@@ -6929,19 +6992,19 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
6929
6992
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6930
6993
  role?: "user" | "assistant" | "system" | undefined;
6931
6994
  error?: string | undefined;
6932
- text?: string | undefined;
6933
- kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6934
- plan?: {
6935
- status: "pending" | "completed" | "in_progress";
6936
- id: string;
6937
- text: string;
6938
- }[] | undefined;
6939
6995
  content?: {
6940
6996
  type: "text" | "image";
6941
6997
  data?: string | undefined;
6942
6998
  text?: string | undefined;
6943
6999
  mimeType?: string | undefined;
6944
7000
  }[] | undefined;
7001
+ text?: string | undefined;
7002
+ kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
7003
+ plan?: {
7004
+ status: "pending" | "completed" | "in_progress";
7005
+ id: string;
7006
+ text: string;
7007
+ }[] | undefined;
6945
7008
  isStreaming?: boolean | undefined;
6946
7009
  toolCall?: {
6947
7010
  status: "running" | "pending" | "completed" | "failed";
@@ -7029,6 +7092,12 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7029
7092
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
7030
7093
  role?: "user" | "assistant" | "system" | undefined;
7031
7094
  error?: string | undefined;
7095
+ content?: {
7096
+ type: "text" | "image";
7097
+ data?: string | undefined;
7098
+ text?: string | undefined;
7099
+ mimeType?: string | undefined;
7100
+ }[] | undefined;
7032
7101
  text?: string | undefined;
7033
7102
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
7034
7103
  plan?: {
@@ -7036,12 +7105,6 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7036
7105
  id: string;
7037
7106
  text: string;
7038
7107
  }[] | undefined;
7039
- content?: {
7040
- type: "text" | "image";
7041
- data?: string | undefined;
7042
- text?: string | undefined;
7043
- mimeType?: string | undefined;
7044
- }[] | undefined;
7045
7108
  isStreaming?: boolean | undefined;
7046
7109
  toolCall?: {
7047
7110
  name: string;
@@ -7141,6 +7204,12 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7141
7204
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
7142
7205
  role?: "user" | "assistant" | "system" | undefined;
7143
7206
  error?: string | undefined;
7207
+ content?: {
7208
+ type: "text" | "image";
7209
+ data?: string | undefined;
7210
+ text?: string | undefined;
7211
+ mimeType?: string | undefined;
7212
+ }[] | undefined;
7144
7213
  text?: string | undefined;
7145
7214
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
7146
7215
  plan?: {
@@ -7148,12 +7217,6 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7148
7217
  id: string;
7149
7218
  text: string;
7150
7219
  }[] | undefined;
7151
- content?: {
7152
- type: "text" | "image";
7153
- data?: string | undefined;
7154
- text?: string | undefined;
7155
- mimeType?: string | undefined;
7156
- }[] | undefined;
7157
7220
  isStreaming?: boolean | undefined;
7158
7221
  toolCall?: {
7159
7222
  status: "running" | "pending" | "completed" | "failed";
@@ -7253,6 +7316,12 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7253
7316
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
7254
7317
  role?: "user" | "assistant" | "system" | undefined;
7255
7318
  error?: string | undefined;
7319
+ content?: {
7320
+ type: "text" | "image";
7321
+ data?: string | undefined;
7322
+ text?: string | undefined;
7323
+ mimeType?: string | undefined;
7324
+ }[] | undefined;
7256
7325
  text?: string | undefined;
7257
7326
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
7258
7327
  plan?: {
@@ -7260,12 +7329,6 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7260
7329
  id: string;
7261
7330
  text: string;
7262
7331
  }[] | undefined;
7263
- content?: {
7264
- type: "text" | "image";
7265
- data?: string | undefined;
7266
- text?: string | undefined;
7267
- mimeType?: string | undefined;
7268
- }[] | undefined;
7269
7332
  isStreaming?: boolean | undefined;
7270
7333
  toolCall?: {
7271
7334
  name: string;
@@ -7679,10 +7742,16 @@ export declare const protocolMessageSchemas: {
7679
7742
  }>;
7680
7743
  readonly "terminal.browse": z.ZodObject<{
7681
7744
  path: z.ZodString;
7745
+ includeFiles: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
7746
+ requestId: z.ZodOptional<z.ZodString>;
7682
7747
  }, "strip", z.ZodTypeAny, {
7683
7748
  path: string;
7749
+ includeFiles: boolean;
7750
+ requestId?: string | undefined;
7684
7751
  }, {
7685
7752
  path: string;
7753
+ requestId?: string | undefined;
7754
+ includeFiles?: boolean | undefined;
7686
7755
  }>;
7687
7756
  readonly "terminal.browse.result": z.ZodObject<{
7688
7757
  path: z.ZodString;
@@ -7690,23 +7759,33 @@ export declare const protocolMessageSchemas: {
7690
7759
  name: z.ZodString;
7691
7760
  path: z.ZodString;
7692
7761
  isDirectory: z.ZodBoolean;
7762
+ size: z.ZodOptional<z.ZodNumber>;
7763
+ modifiedAt: z.ZodOptional<z.ZodString>;
7693
7764
  }, "strip", z.ZodTypeAny, {
7694
7765
  path: string;
7695
7766
  name: string;
7696
7767
  isDirectory: boolean;
7768
+ size?: number | undefined;
7769
+ modifiedAt?: string | undefined;
7697
7770
  }, {
7698
7771
  path: string;
7699
7772
  name: string;
7700
7773
  isDirectory: boolean;
7774
+ size?: number | undefined;
7775
+ modifiedAt?: string | undefined;
7701
7776
  }>, "many">;
7702
7777
  error: z.ZodOptional<z.ZodString>;
7778
+ requestId: z.ZodOptional<z.ZodString>;
7703
7779
  }, "strip", z.ZodTypeAny, {
7704
7780
  path: string;
7705
7781
  entries: {
7706
7782
  path: string;
7707
7783
  name: string;
7708
7784
  isDirectory: boolean;
7785
+ size?: number | undefined;
7786
+ modifiedAt?: string | undefined;
7709
7787
  }[];
7788
+ requestId?: string | undefined;
7710
7789
  error?: string | undefined;
7711
7790
  }, {
7712
7791
  path: string;
@@ -7714,8 +7793,49 @@ export declare const protocolMessageSchemas: {
7714
7793
  path: string;
7715
7794
  name: string;
7716
7795
  isDirectory: boolean;
7796
+ size?: number | undefined;
7797
+ modifiedAt?: string | undefined;
7717
7798
  }[];
7799
+ requestId?: string | undefined;
7800
+ error?: string | undefined;
7801
+ }>;
7802
+ readonly "terminal.file.read": z.ZodObject<{
7803
+ path: z.ZodString;
7804
+ maxBytes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
7805
+ requestId: z.ZodOptional<z.ZodString>;
7806
+ }, "strip", z.ZodTypeAny, {
7807
+ path: string;
7808
+ maxBytes: number;
7809
+ requestId?: string | undefined;
7810
+ }, {
7811
+ path: string;
7812
+ requestId?: string | undefined;
7813
+ maxBytes?: number | undefined;
7814
+ }>;
7815
+ readonly "terminal.file.read.result": z.ZodObject<{
7816
+ path: z.ZodString;
7817
+ content: z.ZodDefault<z.ZodString>;
7818
+ encoding: z.ZodDefault<z.ZodLiteral<"utf8">>;
7819
+ size: z.ZodOptional<z.ZodNumber>;
7820
+ truncated: z.ZodDefault<z.ZodBoolean>;
7821
+ error: z.ZodOptional<z.ZodString>;
7822
+ requestId: z.ZodOptional<z.ZodString>;
7823
+ }, "strip", z.ZodTypeAny, {
7824
+ path: string;
7825
+ encoding: "utf8";
7826
+ content: string;
7827
+ truncated: boolean;
7828
+ requestId?: string | undefined;
7829
+ error?: string | undefined;
7830
+ size?: number | undefined;
7831
+ }, {
7832
+ path: string;
7833
+ requestId?: string | undefined;
7834
+ encoding?: "utf8" | undefined;
7718
7835
  error?: string | undefined;
7836
+ size?: number | undefined;
7837
+ content?: string | undefined;
7838
+ truncated?: boolean | undefined;
7719
7839
  }>;
7720
7840
  readonly "terminal.kill": z.ZodObject<{
7721
7841
  terminalId: z.ZodString;
@@ -8294,14 +8414,14 @@ export declare const protocolMessageSchemas: {
8294
8414
  isStreaming: z.ZodOptional<z.ZodBoolean>;
8295
8415
  }, "strip", z.ZodTypeAny, {
8296
8416
  role: "user" | "assistant" | "system";
8297
- id: string;
8298
8417
  content: string;
8418
+ id: string;
8299
8419
  createdAt: number;
8300
8420
  isStreaming?: boolean | undefined;
8301
8421
  }, {
8302
8422
  role: "user" | "assistant" | "system";
8303
- id: string;
8304
8423
  content: string;
8424
+ id: string;
8305
8425
  createdAt: number;
8306
8426
  isStreaming?: boolean | undefined;
8307
8427
  }>>;
@@ -8347,8 +8467,8 @@ export declare const protocolMessageSchemas: {
8347
8467
  kind: "message" | "status" | "error" | "message_delta" | "tool_call" | "tool_result" | "plan";
8348
8468
  message?: {
8349
8469
  role: "user" | "assistant" | "system";
8350
- id: string;
8351
8470
  content: string;
8471
+ id: string;
8352
8472
  createdAt: number;
8353
8473
  isStreaming?: boolean | undefined;
8354
8474
  } | undefined;
@@ -8373,8 +8493,8 @@ export declare const protocolMessageSchemas: {
8373
8493
  kind: "message" | "status" | "error" | "message_delta" | "tool_call" | "tool_result" | "plan";
8374
8494
  message?: {
8375
8495
  role: "user" | "assistant" | "system";
8376
- id: string;
8377
8496
  content: string;
8497
+ id: string;
8378
8498
  createdAt: number;
8379
8499
  isStreaming?: boolean | undefined;
8380
8500
  } | undefined;
@@ -8733,14 +8853,14 @@ export declare const protocolMessageSchemas: {
8733
8853
  isStreaming: z.ZodOptional<z.ZodBoolean>;
8734
8854
  }, "strip", z.ZodTypeAny, {
8735
8855
  role: "user" | "assistant" | "system";
8736
- id: string;
8737
8856
  content: string;
8857
+ id: string;
8738
8858
  createdAt: number;
8739
8859
  isStreaming?: boolean | undefined;
8740
8860
  }, {
8741
8861
  role: "user" | "assistant" | "system";
8742
- id: string;
8743
8862
  content: string;
8863
+ id: string;
8744
8864
  createdAt: number;
8745
8865
  isStreaming?: boolean | undefined;
8746
8866
  }>, "many">>;
@@ -8811,8 +8931,8 @@ export declare const protocolMessageSchemas: {
8811
8931
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
8812
8932
  messages: {
8813
8933
  role: "user" | "assistant" | "system";
8814
- id: string;
8815
8934
  content: string;
8935
+ id: string;
8816
8936
  createdAt: number;
8817
8937
  isStreaming?: boolean | undefined;
8818
8938
  }[];
@@ -8947,8 +9067,8 @@ export declare const protocolMessageSchemas: {
8947
9067
  } | undefined;
8948
9068
  messages?: {
8949
9069
  role: "user" | "assistant" | "system";
8950
- id: string;
8951
9070
  content: string;
9071
+ id: string;
8952
9072
  createdAt: number;
8953
9073
  isStreaming?: boolean | undefined;
8954
9074
  }[] | undefined;
@@ -9657,6 +9777,12 @@ export declare const protocolMessageSchemas: {
9657
9777
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
9658
9778
  role?: "user" | "assistant" | "system" | undefined;
9659
9779
  error?: string | undefined;
9780
+ content?: {
9781
+ type: "text" | "image";
9782
+ data?: string | undefined;
9783
+ text?: string | undefined;
9784
+ mimeType?: string | undefined;
9785
+ }[] | undefined;
9660
9786
  text?: string | undefined;
9661
9787
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9662
9788
  plan?: {
@@ -9664,12 +9790,6 @@ export declare const protocolMessageSchemas: {
9664
9790
  id: string;
9665
9791
  text: string;
9666
9792
  }[] | undefined;
9667
- content?: {
9668
- type: "text" | "image";
9669
- data?: string | undefined;
9670
- text?: string | undefined;
9671
- mimeType?: string | undefined;
9672
- }[] | undefined;
9673
9793
  isStreaming?: boolean | undefined;
9674
9794
  toolCall?: {
9675
9795
  status: "running" | "pending" | "completed" | "failed";
@@ -9757,6 +9877,12 @@ export declare const protocolMessageSchemas: {
9757
9877
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
9758
9878
  role?: "user" | "assistant" | "system" | undefined;
9759
9879
  error?: string | undefined;
9880
+ content?: {
9881
+ type: "text" | "image";
9882
+ data?: string | undefined;
9883
+ text?: string | undefined;
9884
+ mimeType?: string | undefined;
9885
+ }[] | undefined;
9760
9886
  text?: string | undefined;
9761
9887
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9762
9888
  plan?: {
@@ -9764,12 +9890,6 @@ export declare const protocolMessageSchemas: {
9764
9890
  id: string;
9765
9891
  text: string;
9766
9892
  }[] | undefined;
9767
- content?: {
9768
- type: "text" | "image";
9769
- data?: string | undefined;
9770
- text?: string | undefined;
9771
- mimeType?: string | undefined;
9772
- }[] | undefined;
9773
9893
  isStreaming?: boolean | undefined;
9774
9894
  toolCall?: {
9775
9895
  name: string;
@@ -9875,6 +9995,12 @@ export declare const protocolMessageSchemas: {
9875
9995
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
9876
9996
  role?: "user" | "assistant" | "system" | undefined;
9877
9997
  error?: string | undefined;
9998
+ content?: {
9999
+ type: "text" | "image";
10000
+ data?: string | undefined;
10001
+ text?: string | undefined;
10002
+ mimeType?: string | undefined;
10003
+ }[] | undefined;
9878
10004
  text?: string | undefined;
9879
10005
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9880
10006
  plan?: {
@@ -9882,12 +10008,6 @@ export declare const protocolMessageSchemas: {
9882
10008
  id: string;
9883
10009
  text: string;
9884
10010
  }[] | undefined;
9885
- content?: {
9886
- type: "text" | "image";
9887
- data?: string | undefined;
9888
- text?: string | undefined;
9889
- mimeType?: string | undefined;
9890
- }[] | undefined;
9891
10011
  isStreaming?: boolean | undefined;
9892
10012
  toolCall?: {
9893
10013
  status: "running" | "pending" | "completed" | "failed";
@@ -9993,6 +10113,12 @@ export declare const protocolMessageSchemas: {
9993
10113
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
9994
10114
  role?: "user" | "assistant" | "system" | undefined;
9995
10115
  error?: string | undefined;
10116
+ content?: {
10117
+ type: "text" | "image";
10118
+ data?: string | undefined;
10119
+ text?: string | undefined;
10120
+ mimeType?: string | undefined;
10121
+ }[] | undefined;
9996
10122
  text?: string | undefined;
9997
10123
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9998
10124
  plan?: {
@@ -10000,12 +10126,6 @@ export declare const protocolMessageSchemas: {
10000
10126
  id: string;
10001
10127
  text: string;
10002
10128
  }[] | undefined;
10003
- content?: {
10004
- type: "text" | "image";
10005
- data?: string | undefined;
10006
- text?: string | undefined;
10007
- mimeType?: string | undefined;
10008
- }[] | undefined;
10009
10129
  isStreaming?: boolean | undefined;
10010
10130
  toolCall?: {
10011
10131
  name: string;
@@ -10622,6 +10742,12 @@ export declare const protocolMessageSchemas: {
10622
10742
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10623
10743
  role?: "user" | "assistant" | "system" | undefined;
10624
10744
  error?: string | undefined;
10745
+ content?: {
10746
+ type: "text" | "image";
10747
+ data?: string | undefined;
10748
+ text?: string | undefined;
10749
+ mimeType?: string | undefined;
10750
+ }[] | undefined;
10625
10751
  text?: string | undefined;
10626
10752
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10627
10753
  plan?: {
@@ -10629,12 +10755,6 @@ export declare const protocolMessageSchemas: {
10629
10755
  id: string;
10630
10756
  text: string;
10631
10757
  }[] | undefined;
10632
- content?: {
10633
- type: "text" | "image";
10634
- data?: string | undefined;
10635
- text?: string | undefined;
10636
- mimeType?: string | undefined;
10637
- }[] | undefined;
10638
10758
  isStreaming?: boolean | undefined;
10639
10759
  toolCall?: {
10640
10760
  status: "running" | "pending" | "completed" | "failed";
@@ -10722,6 +10842,12 @@ export declare const protocolMessageSchemas: {
10722
10842
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10723
10843
  role?: "user" | "assistant" | "system" | undefined;
10724
10844
  error?: string | undefined;
10845
+ content?: {
10846
+ type: "text" | "image";
10847
+ data?: string | undefined;
10848
+ text?: string | undefined;
10849
+ mimeType?: string | undefined;
10850
+ }[] | undefined;
10725
10851
  text?: string | undefined;
10726
10852
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10727
10853
  plan?: {
@@ -10729,12 +10855,6 @@ export declare const protocolMessageSchemas: {
10729
10855
  id: string;
10730
10856
  text: string;
10731
10857
  }[] | undefined;
10732
- content?: {
10733
- type: "text" | "image";
10734
- data?: string | undefined;
10735
- text?: string | undefined;
10736
- mimeType?: string | undefined;
10737
- }[] | undefined;
10738
10858
  isStreaming?: boolean | undefined;
10739
10859
  toolCall?: {
10740
10860
  name: string;
@@ -10834,6 +10954,12 @@ export declare const protocolMessageSchemas: {
10834
10954
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10835
10955
  role?: "user" | "assistant" | "system" | undefined;
10836
10956
  error?: string | undefined;
10957
+ content?: {
10958
+ type: "text" | "image";
10959
+ data?: string | undefined;
10960
+ text?: string | undefined;
10961
+ mimeType?: string | undefined;
10962
+ }[] | undefined;
10837
10963
  text?: string | undefined;
10838
10964
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10839
10965
  plan?: {
@@ -10841,12 +10967,6 @@ export declare const protocolMessageSchemas: {
10841
10967
  id: string;
10842
10968
  text: string;
10843
10969
  }[] | undefined;
10844
- content?: {
10845
- type: "text" | "image";
10846
- data?: string | undefined;
10847
- text?: string | undefined;
10848
- mimeType?: string | undefined;
10849
- }[] | undefined;
10850
10970
  isStreaming?: boolean | undefined;
10851
10971
  toolCall?: {
10852
10972
  status: "running" | "pending" | "completed" | "failed";
@@ -10946,6 +11066,12 @@ export declare const protocolMessageSchemas: {
10946
11066
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10947
11067
  role?: "user" | "assistant" | "system" | undefined;
10948
11068
  error?: string | undefined;
11069
+ content?: {
11070
+ type: "text" | "image";
11071
+ data?: string | undefined;
11072
+ text?: string | undefined;
11073
+ mimeType?: string | undefined;
11074
+ }[] | undefined;
10949
11075
  text?: string | undefined;
10950
11076
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10951
11077
  plan?: {
@@ -10953,12 +11079,6 @@ export declare const protocolMessageSchemas: {
10953
11079
  id: string;
10954
11080
  text: string;
10955
11081
  }[] | undefined;
10956
- content?: {
10957
- type: "text" | "image";
10958
- data?: string | undefined;
10959
- text?: string | undefined;
10960
- mimeType?: string | undefined;
10961
- }[] | undefined;
10962
11082
  isStreaming?: boolean | undefined;
10963
11083
  toolCall?: {
10964
11084
  name: string;
@@ -11442,6 +11562,12 @@ export declare const protocolMessageSchemas: {
11442
11562
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11443
11563
  role?: "user" | "assistant" | "system" | undefined;
11444
11564
  error?: string | undefined;
11565
+ content?: {
11566
+ type: "text" | "image";
11567
+ data?: string | undefined;
11568
+ text?: string | undefined;
11569
+ mimeType?: string | undefined;
11570
+ }[] | undefined;
11445
11571
  text?: string | undefined;
11446
11572
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11447
11573
  plan?: {
@@ -11449,12 +11575,6 @@ export declare const protocolMessageSchemas: {
11449
11575
  id: string;
11450
11576
  text: string;
11451
11577
  }[] | undefined;
11452
- content?: {
11453
- type: "text" | "image";
11454
- data?: string | undefined;
11455
- text?: string | undefined;
11456
- mimeType?: string | undefined;
11457
- }[] | undefined;
11458
11578
  isStreaming?: boolean | undefined;
11459
11579
  toolCall?: {
11460
11580
  status: "running" | "pending" | "completed" | "failed";
@@ -11542,6 +11662,12 @@ export declare const protocolMessageSchemas: {
11542
11662
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11543
11663
  role?: "user" | "assistant" | "system" | undefined;
11544
11664
  error?: string | undefined;
11665
+ content?: {
11666
+ type: "text" | "image";
11667
+ data?: string | undefined;
11668
+ text?: string | undefined;
11669
+ mimeType?: string | undefined;
11670
+ }[] | undefined;
11545
11671
  text?: string | undefined;
11546
11672
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11547
11673
  plan?: {
@@ -11549,12 +11675,6 @@ export declare const protocolMessageSchemas: {
11549
11675
  id: string;
11550
11676
  text: string;
11551
11677
  }[] | undefined;
11552
- content?: {
11553
- type: "text" | "image";
11554
- data?: string | undefined;
11555
- text?: string | undefined;
11556
- mimeType?: string | undefined;
11557
- }[] | undefined;
11558
11678
  isStreaming?: boolean | undefined;
11559
11679
  toolCall?: {
11560
11680
  name: string;
@@ -11661,6 +11781,12 @@ export declare const protocolMessageSchemas: {
11661
11781
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11662
11782
  role?: "user" | "assistant" | "system" | undefined;
11663
11783
  error?: string | undefined;
11784
+ content?: {
11785
+ type: "text" | "image";
11786
+ data?: string | undefined;
11787
+ text?: string | undefined;
11788
+ mimeType?: string | undefined;
11789
+ }[] | undefined;
11664
11790
  text?: string | undefined;
11665
11791
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11666
11792
  plan?: {
@@ -11668,12 +11794,6 @@ export declare const protocolMessageSchemas: {
11668
11794
  id: string;
11669
11795
  text: string;
11670
11796
  }[] | undefined;
11671
- content?: {
11672
- type: "text" | "image";
11673
- data?: string | undefined;
11674
- text?: string | undefined;
11675
- mimeType?: string | undefined;
11676
- }[] | undefined;
11677
11797
  isStreaming?: boolean | undefined;
11678
11798
  toolCall?: {
11679
11799
  status: "running" | "pending" | "completed" | "failed";
@@ -11783,6 +11903,12 @@ export declare const protocolMessageSchemas: {
11783
11903
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11784
11904
  role?: "user" | "assistant" | "system" | undefined;
11785
11905
  error?: string | undefined;
11906
+ content?: {
11907
+ type: "text" | "image";
11908
+ data?: string | undefined;
11909
+ text?: string | undefined;
11910
+ mimeType?: string | undefined;
11911
+ }[] | undefined;
11786
11912
  text?: string | undefined;
11787
11913
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11788
11914
  plan?: {
@@ -11790,12 +11916,6 @@ export declare const protocolMessageSchemas: {
11790
11916
  id: string;
11791
11917
  text: string;
11792
11918
  }[] | undefined;
11793
- content?: {
11794
- type: "text" | "image";
11795
- data?: string | undefined;
11796
- text?: string | undefined;
11797
- mimeType?: string | undefined;
11798
- }[] | undefined;
11799
11919
  isStreaming?: boolean | undefined;
11800
11920
  toolCall?: {
11801
11921
  name: string;
@@ -12259,6 +12379,12 @@ export declare const protocolMessageSchemas: {
12259
12379
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12260
12380
  role?: "user" | "assistant" | "system" | undefined;
12261
12381
  error?: string | undefined;
12382
+ content?: {
12383
+ type: "text" | "image";
12384
+ data?: string | undefined;
12385
+ text?: string | undefined;
12386
+ mimeType?: string | undefined;
12387
+ }[] | undefined;
12262
12388
  text?: string | undefined;
12263
12389
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12264
12390
  plan?: {
@@ -12266,12 +12392,6 @@ export declare const protocolMessageSchemas: {
12266
12392
  id: string;
12267
12393
  text: string;
12268
12394
  }[] | undefined;
12269
- content?: {
12270
- type: "text" | "image";
12271
- data?: string | undefined;
12272
- text?: string | undefined;
12273
- mimeType?: string | undefined;
12274
- }[] | undefined;
12275
12395
  isStreaming?: boolean | undefined;
12276
12396
  toolCall?: {
12277
12397
  status: "running" | "pending" | "completed" | "failed";
@@ -12359,6 +12479,12 @@ export declare const protocolMessageSchemas: {
12359
12479
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12360
12480
  role?: "user" | "assistant" | "system" | undefined;
12361
12481
  error?: string | undefined;
12482
+ content?: {
12483
+ type: "text" | "image";
12484
+ data?: string | undefined;
12485
+ text?: string | undefined;
12486
+ mimeType?: string | undefined;
12487
+ }[] | undefined;
12362
12488
  text?: string | undefined;
12363
12489
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12364
12490
  plan?: {
@@ -12366,12 +12492,6 @@ export declare const protocolMessageSchemas: {
12366
12492
  id: string;
12367
12493
  text: string;
12368
12494
  }[] | undefined;
12369
- content?: {
12370
- type: "text" | "image";
12371
- data?: string | undefined;
12372
- text?: string | undefined;
12373
- mimeType?: string | undefined;
12374
- }[] | undefined;
12375
12495
  isStreaming?: boolean | undefined;
12376
12496
  toolCall?: {
12377
12497
  name: string;
@@ -12779,6 +12899,12 @@ export declare const protocolMessageSchemas: {
12779
12899
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12780
12900
  role?: "user" | "assistant" | "system" | undefined;
12781
12901
  error?: string | undefined;
12902
+ content?: {
12903
+ type: "text" | "image";
12904
+ data?: string | undefined;
12905
+ text?: string | undefined;
12906
+ mimeType?: string | undefined;
12907
+ }[] | undefined;
12782
12908
  text?: string | undefined;
12783
12909
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12784
12910
  plan?: {
@@ -12786,12 +12912,6 @@ export declare const protocolMessageSchemas: {
12786
12912
  id: string;
12787
12913
  text: string;
12788
12914
  }[] | undefined;
12789
- content?: {
12790
- type: "text" | "image";
12791
- data?: string | undefined;
12792
- text?: string | undefined;
12793
- mimeType?: string | undefined;
12794
- }[] | undefined;
12795
12915
  isStreaming?: boolean | undefined;
12796
12916
  toolCall?: {
12797
12917
  status: "running" | "pending" | "completed" | "failed";
@@ -12875,6 +12995,12 @@ export declare const protocolMessageSchemas: {
12875
12995
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12876
12996
  role?: "user" | "assistant" | "system" | undefined;
12877
12997
  error?: string | undefined;
12998
+ content?: {
12999
+ type: "text" | "image";
13000
+ data?: string | undefined;
13001
+ text?: string | undefined;
13002
+ mimeType?: string | undefined;
13003
+ }[] | undefined;
12878
13004
  text?: string | undefined;
12879
13005
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12880
13006
  plan?: {
@@ -12882,12 +13008,6 @@ export declare const protocolMessageSchemas: {
12882
13008
  id: string;
12883
13009
  text: string;
12884
13010
  }[] | undefined;
12885
- content?: {
12886
- type: "text" | "image";
12887
- data?: string | undefined;
12888
- text?: string | undefined;
12889
- mimeType?: string | undefined;
12890
- }[] | undefined;
12891
13011
  isStreaming?: boolean | undefined;
12892
13012
  toolCall?: {
12893
13013
  name: string;
@@ -12993,6 +13113,12 @@ export declare const protocolMessageSchemas: {
12993
13113
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12994
13114
  role?: "user" | "assistant" | "system" | undefined;
12995
13115
  error?: string | undefined;
13116
+ content?: {
13117
+ type: "text" | "image";
13118
+ data?: string | undefined;
13119
+ text?: string | undefined;
13120
+ mimeType?: string | undefined;
13121
+ }[] | undefined;
12996
13122
  text?: string | undefined;
12997
13123
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12998
13124
  plan?: {
@@ -13000,12 +13126,6 @@ export declare const protocolMessageSchemas: {
13000
13126
  id: string;
13001
13127
  text: string;
13002
13128
  }[] | undefined;
13003
- content?: {
13004
- type: "text" | "image";
13005
- data?: string | undefined;
13006
- text?: string | undefined;
13007
- mimeType?: string | undefined;
13008
- }[] | undefined;
13009
13129
  isStreaming?: boolean | undefined;
13010
13130
  toolCall?: {
13011
13131
  status: "running" | "pending" | "completed" | "failed";
@@ -13091,6 +13211,12 @@ export declare const protocolMessageSchemas: {
13091
13211
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
13092
13212
  role?: "user" | "assistant" | "system" | undefined;
13093
13213
  error?: string | undefined;
13214
+ content?: {
13215
+ type: "text" | "image";
13216
+ data?: string | undefined;
13217
+ text?: string | undefined;
13218
+ mimeType?: string | undefined;
13219
+ }[] | undefined;
13094
13220
  text?: string | undefined;
13095
13221
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
13096
13222
  plan?: {
@@ -13098,12 +13224,6 @@ export declare const protocolMessageSchemas: {
13098
13224
  id: string;
13099
13225
  text: string;
13100
13226
  }[] | undefined;
13101
- content?: {
13102
- type: "text" | "image";
13103
- data?: string | undefined;
13104
- text?: string | undefined;
13105
- mimeType?: string | undefined;
13106
- }[] | undefined;
13107
13227
  isStreaming?: boolean | undefined;
13108
13228
  toolCall?: {
13109
13229
  status: "running" | "pending" | "completed" | "failed";
@@ -13209,6 +13329,12 @@ export declare const protocolMessageSchemas: {
13209
13329
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
13210
13330
  role?: "user" | "assistant" | "system" | undefined;
13211
13331
  error?: string | undefined;
13332
+ content?: {
13333
+ type: "text" | "image";
13334
+ data?: string | undefined;
13335
+ text?: string | undefined;
13336
+ mimeType?: string | undefined;
13337
+ }[] | undefined;
13212
13338
  text?: string | undefined;
13213
13339
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
13214
13340
  plan?: {
@@ -13216,12 +13342,6 @@ export declare const protocolMessageSchemas: {
13216
13342
  id: string;
13217
13343
  text: string;
13218
13344
  }[] | undefined;
13219
- content?: {
13220
- type: "text" | "image";
13221
- data?: string | undefined;
13222
- text?: string | undefined;
13223
- mimeType?: string | undefined;
13224
- }[] | undefined;
13225
13345
  isStreaming?: boolean | undefined;
13226
13346
  toolCall?: {
13227
13347
  name: string;
@@ -13307,6 +13427,12 @@ export declare const protocolMessageSchemas: {
13307
13427
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
13308
13428
  role?: "user" | "assistant" | "system" | undefined;
13309
13429
  error?: string | undefined;
13430
+ content?: {
13431
+ type: "text" | "image";
13432
+ data?: string | undefined;
13433
+ text?: string | undefined;
13434
+ mimeType?: string | undefined;
13435
+ }[] | undefined;
13310
13436
  text?: string | undefined;
13311
13437
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
13312
13438
  plan?: {
@@ -13314,12 +13440,6 @@ export declare const protocolMessageSchemas: {
13314
13440
  id: string;
13315
13441
  text: string;
13316
13442
  }[] | undefined;
13317
- content?: {
13318
- type: "text" | "image";
13319
- data?: string | undefined;
13320
- text?: string | undefined;
13321
- mimeType?: string | undefined;
13322
- }[] | undefined;
13323
13443
  isStreaming?: boolean | undefined;
13324
13444
  toolCall?: {
13325
13445
  name: string;