@linkshell/gateway 0.2.32 → 0.2.34

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.
@@ -82,6 +82,7 @@ export declare const sessionConnectPayloadSchema: z.ZodObject<{
82
82
  clientName: z.ZodString;
83
83
  provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "custom"]>>;
84
84
  protocolVersion: z.ZodOptional<z.ZodNumber>;
85
+ machineId: z.ZodOptional<z.ZodString>;
85
86
  hostname: z.ZodOptional<z.ZodString>;
86
87
  platform: z.ZodOptional<z.ZodString>;
87
88
  cwd: z.ZodOptional<z.ZodString>;
@@ -91,6 +92,7 @@ export declare const sessionConnectPayloadSchema: z.ZodObject<{
91
92
  clientName: string;
92
93
  provider?: "claude" | "codex" | "custom" | undefined;
93
94
  protocolVersion?: number | undefined;
95
+ machineId?: string | undefined;
94
96
  hostname?: string | undefined;
95
97
  platform?: string | undefined;
96
98
  cwd?: string | undefined;
@@ -100,6 +102,7 @@ export declare const sessionConnectPayloadSchema: z.ZodObject<{
100
102
  clientName: string;
101
103
  provider?: "claude" | "codex" | "custom" | undefined;
102
104
  protocolVersion?: number | undefined;
105
+ machineId?: string | undefined;
103
106
  hostname?: string | undefined;
104
107
  platform?: string | undefined;
105
108
  cwd?: string | undefined;
@@ -125,10 +128,13 @@ export declare const sessionAckPayloadSchema: z.ZodObject<{
125
128
  export declare const sessionResumePayloadSchema: z.ZodObject<{
126
129
  lastAckedSeq: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
127
130
  lastAckedSeqByTerminal: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>>;
131
+ machineId: z.ZodOptional<z.ZodString>;
128
132
  }, "strip", z.ZodTypeAny, {
129
133
  lastAckedSeq: number;
130
134
  lastAckedSeqByTerminal: Record<string, number>;
135
+ machineId?: string | undefined;
131
136
  }, {
137
+ machineId?: string | undefined;
132
138
  lastAckedSeq?: number | undefined;
133
139
  lastAckedSeqByTerminal?: Record<string, number> | undefined;
134
140
  }>;
@@ -457,9 +463,11 @@ export declare const terminalStatusPayloadSchema: z.ZodObject<{
457
463
  requestId: string;
458
464
  }>>;
459
465
  pendingPermissionCount: z.ZodOptional<z.ZodNumber>;
466
+ machineId: z.ZodOptional<z.ZodString>;
460
467
  }, "strip", z.ZodTypeAny, {
461
468
  phase: "error" | "thinking" | "tool_use" | "outputting" | "waiting" | "idle";
462
469
  seq?: number | undefined;
470
+ machineId?: string | undefined;
463
471
  toolName?: string | undefined;
464
472
  toolInput?: string | undefined;
465
473
  permissionRequest?: string | undefined;
@@ -475,6 +483,7 @@ export declare const terminalStatusPayloadSchema: z.ZodObject<{
475
483
  }, {
476
484
  phase: "error" | "thinking" | "tool_use" | "outputting" | "waiting" | "idle";
477
485
  seq?: number | undefined;
486
+ machineId?: string | undefined;
478
487
  toolName?: string | undefined;
479
488
  toolInput?: string | undefined;
480
489
  permissionRequest?: string | undefined;
@@ -701,9 +710,78 @@ export declare const agentPermissionSchema: z.ZodObject<{
701
710
  toolInput?: string | undefined;
702
711
  context?: string | undefined;
703
712
  }>;
713
+ export declare const agentModelOptionSchema: z.ZodObject<{
714
+ id: z.ZodString;
715
+ label: z.ZodString;
716
+ }, "strip", z.ZodTypeAny, {
717
+ id: string;
718
+ label: string;
719
+ }, {
720
+ id: string;
721
+ label: string;
722
+ }>;
723
+ export declare const agentProviderCapabilitySchema: z.ZodObject<{
724
+ id: z.ZodEnum<["codex", "claude", "custom"]>;
725
+ label: z.ZodString;
726
+ enabled: z.ZodBoolean;
727
+ reason: z.ZodOptional<z.ZodString>;
728
+ supportsImages: z.ZodOptional<z.ZodBoolean>;
729
+ supportsPermission: z.ZodOptional<z.ZodBoolean>;
730
+ supportsPlan: z.ZodOptional<z.ZodBoolean>;
731
+ supportsCancel: z.ZodOptional<z.ZodBoolean>;
732
+ models: z.ZodOptional<z.ZodArray<z.ZodObject<{
733
+ id: z.ZodString;
734
+ label: z.ZodString;
735
+ }, "strip", z.ZodTypeAny, {
736
+ id: string;
737
+ label: string;
738
+ }, {
739
+ id: string;
740
+ label: string;
741
+ }>, "many">>;
742
+ defaultModel: z.ZodOptional<z.ZodString>;
743
+ reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>, "many">>;
744
+ permissionModes: z.ZodOptional<z.ZodArray<z.ZodEnum<["read_only", "workspace_write", "full_access"]>, "many">>;
745
+ features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
746
+ }, "strip", z.ZodTypeAny, {
747
+ id: "claude" | "codex" | "custom";
748
+ enabled: boolean;
749
+ label: string;
750
+ reason?: string | undefined;
751
+ supportsImages?: boolean | undefined;
752
+ supportsPermission?: boolean | undefined;
753
+ supportsPlan?: boolean | undefined;
754
+ supportsCancel?: boolean | undefined;
755
+ models?: {
756
+ id: string;
757
+ label: string;
758
+ }[] | undefined;
759
+ defaultModel?: string | undefined;
760
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
761
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
762
+ features?: Record<string, boolean> | undefined;
763
+ }, {
764
+ id: "claude" | "codex" | "custom";
765
+ enabled: boolean;
766
+ label: string;
767
+ reason?: string | undefined;
768
+ supportsImages?: boolean | undefined;
769
+ supportsPermission?: boolean | undefined;
770
+ supportsPlan?: boolean | undefined;
771
+ supportsCancel?: boolean | undefined;
772
+ models?: {
773
+ id: string;
774
+ label: string;
775
+ }[] | undefined;
776
+ defaultModel?: string | undefined;
777
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
778
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
779
+ features?: Record<string, boolean> | undefined;
780
+ }>;
704
781
  export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
705
782
  enabled: z.ZodBoolean;
706
783
  provider: z.ZodOptional<z.ZodEnum<["codex", "claude", "custom"]>>;
784
+ machineId: z.ZodOptional<z.ZodString>;
707
785
  providers: z.ZodOptional<z.ZodArray<z.ZodObject<{
708
786
  id: z.ZodEnum<["codex", "claude", "custom"]>;
709
787
  label: z.ZodString;
@@ -713,6 +791,20 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
713
791
  supportsPermission: z.ZodOptional<z.ZodBoolean>;
714
792
  supportsPlan: z.ZodOptional<z.ZodBoolean>;
715
793
  supportsCancel: z.ZodOptional<z.ZodBoolean>;
794
+ models: z.ZodOptional<z.ZodArray<z.ZodObject<{
795
+ id: z.ZodString;
796
+ label: z.ZodString;
797
+ }, "strip", z.ZodTypeAny, {
798
+ id: string;
799
+ label: string;
800
+ }, {
801
+ id: string;
802
+ label: string;
803
+ }>, "many">>;
804
+ defaultModel: z.ZodOptional<z.ZodString>;
805
+ reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>, "many">>;
806
+ permissionModes: z.ZodOptional<z.ZodArray<z.ZodEnum<["read_only", "workspace_write", "full_access"]>, "many">>;
807
+ features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
716
808
  }, "strip", z.ZodTypeAny, {
717
809
  id: "claude" | "codex" | "custom";
718
810
  enabled: boolean;
@@ -722,6 +814,14 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
722
814
  supportsPermission?: boolean | undefined;
723
815
  supportsPlan?: boolean | undefined;
724
816
  supportsCancel?: boolean | undefined;
817
+ models?: {
818
+ id: string;
819
+ label: string;
820
+ }[] | undefined;
821
+ defaultModel?: string | undefined;
822
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
823
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
824
+ features?: Record<string, boolean> | undefined;
725
825
  }, {
726
826
  id: "claude" | "codex" | "custom";
727
827
  enabled: boolean;
@@ -731,6 +831,14 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
731
831
  supportsPermission?: boolean | undefined;
732
832
  supportsPlan?: boolean | undefined;
733
833
  supportsCancel?: boolean | undefined;
834
+ models?: {
835
+ id: string;
836
+ label: string;
837
+ }[] | undefined;
838
+ defaultModel?: string | undefined;
839
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
840
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
841
+ features?: Record<string, boolean> | undefined;
734
842
  }>, "many">>;
735
843
  protocolVersion: z.ZodOptional<z.ZodNumber>;
736
844
  error: z.ZodOptional<z.ZodString>;
@@ -753,6 +861,7 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
753
861
  error?: string | undefined;
754
862
  provider?: "claude" | "codex" | "custom" | undefined;
755
863
  protocolVersion?: number | undefined;
864
+ machineId?: string | undefined;
756
865
  providers?: {
757
866
  id: "claude" | "codex" | "custom";
758
867
  enabled: boolean;
@@ -762,12 +871,21 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
762
871
  supportsPermission?: boolean | undefined;
763
872
  supportsPlan?: boolean | undefined;
764
873
  supportsCancel?: boolean | undefined;
874
+ models?: {
875
+ id: string;
876
+ label: string;
877
+ }[] | undefined;
878
+ defaultModel?: string | undefined;
879
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
880
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
881
+ features?: Record<string, boolean> | undefined;
765
882
  }[] | undefined;
766
883
  }, {
767
884
  enabled: boolean;
768
885
  error?: string | undefined;
769
886
  provider?: "claude" | "codex" | "custom" | undefined;
770
887
  protocolVersion?: number | undefined;
888
+ machineId?: string | undefined;
771
889
  supportsImages?: boolean | undefined;
772
890
  supportsPermission?: boolean | undefined;
773
891
  supportsPlan?: boolean | undefined;
@@ -781,6 +899,14 @@ export declare const agentCapabilitiesPayloadSchema: z.ZodObject<{
781
899
  supportsPermission?: boolean | undefined;
782
900
  supportsPlan?: boolean | undefined;
783
901
  supportsCancel?: boolean | undefined;
902
+ models?: {
903
+ id: string;
904
+ label: string;
905
+ }[] | undefined;
906
+ defaultModel?: string | undefined;
907
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
908
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
909
+ features?: Record<string, boolean> | undefined;
784
910
  }[] | undefined;
785
911
  supportsSessionList?: boolean | undefined;
786
912
  supportsSessionLoad?: boolean | undefined;
@@ -1042,6 +1168,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1042
1168
  capabilities: z.ZodOptional<z.ZodObject<{
1043
1169
  enabled: z.ZodBoolean;
1044
1170
  provider: z.ZodOptional<z.ZodEnum<["codex", "claude", "custom"]>>;
1171
+ machineId: z.ZodOptional<z.ZodString>;
1045
1172
  providers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1046
1173
  id: z.ZodEnum<["codex", "claude", "custom"]>;
1047
1174
  label: z.ZodString;
@@ -1051,6 +1178,20 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1051
1178
  supportsPermission: z.ZodOptional<z.ZodBoolean>;
1052
1179
  supportsPlan: z.ZodOptional<z.ZodBoolean>;
1053
1180
  supportsCancel: z.ZodOptional<z.ZodBoolean>;
1181
+ models: z.ZodOptional<z.ZodArray<z.ZodObject<{
1182
+ id: z.ZodString;
1183
+ label: z.ZodString;
1184
+ }, "strip", z.ZodTypeAny, {
1185
+ id: string;
1186
+ label: string;
1187
+ }, {
1188
+ id: string;
1189
+ label: string;
1190
+ }>, "many">>;
1191
+ defaultModel: z.ZodOptional<z.ZodString>;
1192
+ reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>, "many">>;
1193
+ permissionModes: z.ZodOptional<z.ZodArray<z.ZodEnum<["read_only", "workspace_write", "full_access"]>, "many">>;
1194
+ features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1054
1195
  }, "strip", z.ZodTypeAny, {
1055
1196
  id: "claude" | "codex" | "custom";
1056
1197
  enabled: boolean;
@@ -1060,6 +1201,14 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1060
1201
  supportsPermission?: boolean | undefined;
1061
1202
  supportsPlan?: boolean | undefined;
1062
1203
  supportsCancel?: boolean | undefined;
1204
+ models?: {
1205
+ id: string;
1206
+ label: string;
1207
+ }[] | undefined;
1208
+ defaultModel?: string | undefined;
1209
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1210
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1211
+ features?: Record<string, boolean> | undefined;
1063
1212
  }, {
1064
1213
  id: "claude" | "codex" | "custom";
1065
1214
  enabled: boolean;
@@ -1069,6 +1218,14 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1069
1218
  supportsPermission?: boolean | undefined;
1070
1219
  supportsPlan?: boolean | undefined;
1071
1220
  supportsCancel?: boolean | undefined;
1221
+ models?: {
1222
+ id: string;
1223
+ label: string;
1224
+ }[] | undefined;
1225
+ defaultModel?: string | undefined;
1226
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1227
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1228
+ features?: Record<string, boolean> | undefined;
1072
1229
  }>, "many">>;
1073
1230
  protocolVersion: z.ZodOptional<z.ZodNumber>;
1074
1231
  error: z.ZodOptional<z.ZodString>;
@@ -1091,6 +1248,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1091
1248
  error?: string | undefined;
1092
1249
  provider?: "claude" | "codex" | "custom" | undefined;
1093
1250
  protocolVersion?: number | undefined;
1251
+ machineId?: string | undefined;
1094
1252
  providers?: {
1095
1253
  id: "claude" | "codex" | "custom";
1096
1254
  enabled: boolean;
@@ -1100,12 +1258,21 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1100
1258
  supportsPermission?: boolean | undefined;
1101
1259
  supportsPlan?: boolean | undefined;
1102
1260
  supportsCancel?: boolean | undefined;
1261
+ models?: {
1262
+ id: string;
1263
+ label: string;
1264
+ }[] | undefined;
1265
+ defaultModel?: string | undefined;
1266
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1267
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1268
+ features?: Record<string, boolean> | undefined;
1103
1269
  }[] | undefined;
1104
1270
  }, {
1105
1271
  enabled: boolean;
1106
1272
  error?: string | undefined;
1107
1273
  provider?: "claude" | "codex" | "custom" | undefined;
1108
1274
  protocolVersion?: number | undefined;
1275
+ machineId?: string | undefined;
1109
1276
  supportsImages?: boolean | undefined;
1110
1277
  supportsPermission?: boolean | undefined;
1111
1278
  supportsPlan?: boolean | undefined;
@@ -1119,6 +1286,14 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1119
1286
  supportsPermission?: boolean | undefined;
1120
1287
  supportsPlan?: boolean | undefined;
1121
1288
  supportsCancel?: boolean | undefined;
1289
+ models?: {
1290
+ id: string;
1291
+ label: string;
1292
+ }[] | undefined;
1293
+ defaultModel?: string | undefined;
1294
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1295
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1296
+ features?: Record<string, boolean> | undefined;
1122
1297
  }[] | undefined;
1123
1298
  supportsSessionList?: boolean | undefined;
1124
1299
  supportsSessionLoad?: boolean | undefined;
@@ -1248,6 +1423,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1248
1423
  error?: string | undefined;
1249
1424
  provider?: "claude" | "codex" | "custom" | undefined;
1250
1425
  protocolVersion?: number | undefined;
1426
+ machineId?: string | undefined;
1251
1427
  providers?: {
1252
1428
  id: "claude" | "codex" | "custom";
1253
1429
  enabled: boolean;
@@ -1257,6 +1433,14 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1257
1433
  supportsPermission?: boolean | undefined;
1258
1434
  supportsPlan?: boolean | undefined;
1259
1435
  supportsCancel?: boolean | undefined;
1436
+ models?: {
1437
+ id: string;
1438
+ label: string;
1439
+ }[] | undefined;
1440
+ defaultModel?: string | undefined;
1441
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1442
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1443
+ features?: Record<string, boolean> | undefined;
1260
1444
  }[] | undefined;
1261
1445
  } | undefined;
1262
1446
  }, {
@@ -1268,6 +1452,7 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1268
1452
  error?: string | undefined;
1269
1453
  provider?: "claude" | "codex" | "custom" | undefined;
1270
1454
  protocolVersion?: number | undefined;
1455
+ machineId?: string | undefined;
1271
1456
  supportsImages?: boolean | undefined;
1272
1457
  supportsPermission?: boolean | undefined;
1273
1458
  supportsPlan?: boolean | undefined;
@@ -1281,6 +1466,14 @@ export declare const agentSnapshotPayloadSchema: z.ZodObject<{
1281
1466
  supportsPermission?: boolean | undefined;
1282
1467
  supportsPlan?: boolean | undefined;
1283
1468
  supportsCancel?: boolean | undefined;
1469
+ models?: {
1470
+ id: string;
1471
+ label: string;
1472
+ }[] | undefined;
1473
+ defaultModel?: string | undefined;
1474
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
1475
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
1476
+ features?: Record<string, boolean> | undefined;
1284
1477
  }[] | undefined;
1285
1478
  supportsSessionList?: boolean | undefined;
1286
1479
  supportsSessionLoad?: boolean | undefined;
@@ -2219,6 +2412,7 @@ export declare const agentV2CapabilitiesRequestPayloadSchema: z.ZodObject<{}, "s
2219
2412
  export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
2220
2413
  enabled: z.ZodBoolean;
2221
2414
  provider: z.ZodOptional<z.ZodEnum<["codex", "claude", "custom"]>>;
2415
+ machineId: z.ZodOptional<z.ZodString>;
2222
2416
  providers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2223
2417
  id: z.ZodEnum<["codex", "claude", "custom"]>;
2224
2418
  label: z.ZodString;
@@ -2228,6 +2422,20 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
2228
2422
  supportsPermission: z.ZodOptional<z.ZodBoolean>;
2229
2423
  supportsPlan: z.ZodOptional<z.ZodBoolean>;
2230
2424
  supportsCancel: z.ZodOptional<z.ZodBoolean>;
2425
+ models: z.ZodOptional<z.ZodArray<z.ZodObject<{
2426
+ id: z.ZodString;
2427
+ label: z.ZodString;
2428
+ }, "strip", z.ZodTypeAny, {
2429
+ id: string;
2430
+ label: string;
2431
+ }, {
2432
+ id: string;
2433
+ label: string;
2434
+ }>, "many">>;
2435
+ defaultModel: z.ZodOptional<z.ZodString>;
2436
+ reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>, "many">>;
2437
+ permissionModes: z.ZodOptional<z.ZodArray<z.ZodEnum<["read_only", "workspace_write", "full_access"]>, "many">>;
2438
+ features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
2231
2439
  }, "strip", z.ZodTypeAny, {
2232
2440
  id: "claude" | "codex" | "custom";
2233
2441
  enabled: boolean;
@@ -2237,6 +2445,14 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
2237
2445
  supportsPermission?: boolean | undefined;
2238
2446
  supportsPlan?: boolean | undefined;
2239
2447
  supportsCancel?: boolean | undefined;
2448
+ models?: {
2449
+ id: string;
2450
+ label: string;
2451
+ }[] | undefined;
2452
+ defaultModel?: string | undefined;
2453
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
2454
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
2455
+ features?: Record<string, boolean> | undefined;
2240
2456
  }, {
2241
2457
  id: "claude" | "codex" | "custom";
2242
2458
  enabled: boolean;
@@ -2246,6 +2462,14 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
2246
2462
  supportsPermission?: boolean | undefined;
2247
2463
  supportsPlan?: boolean | undefined;
2248
2464
  supportsCancel?: boolean | undefined;
2465
+ models?: {
2466
+ id: string;
2467
+ label: string;
2468
+ }[] | undefined;
2469
+ defaultModel?: string | undefined;
2470
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
2471
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
2472
+ features?: Record<string, boolean> | undefined;
2249
2473
  }>, "many">>;
2250
2474
  protocolVersion: z.ZodOptional<z.ZodNumber>;
2251
2475
  error: z.ZodOptional<z.ZodString>;
@@ -2271,6 +2495,7 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
2271
2495
  error?: string | undefined;
2272
2496
  provider?: "claude" | "codex" | "custom" | undefined;
2273
2497
  protocolVersion?: number | undefined;
2498
+ machineId?: string | undefined;
2274
2499
  providers?: {
2275
2500
  id: "claude" | "codex" | "custom";
2276
2501
  enabled: boolean;
@@ -2280,12 +2505,21 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
2280
2505
  supportsPermission?: boolean | undefined;
2281
2506
  supportsPlan?: boolean | undefined;
2282
2507
  supportsCancel?: boolean | undefined;
2508
+ models?: {
2509
+ id: string;
2510
+ label: string;
2511
+ }[] | undefined;
2512
+ defaultModel?: string | undefined;
2513
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
2514
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
2515
+ features?: Record<string, boolean> | undefined;
2283
2516
  }[] | undefined;
2284
2517
  }, {
2285
2518
  enabled: boolean;
2286
2519
  error?: string | undefined;
2287
2520
  provider?: "claude" | "codex" | "custom" | undefined;
2288
2521
  protocolVersion?: number | undefined;
2522
+ machineId?: string | undefined;
2289
2523
  supportsImages?: boolean | undefined;
2290
2524
  supportsPermission?: boolean | undefined;
2291
2525
  supportsPlan?: boolean | undefined;
@@ -2299,6 +2533,14 @@ export declare const agentV2CapabilitiesPayloadSchema: z.ZodObject<{
2299
2533
  supportsPermission?: boolean | undefined;
2300
2534
  supportsPlan?: boolean | undefined;
2301
2535
  supportsCancel?: boolean | undefined;
2536
+ models?: {
2537
+ id: string;
2538
+ label: string;
2539
+ }[] | undefined;
2540
+ defaultModel?: string | undefined;
2541
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
2542
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
2543
+ features?: Record<string, boolean> | undefined;
2302
2544
  }[] | undefined;
2303
2545
  supportsSessionList?: boolean | undefined;
2304
2546
  supportsSessionLoad?: boolean | undefined;
@@ -3885,6 +4127,7 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
3885
4127
  metadata?: Record<string, unknown> | undefined;
3886
4128
  updatedAt?: number | undefined;
3887
4129
  }>, "many">>;
