@linkshell/gateway 0.2.42 → 0.2.44

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.
@@ -18,26 +18,26 @@ export declare const envelopeSchema: z.ZodObject<{
18
18
  ack: z.ZodOptional<z.ZodNumber>;
19
19
  payload: z.ZodUnknown;
20
20
  }, "strip", z.ZodTypeAny, {
21
- sessionId: string;
22
21
  type: string;
23
- id: string;
22
+ sessionId: string;
24
23
  timestamp: string;
24
+ id: string;
25
25
  terminalId?: string | undefined;
26
+ ack?: number | undefined;
27
+ seq?: number | undefined;
26
28
  deviceId?: string | undefined;
27
29
  traceId?: string | undefined;
28
- seq?: number | undefined;
29
- ack?: number | undefined;
30
30
  payload?: unknown;
31
31
  }, {
32
- sessionId: string;
33
32
  type: string;
34
- id: string;
33
+ sessionId: string;
35
34
  timestamp: string;
35
+ id: string;
36
36
  terminalId?: string | undefined;
37
+ ack?: number | undefined;
38
+ seq?: number | undefined;
37
39
  deviceId?: string | undefined;
38
40
  traceId?: string | undefined;
39
- seq?: number | undefined;
40
- ack?: number | undefined;
41
41
  payload?: unknown;
42
42
  }>;
43
43
  export type Envelope = z.infer<typeof envelopeSchema>;
