@sanity/workflow-cli 0.5.1

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 (55) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +123 -0
  3. package/bin/run.js +8 -0
  4. package/dist/commands/abort.d.ts +30 -0
  5. package/dist/commands/abort.js +62 -0
  6. package/dist/commands/definition/delete.d.ts +36 -0
  7. package/dist/commands/definition/delete.js +86 -0
  8. package/dist/commands/definition/diff.d.ts +13 -0
  9. package/dist/commands/definition/diff.js +57 -0
  10. package/dist/commands/definition/list.d.ts +31 -0
  11. package/dist/commands/definition/list.js +83 -0
  12. package/dist/commands/definition/show.d.ts +33 -0
  13. package/dist/commands/definition/show.js +118 -0
  14. package/dist/commands/deploy.d.ts +22 -0
  15. package/dist/commands/deploy.js +97 -0
  16. package/dist/commands/diagnose.d.ts +23 -0
  17. package/dist/commands/diagnose.js +269 -0
  18. package/dist/commands/fire-action.d.ts +63 -0
  19. package/dist/commands/fire-action.js +241 -0
  20. package/dist/commands/list.d.ts +46 -0
  21. package/dist/commands/list.js +106 -0
  22. package/dist/commands/move-stage.d.ts +47 -0
  23. package/dist/commands/move-stage.js +77 -0
  24. package/dist/commands/retry-task.d.ts +9 -0
  25. package/dist/commands/retry-task.js +11 -0
  26. package/dist/commands/set-stage.d.ts +12 -0
  27. package/dist/commands/set-stage.js +18 -0
  28. package/dist/commands/show.d.ts +23 -0
  29. package/dist/commands/show.js +85 -0
  30. package/dist/commands/tail.d.ts +15 -0
  31. package/dist/commands/tail.js +73 -0
  32. package/dist/index.d.ts +1 -0
  33. package/dist/index.js +4 -0
  34. package/dist/lib/client.d.ts +17 -0
  35. package/dist/lib/client.js +40 -0
  36. package/dist/lib/config.d.ts +18 -0
  37. package/dist/lib/config.js +50 -0
  38. package/dist/lib/definitions.d.ts +36 -0
  39. package/dist/lib/definitions.js +122 -0
  40. package/dist/lib/diff.d.ts +7 -0
  41. package/dist/lib/diff.js +49 -0
  42. package/dist/lib/env.d.ts +10 -0
  43. package/dist/lib/env.js +13 -0
  44. package/dist/lib/fail.d.ts +16 -0
  45. package/dist/lib/fail.js +33 -0
  46. package/dist/lib/flags.d.ts +5 -0
  47. package/dist/lib/flags.js +8 -0
  48. package/dist/lib/operation-args.d.ts +25 -0
  49. package/dist/lib/operation-args.js +48 -0
  50. package/dist/lib/ops-report.d.ts +30 -0
  51. package/dist/lib/ops-report.js +28 -0
  52. package/dist/lib/stub.d.ts +10 -0
  53. package/dist/lib/stub.js +24 -0
  54. package/oclif.manifest.json +684 -0
  55. package/package.json +94 -0
package/package.json ADDED
@@ -0,0 +1,94 @@
1
+ {
2
+ "name": "@sanity/workflow-cli",
3
+ "version": "0.5.1",
4
+ "description": "Command-line tool for deploying, inspecting, and administering Sanity workflow definitions and instances.",
5
+ "keywords": [
6
+ "cli",
7
+ "oclif",
8
+ "sanity",
9
+ "sanity-io",
10
+ "workflow",
11
+ "workflows"
12
+ ],
13
+ "homepage": "https://github.com/sanity-io/workflows/tree/main/packages/workflow-cli#readme",
14
+ "bugs": {
15
+ "url": "https://github.com/sanity-io/workflows/issues"
16
+ },
17
+ "license": "MIT",
18
+ "author": "Sanity.io <hello@sanity.io>",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/sanity-io/workflows.git",
22
+ "directory": "packages/workflow-cli"
23
+ },
24
+ "bin": {
25
+ "sanity-workflows": "./bin/run.js"
26
+ },
27
+ "files": [
28
+ "dist",
29
+ "bin/run.js",
30
+ "oclif.manifest.json"
31
+ ],
32
+ "type": "module",
33
+ "sideEffects": false,
34
+ "main": "./dist/index.js",
35
+ "types": "./dist/index.d.ts",
36
+ "exports": {
37
+ ".": {
38
+ "import": "./dist/index.js",
39
+ "default": "./dist/index.js"
40
+ },
41
+ "./package.json": "./package.json"
42
+ },
43
+ "publishConfig": {
44
+ "access": "restricted"
45
+ },
46
+ "dependencies": {
47
+ "@oclif/core": "^4.11.4",
48
+ "@oclif/plugin-help": "^6.2.50",
49
+ "@sanity/client": "^7.22.1",
50
+ "boxen": "^8.0.1",
51
+ "console-table-printer": "^2.16.0",
52
+ "diff": "^9.0.0",
53
+ "log-symbols": "^7.0.1",
54
+ "ora": "^9.4.0",
55
+ "picocolors": "^1.1.1",
56
+ "@sanity/workflow-engine": "0.7.0"
57
+ },
58
+ "devDependencies": {
59
+ "@types/diff": "^8.0.0",
60
+ "@types/node": "^24.12.4",
61
+ "oclif": "^4.23.16",
62
+ "vitest": "^4.1.8",
63
+ "@sanity/workflow-examples": "0.1.3",
64
+ "@sanity/workflow-engine-test": "0.4.1"
65
+ },
66
+ "oclif": {
67
+ "bin": "sanity-workflows",
68
+ "commands": "./dist/commands",
69
+ "dirname": "sanity-workflows",
70
+ "plugins": [
71
+ "@oclif/plugin-help"
72
+ ],
73
+ "topicSeparator": " ",
74
+ "topics": {
75
+ "definition": {
76
+ "description": "Read and manage workflow definitions"
77
+ },
78
+ "dev": {
79
+ "description": "Local scaffolding helpers"
80
+ }
81
+ }
82
+ },
83
+ "engines": {
84
+ "node": ">=20"
85
+ },
86
+ "scripts": {
87
+ "build": "tsc -p tsconfig.build.json",
88
+ "typecheck": "tsc --noEmit -p tsconfig.json",
89
+ "test": "vitest run",
90
+ "test:watch": "vitest",
91
+ "dev": "NODE_OPTIONS='--conditions=development' tsx --env-file-if-exists=../../.env bin/dev.js",
92
+ "cli": "NODE_OPTIONS='--conditions=development' tsx --env-file-if-exists=../../.env bin/dev.js"
93
+ }
94
+ }