@outputai/cli 0.8.1 → 0.8.2-next.c12766f.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/docker/docker-compose-dev.yml +1 -1
- package/dist/commands/workflow/cost.d.ts +3 -2
- package/dist/commands/workflow/cost.js +4 -11
- package/dist/commands/workflow/cost.spec.js +1 -3
- package/dist/commands/workflow/dataset/list.d.ts +3 -1
- package/dist/commands/workflow/dataset/list.js +10 -14
- package/dist/commands/workflow/debug.d.ts +2 -6
- package/dist/commands/workflow/debug.js +10 -29
- package/dist/commands/workflow/debug.spec.js +2 -5
- package/dist/commands/workflow/list.d.ts +4 -1
- package/dist/commands/workflow/list.js +15 -19
- package/dist/commands/workflow/list.spec.js +2 -1
- package/dist/commands/workflow/result.d.ts +3 -4
- package/dist/commands/workflow/result.js +6 -15
- package/dist/commands/workflow/result.spec.js +2 -4
- package/dist/commands/workflow/run.d.ts +3 -2
- package/dist/commands/workflow/run.js +4 -11
- package/dist/commands/workflow/run.spec.js +1 -3
- package/dist/commands/workflow/runs/list.d.ts +3 -1
- package/dist/commands/workflow/runs/list.js +11 -15
- package/dist/commands/workflow/status.d.ts +3 -4
- package/dist/commands/workflow/status.js +20 -30
- package/dist/commands/workflow/status.spec.js +2 -4
- package/dist/commands/workflow/test_eval.d.ts +3 -2
- package/dist/commands/workflow/test_eval.js +5 -15
- package/dist/commands/workflow/test_eval.spec.d.ts +1 -0
- package/dist/commands/workflow/test_eval.spec.js +84 -0
- package/dist/generated/framework_version.json +1 -1
- package/dist/hooks/init.d.ts +1 -0
- package/dist/hooks/init.js +40 -30
- package/dist/hooks/init.spec.js +28 -4
- package/dist/utils/format_workflow_result.spec.js +0 -13
- package/dist/utils/trace_formatter.js +1 -2
- package/oclif.manifest.json +82 -101
- package/package.json +4 -4
- package/dist/utils/constants.d.ts +0 -5
- package/dist/utils/constants.js +0 -4
- package/dist/utils/output_formatter.d.ts +0 -2
- package/dist/utils/output_formatter.js +0 -11
package/oclif.manifest.json
CHANGED
|
@@ -535,21 +535,15 @@
|
|
|
535
535
|
"<%= config.bin %> <%= command.id %> my_workflow_id",
|
|
536
536
|
"<%= config.bin %> <%= command.id %> my_workflow_id --verbose",
|
|
537
537
|
"<%= config.bin %> <%= command.id %> my_workflow_id path/to/trace.json",
|
|
538
|
-
"<%= config.bin %> <%= command.id %> my_workflow_id --
|
|
538
|
+
"<%= config.bin %> <%= command.id %> my_workflow_id --json"
|
|
539
539
|
],
|
|
540
540
|
"flags": {
|
|
541
|
-
"
|
|
542
|
-
"
|
|
543
|
-
"
|
|
544
|
-
"name": "
|
|
545
|
-
"
|
|
546
|
-
"
|
|
547
|
-
"multiple": false,
|
|
548
|
-
"options": [
|
|
549
|
-
"json",
|
|
550
|
-
"text"
|
|
551
|
-
],
|
|
552
|
-
"type": "option"
|
|
541
|
+
"json": {
|
|
542
|
+
"description": "Format output as json.",
|
|
543
|
+
"helpGroup": "GLOBAL",
|
|
544
|
+
"name": "json",
|
|
545
|
+
"allowNo": false,
|
|
546
|
+
"type": "boolean"
|
|
553
547
|
},
|
|
554
548
|
"verbose": {
|
|
555
549
|
"description": "Show detailed per-call breakdown",
|
|
@@ -565,7 +559,7 @@
|
|
|
565
559
|
"pluginName": "@outputai/cli",
|
|
566
560
|
"pluginType": "core",
|
|
567
561
|
"strict": true,
|
|
568
|
-
"enableJsonFlag":
|
|
562
|
+
"enableJsonFlag": true,
|
|
569
563
|
"isESM": true,
|
|
570
564
|
"relativePath": [
|
|
571
565
|
"dist",
|
|
@@ -586,22 +580,15 @@
|
|
|
586
580
|
"description": "Get and display workflow execution trace for debugging",
|
|
587
581
|
"examples": [
|
|
588
582
|
"<%= config.bin %> <%= command.id %> wf-12345",
|
|
589
|
-
"<%= config.bin %> <%= command.id %> wf-12345 --
|
|
590
|
-
"<%= config.bin %> <%= command.id %> wf-12345 --format text"
|
|
583
|
+
"<%= config.bin %> <%= command.id %> wf-12345 --json"
|
|
591
584
|
],
|
|
592
585
|
"flags": {
|
|
593
|
-
"
|
|
594
|
-
"
|
|
595
|
-
"
|
|
596
|
-
"name": "
|
|
597
|
-
"
|
|
598
|
-
"
|
|
599
|
-
"multiple": false,
|
|
600
|
-
"options": [
|
|
601
|
-
"json",
|
|
602
|
-
"text"
|
|
603
|
-
],
|
|
604
|
-
"type": "option"
|
|
586
|
+
"json": {
|
|
587
|
+
"description": "Format output as json.",
|
|
588
|
+
"helpGroup": "GLOBAL",
|
|
589
|
+
"name": "json",
|
|
590
|
+
"allowNo": false,
|
|
591
|
+
"type": "boolean"
|
|
605
592
|
}
|
|
606
593
|
},
|
|
607
594
|
"hasDynamicHelp": false,
|
|
@@ -611,7 +598,7 @@
|
|
|
611
598
|
"pluginName": "@outputai/cli",
|
|
612
599
|
"pluginType": "core",
|
|
613
600
|
"strict": true,
|
|
614
|
-
"enableJsonFlag":
|
|
601
|
+
"enableJsonFlag": true,
|
|
615
602
|
"isESM": true,
|
|
616
603
|
"relativePath": [
|
|
617
604
|
"dist",
|
|
@@ -702,12 +689,19 @@
|
|
|
702
689
|
"examples": [
|
|
703
690
|
"<%= config.bin %> <%= command.id %>",
|
|
704
691
|
"<%= config.bin %> <%= command.id %> --format table",
|
|
705
|
-
"<%= config.bin %> <%= command.id %> --
|
|
692
|
+
"<%= config.bin %> <%= command.id %> --json",
|
|
706
693
|
"<%= config.bin %> <%= command.id %> --detailed",
|
|
707
694
|
"<%= config.bin %> <%= command.id %> --filter simple",
|
|
708
695
|
"<%= config.bin %> <%= command.id %> --catalog my-catalog"
|
|
709
696
|
],
|
|
710
697
|
"flags": {
|
|
698
|
+
"json": {
|
|
699
|
+
"description": "Format output as json.",
|
|
700
|
+
"helpGroup": "GLOBAL",
|
|
701
|
+
"name": "json",
|
|
702
|
+
"allowNo": false,
|
|
703
|
+
"type": "boolean"
|
|
704
|
+
},
|
|
711
705
|
"catalog": {
|
|
712
706
|
"aliases": [
|
|
713
707
|
"task-queue"
|
|
@@ -726,15 +720,14 @@
|
|
|
726
720
|
},
|
|
727
721
|
"format": {
|
|
728
722
|
"char": "f",
|
|
729
|
-
"description": "Output format",
|
|
723
|
+
"description": "Output format (use --json for JSON output)",
|
|
730
724
|
"name": "format",
|
|
731
725
|
"default": "list",
|
|
732
726
|
"hasDynamicHelp": false,
|
|
733
727
|
"multiple": false,
|
|
734
728
|
"options": [
|
|
735
729
|
"list",
|
|
736
|
-
"table"
|
|
737
|
-
"json"
|
|
730
|
+
"table"
|
|
738
731
|
],
|
|
739
732
|
"type": "option"
|
|
740
733
|
},
|
|
@@ -760,7 +753,7 @@
|
|
|
760
753
|
"pluginName": "@outputai/cli",
|
|
761
754
|
"pluginType": "core",
|
|
762
755
|
"strict": true,
|
|
763
|
-
"enableJsonFlag":
|
|
756
|
+
"enableJsonFlag": true,
|
|
764
757
|
"isESM": true,
|
|
765
758
|
"relativePath": [
|
|
766
759
|
"dist",
|
|
@@ -872,21 +865,15 @@
|
|
|
872
865
|
"description": "Get workflow execution result",
|
|
873
866
|
"examples": [
|
|
874
867
|
"<%= config.bin %> <%= command.id %> wf-12345",
|
|
875
|
-
"<%= config.bin %> <%= command.id %> wf-12345 --
|
|
868
|
+
"<%= config.bin %> <%= command.id %> wf-12345 --json"
|
|
876
869
|
],
|
|
877
870
|
"flags": {
|
|
878
|
-
"
|
|
879
|
-
"
|
|
880
|
-
"
|
|
881
|
-
"name": "
|
|
882
|
-
"
|
|
883
|
-
"
|
|
884
|
-
"multiple": false,
|
|
885
|
-
"options": [
|
|
886
|
-
"json",
|
|
887
|
-
"text"
|
|
888
|
-
],
|
|
889
|
-
"type": "option"
|
|
871
|
+
"json": {
|
|
872
|
+
"description": "Format output as json.",
|
|
873
|
+
"helpGroup": "GLOBAL",
|
|
874
|
+
"name": "json",
|
|
875
|
+
"allowNo": false,
|
|
876
|
+
"type": "boolean"
|
|
890
877
|
}
|
|
891
878
|
},
|
|
892
879
|
"hasDynamicHelp": false,
|
|
@@ -896,7 +883,7 @@
|
|
|
896
883
|
"pluginName": "@outputai/cli",
|
|
897
884
|
"pluginType": "core",
|
|
898
885
|
"strict": true,
|
|
899
|
-
"enableJsonFlag":
|
|
886
|
+
"enableJsonFlag": true,
|
|
900
887
|
"isESM": true,
|
|
901
888
|
"relativePath": [
|
|
902
889
|
"dist",
|
|
@@ -922,12 +909,19 @@
|
|
|
922
909
|
"description": "Execute a workflow synchronously and wait for completion",
|
|
923
910
|
"examples": [
|
|
924
911
|
"<%= config.bin %> <%= command.id %> simple basic_input",
|
|
925
|
-
"<%= config.bin %> <%= command.id %> simple my_scenario --
|
|
912
|
+
"<%= config.bin %> <%= command.id %> simple my_scenario --json",
|
|
926
913
|
"<%= config.bin %> <%= command.id %> simple --input '{\"values\":[1,2,3]}'",
|
|
927
914
|
"<%= config.bin %> <%= command.id %> simple --input input.json",
|
|
928
915
|
"<%= config.bin %> <%= command.id %> simple --input '{\"key\":\"value\"}' --catalog my-catalog"
|
|
929
916
|
],
|
|
930
917
|
"flags": {
|
|
918
|
+
"json": {
|
|
919
|
+
"description": "Format output as json.",
|
|
920
|
+
"helpGroup": "GLOBAL",
|
|
921
|
+
"name": "json",
|
|
922
|
+
"allowNo": false,
|
|
923
|
+
"type": "boolean"
|
|
924
|
+
},
|
|
931
925
|
"input": {
|
|
932
926
|
"char": "i",
|
|
933
927
|
"description": "Workflow input as JSON string or file path (overrides scenario)",
|
|
@@ -952,19 +946,6 @@
|
|
|
952
946
|
"hasDynamicHelp": false,
|
|
953
947
|
"multiple": false,
|
|
954
948
|
"type": "option"
|
|
955
|
-
},
|
|
956
|
-
"format": {
|
|
957
|
-
"char": "f",
|
|
958
|
-
"description": "Output format",
|
|
959
|
-
"name": "format",
|
|
960
|
-
"default": "text",
|
|
961
|
-
"hasDynamicHelp": false,
|
|
962
|
-
"multiple": false,
|
|
963
|
-
"options": [
|
|
964
|
-
"json",
|
|
965
|
-
"text"
|
|
966
|
-
],
|
|
967
|
-
"type": "option"
|
|
968
949
|
}
|
|
969
950
|
},
|
|
970
951
|
"hasDynamicHelp": false,
|
|
@@ -974,7 +955,7 @@
|
|
|
974
955
|
"pluginName": "@outputai/cli",
|
|
975
956
|
"pluginType": "core",
|
|
976
957
|
"strict": true,
|
|
977
|
-
"enableJsonFlag":
|
|
958
|
+
"enableJsonFlag": true,
|
|
978
959
|
"isESM": true,
|
|
979
960
|
"relativePath": [
|
|
980
961
|
"dist",
|
|
@@ -1059,21 +1040,15 @@
|
|
|
1059
1040
|
"description": "Get workflow execution status",
|
|
1060
1041
|
"examples": [
|
|
1061
1042
|
"<%= config.bin %> <%= command.id %> wf-12345",
|
|
1062
|
-
"<%= config.bin %> <%= command.id %> wf-12345 --
|
|
1043
|
+
"<%= config.bin %> <%= command.id %> wf-12345 --json"
|
|
1063
1044
|
],
|
|
1064
1045
|
"flags": {
|
|
1065
|
-
"
|
|
1066
|
-
"
|
|
1067
|
-
"
|
|
1068
|
-
"name": "
|
|
1069
|
-
"
|
|
1070
|
-
"
|
|
1071
|
-
"multiple": false,
|
|
1072
|
-
"options": [
|
|
1073
|
-
"json",
|
|
1074
|
-
"text"
|
|
1075
|
-
],
|
|
1076
|
-
"type": "option"
|
|
1046
|
+
"json": {
|
|
1047
|
+
"description": "Format output as json.",
|
|
1048
|
+
"helpGroup": "GLOBAL",
|
|
1049
|
+
"name": "json",
|
|
1050
|
+
"allowNo": false,
|
|
1051
|
+
"type": "boolean"
|
|
1077
1052
|
}
|
|
1078
1053
|
},
|
|
1079
1054
|
"hasDynamicHelp": false,
|
|
@@ -1083,7 +1058,7 @@
|
|
|
1083
1058
|
"pluginName": "@outputai/cli",
|
|
1084
1059
|
"pluginType": "core",
|
|
1085
1060
|
"strict": true,
|
|
1086
|
-
"enableJsonFlag":
|
|
1061
|
+
"enableJsonFlag": true,
|
|
1087
1062
|
"isESM": true,
|
|
1088
1063
|
"relativePath": [
|
|
1089
1064
|
"dist",
|
|
@@ -1179,9 +1154,16 @@
|
|
|
1179
1154
|
"<%= config.bin %> <%= command.id %> simple --cached",
|
|
1180
1155
|
"<%= config.bin %> <%= command.id %> simple --save",
|
|
1181
1156
|
"<%= config.bin %> <%= command.id %> simple --dataset basic_input,edge_case",
|
|
1182
|
-
"<%= config.bin %> <%= command.id %> simple --
|
|
1157
|
+
"<%= config.bin %> <%= command.id %> simple --json"
|
|
1183
1158
|
],
|
|
1184
1159
|
"flags": {
|
|
1160
|
+
"json": {
|
|
1161
|
+
"description": "Format output as json.",
|
|
1162
|
+
"helpGroup": "GLOBAL",
|
|
1163
|
+
"name": "json",
|
|
1164
|
+
"allowNo": false,
|
|
1165
|
+
"type": "boolean"
|
|
1166
|
+
},
|
|
1185
1167
|
"cached": {
|
|
1186
1168
|
"description": "Use cached output from dataset files (skip workflow execution)",
|
|
1187
1169
|
"exclusive": [
|
|
@@ -1207,19 +1189,6 @@
|
|
|
1207
1189
|
"hasDynamicHelp": false,
|
|
1208
1190
|
"multiple": false,
|
|
1209
1191
|
"type": "option"
|
|
1210
|
-
},
|
|
1211
|
-
"format": {
|
|
1212
|
-
"char": "f",
|
|
1213
|
-
"description": "Output format",
|
|
1214
|
-
"name": "format",
|
|
1215
|
-
"default": "text",
|
|
1216
|
-
"hasDynamicHelp": false,
|
|
1217
|
-
"multiple": false,
|
|
1218
|
-
"options": [
|
|
1219
|
-
"json",
|
|
1220
|
-
"text"
|
|
1221
|
-
],
|
|
1222
|
-
"type": "option"
|
|
1223
1192
|
}
|
|
1224
1193
|
},
|
|
1225
1194
|
"hasDynamicHelp": false,
|
|
@@ -1229,7 +1198,7 @@
|
|
|
1229
1198
|
"pluginName": "@outputai/cli",
|
|
1230
1199
|
"pluginType": "core",
|
|
1231
1200
|
"strict": true,
|
|
1232
|
-
"enableJsonFlag":
|
|
1201
|
+
"enableJsonFlag": true,
|
|
1233
1202
|
"isESM": true,
|
|
1234
1203
|
"relativePath": [
|
|
1235
1204
|
"dist",
|
|
@@ -1335,20 +1304,26 @@
|
|
|
1335
1304
|
"description": "List datasets for a workflow",
|
|
1336
1305
|
"examples": [
|
|
1337
1306
|
"<%= config.bin %> <%= command.id %> simple",
|
|
1338
|
-
"<%= config.bin %> <%= command.id %> simple --
|
|
1307
|
+
"<%= config.bin %> <%= command.id %> simple --json",
|
|
1339
1308
|
"<%= config.bin %> <%= command.id %> simple --format table"
|
|
1340
1309
|
],
|
|
1341
1310
|
"flags": {
|
|
1311
|
+
"json": {
|
|
1312
|
+
"description": "Format output as json.",
|
|
1313
|
+
"helpGroup": "GLOBAL",
|
|
1314
|
+
"name": "json",
|
|
1315
|
+
"allowNo": false,
|
|
1316
|
+
"type": "boolean"
|
|
1317
|
+
},
|
|
1342
1318
|
"format": {
|
|
1343
1319
|
"char": "f",
|
|
1344
|
-
"description": "Output format",
|
|
1320
|
+
"description": "Output format (use --json for JSON output)",
|
|
1345
1321
|
"name": "format",
|
|
1346
1322
|
"default": "table",
|
|
1347
1323
|
"hasDynamicHelp": false,
|
|
1348
1324
|
"multiple": false,
|
|
1349
1325
|
"options": [
|
|
1350
1326
|
"table",
|
|
1351
|
-
"json",
|
|
1352
1327
|
"text"
|
|
1353
1328
|
],
|
|
1354
1329
|
"type": "option"
|
|
@@ -1361,7 +1336,7 @@
|
|
|
1361
1336
|
"pluginName": "@outputai/cli",
|
|
1362
1337
|
"pluginType": "core",
|
|
1363
1338
|
"strict": true,
|
|
1364
|
-
"enableJsonFlag":
|
|
1339
|
+
"enableJsonFlag": true,
|
|
1365
1340
|
"isESM": true,
|
|
1366
1341
|
"relativePath": [
|
|
1367
1342
|
"dist",
|
|
@@ -1386,10 +1361,17 @@
|
|
|
1386
1361
|
"<%= config.bin %> <%= command.id %> simple",
|
|
1387
1362
|
"<%= config.bin %> <%= command.id %> simple --limit 10",
|
|
1388
1363
|
"<%= config.bin %> <%= command.id %> --catalog my-catalog",
|
|
1389
|
-
"<%= config.bin %> <%= command.id %> --
|
|
1364
|
+
"<%= config.bin %> <%= command.id %> --json",
|
|
1390
1365
|
"<%= config.bin %> <%= command.id %> --format table"
|
|
1391
1366
|
],
|
|
1392
1367
|
"flags": {
|
|
1368
|
+
"json": {
|
|
1369
|
+
"description": "Format output as json.",
|
|
1370
|
+
"helpGroup": "GLOBAL",
|
|
1371
|
+
"name": "json",
|
|
1372
|
+
"allowNo": false,
|
|
1373
|
+
"type": "boolean"
|
|
1374
|
+
},
|
|
1393
1375
|
"catalog": {
|
|
1394
1376
|
"char": "c",
|
|
1395
1377
|
"description": "Filter runs by catalog (defaults to OUTPUT_CATALOG_ID)",
|
|
@@ -1410,14 +1392,13 @@
|
|
|
1410
1392
|
},
|
|
1411
1393
|
"format": {
|
|
1412
1394
|
"char": "f",
|
|
1413
|
-
"description": "Output format",
|
|
1395
|
+
"description": "Output format (use --json for JSON output)",
|
|
1414
1396
|
"name": "format",
|
|
1415
1397
|
"default": "table",
|
|
1416
1398
|
"hasDynamicHelp": false,
|
|
1417
1399
|
"multiple": false,
|
|
1418
1400
|
"options": [
|
|
1419
1401
|
"table",
|
|
1420
|
-
"json",
|
|
1421
1402
|
"text"
|
|
1422
1403
|
],
|
|
1423
1404
|
"type": "option"
|
|
@@ -1430,7 +1411,7 @@
|
|
|
1430
1411
|
"pluginName": "@outputai/cli",
|
|
1431
1412
|
"pluginType": "core",
|
|
1432
1413
|
"strict": true,
|
|
1433
|
-
"enableJsonFlag":
|
|
1414
|
+
"enableJsonFlag": true,
|
|
1434
1415
|
"isESM": true,
|
|
1435
1416
|
"relativePath": [
|
|
1436
1417
|
"dist",
|
|
@@ -1441,5 +1422,5 @@
|
|
|
1441
1422
|
]
|
|
1442
1423
|
}
|
|
1443
1424
|
},
|
|
1444
|
-
"version": "0.8.
|
|
1425
|
+
"version": "0.8.2-next.c12766f.0"
|
|
1445
1426
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outputai/cli",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2-next.c12766f.0",
|
|
4
4
|
"description": "CLI for Output.ai workflow generation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"semver": "7.7.4",
|
|
37
37
|
"undici": "8.1.0",
|
|
38
38
|
"yaml": "^2.8.3",
|
|
39
|
-
"@outputai/
|
|
40
|
-
"@outputai/
|
|
41
|
-
"@outputai/
|
|
39
|
+
"@outputai/llm": "0.8.2-next.c12766f.0",
|
|
40
|
+
"@outputai/evals": "0.8.2-next.c12766f.0",
|
|
41
|
+
"@outputai/credentials": "0.8.2-next.c12766f.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/cli-progress": "3.11.6",
|
package/dist/utils/constants.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { OUTPUT_FORMAT } from './constants.js';
|
|
2
|
-
export function formatOutput(result, format, textFormatter = result => JSON.stringify(result, null, 2)) {
|
|
3
|
-
switch (format) {
|
|
4
|
-
case OUTPUT_FORMAT.JSON:
|
|
5
|
-
return JSON.stringify(result, null, 2);
|
|
6
|
-
case OUTPUT_FORMAT.TEXT:
|
|
7
|
-
return textFormatter(result);
|
|
8
|
-
default:
|
|
9
|
-
return textFormatter(result);
|
|
10
|
-
}
|
|
11
|
-
}
|