@unisonlabs/sixminute-admin 0.1.1388-next → 0.1.1389

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.
@@ -15,13 +15,12 @@ var __export = (target, all) => {
15
15
  };
16
16
 
17
17
  // tools/admin/src/main.ts
18
- import { spawn } from "node:child_process";
19
- import { readFileSync as readFileSync5 } from "node:fs";
18
+ import { spawn, spawnSync } from "node:child_process";
20
19
  import { homedir } from "node:os";
21
20
  import { fileURLToPath } from "node:url";
22
21
 
23
22
  // tools/admin/src/build-info.ts
24
- var BUILT = { version: "0.1.1388-next", commit: "548d793b1ec1196884c16a9216d4b1615ea19cec", surface: "fd82872ec0f64638" };
23
+ var BUILT = { version: "0.1.1389", commit: "5b86c24370bd4b7f0b6eddec80b9699d332a0468", surface: "fd82872ec0f64638" };
25
24
 
26
25
  // tools/admin/src/run.ts
27
26
  import { readFileSync as readFileSync4, writeFileSync as writeFileSync2 } from "node:fs";
@@ -7473,7 +7472,6 @@ var COMPAT_MARKERS = [
7473
7472
  "packages/contracts/test/t36-contracts.test.ts",
7474
7473
  "packages/contracts/test/vocabulary.test.ts",
7475
7474
  "services/api/Dockerfile",
7476
- "services/api/openapi.json",
7477
7475
  "services/api/src/app.ts",
7478
7476
  "services/api/src/features/cells/routes.ts",
7479
7477
  "services/api/src/features/generate/proxy.ts",
@@ -10727,8 +10725,11 @@ function adminSurfaceOf(document) {
10727
10725
 
10728
10726
  // tools/admin/src/main.ts
10729
10727
  function sourceBuild() {
10730
- const document = fileURLToPath(new URL("../../../services/api/openapi.json", import.meta.url));
10731
- const surface = adminSurfaceOf(JSON.parse(readFileSync5(document, "utf8")));
10728
+ const api2 = fileURLToPath(new URL("../../../services/api", import.meta.url));
10729
+ const generated = spawnSync(process.execPath, ["src/openapi.ts"], { cwd: api2, maxBuffer: 1 << 30 });
10730
+ if (generated.status !== 0)
10731
+ throw new Error(`the OpenAPI document could not be generated: ${generated.stderr.toString()}`);
10732
+ const surface = adminSurfaceOf(JSON.parse(generated.stdout.toString()));
10732
10733
  return { version: "0.0.0-dev", commit: "source", surface };
10733
10734
  }
10734
10735
  function openBrowser(url) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisonlabs/sixminute-admin",
3
- "version": "0.1.1388-next",
3
+ "version": "0.1.1389",
4
4
  "description": "Sixminute operator tool: the admin commands of the Sixminute API, run with your own operator sign-in.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {