@outputai/cli 0.8.2-next.e1cd79b.0 → 0.8.2-next.e658cc2.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.
Files changed (64) hide show
  1. package/dist/api/generated/api.d.ts +79 -0
  2. package/dist/api/generated/api.js +32 -0
  3. package/dist/assets/docker/docker-compose-dev.yml +1 -1
  4. package/dist/commands/workflow/cost.d.ts +3 -2
  5. package/dist/commands/workflow/cost.js +4 -11
  6. package/dist/commands/workflow/cost.spec.js +1 -3
  7. package/dist/commands/workflow/dataset/generate.d.ts +1 -0
  8. package/dist/commands/workflow/dataset/generate.js +15 -6
  9. package/dist/commands/workflow/dataset/generate.spec.d.ts +1 -0
  10. package/dist/commands/workflow/dataset/generate.spec.js +69 -0
  11. package/dist/commands/workflow/dataset/list.d.ts +3 -1
  12. package/dist/commands/workflow/dataset/list.js +10 -14
  13. package/dist/commands/workflow/debug.d.ts +2 -6
  14. package/dist/commands/workflow/debug.js +10 -29
  15. package/dist/commands/workflow/debug.spec.js +2 -5
  16. package/dist/commands/workflow/generate.spec.js +2 -2
  17. package/dist/commands/workflow/list.d.ts +4 -1
  18. package/dist/commands/workflow/list.js +15 -19
  19. package/dist/commands/workflow/list.spec.js +2 -1
  20. package/dist/commands/workflow/result.d.ts +3 -4
  21. package/dist/commands/workflow/result.js +6 -15
  22. package/dist/commands/workflow/result.spec.js +2 -4
  23. package/dist/commands/workflow/run.d.ts +3 -2
  24. package/dist/commands/workflow/run.js +5 -12
  25. package/dist/commands/workflow/run.spec.js +18 -3
  26. package/dist/commands/workflow/runs/list.d.ts +3 -1
  27. package/dist/commands/workflow/runs/list.js +11 -15
  28. package/dist/commands/workflow/start.js +1 -1
  29. package/dist/commands/workflow/start.spec.js +53 -2
  30. package/dist/commands/workflow/status.d.ts +3 -4
  31. package/dist/commands/workflow/status.js +20 -30
  32. package/dist/commands/workflow/status.spec.js +2 -4
  33. package/dist/commands/workflow/test_eval.d.ts +4 -2
  34. package/dist/commands/workflow/test_eval.js +23 -23
  35. package/dist/commands/workflow/test_eval.spec.d.ts +1 -0
  36. package/dist/commands/workflow/test_eval.spec.js +121 -0
  37. package/dist/generated/framework_version.json +1 -1
  38. package/dist/hooks/init.d.ts +1 -0
  39. package/dist/hooks/init.js +40 -30
  40. package/dist/hooks/init.spec.js +28 -4
  41. package/dist/services/coding_agents.spec.js +10 -10
  42. package/dist/utils/format_workflow_result.spec.js +0 -13
  43. package/dist/utils/resolve_input.d.ts +1 -1
  44. package/dist/utils/resolve_input.js +2 -2
  45. package/dist/utils/scenario_resolver.d.ts +1 -1
  46. package/dist/utils/scenario_resolver.js +2 -2
  47. package/dist/utils/scenario_resolver.spec.js +14 -0
  48. package/dist/utils/trace_formatter.js +1 -2
  49. package/dist/utils/workflow_dir.d.ts +1 -1
  50. package/dist/utils/workflow_dir.js +2 -2
  51. package/dist/views/dev/modals/run_modal.d.ts +9 -0
  52. package/dist/views/dev/modals/run_modal.js +56 -56
  53. package/dist/views/dev/modals/run_modal.spec.d.ts +1 -0
  54. package/dist/views/dev/modals/run_modal.spec.js +34 -0
  55. package/dist/views/dev/panels/help_panel.js +1 -1
  56. package/dist/views/dev/utils/json_editor.d.ts +2 -0
  57. package/dist/views/dev/utils/json_editor.js +28 -15
  58. package/dist/views/dev/utils/json_editor.spec.js +16 -1
  59. package/oclif.manifest.json +114 -101
  60. package/package.json +5 -5
  61. package/dist/utils/constants.d.ts +0 -5
  62. package/dist/utils/constants.js +0 -4
  63. package/dist/utils/output_formatter.d.ts +0 -2
  64. package/dist/utils/output_formatter.js +0 -11
@@ -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 --format json"
538
+ "<%= config.bin %> <%= command.id %> my_workflow_id --json"
539
539
  ],
