@pixelvibing/cli 0.21.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.
@@ -600,6 +600,8 @@ function createWebApi(fetcher = (input, init2) => fetch(input, init2), base = AP
600
600
  /** Start a generation for a project, answering its job's id, or `TooFewCredits` (R3.2, R3.4). */
601
601
  generate: (kind, body) => paying2(async () => (await json2(`/generations/${id(kind)}`, { method: "POST", body })).id),
602
602
  job: (jobId) => json2(`/jobs/${id(jobId)}`),
603
+ /** Cancel a job no worker has taken, answering it and the credits that came back; 409 once one has (specs/generation-jobs/ R5). */
604
+ cancelJob: (jobId) => json2(`/jobs/${id(jobId)}/cancel`, { method: "POST" }),
603
605
  jobs: (projectId, before = null) => json2(`/jobs?project=${id(projectId)}${before === null ? "" : `&before=${id(before)}`}`),
604
606
  feedback: async (jobId, verdict, reason) => {
605
607
  await call(`/jobs/${id(jobId)}/feedback`, { method: "PUT", body: reason.trim().length > 0 ? { verdict, reason: reason.trim() } : { verdict } });
@@ -4585,7 +4587,7 @@ const move = {
4585
4587
  );
4586
4588
  }
4587
4589
  };
4588
- const version = "0.21.0";
4590
+ const version = "0.22.0";
4589
4591
  const manifest = {
4590
4592
  version
4591
4593
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixelvibing/cli",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "description": "PixelVibing: pixel art game assets from the command line, and the Skills that teach coding assistants to make them.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://pixelvibing.com",