@pixelvibing/cli 0.57.1 → 0.58.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.
@@ -447,9 +447,10 @@ function createWebApi(fetcher = (input, init2) => fetch(input, init2), base = AP
447
447
  throw error;
448
448
  }
449
449
  };
450
+ const address = new URL(base, globalThis.location?.origin ?? "http://localhost").href.replace(/\/+$/, "");
450
451
  return {
451
452
  /** The API's own address, whole, for the MCP server's next to it (specs/web-app/ R2.14). */
452
- address: new URL(base, globalThis.location?.origin ?? "http://localhost").href.replace(/\/+$/, ""),
453
+ address,
453
454
  /** The project's own token, to the signed-in person alone (specs/accounts-and-sign-in/ R3.12). */
454
455
  projectToken: (projectId) => json2(`/projects/${id(projectId)}/token`),
455
456
  projects: (before = null) => json2(`/projects${before === null ? "" : `?before=${id(before)}`}`),
@@ -524,6 +525,8 @@ function createWebApi(fetcher = (input, init2) => fetch(input, init2), base = AP
524
525
  redo: (jobId) => paying2(async () => (await json2(`/jobs/${id(jobId)}/redo`, { method: "POST" })).id),
525
526
  /** Cancel a job no worker has taken, answering it and the credits that came back; 409 once one has (specs/generation-jobs/ R5). */
526
527
  cancelJob: (jobId) => json2(`/jobs/${id(jobId)}/cancel`, { method: "POST" }),
528
+ /** The address of a project's job changes, as server-sent events (specs/live-generations/ R1.3). */
529
+ jobEventsUrl: (projectId) => `${address}/jobs/events?project=${id(projectId)}`,
527
530
  jobs: (projectId, before = null, kinds = null) => json2(
528
531
  `/jobs?project=${id(projectId)}${before === null ? "" : `&before=${id(before)}`}${kinds === null ? "" : `&kinds=${kinds.map(id).join(",")}`}`
529
532
  ),
@@ -7374,7 +7377,7 @@ function terminalOf(streams) {
7374
7377
  step: (title, at = "step") => drawStep(streams.stderr, title, at)
7375
7378
  };
7376
7379
  }
7377
- const version = "0.57.1";
7380
+ const version = "0.58.0";
7378
7381
  const manifest = {
7379
7382
  version
7380
7383
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixelvibing/cli",
3
- "version": "0.57.1",
3
+ "version": "0.58.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",