@sanity/workflow-cli 0.27.0 → 0.28.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +14 -15
  3. package/bin/run.js +3 -1
  4. package/dist/command-ids.d.ts +2 -0
  5. package/dist/command-ids.js +2 -0
  6. package/dist/commands/{editorial-workflows → workflows}/abort.d.ts +0 -1
  7. package/dist/commands/{editorial-workflows → workflows}/abort.js +2 -3
  8. package/dist/commands/{editorial-workflows → workflows}/definition/delete.d.ts +0 -1
  9. package/dist/commands/{editorial-workflows → workflows}/definition/delete.js +3 -4
  10. package/dist/commands/{editorial-workflows → workflows}/definition/diff.d.ts +0 -1
  11. package/dist/commands/{editorial-workflows → workflows}/definition/diff.js +2 -3
  12. package/dist/commands/{editorial-workflows → workflows}/definition/list.d.ts +0 -1
  13. package/dist/commands/{editorial-workflows → workflows}/definition/list.js +3 -4
  14. package/dist/commands/{editorial-workflows → workflows}/definition/show.d.ts +0 -1
  15. package/dist/commands/{editorial-workflows → workflows}/definition/show.js +0 -1
  16. package/dist/commands/{editorial-workflows → workflows}/deploy.d.ts +4 -3
  17. package/dist/commands/{editorial-workflows → workflows}/deploy.js +15 -9
  18. package/dist/commands/{editorial-workflows → workflows}/diagnose.d.ts +0 -1
  19. package/dist/commands/{editorial-workflows → workflows}/diagnose.js +3 -4
  20. package/dist/commands/{editorial-workflows → workflows}/fire-action.d.ts +0 -1
  21. package/dist/commands/{editorial-workflows → workflows}/fire-action.js +3 -4
  22. package/dist/commands/{editorial-workflows → workflows}/list.d.ts +0 -1
  23. package/dist/commands/{editorial-workflows → workflows}/list.js +6 -7
  24. package/dist/commands/{editorial-workflows → workflows}/nuke.d.ts +0 -1
  25. package/dist/commands/{editorial-workflows → workflows}/nuke.js +3 -4
  26. package/dist/commands/{editorial-workflows → workflows}/reset-activity.d.ts +0 -1
  27. package/dist/commands/{editorial-workflows → workflows}/reset-activity.js +2 -3
  28. package/dist/commands/{editorial-workflows → workflows}/set-stage.d.ts +0 -1
  29. package/dist/commands/{editorial-workflows → workflows}/set-stage.js +3 -4
  30. package/dist/commands/{editorial-workflows → workflows}/show.d.ts +0 -1
  31. package/dist/commands/{editorial-workflows → workflows}/show.js +3 -4
  32. package/dist/commands/{editorial-workflows → workflows}/start.d.ts +0 -1
  33. package/dist/commands/{editorial-workflows → workflows}/start.js +4 -5
  34. package/dist/commands/{editorial-workflows → workflows}/tail.d.ts +0 -1
  35. package/dist/commands/{editorial-workflows → workflows}/tail.js +1 -2
  36. package/dist/help.d.ts +9 -4
  37. package/dist/help.js +36 -8
  38. package/dist/lib/base-command.d.ts +3 -3
  39. package/dist/lib/base-command.js +4 -0
  40. package/dist/lib/context.d.ts +5 -4
  41. package/dist/lib/context.js +2 -1
  42. package/dist/lib/select-deployment.js +2 -1
  43. package/dist/lib/share-definitions.js +2 -1
  44. package/dist/lib/telemetry.d.ts +1 -3
  45. package/dist/standalone-argv.d.ts +14 -0
  46. package/dist/standalone-argv.js +54 -0
  47. package/oclif.manifest.json +105 -135
  48. package/package.json +6 -6
