@ahmadposten/talos-wire 0.1.1 → 0.1.3

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.cts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as z from 'zod';
2
+ import { z as z$1 } from 'zod';
2
3
 
3
4
  declare const MessageMetaSchema: z.ZodObject<{
4
5
  sentFrom: z.ZodOptional<z.ZodString>;
@@ -1030,5 +1031,815 @@ declare const ProviderUsageSnapshotSchema: z.ZodObject<{
1030
1031
  }, z.core.$strip>;
1031
1032
  type ProviderUsageSnapshot = z.infer<typeof ProviderUsageSnapshotSchema>;
1032
1033
 
1033
- export { AgentMessageSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, LegacyMessageContentSchema, MessageContentSchema, MessageMetaSchema, ProviderUsageBalanceSchema, ProviderUsageRequestSchema, ProviderUsageSnapshotSchema, ProviderUsageWindowSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, UpdateBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UsageProviderSchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceConversationDeniedSchema, VoiceConversationGrantedSchema, VoiceConversationResponseSchema, VoiceUsageResponseSchema, authenticationContexts, createEnvelope, encryptionContexts, legacyInstallation, legacyServerBanner, normalizeMetadata, rpcMethods, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStopEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, toWireMetadata };
1034
- export type { AgentMessage, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, LegacyMessageContent, MessageContent, MessageMeta, ProviderUsageBalance, ProviderUsageRequest, ProviderUsageSnapshot, ProviderUsageWindow, SessionEnvelope, SessionEvent, SessionMessage, SessionMessageContent, SessionProtocolMessage, SessionRole, SessionTurnEndStatus, Update, UpdateBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UsageProvider, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceConversationResponse, VoiceUsageResponse };
1034
+ declare const WorkflowAgentSchema: z$1.ZodObject<{
1035
+ id: z$1.ZodString;
1036
+ revision: z$1.ZodNumber;
1037
+ name: z$1.ZodString;
1038
+ description: z$1.ZodString;
1039
+ provider: z$1.ZodLiteral<"codex">;
1040
+ model: z$1.ZodString;
1041
+ effort: z$1.ZodNullable<z$1.ZodString>;
1042
+ permissionMode: z$1.ZodEnum<{
1043
+ default: "default";
1044
+ "read-only": "read-only";
1045
+ }>;
1046
+ instructions: z$1.ZodString;
1047
+ documents: z$1.ZodArray<z$1.ZodObject<{
1048
+ name: z$1.ZodString;
1049
+ content: z$1.ZodString;
1050
+ }, z$1.core.$strip>>;
1051
+ }, z$1.core.$strip>;
1052
+ declare const WorkflowSlotSchema: z$1.ZodObject<{
1053
+ agent: z$1.ZodObject<{
1054
+ id: z$1.ZodString;
1055
+ revision: z$1.ZodNumber;
1056
+ name: z$1.ZodString;
1057
+ description: z$1.ZodString;
1058
+ provider: z$1.ZodLiteral<"codex">;
1059
+ model: z$1.ZodString;
1060
+ effort: z$1.ZodNullable<z$1.ZodString>;
1061
+ permissionMode: z$1.ZodEnum<{
1062
+ default: "default";
1063
+ "read-only": "read-only";
1064
+ }>;
1065
+ instructions: z$1.ZodString;
1066
+ documents: z$1.ZodArray<z$1.ZodObject<{
1067
+ name: z$1.ZodString;
1068
+ content: z$1.ZodString;
1069
+ }, z$1.core.$strip>>;
1070
+ }, z$1.core.$strip>;
1071
+ assignment: z$1.ZodString;
1072
+ }, z$1.core.$strip>;
1073
+ declare const WorkflowStepSchema: z$1.ZodObject<{
1074
+ id: z$1.ZodString;
1075
+ name: z$1.ZodString;
1076
+ kind: z$1.ZodEnum<{
1077
+ plan: "plan";
1078
+ execute: "execute";
1079
+ review: "review";
1080
+ }>;
1081
+ agents: z$1.ZodArray<z$1.ZodObject<{
1082
+ agent: z$1.ZodObject<{
1083
+ id: z$1.ZodString;
1084
+ revision: z$1.ZodNumber;
1085
+ name: z$1.ZodString;
1086
+ description: z$1.ZodString;
1087
+ provider: z$1.ZodLiteral<"codex">;
1088
+ model: z$1.ZodString;
1089
+ effort: z$1.ZodNullable<z$1.ZodString>;
1090
+ permissionMode: z$1.ZodEnum<{
1091
+ default: "default";
1092
+ "read-only": "read-only";
1093
+ }>;
1094
+ instructions: z$1.ZodString;
1095
+ documents: z$1.ZodArray<z$1.ZodObject<{
1096
+ name: z$1.ZodString;
1097
+ content: z$1.ZodString;
1098
+ }, z$1.core.$strip>>;
1099
+ }, z$1.core.$strip>;
1100
+ assignment: z$1.ZodString;
1101
+ }, z$1.core.$strip>>;
1102
+ criteria: z$1.ZodString;
1103
+ checks: z$1.ZodArray<z$1.ZodObject<{
1104
+ name: z$1.ZodString;
1105
+ command: z$1.ZodString;
1106
+ }, z$1.core.$strip>>;
1107
+ }, z$1.core.$strip>;
1108
+ type WorkflowStep = z$1.infer<typeof WorkflowStepSchema>;
1109
+ /** Legacy summaries are derived, never independently editable in a staged workflow. */
1110
+ declare function workflowProjection(steps: WorkflowStep[]): {
1111
+ planners: {
1112
+ agent: {
1113
+ id: string;
1114
+ revision: number;
1115
+ name: string;
1116
+ description: string;
1117
+ provider: "codex";
1118
+ model: string;
1119
+ effort: string | null;
1120
+ permissionMode: "default" | "read-only";
1121
+ instructions: string;
1122
+ documents: {
1123
+ name: string;
1124
+ content: string;
1125
+ }[];
1126
+ };
1127
+ assignment: string;
1128
+ }[];
1129
+ executor: {
1130
+ agent: {
1131
+ id: string;
1132
+ revision: number;
1133
+ name: string;
1134
+ description: string;
1135
+ provider: "codex";
1136
+ model: string;
1137
+ effort: string | null;
1138
+ permissionMode: "default" | "read-only";
1139
+ instructions: string;
1140
+ documents: {
1141
+ name: string;
1142
+ content: string;
1143
+ }[];
1144
+ };
1145
+ assignment: string;
1146
+ } | undefined;
1147
+ reviewers: {
1148
+ agent: {
1149
+ id: string;
1150
+ revision: number;
1151
+ name: string;
1152
+ description: string;
1153
+ provider: "codex";
1154
+ model: string;
1155
+ effort: string | null;
1156
+ permissionMode: "default" | "read-only";
1157
+ instructions: string;
1158
+ documents: {
1159
+ name: string;
1160
+ content: string;
1161
+ }[];
1162
+ };
1163
+ assignment: string;
1164
+ }[];
1165
+ };
1166
+ declare const WorkflowDefinitionSchema: z$1.ZodObject<{
1167
+ id: z$1.ZodString;
1168
+ revision: z$1.ZodNumber;
1169
+ name: z$1.ZodString;
1170
+ description: z$1.ZodString;
1171
+ planners: z$1.ZodArray<z$1.ZodObject<{
1172
+ agent: z$1.ZodObject<{
1173
+ id: z$1.ZodString;
1174
+ revision: z$1.ZodNumber;
1175
+ name: z$1.ZodString;
1176
+ description: z$1.ZodString;
1177
+ provider: z$1.ZodLiteral<"codex">;
1178
+ model: z$1.ZodString;
1179
+ effort: z$1.ZodNullable<z$1.ZodString>;
1180
+ permissionMode: z$1.ZodEnum<{
1181
+ default: "default";
1182
+ "read-only": "read-only";
1183
+ }>;
1184
+ instructions: z$1.ZodString;
1185
+ documents: z$1.ZodArray<z$1.ZodObject<{
1186
+ name: z$1.ZodString;
1187
+ content: z$1.ZodString;
1188
+ }, z$1.core.$strip>>;
1189
+ }, z$1.core.$strip>;
1190
+ assignment: z$1.ZodString;
1191
+ }, z$1.core.$strip>>;
1192
+ executor: z$1.ZodObject<{
1193
+ agent: z$1.ZodObject<{
1194
+ id: z$1.ZodString;
1195
+ revision: z$1.ZodNumber;
1196
+ name: z$1.ZodString;
1197
+ description: z$1.ZodString;
1198
+ provider: z$1.ZodLiteral<"codex">;
1199
+ model: z$1.ZodString;
1200
+ effort: z$1.ZodNullable<z$1.ZodString>;
1201
+ permissionMode: z$1.ZodEnum<{
1202
+ default: "default";
1203
+ "read-only": "read-only";
1204
+ }>;
1205
+ instructions: z$1.ZodString;
1206
+ documents: z$1.ZodArray<z$1.ZodObject<{
1207
+ name: z$1.ZodString;
1208
+ content: z$1.ZodString;
1209
+ }, z$1.core.$strip>>;
1210
+ }, z$1.core.$strip>;
1211
+ assignment: z$1.ZodString;
1212
+ }, z$1.core.$strip>;
1213
+ reviewers: z$1.ZodArray<z$1.ZodObject<{
1214
+ agent: z$1.ZodObject<{
1215
+ id: z$1.ZodString;
1216
+ revision: z$1.ZodNumber;
1217
+ name: z$1.ZodString;
1218
+ description: z$1.ZodString;
1219
+ provider: z$1.ZodLiteral<"codex">;
1220
+ model: z$1.ZodString;
1221
+ effort: z$1.ZodNullable<z$1.ZodString>;
1222
+ permissionMode: z$1.ZodEnum<{
1223
+ default: "default";
1224
+ "read-only": "read-only";
1225
+ }>;
1226
+ instructions: z$1.ZodString;
1227
+ documents: z$1.ZodArray<z$1.ZodObject<{
1228
+ name: z$1.ZodString;
1229
+ content: z$1.ZodString;
1230
+ }, z$1.core.$strip>>;
1231
+ }, z$1.core.$strip>;
1232
+ assignment: z$1.ZodString;
1233
+ }, z$1.core.$strip>>;
1234
+ steps: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1235
+ id: z$1.ZodString;
1236
+ name: z$1.ZodString;
1237
+ kind: z$1.ZodEnum<{
1238
+ plan: "plan";
1239
+ execute: "execute";
1240
+ review: "review";
1241
+ }>;
1242
+ agents: z$1.ZodArray<z$1.ZodObject<{
1243
+ agent: z$1.ZodObject<{
1244
+ id: z$1.ZodString;
1245
+ revision: z$1.ZodNumber;
1246
+ name: z$1.ZodString;
1247
+ description: z$1.ZodString;
1248
+ provider: z$1.ZodLiteral<"codex">;
1249
+ model: z$1.ZodString;
1250
+ effort: z$1.ZodNullable<z$1.ZodString>;
1251
+ permissionMode: z$1.ZodEnum<{
1252
+ default: "default";
1253
+ "read-only": "read-only";
1254
+ }>;
1255
+ instructions: z$1.ZodString;
1256
+ documents: z$1.ZodArray<z$1.ZodObject<{
1257
+ name: z$1.ZodString;
1258
+ content: z$1.ZodString;
1259
+ }, z$1.core.$strip>>;
1260
+ }, z$1.core.$strip>;
1261
+ assignment: z$1.ZodString;
1262
+ }, z$1.core.$strip>>;
1263
+ criteria: z$1.ZodString;
1264
+ checks: z$1.ZodArray<z$1.ZodObject<{
1265
+ name: z$1.ZodString;
1266
+ command: z$1.ZodString;
1267
+ }, z$1.core.$strip>>;
1268
+ }, z$1.core.$strip>>>;
1269
+ criteria: z$1.ZodString;
1270
+ checks: z$1.ZodArray<z$1.ZodObject<{
1271
+ name: z$1.ZodString;
1272
+ command: z$1.ZodString;
1273
+ }, z$1.core.$strip>>;
1274
+ planningRounds: z$1.ZodNumber;
1275
+ reviewRounds: z$1.ZodNumber;
1276
+ turnMinutes: z$1.ZodNumber;
1277
+ maxTurns: z$1.ZodNumber;
1278
+ approvePlan: z$1.ZodBoolean;
1279
+ updatedAt: z$1.ZodNumber;
1280
+ }, z$1.core.$strip>;
1281
+ declare const WorkflowLibrarySchema: z$1.ZodArray<z$1.ZodObject<{
1282
+ id: z$1.ZodString;
1283
+ revision: z$1.ZodNumber;
1284
+ name: z$1.ZodString;
1285
+ description: z$1.ZodString;
1286
+ planners: z$1.ZodArray<z$1.ZodObject<{
1287
+ agent: z$1.ZodObject<{
1288
+ id: z$1.ZodString;
1289
+ revision: z$1.ZodNumber;
1290
+ name: z$1.ZodString;
1291
+ description: z$1.ZodString;
1292
+ provider: z$1.ZodLiteral<"codex">;
1293
+ model: z$1.ZodString;
1294
+ effort: z$1.ZodNullable<z$1.ZodString>;
1295
+ permissionMode: z$1.ZodEnum<{
1296
+ default: "default";
1297
+ "read-only": "read-only";
1298
+ }>;
1299
+ instructions: z$1.ZodString;
1300
+ documents: z$1.ZodArray<z$1.ZodObject<{
1301
+ name: z$1.ZodString;
1302
+ content: z$1.ZodString;
1303
+ }, z$1.core.$strip>>;
1304
+ }, z$1.core.$strip>;
1305
+ assignment: z$1.ZodString;
1306
+ }, z$1.core.$strip>>;
1307
+ executor: z$1.ZodObject<{
1308
+ agent: z$1.ZodObject<{
1309
+ id: z$1.ZodString;
1310
+ revision: z$1.ZodNumber;
1311
+ name: z$1.ZodString;
1312
+ description: z$1.ZodString;
1313
+ provider: z$1.ZodLiteral<"codex">;
1314
+ model: z$1.ZodString;
1315
+ effort: z$1.ZodNullable<z$1.ZodString>;
1316
+ permissionMode: z$1.ZodEnum<{
1317
+ default: "default";
1318
+ "read-only": "read-only";
1319
+ }>;
1320
+ instructions: z$1.ZodString;
1321
+ documents: z$1.ZodArray<z$1.ZodObject<{
1322
+ name: z$1.ZodString;
1323
+ content: z$1.ZodString;
1324
+ }, z$1.core.$strip>>;
1325
+ }, z$1.core.$strip>;
1326
+ assignment: z$1.ZodString;
1327
+ }, z$1.core.$strip>;
1328
+ reviewers: z$1.ZodArray<z$1.ZodObject<{
1329
+ agent: z$1.ZodObject<{
1330
+ id: z$1.ZodString;
1331
+ revision: z$1.ZodNumber;
1332
+ name: z$1.ZodString;
1333
+ description: z$1.ZodString;
1334
+ provider: z$1.ZodLiteral<"codex">;
1335
+ model: z$1.ZodString;
1336
+ effort: z$1.ZodNullable<z$1.ZodString>;
1337
+ permissionMode: z$1.ZodEnum<{
1338
+ default: "default";
1339
+ "read-only": "read-only";
1340
+ }>;
1341
+ instructions: z$1.ZodString;
1342
+ documents: z$1.ZodArray<z$1.ZodObject<{
1343
+ name: z$1.ZodString;
1344
+ content: z$1.ZodString;
1345
+ }, z$1.core.$strip>>;
1346
+ }, z$1.core.$strip>;
1347
+ assignment: z$1.ZodString;
1348
+ }, z$1.core.$strip>>;
1349
+ steps: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1350
+ id: z$1.ZodString;
1351
+ name: z$1.ZodString;
1352
+ kind: z$1.ZodEnum<{
1353
+ plan: "plan";
1354
+ execute: "execute";
1355
+ review: "review";
1356
+ }>;
1357
+ agents: z$1.ZodArray<z$1.ZodObject<{
1358
+ agent: z$1.ZodObject<{
1359
+ id: z$1.ZodString;
1360
+ revision: z$1.ZodNumber;
1361
+ name: z$1.ZodString;
1362
+ description: z$1.ZodString;
1363
+ provider: z$1.ZodLiteral<"codex">;
1364
+ model: z$1.ZodString;
1365
+ effort: z$1.ZodNullable<z$1.ZodString>;
1366
+ permissionMode: z$1.ZodEnum<{
1367
+ default: "default";
1368
+ "read-only": "read-only";
1369
+ }>;
1370
+ instructions: z$1.ZodString;
1371
+ documents: z$1.ZodArray<z$1.ZodObject<{
1372
+ name: z$1.ZodString;
1373
+ content: z$1.ZodString;
1374
+ }, z$1.core.$strip>>;
1375
+ }, z$1.core.$strip>;
1376
+ assignment: z$1.ZodString;
1377
+ }, z$1.core.$strip>>;
1378
+ criteria: z$1.ZodString;
1379
+ checks: z$1.ZodArray<z$1.ZodObject<{
1380
+ name: z$1.ZodString;
1381
+ command: z$1.ZodString;
1382
+ }, z$1.core.$strip>>;
1383
+ }, z$1.core.$strip>>>;
1384
+ criteria: z$1.ZodString;
1385
+ checks: z$1.ZodArray<z$1.ZodObject<{
1386
+ name: z$1.ZodString;
1387
+ command: z$1.ZodString;
1388
+ }, z$1.core.$strip>>;
1389
+ planningRounds: z$1.ZodNumber;
1390
+ reviewRounds: z$1.ZodNumber;
1391
+ turnMinutes: z$1.ZodNumber;
1392
+ maxTurns: z$1.ZodNumber;
1393
+ approvePlan: z$1.ZodBoolean;
1394
+ updatedAt: z$1.ZodNumber;
1395
+ }, z$1.core.$strip>>;
1396
+ type WorkflowDefinition = z$1.infer<typeof WorkflowDefinitionSchema>;
1397
+ type WorkflowSlot = z$1.infer<typeof WorkflowSlotSchema>;
1398
+ declare function workflowSlots(d: WorkflowDefinition): WorkflowSlot[];
1399
+ type WorkflowAgent = z$1.infer<typeof WorkflowAgentSchema>;
1400
+ declare const WorkflowStageSchema: z$1.ZodEnum<{
1401
+ execute: "execute";
1402
+ review: "review";
1403
+ propose: "propose";
1404
+ consolidate: "consolidate";
1405
+ plan_vote: "plan_vote";
1406
+ verify: "verify";
1407
+ }>;
1408
+ type WorkflowStage = z$1.infer<typeof WorkflowStageSchema>;
1409
+ declare const WorkflowDecisionSchema: z$1.ZodObject<{
1410
+ decision: z$1.ZodEnum<{
1411
+ approve: "approve";
1412
+ changes: "changes";
1413
+ information: "information";
1414
+ replan: "replan";
1415
+ }>;
1416
+ summary: z$1.ZodString;
1417
+ document: z$1.ZodString;
1418
+ findings: z$1.ZodArray<z$1.ZodObject<{
1419
+ title: z$1.ZodString;
1420
+ evidence: z$1.ZodString;
1421
+ correction: z$1.ZodString;
1422
+ blocking: z$1.ZodBoolean;
1423
+ }, z$1.core.$strip>>;
1424
+ }, z$1.core.$strip>;
1425
+ type WorkflowDecision = z$1.infer<typeof WorkflowDecisionSchema>;
1426
+ declare const WorkflowTaskSchema: z$1.ZodObject<{
1427
+ id: z$1.ZodString;
1428
+ stage: z$1.ZodEnum<{
1429
+ execute: "execute";
1430
+ review: "review";
1431
+ propose: "propose";
1432
+ consolidate: "consolidate";
1433
+ plan_vote: "plan_vote";
1434
+ verify: "verify";
1435
+ }>;
1436
+ round: z$1.ZodNumber;
1437
+ agentId: z$1.ZodString;
1438
+ agentName: z$1.ZodString;
1439
+ stepId: z$1.ZodOptional<z$1.ZodString>;
1440
+ attempt: z$1.ZodOptional<z$1.ZodNumber>;
1441
+ clarifications: z$1.ZodOptional<z$1.ZodNumber>;
1442
+ assignment: z$1.ZodString;
1443
+ version: z$1.ZodString;
1444
+ status: z$1.ZodEnum<{
1445
+ running: "running";
1446
+ done: "done";
1447
+ interrupted: "interrupted";
1448
+ }>;
1449
+ startedAt: z$1.ZodNumber;
1450
+ completedAt: z$1.ZodOptional<z$1.ZodNumber>;
1451
+ sessionId: z$1.ZodOptional<z$1.ZodString>;
1452
+ threadId: z$1.ZodOptional<z$1.ZodString>;
1453
+ prompt: z$1.ZodString;
1454
+ result: z$1.ZodOptional<z$1.ZodObject<{
1455
+ decision: z$1.ZodEnum<{
1456
+ approve: "approve";
1457
+ changes: "changes";
1458
+ information: "information";
1459
+ replan: "replan";
1460
+ }>;
1461
+ summary: z$1.ZodString;
1462
+ document: z$1.ZodString;
1463
+ findings: z$1.ZodArray<z$1.ZodObject<{
1464
+ title: z$1.ZodString;
1465
+ evidence: z$1.ZodString;
1466
+ correction: z$1.ZodString;
1467
+ blocking: z$1.ZodBoolean;
1468
+ }, z$1.core.$strip>>;
1469
+ }, z$1.core.$strip>>;
1470
+ error: z$1.ZodOptional<z$1.ZodString>;
1471
+ }, z$1.core.$strip>;
1472
+ declare const WorkflowRunSchema: z$1.ZodObject<{
1473
+ id: z$1.ZodString;
1474
+ revision: z$1.ZodNumber;
1475
+ definition: z$1.ZodObject<{
1476
+ id: z$1.ZodString;
1477
+ revision: z$1.ZodNumber;
1478
+ name: z$1.ZodString;
1479
+ description: z$1.ZodString;
1480
+ planners: z$1.ZodArray<z$1.ZodObject<{
1481
+ agent: z$1.ZodObject<{
1482
+ id: z$1.ZodString;
1483
+ revision: z$1.ZodNumber;
1484
+ name: z$1.ZodString;
1485
+ description: z$1.ZodString;
1486
+ provider: z$1.ZodLiteral<"codex">;
1487
+ model: z$1.ZodString;
1488
+ effort: z$1.ZodNullable<z$1.ZodString>;
1489
+ permissionMode: z$1.ZodEnum<{
1490
+ default: "default";
1491
+ "read-only": "read-only";
1492
+ }>;
1493
+ instructions: z$1.ZodString;
1494
+ documents: z$1.ZodArray<z$1.ZodObject<{
1495
+ name: z$1.ZodString;
1496
+ content: z$1.ZodString;
1497
+ }, z$1.core.$strip>>;
1498
+ }, z$1.core.$strip>;
1499
+ assignment: z$1.ZodString;
1500
+ }, z$1.core.$strip>>;
1501
+ executor: z$1.ZodObject<{
1502
+ agent: z$1.ZodObject<{
1503
+ id: z$1.ZodString;
1504
+ revision: z$1.ZodNumber;
1505
+ name: z$1.ZodString;
1506
+ description: z$1.ZodString;
1507
+ provider: z$1.ZodLiteral<"codex">;
1508
+ model: z$1.ZodString;
1509
+ effort: z$1.ZodNullable<z$1.ZodString>;
1510
+ permissionMode: z$1.ZodEnum<{
1511
+ default: "default";
1512
+ "read-only": "read-only";
1513
+ }>;
1514
+ instructions: z$1.ZodString;
1515
+ documents: z$1.ZodArray<z$1.ZodObject<{
1516
+ name: z$1.ZodString;
1517
+ content: z$1.ZodString;
1518
+ }, z$1.core.$strip>>;
1519
+ }, z$1.core.$strip>;
1520
+ assignment: z$1.ZodString;
1521
+ }, z$1.core.$strip>;
1522
+ reviewers: z$1.ZodArray<z$1.ZodObject<{
1523
+ agent: z$1.ZodObject<{
1524
+ id: z$1.ZodString;
1525
+ revision: z$1.ZodNumber;
1526
+ name: z$1.ZodString;
1527
+ description: z$1.ZodString;
1528
+ provider: z$1.ZodLiteral<"codex">;
1529
+ model: z$1.ZodString;
1530
+ effort: z$1.ZodNullable<z$1.ZodString>;
1531
+ permissionMode: z$1.ZodEnum<{
1532
+ default: "default";
1533
+ "read-only": "read-only";
1534
+ }>;
1535
+ instructions: z$1.ZodString;
1536
+ documents: z$1.ZodArray<z$1.ZodObject<{
1537
+ name: z$1.ZodString;
1538
+ content: z$1.ZodString;
1539
+ }, z$1.core.$strip>>;
1540
+ }, z$1.core.$strip>;
1541
+ assignment: z$1.ZodString;
1542
+ }, z$1.core.$strip>>;
1543
+ steps: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1544
+ id: z$1.ZodString;
1545
+ name: z$1.ZodString;
1546
+ kind: z$1.ZodEnum<{
1547
+ plan: "plan";
1548
+ execute: "execute";
1549
+ review: "review";
1550
+ }>;
1551
+ agents: z$1.ZodArray<z$1.ZodObject<{
1552
+ agent: z$1.ZodObject<{
1553
+ id: z$1.ZodString;
1554
+ revision: z$1.ZodNumber;
1555
+ name: z$1.ZodString;
1556
+ description: z$1.ZodString;
1557
+ provider: z$1.ZodLiteral<"codex">;
1558
+ model: z$1.ZodString;
1559
+ effort: z$1.ZodNullable<z$1.ZodString>;
1560
+ permissionMode: z$1.ZodEnum<{
1561
+ default: "default";
1562
+ "read-only": "read-only";
1563
+ }>;
1564
+ instructions: z$1.ZodString;
1565
+ documents: z$1.ZodArray<z$1.ZodObject<{
1566
+ name: z$1.ZodString;
1567
+ content: z$1.ZodString;
1568
+ }, z$1.core.$strip>>;
1569
+ }, z$1.core.$strip>;
1570
+ assignment: z$1.ZodString;
1571
+ }, z$1.core.$strip>>;
1572
+ criteria: z$1.ZodString;
1573
+ checks: z$1.ZodArray<z$1.ZodObject<{
1574
+ name: z$1.ZodString;
1575
+ command: z$1.ZodString;
1576
+ }, z$1.core.$strip>>;
1577
+ }, z$1.core.$strip>>>;
1578
+ criteria: z$1.ZodString;
1579
+ checks: z$1.ZodArray<z$1.ZodObject<{
1580
+ name: z$1.ZodString;
1581
+ command: z$1.ZodString;
1582
+ }, z$1.core.$strip>>;
1583
+ planningRounds: z$1.ZodNumber;
1584
+ reviewRounds: z$1.ZodNumber;
1585
+ turnMinutes: z$1.ZodNumber;
1586
+ maxTurns: z$1.ZodNumber;
1587
+ approvePlan: z$1.ZodBoolean;
1588
+ updatedAt: z$1.ZodNumber;
1589
+ }, z$1.core.$strip>;
1590
+ machineId: z$1.ZodString;
1591
+ task: z$1.ZodString;
1592
+ requestedDirectory: z$1.ZodOptional<z$1.ZodString>;
1593
+ sourceDirectory: z$1.ZodString;
1594
+ directory: z$1.ZodString;
1595
+ branch: z$1.ZodString;
1596
+ baseCommit: z$1.ZodString;
1597
+ status: z$1.ZodEnum<{
1598
+ cancelled: "cancelled";
1599
+ running: "running";
1600
+ paused: "paused";
1601
+ needs_input: "needs_input";
1602
+ complete: "complete";
1603
+ }>;
1604
+ stage: z$1.ZodEnum<{
1605
+ execute: "execute";
1606
+ review: "review";
1607
+ propose: "propose";
1608
+ consolidate: "consolidate";
1609
+ plan_vote: "plan_vote";
1610
+ verify: "verify";
1611
+ }>;
1612
+ stepIndex: z$1.ZodOptional<z$1.ZodNumber>;
1613
+ stepAttempt: z$1.ZodOptional<z$1.ZodNumber>;
1614
+ stepRounds: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodNumber>>;
1615
+ completedSteps: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
1616
+ planningRound: z$1.ZodNumber;
1617
+ reviewRound: z$1.ZodNumber;
1618
+ planVersion: z$1.ZodNumber;
1619
+ plan: z$1.ZodString;
1620
+ artifactVersion: z$1.ZodString;
1621
+ reason: z$1.ZodString;
1622
+ tasks: z$1.ZodArray<z$1.ZodObject<{
1623
+ id: z$1.ZodString;
1624
+ stage: z$1.ZodEnum<{
1625
+ execute: "execute";
1626
+ review: "review";
1627
+ propose: "propose";
1628
+ consolidate: "consolidate";
1629
+ plan_vote: "plan_vote";
1630
+ verify: "verify";
1631
+ }>;
1632
+ round: z$1.ZodNumber;
1633
+ agentId: z$1.ZodString;
1634
+ agentName: z$1.ZodString;
1635
+ stepId: z$1.ZodOptional<z$1.ZodString>;
1636
+ attempt: z$1.ZodOptional<z$1.ZodNumber>;
1637
+ clarifications: z$1.ZodOptional<z$1.ZodNumber>;
1638
+ assignment: z$1.ZodString;
1639
+ version: z$1.ZodString;
1640
+ status: z$1.ZodEnum<{
1641
+ running: "running";
1642
+ done: "done";
1643
+ interrupted: "interrupted";
1644
+ }>;
1645
+ startedAt: z$1.ZodNumber;
1646
+ completedAt: z$1.ZodOptional<z$1.ZodNumber>;
1647
+ sessionId: z$1.ZodOptional<z$1.ZodString>;
1648
+ threadId: z$1.ZodOptional<z$1.ZodString>;
1649
+ prompt: z$1.ZodString;
1650
+ result: z$1.ZodOptional<z$1.ZodObject<{
1651
+ decision: z$1.ZodEnum<{
1652
+ approve: "approve";
1653
+ changes: "changes";
1654
+ information: "information";
1655
+ replan: "replan";
1656
+ }>;
1657
+ summary: z$1.ZodString;
1658
+ document: z$1.ZodString;
1659
+ findings: z$1.ZodArray<z$1.ZodObject<{
1660
+ title: z$1.ZodString;
1661
+ evidence: z$1.ZodString;
1662
+ correction: z$1.ZodString;
1663
+ blocking: z$1.ZodBoolean;
1664
+ }, z$1.core.$strip>>;
1665
+ }, z$1.core.$strip>>;
1666
+ error: z$1.ZodOptional<z$1.ZodString>;
1667
+ }, z$1.core.$strip>>;
1668
+ checks: z$1.ZodArray<z$1.ZodObject<{
1669
+ name: z$1.ZodString;
1670
+ exitCode: z$1.ZodNullable<z$1.ZodNumber>;
1671
+ output: z$1.ZodString;
1672
+ version: z$1.ZodString;
1673
+ }, z$1.core.$strip>>;
1674
+ events: z$1.ZodArray<z$1.ZodObject<{
1675
+ at: z$1.ZodNumber;
1676
+ text: z$1.ZodString;
1677
+ }, z$1.core.$strip>>;
1678
+ notes: z$1.ZodArray<z$1.ZodString>;
1679
+ approvedPlanVersion: z$1.ZodNullable<z$1.ZodNumber>;
1680
+ createdAt: z$1.ZodNumber;
1681
+ updatedAt: z$1.ZodNumber;
1682
+ }, z$1.core.$strip>;
1683
+ type WorkflowRun = z$1.infer<typeof WorkflowRunSchema>;
1684
+ type WorkflowTask = z$1.infer<typeof WorkflowTaskSchema>;
1685
+ declare const WorkflowStartSchema: z$1.ZodObject<{
1686
+ id: z$1.ZodString;
1687
+ definition: z$1.ZodObject<{
1688
+ id: z$1.ZodString;
1689
+ revision: z$1.ZodNumber;
1690
+ name: z$1.ZodString;
1691
+ description: z$1.ZodString;
1692
+ planners: z$1.ZodArray<z$1.ZodObject<{
1693
+ agent: z$1.ZodObject<{
1694
+ id: z$1.ZodString;
1695
+ revision: z$1.ZodNumber;
1696
+ name: z$1.ZodString;
1697
+ description: z$1.ZodString;
1698
+ provider: z$1.ZodLiteral<"codex">;
1699
+ model: z$1.ZodString;
1700
+ effort: z$1.ZodNullable<z$1.ZodString>;
1701
+ permissionMode: z$1.ZodEnum<{
1702
+ default: "default";
1703
+ "read-only": "read-only";
1704
+ }>;
1705
+ instructions: z$1.ZodString;
1706
+ documents: z$1.ZodArray<z$1.ZodObject<{
1707
+ name: z$1.ZodString;
1708
+ content: z$1.ZodString;
1709
+ }, z$1.core.$strip>>;
1710
+ }, z$1.core.$strip>;
1711
+ assignment: z$1.ZodString;
1712
+ }, z$1.core.$strip>>;
1713
+ executor: z$1.ZodObject<{
1714
+ agent: z$1.ZodObject<{
1715
+ id: z$1.ZodString;
1716
+ revision: z$1.ZodNumber;
1717
+ name: z$1.ZodString;
1718
+ description: z$1.ZodString;
1719
+ provider: z$1.ZodLiteral<"codex">;
1720
+ model: z$1.ZodString;
1721
+ effort: z$1.ZodNullable<z$1.ZodString>;
1722
+ permissionMode: z$1.ZodEnum<{
1723
+ default: "default";
1724
+ "read-only": "read-only";
1725
+ }>;
1726
+ instructions: z$1.ZodString;
1727
+ documents: z$1.ZodArray<z$1.ZodObject<{
1728
+ name: z$1.ZodString;
1729
+ content: z$1.ZodString;
1730
+ }, z$1.core.$strip>>;
1731
+ }, z$1.core.$strip>;
1732
+ assignment: z$1.ZodString;
1733
+ }, z$1.core.$strip>;
1734
+ reviewers: z$1.ZodArray<z$1.ZodObject<{
1735
+ agent: z$1.ZodObject<{
1736
+ id: z$1.ZodString;
1737
+ revision: z$1.ZodNumber;
1738
+ name: z$1.ZodString;
1739
+ description: z$1.ZodString;
1740
+ provider: z$1.ZodLiteral<"codex">;
1741
+ model: z$1.ZodString;
1742
+ effort: z$1.ZodNullable<z$1.ZodString>;
1743
+ permissionMode: z$1.ZodEnum<{
1744
+ default: "default";
1745
+ "read-only": "read-only";
1746
+ }>;
1747
+ instructions: z$1.ZodString;
1748
+ documents: z$1.ZodArray<z$1.ZodObject<{
1749
+ name: z$1.ZodString;
1750
+ content: z$1.ZodString;
1751
+ }, z$1.core.$strip>>;
1752
+ }, z$1.core.$strip>;
1753
+ assignment: z$1.ZodString;
1754
+ }, z$1.core.$strip>>;
1755
+ steps: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1756
+ id: z$1.ZodString;
1757
+ name: z$1.ZodString;
1758
+ kind: z$1.ZodEnum<{
1759
+ plan: "plan";
1760
+ execute: "execute";
1761
+ review: "review";
1762
+ }>;
1763
+ agents: z$1.ZodArray<z$1.ZodObject<{
1764
+ agent: z$1.ZodObject<{
1765
+ id: z$1.ZodString;
1766
+ revision: z$1.ZodNumber;
1767
+ name: z$1.ZodString;
1768
+ description: z$1.ZodString;
1769
+ provider: z$1.ZodLiteral<"codex">;
1770
+ model: z$1.ZodString;
1771
+ effort: z$1.ZodNullable<z$1.ZodString>;
1772
+ permissionMode: z$1.ZodEnum<{
1773
+ default: "default";
1774
+ "read-only": "read-only";
1775
+ }>;
1776
+ instructions: z$1.ZodString;
1777
+ documents: z$1.ZodArray<z$1.ZodObject<{
1778
+ name: z$1.ZodString;
1779
+ content: z$1.ZodString;
1780
+ }, z$1.core.$strip>>;
1781
+ }, z$1.core.$strip>;
1782
+ assignment: z$1.ZodString;
1783
+ }, z$1.core.$strip>>;
1784
+ criteria: z$1.ZodString;
1785
+ checks: z$1.ZodArray<z$1.ZodObject<{
1786
+ name: z$1.ZodString;
1787
+ command: z$1.ZodString;
1788
+ }, z$1.core.$strip>>;
1789
+ }, z$1.core.$strip>>>;
1790
+ criteria: z$1.ZodString;
1791
+ checks: z$1.ZodArray<z$1.ZodObject<{
1792
+ name: z$1.ZodString;
1793
+ command: z$1.ZodString;
1794
+ }, z$1.core.$strip>>;
1795
+ planningRounds: z$1.ZodNumber;
1796
+ reviewRounds: z$1.ZodNumber;
1797
+ turnMinutes: z$1.ZodNumber;
1798
+ maxTurns: z$1.ZodNumber;
1799
+ approvePlan: z$1.ZodBoolean;
1800
+ updatedAt: z$1.ZodNumber;
1801
+ }, z$1.core.$strip>;
1802
+ task: z$1.ZodString;
1803
+ directory: z$1.ZodString;
1804
+ }, z$1.core.$strip>;
1805
+ declare const WorkflowActionSchema: z$1.ZodObject<{
1806
+ id: z$1.ZodString;
1807
+ expectedRevision: z$1.ZodNumber;
1808
+ action: z$1.ZodEnum<{
1809
+ pause: "pause";
1810
+ resume: "resume";
1811
+ cancel: "cancel";
1812
+ approve_plan: "approve_plan";
1813
+ revise_plan: "revise_plan";
1814
+ retry_review: "retry_review";
1815
+ replace_agent: "replace_agent";
1816
+ }>;
1817
+ note: z$1.ZodDefault<z$1.ZodString>;
1818
+ agentId: z$1.ZodOptional<z$1.ZodString>;
1819
+ replacement: z$1.ZodOptional<z$1.ZodObject<{
1820
+ id: z$1.ZodString;
1821
+ revision: z$1.ZodNumber;
1822
+ name: z$1.ZodString;
1823
+ description: z$1.ZodString;
1824
+ provider: z$1.ZodLiteral<"codex">;
1825
+ model: z$1.ZodString;
1826
+ effort: z$1.ZodNullable<z$1.ZodString>;
1827
+ permissionMode: z$1.ZodEnum<{
1828
+ default: "default";
1829
+ "read-only": "read-only";
1830
+ }>;
1831
+ instructions: z$1.ZodString;
1832
+ documents: z$1.ZodArray<z$1.ZodObject<{
1833
+ name: z$1.ZodString;
1834
+ content: z$1.ZodString;
1835
+ }, z$1.core.$strip>>;
1836
+ }, z$1.core.$strip>>;
1837
+ }, z$1.core.$strip>;
1838
+ declare function workflowEnabled(s: {
1839
+ experiments?: boolean;
1840
+ expWorkflows?: boolean;
1841
+ }): boolean;
1842
+ declare const workflowStageLabel: Record<WorkflowStage, string>;
1843
+
1844
+ export { AgentMessageSchema, ApiMessageSchema, ApiUpdateMachineStateSchema, ApiUpdateNewMessageSchema, ApiUpdateSessionStateSchema, CoreUpdateBodySchema, CoreUpdateContainerSchema, LegacyMessageContentSchema, MessageContentSchema, MessageMetaSchema, ProviderUsageBalanceSchema, ProviderUsageRequestSchema, ProviderUsageSnapshotSchema, ProviderUsageWindowSchema, SessionMessageContentSchema, SessionMessageSchema, SessionProtocolMessageSchema, UpdateBodySchema, UpdateMachineBodySchema, UpdateNewMessageBodySchema, UpdateSchema, UpdateSessionBodySchema, UsageProviderSchema, UserMessageSchema, VersionedEncryptedValueSchema, VersionedMachineEncryptedValueSchema, VersionedNullableEncryptedValueSchema, VoiceConversationDeniedSchema, VoiceConversationGrantedSchema, VoiceConversationResponseSchema, VoiceUsageResponseSchema, WorkflowActionSchema, WorkflowAgentSchema, WorkflowDecisionSchema, WorkflowDefinitionSchema, WorkflowLibrarySchema, WorkflowRunSchema, WorkflowSlotSchema, WorkflowStageSchema, WorkflowStartSchema, WorkflowStepSchema, WorkflowTaskSchema, authenticationContexts, createEnvelope, encryptionContexts, legacyInstallation, legacyServerBanner, normalizeMetadata, rpcMethods, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStopEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, toWireMetadata, workflowEnabled, workflowProjection, workflowSlots, workflowStageLabel };
1845
+ export type { AgentMessage, ApiMessage, ApiUpdateMachineState, ApiUpdateNewMessage, ApiUpdateSessionState, CoreUpdateBody, CoreUpdateContainer, CreateEnvelopeOptions, LegacyMessageContent, MessageContent, MessageMeta, ProviderUsageBalance, ProviderUsageRequest, ProviderUsageSnapshot, ProviderUsageWindow, SessionEnvelope, SessionEvent, SessionMessage, SessionMessageContent, SessionProtocolMessage, SessionRole, SessionTurnEndStatus, Update, UpdateBody, UpdateMachineBody, UpdateNewMessageBody, UpdateSessionBody, UsageProvider, UserMessage, VersionedEncryptedValue, VersionedMachineEncryptedValue, VersionedNullableEncryptedValue, VoiceConversationResponse, VoiceUsageResponse, WorkflowAgent, WorkflowDecision, WorkflowDefinition, WorkflowRun, WorkflowSlot, WorkflowStage, WorkflowStep, WorkflowTask };