@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.
- package/LICENSE +21 -0
- package/README.md +123 -0
- package/bin/run.js +8 -0
- package/dist/commands/abort.d.ts +30 -0
- package/dist/commands/abort.js +62 -0
- package/dist/commands/definition/delete.d.ts +36 -0
- package/dist/commands/definition/delete.js +86 -0
- package/dist/commands/definition/diff.d.ts +13 -0
- package/dist/commands/definition/diff.js +57 -0
- package/dist/commands/definition/list.d.ts +31 -0
- package/dist/commands/definition/list.js +83 -0
- package/dist/commands/definition/show.d.ts +33 -0
- package/dist/commands/definition/show.js +118 -0
- package/dist/commands/deploy.d.ts +22 -0
- package/dist/commands/deploy.js +97 -0
- package/dist/commands/diagnose.d.ts +23 -0
- package/dist/commands/diagnose.js +269 -0
- package/dist/commands/fire-action.d.ts +63 -0
- package/dist/commands/fire-action.js +241 -0
- package/dist/commands/list.d.ts +46 -0
- package/dist/commands/list.js +106 -0
- package/dist/commands/move-stage.d.ts +47 -0
- package/dist/commands/move-stage.js +77 -0
- package/dist/commands/retry-task.d.ts +9 -0
- package/dist/commands/retry-task.js +11 -0
- package/dist/commands/set-stage.d.ts +12 -0
- package/dist/commands/set-stage.js +18 -0
- package/dist/commands/show.d.ts +23 -0
- package/dist/commands/show.js +85 -0
- package/dist/commands/tail.d.ts +15 -0
- package/dist/commands/tail.js +73 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/dist/lib/client.d.ts +17 -0
- package/dist/lib/client.js +40 -0
- package/dist/lib/config.d.ts +18 -0
- package/dist/lib/config.js +50 -0
- package/dist/lib/definitions.d.ts +36 -0
- package/dist/lib/definitions.js +122 -0
- package/dist/lib/diff.d.ts +7 -0
- package/dist/lib/diff.js +49 -0
- package/dist/lib/env.d.ts +10 -0
- package/dist/lib/env.js +13 -0
- package/dist/lib/fail.d.ts +16 -0
- package/dist/lib/fail.js +33 -0
- package/dist/lib/flags.d.ts +5 -0
- package/dist/lib/flags.js +8 -0
- package/dist/lib/operation-args.d.ts +25 -0
- package/dist/lib/operation-args.js +48 -0
- package/dist/lib/ops-report.d.ts +30 -0
- package/dist/lib/ops-report.js +28 -0
- package/dist/lib/stub.d.ts +10 -0
- package/dist/lib/stub.js +24 -0
- package/oclif.manifest.json +684 -0
- 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
|
+
}
|