@@ -1,9 +1,7 @@
1
1
  {
2
2
  "commands": {
3
- "editorial-workflows:abort": {
4
- "aliases": [
5
- "abort"
6
- ],
3
+ "workflows:abort": {
4
+ "aliases": [],
7
5
  "args": {
8
6
  "instanceId": {
9
7
  "description": "Workflow instance id.",
@@ -13,8 +11,8 @@
13
11
  },
14
12
  "description": "Abort an in-flight workflow instance — a hard stop: pending effects are cancelled, stage guards removed, and the instance is marked terminal where it stands.",
15
13
  "examples": [
16
- "<%= config.bin %> abort wf-instance.abc123",
17
- "<%= config.bin %> abort wf-instance.abc123 --reason 'superseded by relaunch'"
14
+ "<%= config.bin %> workflows abort wf-instance.abc123",
15
+ "<%= config.bin %> workflows abort wf-instance.abc123 --reason 'superseded by relaunch'"
18
16
  ],
19
17
  "flags": {
20
18
  "deployment": {
@@ -47,7 +45,7 @@
47
45
  },
48
46
  "hasDynamicHelp": false,
49
47
  "hiddenAliases": [],
50
- "id": "editorial-workflows:abort",
48
+ "id": "workflows:abort",
51
49
  "pluginAlias": "@sanity/workflow-cli",
52
50
  "pluginName": "@sanity/workflow-cli",
53
51
  "pluginType": "core",
@@ -56,23 +54,21 @@
56
54
  "relativePath": [
57
55
  "dist",
58
56
  "commands",
59
- "editorial-workflows",
57
+ "workflows",
60
58
  "abort.js"
61
59
  ]
62
60
  },
63
- "editorial-workflows:deploy": {
64
- "aliases": [
65
- "deploy"
66
- ],
61
+ "workflows:deploy": {
62
+ "aliases": [],
67
63
  "args": {},
68
64
  "description": "Validate, diff, and deploy workflow definitions to the resource bound by the selected deployment.",
69
65
  "examples": [
70
- "<%= config.bin %> deploy --deployment review-prod",
71
- "<%= config.bin %> deploy --tag prod",
72
- "<%= config.bin %> deploy --all-tags",
73
- "<%= config.bin %> deploy --check",
74
- "<%= config.bin %> deploy --dry-run",
75
- "<%= config.bin %> deploy --only productLaunch"
66
+ "<%= config.bin %> workflows deploy --deployment review-prod",
67
+ "<%= config.bin %> workflows deploy --tag prod",
68
+ "<%= config.bin %> workflows deploy --all-tags",
69
+ "<%= config.bin %> workflows deploy --check",
70
+ "<%= config.bin %> workflows deploy --dry-run",
71
+ "<%= config.bin %> workflows deploy --only productLaunch"
76
72
  ],
77
73
  "flags": {
78
74
  "deployment": {
@@ -133,7 +129,7 @@
133
129
  },
134
130
  "hasDynamicHelp": false,
135
131
  "hiddenAliases": [],
136
- "id": "editorial-workflows:deploy",
132
+ "id": "workflows:deploy",
137
133
  "pluginAlias": "@sanity/workflow-cli",
138
134
  "pluginName": "@sanity/workflow-cli",
139
135
  "pluginType": "core",
@@ -142,14 +138,12 @@
142
138
  "relativePath": [
143
139
  "dist",
144
140
  "commands",
145
- "editorial-workflows",
141
+ "workflows",
146
142
  "deploy.js"
147
143
  ]
148
144
  },
149
- "editorial-workflows:diagnose": {
150
- "aliases": [
151
- "diagnose"
152
- ],
145
+ "workflows:diagnose": {
146
+ "aliases": [],
153
147
  "args": {
154
148
  "instanceId": {
155
149
  "description": "Workflow instance id.",
@@ -159,9 +153,9 @@
159
153
  },
160
154
  "description": "Explain why a workflow instance is or isn't progressing, and what would unstick it.",
161
155
  "examples": [
162
- "<%= config.bin %> diagnose wf-instance.abc123",
163
- "<%= config.bin %> diagnose wf-instance.abc123 --tag prod",
164
- "<%= config.bin %> diagnose wf-instance.abc123 --json"
156
+ "<%= config.bin %> workflows diagnose wf-instance.abc123",
157
+ "<%= config.bin %> workflows diagnose wf-instance.abc123 --tag prod",
158
+ "<%= config.bin %> workflows diagnose wf-instance.abc123 --json"
165
159
  ],
166
160
  "flags": {
167
161
  "deployment": {
@@ -193,7 +187,7 @@
193
187
  },
194
188
  "hasDynamicHelp": false,
195
189
  "hiddenAliases": [],
196
- "id": "editorial-workflows:diagnose",
190
+ "id": "workflows:diagnose",
197
191
  "pluginAlias": "@sanity/workflow-cli",
198
192
  "pluginName": "@sanity/workflow-cli",
199
193
  "pluginType": "core",
@@ -202,14 +196,12 @@
202
196
  "relativePath": [
203
197
  "dist",
204
198
  "commands",
205
- "editorial-workflows",
199
+ "workflows",
206
200
  "diagnose.js"
207
201
  ]
208
202
  },
209
- "editorial-workflows:fire-action": {
210
- "aliases": [
211
- "fire-action"
212
- ],
203
+ "workflows:fire-action": {
204
+ "aliases": [],
213
205
  "args": {
214
206
  "instanceId": {
215
207
  "description": "Workflow instance id.",
@@ -219,9 +211,9 @@
219
211
  },
220
212
  "description": "Fire an action on an instance to unstick a waiting activity — the write acts as the configured token. Omit --action to list what can be fired.",
221
213
  "examples": [
222
- "<%= config.bin %> fire-action wf-instance.abc123",
223
- "<%= config.bin %> fire-action wf-instance.abc123 --activity approve --action approve",
224
- "<%= config.bin %> fire-action wf-instance.abc123 --activity publish --action publish --param note=shipping"
214
+ "<%= config.bin %> workflows fire-action wf-instance.abc123",
215
+ "<%= config.bin %> workflows fire-action wf-instance.abc123 --activity approve --action approve",
216
+ "<%= config.bin %> workflows fire-action wf-instance.abc123 --activity publish --action publish --param note=shipping"
225
217
  ],
226
218
  "flags": {
227
219
  "deployment": {
@@ -275,7 +267,7 @@
275
267
  },
276
268
  "hasDynamicHelp": false,
277
269
  "hiddenAliases": [],
278
- "id": "editorial-workflows:fire-action",
270
+ "id": "workflows:fire-action",
279
271
  "pluginAlias": "@sanity/workflow-cli",
280
272
  "pluginName": "@sanity/workflow-cli",
281
273
  "pluginType": "core",
@@ -284,23 +276,21 @@
284
276
  "relativePath": [
285
277
  "dist",
286
278
  "commands",
287
- "editorial-workflows",
279
+ "workflows",
288
280
  "fire-action.js"
289
281
  ]
290
282
  },
291
- "editorial-workflows:list": {
292
- "aliases": [
293
- "list"
294
- ],
283
+ "workflows:list": {
284
+ "aliases": [],
295
285
  "args": {},
296
286
  "description": "List workflow instances in the configured dataset (in-flight by default).",
297
287
  "examples": [
298
- "<%= config.bin %> list",
299
- "<%= config.bin %> list --include-completed",
300
- "<%= config.bin %> list --definition productLaunch",
301
- "<%= config.bin %> list --document dataset:proj:ds:article-1",
302
- "<%= config.bin %> list --tag prod",
303
- "<%= config.bin %> list --json"
288
+ "<%= config.bin %> workflows list",
289
+ "<%= config.bin %> workflows list --include-completed",
290
+ "<%= config.bin %> workflows list --definition productLaunch",
291
+ "<%= config.bin %> workflows list --document dataset:proj:ds:article-1",
292
+ "<%= config.bin %> workflows list --tag prod",
293
+ "<%= config.bin %> workflows list --json"
304
294
  ],
305
295
  "flags": {
306
296
  "tag": {
@@ -353,7 +343,7 @@
353
343
  },
354
344
  "hasDynamicHelp": false,
355
345
  "hiddenAliases": [],
356
- "id": "editorial-workflows:list",
346
+ "id": "workflows:list",
357
347
  "pluginAlias": "@sanity/workflow-cli",
358
348
  "pluginName": "@sanity/workflow-cli",
359
349
  "pluginType": "core",
@@ -362,20 +352,18 @@
362
352
  "relativePath": [
363
353
  "dist",
364
354
  "commands",
365
- "editorial-workflows",
355
+ "workflows",
366
356
  "list.js"
367
357
  ]
368
358
  },
369
- "editorial-workflows:nuke": {
370
- "aliases": [
371
- "nuke"
372
- ],
359
+ "workflows:nuke": {
360
+ "aliases": [],
373
361
  "args": {},
374
362
  "description": "The reset for a dataset holding engine documents the versioned upgrade framework cannot yet migrate: deletes the tag's instances, definitions, and guards (across every alias-bound resource). --instance <id> instead deletes one terminal instance plus its guards. Content documents are never touched. Prints a dry-run plan, then confirms (--force skips the prompt; the plan still prints).",
375
363
  "examples": [
376
- "<%= config.bin %> nuke --deployment plugin-dev",
377
- "<%= config.bin %> nuke --tag plugin-dev --force",
378
- "<%= config.bin %> nuke --instance plugin-dev.wf-instance.abc123"
364
+ "<%= config.bin %> workflows nuke --deployment plugin-dev",
365
+ "<%= config.bin %> workflows nuke --tag plugin-dev --force",
366
+ "<%= config.bin %> workflows nuke --instance plugin-dev.wf-instance.abc123"
379
367
  ],
380
368
  "flags": {
381
369
  "deployment": {
@@ -408,7 +396,7 @@
408
396
  },
409
397
  "hasDynamicHelp": false,
410
398
  "hiddenAliases": [],
411
- "id": "editorial-workflows:nuke",
399
+ "id": "workflows:nuke",
412
400
  "pluginAlias": "@sanity/workflow-cli",
413
401
  "pluginName": "@sanity/workflow-cli",
414
402
  "pluginType": "core",
@@ -418,14 +406,12 @@
418
406
  "relativePath": [
419
407
  "dist",
420
408
  "commands",
421
- "editorial-workflows",
409
+ "workflows",
422
410
  "nuke.js"
423
411
  ]
424
412
  },
425
- "editorial-workflows:reset-activity": {
426
- "aliases": [
427
- "reset-activity"
428
- ],
413
+ "workflows:reset-activity": {
414
+ "aliases": [],
429
415
  "args": {
430
416
  "instanceId": {
431
417
  "description": "Workflow instance id.",
@@ -440,8 +426,8 @@
440
426
  },
441
427
  "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.",
442
428
  "examples": [
443
- "<%= config.bin %> reset-activity wf-instance.abc123 legal-review",
444
- "<%= config.bin %> reset-activity wf-instance.abc123 legal-review --skip"
429
+ "<%= config.bin %> workflows reset-activity wf-instance.abc123 legal-review",
430
+ "<%= config.bin %> workflows reset-activity wf-instance.abc123 legal-review --skip"
445
431
  ],
446
432
  "flags": {
447
433
  "deployment": {
@@ -473,7 +459,7 @@
473
459
  },
474
460
  "hasDynamicHelp": false,
475
461
  "hiddenAliases": [],
476
- "id": "editorial-workflows:reset-activity",
462
+ "id": "workflows:reset-activity",
477
463
  "pluginAlias": "@sanity/workflow-cli",
478
464
  "pluginName": "@sanity/workflow-cli",
479
465
  "pluginType": "core",
@@ -482,14 +468,12 @@
482
468
  "relativePath": [
483
469
  "dist",
484
470
  "commands",
485
- "editorial-workflows",
471
+ "workflows",
486
472
  "reset-activity.js"
487
473
  ]
488
474
  },
489
- "editorial-workflows:set-stage": {
490
- "aliases": [
491
- "set-stage"
492
- ],
475
+ "workflows:set-stage": {
476
+ "aliases": [],
493
477
  "args": {
494
478
  "instanceId": {
495
479
  "description": "Workflow instance id to move.",
@@ -499,9 +483,9 @@
499
483
  },
500
484
  "description": "Force an instance into a stage, regardless of its declared transitions and filters — the engine's setStage admin override. The target stage's enter lifecycle still runs (auto-activities start, stage guards reconcile), and the post-move cascade can immediately auto-transition the instance onward.",
501
485
  "examples": [
502
- "<%= config.bin %> set-stage wf-instance.abc123 --to ready",
503
- "<%= config.bin %> set-stage wf-instance.abc123",
504
- "<%= config.bin %> set-stage wf-instance.abc123 --to ready --reason 'unblock for demo'"
486
+ "<%= config.bin %> workflows set-stage wf-instance.abc123 --to ready",
487
+ "<%= config.bin %> workflows set-stage wf-instance.abc123",
488
+ "<%= config.bin %> workflows set-stage wf-instance.abc123 --to ready --reason 'unblock for demo'"
505
489
  ],
506
490
  "flags": {
507
491
  "deployment": {
@@ -541,7 +525,7 @@
541
525
  },
542
526
  "hasDynamicHelp": false,
543
527
  "hiddenAliases": [],
544
- "id": "editorial-workflows:set-stage",
528
+ "id": "workflows:set-stage",
545
529
  "pluginAlias": "@sanity/workflow-cli",
546
530
  "pluginName": "@sanity/workflow-cli",
547
531
  "pluginType": "core",
@@ -550,14 +534,12 @@
550
534
  "relativePath": [
551
535
  "dist",
552
536
  "commands",
553
- "editorial-workflows",
537
+ "workflows",
554
538
  "set-stage.js"
555
539
  ]
556
540
  },
557
- "editorial-workflows:show": {
558
- "aliases": [
559
- "show"
560
- ],
541
+ "workflows:show": {
542
+ "aliases": [],
561
543
  "args": {
562
544
  "instanceId": {
563
545
  "description": "Workflow instance document id.",
@@ -567,9 +549,9 @@
567
549
  },
568
550
  "description": "Show the state, activities, and effects of a workflow instance.",
569
551
  "examples": [
570
- "<%= config.bin %> show wf-instance.abc123",
571
- "<%= config.bin %> show wf-instance.abc123 --include history",
572
- "<%= config.bin %> show wf-instance.abc123 --json"
552
+ "<%= config.bin %> workflows show wf-instance.abc123",
553
+ "<%= config.bin %> workflows show wf-instance.abc123 --include history",
554
+ "<%= config.bin %> workflows show wf-instance.abc123 --json"
573
555
  ],
574
556
  "flags": {
575
557
  "tag": {
@@ -599,7 +581,7 @@
599
581
  },
600
582
  "hasDynamicHelp": false,
601
583
  "hiddenAliases": [],
602
- "id": "editorial-workflows:show",
584
+ "id": "workflows:show",
603
585
  "pluginAlias": "@sanity/workflow-cli",
604
586
  "pluginName": "@sanity/workflow-cli",
605
587
  "pluginType": "core",
@@ -608,14 +590,12 @@
608
590
  "relativePath": [
609
591
  "dist",
610
592
  "commands",
611
- "editorial-workflows",
593
+ "workflows",
612
594
  "show.js"
613
595
  ]
614
596
  },
615
- "editorial-workflows:start": {
616
- "aliases": [
617
- "start"
618
- ],
597
+ "workflows:start": {
598
+ "aliases": [],
619
599
  "args": {
620
600
  "name": {
621
601
  "description": "Workflow definition name.",
@@ -625,10 +605,10 @@
625
605
  },
626
606
  "description": "Start a workflow instance from a deployed definition. Supply values for the workflow's input-sourced fields with --field (e.g. the subject document ref).",
627
607
  "examples": [
628
- "<%= config.bin %> start productLaunch",
629
- "<%= config.bin %> start article-review --field subject='{\"id\":\"dataset:proj:ds:article-1\",\"type\":\"article\"}'",
630
- "<%= config.bin %> start productLaunch --version 2 --tag prod",
631
- "<%= config.bin %> start productLaunch --instance-id prod.wf-instance.a1b2c3d4e5f6"
608
+ "<%= config.bin %> workflows start productLaunch",
609
+ "<%= config.bin %> workflows start article-review --field subject='{\"id\":\"dataset:proj:ds:article-1\",\"type\":\"article\"}'",
610
+ "<%= config.bin %> workflows start productLaunch --version 2 --tag prod",
611
+ "<%= config.bin %> workflows start productLaunch --instance-id prod.wf-instance.a1b2c3d4e5f6"
632
612
  ],
633
613
  "flags": {
634
614
  "deployment": {
@@ -682,7 +662,7 @@
682
662
  },
683
663
  "hasDynamicHelp": false,
684
664
  "hiddenAliases": [],
685
- "id": "editorial-workflows:start",
665
+ "id": "workflows:start",
686
666
  "pluginAlias": "@sanity/workflow-cli",
687
667
  "pluginName": "@sanity/workflow-cli",
688
668
  "pluginType": "core",
@@ -691,14 +671,12 @@
691
671
  "relativePath": [
692
672
  "dist",
693
673
  "commands",
694
- "editorial-workflows",
674
+ "workflows",
695
675
  "start.js"
696
676
  ]
697
677
  },
698
- "editorial-workflows:tail": {
699
- "aliases": [
700
- "tail"
701
- ],
678
+ "workflows:tail": {
679
+ "aliases": [],
702
680
  "args": {
703
681
  "instanceId": {
704
682
  "description": "Workflow instance id to tail.",
@@ -708,7 +686,7 @@
708
686
  },
709
687
  "description": "Stream new history entries on a workflow instance as they land in the dataset.",
710
688
  "examples": [
711
- "<%= config.bin %> tail wf-instance.abc123"
689
+ "<%= config.bin %> workflows tail wf-instance.abc123"
712
690
  ],
713
691
  "flags": {
714
692
  "tag": {
@@ -721,7 +699,7 @@
721
699
  },
722
700
  "hasDynamicHelp": false,
723
701
  "hiddenAliases": [],
724
- "id": "editorial-workflows:tail",
702
+ "id": "workflows:tail",
725
703
  "pluginAlias": "@sanity/workflow-cli",
726
704
  "pluginName": "@sanity/workflow-cli",
727
705
  "pluginType": "core",
@@ -730,14 +708,12 @@
730
708
  "relativePath": [
731
709
  "dist",
732
710
  "commands",
733
- "editorial-workflows",
711
+ "workflows",
734
712
  "tail.js"
735
713
  ]
736
714
  },
737
- "editorial-workflows:definition:delete": {
738
- "aliases": [
739
- "definition:delete"
740
- ],
715
+ "workflows:definition:delete": {
716
+ "aliases": [],
741
717
  "args": {
742
718
  "name": {
743
719
  "description": "Workflow definition name.",
@@ -747,9 +723,9 @@
747
723
  },
748
724
  "description": "Delete a deployed workflow definition (every version, or one via --version). Refuses while non-terminal instances exist unless --cascade aborts them first — instances are aborted in place, never deleted.",
749
725
  "examples": [
750
- "<%= config.bin %> definition delete my-workflow",
751
- "<%= config.bin %> definition delete my-workflow --version 2",
752
- "<%= config.bin %> definition delete my-workflow --cascade --reason 'workflow retired'"
726
+ "<%= config.bin %> workflows definition delete my-workflow",
727
+ "<%= config.bin %> workflows definition delete my-workflow --version 2",
728
+ "<%= config.bin %> workflows definition delete my-workflow --cascade --reason 'workflow retired'"
753
729
  ],
754
730
  "flags": {
755
731
  "deployment": {
@@ -795,7 +771,7 @@
795
771
  },
796
772
  "hasDynamicHelp": false,
797
773
  "hiddenAliases": [],
798
- "id": "editorial-workflows:definition:delete",
774
+ "id": "workflows:definition:delete",
799
775
  "pluginAlias": "@sanity/workflow-cli",
800
776
  "pluginName": "@sanity/workflow-cli",
801
777
  "pluginType": "core",
@@ -804,15 +780,13 @@
804
780
  "relativePath": [
805
781
  "dist",
806
782
  "commands",
807
- "editorial-workflows",
783
+ "workflows",
808
784
  "definition",
809
785
  "delete.js"
810
786
  ]
811
787
  },
812
- "editorial-workflows:definition:diff": {
813
- "aliases": [
814
- "definition:diff"
815
- ],
788
+ "workflows:definition:diff": {
789
+ "aliases": [],
816
790
  "args": {
817
791
  "name": {
818
792
  "description": "Workflow definition name.",
@@ -822,8 +796,8 @@
822
796
  },
823
797
  "description": "Diff an in-code definition against the deployed version (latest by default).",
824
798
  "examples": [
825
- "<%= config.bin %> definition diff productLaunch",
826
- "<%= config.bin %> definition diff productLaunch --version 2"
799
+ "<%= config.bin %> workflows definition diff productLaunch",
800
+ "<%= config.bin %> workflows definition diff productLaunch --version 2"
827
801
  ],
828
802
  "flags": {
829
803
  "deployment": {
@@ -856,7 +830,7 @@
856
830
  },
857
831
  "hasDynamicHelp": false,
858
832
  "hiddenAliases": [],
859
- "id": "editorial-workflows:definition:diff",
833
+ "id": "workflows:definition:diff",
860
834
  "pluginAlias": "@sanity/workflow-cli",
861
835
  "pluginName": "@sanity/workflow-cli",
862
836
  "pluginType": "core",
@@ -865,21 +839,19 @@
865
839
  "relativePath": [
866
840
  "dist",
867
841
  "commands",
868
- "editorial-workflows",
842
+ "workflows",
869
843
  "definition",
870
844
  "diff.js"
871
845
  ]
872
846
  },
873
- "editorial-workflows:definition:list": {
874
- "aliases": [
875
- "definition:list"
876
- ],
847
+ "workflows:definition:list": {
848
+ "aliases": [],
877
849
  "args": {},
878
850
  "description": "List deployed workflow definitions.",
879
851
  "examples": [
880
- "<%= config.bin %> definition list",
881
- "<%= config.bin %> definition list --tag prod",
882
- "<%= config.bin %> definition list --json"
852
+ "<%= config.bin %> workflows definition list",
853
+ "<%= config.bin %> workflows definition list --tag prod",
854
+ "<%= config.bin %> workflows definition list --json"
883
855
  ],
884
856
  "flags": {
885
857
  "tag": {
@@ -913,7 +885,7 @@
913
885
  },
914
886
  "hasDynamicHelp": false,
915
887
  "hiddenAliases": [],
916
- "id": "editorial-workflows:definition:list",
888
+ "id": "workflows:definition:list",
917
889
  "pluginAlias": "@sanity/workflow-cli",
918
890
  "pluginName": "@sanity/workflow-cli",
919
891
  "pluginType": "core",
@@ -922,15 +894,13 @@
922
894
  "relativePath": [
923
895
  "dist",
924
896
  "commands",
925
- "editorial-workflows",
897
+ "workflows",
926
898
  "definition",
927
899
  "list.js"
928
900
  ]
929
901
  },
930
- "editorial-workflows:definition:show": {
931
- "aliases": [
932
- "definition:show"
933
- ],
902
+ "workflows:definition:show": {
903
+ "aliases": [],
934
904
  "args": {
935
905
  "name": {
936
906
  "description": "Workflow definition name.",
@@ -963,7 +933,7 @@
963
933
  },
964
934
  "hasDynamicHelp": false,
965
935
  "hiddenAliases": [],
966
- "id": "editorial-workflows:definition:show",
936
+ "id": "workflows:definition:show",
967
937
  "pluginAlias": "@sanity/workflow-cli",
968
938
  "pluginName": "@sanity/workflow-cli",
969
939
  "pluginType": "core",
@@ -972,11 +942,11 @@
972
942
  "relativePath": [
973
943
  "dist",
974
944
  "commands",
975
- "editorial-workflows",
945
+ "workflows",
976
946
  "definition",
977
947
  "show.js"
978
948
  ]
979
949
  }
980
950
  },
981
- "version": "0.27.0"
951
+ "version": "0.28.0"
982
952
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/workflow-cli",
3
- "version": "0.27.0",
3
+ "version": "0.28.0",
4
4
  "description": "Command-line tool for deploying, inspecting, and administering Sanity workflow definitions and instances.",
5
5
  "keywords": [
6
6
  "cli",
@@ -62,12 +62,12 @@
62
62
  "@types/node": "^24.12.4",
63
63
  "oclif": "^4.23.16",
64
64
  "vitest": "^4.1.8",
65
- "@sanity/workflow-engine": "0.27.0",
66
- "@sanity/workflow-engine-test": "0.27.0",
67
- "@sanity/workflow-examples": "0.10.6"
65
+ "@sanity/workflow-engine": "0.28.0",
66
+ "@sanity/workflow-engine-test": "0.28.0",
67
+ "@sanity/workflow-examples": "0.10.7"
68
68
  },
69
69
  "peerDependencies": {
70
- "@sanity/workflow-engine": "0.27.0"
70
+ "@sanity/workflow-engine": "0.28.0"
71
71
  },
72
72
  "oclif": {
73
73
  "bin": "sanity-workflows",
@@ -83,7 +83,7 @@
83
83
  ],
84
84
  "topicSeparator": " ",
85
85
  "topics": {
86
- "editorial-workflows": {
86
+ "workflows": {
87
87
  "description": "Editorial Workflows — deploy, inspect, and administer definitions and instances",
88
88
  "subtopics": {
89
89
  "definition": {