@@ -90,7 +90,7 @@ export declare const sessionConnectPayloadSchema: z.ZodObject<{
90
90
  }, "strip", z.ZodTypeAny, {
91
91
  role: "host" | "client";
92
92
  clientName: string;
93
- provider?: "claude" | "codex" | "custom" | undefined;
93
+ provider?: "custom" | "claude" | "codex" | undefined;
94
94
  protocolVersion?: number | undefined;
95
95
  machineId?: string | undefined;
96
96
  hostname?: string | undefined;
@@ -100,7 +100,7 @@ export declare const sessionConnectPayloadSchema: z.ZodObject<{
100
100
  }, {
101
101
  role: "host" | "client";
102
102
  clientName: string;
103
- provider?: "claude" | "codex" | "custom" | undefined;
103
+ provider?: "custom" | "claude" | "codex" | undefined;
104
104
  protocolVersion?: number | undefined;
105
105
  machineId?: string | undefined;
106
106
  hostname?: string | undefined;
@@ -257,8 +257,8 @@ export declare const screenStatusPayloadSchema: z.ZodObject<{
257
257
  error?: string | undefined;
258
258
  }, {
259
259
  active: boolean;
260
- error?: string | undefined;
261
260
  mode?: "webrtc" | "fallback" | "off" | undefined;
261
+ error?: string | undefined;
262
262
  }>;
263
263
  export declare const screenOfferPayloadSchema: z.ZodObject<{
264
264
  sdp: z.ZodString;
@@ -292,10 +292,10 @@ export declare const terminalSpawnPayloadSchema: z.ZodObject<{
292
292
  provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "custom"]>>;
293
293
  }, "strip", z.ZodTypeAny, {
294
294
  cwd: string;
295
- provider?: "claude" | "codex" | "custom" | undefined;
295
+ provider?: "custom" | "claude" | "codex" | undefined;
296
296
  }, {
297
297
  cwd: string;
298
- provider?: "claude" | "codex" | "custom" | undefined;
298
+ provider?: "custom" | "claude" | "codex" | undefined;
299
299
  }>;
300
300
  export declare const terminalInfoSchema: z.ZodObject<{
301
301
  terminalId: z.ZodString;
@@ -450,50 +450,78 @@ export declare const terminalStatusPayloadSchema: z.ZodObject<{
450
450
  permissionRequest: z.ZodString;
451
451
  timestamp: z.ZodNumber;
452
452
  }, "strip", z.ZodTypeAny, {
453
- timestamp: number;
453
+ requestId: string;
454
454
  toolName: string;
455
455
  toolInput: string;
456
456
  permissionRequest: string;
457
- requestId: string;
458
- }, {
459
457
  timestamp: number;
458
+ }, {
459
+ requestId: string;
460
460
  toolName: string;
461
461
  toolInput: string;
462
462
  permissionRequest: string;
463
+ timestamp: number;
464
+ }>>;
465
+ permissionResolution: z.ZodOptional<z.ZodObject<{
466
+ requestId: z.ZodString;
467
+ outcome: z.ZodEnum<["allow", "deny", "cancelled"]>;
468
+ source: z.ZodOptional<z.ZodString>;
469
+ delivered: z.ZodBoolean;
470
+ }, "strip", z.ZodTypeAny, {
463
471
  requestId: string;
472
+ outcome: "allow" | "deny" | "cancelled";
473
+ delivered: boolean;
474
+ source?: string | undefined;
475
+ }, {
476
+ requestId: string;
477
+ outcome: "allow" | "deny" | "cancelled";
478
+ delivered: boolean;
479
+ source?: string | undefined;
464
480
  }>>;
465
481
  pendingPermissionCount: z.ZodOptional<z.ZodNumber>;
466
482
  machineId: z.ZodOptional<z.ZodString>;
467
483
  }, "strip", z.ZodTypeAny, {
468
484
  phase: "error" | "thinking" | "tool_use" | "outputting" | "waiting" | "idle";
469
- seq?: number | undefined;
470
485
  machineId?: string | undefined;
486
+ seq?: number | undefined;
471
487
  toolName?: string | undefined;
472
488
  toolInput?: string | undefined;
473
489
  permissionRequest?: string | undefined;
474
490
  summary?: string | undefined;
475
491
  topPermission?: {
476
- timestamp: number;
492
+ requestId: string;
477
493
  toolName: string;
478
494
  toolInput: string;
479
495
  permissionRequest: string;
496
+ timestamp: number;
497
+ } | undefined;
498
+ permissionResolution?: {
480
499
  requestId: string;
500
+ outcome: "allow" | "deny" | "cancelled";
501
+ delivered: boolean;
502
+ source?: string | undefined;
481
503
  } | undefined;
482
504
  pendingPermissionCount?: number | undefined;
483
505
  }, {
484
506
  phase: "error" | "thinking" | "tool_use" | "outputting" | "waiting" | "idle";
485
- seq?: number | undefined;
486
507
  machineId?: string | undefined;
508
+ seq?: number | undefined;
487
509
  toolName?: string | undefined;
488
510
  toolInput?: string | undefined;
489
511
  permissionRequest?: string | undefined;
490
512
  summary?: string | undefined;
491
513
  topPermission?: {
492
- timestamp: number;
514
+ requestId: string;
493
515
  toolName: string;
494
516
  toolInput: string;
495
517
  permissionRequest: string;
518
+ timestamp: number;
519
+ } | undefined;
520
+ permissionResolution?: {
496
521
  requestId: string;
522
+ outcome: "allow" | "deny" | "cancelled";
523
+ delivered: boolean;
524
+ source?: string | undefined;
497
525
  } | undefined;
498
526
  pendingPermissionCount?: number | undefined;
499
527
  }>;
@@ -517,6 +545,28 @@ export declare const permissionDecisionPayloadSchema: z.ZodObject<{
517
545
  requestId: string;
518
546
  decision: "allow" | "deny";
519
547
  }>;
548
+ export declare const permissionDecisionResultPayloadSchema: z.ZodObject<{
549
+ requestId: z.ZodString;
550
+ decision: z.ZodEnum<["allow", "deny"]>;
551
+ resolved: z.ZodBoolean;
552
+ delivered: z.ZodBoolean;
553
+ source: z.ZodOptional<z.ZodString>;
554
+ message: z.ZodOptional<z.ZodString>;
555
+ }, "strip", z.ZodTypeAny, {
556
+ requestId: string;
557
+ delivered: boolean;
558
+ decision: "allow" | "deny";
559
+ resolved: boolean;
560
+ message?: string | undefined;
561
+ source?: string | undefined;
562
+ }, {
563
+ requestId: string;
564
+ delivered: boolean;
565
+ decision: "allow" | "deny";
566
+ resolved: boolean;
567
+ message?: string | undefined;
568
+ source?: string | undefined;
569
+ }>;
520
570
  export declare const errorPayloadSchema: z.ZodObject<{
521
571
  code: z.ZodString;
522
572
  message: z.ZodString;
@@ -535,18 +585,18 @@ export declare const tunnelRequestPayloadSchema: z.ZodObject<{
535
585
  body: z.ZodNullable<z.ZodString>;
536
586
  port: z.ZodNumber;
537
587
  }, "strip", z.ZodTypeAny, {
538
- headers: Record<string, string>;
539
588
  requestId: string;
589
+ body: string | null;
540
590
  method: string;
541
591
  url: string;
542
- body: string | null;
592
+ headers: Record<string, string>;
543
593
  port: number;
544
594
  }, {
545
- headers: Record<string, string>;
546
595
  requestId: string;
596
+ body: string | null;
547
597
  method: string;
548
598
  url: string;
549
- body: string | null;
599
+ headers: Record<string, string>;
550
600
  port: number;
551
601
  }>;
552
602
  export declare const tunnelResponsePayloadSchema: z.ZodObject<{
@@ -556,16 +606,16 @@ export declare const tunnelResponsePayloadSchema: z.ZodObject<{
556
606
  body: z.ZodString;
557
607
  isFinal: z.ZodBoolean;
558
608
  }, "strip", z.ZodTypeAny, {
559
- headers: Record<string, string>;
560
- isFinal: boolean;
561
609
  requestId: string;
562
610
  body: string;
611
+ isFinal: boolean;
612
+ headers: Record<string, string>;
563
613
  statusCode: number;
564
614
  }, {
565
- headers: Record<string, string>;
566
- isFinal: boolean;
567
615
  requestId: string;
568
616
  body: string;
617
+ isFinal: boolean;
618
+ headers: Record<string, string>;
569
619
  statusCode: number;
570
620
  }>;
571
621
  export declare const tunnelWsDataPayloadSchema: z.ZodObject<{
@@ -573,12 +623,12 @@ export declare const tunnelWsDataPayloadSchema: z.ZodObject<{
573
623
  data: z.ZodString;
574
624
  isBinary: z.ZodBoolean;
575
625
  }, "strip", z.ZodTypeAny, {
576
- data: string;
577
626
  requestId: string;
627
+ data: string;
578
628
  isBinary: boolean;
579
629
  }, {
580
- data: string;
581
630
  requestId: string;
631
+ data: string;
582
632
  isBinary: boolean;
583
633
  }>;
584
634
  export declare const tunnelWsClosePayloadSchema: z.ZodObject<{
@@ -638,14 +688,14 @@ export declare const agentMessageSchema: z.ZodObject<{
638
688
  createdAt: z.ZodNumber;
639
689
  isStreaming: z.ZodOptional<z.ZodBoolean>;
640
690
  }, "strip", z.ZodTypeAny, {
641
- id: string;
642
691
  role: "user" | "assistant" | "system";
692
+ id: string;
643
693
  content: string;
644
694
  createdAt: number;
645
695
  isStreaming?: boolean | undefined;
646
696
  }, {
647
- id: string;
648
697
  role: "user" | "assistant" | "system";
698
+ id: string;
649
699
  content: string;
650
700
  createdAt: number;
651
701
  isStreaming?: boolean | undefined;
@@ -659,14 +709,14 @@ export declare const agentToolCallSchema: z.ZodObject<{
659
709
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
660
710
  }, "strip", z.ZodTypeAny, {
661
711
  status: "running" | "pending" | "completed" | "failed";
662
- id: string;
663
712
  name: string;
713
+ id: string;
664
714
  createdAt?: number | undefined;
665
715
  input?: string | undefined;
666
716
  output?: string | undefined;
667
717
  }, {
668
- id: string;
669
718
  name: string;
719
+ id: string;
670
720
  status?: "running" | "pending" | "completed" | "failed" | undefined;
671
721
  createdAt?: number | undefined;
672
722
  input?: string | undefined;
@@ -735,25 +785,25 @@ export declare const agentCommandDescriptorSchema: z.ZodObject<{
735
785
  disabledReason: z.ZodOptional<z.ZodString>;
736
786
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
737
787
  }, "strip", z.ZodTypeAny, {
738
- id: string;
739
788
  name: string;
740
- title: string;
741
789
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
790
+ id: string;
791
+ title: string;
742
792
  argsMode: "none" | "optional" | "required" | "raw";
743
793
  executionKind: "prompt" | "native" | "local_ui";
744
- provider?: "claude" | "codex" | "custom" | undefined;
794
+ provider?: "custom" | "claude" | "codex" | undefined;
745
795
  description?: string | undefined;
746
796
  category?: string | undefined;
747
797
  requiresIdle?: boolean | undefined;
748
798
  destructive?: boolean | undefined;
749
799
  disabledReason?: string | undefined;
750
800
  }, {
751
- id: string;
752
801
  name: string;
802
+ id: string;
753
803
  title: string;
754
- provider?: "claude" | "codex" | "custom" | undefined;
755
- description?: string | undefined;
804
+ provider?: "custom" | "claude" | "codex" | undefined;
756
805
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
806
+ description?: string | undefined;
757
807
  category?: string | undefined;
758
808
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
759
809
  requiresIdle?: boolean | undefined;
@@ -810,25 +860,25 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
810
860
  disabledReason: z.ZodOptional<z.ZodString>;
811
861
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
812
862
  }, "strip", z.ZodTypeAny, {
813
- id: string;
814
863
  name: string;
815
- title: string;
816
864
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
865
+ id: string;
866
+ title: string;
817
867
  argsMode: "none" | "optional" | "required" | "raw";
818
868
  executionKind: "prompt" | "native" | "local_ui";
819
- provider?: "claude" | "codex" | "custom" | undefined;
869
+ provider?: "custom" | "claude" | "codex" | undefined;
820
870
  description?: string | undefined;
821
871
  category?: string | undefined;
822
872
  requiresIdle?: boolean | undefined;
823
873
  destructive?: boolean | undefined;
824
874
  disabledReason?: string | undefined;
825
875
  }, {
826
- id: string;
827
876
  name: string;
877
+ id: string;
828
878
  title: string;
829
- provider?: "claude" | "codex" | "custom" | undefined;
830
- description?: string | undefined;
879
+ provider?: "custom" | "claude" | "codex" | undefined;
831
880
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
881
+ description?: string | undefined;
832
882
  category?: string | undefined;
833
883
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
834
884
  requiresIdle?: boolean | undefined;
@@ -852,8 +902,8 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
852
902
  currentMode: z.ZodOptional<z.ZodString>;
853
903
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
854
904
  }, "strip", z.ZodTypeAny, {
855
- id: "claude" | "codex" | "custom";
856
905
  enabled: boolean;
906
+ id: "custom" | "claude" | "codex";
857
907
  label: string;
858
908
  reason?: string | undefined;
859
909
  supportsImages?: boolean | undefined;
@@ -868,13 +918,13 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
868
918
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
869
919
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
870
920
  commands?: {
871
- id: string;
872
921
  name: string;
873
- title: string;
874
922
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
923
+ id: string;
924
+ title: string;
875
925
  argsMode: "none" | "optional" | "required" | "raw";
876
926
  executionKind: "prompt" | "native" | "local_ui";
877
- provider?: "claude" | "codex" | "custom" | undefined;
927
+ provider?: "custom" | "claude" | "codex" | undefined;
878
928
  description?: string | undefined;
879
929
  category?: string | undefined;
880
930
  requiresIdle?: boolean | undefined;
@@ -889,8 +939,8 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
889
939
  currentMode?: string | undefined;
890
940
  features?: Record<string, boolean> | undefined;
891
941
  }, {
892
- id: "claude" | "codex" | "custom";
893
942
  enabled: boolean;
943
+ id: "custom" | "claude" | "codex";
894
944
  label: string;
895
945
  reason?: string | undefined;
896
946
  supportsImages?: boolean | undefined;
@@ -905,12 +955,12 @@ export declare const agentProviderCapabilitySchema: z.ZodObject<{
905
955
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
906
956
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
907
957
  commands?: {
908
- id: string;
909
958
  name: string;
959
+ id: string;
910
960
  title: string;
911
- provider?: "claude" | "codex" | "custom" | undefined;
912
- description?: string | undefined;
961
+ provider?: "custom" | "claude" | "codex" | undefined;
913
962
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
963
+ description?: string | undefined;
914
964
  category?: string | undefined;
915
965
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
916
966
  requiresIdle?: boolean | undefined;
@@ -966,25 +1016,25 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
966
1016
  disabledReason: z.ZodOptional<z.ZodString>;
967
1017
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
968
1018
  }, "strip", z.ZodTypeAny, {
969
- id: string;
970
1019
  name: string;
971
- title: string;
972
1020
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
1021
+ id: string;
1022
+ title: string;
973
1023
  argsMode: "none" | "optional" | "required" | "raw";
974
1024
  executionKind: "prompt" | "native" | "local_ui";
975
- provider?: "claude" | "codex" | "custom" | undefined;
1025
+ provider?: "custom" | "claude" | "codex" | undefined;
976
1026
  description?: string | undefined;
977
1027
  category?: string | undefined;
978
1028
  requiresIdle?: boolean | undefined;
979
1029
  destructive?: boolean | undefined;
980
1030
  disabledReason?: string | undefined;
981
1031
  }, {
982
- id: string;
983
1032
  name: string;
1033
+ id: string;
984
1034
  title: string;
985
- provider?: "claude" | "codex" | "custom" | undefined;
986
- description?: string | undefined;
1035
+ provider?: "custom" | "claude" | "codex" | undefined;
987
1036
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
1037
+ description?: string | undefined;
988
1038
  category?: string | undefined;
989
1039
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
990
1040
  requiresIdle?: boolean | undefined;
@@ -1008,8 +1058,8 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1008
1058
  currentMode: z.ZodOptional<z.ZodString>;
1009
1059
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1010
1060
  }, "strip", z.ZodTypeAny, {
1011
- id: "claude" | "codex" | "custom";
1012
1061
  enabled: boolean;
1062
+ id: "custom" | "claude" | "codex";
1013
1063
  label: string;
1014
1064
  reason?: string | undefined;
1015
1065
  supportsImages?: boolean | undefined;
@@ -1024,13 +1074,13 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1024
1074
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1025
1075
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1026
1076
  commands?: {
1027
- id: string;
1028
1077
  name: string;
1029
- title: string;
1030
1078
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
1079
+ id: string;
1080
+ title: string;
1031
1081
  argsMode: "none" | "optional" | "required" | "raw";
1032
1082
  executionKind: "prompt" | "native" | "local_ui";
1033
- provider?: "claude" | "codex" | "custom" | undefined;
1083
+ provider?: "custom" | "claude" | "codex" | undefined;
1034
1084
  description?: string | undefined;
1035
1085
  category?: string | undefined;
1036
1086
  requiresIdle?: boolean | undefined;
@@ -1045,8 +1095,8 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1045
1095
  currentMode?: string | undefined;
1046
1096
  features?: Record<string, boolean> | undefined;
1047
1097
  }, {
1048
- id: "claude" | "codex" | "custom";
1049
1098
  enabled: boolean;
1099
+ id: "custom" | "claude" | "codex";
1050
1100
  label: string;
1051
1101
  reason?: string | undefined;
1052
1102
  supportsImages?: boolean | undefined;
@@ -1061,12 +1111,12 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1061
1111
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1062
1112
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1063
1113
  commands?: {
1064
- id: string;
1065
1114
  name: string;
1115
+ id: string;
1066
1116
  title: string;
1067
- provider?: "claude" | "codex" | "custom" | undefined;
1068
- description?: string | undefined;
1117
+ provider?: "custom" | "claude" | "codex" | undefined;
1069
1118
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
1119
+ description?: string | undefined;
1070
1120
  category?: string | undefined;
1071
1121
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
1072
1122
  requiresIdle?: boolean | undefined;
@@ -1100,13 +1150,13 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1100
1150
  supportsSessionList: boolean;
1101
1151
  supportsSessionLoad: boolean;
1102
1152
  supportsAudio: boolean;
1103
- error?: string | undefined;
1104
- provider?: "claude" | "codex" | "custom" | undefined;
1153
+ provider?: "custom" | "claude" | "codex" | undefined;
1105
1154
  protocolVersion?: number | undefined;
1106
1155
  machineId?: string | undefined;
1156
+ error?: string | undefined;
1107
1157
  providers?: {
1108
- id: "claude" | "codex" | "custom";
1109
1158
  enabled: boolean;
1159
+ id: "custom" | "claude" | "codex";
1110
1160
  label: string;
1111
1161
  reason?: string | undefined;
1112
1162
  supportsImages?: boolean | undefined;
@@ -1121,13 +1171,13 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1121
1171
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1122
1172
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1123
1173
  commands?: {
1124
- id: string;
1125
1174
  name: string;
1126
- title: string;
1127
1175
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
1176
+ id: string;
1177
+ title: string;
1128
1178
  argsMode: "none" | "optional" | "required" | "raw";
1129
1179
  executionKind: "prompt" | "native" | "local_ui";
1130
- provider?: "claude" | "codex" | "custom" | undefined;
1180
+ provider?: "custom" | "claude" | "codex" | undefined;
1131
1181
  description?: string | undefined;
1132
1182
  category?: string | undefined;
1133
1183
  requiresIdle?: boolean | undefined;
@@ -1144,17 +1194,17 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1144
1194
  }[] | undefined;
1145
1195
  }, {
1146
1196
  enabled: boolean;
1147
- error?: string | undefined;
1148
- provider?: "claude" | "codex" | "custom" | undefined;
1197
+ provider?: "custom" | "claude" | "codex" | undefined;
1149
1198
  protocolVersion?: number | undefined;
1150
1199
  machineId?: string | undefined;
1200
+ error?: string | undefined;
1151
1201
  supportsImages?: boolean | undefined;
1152
1202
  supportsPermission?: boolean | undefined;
1153
1203
  supportsPlan?: boolean | undefined;
1154
1204
  supportsCancel?: boolean | undefined;
1155
1205
  providers?: {
1156
- id: "claude" | "codex" | "custom";
1157
1206
  enabled: boolean;
1207
+ id: "custom" | "claude" | "codex";
1158
1208
  label: string;
1159
1209
  reason?: string | undefined;
1160
1210
  supportsImages?: boolean | undefined;
@@ -1169,12 +1219,12 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
1169
1219
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1170
1220
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1171
1221
  commands?: {
1172
- id: string;
1173
1222
  name: string;
1223
+ id: string;
1174
1224
  title: string;
1175
- provider?: "claude" | "codex" | "custom" | undefined;
1176
- description?: string | undefined;
1225
+ provider?: "custom" | "claude" | "codex" | undefined;
1177
1226
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
1227
+ description?: string | undefined;
1178
1228
  category?: string | undefined;
1179
1229
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
1180
1230
  requiresIdle?: boolean | undefined;
@@ -1200,11 +1250,11 @@ export declare const agentSessionNewPayloadSchema: z.ZodObject<{
1200
1250
  provider: z.ZodOptional<z.ZodEnum<["codex", "claude", "custom"]>>;
1201
1251
  mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1202
1252
  }, "strip", z.ZodTypeAny, {
1203
- provider?: "claude" | "codex" | "custom" | undefined;
1253
+ provider?: "custom" | "claude" | "codex" | undefined;
1204
1254
  cwd?: string | undefined;
1205
1255
  mcpServers?: Record<string, unknown> | undefined;
1206
1256
  }, {
1207
- provider?: "claude" | "codex" | "custom" | undefined;
1257
+ provider?: "custom" | "claude" | "codex" | undefined;
1208
1258
  cwd?: string | undefined;
1209
1259
  mcpServers?: Record<string, unknown> | undefined;
1210
1260
  }>;
@@ -1283,14 +1333,14 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1283
1333
  createdAt: z.ZodNumber;
1284
1334
  isStreaming: z.ZodOptional<z.ZodBoolean>;
1285
1335
  }, "strip", z.ZodTypeAny, {
1286
- id: string;
1287
1336
  role: "user" | "assistant" | "system";
1337
+ id: string;
1288
1338
  content: string;
1289
1339
  createdAt: number;
1290
1340
  isStreaming?: boolean | undefined;
1291
1341
  }, {
1292
- id: string;
1293
1342
  role: "user" | "assistant" | "system";
1343
+ id: string;
1294
1344
  content: string;
1295
1345
  createdAt: number;
1296
1346
  isStreaming?: boolean | undefined;
@@ -1305,14 +1355,14 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1305
1355
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
1306
1356
  }, "strip", z.ZodTypeAny, {
1307
1357
  status: "running" | "pending" | "completed" | "failed";
1308
- id: string;
1309
1358
  name: string;
1359
+ id: string;
1310
1360
  createdAt?: number | undefined;
1311
1361
  input?: string | undefined;
1312
1362
  output?: string | undefined;
1313
1363
  }, {
1314
- id: string;
1315
1364
  name: string;
1365
+ id: string;
1316
1366
  status?: "running" | "pending" | "completed" | "failed" | undefined;
1317
1367
  createdAt?: number | undefined;
1318
1368
  input?: string | undefined;
@@ -1334,17 +1384,17 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1334
1384
  status: z.ZodOptional<z.ZodEnum<["idle", "running", "waiting_permission", "error"]>>;
1335
1385
  error: z.ZodOptional<z.ZodString>;
1336
1386
  }, "strip", z.ZodTypeAny, {
1337
- kind: "error" | "message" | "status" | "message_delta" | "tool_call" | "tool_result" | "plan";
1338
- error?: string | undefined;
1387
+ kind: "message" | "status" | "error" | "message_delta" | "tool_call" | "tool_result" | "plan";
1339
1388
  message?: {
1340
- id: string;
1341
1389
  role: "user" | "assistant" | "system";
1390
+ id: string;
1342
1391
  content: string;
1343
1392
  createdAt: number;
1344
1393
  isStreaming?: boolean | undefined;
1345
1394
  } | undefined;
1346
1395
  status?: "error" | "running" | "idle" | "waiting_permission" | undefined;
1347
1396
  agentSessionId?: string | undefined;
1397
+ error?: string | undefined;
1348
1398
  plan?: {
1349
1399
  status: "pending" | "completed" | "in_progress";
1350
1400
  id: string;
@@ -1353,24 +1403,24 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1353
1403
  delta?: string | undefined;
1354
1404
  toolCall?: {
1355
1405
  status: "running" | "pending" | "completed" | "failed";
1356
- id: string;
1357
1406
  name: string;
1407
+ id: string;
1358
1408
  createdAt?: number | undefined;
1359
1409
  input?: string | undefined;
1360
1410
  output?: string | undefined;
1361
1411
  } | undefined;
1362
1412
  }, {
1363
- kind: "error" | "message" | "status" | "message_delta" | "tool_call" | "tool_result" | "plan";
1364
- error?: string | undefined;
1413
+ kind: "message" | "status" | "error" | "message_delta" | "tool_call" | "tool_result" | "plan";
1365
1414
  message?: {
1366
- id: string;
1367
1415
  role: "user" | "assistant" | "system";
1416
+ id: string;
1368
1417
  content: string;
1369
1418
  createdAt: number;
1370
1419
  isStreaming?: boolean | undefined;
1371
1420
  } | undefined;
1372
1421
  status?: "error" | "running" | "idle" | "waiting_permission" | undefined;
1373
1422
  agentSessionId?: string | undefined;
1423
+ error?: string | undefined;
1374
1424
  plan?: {
1375
1425
  status: "pending" | "completed" | "in_progress";
1376
1426
  id: string;
@@ -1378,8 +1428,8 @@ export declare const agentUpdatePayloadSchema: z.ZodObject<{
1378
1428
  }[] | undefined;
1379
1429
  delta?: string | undefined;
1380
1430
  toolCall?: {
1381
- id: string;
1382
1431
  name: string;
1432
+ id: string;
1383
1433
  status?: "running" | "pending" | "completed" | "failed" | undefined;
1384
1434
  createdAt?: number | undefined;
1385
1435
  input?: string | undefined;
@@ -1413,9 +1463,9 @@ export declare const agentPermissionRequestPayloadSchema: z.ZodObject<{
1413
1463
  kind: "allow" | "deny" | "other";
1414
1464
  }[];
1415
1465
  requestId: string;
1466
+ agentSessionId?: string | undefined;
1416
1467
  toolName?: string | undefined;
1417
1468
  toolInput?: string | undefined;
1418
- agentSessionId?: string | undefined;
1419
1469
  context?: string | undefined;
1420
1470
  }, {
1421
1471
  requestId: string;
@@ -1424,9 +1474,9 @@ export declare const agentPermissionRequestPayloadSchema: z.ZodObject<{
1424
1474
  label: string;
1425
1475
  kind?: "allow" | "deny" | "other" | undefined;
1426
1476
  }[] | undefined;
1477
+ agentSessionId?: string | undefined;
1427
1478
  toolName?: string | undefined;
1428
1479
  toolInput?: string | undefined;
1429
- agentSessionId?: string | undefined;
1430
1480
  context?: string | undefined;
1431
1481
  }>;
1432
1482
  export declare const agentPermissionResponsePayloadSchema: z.ZodObject<{
@@ -1437,13 +1487,13 @@ export declare const agentPermissionResponsePayloadSchema: z.ZodObject<{
1437
1487
  }, "strip", z.ZodTypeAny, {
1438
1488
  requestId: string;
1439
1489
  outcome: "allow" | "deny" | "cancelled";
1440
- agentSessionId?: string | undefined;
1441
1490
  optionId?: string | undefined;
1491
+ agentSessionId?: string | undefined;
1442
1492
  }, {
1443
1493
  requestId: string;
1444
1494
  outcome: "allow" | "deny" | "cancelled";
1445
- agentSessionId?: string | undefined;
1446
1495
  optionId?: string | undefined;
1496
+ agentSessionId?: string | undefined;
1447
1497
  }>;
1448
1498
  export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1449
1499
  agentSessionId: z.ZodOptional<z.ZodString>;
@@ -1487,25 +1537,25 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1487
1537
  disabledReason: z.ZodOptional<z.ZodString>;
1488
1538
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
1489
1539
  }, "strip", z.ZodTypeAny, {
1490
- id: string;
1491
1540
  name: string;
1492
- title: string;
1493
1541
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
1542
+ id: string;
1543
+ title: string;
1494
1544
  argsMode: "none" | "optional" | "required" | "raw";
1495
1545
  executionKind: "prompt" | "native" | "local_ui";
1496
- provider?: "claude" | "codex" | "custom" | undefined;
1546
+ provider?: "custom" | "claude" | "codex" | undefined;
1497
1547
  description?: string | undefined;
1498
1548
  category?: string | undefined;
1499
1549
  requiresIdle?: boolean | undefined;
1500
1550
  destructive?: boolean | undefined;
1501
1551
  disabledReason?: string | undefined;
1502
1552
  }, {
1503
- id: string;
1504
1553
  name: string;
1554
+ id: string;
1505
1555
  title: string;
1506
- provider?: "claude" | "codex" | "custom" | undefined;
1507
- description?: string | undefined;
1556
+ provider?: "custom" | "claude" | "codex" | undefined;
1508
1557
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
1558
+ description?: string | undefined;
1509
1559
  category?: string | undefined;
1510
1560
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
1511
1561
  requiresIdle?: boolean | undefined;
@@ -1529,8 +1579,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1529
1579
  currentMode: z.ZodOptional<z.ZodString>;
1530
1580
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1531
1581
  }, "strip", z.ZodTypeAny, {
1532
- id: "claude" | "codex" | "custom";
1533
1582
  enabled: boolean;
1583
+ id: "custom" | "claude" | "codex";
1534
1584
  label: string;
1535
1585
  reason?: string | undefined;
1536
1586
  supportsImages?: boolean | undefined;
@@ -1545,13 +1595,13 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1545
1595
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1546
1596
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1547
1597
  commands?: {
1548
- id: string;
1549
1598
  name: string;
1550
- title: string;
1551
1599
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
1600
+ id: string;
1601
+ title: string;
1552
1602
  argsMode: "none" | "optional" | "required" | "raw";
1553
1603
  executionKind: "prompt" | "native" | "local_ui";
1554
- provider?: "claude" | "codex" | "custom" | undefined;
1604
+ provider?: "custom" | "claude" | "codex" | undefined;
1555
1605
  description?: string | undefined;
1556
1606
  category?: string | undefined;
1557
1607
  requiresIdle?: boolean | undefined;
@@ -1566,8 +1616,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1566
1616
  currentMode?: string | undefined;
1567
1617
  features?: Record<string, boolean> | undefined;
1568
1618
  }, {
1569
- id: "claude" | "codex" | "custom";
1570
1619
  enabled: boolean;
1620
+ id: "custom" | "claude" | "codex";
1571
1621
  label: string;
1572
1622
  reason?: string | undefined;
1573
1623
  supportsImages?: boolean | undefined;
@@ -1582,12 +1632,12 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1582
1632
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1583
1633
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1584
1634
  commands?: {
1585
- id: string;
1586
1635
  name: string;
1636
+ id: string;
1587
1637
  title: string;
1588
- provider?: "claude" | "codex" | "custom" | undefined;
1589
- description?: string | undefined;
1638
+ provider?: "custom" | "claude" | "codex" | undefined;
1590
1639
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
1640
+ description?: string | undefined;
1591
1641
  category?: string | undefined;
1592
1642
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
1593
1643
  requiresIdle?: boolean | undefined;
@@ -1621,13 +1671,13 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1621
1671
  supportsSessionList: boolean;
1622
1672
  supportsSessionLoad: boolean;
1623
1673
  supportsAudio: boolean;
1624
- error?: string | undefined;
1625
- provider?: "claude" | "codex" | "custom" | undefined;
1674
+ provider?: "custom" | "claude" | "codex" | undefined;
1626
1675
  protocolVersion?: number | undefined;
1627
1676
  machineId?: string | undefined;
1677
+ error?: string | undefined;
1628
1678
  providers?: {
1629
- id: "claude" | "codex" | "custom";
1630
1679
  enabled: boolean;
1680
+ id: "custom" | "claude" | "codex";
1631
1681
  label: string;
1632
1682
  reason?: string | undefined;
1633
1683
  supportsImages?: boolean | undefined;
@@ -1642,13 +1692,13 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1642
1692
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1643
1693
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1644
1694
  commands?: {
1645
- id: string;
1646
1695
  name: string;
1647
- title: string;
1648
1696
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
1697
+ id: string;
1698
+ title: string;
1649
1699
  argsMode: "none" | "optional" | "required" | "raw";
1650
1700
  executionKind: "prompt" | "native" | "local_ui";
1651
- provider?: "claude" | "codex" | "custom" | undefined;
1701
+ provider?: "custom" | "claude" | "codex" | undefined;
1652
1702
  description?: string | undefined;
1653
1703
  category?: string | undefined;
1654
1704
  requiresIdle?: boolean | undefined;
@@ -1665,17 +1715,17 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1665
1715
  }[] | undefined;
1666
1716
  }, {
1667
1717
  enabled: boolean;
1668
- error?: string | undefined;
1669
- provider?: "claude" | "codex" | "custom" | undefined;
1718
+ provider?: "custom" | "claude" | "codex" | undefined;
1670
1719
  protocolVersion?: number | undefined;
1671
1720
  machineId?: string | undefined;
1721
+ error?: string | undefined;
1672
1722
  supportsImages?: boolean | undefined;
1673
1723
  supportsPermission?: boolean | undefined;
1674
1724
  supportsPlan?: boolean | undefined;
1675
1725
  supportsCancel?: boolean | undefined;
1676
1726
  providers?: {
1677
- id: "claude" | "codex" | "custom";
1678
1727
  enabled: boolean;
1728
+ id: "custom" | "claude" | "codex";
1679
1729
  label: string;
1680
1730
  reason?: string | undefined;
1681
1731
  supportsImages?: boolean | undefined;
@@ -1690,12 +1740,12 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1690
1740
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1691
1741
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1692
1742
  commands?: {
1693
- id: string;
1694
1743
  name: string;
1744
+ id: string;
1695
1745
  title: string;
1696
- provider?: "claude" | "codex" | "custom" | undefined;
1697
- description?: string | undefined;
1746
+ provider?: "custom" | "claude" | "codex" | undefined;
1698
1747
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
1748
+ description?: string | undefined;
1699
1749
  category?: string | undefined;
1700
1750
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
1701
1751
  requiresIdle?: boolean | undefined;
@@ -1722,14 +1772,14 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1722
1772
  createdAt: z.ZodNumber;
1723
1773
  isStreaming: z.ZodOptional<z.ZodBoolean>;
1724
1774
  }, "strip", z.ZodTypeAny, {
1725
- id: string;
1726
1775
  role: "user" | "assistant" | "system";
1776
+ id: string;
1727
1777
  content: string;
1728
1778
  createdAt: number;
1729
1779
  isStreaming?: boolean | undefined;
1730
1780
  }, {
1731
- id: string;
1732
1781
  role: "user" | "assistant" | "system";
1782
+ id: string;
1733
1783
  content: string;
1734
1784
  createdAt: number;
1735
1785
  isStreaming?: boolean | undefined;
@@ -1743,14 +1793,14 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1743
1793
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
1744
1794
  }, "strip", z.ZodTypeAny, {
1745
1795
  status: "running" | "pending" | "completed" | "failed";
1746
- id: string;
1747
1796
  name: string;
1797
+ id: string;
1748
1798
  createdAt?: number | undefined;
1749
1799
  input?: string | undefined;
1750
1800
  output?: string | undefined;
1751
1801
  }, {
1752
- id: string;
1753
1802
  name: string;
1803
+ id: string;
1754
1804
  status?: "running" | "pending" | "completed" | "failed" | undefined;
1755
1805
  createdAt?: number | undefined;
1756
1806
  input?: string | undefined;
@@ -1800,16 +1850,16 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1800
1850
  }, "strip", z.ZodTypeAny, {
1801
1851
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
1802
1852
  messages: {
1803
- id: string;
1804
1853
  role: "user" | "assistant" | "system";
1854
+ id: string;
1805
1855
  content: string;
1806
1856
  createdAt: number;
1807
1857
  isStreaming?: boolean | undefined;
1808
1858
  }[];
1809
1859
  toolCalls: {
1810
1860
  status: "running" | "pending" | "completed" | "failed";
1811
- id: string;
1812
1861
  name: string;
1862
+ id: string;
1813
1863
  createdAt?: number | undefined;
1814
1864
  input?: string | undefined;
1815
1865
  output?: string | undefined;
@@ -1825,8 +1875,8 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1825
1875
  toolInput?: string | undefined;
1826
1876
  context?: string | undefined;
1827
1877
  }[];
1828
- error?: string | undefined;
1829
1878
  agentSessionId?: string | undefined;
1879
+ error?: string | undefined;
1830
1880
  capabilities?: {
1831
1881
  enabled: boolean;
1832
1882
  supportsImages: boolean;
@@ -1836,13 +1886,13 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1836
1886
  supportsSessionList: boolean;
1837
1887
  supportsSessionLoad: boolean;
1838
1888
  supportsAudio: boolean;
1839
- error?: string | undefined;
1840
- provider?: "claude" | "codex" | "custom" | undefined;
1889
+ provider?: "custom" | "claude" | "codex" | undefined;
1841
1890
  protocolVersion?: number | undefined;
1842
1891
  machineId?: string | undefined;
1892
+ error?: string | undefined;
1843
1893
  providers?: {
1844
- id: "claude" | "codex" | "custom";
1845
1894
  enabled: boolean;
1895
+ id: "custom" | "claude" | "codex";
1846
1896
  label: string;
1847
1897
  reason?: string | undefined;
1848
1898
  supportsImages?: boolean | undefined;
@@ -1857,13 +1907,13 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1857
1907
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1858
1908
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1859
1909
  commands?: {
1860
- id: string;
1861
1910
  name: string;
1862
- title: string;
1863
1911
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
1912
+ id: string;
1913
+ title: string;
1864
1914
  argsMode: "none" | "optional" | "required" | "raw";
1865
1915
  executionKind: "prompt" | "native" | "local_ui";
1866
- provider?: "claude" | "codex" | "custom" | undefined;
1916
+ provider?: "custom" | "claude" | "codex" | undefined;
1867
1917
  description?: string | undefined;
1868
1918
  category?: string | undefined;
1869
1919
  requiresIdle?: boolean | undefined;
@@ -1880,22 +1930,22 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1880
1930
  }[] | undefined;
1881
1931
  } | undefined;
1882
1932
  }, {
1883
- error?: string | undefined;
1884
1933
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
1885
1934
  agentSessionId?: string | undefined;
1935
+ error?: string | undefined;
1886
1936
  capabilities?: {
1887
1937
  enabled: boolean;
1888
- error?: string | undefined;
1889
- provider?: "claude" | "codex" | "custom" | undefined;
1938
+ provider?: "custom" | "claude" | "codex" | undefined;
1890
1939
  protocolVersion?: number | undefined;
1891
1940
  machineId?: string | undefined;
1941
+ error?: string | undefined;
1892
1942
  supportsImages?: boolean | undefined;
1893
1943
  supportsPermission?: boolean | undefined;
1894
1944
  supportsPlan?: boolean | undefined;
1895
1945
  supportsCancel?: boolean | undefined;
1896
1946
  providers?: {
1897
- id: "claude" | "codex" | "custom";
1898
1947
  enabled: boolean;
1948
+ id: "custom" | "claude" | "codex";
1899
1949
  label: string;
1900
1950
  reason?: string | undefined;
1901
1951
  supportsImages?: boolean | undefined;
@@ -1910,12 +1960,12 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1910
1960
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1911
1961
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1912
1962
  commands?: {
1913
- id: string;
1914
1963
  name: string;
1964
+ id: string;
1915
1965
  title: string;
1916
- provider?: "claude" | "codex" | "custom" | undefined;
1917
- description?: string | undefined;
1966
+ provider?: "custom" | "claude" | "codex" | undefined;
1918
1967
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
1968
+ description?: string | undefined;
1919
1969
  category?: string | undefined;
1920
1970
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
1921
1971
  requiresIdle?: boolean | undefined;
@@ -1936,15 +1986,15 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1936
1986
  supportsAudio?: boolean | undefined;
1937
1987
  } | undefined;
1938
1988
  messages?: {
1939
- id: string;
1940
1989
  role: "user" | "assistant" | "system";
1990
+ id: string;
1941
1991
  content: string;
1942
1992
  createdAt: number;
1943
1993
  isStreaming?: boolean | undefined;
1944
1994
  }[] | undefined;
1945
1995
  toolCalls?: {
1946
- id: string;
1947
1996
  name: string;
1997
+ id: string;
1948
1998
  status?: "running" | "pending" | "completed" | "failed" | undefined;
1949
1999
  createdAt?: number | undefined;
1950
2000
  input?: string | undefined;
@@ -2328,14 +2378,14 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2328
2378
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
2329
2379
  }, "strip", z.ZodTypeAny, {
2330
2380
  status: "running" | "pending" | "completed" | "failed";
2331
- id: string;
2332
2381
  name: string;
2382
+ id: string;
2333
2383
  createdAt?: number | undefined;
2334
2384
  input?: string | undefined;
2335
2385
  output?: string | undefined;
2336
2386
  }, {
2337
- id: string;
2338
2387
  name: string;
2388
+ id: string;
2339
2389
  status?: "running" | "pending" | "completed" | "failed" | undefined;
2340
2390
  createdAt?: number | undefined;
2341
2391
  input?: string | undefined;
@@ -2621,13 +2671,13 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2621
2671
  updatedAt: z.ZodOptional<z.ZodNumber>;
2622
2672
  isStreaming: z.ZodOptional<z.ZodBoolean>;
2623
2673
  }, "strip", z.ZodTypeAny, {
2624
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
2674
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
2675
+ conversationId: string;
2625
2676
  id: string;
2626
2677
  createdAt: number;
2627
- conversationId: string;
2628
- error?: string | undefined;
2629
2678
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
2630
2679
  role?: "user" | "assistant" | "system" | undefined;
2680
+ error?: string | undefined;
2631
2681
  text?: string | undefined;
2632
2682
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
2633
2683
  plan?: {
@@ -2644,8 +2694,8 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2644
2694
  isStreaming?: boolean | undefined;
2645
2695
  toolCall?: {
2646
2696
  status: "running" | "pending" | "completed" | "failed";
2647
- id: string;
2648
2697
  name: string;
2698
+ id: string;
2649
2699
  createdAt?: number | undefined;
2650
2700
  input?: string | undefined;
2651
2701
  output?: string | undefined;
@@ -2721,13 +2771,13 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2721
2771
  metadata?: Record<string, unknown> | undefined;
2722
2772
  updatedAt?: number | undefined;
2723
2773
  }, {
2724
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
2774
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
2775
+ conversationId: string;
2725
2776
  id: string;
2726
2777
  createdAt: number;
2727
- conversationId: string;
2728
- error?: string | undefined;
2729
2778
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
2730
2779
  role?: "user" | "assistant" | "system" | undefined;
2780
+ error?: string | undefined;
2731
2781
  text?: string | undefined;
2732
2782
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
2733
2783
  plan?: {
@@ -2743,8 +2793,8 @@ export declare const agentV2TimelineItemSchema: z.ZodObject<{
2743
2793
  }[] | undefined;
2744
2794
  isStreaming?: boolean | undefined;
2745
2795
  toolCall?: {
2746
- id: string;
2747
2796
  name: string;
2797
+ id: string;
2748
2798
  status?: "running" | "pending" | "completed" | "failed" | undefined;
2749
2799
  createdAt?: number | undefined;
2750
2800
  input?: string | undefined;
@@ -2838,32 +2888,32 @@ export declare const agentV2ConversationSchema: z.ZodObject<{
2838
2888
  createdAt: z.ZodNumber;
2839
2889
  }, "strip", z.ZodTypeAny, {
2840
2890
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
2841
- id: string;
2842
- provider: "claude" | "codex" | "custom";
2891
+ provider: "custom" | "claude" | "codex";
2843
2892
  cwd: string;
2893
+ id: string;
2844
2894
  createdAt: number;
2845
2895
  archived: boolean;
2846
2896
  lastActivityAt: number;
2847
- title?: string | undefined;
2848
2897
  agentSessionId?: string | undefined;
2898
+ title?: string | undefined;
2849
2899
  model?: string | undefined;
2850
2900
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
2851
2901
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
2852
- collaborationMode?: "default" | "plan" | undefined;
2902
+ collaborationMode?: "plan" | "default" | undefined;
2853
2903
  lastMessagePreview?: string | undefined;
2854
2904
  }, {
2855
- id: string;
2856
2905
  cwd: string;
2906
+ id: string;
2857
2907
  createdAt: number;
2858
2908
  lastActivityAt: number;
2859
2909
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
2860
- provider?: "claude" | "codex" | "custom" | undefined;
2861
- title?: string | undefined;
2862
2910
  agentSessionId?: string | undefined;
2911
+ provider?: "custom" | "claude" | "codex" | undefined;
2912
+ title?: string | undefined;
2863
2913
  model?: string | undefined;
2864
2914
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
2865
2915
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
2866
- collaborationMode?: "default" | "plan" | undefined;
2916
+ collaborationMode?: "plan" | "default" | undefined;
2867
2917
  archived?: boolean | undefined;
2868
2918
  lastMessagePreview?: string | undefined;
2869
2919
  }>;
@@ -2908,25 +2958,25 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
2908
2958
  disabledReason: z.ZodOptional<z.ZodString>;
2909
2959
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
2910
2960
  }, "strip", z.ZodTypeAny, {
2911
- id: string;
2912
2961
  name: string;
2913
- title: string;
2914
2962
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
2963
+ id: string;
2964
+ title: string;
2915
2965
  argsMode: "none" | "optional" | "required" | "raw";
2916
2966
  executionKind: "prompt" | "native" | "local_ui";
2917
- provider?: "claude" | "codex" | "custom" | undefined;
2967
+ provider?: "custom" | "claude" | "codex" | undefined;
2918
2968
  description?: string | undefined;
2919
2969
  category?: string | undefined;
2920
2970
  requiresIdle?: boolean | undefined;
2921
2971
  destructive?: boolean | undefined;
2922
2972
  disabledReason?: string | undefined;
2923
2973
  }, {
2924
- id: string;
2925
2974
  name: string;
2975
+ id: string;
2926
2976
  title: string;
2927
- provider?: "claude" | "codex" | "custom" | undefined;
2928
- description?: string | undefined;
2977
+ provider?: "custom" | "claude" | "codex" | undefined;
2929
2978
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
2979
+ description?: string | undefined;
2930
2980
  category?: string | undefined;
2931
2981
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
2932
2982
  requiresIdle?: boolean | undefined;
@@ -2950,8 +3000,8 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
2950
3000
  currentMode: z.ZodOptional<z.ZodString>;
2951
3001
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
2952
3002
  }, "strip", z.ZodTypeAny, {
2953
- id: "claude" | "codex" | "custom";
2954
3003
  enabled: boolean;
3004
+ id: "custom" | "claude" | "codex";
2955
3005
  label: string;
2956
3006
  reason?: string | undefined;
2957
3007
  supportsImages?: boolean | undefined;
@@ -2966,13 +3016,13 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
2966
3016
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
2967
3017
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
2968
3018
  commands?: {
2969
- id: string;
2970
3019
  name: string;
2971
- title: string;
2972
3020
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
3021
+ id: string;
3022
+ title: string;
2973
3023
  argsMode: "none" | "optional" | "required" | "raw";
2974
3024
  executionKind: "prompt" | "native" | "local_ui";
2975
- provider?: "claude" | "codex" | "custom" | undefined;
3025
+ provider?: "custom" | "claude" | "codex" | undefined;
2976
3026
  description?: string | undefined;
2977
3027
  category?: string | undefined;
2978
3028
  requiresIdle?: boolean | undefined;
@@ -2987,8 +3037,8 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
2987
3037
  currentMode?: string | undefined;
2988
3038
  features?: Record<string, boolean> | undefined;
2989
3039
  }, {
2990
- id: "claude" | "codex" | "custom";
2991
3040
  enabled: boolean;
3041
+ id: "custom" | "claude" | "codex";
2992
3042
  label: string;
2993
3043
  reason?: string | undefined;
2994
3044
  supportsImages?: boolean | undefined;
@@ -3003,12 +3053,12 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3003
3053
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
3004
3054
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
3005
3055
  commands?: {
3006
- id: string;
3007
3056
  name: string;
3057
+ id: string;
3008
3058
  title: string;
3009
- provider?: "claude" | "codex" | "custom" | undefined;
3010
- description?: string | undefined;
3059
+ provider?: "custom" | "claude" | "codex" | undefined;
3011
3060
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
3061
+ description?: string | undefined;
3012
3062
  category?: string | undefined;
3013
3063
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
3014
3064
  requiresIdle?: boolean | undefined;
@@ -3045,13 +3095,13 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3045
3095
  supportsSessionLoad: boolean;
3046
3096
  supportsAudio: boolean;
3047
3097
  workspaceProtocolVersion: number;
3048
- error?: string | undefined;
3049
- provider?: "claude" | "codex" | "custom" | undefined;
3098
+ provider?: "custom" | "claude" | "codex" | undefined;
3050
3099
  protocolVersion?: number | undefined;
3051
3100
  machineId?: string | undefined;
3101
+ error?: string | undefined;
3052
3102
  providers?: {
3053
- id: "claude" | "codex" | "custom";
3054
3103
  enabled: boolean;
3104
+ id: "custom" | "claude" | "codex";
3055
3105
  label: string;
3056
3106
  reason?: string | undefined;
3057
3107
  supportsImages?: boolean | undefined;
@@ -3066,13 +3116,13 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3066
3116
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
3067
3117
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
3068
3118
  commands?: {
3069
- id: string;
3070
3119
  name: string;
3071
- title: string;
3072
3120
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
3121
+ id: string;
3122
+ title: string;
3073
3123
  argsMode: "none" | "optional" | "required" | "raw";
3074
3124
  executionKind: "prompt" | "native" | "local_ui";
3075
- provider?: "claude" | "codex" | "custom" | undefined;
3125
+ provider?: "custom" | "claude" | "codex" | undefined;
3076
3126
  description?: string | undefined;
3077
3127
  category?: string | undefined;
3078
3128
  requiresIdle?: boolean | undefined;
@@ -3089,17 +3139,17 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3089
3139
  }[] | undefined;
3090
3140
  }, {
3091
3141
  enabled: boolean;
3092
- error?: string | undefined;
3093
- provider?: "claude" | "codex" | "custom" | undefined;
3142
+ provider?: "custom" | "claude" | "codex" | undefined;
3094
3143
  protocolVersion?: number | undefined;
3095
3144
  machineId?: string | undefined;
3145
+ error?: string | undefined;
3096
3146
  supportsImages?: boolean | undefined;
3097
3147
  supportsPermission?: boolean | undefined;
3098
3148
  supportsPlan?: boolean | undefined;
3099
3149
  supportsCancel?: boolean | undefined;
3100
3150
  providers?: {
3101
- id: "claude" | "codex" | "custom";
3102
3151
  enabled: boolean;
3152
+ id: "custom" | "claude" | "codex";
3103
3153
  label: string;
3104
3154
  reason?: string | undefined;
3105
3155
  supportsImages?: boolean | undefined;
@@ -3114,12 +3164,12 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
3114
3164
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
3115
3165
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
3116
3166
  commands?: {
3117
- id: string;
3118
3167
  name: string;
3168
+ id: string;
3119
3169
  title: string;
3120
- provider?: "claude" | "codex" | "custom" | undefined;
3121
- description?: string | undefined;
3170
+ provider?: "custom" | "claude" | "codex" | undefined;
3122
3171
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
3172
+ description?: string | undefined;
3123
3173
  category?: string | undefined;
3124
3174
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
3125
3175
  requiresIdle?: boolean | undefined;
@@ -3151,25 +3201,25 @@ export declare const agentV2ConversationOpenPayloadSchema: z.ZodObject<{
3151
3201
  collaborationMode: z.ZodOptional<z.ZodEnum<["default", "plan"]>>;
3152
3202
  title: z.ZodOptional<z.ZodString>;
3153
3203
  }, "strip", z.ZodTypeAny, {
3154
- provider?: "claude" | "codex" | "custom" | undefined;
3204
+ conversationId?: string | undefined;
3205
+ agentSessionId?: string | undefined;
3206
+ provider?: "custom" | "claude" | "codex" | undefined;
3155
3207
  cwd?: string | undefined;
3156
3208
  title?: string | undefined;
3157
- agentSessionId?: string | undefined;
3158
3209
  model?: string | undefined;
3159
3210
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
3160
3211
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
3161
- conversationId?: string | undefined;
3162
- collaborationMode?: "default" | "plan" | undefined;
3212
+ collaborationMode?: "plan" | "default" | undefined;
3163
3213
  }, {
3164
- provider?: "claude" | "codex" | "custom" | undefined;
3214
+ conversationId?: string | undefined;
3215
+ agentSessionId?: string | undefined;
3216
+ provider?: "custom" | "claude" | "codex" | undefined;
3165
3217
  cwd?: string | undefined;
3166
3218
  title?: string | undefined;
3167
- agentSessionId?: string | undefined;
3168
3219
  model?: string | undefined;
3169
3220
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
3170
3221
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
3171
- conversationId?: string | undefined;
3172
- collaborationMode?: "default" | "plan" | undefined;
3222
+ collaborationMode?: "plan" | "default" | undefined;
3173
3223
  }>;
3174
3224
  export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3175
3225
  conversation: z.ZodObject<{
@@ -3189,32 +3239,32 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3189
3239
  createdAt: z.ZodNumber;
3190
3240
  }, "strip", z.ZodTypeAny, {
3191
3241
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
3192
- id: string;
3193
- provider: "claude" | "codex" | "custom";
3242
+ provider: "custom" | "claude" | "codex";
3194
3243
  cwd: string;
3244
+ id: string;
3195
3245
  createdAt: number;
3196
3246
  archived: boolean;
3197
3247
  lastActivityAt: number;
3198
- title?: string | undefined;
3199
3248
  agentSessionId?: string | undefined;
3249
+ title?: string | undefined;
3200
3250
  model?: string | undefined;
3201
3251
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
3202
3252
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
3203
- collaborationMode?: "default" | "plan" | undefined;
3253
+ collaborationMode?: "plan" | "default" | undefined;
3204
3254
  lastMessagePreview?: string | undefined;
3205
3255
  }, {
3206
- id: string;
3207
3256
  cwd: string;
3257
+ id: string;
3208
3258
  createdAt: number;
3209
3259
  lastActivityAt: number;
3210
3260
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
3211
- provider?: "claude" | "codex" | "custom" | undefined;
3212
- title?: string | undefined;
3213
3261
  agentSessionId?: string | undefined;
3262
+ provider?: "custom" | "claude" | "codex" | undefined;
3263
+ title?: string | undefined;
3214
3264
  model?: string | undefined;
3215
3265
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
3216
3266
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
3217
- collaborationMode?: "default" | "plan" | undefined;
3267
+ collaborationMode?: "plan" | "default" | undefined;
3218
3268
  archived?: boolean | undefined;
3219
3269
  lastMessagePreview?: string | undefined;
3220
3270
  }>;
@@ -3252,14 +3302,14 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3252
3302
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
3253
3303
  }, "strip", z.ZodTypeAny, {
3254
3304
  status: "running" | "pending" | "completed" | "failed";
3255
- id: string;
3256
3305
  name: string;
3306
+ id: string;
3257
3307
  createdAt?: number | undefined;
3258
3308
  input?: string | undefined;
3259
3309
  output?: string | undefined;
3260
3310
  }, {
3261
- id: string;
3262
3311
  name: string;
3312
+ id: string;
3263
3313
  status?: "running" | "pending" | "completed" | "failed" | undefined;
3264
3314
  createdAt?: number | undefined;
3265
3315
  input?: string | undefined;
@@ -3545,13 +3595,13 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3545
3595
  updatedAt: z.ZodOptional<z.ZodNumber>;
3546
3596
  isStreaming: z.ZodOptional<z.ZodBoolean>;
3547
3597
  }, "strip", z.ZodTypeAny, {
3548
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
3598
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
3599
+ conversationId: string;
3549
3600
  id: string;
3550
3601
  createdAt: number;
3551
- conversationId: string;
3552
- error?: string | undefined;
3553
3602
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
3554
3603
  role?: "user" | "assistant" | "system" | undefined;
3604
+ error?: string | undefined;
3555
3605
  text?: string | undefined;
3556
3606
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3557
3607
  plan?: {
@@ -3568,8 +3618,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3568
3618
  isStreaming?: boolean | undefined;
3569
3619
  toolCall?: {
3570
3620
  status: "running" | "pending" | "completed" | "failed";
3571
- id: string;
3572
3621
  name: string;
3622
+ id: string;
3573
3623
  createdAt?: number | undefined;
3574
3624
  input?: string | undefined;
3575
3625
  output?: string | undefined;
@@ -3645,13 +3695,13 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3645
3695
  metadata?: Record<string, unknown> | undefined;
3646
3696
  updatedAt?: number | undefined;
3647
3697
  }, {
3648
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
3698
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
3699
+ conversationId: string;
3649
3700
  id: string;
3650
3701
  createdAt: number;
3651
- conversationId: string;
3652
- error?: string | undefined;
3653
3702
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
3654
3703
  role?: "user" | "assistant" | "system" | undefined;
3704
+ error?: string | undefined;
3655
3705
  text?: string | undefined;
3656
3706
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3657
3707
  plan?: {
@@ -3667,8 +3717,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3667
3717
  }[] | undefined;
3668
3718
  isStreaming?: boolean | undefined;
3669
3719
  toolCall?: {
3670
- id: string;
3671
3720
  name: string;
3721
+ id: string;
3672
3722
  status?: "running" | "pending" | "completed" | "failed" | undefined;
3673
3723
  createdAt?: number | undefined;
3674
3724
  input?: string | undefined;
@@ -3748,28 +3798,28 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3748
3798
  }, "strip", z.ZodTypeAny, {
3749
3799
  conversation: {
3750
3800
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
3751
- id: string;
3752
- provider: "claude" | "codex" | "custom";
3801
+ provider: "custom" | "claude" | "codex";
3753
3802
  cwd: string;
3803
+ id: string;
3754
3804
  createdAt: number;
3755
3805
  archived: boolean;
3756
3806
  lastActivityAt: number;
3757
- title?: string | undefined;
3758
3807
  agentSessionId?: string | undefined;
3808
+ title?: string | undefined;
3759
3809
  model?: string | undefined;
3760
3810
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
3761
3811
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
3762
- collaborationMode?: "default" | "plan" | undefined;
3812
+ collaborationMode?: "plan" | "default" | undefined;
3763
3813
  lastMessagePreview?: string | undefined;
3764
3814
  };
3765
3815
  snapshot: {
3766
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
3816
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
3817
+ conversationId: string;
3767
3818
  id: string;
3768
3819
  createdAt: number;
3769
- conversationId: string;
3770
- error?: string | undefined;
3771
3820
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
3772
3821
  role?: "user" | "assistant" | "system" | undefined;
3822
+ error?: string | undefined;
3773
3823
  text?: string | undefined;
3774
3824
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3775
3825
  plan?: {
@@ -3786,8 +3836,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3786
3836
  isStreaming?: boolean | undefined;
3787
3837
  toolCall?: {
3788
3838
  status: "running" | "pending" | "completed" | "failed";
3789
- id: string;
3790
3839
  name: string;
3840
+ id: string;
3791
3841
  createdAt?: number | undefined;
3792
3842
  input?: string | undefined;
3793
3843
  output?: string | undefined;
@@ -3865,29 +3915,29 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3865
3915
  }[];
3866
3916
  }, {
3867
3917
  conversation: {
3868
- id: string;
3869
3918
  cwd: string;
3919
+ id: string;
3870
3920
  createdAt: number;
3871
3921
  lastActivityAt: number;
3872
3922
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
3873
- provider?: "claude" | "codex" | "custom" | undefined;
3874
- title?: string | undefined;
3875
3923
  agentSessionId?: string | undefined;
3924
+ provider?: "custom" | "claude" | "codex" | undefined;
3925
+ title?: string | undefined;
3876
3926
  model?: string | undefined;
3877
3927
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
3878
3928
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
3879
- collaborationMode?: "default" | "plan" | undefined;
3929
+ collaborationMode?: "plan" | "default" | undefined;
3880
3930
  archived?: boolean | undefined;
3881
3931
  lastMessagePreview?: string | undefined;
3882
3932
  };
3883
3933
  snapshot?: {
3884
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
3934
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
3935
+ conversationId: string;
3885
3936
  id: string;
3886
3937
  createdAt: number;
3887
- conversationId: string;
3888
- error?: string | undefined;
3889
3938
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
3890
3939
  role?: "user" | "assistant" | "system" | undefined;
3940
+ error?: string | undefined;
3891
3941
  text?: string | undefined;
3892
3942
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
3893
3943
  plan?: {
@@ -3903,8 +3953,8 @@ export declare const agentV2ConversationOpenedPayloadSchema: z.ZodObject<{
3903
3953
  }[] | undefined;
3904
3954
  isStreaming?: boolean | undefined;
3905
3955
  toolCall?: {
3906
- id: string;
3907
3956
  name: string;
3957
+ id: string;
3908
3958
  status?: "running" | "pending" | "completed" | "failed" | undefined;
3909
3959
  createdAt?: number | undefined;
3910
3960
  input?: string | undefined;
@@ -4007,66 +4057,66 @@ export declare const agentV2ConversationListResultPayloadSchema: z.ZodObject<{
4007
4057
  createdAt: z.ZodNumber;
4008
4058
  }, "strip", z.ZodTypeAny, {
4009
4059
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
4010
- id: string;
4011
- provider: "claude" | "codex" | "custom";
4060
+ provider: "custom" | "claude" | "codex";
4012
4061
  cwd: string;
4062
+ id: string;
4013
4063
  createdAt: number;
4014
4064
  archived: boolean;
4015
4065
  lastActivityAt: number;
4016
- title?: string | undefined;
4017
4066
  agentSessionId?: string | undefined;
4067
+ title?: string | undefined;
4018
4068
  model?: string | undefined;
4019
4069
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4020
4070
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4021
- collaborationMode?: "default" | "plan" | undefined;
4071
+ collaborationMode?: "plan" | "default" | undefined;
4022
4072
  lastMessagePreview?: string | undefined;
4023
4073
  }, {
4024
- id: string;
4025
4074
  cwd: string;
4075
+ id: string;
4026
4076
  createdAt: number;
4027
4077
  lastActivityAt: number;
4028
4078
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4029
- provider?: "claude" | "codex" | "custom" | undefined;
4030
- title?: string | undefined;
4031
4079
  agentSessionId?: string | undefined;
4080
+ provider?: "custom" | "claude" | "codex" | undefined;
4081
+ title?: string | undefined;
4032
4082
  model?: string | undefined;
4033
4083
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4034
4084
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4035
- collaborationMode?: "default" | "plan" | undefined;
4085
+ collaborationMode?: "plan" | "default" | undefined;
4036
4086
  archived?: boolean | undefined;
4037
4087
  lastMessagePreview?: string | undefined;
4038
4088
  }>, "many">;
4039
4089
  }, "strip", z.ZodTypeAny, {
4040
4090
  conversations: {
4041
4091
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
4042
- id: string;
4043
- provider: "claude" | "codex" | "custom";
4092
+ provider: "custom" | "claude" | "codex";
4044
4093
  cwd: string;
4094
+ id: string;
4045
4095
  createdAt: number;
4046
4096
  archived: boolean;
4047
4097
  lastActivityAt: number;
4048
- title?: string | undefined;
4049
4098
  agentSessionId?: string | undefined;
4099
+ title?: string | undefined;
4050
4100
  model?: string | undefined;
4051
4101
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4052
4102
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4053
- collaborationMode?: "default" | "plan" | undefined;
4103
+ collaborationMode?: "plan" | "default" | undefined;
4054
4104
  lastMessagePreview?: string | undefined;
4055
4105
  }[];
4056
4106
  }, {
4057
4107
  conversations: {
4058
- id: string;
4059
4108
  cwd: string;
4109
+ id: string;
4060
4110
  createdAt: number;
4061
4111
  lastActivityAt: number;
4062
4112
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4063
- provider?: "claude" | "codex" | "custom" | undefined;
4064
- title?: string | undefined;
4065
4113
  agentSessionId?: string | undefined;
4114
+ provider?: "custom" | "claude" | "codex" | undefined;
4115
+ title?: string | undefined;
4066
4116
  model?: string | undefined;
4067
4117
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4068
4118
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4069
- collaborationMode?: "default" | "plan" | undefined;
4119
+ collaborationMode?: "plan" | "default" | undefined;
4070
4120
  archived?: boolean | undefined;
4071
4121
  lastMessagePreview?: string | undefined;
4072
4122
  }[];
@@ -4095,6 +4145,7 @@ export declare const agentV2PromptPayloadSchema: z.ZodObject<{
4095
4145
  permissionMode: z.ZodOptional<z.ZodEnum<["read_only", "workspace_write", "full_access"]>>;
4096
4146
  collaborationMode: z.ZodOptional<z.ZodEnum<["default", "plan"]>>;
4097
4147
  }, "strip", z.ZodTypeAny, {
4148
+ conversationId: string;
4098
4149
  clientMessageId: string;
4099
4150
  contentBlocks: {
4100
4151
  type: "text" | "image";
@@ -4102,12 +4153,12 @@ export declare const agentV2PromptPayloadSchema: z.ZodObject<{
4102
4153
  text?: string | undefined;
4103
4154
  mimeType?: string | undefined;
4104
4155
  }[];
4105
- conversationId: string;
4106
4156
  model?: string | undefined;
4107
4157
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4108
4158
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4109
- collaborationMode?: "default" | "plan" | undefined;
4159
+ collaborationMode?: "plan" | "default" | undefined;
4110
4160
  }, {
4161
+ conversationId: string;
4111
4162
  clientMessageId: string;
4112
4163
  contentBlocks: {
4113
4164
  type: "text" | "image";
@@ -4115,11 +4166,10 @@ export declare const agentV2PromptPayloadSchema: z.ZodObject<{
4115
4166
  text?: string | undefined;
4116
4167
  mimeType?: string | undefined;
4117
4168
  }[];
4118
- conversationId: string;
4119
4169
  model?: string | undefined;
4120
4170
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4121
4171
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4122
- collaborationMode?: "default" | "plan" | undefined;
4172
+ collaborationMode?: "plan" | "default" | undefined;
4123
4173
  }>;
4124
4174
  export declare const agentV2CommandExecutePayloadSchema: z.ZodObject<{
4125
4175
  conversationId: z.ZodString;
@@ -4128,14 +4178,14 @@ export declare const agentV2CommandExecutePayloadSchema: z.ZodObject<{
4128
4178
  args: z.ZodOptional<z.ZodString>;
4129
4179
  clientMessageId: z.ZodString;
4130
4180
  }, "strip", z.ZodTypeAny, {
4131
- clientMessageId: string;
4132
4181
  conversationId: string;
4182
+ clientMessageId: string;
4133
4183
  commandId: string;
4134
4184
  rawText?: string | undefined;
4135
4185
  args?: string | undefined;
4136
4186
  }, {
4137
- clientMessageId: string;
4138
4187
  conversationId: string;
4188
+ clientMessageId: string;
4139
4189
  commandId: string;
4140
4190
  rawText?: string | undefined;
4141
4191
  args?: string | undefined;
@@ -4153,14 +4203,14 @@ export declare const agentV2PermissionRespondPayloadSchema: z.ZodObject<{
4153
4203
  outcome: z.ZodEnum<["allow", "deny", "cancelled"]>;
4154
4204
  optionId: z.ZodOptional<z.ZodString>;
4155
4205
  }, "strip", z.ZodTypeAny, {
4206
+ conversationId: string;
4156
4207
  requestId: string;
4157
4208
  outcome: "allow" | "deny" | "cancelled";
4158
- conversationId: string;
4159
4209
  optionId?: string | undefined;
4160
4210
  }, {
4211
+ conversationId: string;
4161
4212
  requestId: string;
4162
4213
  outcome: "allow" | "deny" | "cancelled";
4163
- conversationId: string;
4164
4214
  optionId?: string | undefined;
4165
4215
  }>;
4166
4216
  export declare const agentV2StructuredInputRespondPayloadSchema: z.ZodObject<{
@@ -4168,12 +4218,12 @@ export declare const agentV2StructuredInputRespondPayloadSchema: z.ZodObject<{
4168
4218
  requestId: z.ZodString;
4169
4219
  answers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
4170
4220
  }, "strip", z.ZodTypeAny, {
4171
- requestId: string;
4172
4221
  conversationId: string;
4222
+ requestId: string;
4173
4223
  answers: Record<string, string[]>;
4174
4224
  }, {
4175
- requestId: string;
4176
4225
  conversationId: string;
4226
+ requestId: string;
4177
4227
  answers: Record<string, string[]>;
4178
4228
  }>;
4179
4229
  export declare const agentV2SnapshotRequestPayloadSchema: z.ZodObject<{
@@ -4201,32 +4251,32 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4201
4251
  createdAt: z.ZodNumber;
4202
4252
  }, "strip", z.ZodTypeAny, {
4203
4253
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
4204
- id: string;
4205
- provider: "claude" | "codex" | "custom";
4254
+ provider: "custom" | "claude" | "codex";
4206
4255
  cwd: string;
4256
+ id: string;
4207
4257
  createdAt: number;
4208
4258
  archived: boolean;
4209
4259
  lastActivityAt: number;
4210
- title?: string | undefined;
4211
4260
  agentSessionId?: string | undefined;
4261
+ title?: string | undefined;
4212
4262
  model?: string | undefined;
4213
4263
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4214
4264
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4215
- collaborationMode?: "default" | "plan" | undefined;
4265
+ collaborationMode?: "plan" | "default" | undefined;
4216
4266
  lastMessagePreview?: string | undefined;
4217
4267
  }, {
4218
- id: string;
4219
4268
  cwd: string;
4269
+ id: string;
4220
4270
  createdAt: number;
4221
4271
  lastActivityAt: number;
4222
4272
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4223
- provider?: "claude" | "codex" | "custom" | undefined;
4224
- title?: string | undefined;
4225
4273
  agentSessionId?: string | undefined;
4274
+ provider?: "custom" | "claude" | "codex" | undefined;
4275
+ title?: string | undefined;
4226
4276
  model?: string | undefined;
4227
4277
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4228
4278
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4229
- collaborationMode?: "default" | "plan" | undefined;
4279
+ collaborationMode?: "plan" | "default" | undefined;
4230
4280
  archived?: boolean | undefined;
4231
4281
  lastMessagePreview?: string | undefined;
4232
4282
  }>, "many">>;
@@ -4265,14 +4315,14 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4265
4315
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
4266
4316
  }, "strip", z.ZodTypeAny, {
4267
4317
  status: "running" | "pending" | "completed" | "failed";
4268
- id: string;
4269
4318
  name: string;
4319
+ id: string;
4270
4320
  createdAt?: number | undefined;
4271
4321
  input?: string | undefined;
4272
4322
  output?: string | undefined;
4273
4323
  }, {
4274
- id: string;
4275
4324
  name: string;
4325
+ id: string;
4276
4326
  status?: "running" | "pending" | "completed" | "failed" | undefined;
4277
4327
  createdAt?: number | undefined;
4278
4328
  input?: string | undefined;
@@ -4558,13 +4608,13 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4558
4608
  updatedAt: z.ZodOptional<z.ZodNumber>;
4559
4609
  isStreaming: z.ZodOptional<z.ZodBoolean>;
4560
4610
  }, "strip", z.ZodTypeAny, {
4561
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
4611
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
4612
+ conversationId: string;
4562
4613
  id: string;
4563
4614
  createdAt: number;
4564
- conversationId: string;
4565
- error?: string | undefined;
4566
4615
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4567
4616
  role?: "user" | "assistant" | "system" | undefined;
4617
+ error?: string | undefined;
4568
4618
  text?: string | undefined;
4569
4619
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4570
4620
  plan?: {
@@ -4581,8 +4631,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4581
4631
  isStreaming?: boolean | undefined;
4582
4632
  toolCall?: {
4583
4633
  status: "running" | "pending" | "completed" | "failed";
4584
- id: string;
4585
4634
  name: string;
4635
+ id: string;
4586
4636
  createdAt?: number | undefined;
4587
4637
  input?: string | undefined;
4588
4638
  output?: string | undefined;
@@ -4658,13 +4708,13 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4658
4708
  metadata?: Record<string, unknown> | undefined;
4659
4709
  updatedAt?: number | undefined;
4660
4710
  }, {
4661
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
4711
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
4712
+ conversationId: string;
4662
4713
  id: string;
4663
4714
  createdAt: number;
4664
- conversationId: string;
4665
- error?: string | undefined;
4666
4715
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4667
4716
  role?: "user" | "assistant" | "system" | undefined;
4717
+ error?: string | undefined;
4668
4718
  text?: string | undefined;
4669
4719
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4670
4720
  plan?: {
@@ -4680,8 +4730,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4680
4730
  }[] | undefined;
4681
4731
  isStreaming?: boolean | undefined;
4682
4732
  toolCall?: {
4683
- id: string;
4684
4733
  name: string;
4734
+ id: string;
4685
4735
  status?: "running" | "pending" | "completed" | "failed" | undefined;
4686
4736
  createdAt?: number | undefined;
4687
4737
  input?: string | undefined;
@@ -4762,28 +4812,28 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4762
4812
  }, "strip", z.ZodTypeAny, {
4763
4813
  conversations: {
4764
4814
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
4765
- id: string;
4766
- provider: "claude" | "codex" | "custom";
4815
+ provider: "custom" | "claude" | "codex";
4767
4816
  cwd: string;
4817
+ id: string;
4768
4818
  createdAt: number;
4769
4819
  archived: boolean;
4770
4820
  lastActivityAt: number;
4771
- title?: string | undefined;
4772
4821
  agentSessionId?: string | undefined;
4822
+ title?: string | undefined;
4773
4823
  model?: string | undefined;
4774
4824
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4775
4825
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4776
- collaborationMode?: "default" | "plan" | undefined;
4826
+ collaborationMode?: "plan" | "default" | undefined;
4777
4827
  lastMessagePreview?: string | undefined;
4778
4828
  }[];
4779
4829
  items: {
4780
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
4830
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
4831
+ conversationId: string;
4781
4832
  id: string;
4782
4833
  createdAt: number;
4783
- conversationId: string;
4784
- error?: string | undefined;
4785
4834
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4786
4835
  role?: "user" | "assistant" | "system" | undefined;
4836
+ error?: string | undefined;
4787
4837
  text?: string | undefined;
4788
4838
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4789
4839
  plan?: {
@@ -4800,8 +4850,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4800
4850
  isStreaming?: boolean | undefined;
4801
4851
  toolCall?: {
4802
4852
  status: "running" | "pending" | "completed" | "failed";
4803
- id: string;
4804
4853
  name: string;
4854
+ id: string;
4805
4855
  createdAt?: number | undefined;
4806
4856
  input?: string | undefined;
4807
4857
  output?: string | undefined;
@@ -4882,30 +4932,30 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4882
4932
  }, {
4883
4933
  machineId?: string | undefined;
4884
4934
  conversations?: {
4885
- id: string;
4886
4935
  cwd: string;
4936
+ id: string;
4887
4937
  createdAt: number;
4888
4938
  lastActivityAt: number;
4889
4939
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4890
- provider?: "claude" | "codex" | "custom" | undefined;
4891
- title?: string | undefined;
4892
4940
  agentSessionId?: string | undefined;
4941
+ provider?: "custom" | "claude" | "codex" | undefined;
4942
+ title?: string | undefined;
4893
4943
  model?: string | undefined;
4894
4944
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4895
4945
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4896
- collaborationMode?: "default" | "plan" | undefined;
4946
+ collaborationMode?: "plan" | "default" | undefined;
4897
4947
  archived?: boolean | undefined;
4898
4948
  lastMessagePreview?: string | undefined;
4899
4949
  }[] | undefined;
4900
4950
  activeConversationId?: string | undefined;
4901
4951
  items?: {
4902
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
4952
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
4953
+ conversationId: string;
4903
4954
  id: string;
4904
4955
  createdAt: number;
4905
- conversationId: string;
4906
- error?: string | undefined;
4907
4956
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4908
4957
  role?: "user" | "assistant" | "system" | undefined;
4958
+ error?: string | undefined;
4909
4959
  text?: string | undefined;
4910
4960
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4911
4961
  plan?: {
@@ -4921,8 +4971,8 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4921
4971
  }[] | undefined;
4922
4972
  isStreaming?: boolean | undefined;
4923
4973
  toolCall?: {
4924
- id: string;
4925
4974
  name: string;
4975
+ id: string;
4926
4976
  status?: "running" | "pending" | "completed" | "failed" | undefined;
4927
4977
  createdAt?: number | undefined;
4928
4978
  input?: string | undefined;
@@ -5019,32 +5069,32 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5019
5069
  createdAt: z.ZodNumber;
5020
5070
  }, "strip", z.ZodTypeAny, {
5021
5071
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
5022
- id: string;
5023
- provider: "claude" | "codex" | "custom";
5072
+ provider: "custom" | "claude" | "codex";
5024
5073
  cwd: string;
5074
+ id: string;
5025
5075
  createdAt: number;
5026
5076
  archived: boolean;
5027
5077
  lastActivityAt: number;
5028
- title?: string | undefined;
5029
5078
  agentSessionId?: string | undefined;
5079
+ title?: string | undefined;
5030
5080
  model?: string | undefined;
5031
5081
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
5032
5082
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
5033
- collaborationMode?: "default" | "plan" | undefined;
5083
+ collaborationMode?: "plan" | "default" | undefined;
5034
5084
  lastMessagePreview?: string | undefined;
5035
5085
  }, {
5036
- id: string;
5037
5086
  cwd: string;
5087
+ id: string;
5038
5088
  createdAt: number;
5039
5089
  lastActivityAt: number;
5040
5090
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
5041
- provider?: "claude" | "codex" | "custom" | undefined;
5042
- title?: string | undefined;
5043
5091
  agentSessionId?: string | undefined;
5092
+ provider?: "custom" | "claude" | "codex" | undefined;
5093
+ title?: string | undefined;
5044
5094
  model?: string | undefined;
5045
5095
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
5046
5096
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
5047
- collaborationMode?: "default" | "plan" | undefined;
5097
+ collaborationMode?: "plan" | "default" | undefined;
5048
5098
  archived?: boolean | undefined;
5049
5099
  lastMessagePreview?: string | undefined;
5050
5100
  }>>;
@@ -5082,14 +5132,14 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5082
5132
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
5083
5133
  }, "strip", z.ZodTypeAny, {
5084
5134
  status: "running" | "pending" | "completed" | "failed";
5085
- id: string;
5086
5135
  name: string;
5136
+ id: string;
5087
5137
  createdAt?: number | undefined;
5088
5138
  input?: string | undefined;
5089
5139
  output?: string | undefined;
5090
5140
  }, {
5091
- id: string;
5092
5141
  name: string;
5142
+ id: string;
5093
5143
  status?: "running" | "pending" | "completed" | "failed" | undefined;
5094
5144
  createdAt?: number | undefined;
5095
5145
  input?: string | undefined;
@@ -5375,13 +5425,13 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5375
5425
  updatedAt: z.ZodOptional<z.ZodNumber>;
5376
5426
  isStreaming: z.ZodOptional<z.ZodBoolean>;
5377
5427
  }, "strip", z.ZodTypeAny, {
5378
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
5428
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
5429
+ conversationId: string;
5379
5430
  id: string;
5380
5431
  createdAt: number;
5381
- conversationId: string;
5382
- error?: string | undefined;
5383
5432
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
5384
5433
  role?: "user" | "assistant" | "system" | undefined;
5434
+ error?: string | undefined;
5385
5435
  text?: string | undefined;
5386
5436
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5387
5437
  plan?: {
@@ -5398,8 +5448,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5398
5448
  isStreaming?: boolean | undefined;
5399
5449
  toolCall?: {
5400
5450
  status: "running" | "pending" | "completed" | "failed";
5401
- id: string;
5402
5451
  name: string;
5452
+ id: string;
5403
5453
  createdAt?: number | undefined;
5404
5454
  input?: string | undefined;
5405
5455
  output?: string | undefined;
@@ -5475,13 +5525,13 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5475
5525
  metadata?: Record<string, unknown> | undefined;
5476
5526
  updatedAt?: number | undefined;
5477
5527
  }, {
5478
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
5528
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
5529
+ conversationId: string;
5479
5530
  id: string;
5480
5531
  createdAt: number;
5481
- conversationId: string;
5482
- error?: string | undefined;
5483
5532
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
5484
5533
  role?: "user" | "assistant" | "system" | undefined;
5534
+ error?: string | undefined;
5485
5535
  text?: string | undefined;
5486
5536
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5487
5537
  plan?: {
@@ -5497,8 +5547,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5497
5547
  }[] | undefined;
5498
5548
  isStreaming?: boolean | undefined;
5499
5549
  toolCall?: {
5500
- id: string;
5501
5550
  name: string;
5551
+ id: string;
5502
5552
  status?: "running" | "pending" | "completed" | "failed" | undefined;
5503
5553
  createdAt?: number | undefined;
5504
5554
  input?: string | undefined;
@@ -5607,14 +5657,14 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5607
5657
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
5608
5658
  }, "strip", z.ZodTypeAny, {
5609
5659
  status: "running" | "pending" | "completed" | "failed";
5610
- id: string;
5611
5660
  name: string;
5661
+ id: string;
5612
5662
  createdAt?: number | undefined;
5613
5663
  input?: string | undefined;
5614
5664
  output?: string | undefined;
5615
5665
  }, {
5616
- id: string;
5617
5666
  name: string;
5667
+ id: string;
5618
5668
  status?: "running" | "pending" | "completed" | "failed" | undefined;
5619
5669
  createdAt?: number | undefined;
5620
5670
  input?: string | undefined;
@@ -5899,9 +5949,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5899
5949
  isStreaming: z.ZodOptional<z.ZodBoolean>;
5900
5950
  }, "strip", z.ZodTypeAny, {
5901
5951
  itemId: string;
5902
- error?: string | undefined;
5903
5952
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
5904
5953
  role?: "user" | "assistant" | "system" | undefined;
5954
+ error?: string | undefined;
5905
5955
  text?: string | undefined;
5906
5956
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5907
5957
  plan?: {
@@ -5918,8 +5968,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5918
5968
  isStreaming?: boolean | undefined;
5919
5969
  toolCall?: {
5920
5970
  status: "running" | "pending" | "completed" | "failed";
5921
- id: string;
5922
5971
  name: string;
5972
+ id: string;
5923
5973
  createdAt?: number | undefined;
5924
5974
  input?: string | undefined;
5925
5975
  output?: string | undefined;
@@ -5995,9 +6045,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5995
6045
  textDelta?: string | undefined;
5996
6046
  }, {
5997
6047
  itemId: string;
5998
- error?: string | undefined;
5999
6048
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6000
6049
  role?: "user" | "assistant" | "system" | undefined;
6050
+ error?: string | undefined;
6001
6051
  text?: string | undefined;
6002
6052
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6003
6053
  plan?: {
@@ -6013,8 +6063,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6013
6063
  }[] | undefined;
6014
6064
  isStreaming?: boolean | undefined;
6015
6065
  toolCall?: {
6016
- id: string;
6017
6066
  name: string;
6067
+ id: string;
6018
6068
  status?: "running" | "pending" | "completed" | "failed" | undefined;
6019
6069
  createdAt?: number | undefined;
6020
6070
  input?: string | undefined;
@@ -6094,28 +6144,28 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6094
6144
  conversationId: string;
6095
6145
  conversation?: {
6096
6146
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
6097
- id: string;
6098
- provider: "claude" | "codex" | "custom";
6147
+ provider: "custom" | "claude" | "codex";
6099
6148
  cwd: string;
6149
+ id: string;
6100
6150
  createdAt: number;
6101
6151
  archived: boolean;
6102
6152
  lastActivityAt: number;
6103
- title?: string | undefined;
6104
6153
  agentSessionId?: string | undefined;
6154
+ title?: string | undefined;
6105
6155
  model?: string | undefined;
6106
6156
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
6107
6157
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
6108
- collaborationMode?: "default" | "plan" | undefined;
6158
+ collaborationMode?: "plan" | "default" | undefined;
6109
6159
  lastMessagePreview?: string | undefined;
6110
6160
  } | undefined;
6111
6161
  item?: {
6112
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
6162
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
6163
+ conversationId: string;
6113
6164
  id: string;
6114
6165
  createdAt: number;
6115
- conversationId: string;
6116
- error?: string | undefined;
6117
6166
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6118
6167
  role?: "user" | "assistant" | "system" | undefined;
6168
+ error?: string | undefined;
6119
6169
  text?: string | undefined;
6120
6170
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6121
6171
  plan?: {
@@ -6132,8 +6182,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6132
6182
  isStreaming?: boolean | undefined;
6133
6183
  toolCall?: {
6134
6184
  status: "running" | "pending" | "completed" | "failed";
6135
- id: string;
6136
6185
  name: string;
6186
+ id: string;
6137
6187
  createdAt?: number | undefined;
6138
6188
  input?: string | undefined;
6139
6189
  output?: string | undefined;
@@ -6211,9 +6261,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6211
6261
  } | undefined;
6212
6262
  patch?: {
6213
6263
  itemId: string;
6214
- error?: string | undefined;
6215
6264
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6216
6265
  role?: "user" | "assistant" | "system" | undefined;
6266
+ error?: string | undefined;
6217
6267
  text?: string | undefined;
6218
6268
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6219
6269
  plan?: {
@@ -6230,8 +6280,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6230
6280
  isStreaming?: boolean | undefined;
6231
6281
  toolCall?: {
6232
6282
  status: "running" | "pending" | "completed" | "failed";
6233
- id: string;
6234
6283
  name: string;
6284
+ id: string;
6235
6285
  createdAt?: number | undefined;
6236
6286
  input?: string | undefined;
6237
6287
  output?: string | undefined;
@@ -6309,29 +6359,29 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6309
6359
  }, {
6310
6360
  conversationId: string;
6311
6361
  conversation?: {
6312
- id: string;
6313
6362
  cwd: string;
6363
+ id: string;
6314
6364
  createdAt: number;
6315
6365
  lastActivityAt: number;
6316
6366
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6317
- provider?: "claude" | "codex" | "custom" | undefined;
6318
- title?: string | undefined;
6319
6367
  agentSessionId?: string | undefined;
6368
+ provider?: "custom" | "claude" | "codex" | undefined;
6369
+ title?: string | undefined;
6320
6370
  model?: string | undefined;
6321
6371
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
6322
6372
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
6323
- collaborationMode?: "default" | "plan" | undefined;
6373
+ collaborationMode?: "plan" | "default" | undefined;
6324
6374
  archived?: boolean | undefined;
6325
6375
  lastMessagePreview?: string | undefined;
6326
6376
  } | undefined;
6327
6377
  item?: {
6328
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
6378
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
6379
+ conversationId: string;
6329
6380
  id: string;
6330
6381
  createdAt: number;
6331
- conversationId: string;
6332
- error?: string | undefined;
6333
6382
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6334
6383
  role?: "user" | "assistant" | "system" | undefined;
6384
+ error?: string | undefined;
6335
6385
  text?: string | undefined;
6336
6386
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6337
6387
  plan?: {
@@ -6347,8 +6397,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6347
6397
  }[] | undefined;
6348
6398
  isStreaming?: boolean | undefined;
6349
6399
  toolCall?: {
6350
- id: string;
6351
6400
  name: string;
6401
+ id: string;
6352
6402
  status?: "running" | "pending" | "completed" | "failed" | undefined;
6353
6403
  createdAt?: number | undefined;
6354
6404
  input?: string | undefined;
@@ -6427,9 +6477,9 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6427
6477
  } | undefined;
6428
6478
  patch?: {
6429
6479
  itemId: string;
6430
- error?: string | undefined;
6431
6480
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6432
6481
  role?: "user" | "assistant" | "system" | undefined;
6482
+ error?: string | undefined;
6433
6483
  text?: string | undefined;
6434
6484
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6435
6485
  plan?: {
@@ -6445,8 +6495,8 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
6445
6495
  }[] | undefined;
6446
6496
  isStreaming?: boolean | undefined;
6447
6497
  toolCall?: {
6448
- id: string;
6449
6498
  name: string;
6499
+ id: string;
6450
6500
  status?: "running" | "pending" | "completed" | "failed" | undefined;
6451
6501
  createdAt?: number | undefined;
6452
6502
  input?: string | undefined;
@@ -6577,14 +6627,14 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
6577
6627
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
6578
6628
  }, "strip", z.ZodTypeAny, {
6579
6629
  status: "running" | "pending" | "completed" | "failed";
6580
- id: string;
6581
6630
  name: string;
6631
+ id: string;
6582
6632
  createdAt?: number | undefined;
6583
6633
  input?: string | undefined;
6584
6634
  output?: string | undefined;
6585
6635
  }, {
6586
- id: string;
6587
6636
  name: string;
6637
+ id: string;
6588
6638
  status?: "running" | "pending" | "completed" | "failed" | undefined;
6589
6639
  createdAt?: number | undefined;
6590
6640
  input?: string | undefined;
@@ -6870,13 +6920,13 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
6870
6920
  updatedAt: z.ZodOptional<z.ZodNumber>;
6871
6921
  isStreaming: z.ZodOptional<z.ZodBoolean>;
6872
6922
  }, "strip", z.ZodTypeAny, {
6873
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
6923
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
6924
+ conversationId: string;
6874
6925
  id: string;
6875
6926
  createdAt: number;
6876
- conversationId: string;
6877
- error?: string | undefined;
6878
6927
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6879
6928
  role?: "user" | "assistant" | "system" | undefined;
6929
+ error?: string | undefined;
6880
6930
  text?: string | undefined;
6881
6931
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6882
6932
  plan?: {
@@ -6893,8 +6943,8 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
6893
6943
  isStreaming?: boolean | undefined;
6894
6944
  toolCall?: {
6895
6945
  status: "running" | "pending" | "completed" | "failed";
6896
- id: string;
6897
6946
  name: string;
6947
+ id: string;
6898
6948
  createdAt?: number | undefined;
6899
6949
  input?: string | undefined;
6900
6950
  output?: string | undefined;
@@ -6970,13 +7020,13 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
6970
7020
  metadata?: Record<string, unknown> | undefined;
6971
7021
  updatedAt?: number | undefined;
6972
7022
  }, {
6973
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
7023
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
7024
+ conversationId: string;
6974
7025
  id: string;
6975
7026
  createdAt: number;
6976
- conversationId: string;
6977
- error?: string | undefined;
6978
7027
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
6979
7028
  role?: "user" | "assistant" | "system" | undefined;
7029
+ error?: string | undefined;
6980
7030
  text?: string | undefined;
6981
7031
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
6982
7032
  plan?: {
@@ -6992,8 +7042,8 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
6992
7042
  }[] | undefined;
6993
7043
  isStreaming?: boolean | undefined;
6994
7044
  toolCall?: {
6995
- id: string;
6996
7045
  name: string;
7046
+ id: string;
6997
7047
  status?: "running" | "pending" | "completed" | "failed" | undefined;
6998
7048
  createdAt?: number | undefined;
6999
7049
  input?: string | undefined;
@@ -7076,19 +7126,19 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7076
7126
  label: string;
7077
7127
  kind: "allow" | "deny" | "other";
7078
7128
  }[];
7079
- requestId: string;
7080
7129
  conversationId: string;
7130
+ requestId: string;
7081
7131
  toolName?: string | undefined;
7082
7132
  toolInput?: string | undefined;
7083
7133
  context?: string | undefined;
7084
7134
  item?: {
7085
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
7135
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
7136
+ conversationId: string;
7086
7137
  id: string;
7087
7138
  createdAt: number;
7088
- conversationId: string;
7089
- error?: string | undefined;
7090
7139
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
7091
7140
  role?: "user" | "assistant" | "system" | undefined;
7141
+ error?: string | undefined;
7092
7142
  text?: string | undefined;
7093
7143
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
7094
7144
  plan?: {
@@ -7105,8 +7155,8 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7105
7155
  isStreaming?: boolean | undefined;
7106
7156
  toolCall?: {
7107
7157
  status: "running" | "pending" | "completed" | "failed";
7108
- id: string;
7109
7158
  name: string;
7159
+ id: string;
7110
7160
  createdAt?: number | undefined;
7111
7161
  input?: string | undefined;
7112
7162
  output?: string | undefined;
@@ -7183,8 +7233,8 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7183
7233
  updatedAt?: number | undefined;
7184
7234
  } | undefined;
7185
7235
  }, {
7186
- requestId: string;
7187
7236
  conversationId: string;
7237
+ requestId: string;
7188
7238
  options?: {
7189
7239
  id: string;
7190
7240
  label: string;
@@ -7194,13 +7244,13 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7194
7244
  toolInput?: string | undefined;
7195
7245
  context?: string | undefined;
7196
7246
  item?: {
7197
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
7247
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
7248
+ conversationId: string;
7198
7249
  id: string;
7199
7250
  createdAt: number;
7200
- conversationId: string;
7201
- error?: string | undefined;
7202
7251
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
7203
7252
  role?: "user" | "assistant" | "system" | undefined;
7253
+ error?: string | undefined;
7204
7254
  text?: string | undefined;
7205
7255
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
7206
7256
  plan?: {
@@ -7216,8 +7266,8 @@ export declare const agentV2PermissionRequestPayloadSchema: z.ZodObject<{
7216
7266
  }[] | undefined;
7217
7267
  isStreaming?: boolean | undefined;
7218
7268
  toolCall?: {
7219
- id: string;
7220
7269
  name: string;
7270
+ id: string;
7221
7271
  status?: "running" | "pending" | "completed" | "failed" | undefined;
7222
7272
  createdAt?: number | undefined;
7223
7273
  input?: string | undefined;
@@ -7309,7 +7359,7 @@ export declare const protocolMessageSchemas: {
7309
7359
  }, "strip", z.ZodTypeAny, {
7310
7360
  role: "host" | "client";
7311
7361
  clientName: string;
7312
- provider?: "claude" | "codex" | "custom" | undefined;
7362
+ provider?: "custom" | "claude" | "codex" | undefined;
7313
7363
  protocolVersion?: number | undefined;
7314
7364
  machineId?: string | undefined;
7315
7365
  hostname?: string | undefined;
@@ -7319,7 +7369,7 @@ export declare const protocolMessageSchemas: {
7319
7369
  }, {
7320
7370
  role: "host" | "client";
7321
7371
  clientName: string;
7322
- provider?: "claude" | "codex" | "custom" | undefined;
7372
+ provider?: "custom" | "claude" | "codex" | undefined;
7323
7373
  protocolVersion?: number | undefined;
7324
7374
  machineId?: string | undefined;
7325
7375
  hostname?: string | undefined;
@@ -7522,8 +7572,8 @@ export declare const protocolMessageSchemas: {
7522
7572
  error?: string | undefined;
7523
7573
  }, {
7524
7574
  active: boolean;
7525
- error?: string | undefined;
7526
7575
  mode?: "webrtc" | "fallback" | "off" | undefined;
7576
+ error?: string | undefined;
7527
7577
  }>;
7528
7578
  readonly "screen.offer": z.ZodObject<{
7529
7579
  sdp: z.ZodString;
@@ -7567,10 +7617,10 @@ export declare const protocolMessageSchemas: {
7567
7617
  provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "custom"]>>;
7568
7618
  }, "strip", z.ZodTypeAny, {
7569
7619
  cwd: string;
7570
- provider?: "claude" | "codex" | "custom" | undefined;
7620
+ provider?: "custom" | "claude" | "codex" | undefined;
7571
7621
  }, {
7572
7622
  cwd: string;
7573
- provider?: "claude" | "codex" | "custom" | undefined;
7623
+ provider?: "custom" | "claude" | "codex" | undefined;
7574
7624
  }>;
7575
7625
  readonly "terminal.spawned": z.ZodObject<{
7576
7626
  terminalId: z.ZodString;
@@ -7693,50 +7743,78 @@ export declare const protocolMessageSchemas: {
7693
7743
  permissionRequest: z.ZodString;
7694
7744
  timestamp: z.ZodNumber;
7695
7745
  }, "strip", z.ZodTypeAny, {
7696
- timestamp: number;
7746
+ requestId: string;
7697
7747
  toolName: string;
7698
7748
  toolInput: string;
7699
7749
  permissionRequest: string;
7700
- requestId: string;
7701
- }, {
7702
7750
  timestamp: number;
7751
+ }, {
7752
+ requestId: string;
7703
7753
  toolName: string;
7704
7754
  toolInput: string;
7705
7755
  permissionRequest: string;
7756
+ timestamp: number;
7757
+ }>>;
7758
+ permissionResolution: z.ZodOptional<z.ZodObject<{
7759
+ requestId: z.ZodString;
7760
+ outcome: z.ZodEnum<["allow", "deny", "cancelled"]>;
7761
+ source: z.ZodOptional<z.ZodString>;
7762
+ delivered: z.ZodBoolean;
7763
+ }, "strip", z.ZodTypeAny, {
7764
+ requestId: string;
7765
+ outcome: "allow" | "deny" | "cancelled";
7766
+ delivered: boolean;
7767
+ source?: string | undefined;
7768
+ }, {
7706
7769
  requestId: string;
7770
+ outcome: "allow" | "deny" | "cancelled";
7771
+ delivered: boolean;
7772
+ source?: string | undefined;
7707
7773
  }>>;
7708
7774
  pendingPermissionCount: z.ZodOptional<z.ZodNumber>;
7709
7775
  machineId: z.ZodOptional<z.ZodString>;
7710
7776
  }, "strip", z.ZodTypeAny, {
7711
7777
  phase: "error" | "thinking" | "tool_use" | "outputting" | "waiting" | "idle";
7712
- seq?: number | undefined;
7713
7778
  machineId?: string | undefined;
7779
+ seq?: number | undefined;
7714
7780
  toolName?: string | undefined;
7715
7781
  toolInput?: string | undefined;
7716
7782
  permissionRequest?: string | undefined;
7717
7783
  summary?: string | undefined;
7718
7784
  topPermission?: {
7719
- timestamp: number;
7785
+ requestId: string;
7720
7786
  toolName: string;
7721
7787
  toolInput: string;
7722
7788
  permissionRequest: string;
7789
+ timestamp: number;
7790
+ } | undefined;
7791
+ permissionResolution?: {
7723
7792
  requestId: string;
7793
+ outcome: "allow" | "deny" | "cancelled";
7794
+ delivered: boolean;
7795
+ source?: string | undefined;
7724
7796
  } | undefined;
7725
7797
  pendingPermissionCount?: number | undefined;
7726
7798
  }, {
7727
7799
  phase: "error" | "thinking" | "tool_use" | "outputting" | "waiting" | "idle";
7728
- seq?: number | undefined;
7729
7800
  machineId?: string | undefined;
7801
+ seq?: number | undefined;
7730
7802
  toolName?: string | undefined;
7731
7803
  toolInput?: string | undefined;
7732
7804
  permissionRequest?: string | undefined;
7733
7805
  summary?: string | undefined;
7734
7806
  topPermission?: {
7735
- timestamp: number;
7807
+ requestId: string;
7736
7808
  toolName: string;
7737
7809
  toolInput: string;
7738
7810
  permissionRequest: string;
7811
+ timestamp: number;
7812
+ } | undefined;
7813
+ permissionResolution?: {
7739
7814
  requestId: string;
7815
+ outcome: "allow" | "deny" | "cancelled";
7816
+ delivered: boolean;
7817
+ source?: string | undefined;
7740
7818
  } | undefined;
7741
7819
  pendingPermissionCount?: number | undefined;
7742
7820
  }>;
@@ -7750,6 +7828,28 @@ export declare const protocolMessageSchemas: {
7750
7828
  requestId: string;
7751
7829
  decision: "allow" | "deny";
7752
7830
  }>;
7831
+ readonly "permission.decision.result": z.ZodObject<{
7832
+ requestId: z.ZodString;
7833
+ decision: z.ZodEnum<["allow", "deny"]>;
7834
+ resolved: z.ZodBoolean;
7835
+ delivered: z.ZodBoolean;
7836
+ source: z.ZodOptional<z.ZodString>;
7837
+ message: z.ZodOptional<z.ZodString>;
7838
+ }, "strip", z.ZodTypeAny, {
7839
+ requestId: string;
7840
+ delivered: boolean;
7841
+ decision: "allow" | "deny";
7842
+ resolved: boolean;
7843
+ message?: string | undefined;
7844
+ source?: string | undefined;
7845
+ }, {
7846
+ requestId: string;
7847
+ delivered: boolean;
7848
+ decision: "allow" | "deny";
7849
+ resolved: boolean;
7850
+ message?: string | undefined;
7851
+ source?: string | undefined;
7852
+ }>;
7753
7853
  readonly "tunnel.request": z.ZodObject<{
7754
7854
  requestId: z.ZodString;
7755
7855
  method: z.ZodString;
@@ -7758,18 +7858,18 @@ export declare const protocolMessageSchemas: {
7758
7858
  body: z.ZodNullable<z.ZodString>;
7759
7859
  port: z.ZodNumber;
7760
7860
  }, "strip", z.ZodTypeAny, {
7761
- headers: Record<string, string>;
7762
7861
  requestId: string;
7862
+ body: string | null;
7763
7863
  method: string;
7764
7864
  url: string;
7765
- body: string | null;
7865
+ headers: Record<string, string>;
7766
7866
  port: number;
7767
7867
  }, {
7768
- headers: Record<string, string>;
7769
7868
  requestId: string;
7869
+ body: string | null;
7770
7870
  method: string;
7771
7871
  url: string;
7772
- body: string | null;
7872
+ headers: Record<string, string>;
7773
7873
  port: number;
7774
7874
  }>;
7775
7875
  readonly "tunnel.response": z.ZodObject<{
@@ -7779,16 +7879,16 @@ export declare const protocolMessageSchemas: {
7779
7879
  body: z.ZodString;
7780
7880
  isFinal: z.ZodBoolean;
7781
7881
  }, "strip", z.ZodTypeAny, {
7782
- headers: Record<string, string>;
7783
- isFinal: boolean;
7784
7882
  requestId: string;
7785
7883
  body: string;
7884
+ isFinal: boolean;
7885
+ headers: Record<string, string>;
7786
7886
  statusCode: number;
7787
7887
  }, {
7788
- headers: Record<string, string>;
7789
- isFinal: boolean;
7790
7888
  requestId: string;
7791
7889
  body: string;
7890
+ isFinal: boolean;
7891
+ headers: Record<string, string>;
7792
7892
  statusCode: number;
7793
7893
  }>;
7794
7894
  readonly "tunnel.ws.data": z.ZodObject<{
@@ -7796,12 +7896,12 @@ export declare const protocolMessageSchemas: {
7796
7896
  data: z.ZodString;
7797
7897
  isBinary: z.ZodBoolean;
7798
7898
  }, "strip", z.ZodTypeAny, {
7799
- data: string;
7800
7899
  requestId: string;
7900
+ data: string;
7801
7901
  isBinary: boolean;
7802
7902
  }, {
7803
- data: string;
7804
7903
  requestId: string;
7904
+ data: string;
7805
7905
  isBinary: boolean;
7806
7906
  }>;
7807
7907
  readonly "tunnel.ws.close": z.ZodObject<{
@@ -7875,25 +7975,25 @@ export declare const protocolMessageSchemas: {
7875
7975
  disabledReason: z.ZodOptional<z.ZodString>;
7876
7976
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
7877
7977
  }, "strip", z.ZodTypeAny, {
7878
- id: string;
7879
7978
  name: string;
7880
- title: string;
7881
7979
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
7980
+ id: string;
7981
+ title: string;
7882
7982
  argsMode: "none" | "optional" | "required" | "raw";
7883
7983
  executionKind: "prompt" | "native" | "local_ui";
7884
- provider?: "claude" | "codex" | "custom" | undefined;
7984
+ provider?: "custom" | "claude" | "codex" | undefined;
7885
7985
  description?: string | undefined;
7886
7986
  category?: string | undefined;
7887
7987
  requiresIdle?: boolean | undefined;
7888
7988
  destructive?: boolean | undefined;
7889
7989
  disabledReason?: string | undefined;
7890
7990
  }, {
7891
- id: string;
7892
7991
  name: string;
7992
+ id: string;
7893
7993
  title: string;
7894
- provider?: "claude" | "codex" | "custom" | undefined;
7895
- description?: string | undefined;
7994
+ provider?: "custom" | "claude" | "codex" | undefined;
7896
7995
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
7996
+ description?: string | undefined;
7897
7997
  category?: string | undefined;
7898
7998
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
7899
7999
  requiresIdle?: boolean | undefined;
@@ -7917,8 +8017,8 @@ export declare const protocolMessageSchemas: {
7917
8017
  currentMode: z.ZodOptional<z.ZodString>;
7918
8018
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
7919
8019
  }, "strip", z.ZodTypeAny, {
7920
- id: "claude" | "codex" | "custom";
7921
8020
  enabled: boolean;
8021
+ id: "custom" | "claude" | "codex";
7922
8022
  label: string;
7923
8023
  reason?: string | undefined;
7924
8024
  supportsImages?: boolean | undefined;
@@ -7933,13 +8033,13 @@ export declare const protocolMessageSchemas: {
7933
8033
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
7934
8034
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
7935
8035
  commands?: {
7936
- id: string;
7937
8036
  name: string;
7938
- title: string;
7939
8037
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
8038
+ id: string;
8039
+ title: string;
7940
8040
  argsMode: "none" | "optional" | "required" | "raw";
7941
8041
  executionKind: "prompt" | "native" | "local_ui";
7942
- provider?: "claude" | "codex" | "custom" | undefined;
8042
+ provider?: "custom" | "claude" | "codex" | undefined;
7943
8043
  description?: string | undefined;
7944
8044
  category?: string | undefined;
7945
8045
  requiresIdle?: boolean | undefined;
@@ -7954,8 +8054,8 @@ export declare const protocolMessageSchemas: {
7954
8054
  currentMode?: string | undefined;
7955
8055
  features?: Record<string, boolean> | undefined;
7956
8056
  }, {
7957
- id: "claude" | "codex" | "custom";
7958
8057
  enabled: boolean;
8058
+ id: "custom" | "claude" | "codex";
7959
8059
  label: string;
7960
8060
  reason?: string | undefined;
7961
8061
  supportsImages?: boolean | undefined;
@@ -7970,12 +8070,12 @@ export declare const protocolMessageSchemas: {
7970
8070
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
7971
8071
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
7972
8072
  commands?: {
7973
- id: string;
7974
8073
  name: string;
8074
+ id: string;
7975
8075
  title: string;
7976
- provider?: "claude" | "codex" | "custom" | undefined;
7977
- description?: string | undefined;
8076
+ provider?: "custom" | "claude" | "codex" | undefined;
7978
8077
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
8078
+ description?: string | undefined;
7979
8079
  category?: string | undefined;
7980
8080
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
7981
8081
  requiresIdle?: boolean | undefined;
@@ -8009,13 +8109,13 @@ export declare const protocolMessageSchemas: {
8009
8109
  supportsSessionList: boolean;
8010
8110
  supportsSessionLoad: boolean;
8011
8111
  supportsAudio: boolean;
8012
- error?: string | undefined;
8013
- provider?: "claude" | "codex" | "custom" | undefined;
8112
+ provider?: "custom" | "claude" | "codex" | undefined;
8014
8113
  protocolVersion?: number | undefined;
8015
8114
  machineId?: string | undefined;
8115
+ error?: string | undefined;
8016
8116
  providers?: {
8017
- id: "claude" | "codex" | "custom";
8018
8117
  enabled: boolean;
8118
+ id: "custom" | "claude" | "codex";
8019
8119
  label: string;
8020
8120
  reason?: string | undefined;
8021
8121
  supportsImages?: boolean | undefined;
@@ -8030,13 +8130,13 @@ export declare const protocolMessageSchemas: {
8030
8130
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8031
8131
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8032
8132
  commands?: {
8033
- id: string;
8034
8133
  name: string;
8035
- title: string;
8036
8134
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
8135
+ id: string;
8136
+ title: string;
8037
8137
  argsMode: "none" | "optional" | "required" | "raw";
8038
8138
  executionKind: "prompt" | "native" | "local_ui";
8039
- provider?: "claude" | "codex" | "custom" | undefined;
8139
+ provider?: "custom" | "claude" | "codex" | undefined;
8040
8140
  description?: string | undefined;
8041
8141
  category?: string | undefined;
8042
8142
  requiresIdle?: boolean | undefined;
@@ -8053,17 +8153,17 @@ export declare const protocolMessageSchemas: {
8053
8153
  }[] | undefined;
8054
8154
  }, {
8055
8155
  enabled: boolean;
8056
- error?: string | undefined;
8057
- provider?: "claude" | "codex" | "custom" | undefined;
8156
+ provider?: "custom" | "claude" | "codex" | undefined;
8058
8157
  protocolVersion?: number | undefined;
8059
8158
  machineId?: string | undefined;
8159
+ error?: string | undefined;
8060
8160
  supportsImages?: boolean | undefined;
8061
8161
  supportsPermission?: boolean | undefined;
8062
8162
  supportsPlan?: boolean | undefined;
8063
8163
  supportsCancel?: boolean | undefined;
8064
8164
  providers?: {
8065
- id: "claude" | "codex" | "custom";
8066
8165
  enabled: boolean;
8166
+ id: "custom" | "claude" | "codex";
8067
8167
  label: string;
8068
8168
  reason?: string | undefined;
8069
8169
  supportsImages?: boolean | undefined;
@@ -8078,12 +8178,12 @@ export declare const protocolMessageSchemas: {
8078
8178
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8079
8179
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8080
8180
  commands?: {
8081
- id: string;
8082
8181
  name: string;
8182
+ id: string;
8083
8183
  title: string;
8084
- provider?: "claude" | "codex" | "custom" | undefined;
8085
- description?: string | undefined;
8184
+ provider?: "custom" | "claude" | "codex" | undefined;
8086
8185
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
8186
+ description?: string | undefined;
8087
8187
  category?: string | undefined;
8088
8188
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
8089
8189
  requiresIdle?: boolean | undefined;
@@ -8108,11 +8208,11 @@ export declare const protocolMessageSchemas: {
8108
8208
  provider: z.ZodOptional<z.ZodEnum<["codex", "claude", "custom"]>>;
8109
8209
  mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8110
8210
  }, "strip", z.ZodTypeAny, {
8111
- provider?: "claude" | "codex" | "custom" | undefined;
8211
+ provider?: "custom" | "claude" | "codex" | undefined;
8112
8212
  cwd?: string | undefined;
8113
8213
  mcpServers?: Record<string, unknown> | undefined;
8114
8214
  }, {
8115
- provider?: "claude" | "codex" | "custom" | undefined;
8215
+ provider?: "custom" | "claude" | "codex" | undefined;
8116
8216
  cwd?: string | undefined;
8117
8217
  mcpServers?: Record<string, unknown> | undefined;
8118
8218
  }>;
@@ -8191,14 +8291,14 @@ export declare const protocolMessageSchemas: {
8191
8291
  createdAt: z.ZodNumber;
8192
8292
  isStreaming: z.ZodOptional<z.ZodBoolean>;
8193
8293
  }, "strip", z.ZodTypeAny, {
8194
- id: string;
8195
8294
  role: "user" | "assistant" | "system";
8295
+ id: string;
8196
8296
  content: string;
8197
8297
  createdAt: number;
8198
8298
  isStreaming?: boolean | undefined;
8199
8299
  }, {
8200
- id: string;
8201
8300
  role: "user" | "assistant" | "system";
8301
+ id: string;
8202
8302
  content: string;
8203
8303
  createdAt: number;
8204
8304
  isStreaming?: boolean | undefined;
@@ -8213,14 +8313,14 @@ export declare const protocolMessageSchemas: {
8213
8313
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
8214
8314
  }, "strip", z.ZodTypeAny, {
8215
8315
  status: "running" | "pending" | "completed" | "failed";
8216
- id: string;
8217
8316
  name: string;
8317
+ id: string;
8218
8318
  createdAt?: number | undefined;
8219
8319
  input?: string | undefined;
8220
8320
  output?: string | undefined;
8221
8321
  }, {
8222
- id: string;
8223
8322
  name: string;
8323
+ id: string;
8224
8324
  status?: "running" | "pending" | "completed" | "failed" | undefined;
8225
8325
  createdAt?: number | undefined;
8226
8326
  input?: string | undefined;
@@ -8242,17 +8342,17 @@ export declare const protocolMessageSchemas: {
8242
8342
  status: z.ZodOptional<z.ZodEnum<["idle", "running", "waiting_permission", "error"]>>;
8243
8343
  error: z.ZodOptional<z.ZodString>;
8244
8344
  }, "strip", z.ZodTypeAny, {
8245
- kind: "error" | "message" | "status" | "message_delta" | "tool_call" | "tool_result" | "plan";
8246
- error?: string | undefined;
8345
+ kind: "message" | "status" | "error" | "message_delta" | "tool_call" | "tool_result" | "plan";
8247
8346
  message?: {
8248
- id: string;
8249
8347
  role: "user" | "assistant" | "system";
8348
+ id: string;
8250
8349
  content: string;
8251
8350
  createdAt: number;
8252
8351
  isStreaming?: boolean | undefined;
8253
8352
  } | undefined;
8254
8353
  status?: "error" | "running" | "idle" | "waiting_permission" | undefined;
8255
8354
  agentSessionId?: string | undefined;
8355
+ error?: string | undefined;
8256
8356
  plan?: {
8257
8357
  status: "pending" | "completed" | "in_progress";
8258
8358
  id: string;
@@ -8261,24 +8361,24 @@ export declare const protocolMessageSchemas: {
8261
8361
  delta?: string | undefined;
8262
8362
  toolCall?: {
8263
8363
  status: "running" | "pending" | "completed" | "failed";
8264
- id: string;
8265
8364
  name: string;
8365
+ id: string;
8266
8366
  createdAt?: number | undefined;
8267
8367
  input?: string | undefined;
8268
8368
  output?: string | undefined;
8269
8369
  } | undefined;
8270
8370
  }, {
8271
- kind: "error" | "message" | "status" | "message_delta" | "tool_call" | "tool_result" | "plan";
8272
- error?: string | undefined;
8371
+ kind: "message" | "status" | "error" | "message_delta" | "tool_call" | "tool_result" | "plan";
8273
8372
  message?: {
8274
- id: string;
8275
8373
  role: "user" | "assistant" | "system";
8374
+ id: string;
8276
8375
  content: string;
8277
8376
  createdAt: number;
8278
8377
  isStreaming?: boolean | undefined;
8279
8378
  } | undefined;
8280
8379
  status?: "error" | "running" | "idle" | "waiting_permission" | undefined;
8281
8380
  agentSessionId?: string | undefined;
8381
+ error?: string | undefined;
8282
8382
  plan?: {
8283
8383
  status: "pending" | "completed" | "in_progress";
8284
8384
  id: string;
@@ -8286,8 +8386,8 @@ export declare const protocolMessageSchemas: {
8286
8386
  }[] | undefined;
8287
8387
  delta?: string | undefined;
8288
8388
  toolCall?: {
8289
- id: string;
8290
8389
  name: string;
8390
+ id: string;
8291
8391
  status?: "running" | "pending" | "completed" | "failed" | undefined;
8292
8392
  createdAt?: number | undefined;
8293
8393
  input?: string | undefined;
@@ -8321,9 +8421,9 @@ export declare const protocolMessageSchemas: {
8321
8421
  kind: "allow" | "deny" | "other";
8322
8422
  }[];
8323
8423
  requestId: string;
8424
+ agentSessionId?: string | undefined;
8324
8425
  toolName?: string | undefined;
8325
8426
  toolInput?: string | undefined;
8326
- agentSessionId?: string | undefined;
8327
8427
  context?: string | undefined;
8328
8428
  }, {
8329
8429
  requestId: string;
@@ -8332,9 +8432,9 @@ export declare const protocolMessageSchemas: {
8332
8432
  label: string;
8333
8433
  kind?: "allow" | "deny" | "other" | undefined;
8334
8434
  }[] | undefined;
8435
+ agentSessionId?: string | undefined;
8335
8436
  toolName?: string | undefined;
8336
8437
  toolInput?: string | undefined;
8337
- agentSessionId?: string | undefined;
8338
8438
  context?: string | undefined;
8339
8439
  }>;
8340
8440
  readonly "agent.permission.response": z.ZodObject<{
@@ -8345,13 +8445,13 @@ export declare const protocolMessageSchemas: {
8345
8445
  }, "strip", z.ZodTypeAny, {
8346
8446
  requestId: string;
8347
8447
  outcome: "allow" | "deny" | "cancelled";
8348
- agentSessionId?: string | undefined;
8349
8448
  optionId?: string | undefined;
8449
+ agentSessionId?: string | undefined;
8350
8450
  }, {
8351
8451
  requestId: string;
8352
8452
  outcome: "allow" | "deny" | "cancelled";
8353
- agentSessionId?: string | undefined;
8354
8453
  optionId?: string | undefined;
8454
+ agentSessionId?: string | undefined;
8355
8455
  }>;
8356
8456
  readonly "agent.snapshot": z.ZodObject<{
8357
8457
  agentSessionId: z.ZodOptional<z.ZodString>;
@@ -8395,25 +8495,25 @@ export declare const protocolMessageSchemas: {
8395
8495
  disabledReason: z.ZodOptional<z.ZodString>;
8396
8496
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
8397
8497
  }, "strip", z.ZodTypeAny, {
8398
- id: string;
8399
8498
  name: string;
8400
- title: string;
8401
8499
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
8500
+ id: string;
8501
+ title: string;
8402
8502
  argsMode: "none" | "optional" | "required" | "raw";
8403
8503
  executionKind: "prompt" | "native" | "local_ui";
8404
- provider?: "claude" | "codex" | "custom" | undefined;
8504
+ provider?: "custom" | "claude" | "codex" | undefined;
8405
8505
  description?: string | undefined;
8406
8506
  category?: string | undefined;
8407
8507
  requiresIdle?: boolean | undefined;
8408
8508
  destructive?: boolean | undefined;
8409
8509
  disabledReason?: string | undefined;
8410
8510
  }, {
8411
- id: string;
8412
8511
  name: string;
8512
+ id: string;
8413
8513
  title: string;
8414
- provider?: "claude" | "codex" | "custom" | undefined;
8415
- description?: string | undefined;
8514
+ provider?: "custom" | "claude" | "codex" | undefined;
8416
8515
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
8516
+ description?: string | undefined;
8417
8517
  category?: string | undefined;
8418
8518
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
8419
8519
  requiresIdle?: boolean | undefined;
@@ -8437,8 +8537,8 @@ export declare const protocolMessageSchemas: {
8437
8537
  currentMode: z.ZodOptional<z.ZodString>;
8438
8538
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
8439
8539
  }, "strip", z.ZodTypeAny, {
8440
- id: "claude" | "codex" | "custom";
8441
8540
  enabled: boolean;
8541
+ id: "custom" | "claude" | "codex";
8442
8542
  label: string;
8443
8543
  reason?: string | undefined;
8444
8544
  supportsImages?: boolean | undefined;
@@ -8453,13 +8553,13 @@ export declare const protocolMessageSchemas: {
8453
8553
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8454
8554
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8455
8555
  commands?: {
8456
- id: string;
8457
8556
  name: string;
8458
- title: string;
8459
8557
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
8558
+ id: string;
8559
+ title: string;
8460
8560
  argsMode: "none" | "optional" | "required" | "raw";
8461
8561
  executionKind: "prompt" | "native" | "local_ui";
8462
- provider?: "claude" | "codex" | "custom" | undefined;
8562
+ provider?: "custom" | "claude" | "codex" | undefined;
8463
8563
  description?: string | undefined;
8464
8564
  category?: string | undefined;
8465
8565
  requiresIdle?: boolean | undefined;
@@ -8474,8 +8574,8 @@ export declare const protocolMessageSchemas: {
8474
8574
  currentMode?: string | undefined;
8475
8575
  features?: Record<string, boolean> | undefined;
8476
8576
  }, {
8477
- id: "claude" | "codex" | "custom";
8478
8577
  enabled: boolean;
8578
+ id: "custom" | "claude" | "codex";
8479
8579
  label: string;
8480
8580
  reason?: string | undefined;
8481
8581
  supportsImages?: boolean | undefined;
@@ -8490,12 +8590,12 @@ export declare const protocolMessageSchemas: {
8490
8590
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8491
8591
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8492
8592
  commands?: {
8493
- id: string;
8494
8593
  name: string;
8594
+ id: string;
8495
8595
  title: string;
8496
- provider?: "claude" | "codex" | "custom" | undefined;
8497
- description?: string | undefined;
8596
+ provider?: "custom" | "claude" | "codex" | undefined;
8498
8597
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
8598
+ description?: string | undefined;
8499
8599
  category?: string | undefined;
8500
8600
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
8501
8601
  requiresIdle?: boolean | undefined;
@@ -8529,13 +8629,13 @@ export declare const protocolMessageSchemas: {
8529
8629
  supportsSessionList: boolean;
8530
8630
  supportsSessionLoad: boolean;
8531
8631
  supportsAudio: boolean;
8532
- error?: string | undefined;
8533
- provider?: "claude" | "codex" | "custom" | undefined;
8632
+ provider?: "custom" | "claude" | "codex" | undefined;
8534
8633
  protocolVersion?: number | undefined;
8535
8634
  machineId?: string | undefined;
8635
+ error?: string | undefined;
8536
8636
  providers?: {
8537
- id: "claude" | "codex" | "custom";
8538
8637
  enabled: boolean;
8638
+ id: "custom" | "claude" | "codex";
8539
8639
  label: string;
8540
8640
  reason?: string | undefined;
8541
8641
  supportsImages?: boolean | undefined;
@@ -8550,13 +8650,13 @@ export declare const protocolMessageSchemas: {
8550
8650
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8551
8651
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8552
8652
  commands?: {
8553
- id: string;
8554
8653
  name: string;
8555
- title: string;
8556
8654
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
8655
+ id: string;
8656
+ title: string;
8557
8657
  argsMode: "none" | "optional" | "required" | "raw";
8558
8658
  executionKind: "prompt" | "native" | "local_ui";
8559
- provider?: "claude" | "codex" | "custom" | undefined;
8659
+ provider?: "custom" | "claude" | "codex" | undefined;
8560
8660
  description?: string | undefined;
8561
8661
  category?: string | undefined;
8562
8662
  requiresIdle?: boolean | undefined;
@@ -8573,17 +8673,17 @@ export declare const protocolMessageSchemas: {
8573
8673
  }[] | undefined;
8574
8674
  }, {
8575
8675
  enabled: boolean;
8576
- error?: string | undefined;
8577
- provider?: "claude" | "codex" | "custom" | undefined;
8676
+ provider?: "custom" | "claude" | "codex" | undefined;
8578
8677
  protocolVersion?: number | undefined;
8579
8678
  machineId?: string | undefined;
8679
+ error?: string | undefined;
8580
8680
  supportsImages?: boolean | undefined;
8581
8681
  supportsPermission?: boolean | undefined;
8582
8682
  supportsPlan?: boolean | undefined;
8583
8683
  supportsCancel?: boolean | undefined;
8584
8684
  providers?: {
8585
- id: "claude" | "codex" | "custom";
8586
8685
  enabled: boolean;
8686
+ id: "custom" | "claude" | "codex";
8587
8687
  label: string;
8588
8688
  reason?: string | undefined;
8589
8689
  supportsImages?: boolean | undefined;
@@ -8598,12 +8698,12 @@ export declare const protocolMessageSchemas: {
8598
8698
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8599
8699
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8600
8700
  commands?: {
8601
- id: string;
8602
8701
  name: string;
8702
+ id: string;
8603
8703
  title: string;
8604
- provider?: "claude" | "codex" | "custom" | undefined;
8605
- description?: string | undefined;
8704
+ provider?: "custom" | "claude" | "codex" | undefined;
8606
8705
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
8706
+ description?: string | undefined;
8607
8707
  category?: string | undefined;
8608
8708
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
8609
8709
  requiresIdle?: boolean | undefined;
@@ -8630,14 +8730,14 @@ export declare const protocolMessageSchemas: {
8630
8730
  createdAt: z.ZodNumber;
8631
8731
  isStreaming: z.ZodOptional<z.ZodBoolean>;
8632
8732
  }, "strip", z.ZodTypeAny, {
8633
- id: string;
8634
8733
  role: "user" | "assistant" | "system";
8734
+ id: string;
8635
8735
  content: string;
8636
8736
  createdAt: number;
8637
8737
  isStreaming?: boolean | undefined;
8638
8738
  }, {
8639
- id: string;
8640
8739
  role: "user" | "assistant" | "system";
8740
+ id: string;
8641
8741
  content: string;
8642
8742
  createdAt: number;
8643
8743
  isStreaming?: boolean | undefined;
@@ -8651,14 +8751,14 @@ export declare const protocolMessageSchemas: {
8651
8751
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
8652
8752
  }, "strip", z.ZodTypeAny, {
8653
8753
  status: "running" | "pending" | "completed" | "failed";
8654
- id: string;
8655
8754
  name: string;
8755
+ id: string;
8656
8756
  createdAt?: number | undefined;
8657
8757
  input?: string | undefined;
8658
8758
  output?: string | undefined;
8659
8759
  }, {
8660
- id: string;
8661
8760
  name: string;
8761
+ id: string;
8662
8762
  status?: "running" | "pending" | "completed" | "failed" | undefined;
8663
8763
  createdAt?: number | undefined;
8664
8764
  input?: string | undefined;
@@ -8708,16 +8808,16 @@ export declare const protocolMessageSchemas: {
8708
8808
  }, "strip", z.ZodTypeAny, {
8709
8809
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
8710
8810
  messages: {
8711
- id: string;
8712
8811
  role: "user" | "assistant" | "system";
8812
+ id: string;
8713
8813
  content: string;
8714
8814
  createdAt: number;
8715
8815
  isStreaming?: boolean | undefined;
8716
8816
  }[];
8717
8817
  toolCalls: {
8718
8818
  status: "running" | "pending" | "completed" | "failed";
8719
- id: string;
8720
8819
  name: string;
8820
+ id: string;
8721
8821
  createdAt?: number | undefined;
8722
8822
  input?: string | undefined;
8723
8823
  output?: string | undefined;
@@ -8733,8 +8833,8 @@ export declare const protocolMessageSchemas: {
8733
8833
  toolInput?: string | undefined;
8734
8834
  context?: string | undefined;
8735
8835
  }[];
8736
- error?: string | undefined;
8737
8836
  agentSessionId?: string | undefined;
8837
+ error?: string | undefined;
8738
8838
  capabilities?: {
8739
8839
  enabled: boolean;
8740
8840
  supportsImages: boolean;
@@ -8744,13 +8844,13 @@ export declare const protocolMessageSchemas: {
8744
8844
  supportsSessionList: boolean;
8745
8845
  supportsSessionLoad: boolean;
8746
8846
  supportsAudio: boolean;
8747
- error?: string | undefined;
8748
- provider?: "claude" | "codex" | "custom" | undefined;
8847
+ provider?: "custom" | "claude" | "codex" | undefined;
8749
8848
  protocolVersion?: number | undefined;
8750
8849
  machineId?: string | undefined;
8850
+ error?: string | undefined;
8751
8851
  providers?: {
8752
- id: "claude" | "codex" | "custom";
8753
8852
  enabled: boolean;
8853
+ id: "custom" | "claude" | "codex";
8754
8854
  label: string;
8755
8855
  reason?: string | undefined;
8756
8856
  supportsImages?: boolean | undefined;
@@ -8765,13 +8865,13 @@ export declare const protocolMessageSchemas: {
8765
8865
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8766
8866
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8767
8867
  commands?: {
8768
- id: string;
8769
8868
  name: string;
8770
- title: string;
8771
8869
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
8870
+ id: string;
8871
+ title: string;
8772
8872
  argsMode: "none" | "optional" | "required" | "raw";
8773
8873
  executionKind: "prompt" | "native" | "local_ui";
8774
- provider?: "claude" | "codex" | "custom" | undefined;
8874
+ provider?: "custom" | "claude" | "codex" | undefined;
8775
8875
  description?: string | undefined;
8776
8876
  category?: string | undefined;
8777
8877
  requiresIdle?: boolean | undefined;
@@ -8788,22 +8888,22 @@ export declare const protocolMessageSchemas: {
8788
8888
  }[] | undefined;
8789
8889
  } | undefined;
8790
8890
  }, {
8791
- error?: string | undefined;
8792
8891
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
8793
8892
  agentSessionId?: string | undefined;
8893
+ error?: string | undefined;
8794
8894
  capabilities?: {
8795
8895
  enabled: boolean;
8796
- error?: string | undefined;
8797
- provider?: "claude" | "codex" | "custom" | undefined;
8896
+ provider?: "custom" | "claude" | "codex" | undefined;
8798
8897
  protocolVersion?: number | undefined;
8799
8898
  machineId?: string | undefined;
8899
+ error?: string | undefined;
8800
8900
  supportsImages?: boolean | undefined;
8801
8901
  supportsPermission?: boolean | undefined;
8802
8902
  supportsPlan?: boolean | undefined;
8803
8903
  supportsCancel?: boolean | undefined;
8804
8904
  providers?: {
8805
- id: "claude" | "codex" | "custom";
8806
8905
  enabled: boolean;
8906
+ id: "custom" | "claude" | "codex";
8807
8907
  label: string;
8808
8908
  reason?: string | undefined;
8809
8909
  supportsImages?: boolean | undefined;
@@ -8818,12 +8918,12 @@ export declare const protocolMessageSchemas: {
8818
8918
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8819
8919
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8820
8920
  commands?: {
8821
- id: string;
8822
8921
  name: string;
8922
+ id: string;
8823
8923
  title: string;
8824
- provider?: "claude" | "codex" | "custom" | undefined;
8825
- description?: string | undefined;
8924
+ provider?: "custom" | "claude" | "codex" | undefined;
8826
8925
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
8926
+ description?: string | undefined;
8827
8927
  category?: string | undefined;
8828
8928
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
8829
8929
  requiresIdle?: boolean | undefined;
@@ -8844,15 +8944,15 @@ export declare const protocolMessageSchemas: {
8844
8944
  supportsAudio?: boolean | undefined;
8845
8945
  } | undefined;
8846
8946
  messages?: {
8847
- id: string;
8848
8947
  role: "user" | "assistant" | "system";
8948
+ id: string;
8849
8949
  content: string;
8850
8950
  createdAt: number;
8851
8951
  isStreaming?: boolean | undefined;
8852
8952
  }[] | undefined;
8853
8953
  toolCalls?: {
8854
- id: string;
8855
8954
  name: string;
8955
+ id: string;
8856
8956
  status?: "running" | "pending" | "completed" | "failed" | undefined;
8857
8957
  createdAt?: number | undefined;
8858
8958
  input?: string | undefined;
@@ -8911,25 +9011,25 @@ export declare const protocolMessageSchemas: {
8911
9011
  disabledReason: z.ZodOptional<z.ZodString>;
8912
9012
  executionKind: z.ZodDefault<z.ZodEnum<["prompt", "native", "local_ui"]>>;
8913
9013
  }, "strip", z.ZodTypeAny, {
8914
- id: string;
8915
9014
  name: string;
8916
- title: string;
8917
9015
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
9016
+ id: string;
9017
+ title: string;
8918
9018
  argsMode: "none" | "optional" | "required" | "raw";
8919
9019
  executionKind: "prompt" | "native" | "local_ui";
8920
- provider?: "claude" | "codex" | "custom" | undefined;
9020
+ provider?: "custom" | "claude" | "codex" | undefined;
8921
9021
  description?: string | undefined;
8922
9022
  category?: string | undefined;
8923
9023
  requiresIdle?: boolean | undefined;
8924
9024
  destructive?: boolean | undefined;
8925
9025
  disabledReason?: string | undefined;
8926
9026
  }, {
8927
- id: string;
8928
9027
  name: string;
9028
+ id: string;
8929
9029
  title: string;
8930
- provider?: "claude" | "codex" | "custom" | undefined;
8931
- description?: string | undefined;
9030
+ provider?: "custom" | "claude" | "codex" | undefined;
8932
9031
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
9032
+ description?: string | undefined;
8933
9033
  category?: string | undefined;
8934
9034
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
8935
9035
  requiresIdle?: boolean | undefined;
@@ -8953,8 +9053,8 @@ export declare const protocolMessageSchemas: {
8953
9053
  currentMode: z.ZodOptional<z.ZodString>;
8954
9054
  features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
8955
9055
  }, "strip", z.ZodTypeAny, {
8956
- id: "claude" | "codex" | "custom";
8957
9056
  enabled: boolean;
9057
+ id: "custom" | "claude" | "codex";
8958
9058
  label: string;
8959
9059
  reason?: string | undefined;
8960
9060
  supportsImages?: boolean | undefined;
@@ -8969,13 +9069,13 @@ export declare const protocolMessageSchemas: {
8969
9069
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8970
9070
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8971
9071
  commands?: {
8972
- id: string;
8973
9072
  name: string;
8974
- title: string;
8975
9073
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
9074
+ id: string;
9075
+ title: string;
8976
9076
  argsMode: "none" | "optional" | "required" | "raw";
8977
9077
  executionKind: "prompt" | "native" | "local_ui";
8978
- provider?: "claude" | "codex" | "custom" | undefined;
9078
+ provider?: "custom" | "claude" | "codex" | undefined;
8979
9079
  description?: string | undefined;
8980
9080
  category?: string | undefined;
8981
9081
  requiresIdle?: boolean | undefined;
@@ -8990,8 +9090,8 @@ export declare const protocolMessageSchemas: {
8990
9090
  currentMode?: string | undefined;
8991
9091
  features?: Record<string, boolean> | undefined;
8992
9092
  }, {
8993
- id: "claude" | "codex" | "custom";
8994
9093
  enabled: boolean;
9094
+ id: "custom" | "claude" | "codex";
8995
9095
  label: string;
8996
9096
  reason?: string | undefined;
8997
9097
  supportsImages?: boolean | undefined;
@@ -9006,12 +9106,12 @@ export declare const protocolMessageSchemas: {
9006
9106
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9007
9107
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9008
9108
  commands?: {
9009
- id: string;
9010
9109
  name: string;
9110
+ id: string;
9011
9111
  title: string;
9012
- provider?: "claude" | "codex" | "custom" | undefined;
9013
- description?: string | undefined;
9112
+ provider?: "custom" | "claude" | "codex" | undefined;
9014
9113
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
9114
+ description?: string | undefined;
9015
9115
  category?: string | undefined;
9016
9116
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
9017
9117
  requiresIdle?: boolean | undefined;
@@ -9048,13 +9148,13 @@ export declare const protocolMessageSchemas: {
9048
9148
  supportsSessionLoad: boolean;
9049
9149
  supportsAudio: boolean;
9050
9150
  workspaceProtocolVersion: number;
9051
- error?: string | undefined;
9052
- provider?: "claude" | "codex" | "custom" | undefined;
9151
+ provider?: "custom" | "claude" | "codex" | undefined;
9053
9152
  protocolVersion?: number | undefined;
9054
9153
  machineId?: string | undefined;
9154
+ error?: string | undefined;
9055
9155
  providers?: {
9056
- id: "claude" | "codex" | "custom";
9057
9156
  enabled: boolean;
9157
+ id: "custom" | "claude" | "codex";
9058
9158
  label: string;
9059
9159
  reason?: string | undefined;
9060
9160
  supportsImages?: boolean | undefined;
@@ -9069,13 +9169,13 @@ export declare const protocolMessageSchemas: {
9069
9169
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9070
9170
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9071
9171
  commands?: {
9072
- id: string;
9073
9172
  name: string;
9074
- title: string;
9075
9173
  source: "custom" | "built_in" | "project" | "user" | "linkshell";
9174
+ id: string;
9175
+ title: string;
9076
9176
  argsMode: "none" | "optional" | "required" | "raw";
9077
9177
  executionKind: "prompt" | "native" | "local_ui";
9078
- provider?: "claude" | "codex" | "custom" | undefined;
9178
+ provider?: "custom" | "claude" | "codex" | undefined;
9079
9179
  description?: string | undefined;
9080
9180
  category?: string | undefined;
9081
9181
  requiresIdle?: boolean | undefined;
@@ -9092,17 +9192,17 @@ export declare const protocolMessageSchemas: {
9092
9192
  }[] | undefined;
9093
9193
  }, {
9094
9194
  enabled: boolean;
9095
- error?: string | undefined;
9096
- provider?: "claude" | "codex" | "custom" | undefined;
9195
+ provider?: "custom" | "claude" | "codex" | undefined;
9097
9196
  protocolVersion?: number | undefined;
9098
9197
  machineId?: string | undefined;
9198
+ error?: string | undefined;
9099
9199
  supportsImages?: boolean | undefined;
9100
9200
  supportsPermission?: boolean | undefined;
9101
9201
  supportsPlan?: boolean | undefined;
9102
9202
  supportsCancel?: boolean | undefined;
9103
9203
  providers?: {
9104
- id: "claude" | "codex" | "custom";
9105
9204
  enabled: boolean;
9205
+ id: "custom" | "claude" | "codex";
9106
9206
  label: string;
9107
9207
  reason?: string | undefined;
9108
9208
  supportsImages?: boolean | undefined;
@@ -9117,12 +9217,12 @@ export declare const protocolMessageSchemas: {
9117
9217
  reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
9118
9218
  permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
9119
9219
  commands?: {
9120
- id: string;
9121
9220
  name: string;
9221
+ id: string;
9122
9222
  title: string;
9123
- provider?: "claude" | "codex" | "custom" | undefined;
9124
- description?: string | undefined;
9223
+ provider?: "custom" | "claude" | "codex" | undefined;
9125
9224
  source?: "custom" | "built_in" | "project" | "user" | "linkshell" | undefined;
9225
+ description?: string | undefined;
9126
9226
  category?: string | undefined;
9127
9227
  argsMode?: "none" | "optional" | "required" | "raw" | undefined;
9128
9228
  requiresIdle?: boolean | undefined;
@@ -9154,25 +9254,25 @@ export declare const protocolMessageSchemas: {
9154
9254
  collaborationMode: z.ZodOptional<z.ZodEnum<["default", "plan"]>>;
9155
9255
  title: z.ZodOptional<z.ZodString>;
9156
9256
  }, "strip", z.ZodTypeAny, {
9157
- provider?: "claude" | "codex" | "custom" | undefined;
9257
+ conversationId?: string | undefined;
9258
+ agentSessionId?: string | undefined;
9259
+ provider?: "custom" | "claude" | "codex" | undefined;
9158
9260
  cwd?: string | undefined;
9159
9261
  title?: string | undefined;
9160
- agentSessionId?: string | undefined;
9161
9262
  model?: string | undefined;
9162
9263
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
9163
9264
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
9164
- conversationId?: string | undefined;
9165
- collaborationMode?: "default" | "plan" | undefined;
9265
+ collaborationMode?: "plan" | "default" | undefined;
9166
9266
  }, {
9167
- provider?: "claude" | "codex" | "custom" | undefined;
9267
+ conversationId?: string | undefined;
9268
+ agentSessionId?: string | undefined;
9269
+ provider?: "custom" | "claude" | "codex" | undefined;
9168
9270
  cwd?: string | undefined;
9169
9271
  title?: string | undefined;
9170
- agentSessionId?: string | undefined;
9171
9272
  model?: string | undefined;
9172
9273
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
9173
9274
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
9174
- conversationId?: string | undefined;
9175
- collaborationMode?: "default" | "plan" | undefined;
9275
+ collaborationMode?: "plan" | "default" | undefined;
9176
9276
  }>;
9177
9277
  readonly "agent.v2.conversation.opened": z.ZodObject<{
9178
9278
  conversation: z.ZodObject<{
@@ -9192,32 +9292,32 @@ export declare const protocolMessageSchemas: {
9192
9292
  createdAt: z.ZodNumber;
9193
9293
  }, "strip", z.ZodTypeAny, {
9194
9294
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
9195
- id: string;
9196
- provider: "claude" | "codex" | "custom";
9295
+ provider: "custom" | "claude" | "codex";
9197
9296
  cwd: string;
9297
+ id: string;
9198
9298
  createdAt: number;
9199
9299
  archived: boolean;
9200
9300
  lastActivityAt: number;
9201
- title?: string | undefined;
9202
9301
  agentSessionId?: string | undefined;
9302
+ title?: string | undefined;
9203
9303
  model?: string | undefined;
9204
9304
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
9205
9305
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
9206
- collaborationMode?: "default" | "plan" | undefined;
9306
+ collaborationMode?: "plan" | "default" | undefined;
9207
9307
  lastMessagePreview?: string | undefined;
9208
9308
  }, {
9209
- id: string;
9210
9309
  cwd: string;
9310
+ id: string;
9211
9311
  createdAt: number;
9212
9312
  lastActivityAt: number;
9213
9313
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
9214
- provider?: "claude" | "codex" | "custom" | undefined;
9215
- title?: string | undefined;
9216
9314
  agentSessionId?: string | undefined;
9315
+ provider?: "custom" | "claude" | "codex" | undefined;
9316
+ title?: string | undefined;
9217
9317
  model?: string | undefined;
9218
9318
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
9219
9319
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
9220
- collaborationMode?: "default" | "plan" | undefined;
9320
+ collaborationMode?: "plan" | "default" | undefined;
9221
9321
  archived?: boolean | undefined;
9222
9322
  lastMessagePreview?: string | undefined;
9223
9323
  }>;
@@ -9255,14 +9355,14 @@ export declare const protocolMessageSchemas: {
9255
9355
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
9256
9356
  }, "strip", z.ZodTypeAny, {
9257
9357
  status: "running" | "pending" | "completed" | "failed";
9258
- id: string;
9259
9358
  name: string;
9359
+ id: string;
9260
9360
  createdAt?: number | undefined;
9261
9361
  input?: string | undefined;
9262
9362
  output?: string | undefined;
9263
9363
  }, {
9264
- id: string;
9265
9364
  name: string;
9365
+ id: string;
9266
9366
  status?: "running" | "pending" | "completed" | "failed" | undefined;
9267
9367
  createdAt?: number | undefined;
9268
9368
  input?: string | undefined;
@@ -9548,13 +9648,13 @@ export declare const protocolMessageSchemas: {
9548
9648
  updatedAt: z.ZodOptional<z.ZodNumber>;
9549
9649
  isStreaming: z.ZodOptional<z.ZodBoolean>;
9550
9650
  }, "strip", z.ZodTypeAny, {
9551
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
9651
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
9652
+ conversationId: string;
9552
9653
  id: string;
9553
9654
  createdAt: number;
9554
- conversationId: string;
9555
- error?: string | undefined;
9556
9655
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
9557
9656
  role?: "user" | "assistant" | "system" | undefined;
9657
+ error?: string | undefined;
9558
9658
  text?: string | undefined;
9559
9659
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9560
9660
  plan?: {
@@ -9571,8 +9671,8 @@ export declare const protocolMessageSchemas: {
9571
9671
  isStreaming?: boolean | undefined;
9572
9672
  toolCall?: {
9573
9673
  status: "running" | "pending" | "completed" | "failed";
9574
- id: string;
9575
9674
  name: string;
9675
+ id: string;
9576
9676
  createdAt?: number | undefined;
9577
9677
  input?: string | undefined;
9578
9678
  output?: string | undefined;
@@ -9648,13 +9748,13 @@ export declare const protocolMessageSchemas: {
9648
9748
  metadata?: Record<string, unknown> | undefined;
9649
9749
  updatedAt?: number | undefined;
9650
9750
  }, {
9651
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
9751
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
9752
+ conversationId: string;
9652
9753
  id: string;
9653
9754
  createdAt: number;
9654
- conversationId: string;
9655
- error?: string | undefined;
9656
9755
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
9657
9756
  role?: "user" | "assistant" | "system" | undefined;
9757
+ error?: string | undefined;
9658
9758
  text?: string | undefined;
9659
9759
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9660
9760
  plan?: {
@@ -9670,8 +9770,8 @@ export declare const protocolMessageSchemas: {
9670
9770
  }[] | undefined;
9671
9771
  isStreaming?: boolean | undefined;
9672
9772
  toolCall?: {
9673
- id: string;
9674
9773
  name: string;
9774
+ id: string;
9675
9775
  status?: "running" | "pending" | "completed" | "failed" | undefined;
9676
9776
  createdAt?: number | undefined;
9677
9777
  input?: string | undefined;
@@ -9751,28 +9851,28 @@ export declare const protocolMessageSchemas: {
9751
9851
  }, "strip", z.ZodTypeAny, {
9752
9852
  conversation: {
9753
9853
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
9754
- id: string;
9755
- provider: "claude" | "codex" | "custom";
9854
+ provider: "custom" | "claude" | "codex";
9756
9855
  cwd: string;
9856
+ id: string;
9757
9857
  createdAt: number;
9758
9858
  archived: boolean;
9759
9859
  lastActivityAt: number;
9760
- title?: string | undefined;
9761
9860
  agentSessionId?: string | undefined;
9861
+ title?: string | undefined;
9762
9862
  model?: string | undefined;
9763
9863
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
9764
9864
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
9765
- collaborationMode?: "default" | "plan" | undefined;
9865
+ collaborationMode?: "plan" | "default" | undefined;
9766
9866
  lastMessagePreview?: string | undefined;
9767
9867
  };
9768
9868
  snapshot: {
9769
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
9869
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
9870
+ conversationId: string;
9770
9871
  id: string;
9771
9872
  createdAt: number;
9772
- conversationId: string;
9773
- error?: string | undefined;
9774
9873
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
9775
9874
  role?: "user" | "assistant" | "system" | undefined;
9875
+ error?: string | undefined;
9776
9876
  text?: string | undefined;
9777
9877
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9778
9878
  plan?: {
@@ -9789,8 +9889,8 @@ export declare const protocolMessageSchemas: {
9789
9889
  isStreaming?: boolean | undefined;
9790
9890
  toolCall?: {
9791
9891
  status: "running" | "pending" | "completed" | "failed";
9792
- id: string;
9793
9892
  name: string;
9893
+ id: string;
9794
9894
  createdAt?: number | undefined;
9795
9895
  input?: string | undefined;
9796
9896
  output?: string | undefined;
@@ -9868,29 +9968,29 @@ export declare const protocolMessageSchemas: {
9868
9968
  }[];
9869
9969
  }, {
9870
9970
  conversation: {
9871
- id: string;
9872
9971
  cwd: string;
9972
+ id: string;
9873
9973
  createdAt: number;
9874
9974
  lastActivityAt: number;
9875
9975
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
9876
- provider?: "claude" | "codex" | "custom" | undefined;
9877
- title?: string | undefined;
9878
9976
  agentSessionId?: string | undefined;
9977
+ provider?: "custom" | "claude" | "codex" | undefined;
9978
+ title?: string | undefined;
9879
9979
  model?: string | undefined;
9880
9980
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
9881
9981
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
9882
- collaborationMode?: "default" | "plan" | undefined;
9982
+ collaborationMode?: "plan" | "default" | undefined;
9883
9983
  archived?: boolean | undefined;
9884
9984
  lastMessagePreview?: string | undefined;
9885
9985
  };
9886
9986
  snapshot?: {
9887
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
9987
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
9988
+ conversationId: string;
9888
9989
  id: string;
9889
9990
  createdAt: number;
9890
- conversationId: string;
9891
- error?: string | undefined;
9892
9991
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
9893
9992
  role?: "user" | "assistant" | "system" | undefined;
9993
+ error?: string | undefined;
9894
9994
  text?: string | undefined;
9895
9995
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
9896
9996
  plan?: {
@@ -9906,8 +10006,8 @@ export declare const protocolMessageSchemas: {
9906
10006
  }[] | undefined;
9907
10007
  isStreaming?: boolean | undefined;
9908
10008
  toolCall?: {
9909
- id: string;
9910
10009
  name: string;
10010
+ id: string;
9911
10011
  status?: "running" | "pending" | "completed" | "failed" | undefined;
9912
10012
  createdAt?: number | undefined;
9913
10013
  input?: string | undefined;
@@ -10010,66 +10110,66 @@ export declare const protocolMessageSchemas: {
10010
10110
  createdAt: z.ZodNumber;
10011
10111
  }, "strip", z.ZodTypeAny, {
10012
10112
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
10013
- id: string;
10014
- provider: "claude" | "codex" | "custom";
10113
+ provider: "custom" | "claude" | "codex";
10015
10114
  cwd: string;
10115
+ id: string;
10016
10116
  createdAt: number;
10017
10117
  archived: boolean;
10018
10118
  lastActivityAt: number;
10019
- title?: string | undefined;
10020
10119
  agentSessionId?: string | undefined;
10120
+ title?: string | undefined;
10021
10121
  model?: string | undefined;
10022
10122
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
10023
10123
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
10024
- collaborationMode?: "default" | "plan" | undefined;
10124
+ collaborationMode?: "plan" | "default" | undefined;
10025
10125
  lastMessagePreview?: string | undefined;
10026
10126
  }, {
10027
- id: string;
10028
10127
  cwd: string;
10128
+ id: string;
10029
10129
  createdAt: number;
10030
10130
  lastActivityAt: number;
10031
10131
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10032
- provider?: "claude" | "codex" | "custom" | undefined;
10033
- title?: string | undefined;
10034
10132
  agentSessionId?: string | undefined;
10133
+ provider?: "custom" | "claude" | "codex" | undefined;
10134
+ title?: string | undefined;
10035
10135
  model?: string | undefined;
10036
10136
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
10037
10137
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
10038
- collaborationMode?: "default" | "plan" | undefined;
10138
+ collaborationMode?: "plan" | "default" | undefined;
10039
10139
  archived?: boolean | undefined;
10040
10140
  lastMessagePreview?: string | undefined;
10041
10141
  }>, "many">;
10042
10142
  }, "strip", z.ZodTypeAny, {
10043
10143
  conversations: {
10044
10144
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
10045
- id: string;
10046
- provider: "claude" | "codex" | "custom";
10145
+ provider: "custom" | "claude" | "codex";
10047
10146
  cwd: string;
10147
+ id: string;
10048
10148
  createdAt: number;
10049
10149
  archived: boolean;
10050
10150
  lastActivityAt: number;
10051
- title?: string | undefined;
10052
10151
  agentSessionId?: string | undefined;
10152
+ title?: string | undefined;
10053
10153
  model?: string | undefined;
10054
10154
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
10055
10155
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
10056
- collaborationMode?: "default" | "plan" | undefined;
10156
+ collaborationMode?: "plan" | "default" | undefined;
10057
10157
  lastMessagePreview?: string | undefined;
10058
10158
  }[];
10059
10159
  }, {
10060
10160
  conversations: {
10061
- id: string;
10062
10161
  cwd: string;
10162
+ id: string;
10063
10163
  createdAt: number;
10064
10164
  lastActivityAt: number;
10065
10165
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10066
- provider?: "claude" | "codex" | "custom" | undefined;
10067
- title?: string | undefined;
10068
10166
  agentSessionId?: string | undefined;
10167
+ provider?: "custom" | "claude" | "codex" | undefined;
10168
+ title?: string | undefined;
10069
10169
  model?: string | undefined;
10070
10170
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
10071
10171
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
10072
- collaborationMode?: "default" | "plan" | undefined;
10172
+ collaborationMode?: "plan" | "default" | undefined;
10073
10173
  archived?: boolean | undefined;
10074
10174
  lastMessagePreview?: string | undefined;
10075
10175
  }[];
@@ -10098,6 +10198,7 @@ export declare const protocolMessageSchemas: {
10098
10198
  permissionMode: z.ZodOptional<z.ZodEnum<["read_only", "workspace_write", "full_access"]>>;
10099
10199
  collaborationMode: z.ZodOptional<z.ZodEnum<["default", "plan"]>>;
10100
10200
  }, "strip", z.ZodTypeAny, {
10201
+ conversationId: string;
10101
10202
  clientMessageId: string;
10102
10203
  contentBlocks: {
10103
10204
  type: "text" | "image";
@@ -10105,12 +10206,12 @@ export declare const protocolMessageSchemas: {
10105
10206
  text?: string | undefined;
10106
10207
  mimeType?: string | undefined;
10107
10208
  }[];
10108
- conversationId: string;
10109
10209
  model?: string | undefined;
10110
10210
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
10111
10211
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
10112
- collaborationMode?: "default" | "plan" | undefined;
10212
+ collaborationMode?: "plan" | "default" | undefined;
10113
10213
  }, {
10214
+ conversationId: string;
10114
10215
  clientMessageId: string;
10115
10216
  contentBlocks: {
10116
10217
  type: "text" | "image";
@@ -10118,11 +10219,10 @@ export declare const protocolMessageSchemas: {
10118
10219
  text?: string | undefined;
10119
10220
  mimeType?: string | undefined;
10120
10221
  }[];
10121
- conversationId: string;
10122
10222
  model?: string | undefined;
10123
10223
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
10124
10224
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
10125
- collaborationMode?: "default" | "plan" | undefined;
10225
+ collaborationMode?: "plan" | "default" | undefined;
10126
10226
  }>;
10127
10227
  readonly "agent.v2.command.execute": z.ZodObject<{
10128
10228
  conversationId: z.ZodString;
@@ -10131,14 +10231,14 @@ export declare const protocolMessageSchemas: {
10131
10231
  args: z.ZodOptional<z.ZodString>;
10132
10232
  clientMessageId: z.ZodString;
10133
10233
  }, "strip", z.ZodTypeAny, {
10134
- clientMessageId: string;
10135
10234
  conversationId: string;
10235
+ clientMessageId: string;
10136
10236
  commandId: string;
10137
10237
  rawText?: string | undefined;
10138
10238
  args?: string | undefined;
10139
10239
  }, {
10140
- clientMessageId: string;
10141
10240
  conversationId: string;
10241
+ clientMessageId: string;
10142
10242
  commandId: string;
10143
10243
  rawText?: string | undefined;
10144
10244
  args?: string | undefined;
@@ -10156,14 +10256,14 @@ export declare const protocolMessageSchemas: {
10156
10256
  outcome: z.ZodEnum<["allow", "deny", "cancelled"]>;
10157
10257
  optionId: z.ZodOptional<z.ZodString>;
10158
10258
  }, "strip", z.ZodTypeAny, {
10259
+ conversationId: string;
10159
10260
  requestId: string;
10160
10261
  outcome: "allow" | "deny" | "cancelled";
10161
- conversationId: string;
10162
10262
  optionId?: string | undefined;
10163
10263
  }, {
10264
+ conversationId: string;
10164
10265
  requestId: string;
10165
10266
  outcome: "allow" | "deny" | "cancelled";
10166
- conversationId: string;
10167
10267
  optionId?: string | undefined;
10168
10268
  }>;
10169
10269
  readonly "agent.v2.permission.request": z.ZodObject<{
@@ -10220,14 +10320,14 @@ export declare const protocolMessageSchemas: {
10220
10320
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
10221
10321
  }, "strip", z.ZodTypeAny, {
10222
10322
  status: "running" | "pending" | "completed" | "failed";
10223
- id: string;
10224
10323
  name: string;
10324
+ id: string;
10225
10325
  createdAt?: number | undefined;
10226
10326
  input?: string | undefined;
10227
10327
  output?: string | undefined;
10228
10328
  }, {
10229
- id: string;
10230
10329
  name: string;
10330
+ id: string;
10231
10331
  status?: "running" | "pending" | "completed" | "failed" | undefined;
10232
10332
  createdAt?: number | undefined;
10233
10333
  input?: string | undefined;
@@ -10513,13 +10613,13 @@ export declare const protocolMessageSchemas: {
10513
10613
  updatedAt: z.ZodOptional<z.ZodNumber>;
10514
10614
  isStreaming: z.ZodOptional<z.ZodBoolean>;
10515
10615
  }, "strip", z.ZodTypeAny, {
10516
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
10616
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
10617
+ conversationId: string;
10517
10618
  id: string;
10518
10619
  createdAt: number;
10519
- conversationId: string;
10520
- error?: string | undefined;
10521
10620
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10522
10621
  role?: "user" | "assistant" | "system" | undefined;
10622
+ error?: string | undefined;
10523
10623
  text?: string | undefined;
10524
10624
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10525
10625
  plan?: {
@@ -10536,8 +10636,8 @@ export declare const protocolMessageSchemas: {
10536
10636
  isStreaming?: boolean | undefined;
10537
10637
  toolCall?: {
10538
10638
  status: "running" | "pending" | "completed" | "failed";
10539
- id: string;
10540
10639
  name: string;
10640
+ id: string;
10541
10641
  createdAt?: number | undefined;
10542
10642
  input?: string | undefined;
10543
10643
  output?: string | undefined;
@@ -10613,13 +10713,13 @@ export declare const protocolMessageSchemas: {
10613
10713
  metadata?: Record<string, unknown> | undefined;
10614
10714
  updatedAt?: number | undefined;
10615
10715
  }, {
10616
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
10716
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
10717
+ conversationId: string;
10617
10718
  id: string;
10618
10719
  createdAt: number;
10619
- conversationId: string;
10620
- error?: string | undefined;
10621
10720
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10622
10721
  role?: "user" | "assistant" | "system" | undefined;
10722
+ error?: string | undefined;
10623
10723
  text?: string | undefined;
10624
10724
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10625
10725
  plan?: {
@@ -10635,8 +10735,8 @@ export declare const protocolMessageSchemas: {
10635
10735
  }[] | undefined;
10636
10736
  isStreaming?: boolean | undefined;
10637
10737
  toolCall?: {
10638
- id: string;
10639
10738
  name: string;
10739
+ id: string;
10640
10740
  status?: "running" | "pending" | "completed" | "failed" | undefined;
10641
10741
  createdAt?: number | undefined;
10642
10742
  input?: string | undefined;
@@ -10719,19 +10819,19 @@ export declare const protocolMessageSchemas: {
10719
10819
  label: string;
10720
10820
  kind: "allow" | "deny" | "other";
10721
10821
  }[];
10722
- requestId: string;
10723
10822
  conversationId: string;
10823
+ requestId: string;
10724
10824
  toolName?: string | undefined;
10725
10825
  toolInput?: string | undefined;
10726
10826
  context?: string | undefined;
10727
10827
  item?: {
10728
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
10828
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
10829
+ conversationId: string;
10729
10830
  id: string;
10730
10831
  createdAt: number;
10731
- conversationId: string;
10732
- error?: string | undefined;
10733
10832
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10734
10833
  role?: "user" | "assistant" | "system" | undefined;
10834
+ error?: string | undefined;
10735
10835
  text?: string | undefined;
10736
10836
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10737
10837
  plan?: {
@@ -10748,8 +10848,8 @@ export declare const protocolMessageSchemas: {
10748
10848
  isStreaming?: boolean | undefined;
10749
10849
  toolCall?: {
10750
10850
  status: "running" | "pending" | "completed" | "failed";
10751
- id: string;
10752
10851
  name: string;
10852
+ id: string;
10753
10853
  createdAt?: number | undefined;
10754
10854
  input?: string | undefined;
10755
10855
  output?: string | undefined;
@@ -10826,8 +10926,8 @@ export declare const protocolMessageSchemas: {
10826
10926
  updatedAt?: number | undefined;
10827
10927
  } | undefined;
10828
10928
  }, {
10829
- requestId: string;
10830
10929
  conversationId: string;
10930
+ requestId: string;
10831
10931
  options?: {
10832
10932
  id: string;
10833
10933
  label: string;
@@ -10837,13 +10937,13 @@ export declare const protocolMessageSchemas: {
10837
10937
  toolInput?: string | undefined;
10838
10938
  context?: string | undefined;
10839
10939
  item?: {
10840
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
10940
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
10941
+ conversationId: string;
10841
10942
  id: string;
10842
10943
  createdAt: number;
10843
- conversationId: string;
10844
- error?: string | undefined;
10845
10944
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10846
10945
  role?: "user" | "assistant" | "system" | undefined;
10946
+ error?: string | undefined;
10847
10947
  text?: string | undefined;
10848
10948
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10849
10949
  plan?: {
@@ -10859,8 +10959,8 @@ export declare const protocolMessageSchemas: {
10859
10959
  }[] | undefined;
10860
10960
  isStreaming?: boolean | undefined;
10861
10961
  toolCall?: {
10862
- id: string;
10863
10962
  name: string;
10963
+ id: string;
10864
10964
  status?: "running" | "pending" | "completed" | "failed" | undefined;
10865
10965
  createdAt?: number | undefined;
10866
10966
  input?: string | undefined;
@@ -10943,12 +11043,12 @@ export declare const protocolMessageSchemas: {
10943
11043
  requestId: z.ZodString;
10944
11044
  answers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
10945
11045
  }, "strip", z.ZodTypeAny, {
10946
- requestId: string;
10947
11046
  conversationId: string;
11047
+ requestId: string;
10948
11048
  answers: Record<string, string[]>;
10949
11049
  }, {
10950
- requestId: string;
10951
11050
  conversationId: string;
11051
+ requestId: string;
10952
11052
  answers: Record<string, string[]>;
10953
11053
  }>;
10954
11054
  readonly "agent.v2.snapshot.request": z.ZodObject<{
@@ -10976,32 +11076,32 @@ export declare const protocolMessageSchemas: {
10976
11076
  createdAt: z.ZodNumber;
10977
11077
  }, "strip", z.ZodTypeAny, {
10978
11078
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
10979
- id: string;
10980
- provider: "claude" | "codex" | "custom";
11079
+ provider: "custom" | "claude" | "codex";
10981
11080
  cwd: string;
11081
+ id: string;
10982
11082
  createdAt: number;
10983
11083
  archived: boolean;
10984
11084
  lastActivityAt: number;
10985
- title?: string | undefined;
10986
11085
  agentSessionId?: string | undefined;
11086
+ title?: string | undefined;
10987
11087
  model?: string | undefined;
10988
11088
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
10989
11089
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
10990
- collaborationMode?: "default" | "plan" | undefined;
11090
+ collaborationMode?: "plan" | "default" | undefined;
10991
11091
  lastMessagePreview?: string | undefined;
10992
11092
  }, {
10993
- id: string;
10994
11093
  cwd: string;
11094
+ id: string;
10995
11095
  createdAt: number;
10996
11096
  lastActivityAt: number;
10997
11097
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10998
- provider?: "claude" | "codex" | "custom" | undefined;
10999
- title?: string | undefined;
11000
11098
  agentSessionId?: string | undefined;
11099
+ provider?: "custom" | "claude" | "codex" | undefined;
11100
+ title?: string | undefined;
11001
11101
  model?: string | undefined;
11002
11102
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
11003
11103
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
11004
- collaborationMode?: "default" | "plan" | undefined;
11104
+ collaborationMode?: "plan" | "default" | undefined;
11005
11105
  archived?: boolean | undefined;
11006
11106
  lastMessagePreview?: string | undefined;
11007
11107
  }>, "many">>;
@@ -11040,14 +11140,14 @@ export declare const protocolMessageSchemas: {
11040
11140
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
11041
11141
  }, "strip", z.ZodTypeAny, {
11042
11142
  status: "running" | "pending" | "completed" | "failed";
11043
- id: string;
11044
11143
  name: string;
11144
+ id: string;
11045
11145
  createdAt?: number | undefined;
11046
11146
  input?: string | undefined;
11047
11147
  output?: string | undefined;
11048
11148
  }, {
11049
- id: string;
11050
11149
  name: string;
11150
+ id: string;
11051
11151
  status?: "running" | "pending" | "completed" | "failed" | undefined;
11052
11152
  createdAt?: number | undefined;
11053
11153
  input?: string | undefined;
@@ -11333,13 +11433,13 @@ export declare const protocolMessageSchemas: {
11333
11433
  updatedAt: z.ZodOptional<z.ZodNumber>;
11334
11434
  isStreaming: z.ZodOptional<z.ZodBoolean>;
11335
11435
  }, "strip", z.ZodTypeAny, {
11336
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
11436
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
11437
+ conversationId: string;
11337
11438
  id: string;
11338
11439
  createdAt: number;
11339
- conversationId: string;
11340
- error?: string | undefined;
11341
11440
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11342
11441
  role?: "user" | "assistant" | "system" | undefined;
11442
+ error?: string | undefined;
11343
11443
  text?: string | undefined;
11344
11444
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11345
11445
  plan?: {
@@ -11356,8 +11456,8 @@ export declare const protocolMessageSchemas: {
11356
11456
  isStreaming?: boolean | undefined;
11357
11457
  toolCall?: {
11358
11458
  status: "running" | "pending" | "completed" | "failed";
11359
- id: string;
11360
11459
  name: string;
11460
+ id: string;
11361
11461
  createdAt?: number | undefined;
11362
11462
  input?: string | undefined;
11363
11463
  output?: string | undefined;
@@ -11433,13 +11533,13 @@ export declare const protocolMessageSchemas: {
11433
11533
  metadata?: Record<string, unknown> | undefined;
11434
11534
  updatedAt?: number | undefined;
11435
11535
  }, {
11436
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
11536
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
11537
+ conversationId: string;
11437
11538
  id: string;
11438
11539
  createdAt: number;
11439
- conversationId: string;
11440
- error?: string | undefined;
11441
11540
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11442
11541
  role?: "user" | "assistant" | "system" | undefined;
11542
+ error?: string | undefined;
11443
11543
  text?: string | undefined;
11444
11544
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11445
11545
  plan?: {
@@ -11455,8 +11555,8 @@ export declare const protocolMessageSchemas: {
11455
11555
  }[] | undefined;
11456
11556
  isStreaming?: boolean | undefined;
11457
11557
  toolCall?: {
11458
- id: string;
11459
11558
  name: string;
11559
+ id: string;
11460
11560
  status?: "running" | "pending" | "completed" | "failed" | undefined;
11461
11561
  createdAt?: number | undefined;
11462
11562
  input?: string | undefined;
@@ -11537,28 +11637,28 @@ export declare const protocolMessageSchemas: {
11537
11637
  }, "strip", z.ZodTypeAny, {
11538
11638
  conversations: {
11539
11639
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
11540
- id: string;
11541
- provider: "claude" | "codex" | "custom";
11640
+ provider: "custom" | "claude" | "codex";
11542
11641
  cwd: string;
11642
+ id: string;
11543
11643
  createdAt: number;
11544
11644
  archived: boolean;
11545
11645
  lastActivityAt: number;
11546
- title?: string | undefined;
11547
11646
  agentSessionId?: string | undefined;
11647
+ title?: string | undefined;
11548
11648
  model?: string | undefined;
11549
11649
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
11550
11650
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
11551
- collaborationMode?: "default" | "plan" | undefined;
11651
+ collaborationMode?: "plan" | "default" | undefined;
11552
11652
  lastMessagePreview?: string | undefined;
11553
11653
  }[];
11554
11654
  items: {
11555
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
11655
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
11656
+ conversationId: string;
11556
11657
  id: string;
11557
11658
  createdAt: number;
11558
- conversationId: string;
11559
- error?: string | undefined;
11560
11659
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11561
11660
  role?: "user" | "assistant" | "system" | undefined;
11661
+ error?: string | undefined;
11562
11662
  text?: string | undefined;
11563
11663
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11564
11664
  plan?: {
@@ -11575,8 +11675,8 @@ export declare const protocolMessageSchemas: {
11575
11675
  isStreaming?: boolean | undefined;
11576
11676
  toolCall?: {
11577
11677
  status: "running" | "pending" | "completed" | "failed";
11578
- id: string;
11579
11678
  name: string;
11679
+ id: string;
11580
11680
  createdAt?: number | undefined;
11581
11681
  input?: string | undefined;
11582
11682
  output?: string | undefined;
@@ -11657,30 +11757,30 @@ export declare const protocolMessageSchemas: {
11657
11757
  }, {
11658
11758
  machineId?: string | undefined;
11659
11759
  conversations?: {
11660
- id: string;
11661
11760
  cwd: string;
11761
+ id: string;
11662
11762
  createdAt: number;
11663
11763
  lastActivityAt: number;
11664
11764
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11665
- provider?: "claude" | "codex" | "custom" | undefined;
11666
- title?: string | undefined;
11667
11765
  agentSessionId?: string | undefined;
11766
+ provider?: "custom" | "claude" | "codex" | undefined;
11767
+ title?: string | undefined;
11668
11768
  model?: string | undefined;
11669
11769
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
11670
11770
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
11671
- collaborationMode?: "default" | "plan" | undefined;
11771
+ collaborationMode?: "plan" | "default" | undefined;
11672
11772
  archived?: boolean | undefined;
11673
11773
  lastMessagePreview?: string | undefined;
11674
11774
  }[] | undefined;
11675
11775
  activeConversationId?: string | undefined;
11676
11776
  items?: {
11677
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
11777
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
11778
+ conversationId: string;
11678
11779
  id: string;
11679
11780
  createdAt: number;
11680
- conversationId: string;
11681
- error?: string | undefined;
11682
11781
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11683
11782
  role?: "user" | "assistant" | "system" | undefined;
11783
+ error?: string | undefined;
11684
11784
  text?: string | undefined;
11685
11785
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11686
11786
  plan?: {
@@ -11696,8 +11796,8 @@ export declare const protocolMessageSchemas: {
11696
11796
  }[] | undefined;
11697
11797
  isStreaming?: boolean | undefined;
11698
11798
  toolCall?: {
11699
- id: string;
11700
11799
  name: string;
11800
+ id: string;
11701
11801
  status?: "running" | "pending" | "completed" | "failed" | undefined;
11702
11802
  createdAt?: number | undefined;
11703
11803
  input?: string | undefined;
@@ -11794,32 +11894,32 @@ export declare const protocolMessageSchemas: {
11794
11894
  createdAt: z.ZodNumber;
11795
11895
  }, "strip", z.ZodTypeAny, {
11796
11896
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
11797
- id: string;
11798
- provider: "claude" | "codex" | "custom";
11897
+ provider: "custom" | "claude" | "codex";
11799
11898
  cwd: string;
11899
+ id: string;
11800
11900
  createdAt: number;
11801
11901
  archived: boolean;
11802
11902
  lastActivityAt: number;
11803
- title?: string | undefined;
11804
11903
  agentSessionId?: string | undefined;
11904
+ title?: string | undefined;
11805
11905
  model?: string | undefined;
11806
11906
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
11807
11907
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
11808
- collaborationMode?: "default" | "plan" | undefined;
11908
+ collaborationMode?: "plan" | "default" | undefined;
11809
11909
  lastMessagePreview?: string | undefined;
11810
11910
  }, {
11811
- id: string;
11812
11911
  cwd: string;
11912
+ id: string;
11813
11913
  createdAt: number;
11814
11914
  lastActivityAt: number;
11815
11915
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11816
- provider?: "claude" | "codex" | "custom" | undefined;
11817
- title?: string | undefined;
11818
11916
  agentSessionId?: string | undefined;
11917
+ provider?: "custom" | "claude" | "codex" | undefined;
11918
+ title?: string | undefined;
11819
11919
  model?: string | undefined;
11820
11920
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
11821
11921
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
11822
- collaborationMode?: "default" | "plan" | undefined;
11922
+ collaborationMode?: "plan" | "default" | undefined;
11823
11923
  archived?: boolean | undefined;
11824
11924
  lastMessagePreview?: string | undefined;
11825
11925
  }>>;
@@ -11857,14 +11957,14 @@ export declare const protocolMessageSchemas: {
11857
11957
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
11858
11958
  }, "strip", z.ZodTypeAny, {
11859
11959
  status: "running" | "pending" | "completed" | "failed";
11860
- id: string;
11861
11960
  name: string;
11961
+ id: string;
11862
11962
  createdAt?: number | undefined;
11863
11963
  input?: string | undefined;
11864
11964
  output?: string | undefined;
11865
11965
  }, {
11866
- id: string;
11867
11966
  name: string;
11967
+ id: string;
11868
11968
  status?: "running" | "pending" | "completed" | "failed" | undefined;
11869
11969
  createdAt?: number | undefined;
11870
11970
  input?: string | undefined;
@@ -12150,13 +12250,13 @@ export declare const protocolMessageSchemas: {
12150
12250
  updatedAt: z.ZodOptional<z.ZodNumber>;
12151
12251
  isStreaming: z.ZodOptional<z.ZodBoolean>;
12152
12252
  }, "strip", z.ZodTypeAny, {
12153
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
12253
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
12254
+ conversationId: string;
12154
12255
  id: string;
12155
12256
  createdAt: number;
12156
- conversationId: string;
12157
- error?: string | undefined;
12158
12257
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12159
12258
  role?: "user" | "assistant" | "system" | undefined;
12259
+ error?: string | undefined;
12160
12260
  text?: string | undefined;
12161
12261
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12162
12262
  plan?: {
@@ -12173,8 +12273,8 @@ export declare const protocolMessageSchemas: {
12173
12273
  isStreaming?: boolean | undefined;
12174
12274
  toolCall?: {
12175
12275
  status: "running" | "pending" | "completed" | "failed";
12176
- id: string;
12177
12276
  name: string;
12277
+ id: string;
12178
12278
  createdAt?: number | undefined;
12179
12279
  input?: string | undefined;
12180
12280
  output?: string | undefined;
@@ -12250,13 +12350,13 @@ export declare const protocolMessageSchemas: {
12250
12350
  metadata?: Record<string, unknown> | undefined;
12251
12351
  updatedAt?: number | undefined;
12252
12352
  }, {
12253
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
12353
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
12354
+ conversationId: string;
12254
12355
  id: string;
12255
12356
  createdAt: number;
12256
- conversationId: string;
12257
- error?: string | undefined;
12258
12357
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12259
12358
  role?: "user" | "assistant" | "system" | undefined;
12359
+ error?: string | undefined;
12260
12360
  text?: string | undefined;
12261
12361
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12262
12362
  plan?: {
@@ -12272,8 +12372,8 @@ export declare const protocolMessageSchemas: {
12272
12372
  }[] | undefined;
12273
12373
  isStreaming?: boolean | undefined;
12274
12374
  toolCall?: {
12275
- id: string;
12276
12375
  name: string;
12376
+ id: string;
12277
12377
  status?: "running" | "pending" | "completed" | "failed" | undefined;
12278
12378
  createdAt?: number | undefined;
12279
12379
  input?: string | undefined;
@@ -12382,14 +12482,14 @@ export declare const protocolMessageSchemas: {
12382
12482
  status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
12383
12483
  }, "strip", z.ZodTypeAny, {
12384
12484
  status: "running" | "pending" | "completed" | "failed";
12385
- id: string;
12386
12485
  name: string;
12486
+ id: string;
12387
12487
  createdAt?: number | undefined;
12388
12488
  input?: string | undefined;
12389
12489
  output?: string | undefined;
12390
12490
  }, {
12391
- id: string;
12392
12491
  name: string;
12492
+ id: string;
12393
12493
  status?: "running" | "pending" | "completed" | "failed" | undefined;
12394
12494
  createdAt?: number | undefined;
12395
12495
  input?: string | undefined;
@@ -12674,9 +12774,9 @@ export declare const protocolMessageSchemas: {
12674
12774
  isStreaming: z.ZodOptional<z.ZodBoolean>;
12675
12775
  }, "strip", z.ZodTypeAny, {
12676
12776
  itemId: string;
12677
- error?: string | undefined;
12678
12777
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12679
12778
  role?: "user" | "assistant" | "system" | undefined;
12779
+ error?: string | undefined;
12680
12780
  text?: string | undefined;
12681
12781
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12682
12782
  plan?: {
@@ -12693,8 +12793,8 @@ export declare const protocolMessageSchemas: {
12693
12793
  isStreaming?: boolean | undefined;
12694
12794
  toolCall?: {
12695
12795
  status: "running" | "pending" | "completed" | "failed";
12696
- id: string;
12697
12796
  name: string;
12797
+ id: string;
12698
12798
  createdAt?: number | undefined;
12699
12799
  input?: string | undefined;
12700
12800
  output?: string | undefined;
@@ -12770,9 +12870,9 @@ export declare const protocolMessageSchemas: {
12770
12870
  textDelta?: string | undefined;
12771
12871
  }, {
12772
12872
  itemId: string;
12773
- error?: string | undefined;
12774
12873
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12775
12874
  role?: "user" | "assistant" | "system" | undefined;
12875
+ error?: string | undefined;
12776
12876
  text?: string | undefined;
12777
12877
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12778
12878
  plan?: {
@@ -12788,8 +12888,8 @@ export declare const protocolMessageSchemas: {
12788
12888
  }[] | undefined;
12789
12889
  isStreaming?: boolean | undefined;
12790
12890
  toolCall?: {
12791
- id: string;
12792
12891
  name: string;
12892
+ id: string;
12793
12893
  status?: "running" | "pending" | "completed" | "failed" | undefined;
12794
12894
  createdAt?: number | undefined;
12795
12895
  input?: string | undefined;
@@ -12869,28 +12969,28 @@ export declare const protocolMessageSchemas: {
12869
12969
  conversationId: string;
12870
12970
  conversation?: {
12871
12971
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
12872
- id: string;
12873
- provider: "claude" | "codex" | "custom";
12972
+ provider: "custom" | "claude" | "codex";
12874
12973
  cwd: string;
12974
+ id: string;
12875
12975
  createdAt: number;
12876
12976
  archived: boolean;
12877
12977
  lastActivityAt: number;
12878
- title?: string | undefined;
12879
12978
  agentSessionId?: string | undefined;
12979
+ title?: string | undefined;
12880
12980
  model?: string | undefined;
12881
12981
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
12882
12982
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
12883
- collaborationMode?: "default" | "plan" | undefined;
12983
+ collaborationMode?: "plan" | "default" | undefined;
12884
12984
  lastMessagePreview?: string | undefined;
12885
12985
  } | undefined;
12886
12986
  item?: {
12887
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
12987
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
12988
+ conversationId: string;
12888
12989
  id: string;
12889
12990
  createdAt: number;
12890
- conversationId: string;
12891
- error?: string | undefined;
12892
12991
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12893
12992
  role?: "user" | "assistant" | "system" | undefined;
12993
+ error?: string | undefined;
12894
12994
  text?: string | undefined;
12895
12995
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12896
12996
  plan?: {
@@ -12907,8 +13007,8 @@ export declare const protocolMessageSchemas: {
12907
13007
  isStreaming?: boolean | undefined;
12908
13008
  toolCall?: {
12909
13009
  status: "running" | "pending" | "completed" | "failed";
12910
- id: string;
12911
13010
  name: string;
13011
+ id: string;
12912
13012
  createdAt?: number | undefined;
12913
13013
  input?: string | undefined;
12914
13014
  output?: string | undefined;
@@ -12986,9 +13086,9 @@ export declare const protocolMessageSchemas: {
12986
13086
  } | undefined;
12987
13087
  patch?: {
12988
13088
  itemId: string;
12989
- error?: string | undefined;
12990
13089
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12991
13090
  role?: "user" | "assistant" | "system" | undefined;
13091
+ error?: string | undefined;
12992
13092
  text?: string | undefined;
12993
13093
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12994
13094
  plan?: {
@@ -13005,8 +13105,8 @@ export declare const protocolMessageSchemas: {
13005
13105
  isStreaming?: boolean | undefined;
13006
13106
  toolCall?: {
13007
13107
  status: "running" | "pending" | "completed" | "failed";
13008
- id: string;
13009
13108
  name: string;
13109
+ id: string;
13010
13110
  createdAt?: number | undefined;
13011
13111
  input?: string | undefined;
13012
13112
  output?: string | undefined;
@@ -13084,29 +13184,29 @@ export declare const protocolMessageSchemas: {
13084
13184
  }, {
13085
13185
  conversationId: string;
13086
13186
  conversation?: {
13087
- id: string;
13088
13187
  cwd: string;
13188
+ id: string;
13089
13189
  createdAt: number;
13090
13190
  lastActivityAt: number;
13091
13191
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
13092
- provider?: "claude" | "codex" | "custom" | undefined;
13093
- title?: string | undefined;
13094
13192
  agentSessionId?: string | undefined;
13193
+ provider?: "custom" | "claude" | "codex" | undefined;
13194
+ title?: string | undefined;
13095
13195
  model?: string | undefined;
13096
13196
  reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
13097
13197
  permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
13098
- collaborationMode?: "default" | "plan" | undefined;
13198
+ collaborationMode?: "plan" | "default" | undefined;
13099
13199
  archived?: boolean | undefined;
13100
13200
  lastMessagePreview?: string | undefined;
13101
13201
  } | undefined;
13102
13202
  item?: {
13103
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
13203
+ type: "message" | "status" | "error" | "tool_call" | "plan" | "permission";
13204
+ conversationId: string;
13104
13205
  id: string;
13105
13206
  createdAt: number;
13106
- conversationId: string;
13107
- error?: string | undefined;
13108
13207
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
13109
13208
  role?: "user" | "assistant" | "system" | undefined;
13209
+ error?: string | undefined;
13110
13210
  text?: string | undefined;
13111
13211
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
13112
13212
  plan?: {
@@ -13122,8 +13222,8 @@ export declare const protocolMessageSchemas: {
13122
13222
  }[] | undefined;
13123
13223
  isStreaming?: boolean | undefined;
13124
13224
  toolCall?: {
13125
- id: string;
13126
13225
  name: string;
13226
+ id: string;
13127
13227
  status?: "running" | "pending" | "completed" | "failed" | undefined;
13128
13228
  createdAt?: number | undefined;
13129
13229
  input?: string | undefined;
@@ -13202,9 +13302,9 @@ export declare const protocolMessageSchemas: {
13202
13302
  } | undefined;
13203
13303
  patch?: {
13204
13304
  itemId: string;
13205
- error?: string | undefined;
13206
13305
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
13207
13306
  role?: "user" | "assistant" | "system" | undefined;
13307
+ error?: string | undefined;
13208
13308
  text?: string | undefined;
13209
13309
  kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
13210
13310
  plan?: {
@@ -13220,8 +13320,8 @@ export declare const protocolMessageSchemas: {
13220
13320
  }[] | undefined;
13221
13321
  isStreaming?: boolean | undefined;
13222
13322
  toolCall?: {
13223
- id: string;
13224
13323
  name: string;
13324
+ id: string;
13225
13325
  status?: "running" | "pending" | "completed" | "failed" | undefined;
13226
13326
  createdAt?: number | undefined;
13227
13327
  input?: string | undefined;