540
540
  "flags": {
541
- "format": {
542
- "char": "f",
543
- "description": "Output format",
544
- "name": "format",
545
- "default": "text",
546
- "hasDynamicHelp": false,
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": false,
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 --format json",
590
- "<%= config.bin %> <%= command.id %> wf-12345 --format text"
583
+ "<%= config.bin %> <%= command.id %> wf-12345 --json"
591
584
  ],
592
585
  "flags": {
593
- "format": {
594
- "char": "f",
595
- "description": "Output format",
596
- "name": "format",
597
- "default": "text",
598
- "hasDynamicHelp": false,
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": false,
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 %> --format json",
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": false,
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 --format json"
868
+ "<%= config.bin %> <%= command.id %> wf-12345 --json"
876
869
  ],
877
870
  "flags": {
878
- "format": {
879
- "char": "f",
880
- "description": "Output format",
881
- "name": "format",
882
- "default": "text",
883
- "hasDynamicHelp": false,
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": false,
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 --format json",
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": false,
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 --format json"
1043
+ "<%= config.bin %> <%= command.id %> wf-12345 --json"
1063
1044
  ],
1064
1045
  "flags": {
1065
- "format": {
1066
- "char": "f",
1067
- "description": "Output format",
1068
- "name": "format",
1069
- "default": "text",
1070
- "hasDynamicHelp": false,
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": false,
1061
+ "enableJsonFlag": true,
1087
1062
  "isESM": true,
1088
1063
  "relativePath": [
1089
1064
  "dist",
@@ -1179,9 +1154,32 @@
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 --format json"
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
+ },
1167
+ "catalog": {
1168
+ "aliases": [
1169
+ "task-queue"
1170
+ ],
1171
+ "char": "c",
1172
+ "charAliases": [
1173
+ "q"
1174
+ ],
1175
+ "deprecateAliases": true,
1176
+ "description": "Catalog name for workflow execution (defaults to OUTPUT_CATALOG_ID)",
1177
+ "env": "OUTPUT_CATALOG_ID",
1178
+ "name": "catalog",
1179
+ "hasDynamicHelp": false,
1180
+ "multiple": false,
1181
+ "type": "option"
1182
+ },
1185
1183
  "cached": {
1186
1184
  "description": "Use cached output from dataset files (skip workflow execution)",
1187
1185
  "exclusive": [
@@ -1207,19 +1205,6 @@
1207
1205
  "hasDynamicHelp": false,
1208
1206
  "multiple": false,
1209
1207
  "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
1208
  }
1224
1209
  },
1225
1210
  "hasDynamicHelp": false,
@@ -1229,7 +1214,7 @@
1229
1214
  "pluginName": "@outputai/cli",
1230
1215
  "pluginType": "core",
1231
1216
  "strict": true,
1232
- "enableJsonFlag": false,
1217
+ "enableJsonFlag": true,
1233
1218
  "isESM": true,
1234
1219
  "relativePath": [
1235
1220
  "dist",
@@ -1259,6 +1244,22 @@
1259
1244
  "<%= config.bin %> <%= command.id %> simple --download --limit 5"
1260
1245
  ],
1261
1246
  "flags": {
1247
+ "catalog": {
1248
+ "aliases": [
1249
+ "task-queue"
1250
+ ],
1251
+ "char": "c",
1252
+ "charAliases": [
1253
+ "q"
1254
+ ],
1255
+ "deprecateAliases": true,
1256
+ "description": "Catalog name for workflow execution (defaults to OUTPUT_CATALOG_ID)",
1257
+ "env": "OUTPUT_CATALOG_ID",
1258
+ "name": "catalog",
1259
+ "hasDynamicHelp": false,
1260
+ "multiple": false,
1261
+ "type": "option"
1262
+ },
1262
1263
  "trace": {
1263
1264
  "char": "t",
1264
1265
  "description": "Path to a local trace file to extract dataset from",
@@ -1335,20 +1336,26 @@
1335
1336
  "description": "List datasets for a workflow",
1336
1337
  "examples": [
1337
1338
  "<%= config.bin %> <%= command.id %> simple",
1338
- "<%= config.bin %> <%= command.id %> simple --format json",
1339
+ "<%= config.bin %> <%= command.id %> simple --json",
1339
1340
  "<%= config.bin %> <%= command.id %> simple --format table"
1340
1341
  ],
1341
1342
  "flags": {
1343
+ "json": {
1344
+ "description": "Format output as json.",
1345
+ "helpGroup": "GLOBAL",
1346
+ "name": "json",
1347
+ "allowNo": false,
1348
+ "type": "boolean"
1349
+ },
1342
1350
  "format": {
1343
1351
  "char": "f",
1344
- "description": "Output format",
1352
+ "description": "Output format (use --json for JSON output)",
1345
1353
  "name": "format",
1346
1354
  "default": "table",
1347
1355
  "hasDynamicHelp": false,
1348
1356
  "multiple": false,
1349
1357
  "options": [
1350
1358
  "table",
1351
- "json",
1352
1359
  "text"
1353
1360
  ],
1354
1361
  "type": "option"
@@ -1361,7 +1368,7 @@
1361
1368
  "pluginName": "@outputai/cli",
1362
1369
  "pluginType": "core",
1363
1370
  "strict": true,
1364
- "enableJsonFlag": false,
1371
+ "enableJsonFlag": true,
1365
1372
  "isESM": true,
1366
1373
  "relativePath": [
1367
1374
  "dist",
@@ -1386,10 +1393,17 @@
1386
1393
  "<%= config.bin %> <%= command.id %> simple",
1387
1394
  "<%= config.bin %> <%= command.id %> simple --limit 10",
1388
1395
  "<%= config.bin %> <%= command.id %> --catalog my-catalog",
1389
- "<%= config.bin %> <%= command.id %> --format json",
1396
+ "<%= config.bin %> <%= command.id %> --json",
1390
1397
  "<%= config.bin %> <%= command.id %> --format table"
1391
1398
  ],
1392
1399
  "flags": {
1400
+ "json": {
1401
+ "description": "Format output as json.",
1402
+ "helpGroup": "GLOBAL",
1403
+ "name": "json",
1404
+ "allowNo": false,
1405
+ "type": "boolean"
1406
+ },
1393
1407
  "catalog": {
1394
1408
  "char": "c",
1395
1409
  "description": "Filter runs by catalog (defaults to OUTPUT_CATALOG_ID)",
@@ -1410,14 +1424,13 @@
1410
1424
  },
1411
1425
  "format": {
1412
1426
  "char": "f",
1413
- "description": "Output format",
1427
+ "description": "Output format (use --json for JSON output)",
1414
1428
  "name": "format",
1415
1429
  "default": "table",
1416
1430
  "hasDynamicHelp": false,
1417
1431
  "multiple": false,
1418
1432
  "options": [
1419
1433
  "table",
1420
- "json",
1421
1434
  "text"
1422
1435
  ],
1423
1436
  "type": "option"
@@ -1430,7 +1443,7 @@
1430
1443
  "pluginName": "@outputai/cli",
1431
1444
  "pluginType": "core",
1432
1445
  "strict": true,
1433
- "enableJsonFlag": false,
1446
+ "enableJsonFlag": true,
1434
1447
  "isESM": true,
1435
1448
  "relativePath": [
1436
1449
  "dist",
@@ -1441,5 +1454,5 @@
1441
1454
  ]
1442
1455
  }
1443
1456
  },
1444
- "version": "0.8.2-next.e1cd79b.0"
1457
+ "version": "0.8.2-next.e658cc2.0"
1445
1458
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@outputai/cli",
3
- "version": "0.8.2-next.e1cd79b.0",
3
+ "version": "0.8.2-next.e658cc2.0",
4
4
  "description": "CLI for Output.ai workflow generation",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -34,11 +34,11 @@
34
34
  "ky": "1.14.3",
35
35
  "react": "19.2.5",
36
36
  "semver": "7.7.4",
37
- "undici": "8.1.0",
37
+ "undici": "8.5.0",
38
38
  "yaml": "^2.8.3",
39
- "@outputai/credentials": "0.8.2-next.e1cd79b.0",
40
- "@outputai/evals": "0.8.2-next.e1cd79b.0",
41
- "@outputai/llm": "0.8.2-next.e1cd79b.0"
39
+ "@outputai/evals": "0.8.2-next.e658cc2.0",
40
+ "@outputai/llm": "0.8.2-next.e658cc2.0",
41
+ "@outputai/credentials": "0.8.2-next.e658cc2.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/cli-progress": "3.11.6",
@@ -1,5 +0,0 @@
1
- export declare const OUTPUT_FORMAT: {
2
- readonly JSON: "json";
3
- readonly TEXT: "text";
4
- };
5
- export type OutputFormat = typeof OUTPUT_FORMAT[keyof typeof OUTPUT_FORMAT];
@@ -1,4 +0,0 @@
1
- export const OUTPUT_FORMAT = {
2
- JSON: 'json',
3
- TEXT: 'text'
4
- };
@@ -1,2 +0,0 @@
1
- import { OutputFormat } from './constants.js';
2
- export declare function formatOutput<T>(result: T, format: OutputFormat, textFormatter?: (result: T) => string): string;
@@ -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
- }