@workflow/cli 5.0.8 → 5.1.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 (42) hide show
  1. package/dist/commands/health.d.ts +7 -1
  2. package/dist/commands/health.d.ts.map +1 -1
  3. package/dist/commands/health.js +67 -23
  4. package/dist/commands/health.test.js +30 -4
  5. package/dist/commands/inspect.d.ts.map +1 -1
  6. package/dist/commands/inspect.js +4 -1
  7. package/dist/commands/start.d.ts +2 -0
  8. package/dist/commands/start.d.ts.map +1 -1
  9. package/dist/commands/start.js +43 -5
  10. package/dist/lib/inspect/bigint-output.test.d.ts +2 -0
  11. package/dist/lib/inspect/bigint-output.test.d.ts.map +1 -0
  12. package/dist/lib/inspect/bigint-output.test.js +81 -0
  13. package/dist/lib/inspect/env.d.ts +10 -0
  14. package/dist/lib/inspect/env.d.ts.map +1 -1
  15. package/dist/lib/inspect/env.js +60 -6
  16. package/dist/lib/inspect/env.test.js +49 -3
  17. package/dist/lib/inspect/git-branch.d.ts +6 -0
  18. package/dist/lib/inspect/git-branch.d.ts.map +1 -0
  19. package/dist/lib/inspect/git-branch.js +18 -0
  20. package/dist/lib/inspect/git-branch.test.d.ts +2 -0
  21. package/dist/lib/inspect/git-branch.test.d.ts.map +1 -0
  22. package/dist/lib/inspect/git-branch.test.js +31 -0
  23. package/dist/lib/inspect/hydration.d.ts +6 -0
  24. package/dist/lib/inspect/hydration.d.ts.map +1 -1
  25. package/dist/lib/inspect/hydration.js +106 -4
  26. package/dist/lib/inspect/json.d.ts +6 -0
  27. package/dist/lib/inspect/json.d.ts.map +1 -0
  28. package/dist/lib/inspect/json.js +6 -0
  29. package/dist/lib/inspect/output.d.ts.map +1 -1
  30. package/dist/lib/inspect/output.js +6 -5
  31. package/dist/lib/inspect/run.d.ts +17 -0
  32. package/dist/lib/inspect/run.d.ts.map +1 -1
  33. package/dist/lib/inspect/run.js +41 -56
  34. package/dist/lib/inspect/run.test.js +85 -4
  35. package/dist/lib/inspect/setup.d.ts +2 -0
  36. package/dist/lib/inspect/setup.d.ts.map +1 -1
  37. package/dist/lib/inspect/setup.js +6 -2
  38. package/dist/lib/inspect/stream.d.ts.map +1 -1
  39. package/dist/lib/inspect/stream.js +4 -3
  40. package/dist/lib/inspect/stream.test.js +40 -1
  41. package/oclif.manifest.json +41 -3
  42. package/package.json +19 -19
@@ -409,6 +409,7 @@
409
409
  "examples": [
410
410
  "$ workflow health",
411
411
  "$ workflow health --timeout 60000",
412
+ "$ workflow health --base-path /dashboard",
412
413
  "$ workflow health --backend vercel --project my-project --team my-team"
413
414
  ],
414
415
  "flags": {
@@ -446,6 +447,17 @@
446
447
  "multiple": false,
447
448
  "type": "option"
448
449
  },
450
+ "base-path": {
451
+ "description": "Path the workflow routes are served under (local backend), for example the Next.js basePath followed by workflows.experimentalRoutePrefix",
452
+ "helpGroup": "Health Check",
453
+ "helpLabel": "--base-path",
454
+ "name": "base-path",
455
+ "required": false,
456
+ "hasDynamicHelp": false,
457
+ "helpValue": "PATH",
458
+ "multiple": false,
459
+ "type": "option"
460
+ },
449
461
  "verbose": {
450
462
  "char": "v",
451
463
  "description": "Verbose output",
@@ -1054,7 +1066,7 @@
1054
1066
  ],
