@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.
Files changed (55) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +123 -0
  3. package/bin/run.js +8 -0
  4. package/dist/commands/abort.d.ts +30 -0
  5. package/dist/commands/abort.js +62 -0
  6. package/dist/commands/definition/delete.d.ts +36 -0
  7. package/dist/commands/definition/delete.js +86 -0
  8. package/dist/commands/definition/diff.d.ts +13 -0
  9. package/dist/commands/definition/diff.js +57 -0
  10. package/dist/commands/definition/list.d.ts +31 -0
  11. package/dist/commands/definition/list.js +83 -0
  12. package/dist/commands/definition/show.d.ts +33 -0
  13. package/dist/commands/definition/show.js +118 -0
  14. package/dist/commands/deploy.d.ts +22 -0
  15. package/dist/commands/deploy.js +97 -0
  16. package/dist/commands/diagnose.d.ts +23 -0
  17. package/dist/commands/diagnose.js +269 -0
  18. package/dist/commands/fire-action.d.ts +63 -0
  19. package/dist/commands/fire-action.js +241 -0
  20. package/dist/commands/list.d.ts +46 -0
  21. package/dist/commands/list.js +106 -0
  22. package/dist/commands/move-stage.d.ts +47 -0
  23. package/dist/commands/move-stage.js +77 -0
  24. package/dist/commands/retry-task.d.ts +9 -0
  25. package/dist/commands/retry-task.js +11 -0
  26. package/dist/commands/set-stage.d.ts +12 -0
  27. package/dist/commands/set-stage.js +18 -0
  28. package/dist/commands/show.d.ts +23 -0
  29. package/dist/commands/show.js +85 -0
  30. package/dist/commands/tail.d.ts +15 -0
  31. package/dist/commands/tail.js +73 -0
  32. package/dist/index.d.ts +1 -0
  33. package/dist/index.js +4 -0
  34. package/dist/lib/client.d.ts +17 -0
  35. package/dist/lib/client.js +40 -0
  36. package/dist/lib/config.d.ts +18 -0
  37. package/dist/lib/config.js +50 -0
  38. package/dist/lib/definitions.d.ts +36 -0
  39. package/dist/lib/definitions.js +122 -0
  40. package/dist/lib/diff.d.ts +7 -0
  41. package/dist/lib/diff.js +49 -0
  42. package/dist/lib/env.d.ts +10 -0
  43. package/dist/lib/env.js +13 -0
  44. package/dist/lib/fail.d.ts +16 -0
  45. package/dist/lib/fail.js +33 -0
  46. package/dist/lib/flags.d.ts +5 -0
  47. package/dist/lib/flags.js +8 -0
  48. package/dist/lib/operation-args.d.ts +25 -0
  49. package/dist/lib/operation-args.js +48 -0
  50. package/dist/lib/ops-report.d.ts +30 -0
  51. package/dist/lib/ops-report.js +28 -0
  52. package/dist/lib/stub.d.ts +10 -0
  53. package/dist/lib/stub.js +24 -0
  54. package/oclif.manifest.json +684 -0
  55. package/package.json +94 -0
