@wavespeed/cli 0.4.5 → 0.4.6

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.
@@ -35,7 +35,7 @@ export function registerHistory(program) {
35
35
  .option('--page <n>', 'Page number', '1')
36
36
  .option('--limit <n>', 'Page size (1-100)', '20')
37
37
  .option('--model <id>', 'Filter by model ID')
38
- .option('--status <s>', 'Filter by status (created, processing, completed, failed, cancelled, timeout)')
38
+ .option('--status <s>', 'Filter by status (created, processing, completed, failed, cancelled, timeout, deleted)')
39
39
  .option('--since <time>', 'Predictions created after this time (ISO or YYYY-MM-DD)')
40
40
  .option('--until <time>', 'Predictions created before this time (ISO or YYYY-MM-DD)')
41
41
  .option('--json', 'Emit JSON: {page, items: [...]}')
package/dist/lib/api.js CHANGED
@@ -153,6 +153,7 @@ export const PREDICTION_STATUSES = [
153
153
  'failed',
154
154
  'cancelled',
155
155
  'timeout',
156
+ 'deleted',
156
157
  ];
157
158
  /**
158
159
  * Submit a prediction WITHOUT waiting for it. Split from polling so the
@@ -176,7 +177,7 @@ export async function waitForPrediction(id, opts = {}) {
176
177
  opts.onTick?.(item.status);
177
178
  if (item.status === 'completed')
178
179
  return item;
179
- if (item.status === 'failed' || item.status === 'cancelled' || item.status === 'timeout') {
180
+ if (item.status === 'failed' || item.status === 'cancelled' || item.status === 'timeout' || item.status === 'deleted') {
180
181
  throw new Error(`Prediction ${item.status}${item.error ? `: ${item.error}` : ''} (task_id: ${id})`);
181
182
  }
182
183
  if (opts.signal?.cancelled)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavespeed/cli",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "description": "WaveSpeed CLI \u2014 one command to run any WaveSpeed AI model from your terminal.",
5
5
  "publishConfig": {
6
6
  "access": "public"