1055
1067
  "args": {
1056
1068
  "workflowName": {
1057
- "description": "Name of a workflow to start. Providing a run ID will create a new run on that workflow.",
1069
+ "description": "Name of a workflow to start. Providing a run ID will create a new run on that workflow, on the same deployment unless --deployment is given.",
1058
1070
  "name": "workflowName",
1059
1071
  "required": true
1060
1072
  },
@@ -1067,7 +1079,8 @@
1067
1079
  "description": "Start a workflow",
1068
1080
  "examples": [
1069
1081
  "$ workflow start <workflow-name> <args>",
1070
- "$ wf start <workflow-name> <args>"
1082
+ "$ wf start <workflow-name> <args>",
1083
+ "$ wf start <workflow-name> <args> --backend vercel --deployment dpl_xxx"
1071
1084
  ],
1072
1085
  "flags": {
1073
1086
  "json": {
@@ -1286,6 +1299,31 @@
1286
1299
  "required": false,
1287
1300
  "allowNo": false,
1288
1301
  "type": "boolean"
1302
+ },
1303
+ "deployment": {
1304
+ "description": "Deployment ID to start the run on, or `latest` for the newest ready deployment in --env.\nDefaults to `latest`, or to the source run's deployment when given a run ID.",
1305
+ "helpGroup": "Target",
1306
+ "helpLabel": "--deployment",
1307
+ "name": "deployment",
1308
+ "required": false,
1309
+ "hasDynamicHelp": false,
1310
+ "helpValue": [
1311
+ "latest",
1312
+ "DEPLOYMENT_ID"
1313
+ ],
1314
+ "multiple": false,
1315
+ "type": "option"
1316
+ },
1317
+ "branch": {
1318
+ "description": "With --env preview, the git branch whose newest ready deployment `latest` resolves to. Defaults to the current git branch.",
1319
+ "helpGroup": "Target",
1320
+ "helpLabel": "--branch",
1321
+ "name": "branch",
1322
+ "required": false,
1323
+ "hasDynamicHelp": false,
1324
+ "helpValue": "BRANCH",
1325
+ "multiple": false,
1326
+ "type": "option"
1289
1327
  }
1290
1328
  },
1291
1329
  "hasDynamicHelp": false,
@@ -1674,5 +1712,5 @@
1674
1712
  ]
1675
1713
  }
1676
1714
  },
1677
- "version": "5.0.8"
1715
+ "version": "5.1.0"
1678
1716
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workflow/cli",
3
- "version": "5.0.8",
3
+ "version": "5.1.0",
4
4
  "description": "Command-line interface for Workflow SDK",
5
5
  "type": "module",
6
6
  "bin": {
@@ -31,48 +31,48 @@
31
31
  "topicSeparator": " "
32
32
  },
33
33
  "devDependencies": {
34
- "@types/node": "22.19.0",
34
+ "@types/node": "22.19.21",
35
35
  "@workflow/tsconfig": "5.0.0",
36
36
  "typescript": "^6.0.3",
37
- "vitest": "^4.1.10"
37
+ "vitest": "^5.1.0"
38
38
  },
39
39
  "dependencies": {
40
40
  "@oclif/core": "4.11.4",
41
41
  "@oclif/plugin-help": "6.2.37",
42
42
  "@swc/core": "1.15.3",
43
43
  "@vercel/cli-auth": "0.0.1",
44
- "@workflow/builders": "5.0.8",
45
- "@workflow/core": "5.4.0",
46
- "@workflow/errors": "5.1.0",
44
+ "@workflow/builders": "5.1.0",
45
+ "@workflow/core": "5.5.0",
46
+ "@workflow/errors": "5.1.1",
47
47
  "@workflow/swc-plugin": "5.0.1",
48
- "@workflow/utils": "5.0.2",
49
- "@workflow/web": "5.0.8",
50
- "@workflow/world": "5.1.0",
51
- "@workflow/world-local": "5.2.1",
52
- "@workflow/world-vercel": "5.4.0",
48
+ "@workflow/utils": "5.1.0",
49
+ "@workflow/web": "5.1.0",
50
+ "@workflow/world": "5.2.0",
51
+ "@workflow/world-local": "5.3.0",
52
+ "@workflow/world-vercel": "5.5.0",
53
53
  "boxen": "8.0.1",
54
- "builtin-modules": "5.0.0",
54
+ "builtin-modules": "5.5.0",
55
55
  "chalk": "5.6.2",
56
56
  "chokidar": "4.0.3",
57
- "date-fns": "4.1.0",
58
- "dotenv": "^17.3.1",
57
+ "date-fns": "4.4.0",
58
+ "dotenv": "^17.4.2",
59
59
  "easy-table": "1.2.0",
60
- "enhanced-resolve": "5.19.0",
61
- "esbuild": "^0.28.1",
60
+ "enhanced-resolve": "5.26.1",
61
+ "esbuild": "^0.28.2",
62
62
  "find-up": "7.0.0",
63
63
  "mixpart": "0.0.4",
64
64
  "open": "10.2.0",
65
65
  "ora": "8.2.0",
66
66
  "terminal-link": "5.0.0",
67
67
  "tinyglobby": "0.2.17",
68
- "xdg-app-paths": "5.1.0",
69
- "zod": "~4.5.4"
68
+ "xdg-app-paths": "5.5.1",
69
+ "zod": "~4.6.7"
70
70
  },
71
71
  "scripts": {
72
72
  "build": "rm -f oclif.manifest.json && tsc && chmod +x bin/run.js",
73
73
  "clean": "tsc --build --clean && rm -r dist ||:",
74
74
  "dev": "rm -f oclif.manifest.json && tsc --watch",
75
- "test": "vitest run src",
75
+ "test": "vitest run --config=../../vitest.config.ts src",
76
76
  "typecheck": "tsc --noEmit"
77
77
  }
78
78
  }