@@ -0,0 +1,684 @@
1
+ {
2
+ "commands": {
3
+ "abort": {
4
+ "aliases": [],
5
+ "args": {
6
+ "instanceId": {
7
+ "description": "Workflow instance id.",
8
+ "name": "instanceId",
9
+ "required": true
10
+ }
11
+ },
12
+ "description": "Abort an in-flight workflow instance — a hard stop: pending effects are cancelled, stage guards lifted, and the instance is marked terminal where it stands.",
13
+ "examples": [
14
+ "<%= config.bin %> abort wf-instance.abc123",
15
+ "<%= config.bin %> abort wf-instance.abc123 --reason 'superseded by relaunch'"
16
+ ],
17
+ "flags": {
18
+ "tag": {
19
+ "description": "Workflow environment tag (e.g. prod, test). Overrides WORKFLOW_TAG.",
20
+ "name": "tag",
21
+ "hasDynamicHelp": false,
22
+ "multiple": false,
23
+ "type": "option"
24
+ },
25
+ "reason": {
26
+ "description": "Reason for aborting (recorded in history).",
27
+ "name": "reason",
28
+ "hasDynamicHelp": false,
29
+ "multiple": false,
30
+ "type": "option"
31
+ }
32
+ },
33
+ "hasDynamicHelp": false,
34
+ "hiddenAliases": [],
35
+ "id": "abort",
36
+ "pluginAlias": "@sanity/workflow-cli",
37
+ "pluginName": "@sanity/workflow-cli",
38
+ "pluginType": "core",
39
+ "strict": true,
40
+ "enableJsonFlag": false,
41
+ "isESM": true,
42
+ "relativePath": [
43
+ "dist",
44
+ "commands",
45
+ "abort.js"
46
+ ]
47
+ },
48
+ "deploy": {
49
+ "aliases": [],
50
+ "args": {},
51
+ "description": "Validate, diff, and deploy workflow definitions to the configured dataset.",
52
+ "examples": [
53
+ "<%= config.bin %> deploy",
54
+ "<%= config.bin %> deploy --check",
55
+ "<%= config.bin %> deploy --dry-run",
56
+ "<%= config.bin %> deploy --only productLaunch"
57
+ ],
58
+ "flags": {
59
+ "tag": {
60
+ "description": "Workflow environment tag (e.g. prod, test). Overrides WORKFLOW_TAG.",
61
+ "name": "tag",
62
+ "hasDynamicHelp": false,
63
+ "multiple": false,
64
+ "type": "option"
65
+ },
66
+ "dry-run": {
67
+ "description": "Validate + diff against the deployed version; do not write.",
68
+ "name": "dry-run",
69
+ "allowNo": false,
70
+ "type": "boolean"
71
+ },
72
+ "check": {
73
+ "description": "Validate definitions only; do not contact the dataset.",
74
+ "name": "check",
75
+ "allowNo": false,
76
+ "type": "boolean"
77
+ },
78
+ "only": {
79
+ "description": "Limit deploy/check/diff to a single workflow definition by name.",
80
+ "name": "only",
81
+ "hasDynamicHelp": false,
82
+ "multiple": false,
83
+ "type": "option"
84
+ }
85
+ },
86
+ "hasDynamicHelp": false,
87
+ "hiddenAliases": [],
88
+ "id": "deploy",
89
+ "pluginAlias": "@sanity/workflow-cli",
90
+ "pluginName": "@sanity/workflow-cli",
91
+ "pluginType": "core",
92
+ "strict": true,
93
+ "enableJsonFlag": false,
94
+ "isESM": true,
95
+ "relativePath": [
96
+ "dist",
97
+ "commands",
98
+ "deploy.js"
99
+ ]
100
+ },
101
+ "diagnose": {
102
+ "aliases": [],
103
+ "args": {
104
+ "instanceId": {
105
+ "description": "Workflow instance id.",
106
+ "name": "instanceId",
107
+ "required": true
108
+ }
109
+ },
110
+ "description": "Explain why a workflow instance is or isn't progressing, and what would unstick it.",
111
+ "examples": [
112
+ "<%= config.bin %> diagnose wf-instance.abc123",
113
+ "<%= config.bin %> diagnose wf-instance.abc123 --tag prod",
114
+ "<%= config.bin %> diagnose wf-instance.abc123 --json"
115
+ ],
116
+ "flags": {
117
+ "tag": {
118
+ "description": "Workflow environment tag (e.g. prod, test). Overrides WORKFLOW_TAG.",
119
+ "name": "tag",
120
+ "hasDynamicHelp": false,
121
+ "multiple": false,
122
+ "type": "option"
123
+ },
124
+ "json": {
125
+ "description": "Emit the structured diagnosis as JSON instead of rendered output.",
126
+ "name": "json",
127
+ "allowNo": false,
128
+ "type": "boolean"
129
+ }
130
+ },
131
+ "hasDynamicHelp": false,
132
+ "hiddenAliases": [],
133
+ "id": "diagnose",
134
+ "pluginAlias": "@sanity/workflow-cli",
135
+ "pluginName": "@sanity/workflow-cli",
136
+ "pluginType": "core",
137
+ "strict": true,
138
+ "enableJsonFlag": false,
139
+ "isESM": true,
140
+ "relativePath": [
141
+ "dist",
142
+ "commands",
143
+ "diagnose.js"
144
+ ]
145
+ },
146
+ "fire-action": {
147
+ "aliases": [],
148
+ "args": {
149
+ "instanceId": {
150
+ "description": "Workflow instance id.",
151
+ "name": "instanceId",
152
+ "required": true
153
+ }
154
+ },
155
+ "description": "Fire an action on an instance — act on a user's behalf to unstick a waiting task. Omit --action to list what can be fired.",
156
+ "examples": [
157
+ "<%= config.bin %> fire-action wf-instance.abc123",
158
+ "<%= config.bin %> fire-action wf-instance.abc123 --task approve --action approve",
159
+ "<%= config.bin %> fire-action wf-instance.abc123 --task approve --action approve --as user.xyz --as-role editor",
160
+ "<%= config.bin %> fire-action wf-instance.abc123 --task publish --action publish --param note=shipping"
161
+ ],
162
+ "flags": {
163
+ "tag": {
164
+ "description": "Workflow environment tag (e.g. prod, test). Overrides WORKFLOW_TAG.",
165
+ "name": "tag",
166
+ "hasDynamicHelp": false,
167
+ "multiple": false,
168
+ "type": "option"
169
+ },
170
+ "task": {
171
+ "description": "Task the action belongs to. Required to fire; omit --action to list.",
172
+ "name": "task",
173
+ "hasDynamicHelp": false,
174
+ "multiple": false,
175
+ "type": "option"
176
+ },
177
+ "action": {
178
+ "description": "Action to fire. Omit to list the actions available on the instance.",
179
+ "name": "action",
180
+ "hasDynamicHelp": false,
181
+ "multiple": false,
182
+ "type": "option"
183
+ },
184
+ "param": {
185
+ "description": "Action param as key=value (repeatable). Values are JSON-parsed, falling back to a string.",
186
+ "name": "param",
187
+ "default": [],
188
+ "hasDynamicHelp": false,
189
+ "multiple": true,
190
+ "type": "option"
191
+ },
192
+ "as": {
193
+ "description": "Attribute the fire to this Sanity user id (default: a workflow-cli system actor).",
194
+ "name": "as",
195
+ "hasDynamicHelp": false,
196
+ "multiple": false,
197
+ "type": "option"
198
+ },
199
+ "as-role": {
200
+ "description": "Role to attribute to the --as user (repeatable), so role-gated filters pass.",
201
+ "name": "as-role",
202
+ "default": [],
203
+ "hasDynamicHelp": false,
204
+ "multiple": true,
205
+ "type": "option"
206
+ },
207
+ "json": {
208
+ "description": "Emit structured JSON instead of rendered output.",
209
+ "name": "json",
210
+ "allowNo": false,
211
+ "type": "boolean"
212
+ }
213
+ },
214
+ "hasDynamicHelp": false,
215
+ "hiddenAliases": [],
216
+ "id": "fire-action",
217
+ "pluginAlias": "@sanity/workflow-cli",
218
+ "pluginName": "@sanity/workflow-cli",
219
+ "pluginType": "core",
220
+ "strict": true,
221
+ "enableJsonFlag": false,
222
+ "isESM": true,
223
+ "relativePath": [
224
+ "dist",
225
+ "commands",
226
+ "fire-action.js"
227
+ ]
228
+ },
229
+ "list": {
230
+ "aliases": [],
231
+ "args": {},
232
+ "description": "List workflow instances in the configured dataset.",
233
+ "examples": [
234
+ "<%= config.bin %> list",
235
+ "<%= config.bin %> list --in-flight",
236
+ "<%= config.bin %> list --workflow-id productLaunch"
237
+ ],
238
+ "flags": {
239
+ "in-flight": {
240
+ "description": "Only instances that have not completed.",
241
+ "name": "in-flight",
242
+ "allowNo": false,
243
+ "type": "boolean"
244
+ },
245
+ "failed": {
246
+ "description": "Only instances with at least one failed task.",
247
+ "name": "failed",
248
+ "allowNo": false,
249
+ "type": "boolean"
250
+ },
251
+ "workflow-id": {
252
+ "description": "Filter by workflow definition name.",
253
+ "name": "workflow-id",
254
+ "hasDynamicHelp": false,
255
+ "multiple": false,
256
+ "type": "option"
257
+ },
258
+ "subject": {
259
+ "description": "Filter by subject document id. (not yet implemented)",
260
+ "name": "subject",
261
+ "hasDynamicHelp": false,
262
+ "multiple": false,
263
+ "type": "option"
264
+ },
265
+ "limit": {
266
+ "description": "Maximum rows to return.",
267
+ "name": "limit",
268
+ "default": 50,
269
+ "hasDynamicHelp": false,
270
+ "multiple": false,
271
+ "type": "option"
272
+ }
273
+ },
274
+ "hasDynamicHelp": false,
275
+ "hiddenAliases": [],
276
+ "id": "list",
277
+ "pluginAlias": "@sanity/workflow-cli",
278
+ "pluginName": "@sanity/workflow-cli",
279
+ "pluginType": "core",
280
+ "strict": true,
281
+ "enableJsonFlag": false,
282
+ "isESM": true,
283
+ "relativePath": [
284
+ "dist",
285
+ "commands",
286
+ "list.js"
287
+ ]
288
+ },
289
+ "move-stage": {
290
+ "aliases": [],
291
+ "args": {
292
+ "instanceId": {
293
+ "description": "Workflow instance id to move.",
294
+ "name": "instanceId",
295
+ "required": true
296
+ }
297
+ },
298
+ "description": "Move an instance to a new stage. Guards + transition effects run as if the transition fired normally.",
299
+ "examples": [
300
+ "<%= config.bin %> move-stage wf-instance.abc123 --to ready",
301
+ "<%= config.bin %> move-stage wf-instance.abc123 --to ready --reason 'unblock for demo'"
302
+ ],
303
+ "flags": {
304
+ "tag": {
305
+ "description": "Workflow environment tag (e.g. prod, test). Overrides WORKFLOW_TAG.",
306
+ "name": "tag",
307
+ "hasDynamicHelp": false,
308
+ "multiple": false,
309
+ "type": "option"
310
+ },
311
+ "to": {
312
+ "description": "Target stage name.",
313
+ "name": "to",
314
+ "required": true,
315
+ "hasDynamicHelp": false,
316
+ "multiple": false,
317
+ "type": "option"
318
+ },
319
+ "reason": {
320
+ "description": "Free-text reason — recorded on the history entry for audit.",
321
+ "name": "reason",
322
+ "hasDynamicHelp": false,
323
+ "multiple": false,
324
+ "type": "option"
325
+ }
326
+ },
327
+ "hasDynamicHelp": false,
328
+ "hiddenAliases": [],
329
+ "id": "move-stage",
330
+ "pluginAlias": "@sanity/workflow-cli",
331
+ "pluginName": "@sanity/workflow-cli",
332
+ "pluginType": "core",
333
+ "strict": true,
334
+ "enableJsonFlag": false,
335
+ "isESM": true,
336
+ "relativePath": [
337
+ "dist",
338
+ "commands",
339
+ "move-stage.js"
340
+ ]
341
+ },
342
+ "retry-task": {
343
+ "aliases": [],
344
+ "args": {
345
+ "instanceId": {
346
+ "description": "Workflow instance id.",
347
+ "name": "instanceId",
348
+ "required": true
349
+ },
350
+ "task": {
351
+ "description": "Task name within the current stage.",
352
+ "name": "task",
353
+ "required": true
354
+ }
355
+ },
356
+ "description": "Re-invoke a failed task on an in-flight instance.",
357
+ "flags": {},
358
+ "hasDynamicHelp": false,
359
+ "hidden": true,
360
+ "hiddenAliases": [],
361
+ "id": "retry-task",
362
+ "pluginAlias": "@sanity/workflow-cli",
363
+ "pluginName": "@sanity/workflow-cli",
364
+ "pluginType": "core",
365
+ "strict": true,
366
+ "isESM": true,
367
+ "relativePath": [
368
+ "dist",
369
+ "commands",
370
+ "retry-task.js"
371
+ ]
372
+ },
373
+ "set-stage": {
374
+ "aliases": [],
375
+ "args": {
376
+ "instanceId": {
377
+ "description": "Workflow instance id.",
378
+ "name": "instanceId",
379
+ "required": true
380
+ }
381
+ },
382
+ "description": "Force-set an instance's current stage, bypassing guards + effects (manual override).",
383
+ "flags": {
384
+ "to": {
385
+ "description": "Target stage name.",
386
+ "name": "to",
387
+ "required": true,
388
+ "hasDynamicHelp": false,
389
+ "multiple": false,
390
+ "type": "option"
391
+ },
392
+ "reason": {
393
+ "description": "Reason for the manual override.",
394
+ "name": "reason",
395
+ "hasDynamicHelp": false,
396
+ "multiple": false,
397
+ "type": "option"
398
+ }
399
+ },
400
+ "hasDynamicHelp": false,
401
+ "hidden": true,
402
+ "hiddenAliases": [],
403
+ "id": "set-stage",
404
+ "pluginAlias": "@sanity/workflow-cli",
405
+ "pluginName": "@sanity/workflow-cli",
406
+ "pluginType": "core",
407
+ "strict": true,
408
+ "isESM": true,
409
+ "relativePath": [
410
+ "dist",
411
+ "commands",
412
+ "set-stage.js"
413
+ ]
414
+ },
415
+ "show": {
416
+ "aliases": [],
417
+ "args": {
418
+ "instanceId": {
419
+ "description": "Workflow instance document id.",
420
+ "name": "instanceId",
421
+ "required": true
422
+ }
423
+ },
424
+ "description": "Show the state, tasks, and effects of a workflow instance.",
425
+ "examples": [
426
+ "<%= config.bin %> show wf-instance.abc123",
427
+ "<%= config.bin %> show wf-instance.abc123 --include history"
428
+ ],
429
+ "flags": {
430
+ "include": {
431
+ "description": "Optional sections to include in output.",
432
+ "name": "include",
433
+ "default": [],
434
+ "hasDynamicHelp": false,
435
+ "multiple": true,
436
+ "options": [
437
+ "history"
438
+ ],
439
+ "type": "option"
440
+ }
441
+ },
442
+ "hasDynamicHelp": false,
443
+ "hiddenAliases": [],
444
+ "id": "show",
445
+ "pluginAlias": "@sanity/workflow-cli",
446
+ "pluginName": "@sanity/workflow-cli",
447
+ "pluginType": "core",
448
+ "strict": true,
449
+ "enableJsonFlag": false,
450
+ "isESM": true,
451
+ "relativePath": [
452
+ "dist",
453
+ "commands",
454
+ "show.js"
455
+ ]
456
+ },
457
+ "tail": {
458
+ "aliases": [],
459
+ "args": {
460
+ "instanceId": {
461
+ "description": "Workflow instance id to tail.",
462
+ "name": "instanceId",
463
+ "required": true
464
+ }
465
+ },
466
+ "description": "Stream new history entries on a workflow instance as they land in the dataset.",
467
+ "examples": [
468
+ "<%= config.bin %> tail wf-instance.abc123"
469
+ ],
470
+ "flags": {},
471
+ "hasDynamicHelp": false,
472
+ "hiddenAliases": [],
473
+ "id": "tail",
474
+ "pluginAlias": "@sanity/workflow-cli",
475
+ "pluginName": "@sanity/workflow-cli",
476
+ "pluginType": "core",
477
+ "strict": true,
478
+ "enableJsonFlag": false,
479
+ "isESM": true,
480
+ "relativePath": [
481
+ "dist",
482
+ "commands",
483
+ "tail.js"
484
+ ]
485
+ },
486
+ "definition:delete": {
487
+ "aliases": [],
488
+ "args": {
489
+ "name": {
490
+ "description": "Workflow definition name.",
491
+ "name": "name",
492
+ "required": true
493
+ }
494
+ },
495
+ "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.",
496
+ "examples": [
497
+ "<%= config.bin %> definition delete my-workflow",
498
+ "<%= config.bin %> definition delete my-workflow --version 2",
499
+ "<%= config.bin %> definition delete my-workflow --cascade --reason 'workflow retired'"
500
+ ],
501
+ "flags": {
502
+ "tag": {
503
+ "description": "Workflow environment tag (e.g. prod, test). Overrides WORKFLOW_TAG.",
504
+ "name": "tag",
505
+ "hasDynamicHelp": false,
506
+ "multiple": false,
507
+ "type": "option"
508
+ },
509
+ "version": {
510
+ "description": "Delete only this deployed version (default: every version).",
511
+ "name": "version",
512
+ "hasDynamicHelp": false,
513
+ "multiple": false,
514
+ "type": "option"
515
+ },
516
+ "cascade": {
517
+ "description": "Abort every non-terminal instance pinned to the targeted versions, then delete.",
518
+ "name": "cascade",
519
+ "allowNo": false,
520
+ "type": "boolean"
521
+ },
522
+ "reason": {
523
+ "description": "Free-text reason — recorded on each cascade-abort history entry.",
524
+ "name": "reason",
525
+ "hasDynamicHelp": false,
526
+ "multiple": false,
527
+ "type": "option"
528
+ }
529
+ },
530
+ "hasDynamicHelp": false,
531
+ "hiddenAliases": [],
532
+ "id": "definition:delete",
533
+ "pluginAlias": "@sanity/workflow-cli",
534
+ "pluginName": "@sanity/workflow-cli",
535
+ "pluginType": "core",
536
+ "strict": true,
537
+ "enableJsonFlag": false,
538
+ "isESM": true,
539
+ "relativePath": [
540
+ "dist",
541
+ "commands",
542
+ "definition",
543
+ "delete.js"
544
+ ]
545
+ },
546
+ "definition:diff": {
547
+ "aliases": [],
548
+ "args": {
549
+ "definition": {
550
+ "description": "Workflow definition name.",
551
+ "name": "definition",
552
+ "required": true
553
+ }
554
+ },
555
+ "description": "Diff an in-code definition against the deployed version (latest by default).",
556
+ "examples": [
557
+ "<%= config.bin %> definition diff productLaunch",
558
+ "<%= config.bin %> definition diff productLaunch --version 2"
559
+ ],
560
+ "flags": {
561
+ "tag": {
562
+ "description": "Workflow environment tag (e.g. prod, test). Overrides WORKFLOW_TAG.",
563
+ "name": "tag",
564
+ "hasDynamicHelp": false,
565
+ "multiple": false,
566
+ "type": "option"
567
+ },
568
+ "version": {
569
+ "description": "Deployed version to diff against (default: latest).",
570
+ "name": "version",
571
+ "hasDynamicHelp": false,
572
+ "multiple": false,
573
+ "type": "option"
574
+ }
575
+ },
576
+ "hasDynamicHelp": false,
577
+ "hiddenAliases": [],
578
+ "id": "definition:diff",
579
+ "pluginAlias": "@sanity/workflow-cli",
580
+ "pluginName": "@sanity/workflow-cli",
581
+ "pluginType": "core",
582
+ "strict": true,
583
+ "enableJsonFlag": false,
584
+ "isESM": true,
585
+ "relativePath": [
586
+ "dist",
587
+ "commands",
588
+ "definition",
589
+ "diff.js"
590
+ ]
591
+ },
592
+ "definition:list": {
593
+ "aliases": [],
594
+ "args": {},
595
+ "description": "List deployed workflow definitions.",
596
+ "examples": [
597
+ "<%= config.bin %> definition list",
598
+ "<%= config.bin %> definition list --tag prod"
599
+ ],
600
+ "flags": {
601
+ "tag": {
602
+ "description": "Workflow environment tag (e.g. prod, test). Overrides WORKFLOW_TAG.",
603
+ "name": "tag",
604
+ "hasDynamicHelp": false,
605
+ "multiple": false,
606
+ "type": "option"
607
+ },
608
+ "limit": {
609
+ "description": "The maximum number of definitions to return.",
610
+ "name": "limit",
611
+ "default": 100,
612
+ "hasDynamicHelp": false,
613
+ "multiple": false,
614
+ "type": "option"
615
+ },
616
+ "workflow-id": {
617
+ "description": "Filter to a single workflow definition name (e.g. product-launch)",
618
+ "name": "workflow-id",
619
+ "hasDynamicHelp": false,
620
+ "multiple": false,
621
+ "type": "option"
622
+ }
623
+ },
624
+ "hasDynamicHelp": false,
625
+ "hiddenAliases": [],
626
+ "id": "definition:list",
627
+ "pluginAlias": "@sanity/workflow-cli",
628
+ "pluginName": "@sanity/workflow-cli",
629
+ "pluginType": "core",
630
+ "strict": true,
631
+ "enableJsonFlag": false,
632
+ "isESM": true,
633
+ "relativePath": [
634
+ "dist",
635
+ "commands",
636
+ "definition",
637
+ "list.js"
638
+ ]
639
+ },
640
+ "definition:show": {
641
+ "aliases": [],
642
+ "args": {
643
+ "name": {
644
+ "description": "Workflow definition name.",
645
+ "name": "name",
646
+ "required": true
647
+ }
648
+ },
649
+ "description": "Show a deployed workflow definition.",
650
+ "flags": {
651
+ "tag": {
652
+ "description": "Workflow environment tag (e.g. prod, test). Overrides WORKFLOW_TAG.",
653
+ "name": "tag",
654
+ "hasDynamicHelp": false,
655
+ "multiple": false,
656
+ "type": "option"
657
+ },
658
+ "version": {
659
+ "description": "Specific version (default: latest).",
660
+ "name": "version",
661
+ "hasDynamicHelp": false,
662
+ "multiple": false,
663
+ "type": "option"
664
+ }
665
+ },
666
+ "hasDynamicHelp": false,
667
+ "hiddenAliases": [],
668
+ "id": "definition:show",
669
+ "pluginAlias": "@sanity/workflow-cli",
670
+ "pluginName": "@sanity/workflow-cli",
671
+ "pluginType": "core",
672
+ "strict": true,
673
+ "enableJsonFlag": false,
674
+ "isESM": true,
675
+ "relativePath": [
676
+ "dist",
677
+ "commands",
678
+ "definition",
679
+ "show.js"
680
+ ]
681
+ }
682
+ },
683
+ "version": "0.5.1"
684
+ }