@sanity/workflow-cli 0.7.1 → 0.8.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/README.md +20 -20
- package/dist/commands/abort.js +1 -1
- package/dist/commands/definition/delete.d.ts +8 -4
- package/dist/commands/definition/delete.js +2 -2
- package/dist/commands/definition/diff.js +9 -4
- package/dist/commands/definition/list.d.ts +2 -2
- package/dist/commands/definition/list.js +3 -3
- package/dist/commands/definition/show.d.ts +5 -3
- package/dist/commands/definition/show.js +17 -13
- package/dist/commands/deploy.js +5 -6
- package/dist/commands/diagnose.d.ts +6 -2
- package/dist/commands/diagnose.js +30 -27
- package/dist/commands/fire-action.d.ts +13 -5
- package/dist/commands/fire-action.js +32 -28
- package/dist/commands/list.d.ts +2 -2
- package/dist/commands/list.js +8 -8
- package/dist/commands/move-stage.d.ts +6 -1
- package/dist/commands/move-stage.js +13 -4
- package/dist/commands/{retry-task.d.ts → retry-activity.d.ts} +2 -2
- package/dist/commands/{retry-task.js → retry-activity.js} +3 -3
- package/dist/commands/set-stage.js +1 -1
- package/dist/commands/show.d.ts +1 -1
- package/dist/commands/show.js +10 -10
- package/dist/commands/tail.js +2 -2
- package/dist/lib/definitions.js +1 -1
- package/dist/lib/diff.d.ts +2 -1
- package/dist/lib/diff.js +2 -2
- package/dist/lib/operation-args.d.ts +5 -1
- package/dist/lib/operation-args.js +1 -1
- package/dist/lib/ops-report.d.ts +5 -1
- package/dist/lib/ops-report.js +1 -1
- package/dist/lib/ui.d.ts +6 -4
- package/dist/lib/ui.js +3 -5
- package/oclif.manifest.json +22 -22
- package/package.json +4 -4
package/oclif.manifest.json
CHANGED
|
@@ -152,12 +152,12 @@
|
|
|
152
152
|
"required": true
|
|
153
153
|
}
|
|
154
154
|
},
|
|
155
|
-
"description": "Fire an action on an instance — act on a user's behalf to unstick a waiting
|
|
155
|
+
"description": "Fire an action on an instance — act on a user's behalf to unstick a waiting activity. Omit --action to list what can be fired.",
|
|
156
156
|
"examples": [
|
|
157
157
|
"<%= config.bin %> fire-action wf-instance.abc123",
|
|
158
|
-
"<%= config.bin %> fire-action wf-instance.abc123 --
|
|
159
|
-
"<%= config.bin %> fire-action wf-instance.abc123 --
|
|
160
|
-
"<%= config.bin %> fire-action wf-instance.abc123 --
|
|
158
|
+
"<%= config.bin %> fire-action wf-instance.abc123 --activity approve --action approve",
|
|
159
|
+
"<%= config.bin %> fire-action wf-instance.abc123 --activity approve --action approve --as user.xyz --as-role editor",
|
|
160
|
+
"<%= config.bin %> fire-action wf-instance.abc123 --activity publish --action publish --param note=shipping"
|
|
161
161
|
],
|
|
162
162
|
"flags": {
|
|
163
163
|
"tag": {
|
|
@@ -167,9 +167,9 @@
|
|
|
167
167
|
"multiple": false,
|
|
168
168
|
"type": "option"
|
|
169
169
|
},
|
|
170
|
-
"
|
|
171
|
-
"description": "
|
|
172
|
-
"name": "
|
|
170
|
+
"activity": {
|
|
171
|
+
"description": "Activity the action belongs to. Required to fire; omit --action to list.",
|
|
172
|
+
"name": "activity",
|
|
173
173
|
"hasDynamicHelp": false,
|
|
174
174
|
"multiple": false,
|
|
175
175
|
"type": "option"
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
"examples": [
|
|
234
234
|
"<%= config.bin %> list",
|
|
235
235
|
"<%= config.bin %> list --in-flight",
|
|
236
|
-
"<%= config.bin %> list --workflow-
|
|
236
|
+
"<%= config.bin %> list --workflow-name productLaunch",
|
|
237
237
|
"<%= config.bin %> list --tag prod"
|
|
238
238
|
],
|
|
239
239
|
"flags": {
|
|
@@ -251,14 +251,14 @@
|
|
|
251
251
|
"type": "boolean"
|
|
252
252
|
},
|
|
253
253
|
"failed": {
|
|
254
|
-
"description": "Only instances with at least one failed
|
|
254
|
+
"description": "Only instances with at least one failed activity.",
|
|
255
255
|
"name": "failed",
|
|
256
256
|
"allowNo": false,
|
|
257
257
|
"type": "boolean"
|
|
258
258
|
},
|
|
259
|
-
"workflow-
|
|
259
|
+
"workflow-name": {
|
|
260
260
|
"description": "Filter by workflow definition name.",
|
|
261
|
-
"name": "workflow-
|
|
261
|
+
"name": "workflow-name",
|
|
262
262
|
"hasDynamicHelp": false,
|
|
263
263
|
"multiple": false,
|
|
264
264
|
"type": "option"
|
|
@@ -340,7 +340,7 @@
|
|
|
340
340
|
"move-stage.js"
|
|
341
341
|
]
|
|
342
342
|
},
|
|
343
|
-
"retry-
|
|
343
|
+
"retry-activity": {
|
|
344
344
|
"aliases": [],
|
|
345
345
|
"args": {
|
|
346
346
|
"instanceId": {
|
|
@@ -348,18 +348,18 @@
|
|
|
348
348
|
"name": "instanceId",
|
|
349
349
|
"required": true
|
|
350
350
|
},
|
|
351
|
-
"
|
|
352
|
-
"description": "
|
|
353
|
-
"name": "
|
|
351
|
+
"activity": {
|
|
352
|
+
"description": "Activity name within the current stage.",
|
|
353
|
+
"name": "activity",
|
|
354
354
|
"required": true
|
|
355
355
|
}
|
|
356
356
|
},
|
|
357
|
-
"description": "Re-invoke a failed
|
|
357
|
+
"description": "Re-invoke a failed activity on an in-flight instance.",
|
|
358
358
|
"flags": {},
|
|
359
359
|
"hasDynamicHelp": false,
|
|
360
360
|
"hidden": true,
|
|
361
361
|
"hiddenAliases": [],
|
|
362
|
-
"id": "retry-
|
|
362
|
+
"id": "retry-activity",
|
|
363
363
|
"pluginAlias": "@sanity/workflow-cli",
|
|
364
364
|
"pluginName": "@sanity/workflow-cli",
|
|
365
365
|
"pluginType": "core",
|
|
@@ -368,7 +368,7 @@
|
|
|
368
368
|
"relativePath": [
|
|
369
369
|
"dist",
|
|
370
370
|
"commands",
|
|
371
|
-
"retry-
|
|
371
|
+
"retry-activity.js"
|
|
372
372
|
]
|
|
373
373
|
},
|
|
374
374
|
"set-stage": {
|
|
@@ -422,7 +422,7 @@
|
|
|
422
422
|
"required": true
|
|
423
423
|
}
|
|
424
424
|
},
|
|
425
|
-
"description": "Show the state,
|
|
425
|
+
"description": "Show the state, activities, and effects of a workflow instance.",
|
|
426
426
|
"examples": [
|
|
427
427
|
"<%= config.bin %> show wf-instance.abc123",
|
|
428
428
|
"<%= config.bin %> show wf-instance.abc123 --include history"
|
|
@@ -614,9 +614,9 @@
|
|
|
614
614
|
"multiple": false,
|
|
615
615
|
"type": "option"
|
|
616
616
|
},
|
|
617
|
-
"workflow-
|
|
617
|
+
"workflow-name": {
|
|
618
618
|
"description": "Filter to a single workflow definition name (e.g. product-launch)",
|
|
619
|
-
"name": "workflow-
|
|
619
|
+
"name": "workflow-name",
|
|
620
620
|
"hasDynamicHelp": false,
|
|
621
621
|
"multiple": false,
|
|
622
622
|
"type": "option"
|
|
@@ -681,5 +681,5 @@
|
|
|
681
681
|
]
|
|
682
682
|
}
|
|
683
683
|
},
|
|
684
|
-
"version": "0.
|
|
684
|
+
"version": "0.8.1"
|
|
685
685
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/workflow-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Command-line tool for deploying, inspecting, and administering Sanity workflow definitions and instances.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -53,15 +53,15 @@
|
|
|
53
53
|
"diff": "^9.0.0",
|
|
54
54
|
"log-symbols": "^7.0.1",
|
|
55
55
|
"ora": "^9.4.0",
|
|
56
|
-
"@sanity/workflow-engine": "0.
|
|
56
|
+
"@sanity/workflow-engine": "0.13.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/diff": "^8.0.0",
|
|
60
60
|
"@types/node": "^24.12.4",
|
|
61
61
|
"oclif": "^4.23.16",
|
|
62
62
|
"vitest": "^4.1.8",
|
|
63
|
-
"@sanity/workflow-engine-test": "0.
|
|
64
|
-
"@sanity/workflow-examples": "0.
|
|
63
|
+
"@sanity/workflow-engine-test": "0.8.0",
|
|
64
|
+
"@sanity/workflow-examples": "0.3.0"
|
|
65
65
|
},
|
|
66
66
|
"oclif": {
|
|
67
67
|
"bin": "sanity-workflows",
|