@sanity/workflow-cli 0.10.0 → 0.11.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/CHANGELOG.md +31 -0
- package/README.md +26 -18
- package/dist/commands/definition/list.js +2 -2
- package/dist/commands/definition/show.d.ts +13 -0
- package/dist/commands/definition/show.js +23 -5
- package/dist/commands/deploy.d.ts +1 -1
- package/dist/commands/deploy.js +4 -4
- package/dist/commands/diagnose.d.ts +1 -1
- package/dist/commands/diagnose.js +23 -13
- package/dist/commands/fire-action.js +13 -2
- package/dist/commands/list.d.ts +11 -2
- package/dist/commands/list.js +37 -16
- package/dist/commands/start.d.ts +1 -22
- package/dist/commands/start.js +1 -26
- package/dist/commands/tail.js +15 -12
- package/dist/hooks/prerun/telemetry.d.ts +4 -1
- package/dist/hooks/prerun/telemetry.js +6 -2
- package/dist/lib/definitions.d.ts +10 -0
- package/dist/lib/definitions.js +6 -0
- package/dist/lib/fail.d.ts +7 -0
- package/dist/lib/fail.js +2 -1
- package/dist/lib/share-definitions.d.ts +59 -25
- package/dist/lib/share-definitions.js +102 -21
- package/dist/lib/telemetry-setup.d.ts +4 -0
- package/dist/lib/telemetry-setup.js +18 -11
- package/dist/lib/telemetry.d.ts +33 -2
- package/dist/lib/telemetry.js +9 -4
- package/dist/lib/ui.js +0 -1
- package/oclif.manifest.json +18 -10
- package/package.json +4 -4
package/oclif.manifest.json
CHANGED
|
@@ -91,10 +91,10 @@
|
|
|
91
91
|
"multiple": false,
|
|
92
92
|
"type": "option"
|
|
93
93
|
},
|
|
94
|
-
"share-
|
|
95
|
-
"description": "Share the definition documents newly created by this deploy with Sanity — the full document, verbatim (structure, names, filters, effect configuration, seeded values), plus its deployment coordinates (project and dataset, or resource id); never content documents, instances, or your Sanity auth token. Opt-
|
|
96
|
-
"name": "share-
|
|
97
|
-
"allowNo":
|
|
94
|
+
"share-defs": {
|
|
95
|
+
"description": "Share the definition documents newly created by this deploy with Sanity — the full document, verbatim (structure, names, filters, effect configuration, seeded values), plus its deployment coordinates (project and dataset, or resource id); never content documents, instances, or your Sanity auth token. Opt-out: an interactive terminal is asked once (the answer is remembered), while unattended runs (CI / non-TTY / DO_NOT_TRACK) share nothing unless --share-defs is passed. Use --no-share-defs to opt out. An explicit --share-defs also sends telemetry for this deploy regardless of CI / DO_NOT_TRACK.",
|
|
96
|
+
"name": "share-defs",
|
|
97
|
+
"allowNo": true,
|
|
98
98
|
"type": "boolean"
|
|
99
99
|
}
|
|
100
100
|
},
|
|
@@ -225,11 +225,12 @@
|
|
|
225
225
|
"list": {
|
|
226
226
|
"aliases": [],
|
|
227
227
|
"args": {},
|
|
228
|
-
"description": "List workflow instances in the configured dataset.",
|
|
228
|
+
"description": "List workflow instances in the configured dataset (in-flight by default).",
|
|
229
229
|
"examples": [
|
|
230
230
|
"<%= config.bin %> list",
|
|
231
|
-
"<%= config.bin %> list --
|
|
231
|
+
"<%= config.bin %> list --include-completed",
|
|
232
232
|
"<%= config.bin %> list --definition productLaunch",
|
|
233
|
+
"<%= config.bin %> list --document dataset:proj:ds:article-1",
|
|
233
234
|
"<%= config.bin %> list --tag prod"
|
|
234
235
|
],
|
|
235
236
|
"flags": {
|
|
@@ -240,9 +241,9 @@
|
|
|
240
241
|
"multiple": false,
|
|
241
242
|
"type": "option"
|
|
242
243
|
},
|
|
243
|
-
"
|
|
244
|
-
"description": "
|
|
245
|
-
"name": "
|
|
244
|
+
"include-completed": {
|
|
245
|
+
"description": "Include completed/aborted instances (default: in-flight only).",
|
|
246
|
+
"name": "include-completed",
|
|
246
247
|
"allowNo": false,
|
|
247
248
|
"type": "boolean"
|
|
248
249
|
},
|
|
@@ -259,6 +260,13 @@
|
|
|
259
260
|
"multiple": false,
|
|
260
261
|
"type": "option"
|
|
261
262
|
},
|
|
263
|
+
"document": {
|
|
264
|
+
"description": "Only instances that reference this document (resource-qualified GDR URI, e.g. \"dataset:proj:ds:article-1\").",
|
|
265
|
+
"name": "document",
|
|
266
|
+
"hasDynamicHelp": false,
|
|
267
|
+
"multiple": false,
|
|
268
|
+
"type": "option"
|
|
269
|
+
},
|
|
262
270
|
"limit": {
|
|
263
271
|
"description": "Maximum rows to return.",
|
|
264
272
|
"name": "limit",
|
|
@@ -701,5 +709,5 @@
|
|
|
701
709
|
]
|
|
702
710
|
}
|
|
703
711
|
},
|
|
704
|
-
"version": "0.
|
|
712
|
+
"version": "0.11.0"
|
|
705
713
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/workflow-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Command-line tool for deploying, inspecting, and administering Sanity workflow definitions and instances.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -56,15 +56,15 @@
|
|
|
56
56
|
"jiti": "^2.7.0",
|
|
57
57
|
"log-symbols": "^7.0.1",
|
|
58
58
|
"ora": "^9.4.0",
|
|
59
|
-
"@sanity/workflow-engine": "0.
|
|
59
|
+
"@sanity/workflow-engine": "0.16.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/diff": "^8.0.0",
|
|
63
63
|
"@types/node": "^24.12.4",
|
|
64
64
|
"oclif": "^4.23.16",
|
|
65
65
|
"vitest": "^4.1.8",
|
|
66
|
-
"@sanity/workflow-engine-test": "0.
|
|
67
|
-
"@sanity/workflow-examples": "0.
|
|
66
|
+
"@sanity/workflow-engine-test": "0.11.0",
|
|
67
|
+
"@sanity/workflow-examples": "0.6.0"
|
|
68
68
|
},
|
|
69
69
|
"oclif": {
|
|
70
70
|
"bin": "sanity-workflows",
|