@pixelvibing/cli 0.32.0 → 0.34.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.
@@ -605,12 +605,16 @@ function createWebApi(fetcher = (input, init2) => fetch(input, init2), base = AP
605
605
  imageUrl: (imageId) => `${base}/images/${id(imageId)}`,
606
606
  /** A kept image's PNG bytes, for the editor to land (specs/desktop-app/ R3.1). */
607
607
  imageBytes: async (imageId) => new Uint8Array(await (await call(`/images/${id(imageId)}`)).arrayBuffer()),
608
+ // A sound a job made, as MP3 bytes, to its account alone (specs/audio-generation/ R1.5).
609
+ soundBytes: async (soundId) => new Uint8Array(await (await call(`/sounds/${id(soundId)}`)).arrayBuffer()),
608
610
  /** Start a generation for a project, answering its job's id, or `TooFewCredits` (R3.2, R3.4). */
609
611
  generate: (kind, body) => paying2(async () => (await json2(`/generations/${id(kind)}`, { method: "POST", body })).id),
610
612
  job: (jobId) => json2(`/jobs/${id(jobId)}`),
611
613
  /** Cancel a job no worker has taken, answering it and the credits that came back; 409 once one has (specs/generation-jobs/ R5). */
612
614
  cancelJob: (jobId) => json2(`/jobs/${id(jobId)}/cancel`, { method: "POST" }),
613
- jobs: (projectId, before = null) => json2(`/jobs?project=${id(projectId)}${before === null ? "" : `&before=${id(before)}`}`),
615
+ jobs: (projectId, before = null, kinds = null) => json2(
616
+ `/jobs?project=${id(projectId)}${before === null ? "" : `&before=${id(before)}`}${kinds === null ? "" : `&kinds=${kinds.map(id).join(",")}`}`
617
+ ),
614
618
  feedback: async (jobId, verdict, reason) => {
615
619
  await call(`/jobs/${id(jobId)}/feedback`, { method: "PUT", body: reason.trim().length > 0 ? { verdict, reason: reason.trim() } : { verdict } });
616
620
  },
@@ -4597,7 +4601,7 @@ const move = {
4597
4601
  );
4598
4602
  }
4599
4603
  };
4600
- const version = "0.32.0";
4604
+ const version = "0.34.0";
4601
4605
  const manifest = {
4602
4606
  version
4603
4607
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixelvibing/cli",
3
- "version": "0.32.0",
3
+ "version": "0.34.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",