@workflow/cli 5.2.0 → 5.3.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.
@@ -101,18 +101,6 @@
101
101
  "allowNo": false,
102
102
  "type": "boolean"
103
103
  },
104
- "cursor": {
105
- "description": "pagination cursor for list commands",
106
- "helpGroup": "Filtering",
107
- "helpLabel": "--cursor",
108
- "name": "cursor",
109
- "required": false,
110
- "default": "",
111
- "hasDynamicHelp": false,
112
- "helpValue": "CURSOR",
113
- "multiple": false,
114
- "type": "option"
115
- },
116
104
  "backend": {
117
105
  "char": "b",
118
106
  "description": "backend to inspect",
@@ -204,148 +192,229 @@
204
192
  ],
205
193
  "type": "option"
206
194
  },
207
- "web": {
208
- "char": "w",
209
- "description": "Open the web UI instead of displaying in terminal",
210
- "helpGroup": "Output",
211
- "helpLabel": "-w, --web",
212
- "name": "web",
195
+ "status": {
196
+ "description": "Filter runs by status for bulk cancel (pending or running)",
197
+ "helpGroup": "Bulk Cancel",
198
+ "helpLabel": "--status",
199
+ "name": "status",
213
200
  "required": false,
214
- "allowNo": false,
215
- "type": "boolean"
201
+ "hasDynamicHelp": false,
202
+ "multiple": false,
203
+ "options": [
204
+ "pending",
205
+ "running"
206
+ ],
207
+ "type": "option"
216
208
  },
217
- "webPort": {
218
- "description": "Port to use when launching the web UI (default: 3456)",
219
- "env": "WORKFLOW_WEB_PORT",
220
- "helpGroup": "Output",
221
- "helpLabel": "--webPort",
222
- "name": "webPort",
209
+ "workflowName": {
210
+ "char": "n",
211
+ "description": "Filter runs by workflow name for bulk cancel",
212
+ "helpGroup": "Bulk Cancel",
213
+ "helpLabel": "-n, --workflowName",
214
+ "name": "workflowName",
223
215
  "required": false,
224
- "default": 3456,
225
216
  "hasDynamicHelp": false,
226
- "helpValue": "WEB_PORT",
227
217
  "multiple": false,
228
218
  "type": "option"
229
219
  },
230
- "noBrowser": {
231
- "description": "Disable automatic browser opening when launching web UI",
232
- "env": "WORKFLOW_DISABLE_BROWSER_OPEN",
233
- "helpGroup": "Output",
234
- "helpLabel": "--noBrowser",
235
- "name": "noBrowser",
220
+ "limit": {
221
+ "description": "Max runs to cancel in bulk mode (1-100)",
222
+ "helpGroup": "Bulk Cancel",
223
+ "helpLabel": "--limit",
224
+ "name": "limit",
225
+ "required": false,
226
+ "default": 50,
227
+ "hasDynamicHelp": false,
228
+ "helpValue": "NUMBER",
229
+ "multiple": false,
230
+ "type": "option"
231
+ },
232
+ "confirm": {
233
+ "char": "y",
234
+ "description": "Skip interactive confirmation prompt",
235
+ "helpGroup": "Bulk Cancel",
236
+ "helpLabel": "-y, --confirm",
237
+ "name": "confirm",
236
238
  "required": false,
237
239
  "allowNo": false,
238
240
  "type": "boolean"
239
- },
240
- "localUi": {
241
- "description": "Use local web UI instead of Vercel dashboard (when backend is vercel)",
242
- "env": "WORKFLOW_LOCAL_UI",
241
+ }
242
+ },
243
+ "hasDynamicHelp": false,
244
+ "hiddenAliases": [],
245
+ "id": "cancel",
246
+ "pluginAlias": "@workflow/cli",
247
+ "pluginName": "@workflow/cli",
248
+ "pluginType": "core",
249
+ "strict": true,
250
+ "enableJsonFlag": true,
251
+ "isESM": true,
252
+ "relativePath": [
253
+ "dist",
254
+ "commands",
255
+ "cancel.js"
256
+ ]
257
+ },
258
+ "delete": {
259
+ "aliases": [],
260
+ "args": {
261
+ "runId": {
262
+ "description": "IDs of the runs whose data to delete, or - to read them from stdin (one per line or whitespace-separated). Sent in batches of 100. Runs that have not finished are skipped.",
263
+ "name": "runId",
264
+ "required": true
265
+ }
266
+ },
267
+ "description": "Delete the stored data of finished workflow runs (inputs, outputs, streams, and hook payloads). Metadata is not deleted: the runs, steps, events and hooks stay listed with their IDs, names, statuses, timestamps and attributes. This cannot be undone.",
268
+ "examples": [
269
+ "$ workflow delete <runId>",
270
+ "$ workflow delete <runId> <runId> <runId>",
271
+ "$ workflow delete <runId> -y --backend vercel",
272
+ "$ cat run-ids.txt | workflow delete - -y --strict"
273
+ ],
274
+ "flags": {
275
+ "json": {
276
+ "char": "j",
277
+ "description": "output JSON instead of human-readable tables/streams",
243
278
  "helpGroup": "Output",
244
- "helpLabel": "--localUi",
245
- "name": "localUi",
279
+ "helpLabel": "-j, --json",
280
+ "name": "json",
246
281
  "required": false,
247
282
  "allowNo": false,
248
283
  "type": "boolean"
249
284
  },
250
- "standalone": {
251
- "description": "Always start the standalone web UI, even if an embedded dashboard (e.g. /_workflow) is already running",
252
- "env": "WORKFLOW_STANDALONE_UI",
285
+ "verbose": {
286
+ "char": "v",
287
+ "description": "Verbose output",
288
+ "env": "DEBUG",
253
289
  "helpGroup": "Output",
254
- "helpLabel": "--standalone",
255
- "name": "standalone",
290
+ "helpLabel": "-v, --verbose",
291
+ "name": "verbose",
256
292
  "required": false,
257
293
  "allowNo": false,
258
294
  "type": "boolean"
259
295
  },
260
- "sort": {
261
- "description": "sort order for list commands",
262
- "helpGroup": "Filtering",
263
- "helpLabel": "--sort",
264
- "name": "sort",
296
+ "backend": {
297
+ "char": "b",
298
+ "description": "backend to inspect",
299
+ "env": "WORKFLOW_TARGET_WORLD",
300
+ "helpGroup": "Target",
301
+ "helpLabel": "-b, --backend",
302
+ "name": "backend",
265
303
  "required": false,
304
+ "default": "local",
266
305
  "hasDynamicHelp": false,
267
306
  "helpValue": [
268
- "asc",
269
- "desc"
307
+ "local",
308
+ "vercel",
309
+ "<your-package-name>"
270
310
  ],
271
311
  "multiple": false,
272
- "options": [
273
- "asc",
274
- "desc"
275
- ],
276
312
  "type": "option"
277
313
  },
278
- "limit": {
279
- "description": "Max runs to cancel in bulk mode (1-100)",
280
- "helpGroup": "Bulk Cancel",
281
- "helpLabel": "--limit",
282
- "name": "limit",
314
+ "authToken": {
315
+ "char": "a",
316
+ "dependsOn": [
317
+ "backend"
318
+ ],
319
+ "description": "Authentication token to be passed to the backend. If not provided and the backend is vercel, will fall back to the token generated by `vc login`.",
320
+ "env": "WORKFLOW_VERCEL_AUTH_TOKEN",
321
+ "helpGroup": "Target",
322
+ "helpLabel": "-a, --authToken",
323
+ "name": "authToken",
283
324
  "required": false,
284
- "default": 50,
325
+ "default": "",
285
326
  "hasDynamicHelp": false,
286
- "helpValue": "NUMBER",
327
+ "helpValue": "TOKEN",
287
328
  "multiple": false,
288
329
  "type": "option"
289
330
  },
290
- "interactive": {
291
- "char": "i",
292
- "description": "Enable interactive pagination with keyboard controls",
293
- "helpGroup": "Output",
294
- "helpLabel": "-i, --interactive",
295
- "name": "interactive",
331
+ "project": {
332
+ "dependsOn": [
333
+ "backend"
334
+ ],
335
+ "description": "If backend is vercel, the vercel project to authenticate against",
336
+ "env": "WORKFLOW_VERCEL_PROJECT",
337
+ "helpGroup": "Target",
338
+ "helpLabel": "--project",
339
+ "name": "project",
296
340
  "required": false,
297
- "allowNo": false,
298
- "type": "boolean"
341
+ "default": "",
342
+ "hasDynamicHelp": false,
343
+ "helpValue": "PROJECT",
344
+ "multiple": false,
345
+ "type": "option"
299
346
  },
300
- "status": {
301
- "description": "Filter runs by status for bulk cancel (pending or running)",
302
- "helpGroup": "Bulk Cancel",
303
- "helpLabel": "--status",
304
- "name": "status",
347
+ "team": {
348
+ "dependsOn": [
349
+ "backend"
350
+ ],
351
+ "description": "If backend is vercel, the vercel team to authenticate against",
352
+ "env": "WORKFLOW_VERCEL_TEAM",
353
+ "helpGroup": "Target",
354
+ "helpLabel": "--team",
355
+ "name": "team",
305
356
  "required": false,
357
+ "default": "",
306
358
  "hasDynamicHelp": false,
359
+ "helpValue": "TEAM",
307
360
  "multiple": false,
308
- "options": [
309
- "pending",
310
- "running"
311
- ],
312
361
  "type": "option"
313
362
  },
314
- "workflowName": {
315
- "char": "n",
316
- "description": "Filter runs by workflow name for bulk cancel",
317
- "helpGroup": "Bulk Cancel",
318
- "helpLabel": "-n, --workflowName",
319
- "name": "workflowName",
363
+ "env": {
364
+ "char": "e",
365
+ "dependsOn": [
366
+ "backend"
367
+ ],
368
+ "description": "If backend is vercel, the vercel environment to use",
369
+ "env": "WORKFLOW_VERCEL_ENV",
370
+ "helpGroup": "Target",
371
+ "helpLabel": "-e, --env",
372
+ "name": "env",
320
373
  "required": false,
374
+ "default": "production",
321
375
  "hasDynamicHelp": false,
376
+ "helpValue": [
377
+ "production",
378
+ "preview"
379
+ ],
322
380
  "multiple": false,
381
+ "options": [
382
+ "production",
383
+ "preview"
384
+ ],
323
385
  "type": "option"
324
386
  },
325
387
  "confirm": {
326
388
  "char": "y",
327
- "description": "Skip interactive confirmation prompt",
328
- "helpGroup": "Bulk Cancel",
389
+ "description": "Skip the interactive confirmation prompt",
329
390
  "helpLabel": "-y, --confirm",
330
391
  "name": "confirm",
331
392
  "required": false,
332
393
  "allowNo": false,
333
394
  "type": "boolean"
395
+ },
396
+ "strict": {
397
+ "description": "Exit with code 1 unless the data of every run is gone: also when a run is not found or has not finished, not only when one fails",
398
+ "helpLabel": "--strict",
399
+ "name": "strict",
400
+ "required": false,
401
+ "allowNo": false,
402
+ "type": "boolean"
334
403
  }
335
404
  },
336
405
  "hasDynamicHelp": false,
337
406
  "hiddenAliases": [],
338
- "id": "cancel",
407
+ "id": "delete",
339
408
  "pluginAlias": "@workflow/cli",
340
409
  "pluginName": "@workflow/cli",
341
410
  "pluginType": "core",
342
- "strict": true,
411
+ "strict": false,
343
412
  "enableJsonFlag": true,
344
413
  "isESM": true,
345
414
  "relativePath": [
346
415
  "dist",
347
416
  "commands",
348
- "cancel.js"
417
+ "delete.js"
349
418
  ]
350
419
  },
351
420
  "dev": {
@@ -1178,18 +1247,6 @@
1178
1247
  "allowNo": false,
1179
1248
  "type": "boolean"
1180
1249
  },
1181
- "cursor": {
1182
- "description": "pagination cursor for list commands",
1183
- "helpGroup": "Filtering",
1184
- "helpLabel": "--cursor",
1185
- "name": "cursor",
1186
- "required": false,
1187
- "default": "",
1188
- "hasDynamicHelp": false,
1189
- "helpValue": "CURSOR",
1190
- "multiple": false,
1191
- "type": "option"
1192
- },
1193
1250
  "backend": {
1194
1251
  "char": "b",
1195
1252
  "description": "backend to inspect",
@@ -1281,99 +1338,6 @@
1281
1338
  ],
1282
1339
  "type": "option"
1283
1340
  },
1284
- "web": {
1285
- "char": "w",
1286
- "description": "Open the web UI instead of displaying in terminal",
1287
- "helpGroup": "Output",
1288
- "helpLabel": "-w, --web",
1289
- "name": "web",
1290
- "required": false,
1291
- "allowNo": false,
1292
- "type": "boolean"
1293
- },
1294
- "webPort": {
1295
- "description": "Port to use when launching the web UI (default: 3456)",
1296
- "env": "WORKFLOW_WEB_PORT",
1297
- "helpGroup": "Output",
1298
- "helpLabel": "--webPort",
1299
- "name": "webPort",
1300
- "required": false,
1301
- "default": 3456,
1302
- "hasDynamicHelp": false,
1303
- "helpValue": "WEB_PORT",
1304
- "multiple": false,
1305
- "type": "option"
1306
- },
1307
- "noBrowser": {
1308
- "description": "Disable automatic browser opening when launching web UI",
1309
- "env": "WORKFLOW_DISABLE_BROWSER_OPEN",
1310
- "helpGroup": "Output",
1311
- "helpLabel": "--noBrowser",
1312
- "name": "noBrowser",
1313
- "required": false,
1314
- "allowNo": false,
1315
- "type": "boolean"
1316
- },
1317
- "localUi": {
1318
- "description": "Use local web UI instead of Vercel dashboard (when backend is vercel)",
1319
- "env": "WORKFLOW_LOCAL_UI",
1320
- "helpGroup": "Output",
1321
- "helpLabel": "--localUi",
1322
- "name": "localUi",
1323
- "required": false,
1324
- "allowNo": false,
1325
- "type": "boolean"
1326
- },
1327
- "standalone": {
1328
- "description": "Always start the standalone web UI, even if an embedded dashboard (e.g. /_workflow) is already running",
1329
- "env": "WORKFLOW_STANDALONE_UI",
1330
- "helpGroup": "Output",
1331
- "helpLabel": "--standalone",
1332
- "name": "standalone",
1333
- "required": false,
1334
- "allowNo": false,
1335
- "type": "boolean"
1336
- },
1337
- "sort": {
1338
- "description": "sort order for list commands",
1339
- "helpGroup": "Filtering",
1340
- "helpLabel": "--sort",
1341
- "name": "sort",
1342
- "required": false,
1343
- "hasDynamicHelp": false,
1344
- "helpValue": [
1345
- "asc",
1346
- "desc"
1347
- ],
1348
- "multiple": false,
1349
- "options": [
1350
- "asc",
1351
- "desc"
1352
- ],
1353
- "type": "option"
1354
- },
1355
- "limit": {
1356
- "description": "number of items to return per page",
1357
- "helpGroup": "Filtering",
1358
- "helpLabel": "--limit",
1359
- "name": "limit",
1360
- "required": false,
1361
- "default": 20,
1362
- "hasDynamicHelp": false,
1363
- "helpValue": "NUMBER",
1364
- "multiple": false,
1365
- "type": "option"
1366
- },
1367
- "interactive": {
1368
- "char": "i",
1369
- "description": "Enable interactive pagination with keyboard controls",
1370
- "helpGroup": "Output",
1371
- "helpLabel": "-i, --interactive",
1372
- "name": "interactive",
1373
- "required": false,
1374
- "allowNo": false,
1375
- "type": "boolean"
1376
- },
1377
1341
  "deployment": {
1378
1342
  "description": "Deployment ID to start the run on, or `latest` for the newest ready deployment in --env.\nDefaults to `latest`, or to the source run's deployment when given a run ID.",
1379
1343
  "helpGroup": "Target",
@@ -1786,5 +1750,5 @@
1786
1750
  ]
1787
1751
  }
1788
1752
  },
1789
- "version": "5.2.0"
1753
+ "version": "5.3.1"
1790
1754
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workflow/cli",
3
- "version": "5.2.0",
3
+ "version": "5.3.1",
4
4
  "description": "Command-line interface for Workflow SDK",
5
5
  "type": "module",
6
6
  "bin": {
@@ -51,14 +51,14 @@
51
51
  "@oclif/core": "4.11.4",
52
52
  "@oclif/plugin-help": "6.2.37",
53
53
  "@vercel/cli-auth": "0.0.1",
54
- "@workflow/builders": "5.1.2",
55
- "@workflow/core": "5.6.1",
56
- "@workflow/errors": "5.1.3",
54
+ "@workflow/builders": "5.1.4",
55
+ "@workflow/core": "5.7.1",
56
+ "@workflow/errors": "5.1.5",
57
57
  "@workflow/utils": "5.1.1",
58
- "@workflow/web": "5.2.0",
59
- "@workflow/world": "5.2.2",
60
- "@workflow/world-local": "5.4.1",
61
- "@workflow/world-vercel": "5.6.1",
58
+ "@workflow/web": "5.3.1",
59
+ "@workflow/world": "5.3.0",
60
+ "@workflow/world-local": "5.5.1",
61
+ "@workflow/world-vercel": "5.7.1",
62
62
  "boxen": "8.0.1",
63
63
  "chalk": "5.6.2",
64
64
  "dotenv": "^17.4.2",