@sanity/workflow-cli 0.20.0 → 0.22.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.
@@ -18,7 +18,7 @@
18
18
  ],
19
19
  "flags": {
20
20
  "deployment": {
21
- "description": "Deployment name — read the instance from the resource that deployment targets; the tag partition still comes from the loaded instance.",
21
+ "description": "Deployment name — narrow the instance search to the resource that deployment targets; the tag partition still comes from the loaded instance.",
22
22
  "exclusive": [
23
23
  "tag"
24
24
  ],
@@ -28,7 +28,7 @@
28
28
  "type": "option"
29
29
  },
30
30
  "tag": {
31
- "description": "Workflow environment tag (e.g. prod, test) — an optional query filter, and the resource disambiguator when the config spans several.",
31
+ "description": "Workflow environment tag (e.g. prod, test) — an optional query filter that also narrows which resources are searched; omit to span them all.",
32
32
  "exclusive": [
33
33
  "deployment"
34
34
  ],
@@ -165,7 +165,7 @@
165
165
  ],
166
166
  "flags": {
167
167
  "deployment": {
168
- "description": "Deployment name — read the instance from the resource that deployment targets; the tag partition still comes from the loaded instance.",
168
+ "description": "Deployment name — narrow the instance search to the resource that deployment targets; the tag partition still comes from the loaded instance.",
169
169
  "exclusive": [
170
170
  "tag"
171
171
  ],
@@ -175,7 +175,7 @@
175
175
  "type": "option"
176
176
  },
177
177
  "tag": {
178
- "description": "Workflow environment tag (e.g. prod, test) — an optional query filter, and the resource disambiguator when the config spans several.",
178
+ "description": "Workflow environment tag (e.g. prod, test) — an optional query filter that also narrows which resources are searched; omit to span them all.",
179
179
  "exclusive": [
180
180
  "deployment"
181
181
  ],
@@ -225,7 +225,7 @@
225
225
  ],
226
226
  "flags": {
227
227
  "deployment": {
228
- "description": "Deployment name — read the instance from the resource that deployment targets; the tag partition still comes from the loaded instance.",
228
+ "description": "Deployment name — narrow the instance search to the resource that deployment targets; the tag partition still comes from the loaded instance.",
229
229
  "exclusive": [
230
230
  "tag"
231
231
  ],
@@ -235,7 +235,7 @@
235
235
  "type": "option"
236
236
  },
237
237
  "tag": {
238
- "description": "Workflow environment tag (e.g. prod, test) — an optional query filter, and the resource disambiguator when the config spans several.",
238
+ "description": "Workflow environment tag (e.g. prod, test) — an optional query filter that also narrows which resources are searched; omit to span them all.",
239
239
  "exclusive": [
240
240
  "deployment"
241
241
  ],
@@ -299,11 +299,12 @@
299
299
  "<%= config.bin %> list --include-completed",
300
300
  "<%= config.bin %> list --definition productLaunch",
301
301
  "<%= config.bin %> list --document dataset:proj:ds:article-1",
302
- "<%= config.bin %> list --tag prod"
302
+ "<%= config.bin %> list --tag prod",
303
+ "<%= config.bin %> list --json"
303
304
  ],
304
305
  "flags": {
305
306
  "tag": {
306
- "description": "Workflow environment tag (e.g. prod, test) — an optional query filter, and the resource disambiguator when the config spans several.",
307
+ "description": "Workflow environment tag (e.g. prod, test) — an optional query filter that also narrows which resources are searched; omit to span them all.",
307
308
  "name": "tag",
308
309
  "hasDynamicHelp": false,
309
310
  "multiple": false,
@@ -342,6 +343,12 @@
342
343
  "hasDynamicHelp": false,
343
344
  "multiple": false,
344
345
  "type": "option"
346
+ },
347
+ "json": {
348
+ "description": "Emit structured JSON instead of rendered output.",
349
+ "name": "json",
350
+ "allowNo": false,
351
+ "type": "boolean"
345
352
  }
346
353
  },
347
354
  "hasDynamicHelp": false,
@@ -408,7 +415,9 @@
408
415
  ]
409
416
  },
410
417
  "editorial-workflows:reset-activity": {
411
- "aliases": [],
418
+ "aliases": [
419
+ "reset-activity"
420
+ ],
412
421
  "args": {
413
422
  "instanceId": {
414
423
  "description": "Workflow instance id.",
@@ -421,13 +430,41 @@
421
430
  "required": true
422
431
  }
423
432
  },
424
- "description": "Reset a failed activity on an in-flight instance — back to pending (re-run) or to skipped (bypass).",
425
- "flags": {},
426
- "hasDynamicHelp": false,
427
- "hidden": true,
428
- "hiddenAliases": [
429
- "reset-activity"
433
+ "description": "Reset a failed activity on an in-flight instance — back to active to re-run it, or --skip to bypass it (mark it skipped) so a gated exit transition can fire.",
434
+ "examples": [
435
+ "<%= config.bin %> reset-activity wf-instance.abc123 legal-review",
436
+ "<%= config.bin %> reset-activity wf-instance.abc123 legal-review --skip"
430
437
  ],
438
+ "flags": {
439
+ "deployment": {
440
+ "description": "Deployment name — narrow the instance search to the resource that deployment targets; the tag partition still comes from the loaded instance.",
441
+ "exclusive": [
442
+ "tag"
443
+ ],
444
+ "name": "deployment",
445
+ "hasDynamicHelp": false,
446
+ "multiple": false,
447
+ "type": "option"
448
+ },
449
+ "tag": {
450
+ "description": "Workflow environment tag (e.g. prod, test) — an optional query filter that also narrows which resources are searched; omit to span them all.",
451
+ "exclusive": [
452
+ "deployment"
453
+ ],
454
+ "name": "tag",
455
+ "hasDynamicHelp": false,
456
+ "multiple": false,
457
+ "type": "option"
458
+ },
459
+ "skip": {
460
+ "description": "Bypass the activity (mark it skipped) instead of re-running it (back to active).",
461
+ "name": "skip",
462
+ "allowNo": false,
463
+ "type": "boolean"
464
+ }
465
+ },
466
+ "hasDynamicHelp": false,
467
+ "hiddenAliases": [],
431
468
  "id": "editorial-workflows:reset-activity",
432
469
  "pluginAlias": "@sanity/workflow-cli",
433
470
  "pluginName": "@sanity/workflow-cli",
@@ -459,7 +496,7 @@
459
496
  ],
460
497
  "flags": {
461
498
  "deployment": {
462
- "description": "Deployment name — read the instance from the resource that deployment targets; the tag partition still comes from the loaded instance.",
499
+ "description": "Deployment name — narrow the instance search to the resource that deployment targets; the tag partition still comes from the loaded instance.",
463
500
  "exclusive": [
464
501
  "tag"
465
502
  ],
@@ -469,7 +506,7 @@
469
506
  "type": "option"
470
507
  },
471
508
  "tag": {
472
- "description": "Workflow environment tag (e.g. prod, test) — an optional query filter, and the resource disambiguator when the config spans several.",
509
+ "description": "Workflow environment tag (e.g. prod, test) — an optional query filter that also narrows which resources are searched; omit to span them all.",
473
510
  "exclusive": [
474
511
  "deployment"
475
512
  ],
@@ -523,18 +560,19 @@
523
560
  "description": "Show the state, activities, and effects of a workflow instance.",
524
561
  "examples": [
525
562
  "<%= config.bin %> show wf-instance.abc123",
526
- "<%= config.bin %> show wf-instance.abc123 --include history"
563
+ "<%= config.bin %> show wf-instance.abc123 --include history",
564
+ "<%= config.bin %> show wf-instance.abc123 --json"
527
565
  ],
528
566
  "flags": {
529
567
  "tag": {
530
- "description": "Workflow environment tag (e.g. prod, test) — an optional query filter, and the resource disambiguator when the config spans several.",
568
+ "description": "Workflow environment tag (e.g. prod, test) — an optional query filter that also narrows which resources are searched; omit to span them all.",
531
569
  "name": "tag",
532
570
  "hasDynamicHelp": false,
533
571
  "multiple": false,
534
572
  "type": "option"
535
573
  },
536
574
  "include": {
537
- "description": "Optional sections to include in output.",
575
+ "description": "Optional sections to include in rendered output (--json always carries the full document).",
538
576
  "name": "include",
539
577
  "default": [],
540
578
  "hasDynamicHelp": false,
@@ -543,6 +581,12 @@
543
581
  "history"
544
582
  ],
545
583
  "type": "option"
584
+ },
585
+ "json": {
586
+ "description": "Emit structured JSON instead of rendered output.",
587
+ "name": "json",
588
+ "allowNo": false,
589
+ "type": "boolean"
546
590
  }
547
591
  },
548
592
  "hasDynamicHelp": false,
@@ -660,7 +704,7 @@
660
704
  ],
661
705
  "flags": {
662
706
  "tag": {
663
- "description": "Workflow environment tag (e.g. prod, test) — an optional query filter, and the resource disambiguator when the config spans several.",
707
+ "description": "Workflow environment tag (e.g. prod, test) — an optional query filter that also narrows which resources are searched; omit to span them all.",
664
708
  "name": "tag",
665
709
  "hasDynamicHelp": false,
666
710
  "multiple": false,
@@ -826,11 +870,12 @@
826
870
  "description": "List deployed workflow definitions.",
827
871
  "examples": [
828
872
  "<%= config.bin %> definition list",
829
- "<%= config.bin %> definition list --tag prod"
873
+ "<%= config.bin %> definition list --tag prod",
874
+ "<%= config.bin %> definition list --json"
830
875
  ],
831
876
  "flags": {
832
877
  "tag": {
833
- "description": "Workflow environment tag (e.g. prod, test) — an optional query filter, and the resource disambiguator when the config spans several.",
878
+ "description": "Workflow environment tag (e.g. prod, test) — an optional query filter that also narrows which resources are searched; omit to span them all.",
834
879
  "name": "tag",
835
880
  "hasDynamicHelp": false,
836
881
  "multiple": false,
@@ -850,6 +895,12 @@
850
895
  "hasDynamicHelp": false,
851
896
  "multiple": false,
852
897
  "type": "option"
898
+ },
899
+ "json": {
900
+ "description": "Emit structured JSON instead of rendered output.",
901
+ "name": "json",
902
+ "allowNo": false,
903
+ "type": "boolean"
853
904
  }
854
905
  },
855
906
  "hasDynamicHelp": false,
@@ -882,7 +933,7 @@
882
933
  "description": "Show a deployed workflow definition.",
883
934
  "flags": {
884
935
  "tag": {
885
- "description": "Workflow environment tag (e.g. prod, test) — an optional query filter, and the resource disambiguator when the config spans several.",
936
+ "description": "Workflow environment tag (e.g. prod, test) — an optional query filter that also narrows which resources are searched; omit to span them all.",
886
937
  "name": "tag",
887
938
  "hasDynamicHelp": false,
888
939
  "multiple": false,
@@ -894,6 +945,12 @@
894
945
  "hasDynamicHelp": false,
895
946
  "multiple": false,
896
947
  "type": "option"
948
+ },
949
+ "json": {
950
+ "description": "Emit structured JSON instead of rendered output.",
951
+ "name": "json",
952
+ "allowNo": false,
953
+ "type": "boolean"
897
954
  }
898
955
  },
899
956
  "hasDynamicHelp": false,
@@ -913,5 +970,5 @@
913
970
  ]
914
971
  }
915
972
  },
916
- "version": "0.20.0"
973
+ "version": "0.22.0"
917
974
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/workflow-cli",
3
- "version": "0.20.0",
3
+ "version": "0.22.0",
4
4
  "description": "Command-line tool for deploying, inspecting, and administering Sanity workflow definitions and instances.",
5
5
  "keywords": [
6
6
  "cli",
@@ -62,17 +62,18 @@
62
62
  "@types/node": "^24.12.4",
63
63
  "oclif": "^4.23.16",
64
64
  "vitest": "^4.1.8",
65
- "@sanity/workflow-engine": "0.20.0",
66
- "@sanity/workflow-engine-test": "0.20.0",
67
- "@sanity/workflow-examples": "0.9.0"
65
+ "@sanity/workflow-engine": "0.22.0",
66
+ "@sanity/workflow-engine-test": "0.22.0",
67
+ "@sanity/workflow-examples": "0.10.1"
68
68
  },
69
69
  "peerDependencies": {
70
- "@sanity/workflow-engine": "0.20.0"
70
+ "@sanity/workflow-engine": "0.22.0"
71
71
  },
72
72
  "oclif": {
73
73
  "bin": "sanity-workflows",
74
74
  "commands": "./dist/commands",
75
75
  "dirname": "sanity-workflows",
76
+ "helpClass": "./dist/help",
76
77
  "hooks": {
77
78
  "finally": "./dist/hooks/finally/telemetry",
78
79
  "prerun": "./dist/hooks/prerun/telemetry"