@ahmadposten/talos-wire 0.1.2 → 0.1.4
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.cjs +75 -6
- package/dist/index.d.cts +371 -25
- package/dist/index.d.mts +371 -25
- package/dist/index.mjs +72 -7
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1036,8 +1036,13 @@ declare const WorkflowAgentSchema: z$1.ZodObject<{
|
|
|
1036
1036
|
revision: z$1.ZodNumber;
|
|
1037
1037
|
name: z$1.ZodString;
|
|
1038
1038
|
description: z$1.ZodString;
|
|
1039
|
-
provider: z$1.
|
|
1039
|
+
provider: z$1.ZodEnum<{
|
|
1040
|
+
codex: "codex";
|
|
1041
|
+
claude: "claude";
|
|
1042
|
+
muse: "muse";
|
|
1043
|
+
}>;
|
|
1040
1044
|
model: z$1.ZodString;
|
|
1045
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1041
1046
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1042
1047
|
permissionMode: z$1.ZodEnum<{
|
|
1043
1048
|
default: "default";
|
|
@@ -1055,8 +1060,13 @@ declare const WorkflowSlotSchema: z$1.ZodObject<{
|
|
|
1055
1060
|
revision: z$1.ZodNumber;
|
|
1056
1061
|
name: z$1.ZodString;
|
|
1057
1062
|
description: z$1.ZodString;
|
|
1058
|
-
provider: z$1.
|
|
1063
|
+
provider: z$1.ZodEnum<{
|
|
1064
|
+
codex: "codex";
|
|
1065
|
+
claude: "claude";
|
|
1066
|
+
muse: "muse";
|
|
1067
|
+
}>;
|
|
1059
1068
|
model: z$1.ZodString;
|
|
1069
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1060
1070
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1061
1071
|
permissionMode: z$1.ZodEnum<{
|
|
1062
1072
|
default: "default";
|
|
@@ -1070,6 +1080,107 @@ declare const WorkflowSlotSchema: z$1.ZodObject<{
|
|
|
1070
1080
|
}, z$1.core.$strip>;
|
|
1071
1081
|
assignment: z$1.ZodString;
|
|
1072
1082
|
}, z$1.core.$strip>;
|
|
1083
|
+
declare const WorkflowStepSchema: z$1.ZodObject<{
|
|
1084
|
+
id: z$1.ZodString;
|
|
1085
|
+
name: z$1.ZodString;
|
|
1086
|
+
kind: z$1.ZodEnum<{
|
|
1087
|
+
plan: "plan";
|
|
1088
|
+
execute: "execute";
|
|
1089
|
+
review: "review";
|
|
1090
|
+
}>;
|
|
1091
|
+
agents: z$1.ZodArray<z$1.ZodObject<{
|
|
1092
|
+
agent: z$1.ZodObject<{
|
|
1093
|
+
id: z$1.ZodString;
|
|
1094
|
+
revision: z$1.ZodNumber;
|
|
1095
|
+
name: z$1.ZodString;
|
|
1096
|
+
description: z$1.ZodString;
|
|
1097
|
+
provider: z$1.ZodEnum<{
|
|
1098
|
+
codex: "codex";
|
|
1099
|
+
claude: "claude";
|
|
1100
|
+
muse: "muse";
|
|
1101
|
+
}>;
|
|
1102
|
+
model: z$1.ZodString;
|
|
1103
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1104
|
+
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1105
|
+
permissionMode: z$1.ZodEnum<{
|
|
1106
|
+
default: "default";
|
|
1107
|
+
"read-only": "read-only";
|
|
1108
|
+
}>;
|
|
1109
|
+
instructions: z$1.ZodString;
|
|
1110
|
+
documents: z$1.ZodArray<z$1.ZodObject<{
|
|
1111
|
+
name: z$1.ZodString;
|
|
1112
|
+
content: z$1.ZodString;
|
|
1113
|
+
}, z$1.core.$strip>>;
|
|
1114
|
+
}, z$1.core.$strip>;
|
|
1115
|
+
assignment: z$1.ZodString;
|
|
1116
|
+
}, z$1.core.$strip>>;
|
|
1117
|
+
criteria: z$1.ZodString;
|
|
1118
|
+
checks: z$1.ZodArray<z$1.ZodObject<{
|
|
1119
|
+
name: z$1.ZodString;
|
|
1120
|
+
command: z$1.ZodString;
|
|
1121
|
+
}, z$1.core.$strip>>;
|
|
1122
|
+
}, z$1.core.$strip>;
|
|
1123
|
+
type WorkflowStep = z$1.infer<typeof WorkflowStepSchema>;
|
|
1124
|
+
/** Legacy summaries are derived, never independently editable in a staged workflow. */
|
|
1125
|
+
declare function workflowProjection(steps: WorkflowStep[]): {
|
|
1126
|
+
planners: {
|
|
1127
|
+
agent: {
|
|
1128
|
+
id: string;
|
|
1129
|
+
revision: number;
|
|
1130
|
+
name: string;
|
|
1131
|
+
description: string;
|
|
1132
|
+
provider: "codex" | "claude" | "muse";
|
|
1133
|
+
model: string;
|
|
1134
|
+
effort: string | null;
|
|
1135
|
+
permissionMode: "default" | "read-only";
|
|
1136
|
+
instructions: string;
|
|
1137
|
+
documents: {
|
|
1138
|
+
name: string;
|
|
1139
|
+
content: string;
|
|
1140
|
+
}[];
|
|
1141
|
+
modelLabel?: string | undefined;
|
|
1142
|
+
};
|
|
1143
|
+
assignment: string;
|
|
1144
|
+
}[];
|
|
1145
|
+
executor: {
|
|
1146
|
+
agent: {
|
|
1147
|
+
id: string;
|
|
1148
|
+
revision: number;
|
|
1149
|
+
name: string;
|
|
1150
|
+
description: string;
|
|
1151
|
+
provider: "codex" | "claude" | "muse";
|
|
1152
|
+
model: string;
|
|
1153
|
+
effort: string | null;
|
|
1154
|
+
permissionMode: "default" | "read-only";
|
|
1155
|
+
instructions: string;
|
|
1156
|
+
documents: {
|
|
1157
|
+
name: string;
|
|
1158
|
+
content: string;
|
|
1159
|
+
}[];
|
|
1160
|
+
modelLabel?: string | undefined;
|
|
1161
|
+
};
|
|
1162
|
+
assignment: string;
|
|
1163
|
+
} | undefined;
|
|
1164
|
+
reviewers: {
|
|
1165
|
+
agent: {
|
|
1166
|
+
id: string;
|
|
1167
|
+
revision: number;
|
|
1168
|
+
name: string;
|
|
1169
|
+
description: string;
|
|
1170
|
+
provider: "codex" | "claude" | "muse";
|
|
1171
|
+
model: string;
|
|
1172
|
+
effort: string | null;
|
|
1173
|
+
permissionMode: "default" | "read-only";
|
|
1174
|
+
instructions: string;
|
|
1175
|
+
documents: {
|
|
1176
|
+
name: string;
|
|
1177
|
+
content: string;
|
|
1178
|
+
}[];
|
|
1179
|
+
modelLabel?: string | undefined;
|
|
1180
|
+
};
|
|
1181
|
+
assignment: string;
|
|
1182
|
+
}[];
|
|
1183
|
+
};
|
|
1073
1184
|
declare const WorkflowDefinitionSchema: z$1.ZodObject<{
|
|
1074
1185
|
id: z$1.ZodString;
|
|
1075
1186
|
revision: z$1.ZodNumber;
|
|
@@ -1081,8 +1192,13 @@ declare const WorkflowDefinitionSchema: z$1.ZodObject<{
|
|
|
1081
1192
|
revision: z$1.ZodNumber;
|
|
1082
1193
|
name: z$1.ZodString;
|
|
1083
1194
|
description: z$1.ZodString;
|
|
1084
|
-
provider: z$1.
|
|
1195
|
+
provider: z$1.ZodEnum<{
|
|
1196
|
+
codex: "codex";
|
|
1197
|
+
claude: "claude";
|
|
1198
|
+
muse: "muse";
|
|
1199
|
+
}>;
|
|
1085
1200
|
model: z$1.ZodString;
|
|
1201
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1086
1202
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1087
1203
|
permissionMode: z$1.ZodEnum<{
|
|
1088
1204
|
default: "default";
|
|
@@ -1102,8 +1218,13 @@ declare const WorkflowDefinitionSchema: z$1.ZodObject<{
|
|
|
1102
1218
|
revision: z$1.ZodNumber;
|
|
1103
1219
|
name: z$1.ZodString;
|
|
1104
1220
|
description: z$1.ZodString;
|
|
1105
|
-
provider: z$1.
|
|
1221
|
+
provider: z$1.ZodEnum<{
|
|
1222
|
+
codex: "codex";
|
|
1223
|
+
claude: "claude";
|
|
1224
|
+
muse: "muse";
|
|
1225
|
+
}>;
|
|
1106
1226
|
model: z$1.ZodString;
|
|
1227
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1107
1228
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1108
1229
|
permissionMode: z$1.ZodEnum<{
|
|
1109
1230
|
default: "default";
|
|
@@ -1123,8 +1244,13 @@ declare const WorkflowDefinitionSchema: z$1.ZodObject<{
|
|
|
1123
1244
|
revision: z$1.ZodNumber;
|
|
1124
1245
|
name: z$1.ZodString;
|
|
1125
1246
|
description: z$1.ZodString;
|
|
1126
|
-
provider: z$1.
|
|
1247
|
+
provider: z$1.ZodEnum<{
|
|
1248
|
+
codex: "codex";
|
|
1249
|
+
claude: "claude";
|
|
1250
|
+
muse: "muse";
|
|
1251
|
+
}>;
|
|
1127
1252
|
model: z$1.ZodString;
|
|
1253
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1128
1254
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1129
1255
|
permissionMode: z$1.ZodEnum<{
|
|
1130
1256
|
default: "default";
|
|
@@ -1138,6 +1264,46 @@ declare const WorkflowDefinitionSchema: z$1.ZodObject<{
|
|
|
1138
1264
|
}, z$1.core.$strip>;
|
|
1139
1265
|
assignment: z$1.ZodString;
|
|
1140
1266
|
}, z$1.core.$strip>>;
|
|
1267
|
+
steps: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
1268
|
+
id: z$1.ZodString;
|
|
1269
|
+
name: z$1.ZodString;
|
|
1270
|
+
kind: z$1.ZodEnum<{
|
|
1271
|
+
plan: "plan";
|
|
1272
|
+
execute: "execute";
|
|
1273
|
+
review: "review";
|
|
1274
|
+
}>;
|
|
1275
|
+
agents: z$1.ZodArray<z$1.ZodObject<{
|
|
1276
|
+
agent: z$1.ZodObject<{
|
|
1277
|
+
id: z$1.ZodString;
|
|
1278
|
+
revision: z$1.ZodNumber;
|
|
1279
|
+
name: z$1.ZodString;
|
|
1280
|
+
description: z$1.ZodString;
|
|
1281
|
+
provider: z$1.ZodEnum<{
|
|
1282
|
+
codex: "codex";
|
|
1283
|
+
claude: "claude";
|
|
1284
|
+
muse: "muse";
|
|
1285
|
+
}>;
|
|
1286
|
+
model: z$1.ZodString;
|
|
1287
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1288
|
+
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1289
|
+
permissionMode: z$1.ZodEnum<{
|
|
1290
|
+
default: "default";
|
|
1291
|
+
"read-only": "read-only";
|
|
1292
|
+
}>;
|
|
1293
|
+
instructions: z$1.ZodString;
|
|
1294
|
+
documents: z$1.ZodArray<z$1.ZodObject<{
|
|
1295
|
+
name: z$1.ZodString;
|
|
1296
|
+
content: z$1.ZodString;
|
|
1297
|
+
}, z$1.core.$strip>>;
|
|
1298
|
+
}, z$1.core.$strip>;
|
|
1299
|
+
assignment: z$1.ZodString;
|
|
1300
|
+
}, z$1.core.$strip>>;
|
|
1301
|
+
criteria: z$1.ZodString;
|
|
1302
|
+
checks: z$1.ZodArray<z$1.ZodObject<{
|
|
1303
|
+
name: z$1.ZodString;
|
|
1304
|
+
command: z$1.ZodString;
|
|
1305
|
+
}, z$1.core.$strip>>;
|
|
1306
|
+
}, z$1.core.$strip>>>;
|
|
1141
1307
|
criteria: z$1.ZodString;
|
|
1142
1308
|
checks: z$1.ZodArray<z$1.ZodObject<{
|
|
1143
1309
|
name: z$1.ZodString;
|
|
@@ -1161,8 +1327,13 @@ declare const WorkflowLibrarySchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
1161
1327
|
revision: z$1.ZodNumber;
|
|
1162
1328
|
name: z$1.ZodString;
|
|
1163
1329
|
description: z$1.ZodString;
|
|
1164
|
-
provider: z$1.
|
|
1330
|
+
provider: z$1.ZodEnum<{
|
|
1331
|
+
codex: "codex";
|
|
1332
|
+
claude: "claude";
|
|
1333
|
+
muse: "muse";
|
|
1334
|
+
}>;
|
|
1165
1335
|
model: z$1.ZodString;
|
|
1336
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1166
1337
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1167
1338
|
permissionMode: z$1.ZodEnum<{
|
|
1168
1339
|
default: "default";
|
|
@@ -1182,8 +1353,13 @@ declare const WorkflowLibrarySchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
1182
1353
|
revision: z$1.ZodNumber;
|
|
1183
1354
|
name: z$1.ZodString;
|
|
1184
1355
|
description: z$1.ZodString;
|
|
1185
|
-
provider: z$1.
|
|
1356
|
+
provider: z$1.ZodEnum<{
|
|
1357
|
+
codex: "codex";
|
|
1358
|
+
claude: "claude";
|
|
1359
|
+
muse: "muse";
|
|
1360
|
+
}>;
|
|
1186
1361
|
model: z$1.ZodString;
|
|
1362
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1187
1363
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1188
1364
|
permissionMode: z$1.ZodEnum<{
|
|
1189
1365
|
default: "default";
|
|
@@ -1203,8 +1379,13 @@ declare const WorkflowLibrarySchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
1203
1379
|
revision: z$1.ZodNumber;
|
|
1204
1380
|
name: z$1.ZodString;
|
|
1205
1381
|
description: z$1.ZodString;
|
|
1206
|
-
provider: z$1.
|
|
1382
|
+
provider: z$1.ZodEnum<{
|
|
1383
|
+
codex: "codex";
|
|
1384
|
+
claude: "claude";
|
|
1385
|
+
muse: "muse";
|
|
1386
|
+
}>;
|
|
1207
1387
|
model: z$1.ZodString;
|
|
1388
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1208
1389
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1209
1390
|
permissionMode: z$1.ZodEnum<{
|
|
1210
1391
|
default: "default";
|
|
@@ -1218,6 +1399,46 @@ declare const WorkflowLibrarySchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
1218
1399
|
}, z$1.core.$strip>;
|
|
1219
1400
|
assignment: z$1.ZodString;
|
|
1220
1401
|
}, z$1.core.$strip>>;
|
|
1402
|
+
steps: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
1403
|
+
id: z$1.ZodString;
|
|
1404
|
+
name: z$1.ZodString;
|
|
1405
|
+
kind: z$1.ZodEnum<{
|
|
1406
|
+
plan: "plan";
|
|
1407
|
+
execute: "execute";
|
|
1408
|
+
review: "review";
|
|
1409
|
+
}>;
|
|
1410
|
+
agents: z$1.ZodArray<z$1.ZodObject<{
|
|
1411
|
+
agent: z$1.ZodObject<{
|
|
1412
|
+
id: z$1.ZodString;
|
|
1413
|
+
revision: z$1.ZodNumber;
|
|
1414
|
+
name: z$1.ZodString;
|
|
1415
|
+
description: z$1.ZodString;
|
|
1416
|
+
provider: z$1.ZodEnum<{
|
|
1417
|
+
codex: "codex";
|
|
1418
|
+
claude: "claude";
|
|
1419
|
+
muse: "muse";
|
|
1420
|
+
}>;
|
|
1421
|
+
model: z$1.ZodString;
|
|
1422
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1423
|
+
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1424
|
+
permissionMode: z$1.ZodEnum<{
|
|
1425
|
+
default: "default";
|
|
1426
|
+
"read-only": "read-only";
|
|
1427
|
+
}>;
|
|
1428
|
+
instructions: z$1.ZodString;
|
|
1429
|
+
documents: z$1.ZodArray<z$1.ZodObject<{
|
|
1430
|
+
name: z$1.ZodString;
|
|
1431
|
+
content: z$1.ZodString;
|
|
1432
|
+
}, z$1.core.$strip>>;
|
|
1433
|
+
}, z$1.core.$strip>;
|
|
1434
|
+
assignment: z$1.ZodString;
|
|
1435
|
+
}, z$1.core.$strip>>;
|
|
1436
|
+
criteria: z$1.ZodString;
|
|
1437
|
+
checks: z$1.ZodArray<z$1.ZodObject<{
|
|
1438
|
+
name: z$1.ZodString;
|
|
1439
|
+
command: z$1.ZodString;
|
|
1440
|
+
}, z$1.core.$strip>>;
|
|
1441
|
+
}, z$1.core.$strip>>>;
|
|
1221
1442
|
criteria: z$1.ZodString;
|
|
1222
1443
|
checks: z$1.ZodArray<z$1.ZodObject<{
|
|
1223
1444
|
name: z$1.ZodString;
|
|
@@ -1232,13 +1453,14 @@ declare const WorkflowLibrarySchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
1232
1453
|
}, z$1.core.$strip>>;
|
|
1233
1454
|
type WorkflowDefinition = z$1.infer<typeof WorkflowDefinitionSchema>;
|
|
1234
1455
|
type WorkflowSlot = z$1.infer<typeof WorkflowSlotSchema>;
|
|
1456
|
+
declare function workflowSlots(d: WorkflowDefinition): WorkflowSlot[];
|
|
1235
1457
|
type WorkflowAgent = z$1.infer<typeof WorkflowAgentSchema>;
|
|
1236
1458
|
declare const WorkflowStageSchema: z$1.ZodEnum<{
|
|
1459
|
+
execute: "execute";
|
|
1460
|
+
review: "review";
|
|
1237
1461
|
propose: "propose";
|
|
1238
1462
|
consolidate: "consolidate";
|
|
1239
1463
|
plan_vote: "plan_vote";
|
|
1240
|
-
execute: "execute";
|
|
1241
|
-
review: "review";
|
|
1242
1464
|
verify: "verify";
|
|
1243
1465
|
}>;
|
|
1244
1466
|
type WorkflowStage = z$1.infer<typeof WorkflowStageSchema>;
|
|
@@ -1262,16 +1484,18 @@ type WorkflowDecision = z$1.infer<typeof WorkflowDecisionSchema>;
|
|
|
1262
1484
|
declare const WorkflowTaskSchema: z$1.ZodObject<{
|
|
1263
1485
|
id: z$1.ZodString;
|
|
1264
1486
|
stage: z$1.ZodEnum<{
|
|
1487
|
+
execute: "execute";
|
|
1488
|
+
review: "review";
|
|
1265
1489
|
propose: "propose";
|
|
1266
1490
|
consolidate: "consolidate";
|
|
1267
1491
|
plan_vote: "plan_vote";
|
|
1268
|
-
execute: "execute";
|
|
1269
|
-
review: "review";
|
|
1270
1492
|
verify: "verify";
|
|
1271
1493
|
}>;
|
|
1272
1494
|
round: z$1.ZodNumber;
|
|
1273
1495
|
agentId: z$1.ZodString;
|
|
1274
1496
|
agentName: z$1.ZodString;
|
|
1497
|
+
stepId: z$1.ZodOptional<z$1.ZodString>;
|
|
1498
|
+
attempt: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1275
1499
|
clarifications: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1276
1500
|
assignment: z$1.ZodString;
|
|
1277
1501
|
version: z$1.ZodString;
|
|
@@ -1317,8 +1541,13 @@ declare const WorkflowRunSchema: z$1.ZodObject<{
|
|
|
1317
1541
|
revision: z$1.ZodNumber;
|
|
1318
1542
|
name: z$1.ZodString;
|
|
1319
1543
|
description: z$1.ZodString;
|
|
1320
|
-
provider: z$1.
|
|
1544
|
+
provider: z$1.ZodEnum<{
|
|
1545
|
+
codex: "codex";
|
|
1546
|
+
claude: "claude";
|
|
1547
|
+
muse: "muse";
|
|
1548
|
+
}>;
|
|
1321
1549
|
model: z$1.ZodString;
|
|
1550
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1322
1551
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1323
1552
|
permissionMode: z$1.ZodEnum<{
|
|
1324
1553
|
default: "default";
|
|
@@ -1338,8 +1567,13 @@ declare const WorkflowRunSchema: z$1.ZodObject<{
|
|
|
1338
1567
|
revision: z$1.ZodNumber;
|
|
1339
1568
|
name: z$1.ZodString;
|
|
1340
1569
|
description: z$1.ZodString;
|
|
1341
|
-
provider: z$1.
|
|
1570
|
+
provider: z$1.ZodEnum<{
|
|
1571
|
+
codex: "codex";
|
|
1572
|
+
claude: "claude";
|
|
1573
|
+
muse: "muse";
|
|
1574
|
+
}>;
|
|
1342
1575
|
model: z$1.ZodString;
|
|
1576
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1343
1577
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1344
1578
|
permissionMode: z$1.ZodEnum<{
|
|
1345
1579
|
default: "default";
|
|
@@ -1359,8 +1593,13 @@ declare const WorkflowRunSchema: z$1.ZodObject<{
|
|
|
1359
1593
|
revision: z$1.ZodNumber;
|
|
1360
1594
|
name: z$1.ZodString;
|
|
1361
1595
|
description: z$1.ZodString;
|
|
1362
|
-
provider: z$1.
|
|
1596
|
+
provider: z$1.ZodEnum<{
|
|
1597
|
+
codex: "codex";
|
|
1598
|
+
claude: "claude";
|
|
1599
|
+
muse: "muse";
|
|
1600
|
+
}>;
|
|
1363
1601
|
model: z$1.ZodString;
|
|
1602
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1364
1603
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1365
1604
|
permissionMode: z$1.ZodEnum<{
|
|
1366
1605
|
default: "default";
|
|
@@ -1374,6 +1613,46 @@ declare const WorkflowRunSchema: z$1.ZodObject<{
|
|
|
1374
1613
|
}, z$1.core.$strip>;
|
|
1375
1614
|
assignment: z$1.ZodString;
|
|
1376
1615
|
}, z$1.core.$strip>>;
|
|
1616
|
+
steps: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
1617
|
+
id: z$1.ZodString;
|
|
1618
|
+
name: z$1.ZodString;
|
|
1619
|
+
kind: z$1.ZodEnum<{
|
|
1620
|
+
plan: "plan";
|
|
1621
|
+
execute: "execute";
|
|
1622
|
+
review: "review";
|
|
1623
|
+
}>;
|
|
1624
|
+
agents: z$1.ZodArray<z$1.ZodObject<{
|
|
1625
|
+
agent: z$1.ZodObject<{
|
|
1626
|
+
id: z$1.ZodString;
|
|
1627
|
+
revision: z$1.ZodNumber;
|
|
1628
|
+
name: z$1.ZodString;
|
|
1629
|
+
description: z$1.ZodString;
|
|
1630
|
+
provider: z$1.ZodEnum<{
|
|
1631
|
+
codex: "codex";
|
|
1632
|
+
claude: "claude";
|
|
1633
|
+
muse: "muse";
|
|
1634
|
+
}>;
|
|
1635
|
+
model: z$1.ZodString;
|
|
1636
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1637
|
+
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1638
|
+
permissionMode: z$1.ZodEnum<{
|
|
1639
|
+
default: "default";
|
|
1640
|
+
"read-only": "read-only";
|
|
1641
|
+
}>;
|
|
1642
|
+
instructions: z$1.ZodString;
|
|
1643
|
+
documents: z$1.ZodArray<z$1.ZodObject<{
|
|
1644
|
+
name: z$1.ZodString;
|
|
1645
|
+
content: z$1.ZodString;
|
|
1646
|
+
}, z$1.core.$strip>>;
|
|
1647
|
+
}, z$1.core.$strip>;
|
|
1648
|
+
assignment: z$1.ZodString;
|
|
1649
|
+
}, z$1.core.$strip>>;
|
|
1650
|
+
criteria: z$1.ZodString;
|
|
1651
|
+
checks: z$1.ZodArray<z$1.ZodObject<{
|
|
1652
|
+
name: z$1.ZodString;
|
|
1653
|
+
command: z$1.ZodString;
|
|
1654
|
+
}, z$1.core.$strip>>;
|
|
1655
|
+
}, z$1.core.$strip>>>;
|
|
1377
1656
|
criteria: z$1.ZodString;
|
|
1378
1657
|
checks: z$1.ZodArray<z$1.ZodObject<{
|
|
1379
1658
|
name: z$1.ZodString;
|
|
@@ -1401,13 +1680,17 @@ declare const WorkflowRunSchema: z$1.ZodObject<{
|
|
|
1401
1680
|
complete: "complete";
|
|
1402
1681
|
}>;
|
|
1403
1682
|
stage: z$1.ZodEnum<{
|
|
1683
|
+
execute: "execute";
|
|
1684
|
+
review: "review";
|
|
1404
1685
|
propose: "propose";
|
|
1405
1686
|
consolidate: "consolidate";
|
|
1406
1687
|
plan_vote: "plan_vote";
|
|
1407
|
-
execute: "execute";
|
|
1408
|
-
review: "review";
|
|
1409
1688
|
verify: "verify";
|
|
1410
1689
|
}>;
|
|
1690
|
+
stepIndex: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1691
|
+
stepAttempt: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1692
|
+
stepRounds: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodNumber>>;
|
|
1693
|
+
completedSteps: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
1411
1694
|
planningRound: z$1.ZodNumber;
|
|
1412
1695
|
reviewRound: z$1.ZodNumber;
|
|
1413
1696
|
planVersion: z$1.ZodNumber;
|
|
@@ -1417,16 +1700,18 @@ declare const WorkflowRunSchema: z$1.ZodObject<{
|
|
|
1417
1700
|
tasks: z$1.ZodArray<z$1.ZodObject<{
|
|
1418
1701
|
id: z$1.ZodString;
|
|
1419
1702
|
stage: z$1.ZodEnum<{
|
|
1703
|
+
execute: "execute";
|
|
1704
|
+
review: "review";
|
|
1420
1705
|
propose: "propose";
|
|
1421
1706
|
consolidate: "consolidate";
|
|
1422
1707
|
plan_vote: "plan_vote";
|
|
1423
|
-
execute: "execute";
|
|
1424
|
-
review: "review";
|
|
1425
1708
|
verify: "verify";
|
|
1426
1709
|
}>;
|
|
1427
1710
|
round: z$1.ZodNumber;
|
|
1428
1711
|
agentId: z$1.ZodString;
|
|
1429
1712
|
agentName: z$1.ZodString;
|
|
1713
|
+
stepId: z$1.ZodOptional<z$1.ZodString>;
|
|
1714
|
+
attempt: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1430
1715
|
clarifications: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1431
1716
|
assignment: z$1.ZodString;
|
|
1432
1717
|
version: z$1.ZodString;
|
|
@@ -1488,8 +1773,13 @@ declare const WorkflowStartSchema: z$1.ZodObject<{
|
|
|
1488
1773
|
revision: z$1.ZodNumber;
|
|
1489
1774
|
name: z$1.ZodString;
|
|
1490
1775
|
description: z$1.ZodString;
|
|
1491
|
-
provider: z$1.
|
|
1776
|
+
provider: z$1.ZodEnum<{
|
|
1777
|
+
codex: "codex";
|
|
1778
|
+
claude: "claude";
|
|
1779
|
+
muse: "muse";
|
|
1780
|
+
}>;
|
|
1492
1781
|
model: z$1.ZodString;
|
|
1782
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1493
1783
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1494
1784
|
permissionMode: z$1.ZodEnum<{
|
|
1495
1785
|
default: "default";
|
|
@@ -1509,8 +1799,13 @@ declare const WorkflowStartSchema: z$1.ZodObject<{
|
|
|
1509
1799
|
revision: z$1.ZodNumber;
|
|
1510
1800
|
name: z$1.ZodString;
|
|
1511
1801
|
description: z$1.ZodString;
|
|
1512
|
-
provider: z$1.
|
|
1802
|
+
provider: z$1.ZodEnum<{
|
|
1803
|
+
codex: "codex";
|
|
1804
|
+
claude: "claude";
|
|
1805
|
+
muse: "muse";
|
|
1806
|
+
}>;
|
|
1513
1807
|
model: z$1.ZodString;
|
|
1808
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1514
1809
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1515
1810
|
permissionMode: z$1.ZodEnum<{
|
|
1516
1811
|
default: "default";
|
|
@@ -1530,8 +1825,13 @@ declare const WorkflowStartSchema: z$1.ZodObject<{
|
|
|
1530
1825
|
revision: z$1.ZodNumber;
|
|
1531
1826
|
name: z$1.ZodString;
|
|
1532
1827
|
description: z$1.ZodString;
|
|
1533
|
-
provider: z$1.
|
|
1828
|
+
provider: z$1.ZodEnum<{
|
|
1829
|
+
codex: "codex";
|
|
1830
|
+
claude: "claude";
|
|
1831
|
+
muse: "muse";
|
|
1832
|
+
}>;
|
|
1534
1833
|
model: z$1.ZodString;
|
|
1834
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1535
1835
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1536
1836
|
permissionMode: z$1.ZodEnum<{
|
|
1537
1837
|
default: "default";
|
|
@@ -1545,6 +1845,46 @@ declare const WorkflowStartSchema: z$1.ZodObject<{
|
|
|
1545
1845
|
}, z$1.core.$strip>;
|
|
1546
1846
|
assignment: z$1.ZodString;
|
|
1547
1847
|
}, z$1.core.$strip>>;
|
|
1848
|
+
steps: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
1849
|
+
id: z$1.ZodString;
|
|
1850
|
+
name: z$1.ZodString;
|
|
1851
|
+
kind: z$1.ZodEnum<{
|
|
1852
|
+
plan: "plan";
|
|
1853
|
+
execute: "execute";
|
|
1854
|
+
review: "review";
|
|
1855
|
+
}>;
|
|
1856
|
+
agents: z$1.ZodArray<z$1.ZodObject<{
|
|
1857
|
+
agent: z$1.ZodObject<{
|
|
1858
|
+
id: z$1.ZodString;
|
|
1859
|
+
revision: z$1.ZodNumber;
|
|
1860
|
+
name: z$1.ZodString;
|
|
1861
|
+
description: z$1.ZodString;
|
|
1862
|
+
provider: z$1.ZodEnum<{
|
|
1863
|
+
codex: "codex";
|
|
1864
|
+
claude: "claude";
|
|
1865
|
+
muse: "muse";
|
|
1866
|
+
}>;
|
|
1867
|
+
model: z$1.ZodString;
|
|
1868
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1869
|
+
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1870
|
+
permissionMode: z$1.ZodEnum<{
|
|
1871
|
+
default: "default";
|
|
1872
|
+
"read-only": "read-only";
|
|
1873
|
+
}>;
|
|
1874
|
+
instructions: z$1.ZodString;
|
|
1875
|
+
documents: z$1.ZodArray<z$1.ZodObject<{
|
|
1876
|
+
name: z$1.ZodString;
|
|
1877
|
+
content: z$1.ZodString;
|
|
1878
|
+
}, z$1.core.$strip>>;
|
|
1879
|
+
}, z$1.core.$strip>;
|
|
1880
|
+
assignment: z$1.ZodString;
|
|
1881
|
+
}, z$1.core.$strip>>;
|
|
1882
|
+
criteria: z$1.ZodString;
|
|
1883
|
+
checks: z$1.ZodArray<z$1.ZodObject<{
|
|
1884
|
+
name: z$1.ZodString;
|
|
1885
|
+
command: z$1.ZodString;
|
|
1886
|
+
}, z$1.core.$strip>>;
|
|
1887
|
+
}, z$1.core.$strip>>>;
|
|
1548
1888
|
criteria: z$1.ZodString;
|
|
1549
1889
|
checks: z$1.ZodArray<z$1.ZodObject<{
|
|
1550
1890
|
name: z$1.ZodString;
|
|
@@ -1579,8 +1919,13 @@ declare const WorkflowActionSchema: z$1.ZodObject<{
|
|
|
1579
1919
|
revision: z$1.ZodNumber;
|
|
1580
1920
|
name: z$1.ZodString;
|
|
1581
1921
|
description: z$1.ZodString;
|
|
1582
|
-
provider: z$1.
|
|
1922
|
+
provider: z$1.ZodEnum<{
|
|
1923
|
+
codex: "codex";
|
|
1924
|
+
claude: "claude";
|
|
1925
|
+
muse: "muse";
|
|
1926
|
+
}>;
|
|
1583
1927
|
model: z$1.ZodString;
|
|
1928
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1584
1929
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1585
1930
|
permissionMode: z$1.ZodEnum<{
|
|
1586
1931
|
default: "default";
|
|
@@ -1598,6 +1943,7 @@ declare function workflowEnabled(s: {
|
|
|
1598
1943
|
expWorkflows?: boolean;
|
|
1599
1944
|
}): boolean;
|
|
1600
1945
|
declare const workflowStageLabel: Record<WorkflowStage, string>;
|
|
1946
|
+
declare function workflowNeedsProviders(definition: WorkflowDefinition): boolean;
|
|
1601
1947
|
|
|
1602
|
-
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, WorkflowTaskSchema, authenticationContexts, createEnvelope, encryptionContexts, legacyInstallation, legacyServerBanner, normalizeMetadata, rpcMethods, sessionEnvelopeSchema, sessionEventSchema, sessionFileEventSchema, sessionRoleSchema, sessionServiceMessageEventSchema, sessionStartEventSchema, sessionStopEventSchema, sessionTextEventSchema, sessionToolCallEndEventSchema, sessionToolCallStartEventSchema, sessionTurnEndEventSchema, sessionTurnEndStatusSchema, sessionTurnStartEventSchema, toWireMetadata, workflowEnabled, workflowStageLabel };
|
|
1603
|
-
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, WorkflowTask };
|
|
1948
|
+
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, workflowNeedsProviders, workflowProjection, workflowSlots, workflowStageLabel };
|
|
1949
|
+
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 };
|