@myagentroam/protocol 0.1.7 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  export * from './enterprise.js';
3
+ export * from './skill.js';
4
+ export * from './mcp.js';
3
5
  export declare const healthStatusSchema: z.ZodObject<{
4
6
  status: z.ZodLiteral<"ok">;
5
7
  }, "strip", z.ZodTypeAny, {
@@ -22,6 +24,26 @@ export declare const runnerAvailabilitySchema: z.ZodObject<{
22
24
  available: boolean;
23
25
  version?: string | undefined;
24
26
  }>;
27
+ export declare const runtimeCommandSchema: z.ZodObject<{
28
+ id: z.ZodEnum<["npx", "git", "python", "pip"]>;
29
+ command: z.ZodString;
30
+ available: z.ZodBoolean;
31
+ version: z.ZodOptional<z.ZodString>;
32
+ path: z.ZodOptional<z.ZodString>;
33
+ }, "strict", z.ZodTypeAny, {
34
+ id: "npx" | "git" | "python" | "pip";
35
+ command: string;
36
+ available: boolean;
37
+ path?: string | undefined;
38
+ version?: string | undefined;
39
+ }, {
40
+ id: "npx" | "git" | "python" | "pip";
41
+ command: string;
42
+ available: boolean;
43
+ path?: string | undefined;
44
+ version?: string | undefined;
45
+ }>;
46
+ export type RuntimeCommand = z.infer<typeof runtimeCommandSchema>;
25
47
  export declare const nodeUpgradeStatusSchema: z.ZodObject<{
26
48
  state: z.ZodEnum<["IDLE", "WAITING_FOR_RUNS", "READY_TO_RESTART", "FAILED"]>;
27
49
  targetVersion: z.ZodOptional<z.ZodString>;
@@ -79,6 +101,25 @@ export declare const nodeMetadataSchema: z.ZodOptional<z.ZodObject<{
79
101
  available: boolean;
80
102
  version?: string | undefined;
81
103
  }>>>;
104
+ runtimeCommands: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
105
+ id: z.ZodEnum<["npx", "git", "python", "pip"]>;
106
+ command: z.ZodString;
107
+ available: z.ZodBoolean;
108
+ version: z.ZodOptional<z.ZodString>;
109
+ path: z.ZodOptional<z.ZodString>;
110
+ }, "strict", z.ZodTypeAny, {
111
+ id: "npx" | "git" | "python" | "pip";
112
+ command: string;
113
+ available: boolean;
114
+ path?: string | undefined;
115
+ version?: string | undefined;
116
+ }, {
117
+ id: "npx" | "git" | "python" | "pip";
118
+ command: string;
119
+ available: boolean;
120
+ path?: string | undefined;
121
+ version?: string | undefined;
122
+ }>, "many">>>;
82
123
  supervisedUpgrade: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
83
124
  upgrade: z.ZodOptional<z.ZodOptional<z.ZodObject<{
84
125
  state: z.ZodEnum<["IDLE", "WAITING_FOR_RUNS", "READY_TO_RESTART", "FAILED"]>;
@@ -118,6 +159,13 @@ export declare const nodeMetadataSchema: z.ZodOptional<z.ZodObject<{
118
159
  available: boolean;
119
160
  version?: string | undefined;
120
161
  } | undefined;
162
+ runtimeCommands?: {
163
+ id: "npx" | "git" | "python" | "pip";
164
+ command: string;
165
+ available: boolean;
166
+ path?: string | undefined;
167
+ version?: string | undefined;
168
+ }[] | undefined;
121
169
  supervisedUpgrade?: boolean | undefined;
122
170
  upgrade?: {
123
171
  updatedAt: number;
@@ -145,6 +193,13 @@ export declare const nodeMetadataSchema: z.ZodOptional<z.ZodObject<{
145
193
  available: boolean;
146
194
  version?: string | undefined;
147
195
  } | undefined;
196
+ runtimeCommands?: {
197
+ id: "npx" | "git" | "python" | "pip";
198
+ command: string;
199
+ available: boolean;
200
+ path?: string | undefined;
201
+ version?: string | undefined;
202
+ }[] | undefined;
148
203
  supervisedUpgrade?: boolean | undefined;
149
204
  upgrade?: {
150
205
  updatedAt: number;
@@ -196,6 +251,25 @@ export declare const nodeCapabilitiesSchema: z.ZodObject<{
196
251
  available: boolean;
197
252
  version?: string | undefined;
198
253
  }>>>;
254
+ runtimeCommands: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
255
+ id: z.ZodEnum<["npx", "git", "python", "pip"]>;
256
+ command: z.ZodString;
257
+ available: z.ZodBoolean;
258
+ version: z.ZodOptional<z.ZodString>;
259
+ path: z.ZodOptional<z.ZodString>;
260
+ }, "strict", z.ZodTypeAny, {
261
+ id: "npx" | "git" | "python" | "pip";
262
+ command: string;
263
+ available: boolean;
264
+ path?: string | undefined;
265
+ version?: string | undefined;
266
+ }, {
267
+ id: "npx" | "git" | "python" | "pip";
268
+ command: string;
269
+ available: boolean;
270
+ path?: string | undefined;
271
+ version?: string | undefined;
272
+ }>, "many">>>;
199
273
  supervisedUpgrade: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
200
274
  upgrade: z.ZodOptional<z.ZodOptional<z.ZodObject<{
201
275
  state: z.ZodEnum<["IDLE", "WAITING_FOR_RUNS", "READY_TO_RESTART", "FAILED"]>;
@@ -235,6 +309,13 @@ export declare const nodeCapabilitiesSchema: z.ZodObject<{
235
309
  available: boolean;
236
310
  version?: string | undefined;
237
311
  } | undefined;
312
+ runtimeCommands?: {
313
+ id: "npx" | "git" | "python" | "pip";
314
+ command: string;
315
+ available: boolean;
316
+ path?: string | undefined;
317
+ version?: string | undefined;
318
+ }[] | undefined;
238
319
  supervisedUpgrade?: boolean | undefined;
239
320
  upgrade?: {
240
321
  updatedAt: number;
@@ -262,6 +343,13 @@ export declare const nodeCapabilitiesSchema: z.ZodObject<{
262
343
  available: boolean;
263
344
  version?: string | undefined;
264
345
  } | undefined;
346
+ runtimeCommands?: {
347
+ id: "npx" | "git" | "python" | "pip";
348
+ command: string;
349
+ available: boolean;
350
+ path?: string | undefined;
351
+ version?: string | undefined;
352
+ }[] | undefined;
265
353
  supervisedUpgrade?: boolean | undefined;
266
354
  upgrade?: {
267
355
  updatedAt: number;
@@ -332,6 +420,13 @@ export declare const nodeCapabilitiesSchema: z.ZodObject<{
332
420
  available: boolean;
333
421
  version?: string | undefined;
334
422
  } | undefined;
423
+ runtimeCommands?: {
424
+ id: "npx" | "git" | "python" | "pip";
425
+ command: string;
426
+ available: boolean;
427
+ path?: string | undefined;
428
+ version?: string | undefined;
429
+ }[] | undefined;
335
430
  supervisedUpgrade?: boolean | undefined;
336
431
  upgrade?: {
337
432
  updatedAt: number;
@@ -377,6 +472,13 @@ export declare const nodeCapabilitiesSchema: z.ZodObject<{
377
472
  available: boolean;
378
473
  version?: string | undefined;
379
474
  } | undefined;
475
+ runtimeCommands?: {
476
+ id: "npx" | "git" | "python" | "pip";
477
+ command: string;
478
+ available: boolean;
479
+ path?: string | undefined;
480
+ version?: string | undefined;
481
+ }[] | undefined;
380
482
  supervisedUpgrade?: boolean | undefined;
381
483
  upgrade?: {
382
484
  updatedAt: number;
@@ -785,44 +887,44 @@ export declare const runnerCommandDescriptorSchema: z.ZodEffects<z.ZodObject<{
785
887
  reasonCode: z.ZodNullable<z.ZodString>;
786
888
  }, "strip", z.ZodTypeAny, {
787
889
  id: string;
890
+ description: string;
788
891
  available: boolean;
789
892
  runner: "codex" | "claude-code" | "opencode";
790
893
  reasonCode: string | null;
791
894
  label: string;
792
- description: string;
793
895
  inputHint: string;
794
896
  source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER";
795
897
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "TOGGLE" | "VALUE";
796
898
  stateLabel?: string | undefined;
797
899
  }, {
798
900
  id: string;
901
+ description: string;
799
902
  available: boolean;
800
903
  runner: "codex" | "claude-code" | "opencode";
801
904
  reasonCode: string | null;
802
905
  label: string;
803
- description: string;
804
906
  inputHint: string;
805
907
  source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER";
806
908
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "TOGGLE" | "VALUE";
807
909
  stateLabel?: string | undefined;
808
910
  }>, {
809
911
  id: string;
912
+ description: string;
810
913
  available: boolean;
811
914
  runner: "codex" | "claude-code" | "opencode";
812
915
  reasonCode: string | null;
813
916
  label: string;
814
- description: string;
815
917
  inputHint: string;
816
918
  source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER";
817
919
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "TOGGLE" | "VALUE";
818
920
  stateLabel?: string | undefined;
819
921
  }, {
820
922
  id: string;
923
+ description: string;
821
924
  available: boolean;
822
925
  runner: "codex" | "claude-code" | "opencode";
823
926
  reasonCode: string | null;
824
927
  label: string;
825
- description: string;
826
928
  inputHint: string;
827
929
  source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER";
828
930
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "TOGGLE" | "VALUE";
@@ -877,14 +979,20 @@ export declare const runnerProfileSchema: z.ZodObject<{
877
979
  id: z.ZodString;
878
980
  label: z.ZodString;
879
981
  supportedEfforts: z.ZodArray<z.ZodString, "many">;
982
+ isDefault: z.ZodOptional<z.ZodBoolean>;
983
+ defaultEffort: z.ZodOptional<z.ZodString>;
880
984
  }, "strip", z.ZodTypeAny, {
881
985
  id: string;
882
986
  label: string;
883
987
  supportedEfforts: string[];
988
+ isDefault?: boolean | undefined;
989
+ defaultEffort?: string | undefined;
884
990
  }, {
885
991
  id: string;
886
992
  label: string;
887
993
  supportedEfforts: string[];
994
+ isDefault?: boolean | undefined;
995
+ defaultEffort?: string | undefined;
888
996
  }>, "many">;
889
997
  accessOptions: z.ZodArray<z.ZodObject<{
890
998
  id: z.ZodString;
@@ -892,12 +1000,12 @@ export declare const runnerProfileSchema: z.ZodObject<{
892
1000
  description: z.ZodString;
893
1001
  }, "strip", z.ZodTypeAny, {
894
1002
  id: string;
895
- label: string;
896
1003
  description: string;
1004
+ label: string;
897
1005
  }, {
898
1006
  id: string;
899
- label: string;
900
1007
  description: string;
1008
+ label: string;
901
1009
  }>, "many">;
902
1010
  commands: z.ZodArray<z.ZodEffects<z.ZodObject<{
903
1011
  id: z.ZodString;
@@ -913,44 +1021,44 @@ export declare const runnerProfileSchema: z.ZodObject<{
913
1021
  reasonCode: z.ZodNullable<z.ZodString>;
914
1022
  }, "strip", z.ZodTypeAny, {
915
1023
  id: string;
1024
+ description: string;
916
1025
  available: boolean;
917
1026
  runner: "codex" | "claude-code" | "opencode";
918
1027
  reasonCode: string | null;
919
1028
  label: string;
920
- description: string;
921
1029
  inputHint: string;
922
1030
  source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER";
923
1031
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "TOGGLE" | "VALUE";
924
1032
  stateLabel?: string | undefined;
925
1033
  }, {
926
1034
  id: string;
1035
+ description: string;
927
1036
  available: boolean;
928
1037
  runner: "codex" | "claude-code" | "opencode";
929
1038
  reasonCode: string | null;
930
1039
  label: string;
931
- description: string;
932
1040
  inputHint: string;
933
1041
  source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER";
934
1042
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "TOGGLE" | "VALUE";
935
1043
  stateLabel?: string | undefined;
936
1044
  }>, {
937
1045
  id: string;
1046
+ description: string;
938
1047
  available: boolean;
939
1048
  runner: "codex" | "claude-code" | "opencode";
940
1049
  reasonCode: string | null;
941
1050
  label: string;
942
- description: string;
943
1051
  inputHint: string;
944
1052
  source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER";
945
1053
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "TOGGLE" | "VALUE";
946
1054
  stateLabel?: string | undefined;
947
1055
  }, {
948
1056
  id: string;
1057
+ description: string;
949
1058
  available: boolean;
950
1059
  runner: "codex" | "claude-code" | "opencode";
951
1060
  reasonCode: string | null;
952
1061
  label: string;
953
- description: string;
954
1062
  inputHint: string;
955
1063
  source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER";
956
1064
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "TOGGLE" | "VALUE";
@@ -964,19 +1072,21 @@ export declare const runnerProfileSchema: z.ZodObject<{
964
1072
  id: string;
965
1073
  label: string;
966
1074
  supportedEfforts: string[];
1075
+ isDefault?: boolean | undefined;
1076
+ defaultEffort?: string | undefined;
967
1077
  }[];
968
1078
  accessOptions: {
969
1079
  id: string;
970
- label: string;
971
1080
  description: string;
1081
+ label: string;
972
1082
  }[];
973
1083
  commands: {
974
1084
  id: string;
1085
+ description: string;
975
1086
  available: boolean;
976
1087
  runner: "codex" | "claude-code" | "opencode";
977
1088
  reasonCode: string | null;
978
1089
  label: string;
979
- description: string;
980
1090
  inputHint: string;
981
1091
  source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER";
982
1092
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "TOGGLE" | "VALUE";
@@ -989,19 +1099,21 @@ export declare const runnerProfileSchema: z.ZodObject<{
989
1099
  id: string;
990
1100
  label: string;
991
1101
  supportedEfforts: string[];
1102
+ isDefault?: boolean | undefined;
1103
+ defaultEffort?: string | undefined;
992
1104
  }[];
993
1105
  accessOptions: {
994
1106
  id: string;
995
- label: string;
996
1107
  description: string;
1108
+ label: string;
997
1109
  }[];
998
1110
  commands: {
999
1111
  id: string;
1112
+ description: string;
1000
1113
  available: boolean;
1001
1114
  runner: "codex" | "claude-code" | "opencode";
1002
1115
  reasonCode: string | null;
1003
1116
  label: string;
1004
- description: string;
1005
1117
  inputHint: string;
1006
1118
  source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER";
1007
1119
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "TOGGLE" | "VALUE";
@@ -1117,14 +1229,20 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
1117
1229
  id: z.ZodString;
1118
1230
  label: z.ZodString;
1119
1231
  supportedEfforts: z.ZodArray<z.ZodString, "many">;
1232
+ isDefault: z.ZodOptional<z.ZodBoolean>;
1233
+ defaultEffort: z.ZodOptional<z.ZodString>;
1120
1234
  }, "strip", z.ZodTypeAny, {
1121
1235
  id: string;
1122
1236
  label: string;
1123
1237
  supportedEfforts: string[];
1238
+ isDefault?: boolean | undefined;
1239
+ defaultEffort?: string | undefined;
1124
1240
  }, {
1125
1241
  id: string;
1126
1242
  label: string;
1127
1243
  supportedEfforts: string[];
1244
+ isDefault?: boolean | undefined;
1245
+ defaultEffort?: string | undefined;
1128
1246
  }>, "many">;
1129
1247
  accessOptions: z.ZodArray<z.ZodObject<{
1130
1248
  id: z.ZodString;
@@ -1132,12 +1250,12 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
1132
1250
  description: z.ZodString;
1133
1251
  }, "strip", z.ZodTypeAny, {
1134
1252
  id: string;
1135
- label: string;
1136
1253
  description: string;
1254
+ label: string;
1137
1255
  }, {
1138
1256
  id: string;
1139
- label: string;
1140
1257
  description: string;
1258
+ label: string;
1141
1259
  }>, "many">;
1142
1260
  commands: z.ZodArray<z.ZodEffects<z.ZodObject<{
1143
1261
  id: z.ZodString;
@@ -1153,44 +1271,44 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
1153
1271
  reasonCode: z.ZodNullable<z.ZodString>;
1154
1272
  }, "strip", z.ZodTypeAny, {
1155
1273
  id: string;
1274
+ description: string;
1156
1275
  available: boolean;
1157
1276
  runner: "codex" | "claude-code" | "opencode";
1158
1277
  reasonCode: string | null;
1159
1278
  label: string;
1160
- description: string;
1161
1279
  inputHint: string;
1162
1280
  source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER";
1163
1281
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "TOGGLE" | "VALUE";
1164
1282
  stateLabel?: string | undefined;
1165
1283
  }, {
1166
1284
  id: string;
1285
+ description: string;
1167
1286
  available: boolean;
1168
1287
  runner: "codex" | "claude-code" | "opencode";
1169
1288
  reasonCode: string | null;
1170
1289
  label: string;
1171
- description: string;
1172
1290
  inputHint: string;
1173
1291
  source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER";
1174
1292
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "TOGGLE" | "VALUE";
1175
1293
  stateLabel?: string | undefined;
1176
1294
  }>, {
1177
1295
  id: string;
1296
+ description: string;
1178
1297
  available: boolean;
1179
1298
  runner: "codex" | "claude-code" | "opencode";
1180
1299
  reasonCode: string | null;
1181
1300
  label: string;
1182
- description: string;
1183
1301
  inputHint: string;
1184
1302
  source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER";
1185
1303
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "TOGGLE" | "VALUE";
1186
1304
  stateLabel?: string | undefined;
1187
1305
  }, {
1188
1306
  id: string;
1307
+ description: string;
1189
1308
  available: boolean;
1190
1309
  runner: "codex" | "claude-code" | "opencode";
1191
1310
  reasonCode: string | null;
1192
1311
  label: string;
1193
- description: string;
1194
1312
  inputHint: string;
1195
1313
  source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER";
1196
1314
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "TOGGLE" | "VALUE";
@@ -1204,19 +1322,21 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
1204
1322
  id: string;
1205
1323
  label: string;
1206
1324
  supportedEfforts: string[];
1325
+ isDefault?: boolean | undefined;
1326
+ defaultEffort?: string | undefined;
1207
1327
  }[];
1208
1328
  accessOptions: {
1209
1329
  id: string;
1210
- label: string;
1211
1330
  description: string;
1331
+ label: string;
1212
1332
  }[];
1213
1333
  commands: {
1214
1334
  id: string;
1335
+ description: string;
1215
1336
  available: boolean;
1216
1337
  runner: "codex" | "claude-code" | "opencode";
1217
1338
  reasonCode: string | null;
1218
1339
  label: string;
1219
- description: string;
1220
1340
  inputHint: string;
1221
1341
  source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER";
1222
1342
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "TOGGLE" | "VALUE";
@@ -1229,19 +1349,21 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
1229
1349
  id: string;
1230
1350
  label: string;
1231
1351
  supportedEfforts: string[];
1352
+ isDefault?: boolean | undefined;
1353
+ defaultEffort?: string | undefined;
1232
1354
  }[];
1233
1355
  accessOptions: {
1234
1356
  id: string;
1235
- label: string;
1236
1357
  description: string;
1358
+ label: string;
1237
1359
  }[];
1238
1360
  commands: {
1239
1361
  id: string;
1362
+ description: string;
1240
1363
  available: boolean;
1241
1364
  runner: "codex" | "claude-code" | "opencode";
1242
1365
  reasonCode: string | null;
1243
1366
  label: string;
1244
- description: string;
1245
1367
  inputHint: string;
1246
1368
  source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER";
1247
1369
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "TOGGLE" | "VALUE";
@@ -1371,6 +1493,9 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
1371
1493
  [x: string]: any;
1372
1494
  }>;
1373
1495
  }, "strip", z.ZodTypeAny, {
1496
+ git: {
1497
+ [x: string]: any;
1498
+ };
1374
1499
  platform: "windows" | "linux";
1375
1500
  architecture: string;
1376
1501
  conversation: {
@@ -1386,19 +1511,21 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
1386
1511
  id: string;
1387
1512
  label: string;
1388
1513
  supportedEfforts: string[];
1514
+ isDefault?: boolean | undefined;
1515
+ defaultEffort?: string | undefined;
1389
1516
  }[];
1390
1517
  accessOptions: {
1391
1518
  id: string;
1392
- label: string;
1393
1519
  description: string;
1520
+ label: string;
1394
1521
  }[];
1395
1522
  commands: {
1396
1523
  id: string;
1524
+ description: string;
1397
1525
  available: boolean;
1398
1526
  runner: "codex" | "claude-code" | "opencode";
1399
1527
  reasonCode: string | null;
1400
1528
  label: string;
1401
- description: string;
1402
1529
  inputHint: string;
1403
1530
  source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER";
1404
1531
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "TOGGLE" | "VALUE";
@@ -1408,13 +1535,13 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
1408
1535
  files: {
1409
1536
  [x: string]: any;
1410
1537
  };
1411
- git: {
1412
- [x: string]: any;
1413
- };
1414
1538
  terminal: {
1415
1539
  [x: string]: any;
1416
1540
  };
1417
1541
  }, {
1542
+ git: {
1543
+ [x: string]: any;
1544
+ };
1418
1545
  platform: "windows" | "linux";
1419
1546
  architecture: string;
1420
1547
  conversation: {
@@ -1430,19 +1557,21 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
1430
1557
  id: string;
1431
1558
  label: string;
1432
1559
  supportedEfforts: string[];
1560
+ isDefault?: boolean | undefined;
1561
+ defaultEffort?: string | undefined;
1433
1562
  }[];
1434
1563
  accessOptions: {
1435
1564
  id: string;
1436
- label: string;
1437
1565
  description: string;
1566
+ label: string;
1438
1567
  }[];
1439
1568
  commands: {
1440
1569
  id: string;
1570
+ description: string;
1441
1571
  available: boolean;
1442
1572
  runner: "codex" | "claude-code" | "opencode";
1443
1573
  reasonCode: string | null;
1444
1574
  label: string;
1445
- description: string;
1446
1575
  inputHint: string;
1447
1576
  source: "CODEX_APP_SERVER" | "CLAUDE_AGENT_SDK" | "OPENCODE_SERVER";
1448
1577
  interaction: "RUNNER_TEXT" | "IMMEDIATE_ACTION" | "TOGGLE" | "VALUE";
@@ -1452,9 +1581,6 @@ export declare const nodeWorkbenchCapabilitiesSchema: z.ZodObject<{
1452
1581
  files: {
1453
1582
  [x: string]: any;
1454
1583
  };
1455
- git: {
1456
- [x: string]: any;
1457
- };
1458
1584
  terminal: {
1459
1585
  [x: string]: any;
1460
1586
  };
@@ -1468,11 +1594,11 @@ export declare const sessionRuntimeCapabilitiesSchema: z.ZodObject<{
1468
1594
  }, "strip", z.ZodTypeAny, {
1469
1595
  reasonCode: string | null;
1470
1596
  capabilities: ("history.read" | "events.live" | "turn.start" | "turn.queue" | "turn.interrupt" | "run.cancel" | "approval.respond" | "user-input.respond" | "session.rename" | "session.rewind" | "session.remove" | "session.pin")[];
1471
- level: "MANAGED" | "SHARED_CONTROL" | "OBSERVE_ONLY" | "RESUMABLE" | "UNAVAILABLE";
1597
+ level: "UNAVAILABLE" | "MANAGED" | "SHARED_CONTROL" | "OBSERVE_ONLY" | "RESUMABLE";
1472
1598
  }, {
1473
1599
  reasonCode: string | null;
1474
1600
  capabilities: ("history.read" | "events.live" | "turn.start" | "turn.queue" | "turn.interrupt" | "run.cancel" | "approval.respond" | "user-input.respond" | "session.rename" | "session.rewind" | "session.remove" | "session.pin")[];
1475
- level: "MANAGED" | "SHARED_CONTROL" | "OBSERVE_ONLY" | "RESUMABLE" | "UNAVAILABLE";
1601
+ level: "UNAVAILABLE" | "MANAGED" | "SHARED_CONTROL" | "OBSERVE_ONLY" | "RESUMABLE";
1476
1602
  }>;
1477
1603
  export type SessionRuntimeCapabilities = z.infer<typeof sessionRuntimeCapabilitiesSchema>;
1478
1604
  export declare const sessionActivityStateSchema: z.ZodEnum<["MANAGED_ACTIVE", "EXTERNAL_ACTIVE", "IDLE", "UNAVAILABLE"]>;
@@ -1544,6 +1670,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
1544
1670
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
1545
1671
  id: string;
1546
1672
  runId: string | null;
1673
+ kind: "assistant_message";
1547
1674
  sessionId: string;
1548
1675
  payload: {
1549
1676
  model: string | null;
@@ -1556,11 +1683,11 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
1556
1683
  sourceSequence: number | null;
1557
1684
  startedAt: number | null;
1558
1685
  completedAt: number | null;
1559
- kind: "assistant_message";
1560
1686
  }, {
1561
1687
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
1562
1688
  id: string;
1563
1689
  runId: string | null;
1690
+ kind: "assistant_message";
1564
1691
  sessionId: string;
1565
1692
  payload: {
1566
1693
  model: string | null;
@@ -1573,7 +1700,6 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
1573
1700
  sourceSequence: number | null;
1574
1701
  startedAt: number | null;
1575
1702
  completedAt: number | null;
1576
- kind: "assistant_message";
1577
1703
  }>, z.ZodObject<{
1578
1704
  id: z.ZodString;
1579
1705
  sessionId: z.ZodString;
@@ -1642,6 +1768,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
1642
1768
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
1643
1769
  id: string;
1644
1770
  runId: string | null;
1771
+ kind: "user_message";
1645
1772
  sessionId: string;
1646
1773
  payload: {
1647
1774
  clientMessageId: string | null;
@@ -1662,11 +1789,11 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
1662
1789
  sourceSequence: number | null;
1663
1790
  startedAt: number | null;
1664
1791
  completedAt: number | null;
1665
- kind: "user_message";
1666
1792
  }, {
1667
1793
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
1668
1794
  id: string;
1669
1795
  runId: string | null;
1796
+ kind: "user_message";
1670
1797
  sessionId: string;
1671
1798
  payload: {
1672
1799
  clientMessageId: string | null;
@@ -1687,7 +1814,6 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
1687
1814
  sourceSequence: number | null;
1688
1815
  startedAt: number | null;
1689
1816
  completedAt: number | null;
1690
- kind: "user_message";
1691
1817
  }>, z.ZodObject<{
1692
1818
  id: z.ZodString;
1693
1819
  sessionId: z.ZodString;
@@ -1727,6 +1853,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
1727
1853
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
1728
1854
  id: string;
1729
1855
  runId: string | null;
1856
+ kind: "reasoning_summary";
1730
1857
  sessionId: string;
1731
1858
  payload: {
1732
1859
  sections: {
@@ -1740,11 +1867,11 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
1740
1867
  sourceSequence: number | null;
1741
1868
  startedAt: number | null;
1742
1869
  completedAt: number | null;
1743
- kind: "reasoning_summary";
1744
1870
  }, {
1745
1871
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
1746
1872
  id: string;
1747
1873
  runId: string | null;
1874
+ kind: "reasoning_summary";
1748
1875
  sessionId: string;
1749
1876
  payload: {
1750
1877
  sections: {
@@ -1758,7 +1885,6 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
1758
1885
  sourceSequence: number | null;
1759
1886
  startedAt: number | null;
1760
1887
  completedAt: number | null;
1761
- kind: "reasoning_summary";
1762
1888
  }>, z.ZodObject<{
1763
1889
  id: z.ZodString;
1764
1890
  sessionId: z.ZodString;
@@ -1806,6 +1932,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
1806
1932
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
1807
1933
  id: string;
1808
1934
  runId: string | null;
1935
+ kind: "plan";
1809
1936
  sessionId: string;
1810
1937
  payload: {
1811
1938
  explanation: string | null;
@@ -1821,11 +1948,11 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
1821
1948
  sourceSequence: number | null;
1822
1949
  startedAt: number | null;
1823
1950
  completedAt: number | null;
1824
- kind: "plan";
1825
1951
  }, {
1826
1952
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
1827
1953
  id: string;
1828
1954
  runId: string | null;
1955
+ kind: "plan";
1829
1956
  sessionId: string;
1830
1957
  payload: {
1831
1958
  explanation: string | null;
@@ -1841,7 +1968,6 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
1841
1968
  sourceSequence: number | null;
1842
1969
  startedAt: number | null;
1843
1970
  completedAt: number | null;
1844
- kind: "plan";
1845
1971
  }>, z.ZodObject<{
1846
1972
  id: z.ZodString;
1847
1973
  sessionId: z.ZodString;
@@ -1887,6 +2013,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
1887
2013
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
1888
2014
  id: string;
1889
2015
  runId: string | null;
2016
+ kind: "tool_call";
1890
2017
  sessionId: string;
1891
2018
  payload: {
1892
2019
  errorCode: string | null;
@@ -1904,11 +2031,11 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
1904
2031
  sourceSequence: number | null;
1905
2032
  startedAt: number | null;
1906
2033
  completedAt: number | null;
1907
- kind: "tool_call";
1908
2034
  }, {
1909
2035
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
1910
2036
  id: string;
1911
2037
  runId: string | null;
2038
+ kind: "tool_call";
1912
2039
  sessionId: string;
1913
2040
  payload: {
1914
2041
  errorCode: string | null;
@@ -1926,7 +2053,6 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
1926
2053
  sourceSequence: number | null;
1927
2054
  startedAt: number | null;
1928
2055
  completedAt: number | null;
1929
- kind: "tool_call";
1930
2056
  }>, z.ZodObject<{
1931
2057
  id: z.ZodString;
1932
2058
  sessionId: z.ZodString;
@@ -1949,17 +2075,17 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
1949
2075
  durationMs: z.ZodNullable<z.ZodNumber>;
1950
2076
  truncated: z.ZodBoolean;
1951
2077
  }, "strip", z.ZodTypeAny, {
2078
+ command: string;
1952
2079
  durationMs: number | null;
1953
2080
  truncated: boolean;
1954
- command: string;
1955
2081
  cwd: string | null;
1956
2082
  outputPreview: string;
1957
2083
  outputRef: string | null;
1958
2084
  exitCode: number | null;
1959
2085
  }, {
2086
+ command: string;
1960
2087
  durationMs: number | null;
1961
2088
  truncated: boolean;
1962
- command: string;
1963
2089
  cwd: string | null;
1964
2090
  outputPreview: string;
1965
2091
  outputRef: string | null;
@@ -1969,11 +2095,12 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
1969
2095
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
1970
2096
  id: string;
1971
2097
  runId: string | null;
2098
+ kind: "command_execution";
1972
2099
  sessionId: string;
1973
2100
  payload: {
2101
+ command: string;
1974
2102
  durationMs: number | null;
1975
2103
  truncated: boolean;
1976
- command: string;
1977
2104
  cwd: string | null;
1978
2105
  outputPreview: string;
1979
2106
  outputRef: string | null;
@@ -1985,16 +2112,16 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
1985
2112
  sourceSequence: number | null;
1986
2113
  startedAt: number | null;
1987
2114
  completedAt: number | null;
1988
- kind: "command_execution";
1989
2115
  }, {
1990
2116
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
1991
2117
  id: string;
1992
2118
  runId: string | null;
2119
+ kind: "command_execution";
1993
2120
  sessionId: string;
1994
2121
  payload: {
2122
+ command: string;
1995
2123
  durationMs: number | null;
1996
2124
  truncated: boolean;
1997
- command: string;
1998
2125
  cwd: string | null;
1999
2126
  outputPreview: string;
2000
2127
  outputRef: string | null;
@@ -2006,7 +2133,6 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2006
2133
  sourceSequence: number | null;
2007
2134
  startedAt: number | null;
2008
2135
  completedAt: number | null;
2009
- kind: "command_execution";
2010
2136
  }>, z.ZodObject<{
2011
2137
  id: z.ZodString;
2012
2138
  sessionId: z.ZodString;
@@ -2061,6 +2187,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2061
2187
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
2062
2188
  id: string;
2063
2189
  runId: string | null;
2190
+ kind: "file_change";
2064
2191
  sessionId: string;
2065
2192
  payload: {
2066
2193
  changes: {
@@ -2077,11 +2204,11 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2077
2204
  sourceSequence: number | null;
2078
2205
  startedAt: number | null;
2079
2206
  completedAt: number | null;
2080
- kind: "file_change";
2081
2207
  }, {
2082
2208
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
2083
2209
  id: string;
2084
2210
  runId: string | null;
2211
+ kind: "file_change";
2085
2212
  sessionId: string;
2086
2213
  payload: {
2087
2214
  changes: {
@@ -2098,7 +2225,6 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2098
2225
  sourceSequence: number | null;
2099
2226
  startedAt: number | null;
2100
2227
  completedAt: number | null;
2101
- kind: "file_change";
2102
2228
  }>, z.ZodObject<{
2103
2229
  id: z.ZodString;
2104
2230
  sessionId: z.ZodString;
@@ -2135,6 +2261,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2135
2261
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
2136
2262
  id: string;
2137
2263
  runId: string | null;
2264
+ kind: "approval";
2138
2265
  sessionId: string;
2139
2266
  payload: {
2140
2267
  category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
@@ -2149,11 +2276,11 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2149
2276
  sourceSequence: number | null;
2150
2277
  startedAt: number | null;
2151
2278
  completedAt: number | null;
2152
- kind: "approval";
2153
2279
  }, {
2154
2280
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
2155
2281
  id: string;
2156
2282
  runId: string | null;
2283
+ kind: "approval";
2157
2284
  sessionId: string;
2158
2285
  payload: {
2159
2286
  category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
@@ -2168,7 +2295,6 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2168
2295
  sourceSequence: number | null;
2169
2296
  startedAt: number | null;
2170
2297
  completedAt: number | null;
2171
- kind: "approval";
2172
2298
  }>, z.ZodObject<{
2173
2299
  id: z.ZodString;
2174
2300
  sessionId: z.ZodString;
@@ -2194,20 +2320,20 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2194
2320
  description: z.ZodNullable<z.ZodString>;
2195
2321
  }, "strip", z.ZodTypeAny, {
2196
2322
  value: string;
2197
- label: string;
2198
2323
  description: string | null;
2324
+ label: string;
2199
2325
  }, {
2200
2326
  value: string;
2201
- label: string;
2202
2327
  description: string | null;
2328
+ label: string;
2203
2329
  }>, "many">;
2204
2330
  allowOther: z.ZodBoolean;
2205
2331
  multiSelect: z.ZodOptional<z.ZodBoolean>;
2206
2332
  }, "strip", z.ZodTypeAny, {
2207
2333
  options: {
2208
2334
  value: string;
2209
- label: string;
2210
2335
  description: string | null;
2336
+ label: string;
2211
2337
  }[];
2212
2338
  id: string;
2213
2339
  prompt: string;
@@ -2217,8 +2343,8 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2217
2343
  }, {
2218
2344
  options: {
2219
2345
  value: string;
2220
- label: string;
2221
2346
  description: string | null;
2347
+ label: string;
2222
2348
  }[];
2223
2349
  id: string;
2224
2350
  prompt: string;
@@ -2231,8 +2357,8 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2231
2357
  questions: {
2232
2358
  options: {
2233
2359
  value: string;
2234
- label: string;
2235
2360
  description: string | null;
2361
+ label: string;
2236
2362
  }[];
2237
2363
  id: string;
2238
2364
  prompt: string;
@@ -2245,8 +2371,8 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2245
2371
  questions: {
2246
2372
  options: {
2247
2373
  value: string;
2248
- label: string;
2249
2374
  description: string | null;
2375
+ label: string;
2250
2376
  }[];
2251
2377
  id: string;
2252
2378
  prompt: string;
@@ -2259,14 +2385,15 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2259
2385
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
2260
2386
  id: string;
2261
2387
  runId: string | null;
2388
+ kind: "user_input_request";
2262
2389
  sessionId: string;
2263
2390
  payload: {
2264
2391
  requestId: string;
2265
2392
  questions: {
2266
2393
  options: {
2267
2394
  value: string;
2268
- label: string;
2269
2395
  description: string | null;
2396
+ label: string;
2270
2397
  }[];
2271
2398
  id: string;
2272
2399
  prompt: string;
@@ -2281,19 +2408,19 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2281
2408
  sourceSequence: number | null;
2282
2409
  startedAt: number | null;
2283
2410
  completedAt: number | null;
2284
- kind: "user_input_request";
2285
2411
  }, {
2286
2412
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
2287
2413
  id: string;
2288
2414
  runId: string | null;
2415
+ kind: "user_input_request";
2289
2416
  sessionId: string;
2290
2417
  payload: {
2291
2418
  requestId: string;
2292
2419
  questions: {
2293
2420
  options: {
2294
2421
  value: string;
2295
- label: string;
2296
2422
  description: string | null;
2423
+ label: string;
2297
2424
  }[];
2298
2425
  id: string;
2299
2426
  prompt: string;
@@ -2308,7 +2435,6 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2308
2435
  sourceSequence: number | null;
2309
2436
  startedAt: number | null;
2310
2437
  completedAt: number | null;
2311
- kind: "user_input_request";
2312
2438
  }>, z.ZodObject<{
2313
2439
  id: z.ZodString;
2314
2440
  sessionId: z.ZodString;
@@ -2336,6 +2462,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2336
2462
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
2337
2463
  id: string;
2338
2464
  runId: string | null;
2465
+ kind: "context_compaction";
2339
2466
  sessionId: string;
2340
2467
  payload: {
2341
2468
  phase: "COMPLETED" | "STARTED";
@@ -2347,11 +2474,11 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2347
2474
  sourceSequence: number | null;
2348
2475
  startedAt: number | null;
2349
2476
  completedAt: number | null;
2350
- kind: "context_compaction";
2351
2477
  }, {
2352
2478
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
2353
2479
  id: string;
2354
2480
  runId: string | null;
2481
+ kind: "context_compaction";
2355
2482
  sessionId: string;
2356
2483
  payload: {
2357
2484
  phase: "COMPLETED" | "STARTED";
@@ -2363,7 +2490,6 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2363
2490
  sourceSequence: number | null;
2364
2491
  startedAt: number | null;
2365
2492
  completedAt: number | null;
2366
- kind: "context_compaction";
2367
2493
  }>, z.ZodObject<{
2368
2494
  id: z.ZodString;
2369
2495
  sessionId: z.ZodString;
@@ -2394,6 +2520,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2394
2520
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
2395
2521
  id: string;
2396
2522
  runId: string | null;
2523
+ kind: "warning";
2397
2524
  sessionId: string;
2398
2525
  payload: {
2399
2526
  code: string;
@@ -2406,11 +2533,11 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2406
2533
  sourceSequence: number | null;
2407
2534
  startedAt: number | null;
2408
2535
  completedAt: number | null;
2409
- kind: "warning";
2410
2536
  }, {
2411
2537
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
2412
2538
  id: string;
2413
2539
  runId: string | null;
2540
+ kind: "warning";
2414
2541
  sessionId: string;
2415
2542
  payload: {
2416
2543
  code: string;
@@ -2423,7 +2550,6 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2423
2550
  sourceSequence: number | null;
2424
2551
  startedAt: number | null;
2425
2552
  completedAt: number | null;
2426
- kind: "warning";
2427
2553
  }>, z.ZodObject<{
2428
2554
  id: z.ZodString;
2429
2555
  sessionId: z.ZodString;
@@ -2457,6 +2583,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2457
2583
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
2458
2584
  id: string;
2459
2585
  runId: string | null;
2586
+ kind: "error";
2460
2587
  sessionId: string;
2461
2588
  payload: {
2462
2589
  code: string;
@@ -2470,11 +2597,11 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2470
2597
  sourceSequence: number | null;
2471
2598
  startedAt: number | null;
2472
2599
  completedAt: number | null;
2473
- kind: "error";
2474
2600
  }, {
2475
2601
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
2476
2602
  id: string;
2477
2603
  runId: string | null;
2604
+ kind: "error";
2478
2605
  sessionId: string;
2479
2606
  payload: {
2480
2607
  code: string;
@@ -2488,7 +2615,6 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2488
2615
  sourceSequence: number | null;
2489
2616
  startedAt: number | null;
2490
2617
  completedAt: number | null;
2491
- kind: "error";
2492
2618
  }>, z.ZodObject<{
2493
2619
  id: z.ZodString;
2494
2620
  sessionId: z.ZodString;
@@ -2516,6 +2642,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2516
2642
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
2517
2643
  id: string;
2518
2644
  runId: string | null;
2645
+ kind: "turn_summary";
2519
2646
  sessionId: string;
2520
2647
  payload: {
2521
2648
  status: "FAILED" | "QUEUED" | "STARTING" | "RUNNING" | "CANCELLING" | "SUCCEEDED" | "CANCELLED" | "INTERRUPTED";
@@ -2527,11 +2654,11 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2527
2654
  sourceSequence: number | null;
2528
2655
  startedAt: number | null;
2529
2656
  completedAt: number | null;
2530
- kind: "turn_summary";
2531
2657
  }, {
2532
2658
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
2533
2659
  id: string;
2534
2660
  runId: string | null;
2661
+ kind: "turn_summary";
2535
2662
  sessionId: string;
2536
2663
  payload: {
2537
2664
  status: "FAILED" | "QUEUED" | "STARTING" | "RUNNING" | "CANCELLING" | "SUCCEEDED" | "CANCELLED" | "INTERRUPTED";
@@ -2543,7 +2670,6 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2543
2670
  sourceSequence: number | null;
2544
2671
  startedAt: number | null;
2545
2672
  completedAt: number | null;
2546
- kind: "turn_summary";
2547
2673
  }>, z.ZodObject<{
2548
2674
  id: z.ZodString;
2549
2675
  sessionId: z.ZodString;
@@ -2571,6 +2697,7 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2571
2697
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
2572
2698
  id: string;
2573
2699
  runId: string | null;
2700
+ kind: "unknown";
2574
2701
  sessionId: string;
2575
2702
  payload: {
2576
2703
  label: string;
@@ -2582,11 +2709,11 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2582
2709
  sourceSequence: number | null;
2583
2710
  startedAt: number | null;
2584
2711
  completedAt: number | null;
2585
- kind: "unknown";
2586
2712
  }, {
2587
2713
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
2588
2714
  id: string;
2589
2715
  runId: string | null;
2716
+ kind: "unknown";
2590
2717
  sessionId: string;
2591
2718
  payload: {
2592
2719
  label: string;
@@ -2598,7 +2725,6 @@ export declare const conversationItemSchema: z.ZodDiscriminatedUnion<"kind", [z.
2598
2725
  sourceSequence: number | null;
2599
2726
  startedAt: number | null;
2600
2727
  completedAt: number | null;
2601
- kind: "unknown";
2602
2728
  }>]>;
2603
2729
  export type ConversationItem = z.infer<typeof conversationItemSchema>;
2604
2730
  export declare const conversationTurnSchema: z.ZodObject<{
@@ -2650,6 +2776,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
2650
2776
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
2651
2777
  id: string;
2652
2778
  runId: string | null;
2779
+ kind: "assistant_message";
2653
2780
  sessionId: string;
2654
2781
  payload: {
2655
2782
  model: string | null;
@@ -2662,11 +2789,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
2662
2789
  sourceSequence: number | null;
2663
2790
  startedAt: number | null;
2664
2791
  completedAt: number | null;
2665
- kind: "assistant_message";
2666
2792
  }, {
2667
2793
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
2668
2794
  id: string;
2669
2795
  runId: string | null;
2796
+ kind: "assistant_message";
2670
2797
  sessionId: string;
2671
2798
  payload: {
2672
2799
  model: string | null;
@@ -2679,7 +2806,6 @@ export declare const conversationTurnSchema: z.ZodObject<{
2679
2806
  sourceSequence: number | null;
2680
2807
  startedAt: number | null;
2681
2808
  completedAt: number | null;
2682
- kind: "assistant_message";
2683
2809
  }>, z.ZodObject<{
2684
2810
  id: z.ZodString;
2685
2811
  sessionId: z.ZodString;
@@ -2748,6 +2874,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
2748
2874
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
2749
2875
  id: string;
2750
2876
  runId: string | null;
2877
+ kind: "user_message";
2751
2878
  sessionId: string;
2752
2879
  payload: {
2753
2880
  clientMessageId: string | null;
@@ -2768,11 +2895,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
2768
2895
  sourceSequence: number | null;
2769
2896
  startedAt: number | null;
2770
2897
  completedAt: number | null;
2771
- kind: "user_message";
2772
2898
  }, {
2773
2899
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
2774
2900
  id: string;
2775
2901
  runId: string | null;
2902
+ kind: "user_message";
2776
2903
  sessionId: string;
2777
2904
  payload: {
2778
2905
  clientMessageId: string | null;
@@ -2793,7 +2920,6 @@ export declare const conversationTurnSchema: z.ZodObject<{
2793
2920
  sourceSequence: number | null;
2794
2921
  startedAt: number | null;
2795
2922
  completedAt: number | null;
2796
- kind: "user_message";
2797
2923
  }>, z.ZodObject<{
2798
2924
  id: z.ZodString;
2799
2925
  sessionId: z.ZodString;
@@ -2833,6 +2959,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
2833
2959
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
2834
2960
  id: string;
2835
2961
  runId: string | null;
2962
+ kind: "reasoning_summary";
2836
2963
  sessionId: string;
2837
2964
  payload: {
2838
2965
  sections: {
@@ -2846,11 +2973,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
2846
2973
  sourceSequence: number | null;
2847
2974
  startedAt: number | null;
2848
2975
  completedAt: number | null;
2849
- kind: "reasoning_summary";
2850
2976
  }, {
2851
2977
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
2852
2978
  id: string;
2853
2979
  runId: string | null;
2980
+ kind: "reasoning_summary";
2854
2981
  sessionId: string;
2855
2982
  payload: {
2856
2983
  sections: {
@@ -2864,7 +2991,6 @@ export declare const conversationTurnSchema: z.ZodObject<{
2864
2991
  sourceSequence: number | null;
2865
2992
  startedAt: number | null;
2866
2993
  completedAt: number | null;
2867
- kind: "reasoning_summary";
2868
2994
  }>, z.ZodObject<{
2869
2995
  id: z.ZodString;
2870
2996
  sessionId: z.ZodString;
@@ -2912,6 +3038,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
2912
3038
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
2913
3039
  id: string;
2914
3040
  runId: string | null;
3041
+ kind: "plan";
2915
3042
  sessionId: string;
2916
3043
  payload: {
2917
3044
  explanation: string | null;
@@ -2927,11 +3054,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
2927
3054
  sourceSequence: number | null;
2928
3055
  startedAt: number | null;
2929
3056
  completedAt: number | null;
2930
- kind: "plan";
2931
3057
  }, {
2932
3058
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
2933
3059
  id: string;
2934
3060
  runId: string | null;
3061
+ kind: "plan";
2935
3062
  sessionId: string;
2936
3063
  payload: {
2937
3064
  explanation: string | null;
@@ -2947,7 +3074,6 @@ export declare const conversationTurnSchema: z.ZodObject<{
2947
3074
  sourceSequence: number | null;
2948
3075
  startedAt: number | null;
2949
3076
  completedAt: number | null;
2950
- kind: "plan";
2951
3077
  }>, z.ZodObject<{
2952
3078
  id: z.ZodString;
2953
3079
  sessionId: z.ZodString;
@@ -2993,6 +3119,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
2993
3119
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
2994
3120
  id: string;
2995
3121
  runId: string | null;
3122
+ kind: "tool_call";
2996
3123
  sessionId: string;
2997
3124
  payload: {
2998
3125
  errorCode: string | null;
@@ -3010,11 +3137,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
3010
3137
  sourceSequence: number | null;
3011
3138
  startedAt: number | null;
3012
3139
  completedAt: number | null;
3013
- kind: "tool_call";
3014
3140
  }, {
3015
3141
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3016
3142
  id: string;
3017
3143
  runId: string | null;
3144
+ kind: "tool_call";
3018
3145
  sessionId: string;
3019
3146
  payload: {
3020
3147
  errorCode: string | null;
@@ -3032,7 +3159,6 @@ export declare const conversationTurnSchema: z.ZodObject<{
3032
3159
  sourceSequence: number | null;
3033
3160
  startedAt: number | null;
3034
3161
  completedAt: number | null;
3035
- kind: "tool_call";
3036
3162
  }>, z.ZodObject<{
3037
3163
  id: z.ZodString;
3038
3164
  sessionId: z.ZodString;
@@ -3055,17 +3181,17 @@ export declare const conversationTurnSchema: z.ZodObject<{
3055
3181
  durationMs: z.ZodNullable<z.ZodNumber>;
3056
3182
  truncated: z.ZodBoolean;
3057
3183
  }, "strip", z.ZodTypeAny, {
3184
+ command: string;
3058
3185
  durationMs: number | null;
3059
3186
  truncated: boolean;
3060
- command: string;
3061
3187
  cwd: string | null;
3062
3188
  outputPreview: string;
3063
3189
  outputRef: string | null;
3064
3190
  exitCode: number | null;
3065
3191
  }, {
3192
+ command: string;
3066
3193
  durationMs: number | null;
3067
3194
  truncated: boolean;
3068
- command: string;
3069
3195
  cwd: string | null;
3070
3196
  outputPreview: string;
3071
3197
  outputRef: string | null;
@@ -3075,11 +3201,12 @@ export declare const conversationTurnSchema: z.ZodObject<{
3075
3201
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3076
3202
  id: string;
3077
3203
  runId: string | null;
3204
+ kind: "command_execution";
3078
3205
  sessionId: string;
3079
3206
  payload: {
3207
+ command: string;
3080
3208
  durationMs: number | null;
3081
3209
  truncated: boolean;
3082
- command: string;
3083
3210
  cwd: string | null;
3084
3211
  outputPreview: string;
3085
3212
  outputRef: string | null;
@@ -3091,16 +3218,16 @@ export declare const conversationTurnSchema: z.ZodObject<{
3091
3218
  sourceSequence: number | null;
3092
3219
  startedAt: number | null;
3093
3220
  completedAt: number | null;
3094
- kind: "command_execution";
3095
3221
  }, {
3096
3222
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3097
3223
  id: string;
3098
3224
  runId: string | null;
3225
+ kind: "command_execution";
3099
3226
  sessionId: string;
3100
3227
  payload: {
3228
+ command: string;
3101
3229
  durationMs: number | null;
3102
3230
  truncated: boolean;
3103
- command: string;
3104
3231
  cwd: string | null;
3105
3232
  outputPreview: string;
3106
3233
  outputRef: string | null;
@@ -3112,7 +3239,6 @@ export declare const conversationTurnSchema: z.ZodObject<{
3112
3239
  sourceSequence: number | null;
3113
3240
  startedAt: number | null;
3114
3241
  completedAt: number | null;
3115
- kind: "command_execution";
3116
3242
  }>, z.ZodObject<{
3117
3243
  id: z.ZodString;
3118
3244
  sessionId: z.ZodString;
@@ -3167,6 +3293,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
3167
3293
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3168
3294
  id: string;
3169
3295
  runId: string | null;
3296
+ kind: "file_change";
3170
3297
  sessionId: string;
3171
3298
  payload: {
3172
3299
  changes: {
@@ -3183,11 +3310,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
3183
3310
  sourceSequence: number | null;
3184
3311
  startedAt: number | null;
3185
3312
  completedAt: number | null;
3186
- kind: "file_change";
3187
3313
  }, {
3188
3314
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3189
3315
  id: string;
3190
3316
  runId: string | null;
3317
+ kind: "file_change";
3191
3318
  sessionId: string;
3192
3319
  payload: {
3193
3320
  changes: {
@@ -3204,7 +3331,6 @@ export declare const conversationTurnSchema: z.ZodObject<{
3204
3331
  sourceSequence: number | null;
3205
3332
  startedAt: number | null;
3206
3333
  completedAt: number | null;
3207
- kind: "file_change";
3208
3334
  }>, z.ZodObject<{
3209
3335
  id: z.ZodString;
3210
3336
  sessionId: z.ZodString;
@@ -3241,6 +3367,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
3241
3367
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3242
3368
  id: string;
3243
3369
  runId: string | null;
3370
+ kind: "approval";
3244
3371
  sessionId: string;
3245
3372
  payload: {
3246
3373
  category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
@@ -3255,11 +3382,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
3255
3382
  sourceSequence: number | null;
3256
3383
  startedAt: number | null;
3257
3384
  completedAt: number | null;
3258
- kind: "approval";
3259
3385
  }, {
3260
3386
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3261
3387
  id: string;
3262
3388
  runId: string | null;
3389
+ kind: "approval";
3263
3390
  sessionId: string;
3264
3391
  payload: {
3265
3392
  category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
@@ -3274,7 +3401,6 @@ export declare const conversationTurnSchema: z.ZodObject<{
3274
3401
  sourceSequence: number | null;
3275
3402
  startedAt: number | null;
3276
3403
  completedAt: number | null;
3277
- kind: "approval";
3278
3404
  }>, z.ZodObject<{
3279
3405
  id: z.ZodString;
3280
3406
  sessionId: z.ZodString;
@@ -3300,20 +3426,20 @@ export declare const conversationTurnSchema: z.ZodObject<{
3300
3426
  description: z.ZodNullable<z.ZodString>;
3301
3427
  }, "strip", z.ZodTypeAny, {
3302
3428
  value: string;
3303
- label: string;
3304
3429
  description: string | null;
3430
+ label: string;
3305
3431
  }, {
3306
3432
  value: string;
3307
- label: string;
3308
3433
  description: string | null;
3434
+ label: string;
3309
3435
  }>, "many">;
3310
3436
  allowOther: z.ZodBoolean;
3311
3437
  multiSelect: z.ZodOptional<z.ZodBoolean>;
3312
3438
  }, "strip", z.ZodTypeAny, {
3313
3439
  options: {
3314
3440
  value: string;
3315
- label: string;
3316
3441
  description: string | null;
3442
+ label: string;
3317
3443
  }[];
3318
3444
  id: string;
3319
3445
  prompt: string;
@@ -3323,8 +3449,8 @@ export declare const conversationTurnSchema: z.ZodObject<{
3323
3449
  }, {
3324
3450
  options: {
3325
3451
  value: string;
3326
- label: string;
3327
3452
  description: string | null;
3453
+ label: string;
3328
3454
  }[];
3329
3455
  id: string;
3330
3456
  prompt: string;
@@ -3337,8 +3463,8 @@ export declare const conversationTurnSchema: z.ZodObject<{
3337
3463
  questions: {
3338
3464
  options: {
3339
3465
  value: string;
3340
- label: string;
3341
3466
  description: string | null;
3467
+ label: string;
3342
3468
  }[];
3343
3469
  id: string;
3344
3470
  prompt: string;
@@ -3351,8 +3477,8 @@ export declare const conversationTurnSchema: z.ZodObject<{
3351
3477
  questions: {
3352
3478
  options: {
3353
3479
  value: string;
3354
- label: string;
3355
3480
  description: string | null;
3481
+ label: string;
3356
3482
  }[];
3357
3483
  id: string;
3358
3484
  prompt: string;
@@ -3365,14 +3491,15 @@ export declare const conversationTurnSchema: z.ZodObject<{
3365
3491
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3366
3492
  id: string;
3367
3493
  runId: string | null;
3494
+ kind: "user_input_request";
3368
3495
  sessionId: string;
3369
3496
  payload: {
3370
3497
  requestId: string;
3371
3498
  questions: {
3372
3499
  options: {
3373
3500
  value: string;
3374
- label: string;
3375
3501
  description: string | null;
3502
+ label: string;
3376
3503
  }[];
3377
3504
  id: string;
3378
3505
  prompt: string;
@@ -3387,19 +3514,19 @@ export declare const conversationTurnSchema: z.ZodObject<{
3387
3514
  sourceSequence: number | null;
3388
3515
  startedAt: number | null;
3389
3516
  completedAt: number | null;
3390
- kind: "user_input_request";
3391
3517
  }, {
3392
3518
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3393
3519
  id: string;
3394
3520
  runId: string | null;
3521
+ kind: "user_input_request";
3395
3522
  sessionId: string;
3396
3523
  payload: {
3397
3524
  requestId: string;
3398
3525
  questions: {
3399
3526
  options: {
3400
3527
  value: string;
3401
- label: string;
3402
3528
  description: string | null;
3529
+ label: string;
3403
3530
  }[];
3404
3531
  id: string;
3405
3532
  prompt: string;
@@ -3414,7 +3541,6 @@ export declare const conversationTurnSchema: z.ZodObject<{
3414
3541
  sourceSequence: number | null;
3415
3542
  startedAt: number | null;
3416
3543
  completedAt: number | null;
3417
- kind: "user_input_request";
3418
3544
  }>, z.ZodObject<{
3419
3545
  id: z.ZodString;
3420
3546
  sessionId: z.ZodString;
@@ -3442,6 +3568,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
3442
3568
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3443
3569
  id: string;
3444
3570
  runId: string | null;
3571
+ kind: "context_compaction";
3445
3572
  sessionId: string;
3446
3573
  payload: {
3447
3574
  phase: "COMPLETED" | "STARTED";
@@ -3453,11 +3580,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
3453
3580
  sourceSequence: number | null;
3454
3581
  startedAt: number | null;
3455
3582
  completedAt: number | null;
3456
- kind: "context_compaction";
3457
3583
  }, {
3458
3584
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3459
3585
  id: string;
3460
3586
  runId: string | null;
3587
+ kind: "context_compaction";
3461
3588
  sessionId: string;
3462
3589
  payload: {
3463
3590
  phase: "COMPLETED" | "STARTED";
@@ -3469,7 +3596,6 @@ export declare const conversationTurnSchema: z.ZodObject<{
3469
3596
  sourceSequence: number | null;
3470
3597
  startedAt: number | null;
3471
3598
  completedAt: number | null;
3472
- kind: "context_compaction";
3473
3599
  }>, z.ZodObject<{
3474
3600
  id: z.ZodString;
3475
3601
  sessionId: z.ZodString;
@@ -3500,6 +3626,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
3500
3626
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3501
3627
  id: string;
3502
3628
  runId: string | null;
3629
+ kind: "warning";
3503
3630
  sessionId: string;
3504
3631
  payload: {
3505
3632
  code: string;
@@ -3512,11 +3639,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
3512
3639
  sourceSequence: number | null;
3513
3640
  startedAt: number | null;
3514
3641
  completedAt: number | null;
3515
- kind: "warning";
3516
3642
  }, {
3517
3643
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3518
3644
  id: string;
3519
3645
  runId: string | null;
3646
+ kind: "warning";
3520
3647
  sessionId: string;
3521
3648
  payload: {
3522
3649
  code: string;
@@ -3529,7 +3656,6 @@ export declare const conversationTurnSchema: z.ZodObject<{
3529
3656
  sourceSequence: number | null;
3530
3657
  startedAt: number | null;
3531
3658
  completedAt: number | null;
3532
- kind: "warning";
3533
3659
  }>, z.ZodObject<{
3534
3660
  id: z.ZodString;
3535
3661
  sessionId: z.ZodString;
@@ -3563,6 +3689,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
3563
3689
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3564
3690
  id: string;
3565
3691
  runId: string | null;
3692
+ kind: "error";
3566
3693
  sessionId: string;
3567
3694
  payload: {
3568
3695
  code: string;
@@ -3576,11 +3703,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
3576
3703
  sourceSequence: number | null;
3577
3704
  startedAt: number | null;
3578
3705
  completedAt: number | null;
3579
- kind: "error";
3580
3706
  }, {
3581
3707
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3582
3708
  id: string;
3583
3709
  runId: string | null;
3710
+ kind: "error";
3584
3711
  sessionId: string;
3585
3712
  payload: {
3586
3713
  code: string;
@@ -3594,7 +3721,6 @@ export declare const conversationTurnSchema: z.ZodObject<{
3594
3721
  sourceSequence: number | null;
3595
3722
  startedAt: number | null;
3596
3723
  completedAt: number | null;
3597
- kind: "error";
3598
3724
  }>, z.ZodObject<{
3599
3725
  id: z.ZodString;
3600
3726
  sessionId: z.ZodString;
@@ -3622,6 +3748,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
3622
3748
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3623
3749
  id: string;
3624
3750
  runId: string | null;
3751
+ kind: "turn_summary";
3625
3752
  sessionId: string;
3626
3753
  payload: {
3627
3754
  status: "FAILED" | "QUEUED" | "STARTING" | "RUNNING" | "CANCELLING" | "SUCCEEDED" | "CANCELLED" | "INTERRUPTED";
@@ -3633,11 +3760,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
3633
3760
  sourceSequence: number | null;
3634
3761
  startedAt: number | null;
3635
3762
  completedAt: number | null;
3636
- kind: "turn_summary";
3637
3763
  }, {
3638
3764
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3639
3765
  id: string;
3640
3766
  runId: string | null;
3767
+ kind: "turn_summary";
3641
3768
  sessionId: string;
3642
3769
  payload: {
3643
3770
  status: "FAILED" | "QUEUED" | "STARTING" | "RUNNING" | "CANCELLING" | "SUCCEEDED" | "CANCELLED" | "INTERRUPTED";
@@ -3649,7 +3776,6 @@ export declare const conversationTurnSchema: z.ZodObject<{
3649
3776
  sourceSequence: number | null;
3650
3777
  startedAt: number | null;
3651
3778
  completedAt: number | null;
3652
- kind: "turn_summary";
3653
3779
  }>, z.ZodObject<{
3654
3780
  id: z.ZodString;
3655
3781
  sessionId: z.ZodString;
@@ -3677,6 +3803,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
3677
3803
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3678
3804
  id: string;
3679
3805
  runId: string | null;
3806
+ kind: "unknown";
3680
3807
  sessionId: string;
3681
3808
  payload: {
3682
3809
  label: string;
@@ -3688,11 +3815,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
3688
3815
  sourceSequence: number | null;
3689
3816
  startedAt: number | null;
3690
3817
  completedAt: number | null;
3691
- kind: "unknown";
3692
3818
  }, {
3693
3819
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3694
3820
  id: string;
3695
3821
  runId: string | null;
3822
+ kind: "unknown";
3696
3823
  sessionId: string;
3697
3824
  payload: {
3698
3825
  label: string;
@@ -3704,7 +3831,6 @@ export declare const conversationTurnSchema: z.ZodObject<{
3704
3831
  sourceSequence: number | null;
3705
3832
  startedAt: number | null;
3706
3833
  completedAt: number | null;
3707
- kind: "unknown";
3708
3834
  }>]>, "many">;
3709
3835
  startedAt: z.ZodNullable<z.ZodNumber>;
3710
3836
  completedAt: z.ZodNullable<z.ZodNumber>;
@@ -3717,6 +3843,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
3717
3843
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3718
3844
  id: string;
3719
3845
  runId: string | null;
3846
+ kind: "assistant_message";
3720
3847
  sessionId: string;
3721
3848
  payload: {
3722
3849
  model: string | null;
@@ -3729,11 +3856,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
3729
3856
  sourceSequence: number | null;
3730
3857
  startedAt: number | null;
3731
3858
  completedAt: number | null;
3732
- kind: "assistant_message";
3733
3859
  } | {
3734
3860
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3735
3861
  id: string;
3736
3862
  runId: string | null;
3863
+ kind: "user_message";
3737
3864
  sessionId: string;
3738
3865
  payload: {
3739
3866
  clientMessageId: string | null;
@@ -3754,11 +3881,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
3754
3881
  sourceSequence: number | null;
3755
3882
  startedAt: number | null;
3756
3883
  completedAt: number | null;
3757
- kind: "user_message";
3758
3884
  } | {
3759
3885
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3760
3886
  id: string;
3761
3887
  runId: string | null;
3888
+ kind: "plan";
3762
3889
  sessionId: string;
3763
3890
  payload: {
3764
3891
  explanation: string | null;
@@ -3774,11 +3901,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
3774
3901
  sourceSequence: number | null;
3775
3902
  startedAt: number | null;
3776
3903
  completedAt: number | null;
3777
- kind: "plan";
3778
3904
  } | {
3779
3905
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3780
3906
  id: string;
3781
3907
  runId: string | null;
3908
+ kind: "approval";
3782
3909
  sessionId: string;
3783
3910
  payload: {
3784
3911
  category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
@@ -3793,11 +3920,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
3793
3920
  sourceSequence: number | null;
3794
3921
  startedAt: number | null;
3795
3922
  completedAt: number | null;
3796
- kind: "approval";
3797
3923
  } | {
3798
3924
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3799
3925
  id: string;
3800
3926
  runId: string | null;
3927
+ kind: "turn_summary";
3801
3928
  sessionId: string;
3802
3929
  payload: {
3803
3930
  status: "FAILED" | "QUEUED" | "STARTING" | "RUNNING" | "CANCELLING" | "SUCCEEDED" | "CANCELLED" | "INTERRUPTED";
@@ -3809,11 +3936,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
3809
3936
  sourceSequence: number | null;
3810
3937
  startedAt: number | null;
3811
3938
  completedAt: number | null;
3812
- kind: "turn_summary";
3813
3939
  } | {
3814
3940
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3815
3941
  id: string;
3816
3942
  runId: string | null;
3943
+ kind: "reasoning_summary";
3817
3944
  sessionId: string;
3818
3945
  payload: {
3819
3946
  sections: {
@@ -3827,11 +3954,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
3827
3954
  sourceSequence: number | null;
3828
3955
  startedAt: number | null;
3829
3956
  completedAt: number | null;
3830
- kind: "reasoning_summary";
3831
3957
  } | {
3832
3958
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3833
3959
  id: string;
3834
3960
  runId: string | null;
3961
+ kind: "tool_call";
3835
3962
  sessionId: string;
3836
3963
  payload: {
3837
3964
  errorCode: string | null;
@@ -3849,16 +3976,16 @@ export declare const conversationTurnSchema: z.ZodObject<{
3849
3976
  sourceSequence: number | null;
3850
3977
  startedAt: number | null;
3851
3978
  completedAt: number | null;
3852
- kind: "tool_call";
3853
3979
  } | {
3854
3980
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3855
3981
  id: string;
3856
3982
  runId: string | null;
3983
+ kind: "command_execution";
3857
3984
  sessionId: string;
3858
3985
  payload: {
3986
+ command: string;
3859
3987
  durationMs: number | null;
3860
3988
  truncated: boolean;
3861
- command: string;
3862
3989
  cwd: string | null;
3863
3990
  outputPreview: string;
3864
3991
  outputRef: string | null;
@@ -3870,11 +3997,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
3870
3997
  sourceSequence: number | null;
3871
3998
  startedAt: number | null;
3872
3999
  completedAt: number | null;
3873
- kind: "command_execution";
3874
4000
  } | {
3875
4001
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3876
4002
  id: string;
3877
4003
  runId: string | null;
4004
+ kind: "file_change";
3878
4005
  sessionId: string;
3879
4006
  payload: {
3880
4007
  changes: {
@@ -3891,19 +4018,19 @@ export declare const conversationTurnSchema: z.ZodObject<{
3891
4018
  sourceSequence: number | null;
3892
4019
  startedAt: number | null;
3893
4020
  completedAt: number | null;
3894
- kind: "file_change";
3895
4021
  } | {
3896
4022
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3897
4023
  id: string;
3898
4024
  runId: string | null;
4025
+ kind: "user_input_request";
3899
4026
  sessionId: string;
3900
4027
  payload: {
3901
4028
  requestId: string;
3902
4029
  questions: {
3903
4030
  options: {
3904
4031
  value: string;
3905
- label: string;
3906
4032
  description: string | null;
4033
+ label: string;
3907
4034
  }[];
3908
4035
  id: string;
3909
4036
  prompt: string;
@@ -3918,11 +4045,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
3918
4045
  sourceSequence: number | null;
3919
4046
  startedAt: number | null;
3920
4047
  completedAt: number | null;
3921
- kind: "user_input_request";
3922
4048
  } | {
3923
4049
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3924
4050
  id: string;
3925
4051
  runId: string | null;
4052
+ kind: "context_compaction";
3926
4053
  sessionId: string;
3927
4054
  payload: {
3928
4055
  phase: "COMPLETED" | "STARTED";
@@ -3934,11 +4061,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
3934
4061
  sourceSequence: number | null;
3935
4062
  startedAt: number | null;
3936
4063
  completedAt: number | null;
3937
- kind: "context_compaction";
3938
4064
  } | {
3939
4065
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3940
4066
  id: string;
3941
4067
  runId: string | null;
4068
+ kind: "warning";
3942
4069
  sessionId: string;
3943
4070
  payload: {
3944
4071
  code: string;
@@ -3951,11 +4078,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
3951
4078
  sourceSequence: number | null;
3952
4079
  startedAt: number | null;
3953
4080
  completedAt: number | null;
3954
- kind: "warning";
3955
4081
  } | {
3956
4082
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3957
4083
  id: string;
3958
4084
  runId: string | null;
4085
+ kind: "error";
3959
4086
  sessionId: string;
3960
4087
  payload: {
3961
4088
  code: string;
@@ -3969,11 +4096,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
3969
4096
  sourceSequence: number | null;
3970
4097
  startedAt: number | null;
3971
4098
  completedAt: number | null;
3972
- kind: "error";
3973
4099
  } | {
3974
4100
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
3975
4101
  id: string;
3976
4102
  runId: string | null;
4103
+ kind: "unknown";
3977
4104
  sessionId: string;
3978
4105
  payload: {
3979
4106
  label: string;
@@ -3985,7 +4112,6 @@ export declare const conversationTurnSchema: z.ZodObject<{
3985
4112
  sourceSequence: number | null;
3986
4113
  startedAt: number | null;
3987
4114
  completedAt: number | null;
3988
- kind: "unknown";
3989
4115
  })[];
3990
4116
  model: string | null;
3991
4117
  effort: string | null;
@@ -4006,6 +4132,7 @@ export declare const conversationTurnSchema: z.ZodObject<{
4006
4132
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
4007
4133
  id: string;
4008
4134
  runId: string | null;
4135
+ kind: "assistant_message";
4009
4136
  sessionId: string;
4010
4137
  payload: {
4011
4138
  model: string | null;
@@ -4018,11 +4145,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
4018
4145
  sourceSequence: number | null;
4019
4146
  startedAt: number | null;
4020
4147
  completedAt: number | null;
4021
- kind: "assistant_message";
4022
4148
  } | {
4023
4149
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
4024
4150
  id: string;
4025
4151
  runId: string | null;
4152
+ kind: "user_message";
4026
4153
  sessionId: string;
4027
4154
  payload: {
4028
4155
  clientMessageId: string | null;
@@ -4043,11 +4170,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
4043
4170
  sourceSequence: number | null;
4044
4171
  startedAt: number | null;
4045
4172
  completedAt: number | null;
4046
- kind: "user_message";
4047
4173
  } | {
4048
4174
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
4049
4175
  id: string;
4050
4176
  runId: string | null;
4177
+ kind: "plan";
4051
4178
  sessionId: string;
4052
4179
  payload: {
4053
4180
  explanation: string | null;
@@ -4063,11 +4190,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
4063
4190
  sourceSequence: number | null;
4064
4191
  startedAt: number | null;
4065
4192
  completedAt: number | null;
4066
- kind: "plan";
4067
4193
  } | {
4068
4194
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
4069
4195
  id: string;
4070
4196
  runId: string | null;
4197
+ kind: "approval";
4071
4198
  sessionId: string;
4072
4199
  payload: {
4073
4200
  category: "COMMAND" | "FILE_CHANGE" | "NETWORK" | "TOOL" | "OTHER";
@@ -4082,11 +4209,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
4082
4209
  sourceSequence: number | null;
4083
4210
  startedAt: number | null;
4084
4211
  completedAt: number | null;
4085
- kind: "approval";
4086
4212
  } | {
4087
4213
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
4088
4214
  id: string;
4089
4215
  runId: string | null;
4216
+ kind: "turn_summary";
4090
4217
  sessionId: string;
4091
4218
  payload: {
4092
4219
  status: "FAILED" | "QUEUED" | "STARTING" | "RUNNING" | "CANCELLING" | "SUCCEEDED" | "CANCELLED" | "INTERRUPTED";
@@ -4098,11 +4225,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
4098
4225
  sourceSequence: number | null;
4099
4226
  startedAt: number | null;
4100
4227
  completedAt: number | null;
4101
- kind: "turn_summary";
4102
4228
  } | {
4103
4229
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
4104
4230
  id: string;
4105
4231
  runId: string | null;
4232
+ kind: "reasoning_summary";
4106
4233
  sessionId: string;
4107
4234
  payload: {
4108
4235
  sections: {
@@ -4116,11 +4243,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
4116
4243
  sourceSequence: number | null;
4117
4244
  startedAt: number | null;
4118
4245
  completedAt: number | null;
4119
- kind: "reasoning_summary";
4120
4246
  } | {
4121
4247
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
4122
4248
  id: string;
4123
4249
  runId: string | null;
4250
+ kind: "tool_call";
4124
4251
  sessionId: string;
4125
4252
  payload: {
4126
4253
  errorCode: string | null;
@@ -4138,16 +4265,16 @@ export declare const conversationTurnSchema: z.ZodObject<{
4138
4265
  sourceSequence: number | null;
4139
4266
  startedAt: number | null;
4140
4267
  completedAt: number | null;
4141
- kind: "tool_call";
4142
4268
  } | {
4143
4269
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
4144
4270
  id: string;
4145
4271
  runId: string | null;
4272
+ kind: "command_execution";
4146
4273
  sessionId: string;
4147
4274
  payload: {
4275
+ command: string;
4148
4276
  durationMs: number | null;
4149
4277
  truncated: boolean;
4150
- command: string;
4151
4278
  cwd: string | null;
4152
4279
  outputPreview: string;
4153
4280
  outputRef: string | null;
@@ -4159,11 +4286,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
4159
4286
  sourceSequence: number | null;
4160
4287
  startedAt: number | null;
4161
4288
  completedAt: number | null;
4162
- kind: "command_execution";
4163
4289
  } | {
4164
4290
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
4165
4291
  id: string;
4166
4292
  runId: string | null;
4293
+ kind: "file_change";
4167
4294
  sessionId: string;
4168
4295
  payload: {
4169
4296
  changes: {
@@ -4180,19 +4307,19 @@ export declare const conversationTurnSchema: z.ZodObject<{
4180
4307
  sourceSequence: number | null;
4181
4308
  startedAt: number | null;
4182
4309
  completedAt: number | null;
4183
- kind: "file_change";
4184
4310
  } | {
4185
4311
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
4186
4312
  id: string;
4187
4313
  runId: string | null;
4314
+ kind: "user_input_request";
4188
4315
  sessionId: string;
4189
4316
  payload: {
4190
4317
  requestId: string;
4191
4318
  questions: {
4192
4319
  options: {
4193
4320
  value: string;
4194
- label: string;
4195
4321
  description: string | null;
4322
+ label: string;
4196
4323
  }[];
4197
4324
  id: string;
4198
4325
  prompt: string;
@@ -4207,11 +4334,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
4207
4334
  sourceSequence: number | null;
4208
4335
  startedAt: number | null;
4209
4336
  completedAt: number | null;
4210
- kind: "user_input_request";
4211
4337
  } | {
4212
4338
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
4213
4339
  id: string;
4214
4340
  runId: string | null;
4341
+ kind: "context_compaction";
4215
4342
  sessionId: string;
4216
4343
  payload: {
4217
4344
  phase: "COMPLETED" | "STARTED";
@@ -4223,11 +4350,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
4223
4350
  sourceSequence: number | null;
4224
4351
  startedAt: number | null;
4225
4352
  completedAt: number | null;
4226
- kind: "context_compaction";
4227
4353
  } | {
4228
4354
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
4229
4355
  id: string;
4230
4356
  runId: string | null;
4357
+ kind: "warning";
4231
4358
  sessionId: string;
4232
4359
  payload: {
4233
4360
  code: string;
@@ -4240,11 +4367,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
4240
4367
  sourceSequence: number | null;
4241
4368
  startedAt: number | null;
4242
4369
  completedAt: number | null;
4243
- kind: "warning";
4244
4370
  } | {
4245
4371
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
4246
4372
  id: string;
4247
4373
  runId: string | null;
4374
+ kind: "error";
4248
4375
  sessionId: string;
4249
4376
  payload: {
4250
4377
  code: string;
@@ -4258,11 +4385,11 @@ export declare const conversationTurnSchema: z.ZodObject<{
4258
4385
  sourceSequence: number | null;
4259
4386
  startedAt: number | null;
4260
4387
  completedAt: number | null;
4261
- kind: "error";
4262
4388
  } | {
4263
4389
  status: "FAILED" | "CANCELLED" | "INTERRUPTED" | "PENDING" | "IN_PROGRESS" | "COMPLETED" | "DECLINED";
4264
4390
  id: string;
4265
4391
  runId: string | null;
4392
+ kind: "unknown";
4266
4393
  sessionId: string;
4267
4394
  payload: {
4268
4395
  label: string;
@@ -4274,7 +4401,6 @@ export declare const conversationTurnSchema: z.ZodObject<{
4274
4401
  sourceSequence: number | null;
4275
4402
  startedAt: number | null;
4276
4403
  completedAt: number | null;
4277
- kind: "unknown";
4278
4404
  })[];
4279
4405
  model: string | null;
4280
4406
  effort: string | null;
@@ -4344,13 +4470,13 @@ export declare const conversationItemDeltaSchema: z.ZodDiscriminatedUnion<"kind"
4344
4470
  itemRevision: z.ZodNumber;
4345
4471
  label: z.ZodString;
4346
4472
  }, "strip", z.ZodTypeAny, {
4347
- label: string;
4348
4473
  kind: "tool_progress_replace";
4474
+ label: string;
4349
4475
  itemId: string;
4350
4476
  itemRevision: number;
4351
4477
  }, {
4352
- label: string;
4353
4478
  kind: "tool_progress_replace";
4479
+ label: string;
4354
4480
  itemId: string;
4355
4481
  itemRevision: number;
4356
4482
  }>]>;
@@ -4936,7 +5062,7 @@ export declare const gitHistoryFileSchema: z.ZodObject<{
4936
5062
  previousPath?: string | undefined;
4937
5063
  }>;
4938
5064
  export type GitHistoryFile = z.infer<typeof gitHistoryFileSchema>;
4939
- export declare const workbenchNodeOperationSchema: z.ZodEnum<["node.workbench.capabilities", "runner.usage.status", "runner.usage.read", "workspace.directories.list", "workspace.remove", "workspace.watch", "workspace.unwatch", "session.metadata.update", "session.pin.move", "session.rewind", "session.remove", "session.config.update", "session.turns.list", "session.events.read", "session.context.read", "session.command.execute", "runner.command.execute", "workspace.activity.read", "runner.profiles.list", "runner.defaults.save", "workspace.files.list", "workspace.file.read", "workspace.files.search", "workspace.files.mutate", "workspace.content.search", "workspace.files.upload.preflight", "workspace.files.upload.create", "workspace.files.upload.chunk", "workspace.files.upload.status", "workspace.files.upload.complete", "workspace.files.upload.cancel", "workspace.changes.current", "workspace.change.diff", "workspace.change.restore", "workspace.git.refs.list", "workspace.git.history.list", "workspace.git.commit.files", "workspace.git.commit.file.diff", "run.image.read", "terminal.open", "terminal.list", "terminal.close", "terminal.attach.authorize", "node.upgrade.request", "node.upgrade.cancel"]>;
5065
+ export declare const workbenchNodeOperationSchema: z.ZodEnum<["node.workbench.capabilities", "runner.usage.status", "runner.usage.read", "workspace.directories.list", "workspace.remove", "workspace.watch", "workspace.unwatch", "session.metadata.update", "session.pin.move", "session.rewind", "session.remove", "session.config.update", "session.turns.list", "session.events.read", "session.context.read", "session.command.execute", "runner.command.execute", "workspace.activity.read", "runner.profiles.list", "runner.defaults.save", "workspace.files.list", "workspace.file.read", "workspace.files.search", "workspace.files.mutate", "workspace.content.search", "workspace.files.upload.preflight", "workspace.files.upload.create", "workspace.files.upload.chunk", "workspace.files.upload.status", "workspace.files.upload.complete", "workspace.files.upload.cancel", "workspace.changes.current", "workspace.change.diff", "workspace.change.restore", "workspace.git.refs.list", "workspace.git.history.list", "workspace.git.commit.files", "workspace.git.commit.file.diff", "run.image.read", "terminal.open", "terminal.list", "terminal.close", "terminal.attach.authorize", "node.upgrade.request", "node.upgrade.cancel", "node.skills.inspect", "node.skills.install", "node.skills.remove", "workspace.skills.inspect", "workspace.skills.install", "workspace.skills.remove", "workspace.skills.git-exclude-repair", "skill.install.job.get", "node.mcps.inspect", "node.mcps.install", "node.mcps.remove", "workspace.mcps.inspect", "workspace.mcps.install", "workspace.mcps.remove"]>;
4940
5066
  export type WorkbenchNodeOperation = z.infer<typeof workbenchNodeOperationSchema>;
4941
5067
  /**
4942
5068
  * A small, explicit envelope keeps WebSocket messages independently parseable
@@ -4963,11 +5089,11 @@ export declare const nodeEnvelopeSchema: z.ZodObject<{
4963
5089
  }>;
4964
5090
  export type NodeEnvelope = z.infer<typeof nodeEnvelopeSchema>;
4965
5091
  export declare const nodeErrorSchema: z.ZodObject<{
4966
- code: z.ZodEnum<["PROTOCOL_VERSION_UNSUPPORTED", "MESSAGE_TYPE_UNKNOWN", "MESSAGE_INVALID", "NODE_UNAUTHENTICATED", "NODE_DISABLED", "REGISTRATION_TOKEN_INVALID", "WORKSPACE_INVALID", "RUN_NOT_FOUND", "RUN_STATE_INVALID", "RUN_LOST", "APPROVAL_NOT_FOUND", "APPROVAL_EXPIRED", "APPROVAL_ALREADY_DECIDED", "APPROVAL_ALREADY_EXISTS", "WORKBENCH_PROTOCOL_UNSUPPORTED", "CAPABILITY_UNAVAILABLE", "CAPABILITY_VERSION_UNSUPPORTED", "CAPABILITY_STALE", "EVENT_CURSOR_INVALID", "EVENT_CURSOR_GAP", "ITEM_REVISION_CONFLICT", "RUNNER_PROFILE_INVALID", "RUNNER_COMMAND_UNSUPPORTED", "FILE_NOT_FOUND", "FILE_NOT_REGULAR", "FILE_TOO_LARGE", "FILE_ENCODING_UNSUPPORTED", "FILE_PATH_ESCAPE", "DIRECTORY_CURSOR_INVALID", "FILE_SEARCH_LIMIT_EXCEEDED", "GIT_CHANGE_RESTORE_UNAVAILABLE", "TERMINAL_UNAVAILABLE", "TERMINAL_LIMIT_REACHED", "TERMINAL_NOT_FOUND", "TERMINAL_ATTACH_CONFLICT", "TERMINAL_REPLAY_GAP", "TERMINAL_DATA_CHANNEL_UNAVAILABLE", "INTERNAL_ERROR"]>;
5092
+ code: z.ZodEnum<["PROTOCOL_VERSION_UNSUPPORTED", "MESSAGE_TYPE_UNKNOWN", "MESSAGE_INVALID", "NODE_UNAUTHENTICATED", "NODE_DISABLED", "REGISTRATION_TOKEN_INVALID", "WORKSPACE_INVALID", "RUN_NOT_FOUND", "RUN_STATE_INVALID", "RUN_LOST", "APPROVAL_NOT_FOUND", "APPROVAL_EXPIRED", "APPROVAL_ALREADY_DECIDED", "APPROVAL_ALREADY_EXISTS", "WORKBENCH_PROTOCOL_UNSUPPORTED", "CAPABILITY_UNAVAILABLE", "CAPABILITY_VERSION_UNSUPPORTED", "CAPABILITY_STALE", "EVENT_CURSOR_INVALID", "EVENT_CURSOR_GAP", "ITEM_REVISION_CONFLICT", "RUNNER_PROFILE_INVALID", "RUNNER_COMMAND_UNSUPPORTED", "FILE_NOT_FOUND", "FILE_NOT_REGULAR", "FILE_TOO_LARGE", "FILE_ENCODING_UNSUPPORTED", "FILE_PATH_ESCAPE", "DIRECTORY_CURSOR_INVALID", "FILE_SEARCH_LIMIT_EXCEEDED", "GIT_CHANGE_RESTORE_UNAVAILABLE", "TERMINAL_UNAVAILABLE", "TERMINAL_LIMIT_REACHED", "TERMINAL_NOT_FOUND", "TERMINAL_ATTACH_CONFLICT", "TERMINAL_REPLAY_GAP", "TERMINAL_DATA_CHANNEL_UNAVAILABLE", "SKILL_TARGET_OFFLINE", "SKILL_TARGET_LIMIT_EXCEEDED", "SKILL_NAME_CONFLICT", "SKILL_PATH_UNSAFE", "SKILL_CONTENT_INVALID", "SKILL_INSTALL_PARTIAL", "SKILL_INSTALL_FAILED", "SKILL_INSTALL_VERSION_UNKNOWN", "SKILL_INSTALL_RECOVERY_REQUIRED", "SKILL_INSTALL_INVALID_LINK", "NODE_SKILL_LINK_UNAVAILABLE", "WORKSPACE_SKILL_GIT_EXCLUDE_FAILED", "WORKSPACE_SKILL_TRACKED_CONFIRM_REQUIRED", "INTERNAL_ERROR"]>;
4967
5093
  }, "strip", z.ZodTypeAny, {
4968
- code: "PROTOCOL_VERSION_UNSUPPORTED" | "MESSAGE_TYPE_UNKNOWN" | "MESSAGE_INVALID" | "NODE_UNAUTHENTICATED" | "NODE_DISABLED" | "REGISTRATION_TOKEN_INVALID" | "WORKSPACE_INVALID" | "RUN_NOT_FOUND" | "RUN_STATE_INVALID" | "RUN_LOST" | "APPROVAL_NOT_FOUND" | "APPROVAL_EXPIRED" | "APPROVAL_ALREADY_DECIDED" | "APPROVAL_ALREADY_EXISTS" | "WORKBENCH_PROTOCOL_UNSUPPORTED" | "CAPABILITY_UNAVAILABLE" | "CAPABILITY_VERSION_UNSUPPORTED" | "CAPABILITY_STALE" | "EVENT_CURSOR_INVALID" | "EVENT_CURSOR_GAP" | "ITEM_REVISION_CONFLICT" | "RUNNER_PROFILE_INVALID" | "RUNNER_COMMAND_UNSUPPORTED" | "FILE_NOT_FOUND" | "FILE_NOT_REGULAR" | "FILE_TOO_LARGE" | "FILE_ENCODING_UNSUPPORTED" | "FILE_PATH_ESCAPE" | "DIRECTORY_CURSOR_INVALID" | "FILE_SEARCH_LIMIT_EXCEEDED" | "GIT_CHANGE_RESTORE_UNAVAILABLE" | "TERMINAL_UNAVAILABLE" | "TERMINAL_LIMIT_REACHED" | "TERMINAL_NOT_FOUND" | "TERMINAL_ATTACH_CONFLICT" | "TERMINAL_REPLAY_GAP" | "TERMINAL_DATA_CHANNEL_UNAVAILABLE" | "INTERNAL_ERROR";
5094
+ code: "PROTOCOL_VERSION_UNSUPPORTED" | "MESSAGE_TYPE_UNKNOWN" | "MESSAGE_INVALID" | "NODE_UNAUTHENTICATED" | "NODE_DISABLED" | "REGISTRATION_TOKEN_INVALID" | "WORKSPACE_INVALID" | "RUN_NOT_FOUND" | "RUN_STATE_INVALID" | "RUN_LOST" | "APPROVAL_NOT_FOUND" | "APPROVAL_EXPIRED" | "APPROVAL_ALREADY_DECIDED" | "APPROVAL_ALREADY_EXISTS" | "WORKBENCH_PROTOCOL_UNSUPPORTED" | "CAPABILITY_UNAVAILABLE" | "CAPABILITY_VERSION_UNSUPPORTED" | "CAPABILITY_STALE" | "EVENT_CURSOR_INVALID" | "EVENT_CURSOR_GAP" | "ITEM_REVISION_CONFLICT" | "RUNNER_PROFILE_INVALID" | "RUNNER_COMMAND_UNSUPPORTED" | "FILE_NOT_FOUND" | "FILE_NOT_REGULAR" | "FILE_TOO_LARGE" | "FILE_ENCODING_UNSUPPORTED" | "FILE_PATH_ESCAPE" | "DIRECTORY_CURSOR_INVALID" | "FILE_SEARCH_LIMIT_EXCEEDED" | "GIT_CHANGE_RESTORE_UNAVAILABLE" | "TERMINAL_UNAVAILABLE" | "TERMINAL_LIMIT_REACHED" | "TERMINAL_NOT_FOUND" | "TERMINAL_ATTACH_CONFLICT" | "TERMINAL_REPLAY_GAP" | "TERMINAL_DATA_CHANNEL_UNAVAILABLE" | "SKILL_TARGET_OFFLINE" | "SKILL_TARGET_LIMIT_EXCEEDED" | "SKILL_NAME_CONFLICT" | "SKILL_PATH_UNSAFE" | "SKILL_CONTENT_INVALID" | "SKILL_INSTALL_PARTIAL" | "SKILL_INSTALL_FAILED" | "SKILL_INSTALL_VERSION_UNKNOWN" | "SKILL_INSTALL_RECOVERY_REQUIRED" | "SKILL_INSTALL_INVALID_LINK" | "NODE_SKILL_LINK_UNAVAILABLE" | "WORKSPACE_SKILL_GIT_EXCLUDE_FAILED" | "WORKSPACE_SKILL_TRACKED_CONFIRM_REQUIRED" | "INTERNAL_ERROR";
4969
5095
  }, {
4970
- code: "PROTOCOL_VERSION_UNSUPPORTED" | "MESSAGE_TYPE_UNKNOWN" | "MESSAGE_INVALID" | "NODE_UNAUTHENTICATED" | "NODE_DISABLED" | "REGISTRATION_TOKEN_INVALID" | "WORKSPACE_INVALID" | "RUN_NOT_FOUND" | "RUN_STATE_INVALID" | "RUN_LOST" | "APPROVAL_NOT_FOUND" | "APPROVAL_EXPIRED" | "APPROVAL_ALREADY_DECIDED" | "APPROVAL_ALREADY_EXISTS" | "WORKBENCH_PROTOCOL_UNSUPPORTED" | "CAPABILITY_UNAVAILABLE" | "CAPABILITY_VERSION_UNSUPPORTED" | "CAPABILITY_STALE" | "EVENT_CURSOR_INVALID" | "EVENT_CURSOR_GAP" | "ITEM_REVISION_CONFLICT" | "RUNNER_PROFILE_INVALID" | "RUNNER_COMMAND_UNSUPPORTED" | "FILE_NOT_FOUND" | "FILE_NOT_REGULAR" | "FILE_TOO_LARGE" | "FILE_ENCODING_UNSUPPORTED" | "FILE_PATH_ESCAPE" | "DIRECTORY_CURSOR_INVALID" | "FILE_SEARCH_LIMIT_EXCEEDED" | "GIT_CHANGE_RESTORE_UNAVAILABLE" | "TERMINAL_UNAVAILABLE" | "TERMINAL_LIMIT_REACHED" | "TERMINAL_NOT_FOUND" | "TERMINAL_ATTACH_CONFLICT" | "TERMINAL_REPLAY_GAP" | "TERMINAL_DATA_CHANNEL_UNAVAILABLE" | "INTERNAL_ERROR";
5096
+ code: "PROTOCOL_VERSION_UNSUPPORTED" | "MESSAGE_TYPE_UNKNOWN" | "MESSAGE_INVALID" | "NODE_UNAUTHENTICATED" | "NODE_DISABLED" | "REGISTRATION_TOKEN_INVALID" | "WORKSPACE_INVALID" | "RUN_NOT_FOUND" | "RUN_STATE_INVALID" | "RUN_LOST" | "APPROVAL_NOT_FOUND" | "APPROVAL_EXPIRED" | "APPROVAL_ALREADY_DECIDED" | "APPROVAL_ALREADY_EXISTS" | "WORKBENCH_PROTOCOL_UNSUPPORTED" | "CAPABILITY_UNAVAILABLE" | "CAPABILITY_VERSION_UNSUPPORTED" | "CAPABILITY_STALE" | "EVENT_CURSOR_INVALID" | "EVENT_CURSOR_GAP" | "ITEM_REVISION_CONFLICT" | "RUNNER_PROFILE_INVALID" | "RUNNER_COMMAND_UNSUPPORTED" | "FILE_NOT_FOUND" | "FILE_NOT_REGULAR" | "FILE_TOO_LARGE" | "FILE_ENCODING_UNSUPPORTED" | "FILE_PATH_ESCAPE" | "DIRECTORY_CURSOR_INVALID" | "FILE_SEARCH_LIMIT_EXCEEDED" | "GIT_CHANGE_RESTORE_UNAVAILABLE" | "TERMINAL_UNAVAILABLE" | "TERMINAL_LIMIT_REACHED" | "TERMINAL_NOT_FOUND" | "TERMINAL_ATTACH_CONFLICT" | "TERMINAL_REPLAY_GAP" | "TERMINAL_DATA_CHANNEL_UNAVAILABLE" | "SKILL_TARGET_OFFLINE" | "SKILL_TARGET_LIMIT_EXCEEDED" | "SKILL_NAME_CONFLICT" | "SKILL_PATH_UNSAFE" | "SKILL_CONTENT_INVALID" | "SKILL_INSTALL_PARTIAL" | "SKILL_INSTALL_FAILED" | "SKILL_INSTALL_VERSION_UNKNOWN" | "SKILL_INSTALL_RECOVERY_REQUIRED" | "SKILL_INSTALL_INVALID_LINK" | "NODE_SKILL_LINK_UNAVAILABLE" | "WORKSPACE_SKILL_GIT_EXCLUDE_FAILED" | "WORKSPACE_SKILL_TRACKED_CONFIRM_REQUIRED" | "INTERNAL_ERROR";
4971
5097
  }>;
4972
5098
  export declare function createEnvelope(type: string, payload: unknown, options?: {
4973
5099
  id?: string;