@ahmadposten/talos-wire 0.1.3 → 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 +6 -1
- package/dist/index.d.cts +128 -24
- package/dist/index.d.mts +128 -24
- package/dist/index.mjs +6 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -372,8 +372,9 @@ const WorkflowAgentSchema = z.z.object({
|
|
|
372
372
|
revision: z.z.number().int().positive(),
|
|
373
373
|
name: z.z.string().min(1).max(60),
|
|
374
374
|
description: z.z.string().max(300),
|
|
375
|
-
provider: z.z.
|
|
375
|
+
provider: z.z.enum(["codex", "claude", "muse"]),
|
|
376
376
|
model: z.z.string().min(1).max(200),
|
|
377
|
+
modelLabel: z.z.string().max(300).optional(),
|
|
377
378
|
effort: z.z.string().max(30).nullable(),
|
|
378
379
|
permissionMode: z.z.enum(["default", "read-only"]),
|
|
379
380
|
instructions: text,
|
|
@@ -529,6 +530,9 @@ function workflowEnabled(s) {
|
|
|
529
530
|
return s.experiments === true && s.expWorkflows === true;
|
|
530
531
|
}
|
|
531
532
|
const workflowStageLabel = { propose: "Independent proposals", consolidate: "Consolidating plan", plan_vote: "Planning consensus", execute: "Executing", review: "Independent review", verify: "Completion checks" };
|
|
533
|
+
function workflowNeedsProviders(definition) {
|
|
534
|
+
return workflowSlots(definition).some((slot) => slot.agent.provider !== "codex");
|
|
535
|
+
}
|
|
532
536
|
|
|
533
537
|
exports.AgentMessageSchema = AgentMessageSchema;
|
|
534
538
|
exports.ApiMessageSchema = ApiMessageSchema;
|
|
@@ -594,6 +598,7 @@ exports.sessionTurnEndStatusSchema = sessionTurnEndStatusSchema;
|
|
|
594
598
|
exports.sessionTurnStartEventSchema = sessionTurnStartEventSchema;
|
|
595
599
|
exports.toWireMetadata = toWireMetadata;
|
|
596
600
|
exports.workflowEnabled = workflowEnabled;
|
|
601
|
+
exports.workflowNeedsProviders = workflowNeedsProviders;
|
|
597
602
|
exports.workflowProjection = workflowProjection;
|
|
598
603
|
exports.workflowSlots = workflowSlots;
|
|
599
604
|
exports.workflowStageLabel = workflowStageLabel;
|
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";
|
|
@@ -1084,8 +1094,13 @@ declare const WorkflowStepSchema: z$1.ZodObject<{
|
|
|
1084
1094
|
revision: z$1.ZodNumber;
|
|
1085
1095
|
name: z$1.ZodString;
|
|
1086
1096
|
description: z$1.ZodString;
|
|
1087
|
-
provider: z$1.
|
|
1097
|
+
provider: z$1.ZodEnum<{
|
|
1098
|
+
codex: "codex";
|
|
1099
|
+
claude: "claude";
|
|
1100
|
+
muse: "muse";
|
|
1101
|
+
}>;
|
|
1088
1102
|
model: z$1.ZodString;
|
|
1103
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1089
1104
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1090
1105
|
permissionMode: z$1.ZodEnum<{
|
|
1091
1106
|
default: "default";
|
|
@@ -1114,7 +1129,7 @@ declare function workflowProjection(steps: WorkflowStep[]): {
|
|
|
1114
1129
|
revision: number;
|
|
1115
1130
|
name: string;
|
|
1116
1131
|
description: string;
|
|
1117
|
-
provider: "codex";
|
|
1132
|
+
provider: "codex" | "claude" | "muse";
|
|
1118
1133
|
model: string;
|
|
1119
1134
|
effort: string | null;
|
|
1120
1135
|
permissionMode: "default" | "read-only";
|
|
@@ -1123,6 +1138,7 @@ declare function workflowProjection(steps: WorkflowStep[]): {
|
|
|
1123
1138
|
name: string;
|
|
1124
1139
|
content: string;
|
|
1125
1140
|
}[];
|
|
1141
|
+
modelLabel?: string | undefined;
|
|
1126
1142
|
};
|
|
1127
1143
|
assignment: string;
|
|
1128
1144
|
}[];
|
|
@@ -1132,7 +1148,7 @@ declare function workflowProjection(steps: WorkflowStep[]): {
|
|
|
1132
1148
|
revision: number;
|
|
1133
1149
|
name: string;
|
|
1134
1150
|
description: string;
|
|
1135
|
-
provider: "codex";
|
|
1151
|
+
provider: "codex" | "claude" | "muse";
|
|
1136
1152
|
model: string;
|
|
1137
1153
|
effort: string | null;
|
|
1138
1154
|
permissionMode: "default" | "read-only";
|
|
@@ -1141,6 +1157,7 @@ declare function workflowProjection(steps: WorkflowStep[]): {
|
|
|
1141
1157
|
name: string;
|
|
1142
1158
|
content: string;
|
|
1143
1159
|
}[];
|
|
1160
|
+
modelLabel?: string | undefined;
|
|
1144
1161
|
};
|
|
1145
1162
|
assignment: string;
|
|
1146
1163
|
} | undefined;
|
|
@@ -1150,7 +1167,7 @@ declare function workflowProjection(steps: WorkflowStep[]): {
|
|
|
1150
1167
|
revision: number;
|
|
1151
1168
|
name: string;
|
|
1152
1169
|
description: string;
|
|
1153
|
-
provider: "codex";
|
|
1170
|
+
provider: "codex" | "claude" | "muse";
|
|
1154
1171
|
model: string;
|
|
1155
1172
|
effort: string | null;
|
|
1156
1173
|
permissionMode: "default" | "read-only";
|
|
@@ -1159,6 +1176,7 @@ declare function workflowProjection(steps: WorkflowStep[]): {
|
|
|
1159
1176
|
name: string;
|
|
1160
1177
|
content: string;
|
|
1161
1178
|
}[];
|
|
1179
|
+
modelLabel?: string | undefined;
|
|
1162
1180
|
};
|
|
1163
1181
|
assignment: string;
|
|
1164
1182
|
}[];
|
|
@@ -1174,8 +1192,13 @@ declare const WorkflowDefinitionSchema: z$1.ZodObject<{
|
|
|
1174
1192
|
revision: z$1.ZodNumber;
|
|
1175
1193
|
name: z$1.ZodString;
|
|
1176
1194
|
description: z$1.ZodString;
|
|
1177
|
-
provider: z$1.
|
|
1195
|
+
provider: z$1.ZodEnum<{
|
|
1196
|
+
codex: "codex";
|
|
1197
|
+
claude: "claude";
|
|
1198
|
+
muse: "muse";
|
|
1199
|
+
}>;
|
|
1178
1200
|
model: z$1.ZodString;
|
|
1201
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1179
1202
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1180
1203
|
permissionMode: z$1.ZodEnum<{
|
|
1181
1204
|
default: "default";
|
|
@@ -1195,8 +1218,13 @@ declare const WorkflowDefinitionSchema: z$1.ZodObject<{
|
|
|
1195
1218
|
revision: z$1.ZodNumber;
|
|
1196
1219
|
name: z$1.ZodString;
|
|
1197
1220
|
description: z$1.ZodString;
|
|
1198
|
-
provider: z$1.
|
|
1221
|
+
provider: z$1.ZodEnum<{
|
|
1222
|
+
codex: "codex";
|
|
1223
|
+
claude: "claude";
|
|
1224
|
+
muse: "muse";
|
|
1225
|
+
}>;
|
|
1199
1226
|
model: z$1.ZodString;
|
|
1227
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1200
1228
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1201
1229
|
permissionMode: z$1.ZodEnum<{
|
|
1202
1230
|
default: "default";
|
|
@@ -1216,8 +1244,13 @@ declare const WorkflowDefinitionSchema: z$1.ZodObject<{
|
|
|
1216
1244
|
revision: z$1.ZodNumber;
|
|
1217
1245
|
name: z$1.ZodString;
|
|
1218
1246
|
description: z$1.ZodString;
|
|
1219
|
-
provider: z$1.
|
|
1247
|
+
provider: z$1.ZodEnum<{
|
|
1248
|
+
codex: "codex";
|
|
1249
|
+
claude: "claude";
|
|
1250
|
+
muse: "muse";
|
|
1251
|
+
}>;
|
|
1220
1252
|
model: z$1.ZodString;
|
|
1253
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1221
1254
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1222
1255
|
permissionMode: z$1.ZodEnum<{
|
|
1223
1256
|
default: "default";
|
|
@@ -1245,8 +1278,13 @@ declare const WorkflowDefinitionSchema: z$1.ZodObject<{
|
|
|
1245
1278
|
revision: z$1.ZodNumber;
|
|
1246
1279
|
name: z$1.ZodString;
|
|
1247
1280
|
description: z$1.ZodString;
|
|
1248
|
-
provider: z$1.
|
|
1281
|
+
provider: z$1.ZodEnum<{
|
|
1282
|
+
codex: "codex";
|
|
1283
|
+
claude: "claude";
|
|
1284
|
+
muse: "muse";
|
|
1285
|
+
}>;
|
|
1249
1286
|
model: z$1.ZodString;
|
|
1287
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1250
1288
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1251
1289
|
permissionMode: z$1.ZodEnum<{
|
|
1252
1290
|
default: "default";
|
|
@@ -1289,8 +1327,13 @@ declare const WorkflowLibrarySchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
1289
1327
|
revision: z$1.ZodNumber;
|
|
1290
1328
|
name: z$1.ZodString;
|
|
1291
1329
|
description: z$1.ZodString;
|
|
1292
|
-
provider: z$1.
|
|
1330
|
+
provider: z$1.ZodEnum<{
|
|
1331
|
+
codex: "codex";
|
|
1332
|
+
claude: "claude";
|
|
1333
|
+
muse: "muse";
|
|
1334
|
+
}>;
|
|
1293
1335
|
model: z$1.ZodString;
|
|
1336
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1294
1337
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1295
1338
|
permissionMode: z$1.ZodEnum<{
|
|
1296
1339
|
default: "default";
|
|
@@ -1310,8 +1353,13 @@ declare const WorkflowLibrarySchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
1310
1353
|
revision: z$1.ZodNumber;
|
|
1311
1354
|
name: z$1.ZodString;
|
|
1312
1355
|
description: z$1.ZodString;
|
|
1313
|
-
provider: z$1.
|
|
1356
|
+
provider: z$1.ZodEnum<{
|
|
1357
|
+
codex: "codex";
|
|
1358
|
+
claude: "claude";
|
|
1359
|
+
muse: "muse";
|
|
1360
|
+
}>;
|
|
1314
1361
|
model: z$1.ZodString;
|
|
1362
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1315
1363
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1316
1364
|
permissionMode: z$1.ZodEnum<{
|
|
1317
1365
|
default: "default";
|
|
@@ -1331,8 +1379,13 @@ declare const WorkflowLibrarySchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
1331
1379
|
revision: z$1.ZodNumber;
|
|
1332
1380
|
name: z$1.ZodString;
|
|
1333
1381
|
description: z$1.ZodString;
|
|
1334
|
-
provider: z$1.
|
|
1382
|
+
provider: z$1.ZodEnum<{
|
|
1383
|
+
codex: "codex";
|
|
1384
|
+
claude: "claude";
|
|
1385
|
+
muse: "muse";
|
|
1386
|
+
}>;
|
|
1335
1387
|
model: z$1.ZodString;
|
|
1388
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1336
1389
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1337
1390
|
permissionMode: z$1.ZodEnum<{
|
|
1338
1391
|
default: "default";
|
|
@@ -1360,8 +1413,13 @@ declare const WorkflowLibrarySchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
1360
1413
|
revision: z$1.ZodNumber;
|
|
1361
1414
|
name: z$1.ZodString;
|
|
1362
1415
|
description: z$1.ZodString;
|
|
1363
|
-
provider: z$1.
|
|
1416
|
+
provider: z$1.ZodEnum<{
|
|
1417
|
+
codex: "codex";
|
|
1418
|
+
claude: "claude";
|
|
1419
|
+
muse: "muse";
|
|
1420
|
+
}>;
|
|
1364
1421
|
model: z$1.ZodString;
|
|
1422
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1365
1423
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1366
1424
|
permissionMode: z$1.ZodEnum<{
|
|
1367
1425
|
default: "default";
|
|
@@ -1483,8 +1541,13 @@ declare const WorkflowRunSchema: z$1.ZodObject<{
|
|
|
1483
1541
|
revision: z$1.ZodNumber;
|
|
1484
1542
|
name: z$1.ZodString;
|
|
1485
1543
|
description: z$1.ZodString;
|
|
1486
|
-
provider: z$1.
|
|
1544
|
+
provider: z$1.ZodEnum<{
|
|
1545
|
+
codex: "codex";
|
|
1546
|
+
claude: "claude";
|
|
1547
|
+
muse: "muse";
|
|
1548
|
+
}>;
|
|
1487
1549
|
model: z$1.ZodString;
|
|
1550
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1488
1551
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1489
1552
|
permissionMode: z$1.ZodEnum<{
|
|
1490
1553
|
default: "default";
|
|
@@ -1504,8 +1567,13 @@ declare const WorkflowRunSchema: z$1.ZodObject<{
|
|
|
1504
1567
|
revision: z$1.ZodNumber;
|
|
1505
1568
|
name: z$1.ZodString;
|
|
1506
1569
|
description: z$1.ZodString;
|
|
1507
|
-
provider: z$1.
|
|
1570
|
+
provider: z$1.ZodEnum<{
|
|
1571
|
+
codex: "codex";
|
|
1572
|
+
claude: "claude";
|
|
1573
|
+
muse: "muse";
|
|
1574
|
+
}>;
|
|
1508
1575
|
model: z$1.ZodString;
|
|
1576
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1509
1577
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1510
1578
|
permissionMode: z$1.ZodEnum<{
|
|
1511
1579
|
default: "default";
|
|
@@ -1525,8 +1593,13 @@ declare const WorkflowRunSchema: z$1.ZodObject<{
|
|
|
1525
1593
|
revision: z$1.ZodNumber;
|
|
1526
1594
|
name: z$1.ZodString;
|
|
1527
1595
|
description: z$1.ZodString;
|
|
1528
|
-
provider: z$1.
|
|
1596
|
+
provider: z$1.ZodEnum<{
|
|
1597
|
+
codex: "codex";
|
|
1598
|
+
claude: "claude";
|
|
1599
|
+
muse: "muse";
|
|
1600
|
+
}>;
|
|
1529
1601
|
model: z$1.ZodString;
|
|
1602
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1530
1603
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1531
1604
|
permissionMode: z$1.ZodEnum<{
|
|
1532
1605
|
default: "default";
|
|
@@ -1554,8 +1627,13 @@ declare const WorkflowRunSchema: z$1.ZodObject<{
|
|
|
1554
1627
|
revision: z$1.ZodNumber;
|
|
1555
1628
|
name: z$1.ZodString;
|
|
1556
1629
|
description: z$1.ZodString;
|
|
1557
|
-
provider: z$1.
|
|
1630
|
+
provider: z$1.ZodEnum<{
|
|
1631
|
+
codex: "codex";
|
|
1632
|
+
claude: "claude";
|
|
1633
|
+
muse: "muse";
|
|
1634
|
+
}>;
|
|
1558
1635
|
model: z$1.ZodString;
|
|
1636
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1559
1637
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1560
1638
|
permissionMode: z$1.ZodEnum<{
|
|
1561
1639
|
default: "default";
|
|
@@ -1695,8 +1773,13 @@ declare const WorkflowStartSchema: z$1.ZodObject<{
|
|
|
1695
1773
|
revision: z$1.ZodNumber;
|
|
1696
1774
|
name: z$1.ZodString;
|
|
1697
1775
|
description: z$1.ZodString;
|
|
1698
|
-
provider: z$1.
|
|
1776
|
+
provider: z$1.ZodEnum<{
|
|
1777
|
+
codex: "codex";
|
|
1778
|
+
claude: "claude";
|
|
1779
|
+
muse: "muse";
|
|
1780
|
+
}>;
|
|
1699
1781
|
model: z$1.ZodString;
|
|
1782
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1700
1783
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1701
1784
|
permissionMode: z$1.ZodEnum<{
|
|
1702
1785
|
default: "default";
|
|
@@ -1716,8 +1799,13 @@ declare const WorkflowStartSchema: z$1.ZodObject<{
|
|
|
1716
1799
|
revision: z$1.ZodNumber;
|
|
1717
1800
|
name: z$1.ZodString;
|
|
1718
1801
|
description: z$1.ZodString;
|
|
1719
|
-
provider: z$1.
|
|
1802
|
+
provider: z$1.ZodEnum<{
|
|
1803
|
+
codex: "codex";
|
|
1804
|
+
claude: "claude";
|
|
1805
|
+
muse: "muse";
|
|
1806
|
+
}>;
|
|
1720
1807
|
model: z$1.ZodString;
|
|
1808
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1721
1809
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1722
1810
|
permissionMode: z$1.ZodEnum<{
|
|
1723
1811
|
default: "default";
|
|
@@ -1737,8 +1825,13 @@ declare const WorkflowStartSchema: z$1.ZodObject<{
|
|
|
1737
1825
|
revision: z$1.ZodNumber;
|
|
1738
1826
|
name: z$1.ZodString;
|
|
1739
1827
|
description: z$1.ZodString;
|
|
1740
|
-
provider: z$1.
|
|
1828
|
+
provider: z$1.ZodEnum<{
|
|
1829
|
+
codex: "codex";
|
|
1830
|
+
claude: "claude";
|
|
1831
|
+
muse: "muse";
|
|
1832
|
+
}>;
|
|
1741
1833
|
model: z$1.ZodString;
|
|
1834
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1742
1835
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1743
1836
|
permissionMode: z$1.ZodEnum<{
|
|
1744
1837
|
default: "default";
|
|
@@ -1766,8 +1859,13 @@ declare const WorkflowStartSchema: z$1.ZodObject<{
|
|
|
1766
1859
|
revision: z$1.ZodNumber;
|
|
1767
1860
|
name: z$1.ZodString;
|
|
1768
1861
|
description: z$1.ZodString;
|
|
1769
|
-
provider: z$1.
|
|
1862
|
+
provider: z$1.ZodEnum<{
|
|
1863
|
+
codex: "codex";
|
|
1864
|
+
claude: "claude";
|
|
1865
|
+
muse: "muse";
|
|
1866
|
+
}>;
|
|
1770
1867
|
model: z$1.ZodString;
|
|
1868
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1771
1869
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1772
1870
|
permissionMode: z$1.ZodEnum<{
|
|
1773
1871
|
default: "default";
|
|
@@ -1821,8 +1919,13 @@ declare const WorkflowActionSchema: z$1.ZodObject<{
|
|
|
1821
1919
|
revision: z$1.ZodNumber;
|
|
1822
1920
|
name: z$1.ZodString;
|
|
1823
1921
|
description: z$1.ZodString;
|
|
1824
|
-
provider: z$1.
|
|
1922
|
+
provider: z$1.ZodEnum<{
|
|
1923
|
+
codex: "codex";
|
|
1924
|
+
claude: "claude";
|
|
1925
|
+
muse: "muse";
|
|
1926
|
+
}>;
|
|
1825
1927
|
model: z$1.ZodString;
|
|
1928
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1826
1929
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1827
1930
|
permissionMode: z$1.ZodEnum<{
|
|
1828
1931
|
default: "default";
|
|
@@ -1840,6 +1943,7 @@ declare function workflowEnabled(s: {
|
|
|
1840
1943
|
expWorkflows?: boolean;
|
|
1841
1944
|
}): boolean;
|
|
1842
1945
|
declare const workflowStageLabel: Record<WorkflowStage, string>;
|
|
1946
|
+
declare function workflowNeedsProviders(definition: WorkflowDefinition): boolean;
|
|
1843
1947
|
|
|
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 };
|
|
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 };
|
|
1845
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 };
|
package/dist/index.d.mts
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";
|
|
@@ -1084,8 +1094,13 @@ declare const WorkflowStepSchema: z$1.ZodObject<{
|
|
|
1084
1094
|
revision: z$1.ZodNumber;
|
|
1085
1095
|
name: z$1.ZodString;
|
|
1086
1096
|
description: z$1.ZodString;
|
|
1087
|
-
provider: z$1.
|
|
1097
|
+
provider: z$1.ZodEnum<{
|
|
1098
|
+
codex: "codex";
|
|
1099
|
+
claude: "claude";
|
|
1100
|
+
muse: "muse";
|
|
1101
|
+
}>;
|
|
1088
1102
|
model: z$1.ZodString;
|
|
1103
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1089
1104
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1090
1105
|
permissionMode: z$1.ZodEnum<{
|
|
1091
1106
|
default: "default";
|
|
@@ -1114,7 +1129,7 @@ declare function workflowProjection(steps: WorkflowStep[]): {
|
|
|
1114
1129
|
revision: number;
|
|
1115
1130
|
name: string;
|
|
1116
1131
|
description: string;
|
|
1117
|
-
provider: "codex";
|
|
1132
|
+
provider: "codex" | "claude" | "muse";
|
|
1118
1133
|
model: string;
|
|
1119
1134
|
effort: string | null;
|
|
1120
1135
|
permissionMode: "default" | "read-only";
|
|
@@ -1123,6 +1138,7 @@ declare function workflowProjection(steps: WorkflowStep[]): {
|
|
|
1123
1138
|
name: string;
|
|
1124
1139
|
content: string;
|
|
1125
1140
|
}[];
|
|
1141
|
+
modelLabel?: string | undefined;
|
|
1126
1142
|
};
|
|
1127
1143
|
assignment: string;
|
|
1128
1144
|
}[];
|
|
@@ -1132,7 +1148,7 @@ declare function workflowProjection(steps: WorkflowStep[]): {
|
|
|
1132
1148
|
revision: number;
|
|
1133
1149
|
name: string;
|
|
1134
1150
|
description: string;
|
|
1135
|
-
provider: "codex";
|
|
1151
|
+
provider: "codex" | "claude" | "muse";
|
|
1136
1152
|
model: string;
|
|
1137
1153
|
effort: string | null;
|
|
1138
1154
|
permissionMode: "default" | "read-only";
|
|
@@ -1141,6 +1157,7 @@ declare function workflowProjection(steps: WorkflowStep[]): {
|
|
|
1141
1157
|
name: string;
|
|
1142
1158
|
content: string;
|
|
1143
1159
|
}[];
|
|
1160
|
+
modelLabel?: string | undefined;
|
|
1144
1161
|
};
|
|
1145
1162
|
assignment: string;
|
|
1146
1163
|
} | undefined;
|
|
@@ -1150,7 +1167,7 @@ declare function workflowProjection(steps: WorkflowStep[]): {
|
|
|
1150
1167
|
revision: number;
|
|
1151
1168
|
name: string;
|
|
1152
1169
|
description: string;
|
|
1153
|
-
provider: "codex";
|
|
1170
|
+
provider: "codex" | "claude" | "muse";
|
|
1154
1171
|
model: string;
|
|
1155
1172
|
effort: string | null;
|
|
1156
1173
|
permissionMode: "default" | "read-only";
|
|
@@ -1159,6 +1176,7 @@ declare function workflowProjection(steps: WorkflowStep[]): {
|
|
|
1159
1176
|
name: string;
|
|
1160
1177
|
content: string;
|
|
1161
1178
|
}[];
|
|
1179
|
+
modelLabel?: string | undefined;
|
|
1162
1180
|
};
|
|
1163
1181
|
assignment: string;
|
|
1164
1182
|
}[];
|
|
@@ -1174,8 +1192,13 @@ declare const WorkflowDefinitionSchema: z$1.ZodObject<{
|
|
|
1174
1192
|
revision: z$1.ZodNumber;
|
|
1175
1193
|
name: z$1.ZodString;
|
|
1176
1194
|
description: z$1.ZodString;
|
|
1177
|
-
provider: z$1.
|
|
1195
|
+
provider: z$1.ZodEnum<{
|
|
1196
|
+
codex: "codex";
|
|
1197
|
+
claude: "claude";
|
|
1198
|
+
muse: "muse";
|
|
1199
|
+
}>;
|
|
1178
1200
|
model: z$1.ZodString;
|
|
1201
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1179
1202
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1180
1203
|
permissionMode: z$1.ZodEnum<{
|
|
1181
1204
|
default: "default";
|
|
@@ -1195,8 +1218,13 @@ declare const WorkflowDefinitionSchema: z$1.ZodObject<{
|
|
|
1195
1218
|
revision: z$1.ZodNumber;
|
|
1196
1219
|
name: z$1.ZodString;
|
|
1197
1220
|
description: z$1.ZodString;
|
|
1198
|
-
provider: z$1.
|
|
1221
|
+
provider: z$1.ZodEnum<{
|
|
1222
|
+
codex: "codex";
|
|
1223
|
+
claude: "claude";
|
|
1224
|
+
muse: "muse";
|
|
1225
|
+
}>;
|
|
1199
1226
|
model: z$1.ZodString;
|
|
1227
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1200
1228
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1201
1229
|
permissionMode: z$1.ZodEnum<{
|
|
1202
1230
|
default: "default";
|
|
@@ -1216,8 +1244,13 @@ declare const WorkflowDefinitionSchema: z$1.ZodObject<{
|
|
|
1216
1244
|
revision: z$1.ZodNumber;
|
|
1217
1245
|
name: z$1.ZodString;
|
|
1218
1246
|
description: z$1.ZodString;
|
|
1219
|
-
provider: z$1.
|
|
1247
|
+
provider: z$1.ZodEnum<{
|
|
1248
|
+
codex: "codex";
|
|
1249
|
+
claude: "claude";
|
|
1250
|
+
muse: "muse";
|
|
1251
|
+
}>;
|
|
1220
1252
|
model: z$1.ZodString;
|
|
1253
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1221
1254
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1222
1255
|
permissionMode: z$1.ZodEnum<{
|
|
1223
1256
|
default: "default";
|
|
@@ -1245,8 +1278,13 @@ declare const WorkflowDefinitionSchema: z$1.ZodObject<{
|
|
|
1245
1278
|
revision: z$1.ZodNumber;
|
|
1246
1279
|
name: z$1.ZodString;
|
|
1247
1280
|
description: z$1.ZodString;
|
|
1248
|
-
provider: z$1.
|
|
1281
|
+
provider: z$1.ZodEnum<{
|
|
1282
|
+
codex: "codex";
|
|
1283
|
+
claude: "claude";
|
|
1284
|
+
muse: "muse";
|
|
1285
|
+
}>;
|
|
1249
1286
|
model: z$1.ZodString;
|
|
1287
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1250
1288
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1251
1289
|
permissionMode: z$1.ZodEnum<{
|
|
1252
1290
|
default: "default";
|
|
@@ -1289,8 +1327,13 @@ declare const WorkflowLibrarySchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
1289
1327
|
revision: z$1.ZodNumber;
|
|
1290
1328
|
name: z$1.ZodString;
|
|
1291
1329
|
description: z$1.ZodString;
|
|
1292
|
-
provider: z$1.
|
|
1330
|
+
provider: z$1.ZodEnum<{
|
|
1331
|
+
codex: "codex";
|
|
1332
|
+
claude: "claude";
|
|
1333
|
+
muse: "muse";
|
|
1334
|
+
}>;
|
|
1293
1335
|
model: z$1.ZodString;
|
|
1336
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1294
1337
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1295
1338
|
permissionMode: z$1.ZodEnum<{
|
|
1296
1339
|
default: "default";
|
|
@@ -1310,8 +1353,13 @@ declare const WorkflowLibrarySchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
1310
1353
|
revision: z$1.ZodNumber;
|
|
1311
1354
|
name: z$1.ZodString;
|
|
1312
1355
|
description: z$1.ZodString;
|
|
1313
|
-
provider: z$1.
|
|
1356
|
+
provider: z$1.ZodEnum<{
|
|
1357
|
+
codex: "codex";
|
|
1358
|
+
claude: "claude";
|
|
1359
|
+
muse: "muse";
|
|
1360
|
+
}>;
|
|
1314
1361
|
model: z$1.ZodString;
|
|
1362
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1315
1363
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1316
1364
|
permissionMode: z$1.ZodEnum<{
|
|
1317
1365
|
default: "default";
|
|
@@ -1331,8 +1379,13 @@ declare const WorkflowLibrarySchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
1331
1379
|
revision: z$1.ZodNumber;
|
|
1332
1380
|
name: z$1.ZodString;
|
|
1333
1381
|
description: z$1.ZodString;
|
|
1334
|
-
provider: z$1.
|
|
1382
|
+
provider: z$1.ZodEnum<{
|
|
1383
|
+
codex: "codex";
|
|
1384
|
+
claude: "claude";
|
|
1385
|
+
muse: "muse";
|
|
1386
|
+
}>;
|
|
1335
1387
|
model: z$1.ZodString;
|
|
1388
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1336
1389
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1337
1390
|
permissionMode: z$1.ZodEnum<{
|
|
1338
1391
|
default: "default";
|
|
@@ -1360,8 +1413,13 @@ declare const WorkflowLibrarySchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
1360
1413
|
revision: z$1.ZodNumber;
|
|
1361
1414
|
name: z$1.ZodString;
|
|
1362
1415
|
description: z$1.ZodString;
|
|
1363
|
-
provider: z$1.
|
|
1416
|
+
provider: z$1.ZodEnum<{
|
|
1417
|
+
codex: "codex";
|
|
1418
|
+
claude: "claude";
|
|
1419
|
+
muse: "muse";
|
|
1420
|
+
}>;
|
|
1364
1421
|
model: z$1.ZodString;
|
|
1422
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1365
1423
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1366
1424
|
permissionMode: z$1.ZodEnum<{
|
|
1367
1425
|
default: "default";
|
|
@@ -1483,8 +1541,13 @@ declare const WorkflowRunSchema: z$1.ZodObject<{
|
|
|
1483
1541
|
revision: z$1.ZodNumber;
|
|
1484
1542
|
name: z$1.ZodString;
|
|
1485
1543
|
description: z$1.ZodString;
|
|
1486
|
-
provider: z$1.
|
|
1544
|
+
provider: z$1.ZodEnum<{
|
|
1545
|
+
codex: "codex";
|
|
1546
|
+
claude: "claude";
|
|
1547
|
+
muse: "muse";
|
|
1548
|
+
}>;
|
|
1487
1549
|
model: z$1.ZodString;
|
|
1550
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1488
1551
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1489
1552
|
permissionMode: z$1.ZodEnum<{
|
|
1490
1553
|
default: "default";
|
|
@@ -1504,8 +1567,13 @@ declare const WorkflowRunSchema: z$1.ZodObject<{
|
|
|
1504
1567
|
revision: z$1.ZodNumber;
|
|
1505
1568
|
name: z$1.ZodString;
|
|
1506
1569
|
description: z$1.ZodString;
|
|
1507
|
-
provider: z$1.
|
|
1570
|
+
provider: z$1.ZodEnum<{
|
|
1571
|
+
codex: "codex";
|
|
1572
|
+
claude: "claude";
|
|
1573
|
+
muse: "muse";
|
|
1574
|
+
}>;
|
|
1508
1575
|
model: z$1.ZodString;
|
|
1576
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1509
1577
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1510
1578
|
permissionMode: z$1.ZodEnum<{
|
|
1511
1579
|
default: "default";
|
|
@@ -1525,8 +1593,13 @@ declare const WorkflowRunSchema: z$1.ZodObject<{
|
|
|
1525
1593
|
revision: z$1.ZodNumber;
|
|
1526
1594
|
name: z$1.ZodString;
|
|
1527
1595
|
description: z$1.ZodString;
|
|
1528
|
-
provider: z$1.
|
|
1596
|
+
provider: z$1.ZodEnum<{
|
|
1597
|
+
codex: "codex";
|
|
1598
|
+
claude: "claude";
|
|
1599
|
+
muse: "muse";
|
|
1600
|
+
}>;
|
|
1529
1601
|
model: z$1.ZodString;
|
|
1602
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1530
1603
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1531
1604
|
permissionMode: z$1.ZodEnum<{
|
|
1532
1605
|
default: "default";
|
|
@@ -1554,8 +1627,13 @@ declare const WorkflowRunSchema: z$1.ZodObject<{
|
|
|
1554
1627
|
revision: z$1.ZodNumber;
|
|
1555
1628
|
name: z$1.ZodString;
|
|
1556
1629
|
description: z$1.ZodString;
|
|
1557
|
-
provider: z$1.
|
|
1630
|
+
provider: z$1.ZodEnum<{
|
|
1631
|
+
codex: "codex";
|
|
1632
|
+
claude: "claude";
|
|
1633
|
+
muse: "muse";
|
|
1634
|
+
}>;
|
|
1558
1635
|
model: z$1.ZodString;
|
|
1636
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1559
1637
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1560
1638
|
permissionMode: z$1.ZodEnum<{
|
|
1561
1639
|
default: "default";
|
|
@@ -1695,8 +1773,13 @@ declare const WorkflowStartSchema: z$1.ZodObject<{
|
|
|
1695
1773
|
revision: z$1.ZodNumber;
|
|
1696
1774
|
name: z$1.ZodString;
|
|
1697
1775
|
description: z$1.ZodString;
|
|
1698
|
-
provider: z$1.
|
|
1776
|
+
provider: z$1.ZodEnum<{
|
|
1777
|
+
codex: "codex";
|
|
1778
|
+
claude: "claude";
|
|
1779
|
+
muse: "muse";
|
|
1780
|
+
}>;
|
|
1699
1781
|
model: z$1.ZodString;
|
|
1782
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1700
1783
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1701
1784
|
permissionMode: z$1.ZodEnum<{
|
|
1702
1785
|
default: "default";
|
|
@@ -1716,8 +1799,13 @@ declare const WorkflowStartSchema: z$1.ZodObject<{
|
|
|
1716
1799
|
revision: z$1.ZodNumber;
|
|
1717
1800
|
name: z$1.ZodString;
|
|
1718
1801
|
description: z$1.ZodString;
|
|
1719
|
-
provider: z$1.
|
|
1802
|
+
provider: z$1.ZodEnum<{
|
|
1803
|
+
codex: "codex";
|
|
1804
|
+
claude: "claude";
|
|
1805
|
+
muse: "muse";
|
|
1806
|
+
}>;
|
|
1720
1807
|
model: z$1.ZodString;
|
|
1808
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1721
1809
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1722
1810
|
permissionMode: z$1.ZodEnum<{
|
|
1723
1811
|
default: "default";
|
|
@@ -1737,8 +1825,13 @@ declare const WorkflowStartSchema: z$1.ZodObject<{
|
|
|
1737
1825
|
revision: z$1.ZodNumber;
|
|
1738
1826
|
name: z$1.ZodString;
|
|
1739
1827
|
description: z$1.ZodString;
|
|
1740
|
-
provider: z$1.
|
|
1828
|
+
provider: z$1.ZodEnum<{
|
|
1829
|
+
codex: "codex";
|
|
1830
|
+
claude: "claude";
|
|
1831
|
+
muse: "muse";
|
|
1832
|
+
}>;
|
|
1741
1833
|
model: z$1.ZodString;
|
|
1834
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1742
1835
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1743
1836
|
permissionMode: z$1.ZodEnum<{
|
|
1744
1837
|
default: "default";
|
|
@@ -1766,8 +1859,13 @@ declare const WorkflowStartSchema: z$1.ZodObject<{
|
|
|
1766
1859
|
revision: z$1.ZodNumber;
|
|
1767
1860
|
name: z$1.ZodString;
|
|
1768
1861
|
description: z$1.ZodString;
|
|
1769
|
-
provider: z$1.
|
|
1862
|
+
provider: z$1.ZodEnum<{
|
|
1863
|
+
codex: "codex";
|
|
1864
|
+
claude: "claude";
|
|
1865
|
+
muse: "muse";
|
|
1866
|
+
}>;
|
|
1770
1867
|
model: z$1.ZodString;
|
|
1868
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1771
1869
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1772
1870
|
permissionMode: z$1.ZodEnum<{
|
|
1773
1871
|
default: "default";
|
|
@@ -1821,8 +1919,13 @@ declare const WorkflowActionSchema: z$1.ZodObject<{
|
|
|
1821
1919
|
revision: z$1.ZodNumber;
|
|
1822
1920
|
name: z$1.ZodString;
|
|
1823
1921
|
description: z$1.ZodString;
|
|
1824
|
-
provider: z$1.
|
|
1922
|
+
provider: z$1.ZodEnum<{
|
|
1923
|
+
codex: "codex";
|
|
1924
|
+
claude: "claude";
|
|
1925
|
+
muse: "muse";
|
|
1926
|
+
}>;
|
|
1825
1927
|
model: z$1.ZodString;
|
|
1928
|
+
modelLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
1826
1929
|
effort: z$1.ZodNullable<z$1.ZodString>;
|
|
1827
1930
|
permissionMode: z$1.ZodEnum<{
|
|
1828
1931
|
default: "default";
|
|
@@ -1840,6 +1943,7 @@ declare function workflowEnabled(s: {
|
|
|
1840
1943
|
expWorkflows?: boolean;
|
|
1841
1944
|
}): boolean;
|
|
1842
1945
|
declare const workflowStageLabel: Record<WorkflowStage, string>;
|
|
1946
|
+
declare function workflowNeedsProviders(definition: WorkflowDefinition): boolean;
|
|
1843
1947
|
|
|
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 };
|
|
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 };
|
|
1845
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 };
|
package/dist/index.mjs
CHANGED
|
@@ -352,8 +352,9 @@ const WorkflowAgentSchema = z$1.object({
|
|
|
352
352
|
revision: z$1.number().int().positive(),
|
|
353
353
|
name: z$1.string().min(1).max(60),
|
|
354
354
|
description: z$1.string().max(300),
|
|
355
|
-
provider: z$1.
|
|
355
|
+
provider: z$1.enum(["codex", "claude", "muse"]),
|
|
356
356
|
model: z$1.string().min(1).max(200),
|
|
357
|
+
modelLabel: z$1.string().max(300).optional(),
|
|
357
358
|
effort: z$1.string().max(30).nullable(),
|
|
358
359
|
permissionMode: z$1.enum(["default", "read-only"]),
|
|
359
360
|
instructions: text,
|
|
@@ -509,5 +510,8 @@ function workflowEnabled(s) {
|
|
|
509
510
|
return s.experiments === true && s.expWorkflows === true;
|
|
510
511
|
}
|
|
511
512
|
const workflowStageLabel = { propose: "Independent proposals", consolidate: "Consolidating plan", plan_vote: "Planning consensus", execute: "Executing", review: "Independent review", verify: "Completion checks" };
|
|
513
|
+
function workflowNeedsProviders(definition) {
|
|
514
|
+
return workflowSlots(definition).some((slot) => slot.agent.provider !== "codex");
|
|
515
|
+
}
|
|
512
516
|
|
|
513
|
-
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 };
|
|
517
|
+
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 };
|