4130
+ machineId: z.ZodOptional<z.ZodString>;
3888
4131
  }, "strip", z.ZodTypeAny, {
3889
4132
  conversations: {
3890
4133
  status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
@@ -4002,8 +4245,10 @@ export declare const agentV2SnapshotPayloadSchema: z.ZodObject<{
4002
4245
  metadata?: Record<string, unknown> | undefined;
4003
4246
  updatedAt?: number | undefined;
4004
4247
  }[];
4248
+ machineId?: string | undefined;
4005
4249
  activeConversationId?: string | undefined;
4006
4250
  }, {
4251
+ machineId?: string | undefined;
4007
4252
  conversations?: {
4008
4253
  id: string;
4009
4254
  cwd: string;
@@ -4696,6 +4941,25 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
4696
4941
  }>>;
4697
4942
  patch: z.ZodOptional<z.ZodObject<{
4698
4943
  itemId: z.ZodString;
4944
+ kind: z.ZodOptional<z.ZodEnum<["chat", "thinking", "tool_activity", "command_execution", "file_change", "subagent_action", "plan", "user_input_prompt", "review", "context_compaction"]>>;
4945
+ role: z.ZodOptional<z.ZodEnum<["user", "assistant", "system"]>>;
4946
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{
4947
+ type: z.ZodEnum<["text", "image"]>;
4948
+ text: z.ZodOptional<z.ZodString>;
4949
+ data: z.ZodOptional<z.ZodString>;
4950
+ mimeType: z.ZodOptional<z.ZodString>;
4951
+ }, "strip", z.ZodTypeAny, {
4952
+ type: "text" | "image";
4953
+ data?: string | undefined;
4954
+ text?: string | undefined;
4955
+ mimeType?: string | undefined;
4956
+ }, {
4957
+ type: "text" | "image";
4958
+ data?: string | undefined;
4959
+ text?: string | undefined;
4960
+ mimeType?: string | undefined;
4961
+ }>, "many">>;
4962
+ text: z.ZodOptional<z.ZodString>;
4699
4963
  textDelta: z.ZodOptional<z.ZodString>;
4700
4964
  status: z.ZodOptional<z.ZodEnum<["unavailable", "idle", "running", "waiting_permission", "error"]>>;
4701
4965
  toolCall: z.ZodOptional<z.ZodObject<{
@@ -4720,122 +4984,561 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
4720
4984
  input?: string | undefined;
4721
4985
  output?: string | undefined;
4722
4986
  }>>;
4723
- updatedAt: z.ZodOptional<z.ZodNumber>;
4724
- isStreaming: z.ZodOptional<z.ZodBoolean>;
4725
- }, "strip", z.ZodTypeAny, {
4726
- itemId: string;
4727
- status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4728
- isStreaming?: boolean | undefined;
4729
- toolCall?: {
4730
- status: "running" | "pending" | "completed" | "failed";
4731
- id: string;
4732
- name: string;
4733
- createdAt?: number | undefined;
4734
- input?: string | undefined;
4735
- output?: string | undefined;
4736
- } | undefined;
4737
- updatedAt?: number | undefined;
4738
- textDelta?: string | undefined;
4739
- }, {
4740
- itemId: string;
4741
- status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4742
- isStreaming?: boolean | undefined;
4743
- toolCall?: {
4744
- id: string;
4745
- name: string;
4987
+ commandExecution: z.ZodOptional<z.ZodObject<{
4988
+ command: z.ZodOptional<z.ZodString>;
4989
+ cwd: z.ZodOptional<z.ZodString>;
4990
+ output: z.ZodOptional<z.ZodString>;
4991
+ exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4992
+ status: z.ZodOptional<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
4993
+ }, "strip", z.ZodTypeAny, {
4746
4994
  status?: "running" | "pending" | "completed" | "failed" | undefined;
4747
- createdAt?: number | undefined;
4748
- input?: string | undefined;
4749
- output?: string | undefined;
4750
- } | undefined;
4751
- updatedAt?: number | undefined;
4752
- textDelta?: string | undefined;
4753
- }>>;
4754
- }, "strip", z.ZodTypeAny, {
4755
- conversationId: string;
4756
- conversation?: {
4757
- status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
4758
- id: string;
4759
- provider: "claude" | "codex" | "custom";
4760
- cwd: string;
4761
- createdAt: number;
4762
- archived: boolean;
4763
- lastActivityAt: number;
4764
- agentSessionId?: string | undefined;
4765
- model?: string | undefined;
4766
- reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
4767
- permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
4768
- title?: string | undefined;
4769
- lastMessagePreview?: string | undefined;
4770
- } | undefined;
4771
- item?: {
4772
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
4773
- id: string;
4774
- createdAt: number;
4775
- conversationId: string;
4776
- error?: string | undefined;
4777
- status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
4778
- role?: "user" | "assistant" | "system" | undefined;
4779
- text?: string | undefined;
4780
- kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
4781
- plan?: {
4782
- status: "pending" | "completed" | "in_progress";
4783
- id: string;
4784
- text: string;
4785
- }[] | undefined;
4786
- content?: {
4787
- type: "text" | "image";
4788
- data?: string | undefined;
4789
- text?: string | undefined;
4790
- mimeType?: string | undefined;
4791
- }[] | undefined;
4792
- isStreaming?: boolean | undefined;
4793
- toolCall?: {
4794
- status: "running" | "pending" | "completed" | "failed";
4795
- id: string;
4796
- name: string;
4797
- createdAt?: number | undefined;
4798
- input?: string | undefined;
4995
+ cwd?: string | undefined;
4996
+ exitCode?: number | null | undefined;
4799
4997
  output?: string | undefined;
4800
- } | undefined;
4801
- permission?: {
4802
- options: {
4803
- id: string;
4804
- label: string;
4805
- kind: "allow" | "deny" | "other";
4806
- }[];
4807
- requestId: string;
4808
- toolName?: string | undefined;
4809
- toolInput?: string | undefined;
4810
- context?: string | undefined;
4811
- } | undefined;
4812
- turnId?: string | undefined;
4813
- itemId?: string | undefined;
4814
- commandExecution?: {
4998
+ command?: string | undefined;
4999
+ }, {
4815
5000
  status?: "running" | "pending" | "completed" | "failed" | undefined;
4816
5001
  cwd?: string | undefined;
4817
5002
  exitCode?: number | null | undefined;
4818
5003
  output?: string | undefined;
4819
5004
  command?: string | undefined;
4820
- } | undefined;
4821
- fileChange?: {
4822
- entries: {
5005
+ }>>;
5006
+ fileChange: z.ZodOptional<z.ZodObject<{
5007
+ entries: z.ZodDefault<z.ZodArray<z.ZodObject<{
5008
+ path: z.ZodString;
5009
+ kind: z.ZodOptional<z.ZodString>;
5010
+ added: z.ZodOptional<z.ZodNumber>;
5011
+ removed: z.ZodOptional<z.ZodNumber>;
5012
+ }, "strip", z.ZodTypeAny, {
4823
5013
  path: string;
4824
5014
  kind?: string | undefined;
4825
5015
  added?: number | undefined;
4826
5016
  removed?: number | undefined;
4827
- }[];
4828
- status?: "running" | "pending" | "completed" | "failed" | undefined;
4829
- summary?: string | undefined;
4830
- diff?: string | undefined;
4831
- changeSetId?: string | undefined;
4832
- } | undefined;
4833
- subagent?: {
4834
- status: string;
4835
- tool: string;
4836
- receiverThreadIds: string[];
4837
- receiverAgents: {
4838
- threadId: string;
5017
+ }, {
5018
+ path: string;
5019
+ kind?: string | undefined;
5020
+ added?: number | undefined;
5021
+ removed?: number | undefined;
5022
+ }>, "many">>;
5023
+ diff: z.ZodOptional<z.ZodString>;
5024
+ summary: z.ZodOptional<z.ZodString>;
5025
+ changeSetId: z.ZodOptional<z.ZodString>;
5026
+ status: z.ZodOptional<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
5027
+ }, "strip", z.ZodTypeAny, {
5028
+ entries: {
5029
+ path: string;
5030
+ kind?: string | undefined;
5031
+ added?: number | undefined;
5032
+ removed?: number | undefined;
5033
+ }[];
5034
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
5035
+ summary?: string | undefined;
5036
+ diff?: string | undefined;
5037
+ changeSetId?: string | undefined;
5038
+ }, {
5039
+ entries?: {
5040
+ path: string;
5041
+ kind?: string | undefined;
5042
+ added?: number | undefined;
5043
+ removed?: number | undefined;
5044
+ }[] | undefined;
5045
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
5046
+ summary?: string | undefined;
5047
+ diff?: string | undefined;
5048
+ changeSetId?: string | undefined;
5049
+ }>>;
5050
+ subagent: z.ZodOptional<z.ZodObject<{
5051
+ tool: z.ZodString;
5052
+ status: z.ZodString;
5053
+ prompt: z.ZodOptional<z.ZodString>;
5054
+ model: z.ZodOptional<z.ZodString>;
5055
+ receiverThreadIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
5056
+ receiverAgents: z.ZodDefault<z.ZodArray<z.ZodObject<{
5057
+ threadId: z.ZodString;
5058
+ agentId: z.ZodOptional<z.ZodString>;
5059
+ nickname: z.ZodOptional<z.ZodString>;
5060
+ role: z.ZodOptional<z.ZodString>;
5061
+ model: z.ZodOptional<z.ZodString>;
5062
+ prompt: z.ZodOptional<z.ZodString>;
5063
+ }, "strip", z.ZodTypeAny, {
5064
+ threadId: string;
5065
+ role?: string | undefined;
5066
+ model?: string | undefined;
5067
+ prompt?: string | undefined;
5068
+ agentId?: string | undefined;
5069
+ nickname?: string | undefined;
5070
+ }, {
5071
+ threadId: string;
5072
+ role?: string | undefined;
5073
+ model?: string | undefined;
5074
+ prompt?: string | undefined;
5075
+ agentId?: string | undefined;
5076
+ nickname?: string | undefined;
5077
+ }>, "many">>;
5078
+ agentStates: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
5079
+ threadId: z.ZodString;
5080
+ status: z.ZodString;
5081
+ message: z.ZodOptional<z.ZodString>;
5082
+ }, "strip", z.ZodTypeAny, {
5083
+ status: string;
5084
+ threadId: string;
5085
+ message?: string | undefined;
5086
+ }, {
5087
+ status: string;
5088
+ threadId: string;
5089
+ message?: string | undefined;
5090
+ }>>>;
5091
+ }, "strip", z.ZodTypeAny, {
5092
+ status: string;
5093
+ tool: string;
5094
+ receiverThreadIds: string[];
5095
+ receiverAgents: {
5096
+ threadId: string;
5097
+ role?: string | undefined;
5098
+ model?: string | undefined;
5099
+ prompt?: string | undefined;
5100
+ agentId?: string | undefined;
5101
+ nickname?: string | undefined;
5102
+ }[];
5103
+ agentStates: Record<string, {
5104
+ status: string;
5105
+ threadId: string;
5106
+ message?: string | undefined;
5107
+ }>;
5108
+ model?: string | undefined;
5109
+ prompt?: string | undefined;
5110
+ }, {
5111
+ status: string;
5112
+ tool: string;
5113
+ model?: string | undefined;
5114
+ prompt?: string | undefined;
5115
+ receiverThreadIds?: string[] | undefined;
5116
+ receiverAgents?: {
5117
+ threadId: string;
5118
+ role?: string | undefined;
5119
+ model?: string | undefined;
5120
+ prompt?: string | undefined;
5121
+ agentId?: string | undefined;
5122
+ nickname?: string | undefined;
5123
+ }[] | undefined;
5124
+ agentStates?: Record<string, {
5125
+ status: string;
5126
+ threadId: string;
5127
+ message?: string | undefined;
5128
+ }> | undefined;
5129
+ }>>;
5130
+ structuredInput: z.ZodOptional<z.ZodObject<{
5131
+ requestId: z.ZodString;
5132
+ questions: z.ZodDefault<z.ZodArray<z.ZodObject<{
5133
+ id: z.ZodString;
5134
+ header: z.ZodOptional<z.ZodString>;
5135
+ question: z.ZodString;
5136
+ isOther: z.ZodOptional<z.ZodBoolean>;
5137
+ isSecret: z.ZodOptional<z.ZodBoolean>;
5138
+ selectionLimit: z.ZodOptional<z.ZodNumber>;
5139
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
5140
+ id: z.ZodString;
5141
+ label: z.ZodString;
5142
+ description: z.ZodOptional<z.ZodString>;
5143
+ }, "strip", z.ZodTypeAny, {
5144
+ id: string;
5145
+ label: string;
5146
+ description?: string | undefined;
5147
+ }, {
5148
+ id: string;
5149
+ label: string;
5150
+ description?: string | undefined;
5151
+ }>, "many">>;
5152
+ }, "strip", z.ZodTypeAny, {
5153
+ id: string;
5154
+ question: string;
5155
+ options?: {
5156
+ id: string;
5157
+ label: string;
5158
+ description?: string | undefined;
5159
+ }[] | undefined;
5160
+ header?: string | undefined;
5161
+ isOther?: boolean | undefined;
5162
+ isSecret?: boolean | undefined;
5163
+ selectionLimit?: number | undefined;
5164
+ }, {
5165
+ id: string;
5166
+ question: string;
5167
+ options?: {
5168
+ id: string;
5169
+ label: string;
5170
+ description?: string | undefined;
5171
+ }[] | undefined;
5172
+ header?: string | undefined;
5173
+ isOther?: boolean | undefined;
5174
+ isSecret?: boolean | undefined;
5175
+ selectionLimit?: number | undefined;
5176
+ }>, "many">>;
5177
+ }, "strip", z.ZodTypeAny, {
5178
+ requestId: string;
5179
+ questions: {
5180
+ id: string;
5181
+ question: string;
5182
+ options?: {
5183
+ id: string;
5184
+ label: string;
5185
+ description?: string | undefined;
5186
+ }[] | undefined;
5187
+ header?: string | undefined;
5188
+ isOther?: boolean | undefined;
5189
+ isSecret?: boolean | undefined;
5190
+ selectionLimit?: number | undefined;
5191
+ }[];
5192
+ }, {
5193
+ requestId: string;
5194
+ questions?: {
5195
+ id: string;
5196
+ question: string;
5197
+ options?: {
5198
+ id: string;
5199
+ label: string;
5200
+ description?: string | undefined;
5201
+ }[] | undefined;
5202
+ header?: string | undefined;
5203
+ isOther?: boolean | undefined;
5204
+ isSecret?: boolean | undefined;
5205
+ selectionLimit?: number | undefined;
5206
+ }[] | undefined;
5207
+ }>>;
5208
+ plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
5209
+ id: z.ZodString;
5210
+ text: z.ZodString;
5211
+ status: z.ZodEnum<["pending", "in_progress", "completed"]>;
5212
+ }, "strip", z.ZodTypeAny, {
5213
+ status: "pending" | "completed" | "in_progress";
5214
+ id: string;
5215
+ text: string;
5216
+ }, {
5217
+ status: "pending" | "completed" | "in_progress";
5218
+ id: string;
5219
+ text: string;
5220
+ }>, "many">>;
5221
+ permission: z.ZodOptional<z.ZodObject<{
5222
+ requestId: z.ZodString;
5223
+ toolName: z.ZodOptional<z.ZodString>;
5224
+ toolInput: z.ZodOptional<z.ZodString>;
5225
+ context: z.ZodOptional<z.ZodString>;
5226
+ options: z.ZodDefault<z.ZodArray<z.ZodObject<{
5227
+ id: z.ZodString;
5228
+ label: z.ZodString;
5229
+ kind: z.ZodDefault<z.ZodEnum<["allow", "deny", "other"]>>;
5230
+ }, "strip", z.ZodTypeAny, {
5231
+ id: string;
5232
+ label: string;
5233
+ kind: "allow" | "deny" | "other";
5234
+ }, {
5235
+ id: string;
5236
+ label: string;
5237
+ kind?: "allow" | "deny" | "other" | undefined;
5238
+ }>, "many">>;
5239
+ }, "strip", z.ZodTypeAny, {
5240
+ options: {
5241
+ id: string;
5242
+ label: string;
5243
+ kind: "allow" | "deny" | "other";
5244
+ }[];
5245
+ requestId: string;
5246
+ toolName?: string | undefined;
5247
+ toolInput?: string | undefined;
5248
+ context?: string | undefined;
5249
+ }, {
5250
+ requestId: string;
5251
+ options?: {
5252
+ id: string;
5253
+ label: string;
5254
+ kind?: "allow" | "deny" | "other" | undefined;
5255
+ }[] | undefined;
5256
+ toolName?: string | undefined;
5257
+ toolInput?: string | undefined;
5258
+ context?: string | undefined;
5259
+ }>>;
5260
+ error: z.ZodOptional<z.ZodString>;
5261
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5262
+ updatedAt: z.ZodOptional<z.ZodNumber>;
5263
+ isStreaming: z.ZodOptional<z.ZodBoolean>;
5264
+ }, "strip", z.ZodTypeAny, {
5265
+ itemId: string;
5266
+ error?: string | undefined;
5267
+ status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
5268
+ role?: "user" | "assistant" | "system" | undefined;
5269
+ text?: string | undefined;
5270
+ kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5271
+ plan?: {
5272
+ status: "pending" | "completed" | "in_progress";
5273
+ id: string;
5274
+ text: string;
5275
+ }[] | undefined;
5276
+ content?: {
5277
+ type: "text" | "image";
5278
+ data?: string | undefined;
5279
+ text?: string | undefined;
5280
+ mimeType?: string | undefined;
5281
+ }[] | undefined;
5282
+ isStreaming?: boolean | undefined;
5283
+ toolCall?: {
5284
+ status: "running" | "pending" | "completed" | "failed";
5285
+ id: string;
5286
+ name: string;
5287
+ createdAt?: number | undefined;
5288
+ input?: string | undefined;
5289
+ output?: string | undefined;
5290
+ } | undefined;
5291
+ permission?: {
5292
+ options: {
5293
+ id: string;
5294
+ label: string;
5295
+ kind: "allow" | "deny" | "other";
5296
+ }[];
5297
+ requestId: string;
5298
+ toolName?: string | undefined;
5299
+ toolInput?: string | undefined;
5300
+ context?: string | undefined;
5301
+ } | undefined;
5302
+ commandExecution?: {
5303
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
5304
+ cwd?: string | undefined;
5305
+ exitCode?: number | null | undefined;
5306
+ output?: string | undefined;
5307
+ command?: string | undefined;
5308
+ } | undefined;
5309
+ fileChange?: {
5310
+ entries: {
5311
+ path: string;
5312
+ kind?: string | undefined;
5313
+ added?: number | undefined;
5314
+ removed?: number | undefined;
5315
+ }[];
5316
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
5317
+ summary?: string | undefined;
5318
+ diff?: string | undefined;
5319
+ changeSetId?: string | undefined;
5320
+ } | undefined;
5321
+ subagent?: {
5322
+ status: string;
5323
+ tool: string;
5324
+ receiverThreadIds: string[];
5325
+ receiverAgents: {
5326
+ threadId: string;
5327
+ role?: string | undefined;
5328
+ model?: string | undefined;
5329
+ prompt?: string | undefined;
5330
+ agentId?: string | undefined;
5331
+ nickname?: string | undefined;
5332
+ }[];
5333
+ agentStates: Record<string, {
5334
+ status: string;
5335
+ threadId: string;
5336
+ message?: string | undefined;
5337
+ }>;
5338
+ model?: string | undefined;
5339
+ prompt?: string | undefined;
5340
+ } | undefined;
5341
+ structuredInput?: {
5342
+ requestId: string;
5343
+ questions: {
5344
+ id: string;
5345
+ question: string;
5346
+ options?: {
5347
+ id: string;
5348
+ label: string;
5349
+ description?: string | undefined;
5350
+ }[] | undefined;
5351
+ header?: string | undefined;
5352
+ isOther?: boolean | undefined;
5353
+ isSecret?: boolean | undefined;
5354
+ selectionLimit?: number | undefined;
5355
+ }[];
5356
+ } | undefined;
5357
+ metadata?: Record<string, unknown> | undefined;
5358
+ updatedAt?: number | undefined;
5359
+ textDelta?: string | undefined;
5360
+ }, {
5361
+ itemId: string;
5362
+ error?: string | undefined;
5363
+ status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
5364
+ role?: "user" | "assistant" | "system" | undefined;
5365
+ text?: string | undefined;
5366
+ kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5367
+ plan?: {
5368
+ status: "pending" | "completed" | "in_progress";
5369
+ id: string;
5370
+ text: string;
5371
+ }[] | undefined;
5372
+ content?: {
5373
+ type: "text" | "image";
5374
+ data?: string | undefined;
5375
+ text?: string | undefined;
5376
+ mimeType?: string | undefined;
5377
+ }[] | undefined;
5378
+ isStreaming?: boolean | undefined;
5379
+ toolCall?: {
5380
+ id: string;
5381
+ name: string;
5382
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
5383
+ createdAt?: number | undefined;
5384
+ input?: string | undefined;
5385
+ output?: string | undefined;
5386
+ } | undefined;
5387
+ permission?: {
5388
+ requestId: string;
5389
+ options?: {
5390
+ id: string;
5391
+ label: string;
5392
+ kind?: "allow" | "deny" | "other" | undefined;
5393
+ }[] | undefined;
5394
+ toolName?: string | undefined;
5395
+ toolInput?: string | undefined;
5396
+ context?: string | undefined;
5397
+ } | undefined;
5398
+ commandExecution?: {
5399
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
5400
+ cwd?: string | undefined;
5401
+ exitCode?: number | null | undefined;
5402
+ output?: string | undefined;
5403
+ command?: string | undefined;
5404
+ } | undefined;
5405
+ fileChange?: {
5406
+ entries?: {
5407
+ path: string;
5408
+ kind?: string | undefined;
5409
+ added?: number | undefined;
5410
+ removed?: number | undefined;
5411
+ }[] | undefined;
5412
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
5413
+ summary?: string | undefined;
5414
+ diff?: string | undefined;
5415
+ changeSetId?: string | undefined;
5416
+ } | undefined;
5417
+ subagent?: {
5418
+ status: string;
5419
+ tool: string;
5420
+ model?: string | undefined;
5421
+ prompt?: string | undefined;
5422
+ receiverThreadIds?: string[] | undefined;
5423
+ receiverAgents?: {
5424
+ threadId: string;
5425
+ role?: string | undefined;
5426
+ model?: string | undefined;
5427
+ prompt?: string | undefined;
5428
+ agentId?: string | undefined;
5429
+ nickname?: string | undefined;
5430
+ }[] | undefined;
5431
+ agentStates?: Record<string, {
5432
+ status: string;
5433
+ threadId: string;
5434
+ message?: string | undefined;
5435
+ }> | undefined;
5436
+ } | undefined;
5437
+ structuredInput?: {
5438
+ requestId: string;
5439
+ questions?: {
5440
+ id: string;
5441
+ question: string;
5442
+ options?: {
5443
+ id: string;
5444
+ label: string;
5445
+ description?: string | undefined;
5446
+ }[] | undefined;
5447
+ header?: string | undefined;
5448
+ isOther?: boolean | undefined;
5449
+ isSecret?: boolean | undefined;
5450
+ selectionLimit?: number | undefined;
5451
+ }[] | undefined;
5452
+ } | undefined;
5453
+ metadata?: Record<string, unknown> | undefined;
5454
+ updatedAt?: number | undefined;
5455
+ textDelta?: string | undefined;
5456
+ }>>;
5457
+ }, "strip", z.ZodTypeAny, {
5458
+ conversationId: string;
5459
+ conversation?: {
5460
+ status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
5461
+ id: string;
5462
+ provider: "claude" | "codex" | "custom";
5463
+ cwd: string;
5464
+ createdAt: number;
5465
+ archived: boolean;
5466
+ lastActivityAt: number;
5467
+ agentSessionId?: string | undefined;
5468
+ model?: string | undefined;
5469
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
5470
+ permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
5471
+ title?: string | undefined;
5472
+ lastMessagePreview?: string | undefined;
5473
+ } | undefined;
5474
+ item?: {
5475
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
5476
+ id: string;
5477
+ createdAt: number;
5478
+ conversationId: string;
5479
+ error?: string | undefined;
5480
+ status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
5481
+ role?: "user" | "assistant" | "system" | undefined;
5482
+ text?: string | undefined;
5483
+ kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5484
+ plan?: {
5485
+ status: "pending" | "completed" | "in_progress";
5486
+ id: string;
5487
+ text: string;
5488
+ }[] | undefined;
5489
+ content?: {
5490
+ type: "text" | "image";
5491
+ data?: string | undefined;
5492
+ text?: string | undefined;
5493
+ mimeType?: string | undefined;
5494
+ }[] | undefined;
5495
+ isStreaming?: boolean | undefined;
5496
+ toolCall?: {
5497
+ status: "running" | "pending" | "completed" | "failed";
5498
+ id: string;
5499
+ name: string;
5500
+ createdAt?: number | undefined;
5501
+ input?: string | undefined;
5502
+ output?: string | undefined;
5503
+ } | undefined;
5504
+ permission?: {
5505
+ options: {
5506
+ id: string;
5507
+ label: string;
5508
+ kind: "allow" | "deny" | "other";
5509
+ }[];
5510
+ requestId: string;
5511
+ toolName?: string | undefined;
5512
+ toolInput?: string | undefined;
5513
+ context?: string | undefined;
5514
+ } | undefined;
5515
+ turnId?: string | undefined;
5516
+ itemId?: string | undefined;
5517
+ commandExecution?: {
5518
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
5519
+ cwd?: string | undefined;
5520
+ exitCode?: number | null | undefined;
5521
+ output?: string | undefined;
5522
+ command?: string | undefined;
5523
+ } | undefined;
5524
+ fileChange?: {
5525
+ entries: {
5526
+ path: string;
5527
+ kind?: string | undefined;
5528
+ added?: number | undefined;
5529
+ removed?: number | undefined;
5530
+ }[];
5531
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
5532
+ summary?: string | undefined;
5533
+ diff?: string | undefined;
5534
+ changeSetId?: string | undefined;
5535
+ } | undefined;
5536
+ subagent?: {
5537
+ status: string;
5538
+ tool: string;
5539
+ receiverThreadIds: string[];
5540
+ receiverAgents: {
5541
+ threadId: string;
4839
5542
  role?: string | undefined;
4840
5543
  model?: string | undefined;
4841
5544
  prompt?: string | undefined;
@@ -4871,7 +5574,22 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
4871
5574
  } | undefined;
4872
5575
  patch?: {
4873
5576
  itemId: string;
5577
+ error?: string | undefined;
4874
5578
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
5579
+ role?: "user" | "assistant" | "system" | undefined;
5580
+ text?: string | undefined;
5581
+ kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5582
+ plan?: {
5583
+ status: "pending" | "completed" | "in_progress";
5584
+ id: string;
5585
+ text: string;
5586
+ }[] | undefined;
5587
+ content?: {
5588
+ type: "text" | "image";
5589
+ data?: string | undefined;
5590
+ text?: string | undefined;
5591
+ mimeType?: string | undefined;
5592
+ }[] | undefined;
4875
5593
  isStreaming?: boolean | undefined;
4876
5594
  toolCall?: {
4877
5595
  status: "running" | "pending" | "completed" | "failed";
@@ -4881,6 +5599,73 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
4881
5599
  input?: string | undefined;
4882
5600
  output?: string | undefined;
4883
5601
  } | undefined;
5602
+ permission?: {
5603
+ options: {
5604
+ id: string;
5605
+ label: string;
5606
+ kind: "allow" | "deny" | "other";
5607
+ }[];
5608
+ requestId: string;
5609
+ toolName?: string | undefined;
5610
+ toolInput?: string | undefined;
5611
+ context?: string | undefined;
5612
+ } | undefined;
5613
+ commandExecution?: {
5614
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
5615
+ cwd?: string | undefined;
5616
+ exitCode?: number | null | undefined;
5617
+ output?: string | undefined;
5618
+ command?: string | undefined;
5619
+ } | undefined;
5620
+ fileChange?: {
5621
+ entries: {
5622
+ path: string;
5623
+ kind?: string | undefined;
5624
+ added?: number | undefined;
5625
+ removed?: number | undefined;
5626
+ }[];
5627
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
5628
+ summary?: string | undefined;
5629
+ diff?: string | undefined;
5630
+ changeSetId?: string | undefined;
5631
+ } | undefined;
5632
+ subagent?: {
5633
+ status: string;
5634
+ tool: string;
5635
+ receiverThreadIds: string[];
5636
+ receiverAgents: {
5637
+ threadId: string;
5638
+ role?: string | undefined;
5639
+ model?: string | undefined;
5640
+ prompt?: string | undefined;
5641
+ agentId?: string | undefined;
5642
+ nickname?: string | undefined;
5643
+ }[];
5644
+ agentStates: Record<string, {
5645
+ status: string;
5646
+ threadId: string;
5647
+ message?: string | undefined;
5648
+ }>;
5649
+ model?: string | undefined;
5650
+ prompt?: string | undefined;
5651
+ } | undefined;
5652
+ structuredInput?: {
5653
+ requestId: string;
5654
+ questions: {
5655
+ id: string;
5656
+ question: string;
5657
+ options?: {
5658
+ id: string;
5659
+ label: string;
5660
+ description?: string | undefined;
5661
+ }[] | undefined;
5662
+ header?: string | undefined;
5663
+ isOther?: boolean | undefined;
5664
+ isSecret?: boolean | undefined;
5665
+ selectionLimit?: number | undefined;
5666
+ }[];
5667
+ } | undefined;
5668
+ metadata?: Record<string, unknown> | undefined;
4884
5669
  updatedAt?: number | undefined;
4885
5670
  textDelta?: string | undefined;
4886
5671
  } | undefined;
@@ -5004,7 +5789,22 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5004
5789
  } | undefined;
5005
5790
  patch?: {
5006
5791
  itemId: string;
5792
+ error?: string | undefined;
5007
5793
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
5794
+ role?: "user" | "assistant" | "system" | undefined;
5795
+ text?: string | undefined;
5796
+ kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
5797
+ plan?: {
5798
+ status: "pending" | "completed" | "in_progress";
5799
+ id: string;
5800
+ text: string;
5801
+ }[] | undefined;
5802
+ content?: {
5803
+ type: "text" | "image";
5804
+ data?: string | undefined;
5805
+ text?: string | undefined;
5806
+ mimeType?: string | undefined;
5807
+ }[] | undefined;
5008
5808
  isStreaming?: boolean | undefined;
5009
5809
  toolCall?: {
5010
5810
  id: string;
@@ -5014,6 +5814,73 @@ export declare const agentV2EventPayloadSchema: z.ZodObject<{
5014
5814
  input?: string | undefined;
5015
5815
  output?: string | undefined;
5016
5816
  } | undefined;
5817
+ permission?: {
5818
+ requestId: string;
5819
+ options?: {
5820
+ id: string;
5821
+ label: string;
5822
+ kind?: "allow" | "deny" | "other" | undefined;
5823
+ }[] | undefined;
5824
+ toolName?: string | undefined;
5825
+ toolInput?: string | undefined;
5826
+ context?: string | undefined;
5827
+ } | undefined;
5828
+ commandExecution?: {
5829
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
5830
+ cwd?: string | undefined;
5831
+ exitCode?: number | null | undefined;
5832
+ output?: string | undefined;
5833
+ command?: string | undefined;
5834
+ } | undefined;
5835
+ fileChange?: {
5836
+ entries?: {
5837
+ path: string;
5838
+ kind?: string | undefined;
5839
+ added?: number | undefined;
5840
+ removed?: number | undefined;
5841
+ }[] | undefined;
5842
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
5843
+ summary?: string | undefined;
5844
+ diff?: string | undefined;
5845
+ changeSetId?: string | undefined;
5846
+ } | undefined;
5847
+ subagent?: {
5848
+ status: string;
5849
+ tool: string;
5850
+ model?: string | undefined;
5851
+ prompt?: string | undefined;
5852
+ receiverThreadIds?: string[] | undefined;
5853
+ receiverAgents?: {
5854
+ threadId: string;
5855
+ role?: string | undefined;
5856
+ model?: string | undefined;
5857
+ prompt?: string | undefined;
5858
+ agentId?: string | undefined;
5859
+ nickname?: string | undefined;
5860
+ }[] | undefined;
5861
+ agentStates?: Record<string, {
5862
+ status: string;
5863
+ threadId: string;
5864
+ message?: string | undefined;
5865
+ }> | undefined;
5866
+ } | undefined;
5867
+ structuredInput?: {
5868
+ requestId: string;
5869
+ questions?: {
5870
+ id: string;
5871
+ question: string;
5872
+ options?: {
5873
+ id: string;
5874
+ label: string;
5875
+ description?: string | undefined;
5876
+ }[] | undefined;
5877
+ header?: string | undefined;
5878
+ isOther?: boolean | undefined;
5879
+ isSecret?: boolean | undefined;
5880
+ selectionLimit?: number | undefined;
5881
+ }[] | undefined;
5882
+ } | undefined;
5883
+ metadata?: Record<string, unknown> | undefined;
5017
5884
  updatedAt?: number | undefined;
5018
5885
  textDelta?: string | undefined;
5019
5886
  } | undefined;
@@ -5796,6 +6663,7 @@ export declare const protocolMessageSchemas: {
5796
6663
  clientName: z.ZodString;
5797
6664
  provider: z.ZodOptional<z.ZodEnum<["claude", "codex", "custom"]>>;
5798
6665
  protocolVersion: z.ZodOptional<z.ZodNumber>;
6666
+ machineId: z.ZodOptional<z.ZodString>;
5799
6667
  hostname: z.ZodOptional<z.ZodString>;
5800
6668
  platform: z.ZodOptional<z.ZodString>;
5801
6669
  cwd: z.ZodOptional<z.ZodString>;
@@ -5805,6 +6673,7 @@ export declare const protocolMessageSchemas: {
5805
6673
  clientName: string;
5806
6674
  provider?: "claude" | "codex" | "custom" | undefined;
5807
6675
  protocolVersion?: number | undefined;
6676
+ machineId?: string | undefined;
5808
6677
  hostname?: string | undefined;
5809
6678
  platform?: string | undefined;
5810
6679
  cwd?: string | undefined;
@@ -5814,6 +6683,7 @@ export declare const protocolMessageSchemas: {
5814
6683
  clientName: string;
5815
6684
  provider?: "claude" | "codex" | "custom" | undefined;
5816
6685
  protocolVersion?: number | undefined;
6686
+ machineId?: string | undefined;
5817
6687
  hostname?: string | undefined;
5818
6688
  platform?: string | undefined;
5819
6689
  cwd?: string | undefined;
@@ -5829,10 +6699,13 @@ export declare const protocolMessageSchemas: {
5829
6699
  readonly "session.resume": z.ZodObject<{
5830
6700
  lastAckedSeq: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5831
6701
  lastAckedSeqByTerminal: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>>;
6702
+ machineId: z.ZodOptional<z.ZodString>;
5832
6703
  }, "strip", z.ZodTypeAny, {
5833
6704
  lastAckedSeq: number;
5834
6705
  lastAckedSeqByTerminal: Record<string, number>;
6706
+ machineId?: string | undefined;
5835
6707
  }, {
6708
+ machineId?: string | undefined;
5836
6709
  lastAckedSeq?: number | undefined;
5837
6710
  lastAckedSeqByTerminal?: Record<string, number> | undefined;
5838
6711
  }>;
@@ -6195,9 +7068,11 @@ export declare const protocolMessageSchemas: {
6195
7068
  requestId: string;
6196
7069
  }>>;
6197
7070
  pendingPermissionCount: z.ZodOptional<z.ZodNumber>;
7071
+ machineId: z.ZodOptional<z.ZodString>;
6198
7072
  }, "strip", z.ZodTypeAny, {
6199
7073
  phase: "error" | "thinking" | "tool_use" | "outputting" | "waiting" | "idle";
6200
7074
  seq?: number | undefined;
7075
+ machineId?: string | undefined;
6201
7076
  toolName?: string | undefined;
6202
7077
  toolInput?: string | undefined;
6203
7078
  permissionRequest?: string | undefined;
@@ -6213,6 +7088,7 @@ export declare const protocolMessageSchemas: {
6213
7088
  }, {
6214
7089
  phase: "error" | "thinking" | "tool_use" | "outputting" | "waiting" | "idle";
6215
7090
  seq?: number | undefined;
7091
+ machineId?: string | undefined;
6216
7092
  toolName?: string | undefined;
6217
7093
  toolInput?: string | undefined;
6218
7094
  permissionRequest?: string | undefined;
@@ -6324,6 +7200,7 @@ export declare const protocolMessageSchemas: {
6324
7200
  readonly "agent.capabilities": z.ZodObject<{
6325
7201
  enabled: z.ZodBoolean;
6326
7202
  provider: z.ZodOptional<z.ZodEnum<["codex", "claude", "custom"]>>;
7203
+ machineId: z.ZodOptional<z.ZodString>;
6327
7204
  providers: z.ZodOptional<z.ZodArray<z.ZodObject<{
6328
7205
  id: z.ZodEnum<["codex", "claude", "custom"]>;
6329
7206
  label: z.ZodString;
@@ -6333,6 +7210,20 @@ export declare const protocolMessageSchemas: {
6333
7210
  supportsPermission: z.ZodOptional<z.ZodBoolean>;
6334
7211
  supportsPlan: z.ZodOptional<z.ZodBoolean>;
6335
7212
  supportsCancel: z.ZodOptional<z.ZodBoolean>;
7213
+ models: z.ZodOptional<z.ZodArray<z.ZodObject<{
7214
+ id: z.ZodString;
7215
+ label: z.ZodString;
7216
+ }, "strip", z.ZodTypeAny, {
7217
+ id: string;
7218
+ label: string;
7219
+ }, {
7220
+ id: string;
7221
+ label: string;
7222
+ }>, "many">>;
7223
+ defaultModel: z.ZodOptional<z.ZodString>;
7224
+ reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>, "many">>;
7225
+ permissionModes: z.ZodOptional<z.ZodArray<z.ZodEnum<["read_only", "workspace_write", "full_access"]>, "many">>;
7226
+ features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
6336
7227
  }, "strip", z.ZodTypeAny, {
6337
7228
  id: "claude" | "codex" | "custom";
6338
7229
  enabled: boolean;
@@ -6342,6 +7233,14 @@ export declare const protocolMessageSchemas: {
6342
7233
  supportsPermission?: boolean | undefined;
6343
7234
  supportsPlan?: boolean | undefined;
6344
7235
  supportsCancel?: boolean | undefined;
7236
+ models?: {
7237
+ id: string;
7238
+ label: string;
7239
+ }[] | undefined;
7240
+ defaultModel?: string | undefined;
7241
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
7242
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
7243
+ features?: Record<string, boolean> | undefined;
6345
7244
  }, {
6346
7245
  id: "claude" | "codex" | "custom";
6347
7246
  enabled: boolean;
@@ -6351,6 +7250,14 @@ export declare const protocolMessageSchemas: {
6351
7250
  supportsPermission?: boolean | undefined;
6352
7251
  supportsPlan?: boolean | undefined;
6353
7252
  supportsCancel?: boolean | undefined;
7253
+ models?: {
7254
+ id: string;
7255
+ label: string;
7256
+ }[] | undefined;
7257
+ defaultModel?: string | undefined;
7258
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
7259
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
7260
+ features?: Record<string, boolean> | undefined;
6354
7261
  }>, "many">>;
6355
7262
  protocolVersion: z.ZodOptional<z.ZodNumber>;
6356
7263
  error: z.ZodOptional<z.ZodString>;
@@ -6373,6 +7280,7 @@ export declare const protocolMessageSchemas: {
6373
7280
  error?: string | undefined;
6374
7281
  provider?: "claude" | "codex" | "custom" | undefined;
6375
7282
  protocolVersion?: number | undefined;
7283
+ machineId?: string | undefined;
6376
7284
  providers?: {
6377
7285
  id: "claude" | "codex" | "custom";
6378
7286
  enabled: boolean;
@@ -6382,12 +7290,21 @@ export declare const protocolMessageSchemas: {
6382
7290
  supportsPermission?: boolean | undefined;
6383
7291
  supportsPlan?: boolean | undefined;
6384
7292
  supportsCancel?: boolean | undefined;
7293
+ models?: {
7294
+ id: string;
7295
+ label: string;
7296
+ }[] | undefined;
7297
+ defaultModel?: string | undefined;
7298
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
7299
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
7300
+ features?: Record<string, boolean> | undefined;
6385
7301
  }[] | undefined;
6386
7302
  }, {
6387
7303
  enabled: boolean;
6388
7304
  error?: string | undefined;
6389
7305
  provider?: "claude" | "codex" | "custom" | undefined;
6390
7306
  protocolVersion?: number | undefined;
7307
+ machineId?: string | undefined;
6391
7308
  supportsImages?: boolean | undefined;
6392
7309
  supportsPermission?: boolean | undefined;
6393
7310
  supportsPlan?: boolean | undefined;
@@ -6401,6 +7318,14 @@ export declare const protocolMessageSchemas: {
6401
7318
  supportsPermission?: boolean | undefined;
6402
7319
  supportsPlan?: boolean | undefined;
6403
7320
  supportsCancel?: boolean | undefined;
7321
+ models?: {
7322
+ id: string;
7323
+ label: string;
7324
+ }[] | undefined;
7325
+ defaultModel?: string | undefined;
7326
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
7327
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
7328
+ features?: Record<string, boolean> | undefined;
6404
7329
  }[] | undefined;
6405
7330
  supportsSessionList?: boolean | undefined;
6406
7331
  supportsSessionLoad?: boolean | undefined;
@@ -6661,6 +7586,7 @@ export declare const protocolMessageSchemas: {
6661
7586
  capabilities: z.ZodOptional<z.ZodObject<{
6662
7587
  enabled: z.ZodBoolean;
6663
7588
  provider: z.ZodOptional<z.ZodEnum<["codex", "claude", "custom"]>>;
7589
+ machineId: z.ZodOptional<z.ZodString>;
6664
7590
  providers: z.ZodOptional<z.ZodArray<z.ZodObject<{
6665
7591
  id: z.ZodEnum<["codex", "claude", "custom"]>;
6666
7592
  label: z.ZodString;
@@ -6670,6 +7596,20 @@ export declare const protocolMessageSchemas: {
6670
7596
  supportsPermission: z.ZodOptional<z.ZodBoolean>;
6671
7597
  supportsPlan: z.ZodOptional<z.ZodBoolean>;
6672
7598
  supportsCancel: z.ZodOptional<z.ZodBoolean>;
7599
+ models: z.ZodOptional<z.ZodArray<z.ZodObject<{
7600
+ id: z.ZodString;
7601
+ label: z.ZodString;
7602
+ }, "strip", z.ZodTypeAny, {
7603
+ id: string;
7604
+ label: string;
7605
+ }, {
7606
+ id: string;
7607
+ label: string;
7608
+ }>, "many">>;
7609
+ defaultModel: z.ZodOptional<z.ZodString>;
7610
+ reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>, "many">>;
7611
+ permissionModes: z.ZodOptional<z.ZodArray<z.ZodEnum<["read_only", "workspace_write", "full_access"]>, "many">>;
7612
+ features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
6673
7613
  }, "strip", z.ZodTypeAny, {
6674
7614
  id: "claude" | "codex" | "custom";
6675
7615
  enabled: boolean;
@@ -6679,6 +7619,14 @@ export declare const protocolMessageSchemas: {
6679
7619
  supportsPermission?: boolean | undefined;
6680
7620
  supportsPlan?: boolean | undefined;
6681
7621
  supportsCancel?: boolean | undefined;
7622
+ models?: {
7623
+ id: string;
7624
+ label: string;
7625
+ }[] | undefined;
7626
+ defaultModel?: string | undefined;
7627
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
7628
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
7629
+ features?: Record<string, boolean> | undefined;
6682
7630
  }, {
6683
7631
  id: "claude" | "codex" | "custom";
6684
7632
  enabled: boolean;
@@ -6688,6 +7636,14 @@ export declare const protocolMessageSchemas: {
6688
7636
  supportsPermission?: boolean | undefined;
6689
7637
  supportsPlan?: boolean | undefined;
6690
7638
  supportsCancel?: boolean | undefined;
7639
+ models?: {
7640
+ id: string;
7641
+ label: string;
7642
+ }[] | undefined;
7643
+ defaultModel?: string | undefined;
7644
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
7645
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
7646
+ features?: Record<string, boolean> | undefined;
6691
7647
  }>, "many">>;
6692
7648
  protocolVersion: z.ZodOptional<z.ZodNumber>;
6693
7649
  error: z.ZodOptional<z.ZodString>;
@@ -6710,6 +7666,7 @@ export declare const protocolMessageSchemas: {
6710
7666
  error?: string | undefined;
6711
7667
  provider?: "claude" | "codex" | "custom" | undefined;
6712
7668
  protocolVersion?: number | undefined;
7669
+ machineId?: string | undefined;
6713
7670
  providers?: {
6714
7671
  id: "claude" | "codex" | "custom";
6715
7672
  enabled: boolean;
@@ -6719,12 +7676,21 @@ export declare const protocolMessageSchemas: {
6719
7676
  supportsPermission?: boolean | undefined;
6720
7677
  supportsPlan?: boolean | undefined;
6721
7678
  supportsCancel?: boolean | undefined;
7679
+ models?: {
7680
+ id: string;
7681
+ label: string;
7682
+ }[] | undefined;
7683
+ defaultModel?: string | undefined;
7684
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
7685
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
7686
+ features?: Record<string, boolean> | undefined;
6722
7687
  }[] | undefined;
6723
7688
  }, {
6724
7689
  enabled: boolean;
6725
7690
  error?: string | undefined;
6726
7691
  provider?: "claude" | "codex" | "custom" | undefined;
6727
7692
  protocolVersion?: number | undefined;
7693
+ machineId?: string | undefined;
6728
7694
  supportsImages?: boolean | undefined;
6729
7695
  supportsPermission?: boolean | undefined;
6730
7696
  supportsPlan?: boolean | undefined;
@@ -6738,6 +7704,14 @@ export declare const protocolMessageSchemas: {
6738
7704
  supportsPermission?: boolean | undefined;
6739
7705
  supportsPlan?: boolean | undefined;
6740
7706
  supportsCancel?: boolean | undefined;
7707
+ models?: {
7708
+ id: string;
7709
+ label: string;
7710
+ }[] | undefined;
7711
+ defaultModel?: string | undefined;
7712
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
7713
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
7714
+ features?: Record<string, boolean> | undefined;
6741
7715
  }[] | undefined;
6742
7716
  supportsSessionList?: boolean | undefined;
6743
7717
  supportsSessionLoad?: boolean | undefined;
@@ -6867,6 +7841,7 @@ export declare const protocolMessageSchemas: {
6867
7841
  error?: string | undefined;
6868
7842
  provider?: "claude" | "codex" | "custom" | undefined;
6869
7843
  protocolVersion?: number | undefined;
7844
+ machineId?: string | undefined;
6870
7845
  providers?: {
6871
7846
  id: "claude" | "codex" | "custom";
6872
7847
  enabled: boolean;
@@ -6876,6 +7851,14 @@ export declare const protocolMessageSchemas: {
6876
7851
  supportsPermission?: boolean | undefined;
6877
7852
  supportsPlan?: boolean | undefined;
6878
7853
  supportsCancel?: boolean | undefined;
7854
+ models?: {
7855
+ id: string;
7856
+ label: string;
7857
+ }[] | undefined;
7858
+ defaultModel?: string | undefined;
7859
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
7860
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
7861
+ features?: Record<string, boolean> | undefined;
6879
7862
  }[] | undefined;
6880
7863
  } | undefined;
6881
7864
  }, {
@@ -6887,6 +7870,7 @@ export declare const protocolMessageSchemas: {
6887
7870
  error?: string | undefined;
6888
7871
  provider?: "claude" | "codex" | "custom" | undefined;
6889
7872
  protocolVersion?: number | undefined;
7873
+ machineId?: string | undefined;
6890
7874
  supportsImages?: boolean | undefined;
6891
7875
  supportsPermission?: boolean | undefined;
6892
7876
  supportsPlan?: boolean | undefined;
@@ -6900,6 +7884,14 @@ export declare const protocolMessageSchemas: {
6900
7884
  supportsPermission?: boolean | undefined;
6901
7885
  supportsPlan?: boolean | undefined;
6902
7886
  supportsCancel?: boolean | undefined;
7887
+ models?: {
7888
+ id: string;
7889
+ label: string;
7890
+ }[] | undefined;
7891
+ defaultModel?: string | undefined;
7892
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
7893
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
7894
+ features?: Record<string, boolean> | undefined;
6903
7895
  }[] | undefined;
6904
7896
  supportsSessionList?: boolean | undefined;
6905
7897
  supportsSessionLoad?: boolean | undefined;
@@ -6936,6 +7928,7 @@ export declare const protocolMessageSchemas: {
6936
7928
  readonly "agent.v2.capabilities": z.ZodObject<{
6937
7929
  enabled: z.ZodBoolean;
6938
7930
  provider: z.ZodOptional<z.ZodEnum<["codex", "claude", "custom"]>>;
7931
+ machineId: z.ZodOptional<z.ZodString>;
6939
7932
  providers: z.ZodOptional<z.ZodArray<z.ZodObject<{
6940
7933
  id: z.ZodEnum<["codex", "claude", "custom"]>;
6941
7934
  label: z.ZodString;
@@ -6945,6 +7938,20 @@ export declare const protocolMessageSchemas: {
6945
7938
  supportsPermission: z.ZodOptional<z.ZodBoolean>;
6946
7939
  supportsPlan: z.ZodOptional<z.ZodBoolean>;
6947
7940
  supportsCancel: z.ZodOptional<z.ZodBoolean>;
7941
+ models: z.ZodOptional<z.ZodArray<z.ZodObject<{
7942
+ id: z.ZodString;
7943
+ label: z.ZodString;
7944
+ }, "strip", z.ZodTypeAny, {
7945
+ id: string;
7946
+ label: string;
7947
+ }, {
7948
+ id: string;
7949
+ label: string;
7950
+ }>, "many">>;
7951
+ defaultModel: z.ZodOptional<z.ZodString>;
7952
+ reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>, "many">>;
7953
+ permissionModes: z.ZodOptional<z.ZodArray<z.ZodEnum<["read_only", "workspace_write", "full_access"]>, "many">>;
7954
+ features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
6948
7955
  }, "strip", z.ZodTypeAny, {
6949
7956
  id: "claude" | "codex" | "custom";
6950
7957
  enabled: boolean;
@@ -6954,6 +7961,14 @@ export declare const protocolMessageSchemas: {
6954
7961
  supportsPermission?: boolean | undefined;
6955
7962
  supportsPlan?: boolean | undefined;
6956
7963
  supportsCancel?: boolean | undefined;
7964
+ models?: {
7965
+ id: string;
7966
+ label: string;
7967
+ }[] | undefined;
7968
+ defaultModel?: string | undefined;
7969
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
7970
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
7971
+ features?: Record<string, boolean> | undefined;
6957
7972
  }, {
6958
7973
  id: "claude" | "codex" | "custom";
6959
7974
  enabled: boolean;
@@ -6963,6 +7978,14 @@ export declare const protocolMessageSchemas: {
6963
7978
  supportsPermission?: boolean | undefined;
6964
7979
  supportsPlan?: boolean | undefined;
6965
7980
  supportsCancel?: boolean | undefined;
7981
+ models?: {
7982
+ id: string;
7983
+ label: string;
7984
+ }[] | undefined;
7985
+ defaultModel?: string | undefined;
7986
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
7987
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
7988
+ features?: Record<string, boolean> | undefined;
6966
7989
  }>, "many">>;
6967
7990
  protocolVersion: z.ZodOptional<z.ZodNumber>;
6968
7991
  error: z.ZodOptional<z.ZodString>;
@@ -6988,6 +8011,7 @@ export declare const protocolMessageSchemas: {
6988
8011
  error?: string | undefined;
6989
8012
  provider?: "claude" | "codex" | "custom" | undefined;
6990
8013
  protocolVersion?: number | undefined;
8014
+ machineId?: string | undefined;
6991
8015
  providers?: {
6992
8016
  id: "claude" | "codex" | "custom";
6993
8017
  enabled: boolean;
@@ -6997,12 +8021,21 @@ export declare const protocolMessageSchemas: {
6997
8021
  supportsPermission?: boolean | undefined;
6998
8022
  supportsPlan?: boolean | undefined;
6999
8023
  supportsCancel?: boolean | undefined;
8024
+ models?: {
8025
+ id: string;
8026
+ label: string;
8027
+ }[] | undefined;
8028
+ defaultModel?: string | undefined;
8029
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8030
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8031
+ features?: Record<string, boolean> | undefined;
7000
8032
  }[] | undefined;
7001
8033
  }, {
7002
8034
  enabled: boolean;
7003
8035
  error?: string | undefined;
7004
8036
  provider?: "claude" | "codex" | "custom" | undefined;
7005
8037
  protocolVersion?: number | undefined;
8038
+ machineId?: string | undefined;
7006
8039
  supportsImages?: boolean | undefined;
7007
8040
  supportsPermission?: boolean | undefined;
7008
8041
  supportsPlan?: boolean | undefined;
@@ -7016,6 +8049,14 @@ export declare const protocolMessageSchemas: {
7016
8049
  supportsPermission?: boolean | undefined;
7017
8050
  supportsPlan?: boolean | undefined;
7018
8051
  supportsCancel?: boolean | undefined;
8052
+ models?: {
8053
+ id: string;
8054
+ label: string;
8055
+ }[] | undefined;
8056
+ defaultModel?: string | undefined;
8057
+ reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh")[] | undefined;
8058
+ permissionModes?: ("read_only" | "workspace_write" | "full_access")[] | undefined;
8059
+ features?: Record<string, boolean> | undefined;
7019
8060
  }[] | undefined;
7020
8061
  supportsSessionList?: boolean | undefined;
7021
8062
  supportsSessionLoad?: boolean | undefined;
@@ -9273,7 +10314,246 @@ export declare const protocolMessageSchemas: {
9273
10314
  } | undefined;
9274
10315
  metadata?: Record<string, unknown> | undefined;
9275
10316
  updatedAt?: number | undefined;
9276
- }, {
10317
+ }, {
10318
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
10319
+ id: string;
10320
+ createdAt: number;
10321
+ conversationId: string;
10322
+ error?: string | undefined;
10323
+ status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10324
+ role?: "user" | "assistant" | "system" | undefined;
10325
+ text?: string | undefined;
10326
+ kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10327
+ plan?: {
10328
+ status: "pending" | "completed" | "in_progress";
10329
+ id: string;
10330
+ text: string;
10331
+ }[] | undefined;
10332
+ content?: {
10333
+ type: "text" | "image";
10334
+ data?: string | undefined;
10335
+ text?: string | undefined;
10336
+ mimeType?: string | undefined;
10337
+ }[] | undefined;
10338
+ isStreaming?: boolean | undefined;
10339
+ toolCall?: {
10340
+ id: string;
10341
+ name: string;
10342
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
10343
+ createdAt?: number | undefined;
10344
+ input?: string | undefined;
10345
+ output?: string | undefined;
10346
+ } | undefined;
10347
+ permission?: {
10348
+ requestId: string;
10349
+ options?: {
10350
+ id: string;
10351
+ label: string;
10352
+ kind?: "allow" | "deny" | "other" | undefined;
10353
+ }[] | undefined;
10354
+ toolName?: string | undefined;
10355
+ toolInput?: string | undefined;
10356
+ context?: string | undefined;
10357
+ } | undefined;
10358
+ turnId?: string | undefined;
10359
+ itemId?: string | undefined;
10360
+ commandExecution?: {
10361
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
10362
+ cwd?: string | undefined;
10363
+ exitCode?: number | null | undefined;
10364
+ output?: string | undefined;
10365
+ command?: string | undefined;
10366
+ } | undefined;
10367
+ fileChange?: {
10368
+ entries?: {
10369
+ path: string;
10370
+ kind?: string | undefined;
10371
+ added?: number | undefined;
10372
+ removed?: number | undefined;
10373
+ }[] | undefined;
10374
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
10375
+ summary?: string | undefined;
10376
+ diff?: string | undefined;
10377
+ changeSetId?: string | undefined;
10378
+ } | undefined;
10379
+ subagent?: {
10380
+ status: string;
10381
+ tool: string;
10382
+ model?: string | undefined;
10383
+ prompt?: string | undefined;
10384
+ receiverThreadIds?: string[] | undefined;
10385
+ receiverAgents?: {
10386
+ threadId: string;
10387
+ role?: string | undefined;
10388
+ model?: string | undefined;
10389
+ prompt?: string | undefined;
10390
+ agentId?: string | undefined;
10391
+ nickname?: string | undefined;
10392
+ }[] | undefined;
10393
+ agentStates?: Record<string, {
10394
+ status: string;
10395
+ threadId: string;
10396
+ message?: string | undefined;
10397
+ }> | undefined;
10398
+ } | undefined;
10399
+ structuredInput?: {
10400
+ requestId: string;
10401
+ questions?: {
10402
+ id: string;
10403
+ question: string;
10404
+ options?: {
10405
+ id: string;
10406
+ label: string;
10407
+ description?: string | undefined;
10408
+ }[] | undefined;
10409
+ header?: string | undefined;
10410
+ isOther?: boolean | undefined;
10411
+ isSecret?: boolean | undefined;
10412
+ selectionLimit?: number | undefined;
10413
+ }[] | undefined;
10414
+ } | undefined;
10415
+ metadata?: Record<string, unknown> | undefined;
10416
+ updatedAt?: number | undefined;
10417
+ }>, "many">>;
10418
+ machineId: z.ZodOptional<z.ZodString>;
10419
+ }, "strip", z.ZodTypeAny, {
10420
+ conversations: {
10421
+ status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
10422
+ id: string;
10423
+ provider: "claude" | "codex" | "custom";
10424
+ cwd: string;
10425
+ createdAt: number;
10426
+ archived: boolean;
10427
+ lastActivityAt: number;
10428
+ agentSessionId?: string | undefined;
10429
+ model?: string | undefined;
10430
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
10431
+ permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
10432
+ title?: string | undefined;
10433
+ lastMessagePreview?: string | undefined;
10434
+ }[];
10435
+ items: {
10436
+ type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
10437
+ id: string;
10438
+ createdAt: number;
10439
+ conversationId: string;
10440
+ error?: string | undefined;
10441
+ status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10442
+ role?: "user" | "assistant" | "system" | undefined;
10443
+ text?: string | undefined;
10444
+ kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
10445
+ plan?: {
10446
+ status: "pending" | "completed" | "in_progress";
10447
+ id: string;
10448
+ text: string;
10449
+ }[] | undefined;
10450
+ content?: {
10451
+ type: "text" | "image";
10452
+ data?: string | undefined;
10453
+ text?: string | undefined;
10454
+ mimeType?: string | undefined;
10455
+ }[] | undefined;
10456
+ isStreaming?: boolean | undefined;
10457
+ toolCall?: {
10458
+ status: "running" | "pending" | "completed" | "failed";
10459
+ id: string;
10460
+ name: string;
10461
+ createdAt?: number | undefined;
10462
+ input?: string | undefined;
10463
+ output?: string | undefined;
10464
+ } | undefined;
10465
+ permission?: {
10466
+ options: {
10467
+ id: string;
10468
+ label: string;
10469
+ kind: "allow" | "deny" | "other";
10470
+ }[];
10471
+ requestId: string;
10472
+ toolName?: string | undefined;
10473
+ toolInput?: string | undefined;
10474
+ context?: string | undefined;
10475
+ } | undefined;
10476
+ turnId?: string | undefined;
10477
+ itemId?: string | undefined;
10478
+ commandExecution?: {
10479
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
10480
+ cwd?: string | undefined;
10481
+ exitCode?: number | null | undefined;
10482
+ output?: string | undefined;
10483
+ command?: string | undefined;
10484
+ } | undefined;
10485
+ fileChange?: {
10486
+ entries: {
10487
+ path: string;
10488
+ kind?: string | undefined;
10489
+ added?: number | undefined;
10490
+ removed?: number | undefined;
10491
+ }[];
10492
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
10493
+ summary?: string | undefined;
10494
+ diff?: string | undefined;
10495
+ changeSetId?: string | undefined;
10496
+ } | undefined;
10497
+ subagent?: {
10498
+ status: string;
10499
+ tool: string;
10500
+ receiverThreadIds: string[];
10501
+ receiverAgents: {
10502
+ threadId: string;
10503
+ role?: string | undefined;
10504
+ model?: string | undefined;
10505
+ prompt?: string | undefined;
10506
+ agentId?: string | undefined;
10507
+ nickname?: string | undefined;
10508
+ }[];
10509
+ agentStates: Record<string, {
10510
+ status: string;
10511
+ threadId: string;
10512
+ message?: string | undefined;
10513
+ }>;
10514
+ model?: string | undefined;
10515
+ prompt?: string | undefined;
10516
+ } | undefined;
10517
+ structuredInput?: {
10518
+ requestId: string;
10519
+ questions: {
10520
+ id: string;
10521
+ question: string;
10522
+ options?: {
10523
+ id: string;
10524
+ label: string;
10525
+ description?: string | undefined;
10526
+ }[] | undefined;
10527
+ header?: string | undefined;
10528
+ isOther?: boolean | undefined;
10529
+ isSecret?: boolean | undefined;
10530
+ selectionLimit?: number | undefined;
10531
+ }[];
10532
+ } | undefined;
10533
+ metadata?: Record<string, unknown> | undefined;
10534
+ updatedAt?: number | undefined;
10535
+ }[];
10536
+ machineId?: string | undefined;
10537
+ activeConversationId?: string | undefined;
10538
+ }, {
10539
+ machineId?: string | undefined;
10540
+ conversations?: {
10541
+ id: string;
10542
+ cwd: string;
10543
+ createdAt: number;
10544
+ lastActivityAt: number;
10545
+ status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10546
+ provider?: "claude" | "codex" | "custom" | undefined;
10547
+ agentSessionId?: string | undefined;
10548
+ model?: string | undefined;
10549
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
10550
+ permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
10551
+ title?: string | undefined;
10552
+ archived?: boolean | undefined;
10553
+ lastMessagePreview?: string | undefined;
10554
+ }[] | undefined;
10555
+ activeConversationId?: string | undefined;
10556
+ items?: {
9277
10557
  type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
9278
10558
  id: string;
9279
10559
  createdAt: number;
@@ -9354,8 +10634,325 @@ export declare const protocolMessageSchemas: {
9354
10634
  threadId: string;
9355
10635
  message?: string | undefined;
9356
10636
  }> | undefined;
9357
- } | undefined;
9358
- structuredInput?: {
10637
+ } | undefined;
10638
+ structuredInput?: {
10639
+ requestId: string;
10640
+ questions?: {
10641
+ id: string;
10642
+ question: string;
10643
+ options?: {
10644
+ id: string;
10645
+ label: string;
10646
+ description?: string | undefined;
10647
+ }[] | undefined;
10648
+ header?: string | undefined;
10649
+ isOther?: boolean | undefined;
10650
+ isSecret?: boolean | undefined;
10651
+ selectionLimit?: number | undefined;
10652
+ }[] | undefined;
10653
+ } | undefined;
10654
+ metadata?: Record<string, unknown> | undefined;
10655
+ updatedAt?: number | undefined;
10656
+ }[] | undefined;
10657
+ }>;
10658
+ readonly "agent.v2.event": z.ZodObject<{
10659
+ conversationId: z.ZodString;
10660
+ conversation: z.ZodOptional<z.ZodObject<{
10661
+ id: z.ZodString;
10662
+ agentSessionId: z.ZodOptional<z.ZodString>;
10663
+ provider: z.ZodDefault<z.ZodEnum<["codex", "claude", "custom"]>>;
10664
+ cwd: z.ZodString;
10665
+ title: z.ZodOptional<z.ZodString>;
10666
+ model: z.ZodOptional<z.ZodString>;
10667
+ reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
10668
+ permissionMode: z.ZodOptional<z.ZodEnum<["read_only", "workspace_write", "full_access"]>>;
10669
+ status: z.ZodDefault<z.ZodEnum<["unavailable", "idle", "running", "waiting_permission", "error"]>>;
10670
+ archived: z.ZodDefault<z.ZodBoolean>;
10671
+ lastMessagePreview: z.ZodOptional<z.ZodString>;
10672
+ lastActivityAt: z.ZodNumber;
10673
+ createdAt: z.ZodNumber;
10674
+ }, "strip", z.ZodTypeAny, {
10675
+ status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
10676
+ id: string;
10677
+ provider: "claude" | "codex" | "custom";
10678
+ cwd: string;
10679
+ createdAt: number;
10680
+ archived: boolean;
10681
+ lastActivityAt: number;
10682
+ agentSessionId?: string | undefined;
10683
+ model?: string | undefined;
10684
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
10685
+ permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
10686
+ title?: string | undefined;
10687
+ lastMessagePreview?: string | undefined;
10688
+ }, {
10689
+ id: string;
10690
+ cwd: string;
10691
+ createdAt: number;
10692
+ lastActivityAt: number;
10693
+ status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10694
+ provider?: "claude" | "codex" | "custom" | undefined;
10695
+ agentSessionId?: string | undefined;
10696
+ model?: string | undefined;
10697
+ reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
10698
+ permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
10699
+ title?: string | undefined;
10700
+ archived?: boolean | undefined;
10701
+ lastMessagePreview?: string | undefined;
10702
+ }>>;
10703
+ item: z.ZodOptional<z.ZodObject<{
10704
+ id: z.ZodString;
10705
+ conversationId: z.ZodString;
10706
+ type: z.ZodEnum<["message", "tool_call", "plan", "permission", "status", "error"]>;
10707
+ kind: z.ZodOptional<z.ZodEnum<["chat", "thinking", "tool_activity", "command_execution", "file_change", "subagent_action", "plan", "user_input_prompt", "review", "context_compaction"]>>;
10708
+ turnId: z.ZodOptional<z.ZodString>;
10709
+ itemId: z.ZodOptional<z.ZodString>;
10710
+ role: z.ZodOptional<z.ZodEnum<["user", "assistant", "system"]>>;
10711
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{
10712
+ type: z.ZodEnum<["text", "image"]>;
10713
+ text: z.ZodOptional<z.ZodString>;
10714
+ data: z.ZodOptional<z.ZodString>;
10715
+ mimeType: z.ZodOptional<z.ZodString>;
10716
+ }, "strip", z.ZodTypeAny, {
10717
+ type: "text" | "image";
10718
+ data?: string | undefined;
10719
+ text?: string | undefined;
10720
+ mimeType?: string | undefined;
10721
+ }, {
10722
+ type: "text" | "image";
10723
+ data?: string | undefined;
10724
+ text?: string | undefined;
10725
+ mimeType?: string | undefined;
10726
+ }>, "many">>;
10727
+ text: z.ZodOptional<z.ZodString>;
10728
+ toolCall: z.ZodOptional<z.ZodObject<{
10729
+ id: z.ZodString;
10730
+ name: z.ZodString;
10731
+ input: z.ZodOptional<z.ZodString>;
10732
+ output: z.ZodOptional<z.ZodString>;
10733
+ createdAt: z.ZodOptional<z.ZodNumber>;
10734
+ status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
10735
+ }, "strip", z.ZodTypeAny, {
10736
+ status: "running" | "pending" | "completed" | "failed";
10737
+ id: string;
10738
+ name: string;
10739
+ createdAt?: number | undefined;
10740
+ input?: string | undefined;
10741
+ output?: string | undefined;
10742
+ }, {
10743
+ id: string;
10744
+ name: string;
10745
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
10746
+ createdAt?: number | undefined;
10747
+ input?: string | undefined;
10748
+ output?: string | undefined;
10749
+ }>>;
10750
+ commandExecution: z.ZodOptional<z.ZodObject<{
10751
+ command: z.ZodOptional<z.ZodString>;
10752
+ cwd: z.ZodOptional<z.ZodString>;
10753
+ output: z.ZodOptional<z.ZodString>;
10754
+ exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10755
+ status: z.ZodOptional<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
10756
+ }, "strip", z.ZodTypeAny, {
10757
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
10758
+ cwd?: string | undefined;
10759
+ exitCode?: number | null | undefined;
10760
+ output?: string | undefined;
10761
+ command?: string | undefined;
10762
+ }, {
10763
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
10764
+ cwd?: string | undefined;
10765
+ exitCode?: number | null | undefined;
10766
+ output?: string | undefined;
10767
+ command?: string | undefined;
10768
+ }>>;
10769
+ fileChange: z.ZodOptional<z.ZodObject<{
10770
+ entries: z.ZodDefault<z.ZodArray<z.ZodObject<{
10771
+ path: z.ZodString;
10772
+ kind: z.ZodOptional<z.ZodString>;
10773
+ added: z.ZodOptional<z.ZodNumber>;
10774
+ removed: z.ZodOptional<z.ZodNumber>;
10775
+ }, "strip", z.ZodTypeAny, {
10776
+ path: string;
10777
+ kind?: string | undefined;
10778
+ added?: number | undefined;
10779
+ removed?: number | undefined;
10780
+ }, {
10781
+ path: string;
10782
+ kind?: string | undefined;
10783
+ added?: number | undefined;
10784
+ removed?: number | undefined;
10785
+ }>, "many">>;
10786
+ diff: z.ZodOptional<z.ZodString>;
10787
+ summary: z.ZodOptional<z.ZodString>;
10788
+ changeSetId: z.ZodOptional<z.ZodString>;
10789
+ status: z.ZodOptional<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
10790
+ }, "strip", z.ZodTypeAny, {
10791
+ entries: {
10792
+ path: string;
10793
+ kind?: string | undefined;
10794
+ added?: number | undefined;
10795
+ removed?: number | undefined;
10796
+ }[];
10797
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
10798
+ summary?: string | undefined;
10799
+ diff?: string | undefined;
10800
+ changeSetId?: string | undefined;
10801
+ }, {
10802
+ entries?: {
10803
+ path: string;
10804
+ kind?: string | undefined;
10805
+ added?: number | undefined;
10806
+ removed?: number | undefined;
10807
+ }[] | undefined;
10808
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
10809
+ summary?: string | undefined;
10810
+ diff?: string | undefined;
10811
+ changeSetId?: string | undefined;
10812
+ }>>;
10813
+ subagent: z.ZodOptional<z.ZodObject<{
10814
+ tool: z.ZodString;
10815
+ status: z.ZodString;
10816
+ prompt: z.ZodOptional<z.ZodString>;
10817
+ model: z.ZodOptional<z.ZodString>;
10818
+ receiverThreadIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
10819
+ receiverAgents: z.ZodDefault<z.ZodArray<z.ZodObject<{
10820
+ threadId: z.ZodString;
10821
+ agentId: z.ZodOptional<z.ZodString>;
10822
+ nickname: z.ZodOptional<z.ZodString>;
10823
+ role: z.ZodOptional<z.ZodString>;
10824
+ model: z.ZodOptional<z.ZodString>;
10825
+ prompt: z.ZodOptional<z.ZodString>;
10826
+ }, "strip", z.ZodTypeAny, {
10827
+ threadId: string;
10828
+ role?: string | undefined;
10829
+ model?: string | undefined;
10830
+ prompt?: string | undefined;
10831
+ agentId?: string | undefined;
10832
+ nickname?: string | undefined;
10833
+ }, {
10834
+ threadId: string;
10835
+ role?: string | undefined;
10836
+ model?: string | undefined;
10837
+ prompt?: string | undefined;
10838
+ agentId?: string | undefined;
10839
+ nickname?: string | undefined;
10840
+ }>, "many">>;
10841
+ agentStates: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
10842
+ threadId: z.ZodString;
10843
+ status: z.ZodString;
10844
+ message: z.ZodOptional<z.ZodString>;
10845
+ }, "strip", z.ZodTypeAny, {
10846
+ status: string;
10847
+ threadId: string;
10848
+ message?: string | undefined;
10849
+ }, {
10850
+ status: string;
10851
+ threadId: string;
10852
+ message?: string | undefined;
10853
+ }>>>;
10854
+ }, "strip", z.ZodTypeAny, {
10855
+ status: string;
10856
+ tool: string;
10857
+ receiverThreadIds: string[];
10858
+ receiverAgents: {
10859
+ threadId: string;
10860
+ role?: string | undefined;
10861
+ model?: string | undefined;
10862
+ prompt?: string | undefined;
10863
+ agentId?: string | undefined;
10864
+ nickname?: string | undefined;
10865
+ }[];
10866
+ agentStates: Record<string, {
10867
+ status: string;
10868
+ threadId: string;
10869
+ message?: string | undefined;
10870
+ }>;
10871
+ model?: string | undefined;
10872
+ prompt?: string | undefined;
10873
+ }, {
10874
+ status: string;
10875
+ tool: string;
10876
+ model?: string | undefined;
10877
+ prompt?: string | undefined;
10878
+ receiverThreadIds?: string[] | undefined;
10879
+ receiverAgents?: {
10880
+ threadId: string;
10881
+ role?: string | undefined;
10882
+ model?: string | undefined;
10883
+ prompt?: string | undefined;
10884
+ agentId?: string | undefined;
10885
+ nickname?: string | undefined;
10886
+ }[] | undefined;
10887
+ agentStates?: Record<string, {
10888
+ status: string;
10889
+ threadId: string;
10890
+ message?: string | undefined;
10891
+ }> | undefined;
10892
+ }>>;
10893
+ structuredInput: z.ZodOptional<z.ZodObject<{
10894
+ requestId: z.ZodString;
10895
+ questions: z.ZodDefault<z.ZodArray<z.ZodObject<{
10896
+ id: z.ZodString;
10897
+ header: z.ZodOptional<z.ZodString>;
10898
+ question: z.ZodString;
10899
+ isOther: z.ZodOptional<z.ZodBoolean>;
10900
+ isSecret: z.ZodOptional<z.ZodBoolean>;
10901
+ selectionLimit: z.ZodOptional<z.ZodNumber>;
10902
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
10903
+ id: z.ZodString;
10904
+ label: z.ZodString;
10905
+ description: z.ZodOptional<z.ZodString>;
10906
+ }, "strip", z.ZodTypeAny, {
10907
+ id: string;
10908
+ label: string;
10909
+ description?: string | undefined;
10910
+ }, {
10911
+ id: string;
10912
+ label: string;
10913
+ description?: string | undefined;
10914
+ }>, "many">>;
10915
+ }, "strip", z.ZodTypeAny, {
10916
+ id: string;
10917
+ question: string;
10918
+ options?: {
10919
+ id: string;
10920
+ label: string;
10921
+ description?: string | undefined;
10922
+ }[] | undefined;
10923
+ header?: string | undefined;
10924
+ isOther?: boolean | undefined;
10925
+ isSecret?: boolean | undefined;
10926
+ selectionLimit?: number | undefined;
10927
+ }, {
10928
+ id: string;
10929
+ question: string;
10930
+ options?: {
10931
+ id: string;
10932
+ label: string;
10933
+ description?: string | undefined;
10934
+ }[] | undefined;
10935
+ header?: string | undefined;
10936
+ isOther?: boolean | undefined;
10937
+ isSecret?: boolean | undefined;
10938
+ selectionLimit?: number | undefined;
10939
+ }>, "many">>;
10940
+ }, "strip", z.ZodTypeAny, {
10941
+ requestId: string;
10942
+ questions: {
10943
+ id: string;
10944
+ question: string;
10945
+ options?: {
10946
+ id: string;
10947
+ label: string;
10948
+ description?: string | undefined;
10949
+ }[] | undefined;
10950
+ header?: string | undefined;
10951
+ isOther?: boolean | undefined;
10952
+ isSecret?: boolean | undefined;
10953
+ selectionLimit?: number | undefined;
10954
+ }[];
10955
+ }, {
9359
10956
  requestId: string;
9360
10957
  questions?: {
9361
10958
  id: string;
@@ -9370,27 +10967,66 @@ export declare const protocolMessageSchemas: {
9370
10967
  isSecret?: boolean | undefined;
9371
10968
  selectionLimit?: number | undefined;
9372
10969
  }[] | undefined;
9373
- } | undefined;
9374
- metadata?: Record<string, unknown> | undefined;
9375
- updatedAt?: number | undefined;
9376
- }>, "many">>;
9377
- }, "strip", z.ZodTypeAny, {
9378
- conversations: {
9379
- status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
9380
- id: string;
9381
- provider: "claude" | "codex" | "custom";
9382
- cwd: string;
9383
- createdAt: number;
9384
- archived: boolean;
9385
- lastActivityAt: number;
9386
- agentSessionId?: string | undefined;
9387
- model?: string | undefined;
9388
- reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
9389
- permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
9390
- title?: string | undefined;
9391
- lastMessagePreview?: string | undefined;
9392
- }[];
9393
- items: {
10970
+ }>>;
10971
+ plan: z.ZodOptional<z.ZodArray<z.ZodObject<{
10972
+ id: z.ZodString;
10973
+ text: z.ZodString;
10974
+ status: z.ZodEnum<["pending", "in_progress", "completed"]>;
10975
+ }, "strip", z.ZodTypeAny, {
10976
+ status: "pending" | "completed" | "in_progress";
10977
+ id: string;
10978
+ text: string;
10979
+ }, {
10980
+ status: "pending" | "completed" | "in_progress";
10981
+ id: string;
10982
+ text: string;
10983
+ }>, "many">>;
10984
+ permission: z.ZodOptional<z.ZodObject<{
10985
+ requestId: z.ZodString;
10986
+ toolName: z.ZodOptional<z.ZodString>;
10987
+ toolInput: z.ZodOptional<z.ZodString>;
10988
+ context: z.ZodOptional<z.ZodString>;
10989
+ options: z.ZodDefault<z.ZodArray<z.ZodObject<{
10990
+ id: z.ZodString;
10991
+ label: z.ZodString;
10992
+ kind: z.ZodDefault<z.ZodEnum<["allow", "deny", "other"]>>;
10993
+ }, "strip", z.ZodTypeAny, {
10994
+ id: string;
10995
+ label: string;
10996
+ kind: "allow" | "deny" | "other";
10997
+ }, {
10998
+ id: string;
10999
+ label: string;
11000
+ kind?: "allow" | "deny" | "other" | undefined;
11001
+ }>, "many">>;
11002
+ }, "strip", z.ZodTypeAny, {
11003
+ options: {
11004
+ id: string;
11005
+ label: string;
11006
+ kind: "allow" | "deny" | "other";
11007
+ }[];
11008
+ requestId: string;
11009
+ toolName?: string | undefined;
11010
+ toolInput?: string | undefined;
11011
+ context?: string | undefined;
11012
+ }, {
11013
+ requestId: string;
11014
+ options?: {
11015
+ id: string;
11016
+ label: string;
11017
+ kind?: "allow" | "deny" | "other" | undefined;
11018
+ }[] | undefined;
11019
+ toolName?: string | undefined;
11020
+ toolInput?: string | undefined;
11021
+ context?: string | undefined;
11022
+ }>>;
11023
+ status: z.ZodOptional<z.ZodEnum<["unavailable", "idle", "running", "waiting_permission", "error"]>>;
11024
+ error: z.ZodOptional<z.ZodString>;
11025
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11026
+ createdAt: z.ZodNumber;
11027
+ updatedAt: z.ZodOptional<z.ZodNumber>;
11028
+ isStreaming: z.ZodOptional<z.ZodBoolean>;
11029
+ }, "strip", z.ZodTypeAny, {
9394
11030
  type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
9395
11031
  id: string;
9396
11032
  createdAt: number;
@@ -9490,26 +11126,7 @@ export declare const protocolMessageSchemas: {
9490
11126
  } | undefined;
9491
11127
  metadata?: Record<string, unknown> | undefined;
9492
11128
  updatedAt?: number | undefined;
9493
- }[];
9494
- activeConversationId?: string | undefined;
9495
- }, {
9496
- conversations?: {
9497
- id: string;
9498
- cwd: string;
9499
- createdAt: number;
9500
- lastActivityAt: number;
9501
- status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
9502
- provider?: "claude" | "codex" | "custom" | undefined;
9503
- agentSessionId?: string | undefined;
9504
- model?: string | undefined;
9505
- reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
9506
- permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
9507
- title?: string | undefined;
9508
- archived?: boolean | undefined;
9509
- lastMessagePreview?: string | undefined;
9510
- }[] | undefined;
9511
- activeConversationId?: string | undefined;
9512
- items?: {
11129
+ }, {
9513
11130
  type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
9514
11131
  id: string;
9515
11132
  createdAt: number;
@@ -9600,69 +11217,19 @@ export declare const protocolMessageSchemas: {
9600
11217
  id: string;
9601
11218
  label: string;
9602
11219
  description?: string | undefined;
9603
- }[] | undefined;
9604
- header?: string | undefined;
9605
- isOther?: boolean | undefined;
9606
- isSecret?: boolean | undefined;
9607
- selectionLimit?: number | undefined;
9608
- }[] | undefined;
9609
- } | undefined;
9610
- metadata?: Record<string, unknown> | undefined;
9611
- updatedAt?: number | undefined;
9612
- }[] | undefined;
9613
- }>;
9614
- readonly "agent.v2.event": z.ZodObject<{
9615
- conversationId: z.ZodString;
9616
- conversation: z.ZodOptional<z.ZodObject<{
9617
- id: z.ZodString;
9618
- agentSessionId: z.ZodOptional<z.ZodString>;
9619
- provider: z.ZodDefault<z.ZodEnum<["codex", "claude", "custom"]>>;
9620
- cwd: z.ZodString;
9621
- title: z.ZodOptional<z.ZodString>;
9622
- model: z.ZodOptional<z.ZodString>;
9623
- reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh"]>>;
9624
- permissionMode: z.ZodOptional<z.ZodEnum<["read_only", "workspace_write", "full_access"]>>;
9625
- status: z.ZodDefault<z.ZodEnum<["unavailable", "idle", "running", "waiting_permission", "error"]>>;
9626
- archived: z.ZodDefault<z.ZodBoolean>;
9627
- lastMessagePreview: z.ZodOptional<z.ZodString>;
9628
- lastActivityAt: z.ZodNumber;
9629
- createdAt: z.ZodNumber;
9630
- }, "strip", z.ZodTypeAny, {
9631
- status: "error" | "running" | "idle" | "waiting_permission" | "unavailable";
9632
- id: string;
9633
- provider: "claude" | "codex" | "custom";
9634
- cwd: string;
9635
- createdAt: number;
9636
- archived: boolean;
9637
- lastActivityAt: number;
9638
- agentSessionId?: string | undefined;
9639
- model?: string | undefined;
9640
- reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
9641
- permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
9642
- title?: string | undefined;
9643
- lastMessagePreview?: string | undefined;
9644
- }, {
9645
- id: string;
9646
- cwd: string;
9647
- createdAt: number;
9648
- lastActivityAt: number;
9649
- status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
9650
- provider?: "claude" | "codex" | "custom" | undefined;
9651
- agentSessionId?: string | undefined;
9652
- model?: string | undefined;
9653
- reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
9654
- permissionMode?: "read_only" | "workspace_write" | "full_access" | undefined;
9655
- title?: string | undefined;
9656
- archived?: boolean | undefined;
9657
- lastMessagePreview?: string | undefined;
11220
+ }[] | undefined;
11221
+ header?: string | undefined;
11222
+ isOther?: boolean | undefined;
11223
+ isSecret?: boolean | undefined;
11224
+ selectionLimit?: number | undefined;
11225
+ }[] | undefined;
11226
+ } | undefined;
11227
+ metadata?: Record<string, unknown> | undefined;
11228
+ updatedAt?: number | undefined;
9658
11229
  }>>;
9659
- item: z.ZodOptional<z.ZodObject<{
9660
- id: z.ZodString;
9661
- conversationId: z.ZodString;
9662
- type: z.ZodEnum<["message", "tool_call", "plan", "permission", "status", "error"]>;
11230
+ patch: z.ZodOptional<z.ZodObject<{
11231
+ itemId: z.ZodString;
9663
11232
  kind: z.ZodOptional<z.ZodEnum<["chat", "thinking", "tool_activity", "command_execution", "file_change", "subagent_action", "plan", "user_input_prompt", "review", "context_compaction"]>>;
9664
- turnId: z.ZodOptional<z.ZodString>;
9665
- itemId: z.ZodOptional<z.ZodString>;
9666
11233
  role: z.ZodOptional<z.ZodEnum<["user", "assistant", "system"]>>;
9667
11234
  content: z.ZodOptional<z.ZodArray<z.ZodObject<{
9668
11235
  type: z.ZodEnum<["text", "image"]>;
@@ -9681,6 +11248,8 @@ export declare const protocolMessageSchemas: {
9681
11248
  mimeType?: string | undefined;
9682
11249
  }>, "many">>;
9683
11250
  text: z.ZodOptional<z.ZodString>;
11251
+ textDelta: z.ZodOptional<z.ZodString>;
11252
+ status: z.ZodOptional<z.ZodEnum<["unavailable", "idle", "running", "waiting_permission", "error"]>>;
9684
11253
  toolCall: z.ZodOptional<z.ZodObject<{
9685
11254
  id: z.ZodString;
9686
11255
  name: z.ZodString;
@@ -9976,17 +11545,12 @@ export declare const protocolMessageSchemas: {
9976
11545
  toolInput?: string | undefined;
9977
11546
  context?: string | undefined;
9978
11547
  }>>;
9979
- status: z.ZodOptional<z.ZodEnum<["unavailable", "idle", "running", "waiting_permission", "error"]>>;
9980
11548
  error: z.ZodOptional<z.ZodString>;
9981
11549
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
9982
- createdAt: z.ZodNumber;
9983
11550
  updatedAt: z.ZodOptional<z.ZodNumber>;
9984
11551
  isStreaming: z.ZodOptional<z.ZodBoolean>;
9985
11552
  }, "strip", z.ZodTypeAny, {
9986
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
9987
- id: string;
9988
- createdAt: number;
9989
- conversationId: string;
11553
+ itemId: string;
9990
11554
  error?: string | undefined;
9991
11555
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
9992
11556
  role?: "user" | "assistant" | "system" | undefined;
@@ -10023,8 +11587,6 @@ export declare const protocolMessageSchemas: {
10023
11587
  toolInput?: string | undefined;
10024
11588
  context?: string | undefined;
10025
11589
  } | undefined;
10026
- turnId?: string | undefined;
10027
- itemId?: string | undefined;
10028
11590
  commandExecution?: {
10029
11591
  status?: "running" | "pending" | "completed" | "failed" | undefined;
10030
11592
  cwd?: string | undefined;
@@ -10082,11 +11644,9 @@ export declare const protocolMessageSchemas: {
10082
11644
  } | undefined;
10083
11645
  metadata?: Record<string, unknown> | undefined;
10084
11646
  updatedAt?: number | undefined;
11647
+ textDelta?: string | undefined;
10085
11648
  }, {
10086
- type: "error" | "message" | "status" | "tool_call" | "plan" | "permission";
10087
- id: string;
10088
- createdAt: number;
10089
- conversationId: string;
11649
+ itemId: string;
10090
11650
  error?: string | undefined;
10091
11651
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10092
11652
  role?: "user" | "assistant" | "system" | undefined;
@@ -10123,8 +11683,6 @@ export declare const protocolMessageSchemas: {
10123
11683
  toolInput?: string | undefined;
10124
11684
  context?: string | undefined;
10125
11685
  } | undefined;
10126
- turnId?: string | undefined;
10127
- itemId?: string | undefined;
10128
11686
  commandExecution?: {
10129
11687
  status?: "running" | "pending" | "completed" | "failed" | undefined;
10130
11688
  cwd?: string | undefined;
@@ -10182,62 +11740,6 @@ export declare const protocolMessageSchemas: {
10182
11740
  } | undefined;
10183
11741
  metadata?: Record<string, unknown> | undefined;
10184
11742
  updatedAt?: number | undefined;
10185
- }>>;
10186
- patch: z.ZodOptional<z.ZodObject<{
10187
- itemId: z.ZodString;
10188
- textDelta: z.ZodOptional<z.ZodString>;
10189
- status: z.ZodOptional<z.ZodEnum<["unavailable", "idle", "running", "waiting_permission", "error"]>>;
10190
- toolCall: z.ZodOptional<z.ZodObject<{
10191
- id: z.ZodString;
10192
- name: z.ZodString;
10193
- input: z.ZodOptional<z.ZodString>;
10194
- output: z.ZodOptional<z.ZodString>;
10195
- createdAt: z.ZodOptional<z.ZodNumber>;
10196
- status: z.ZodDefault<z.ZodEnum<["pending", "running", "completed", "failed"]>>;
10197
- }, "strip", z.ZodTypeAny, {
10198
- status: "running" | "pending" | "completed" | "failed";
10199
- id: string;
10200
- name: string;
10201
- createdAt?: number | undefined;
10202
- input?: string | undefined;
10203
- output?: string | undefined;
10204
- }, {
10205
- id: string;
10206
- name: string;
10207
- status?: "running" | "pending" | "completed" | "failed" | undefined;
10208
- createdAt?: number | undefined;
10209
- input?: string | undefined;
10210
- output?: string | undefined;
10211
- }>>;
10212
- updatedAt: z.ZodOptional<z.ZodNumber>;
10213
- isStreaming: z.ZodOptional<z.ZodBoolean>;
10214
- }, "strip", z.ZodTypeAny, {
10215
- itemId: string;
10216
- status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10217
- isStreaming?: boolean | undefined;
10218
- toolCall?: {
10219
- status: "running" | "pending" | "completed" | "failed";
10220
- id: string;
10221
- name: string;
10222
- createdAt?: number | undefined;
10223
- input?: string | undefined;
10224
- output?: string | undefined;
10225
- } | undefined;
10226
- updatedAt?: number | undefined;
10227
- textDelta?: string | undefined;
10228
- }, {
10229
- itemId: string;
10230
- status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
10231
- isStreaming?: boolean | undefined;
10232
- toolCall?: {
10233
- id: string;
10234
- name: string;
10235
- status?: "running" | "pending" | "completed" | "failed" | undefined;
10236
- createdAt?: number | undefined;
10237
- input?: string | undefined;
10238
- output?: string | undefined;
10239
- } | undefined;
10240
- updatedAt?: number | undefined;
10241
11743
  textDelta?: string | undefined;
10242
11744
  }>>;
10243
11745
  }, "strip", z.ZodTypeAny, {
@@ -10360,7 +11862,22 @@ export declare const protocolMessageSchemas: {
10360
11862
  } | undefined;
10361
11863
  patch?: {
10362
11864
  itemId: string;
11865
+ error?: string | undefined;
10363
11866
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
11867
+ role?: "user" | "assistant" | "system" | undefined;
11868
+ text?: string | undefined;
11869
+ kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
11870
+ plan?: {
11871
+ status: "pending" | "completed" | "in_progress";
11872
+ id: string;
11873
+ text: string;
11874
+ }[] | undefined;
11875
+ content?: {
11876
+ type: "text" | "image";
11877
+ data?: string | undefined;
11878
+ text?: string | undefined;
11879
+ mimeType?: string | undefined;
11880
+ }[] | undefined;
10364
11881
  isStreaming?: boolean | undefined;
10365
11882
  toolCall?: {
10366
11883
  status: "running" | "pending" | "completed" | "failed";
@@ -10370,6 +11887,73 @@ export declare const protocolMessageSchemas: {
10370
11887
  input?: string | undefined;
10371
11888
  output?: string | undefined;
10372
11889
  } | undefined;
11890
+ permission?: {
11891
+ options: {
11892
+ id: string;
11893
+ label: string;
11894
+ kind: "allow" | "deny" | "other";
11895
+ }[];
11896
+ requestId: string;
11897
+ toolName?: string | undefined;
11898
+ toolInput?: string | undefined;
11899
+ context?: string | undefined;
11900
+ } | undefined;
11901
+ commandExecution?: {
11902
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
11903
+ cwd?: string | undefined;
11904
+ exitCode?: number | null | undefined;
11905
+ output?: string | undefined;
11906
+ command?: string | undefined;
11907
+ } | undefined;
11908
+ fileChange?: {
11909
+ entries: {
11910
+ path: string;
11911
+ kind?: string | undefined;
11912
+ added?: number | undefined;
11913
+ removed?: number | undefined;
11914
+ }[];
11915
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
11916
+ summary?: string | undefined;
11917
+ diff?: string | undefined;
11918
+ changeSetId?: string | undefined;
11919
+ } | undefined;
11920
+ subagent?: {
11921
+ status: string;
11922
+ tool: string;
11923
+ receiverThreadIds: string[];
11924
+ receiverAgents: {
11925
+ threadId: string;
11926
+ role?: string | undefined;
11927
+ model?: string | undefined;
11928
+ prompt?: string | undefined;
11929
+ agentId?: string | undefined;
11930
+ nickname?: string | undefined;
11931
+ }[];
11932
+ agentStates: Record<string, {
11933
+ status: string;
11934
+ threadId: string;
11935
+ message?: string | undefined;
11936
+ }>;
11937
+ model?: string | undefined;
11938
+ prompt?: string | undefined;
11939
+ } | undefined;
11940
+ structuredInput?: {
11941
+ requestId: string;
11942
+ questions: {
11943
+ id: string;
11944
+ question: string;
11945
+ options?: {
11946
+ id: string;
11947
+ label: string;
11948
+ description?: string | undefined;
11949
+ }[] | undefined;
11950
+ header?: string | undefined;
11951
+ isOther?: boolean | undefined;
11952
+ isSecret?: boolean | undefined;
11953
+ selectionLimit?: number | undefined;
11954
+ }[];
11955
+ } | undefined;
11956
+ metadata?: Record<string, unknown> | undefined;
10373
11957
  updatedAt?: number | undefined;
10374
11958
  textDelta?: string | undefined;
10375
11959
  } | undefined;
@@ -10493,7 +12077,22 @@ export declare const protocolMessageSchemas: {
10493
12077
  } | undefined;
10494
12078
  patch?: {
10495
12079
  itemId: string;
12080
+ error?: string | undefined;
10496
12081
  status?: "error" | "running" | "idle" | "waiting_permission" | "unavailable" | undefined;
12082
+ role?: "user" | "assistant" | "system" | undefined;
12083
+ text?: string | undefined;
12084
+ kind?: "thinking" | "plan" | "chat" | "tool_activity" | "command_execution" | "file_change" | "subagent_action" | "user_input_prompt" | "review" | "context_compaction" | undefined;
12085
+ plan?: {
12086
+ status: "pending" | "completed" | "in_progress";
12087
+ id: string;
12088
+ text: string;
12089
+ }[] | undefined;
12090
+ content?: {
12091
+ type: "text" | "image";
12092
+ data?: string | undefined;
12093
+ text?: string | undefined;
12094
+ mimeType?: string | undefined;
12095
+ }[] | undefined;
10497
12096
  isStreaming?: boolean | undefined;
10498
12097
  toolCall?: {
10499
12098
  id: string;
@@ -10503,6 +12102,73 @@ export declare const protocolMessageSchemas: {
10503
12102
  input?: string | undefined;
10504
12103
  output?: string | undefined;
10505
12104
  } | undefined;
12105
+ permission?: {
12106
+ requestId: string;
12107
+ options?: {
12108
+ id: string;
12109
+ label: string;
12110
+ kind?: "allow" | "deny" | "other" | undefined;
12111
+ }[] | undefined;
12112
+ toolName?: string | undefined;
12113
+ toolInput?: string | undefined;
12114
+ context?: string | undefined;
12115
+ } | undefined;
12116
+ commandExecution?: {
12117
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
12118
+ cwd?: string | undefined;
12119
+ exitCode?: number | null | undefined;
12120
+ output?: string | undefined;
12121
+ command?: string | undefined;
12122
+ } | undefined;
12123
+ fileChange?: {
12124
+ entries?: {
12125
+ path: string;
12126
+ kind?: string | undefined;
12127
+ added?: number | undefined;
12128
+ removed?: number | undefined;
12129
+ }[] | undefined;
12130
+ status?: "running" | "pending" | "completed" | "failed" | undefined;
12131
+ summary?: string | undefined;
12132
+ diff?: string | undefined;
12133
+ changeSetId?: string | undefined;
12134
+ } | undefined;
12135
+ subagent?: {
12136
+ status: string;
12137
+ tool: string;
12138
+ model?: string | undefined;
12139
+ prompt?: string | undefined;
12140
+ receiverThreadIds?: string[] | undefined;
12141
+ receiverAgents?: {
12142
+ threadId: string;
12143
+ role?: string | undefined;
12144
+ model?: string | undefined;
12145
+ prompt?: string | undefined;
12146
+ agentId?: string | undefined;
12147
+ nickname?: string | undefined;
12148
+ }[] | undefined;
12149
+ agentStates?: Record<string, {
12150
+ status: string;
12151
+ threadId: string;
12152
+ message?: string | undefined;
12153
+ }> | undefined;
12154
+ } | undefined;
12155
+ structuredInput?: {
12156
+ requestId: string;
12157
+ questions?: {
12158
+ id: string;
12159
+ question: string;
12160
+ options?: {
12161
+ id: string;
12162
+ label: string;
12163
+ description?: string | undefined;
12164
+ }[] | undefined;
12165
+ header?: string | undefined;
12166
+ isOther?: boolean | undefined;
12167
+ isSecret?: boolean | undefined;
12168
+ selectionLimit?: number | undefined;
12169
+ }[] | undefined;
12170
+ } | undefined;
12171
+ metadata?: Record<string, unknown> | undefined;
10506
12172
  updatedAt?: number | undefined;
10507
12173
  textDelta?: string | undefined;
10508
12174
  } | undefined;