openspecui 1.4.0 → 1.5.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.
Files changed (34) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cli.mjs +9 -6
  3. package/dist/index.mjs +1 -1
  4. package/dist/{open-BVmQScxd.mjs → open-DDagk2eo.mjs} +2 -2
  5. package/dist/{src-kxKAXq88.mjs → src-16GA3our.mjs} +826 -141
  6. package/package.json +3 -3
  7. package/web/assets/{BufferResource-C85AhGv8.js → BufferResource-Bn1UWy0D.js} +1 -1
  8. package/web/assets/{CanvasRenderer-CgtmVcg4.js → CanvasRenderer-D8NiU8la.js} +1 -1
  9. package/web/assets/{Filter-Cb47-EZS.js → Filter-CRwq487x.js} +1 -1
  10. package/web/assets/{RenderTargetSystem-Cx8qJk_q.js → RenderTargetSystem-CtoB_qTm.js} +1 -1
  11. package/web/assets/{WebGLRenderer-pIi2Bx_Q.js → WebGLRenderer-BgKO8R0a.js} +1 -1
  12. package/web/assets/{WebGPURenderer-C3CBA4dG.js → WebGPURenderer-CQeL2efC.js} +1 -1
  13. package/web/assets/{browserAll-C_q9nnWk.js → browserAll-DP6sOYev.js} +1 -1
  14. package/web/assets/{ghostty-web-D6mGnCnU.js → ghostty-web-evxujSxm.js} +1 -1
  15. package/web/assets/{index-C79ew42C.js → index-4MAU81Qk.js} +1 -1
  16. package/web/assets/{index-BwQ_9hzT.js → index-B0IbsqHi.js} +1 -1
  17. package/web/assets/{index-ur_rMFp9.js → index-B147AOgf.js} +1 -1
  18. package/web/assets/{index-TCkbFaCm.js → index-BMashGQn.js} +1 -1
  19. package/web/assets/{index-D45XwNhE.js → index-BPZ3nG0r.js} +1 -1
  20. package/web/assets/{index-BBPTFxy1.js → index-BejnsZfY.js} +1 -1
  21. package/web/assets/{index-CGrYIgSe.js → index-BnT52DZ8.js} +1 -1
  22. package/web/assets/{index-BSqKqaGj.js → index-CBCPR3Qb.js} +1 -1
  23. package/web/assets/{index-LWU4Mw81.js → index-D2Tp4F9B.js} +1 -1
  24. package/web/assets/{index-CGweB5Ib.js → index-D6ardy54.js} +1 -1
  25. package/web/assets/{index-knJhpHqo.js → index-DJqmTRAR.js} +1 -1
  26. package/web/assets/{index-B5M3Dg-Q.js → index-DTeOcXKn.js} +1 -1
  27. package/web/assets/{index-C6pjde1Q.js → index-DcXyAs0z.js} +1 -1
  28. package/web/assets/{index-3eymcnUu.js → index-T8xoxmUb.js} +218 -215
  29. package/web/assets/index-Ys2MTD3W.css +1 -0
  30. package/web/assets/{index-CyqwjCgH.js → index-dSf1u0YV.js} +1 -1
  31. package/web/assets/{index-D8KhKUsi.js → index-f0QdJSzm.js} +1 -1
  32. package/web/assets/{webworkerAll-Cq063Dqj.js → webworkerAll-DA2HufNb.js} +1 -1
  33. package/web/index.html +2 -2
  34. package/web/assets/index-BImvtc4B.css +0 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 OpenSpecUI Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { a as SchemaInfoSchema, c as CliExecutor, d as __commonJS, f as __toESM, i as SchemaDetailSchema, l as ConfigManager, o as SchemaResolutionSchema, r as require_dist, s as TemplatesSchema, t as startServer, u as OpenSpecAdapter } from "./src-kxKAXq88.mjs";
2
+ import { a as SchemaInfoSchema, c as CliExecutor, d as OpenSpecAdapter, f as __commonJS, i as SchemaDetailSchema, l as ConfigManager, o as SchemaResolutionSchema, p as __toESM, r as require_dist, s as TemplatesSchema, t as startServer, u as DEFAULT_CONFIG } from "./src-16GA3our.mjs";
3
3
  import { createRequire } from "node:module";
4
4
  import { basename, dirname, extname, join, normalize, relative, resolve } from "path";
5
5
  import { readFile } from "node:fs/promises";
@@ -8,9 +8,9 @@ import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync
8
8
  import { readFileSync as readFileSync$1, readdirSync as readdirSync$1, statSync as statSync$1, writeFile as writeFile$1 } from "fs";
9
9
  import { format, inspect } from "util";
10
10
  import { fileURLToPath } from "url";
11
+ import { spawn } from "node:child_process";
11
12
  import { fileURLToPath as fileURLToPath$1 } from "node:url";
12
13
  import { notStrictEqual, strictEqual } from "assert";
13
- import { spawn } from "node:child_process";
14
14
 
15
15
  //#region ../../node_modules/.pnpm/cliui@9.0.1/node_modules/cliui/build/lib/index.js
16
16
  const align = {
@@ -4505,7 +4505,8 @@ var yargs_default = Yargs;
4505
4505
 
4506
4506
  //#endregion
4507
4507
  //#region package.json
4508
- var version = "1.4.0";
4508
+ var import_dist = require_dist();
4509
+ var version = "1.5.0";
4509
4510
  var devDependencies = {
4510
4511
  "@hono/node-server": "^1.14.1",
4511
4512
  "@openspecui/server": "workspace:*",
@@ -4524,7 +4525,6 @@ var devDependencies = {
4524
4525
 
4525
4526
  //#endregion
4526
4527
  //#region src/export.ts
4527
- var import_dist = require_dist();
4528
4528
  const __dirname$1 = dirname$1(fileURLToPath$1(import.meta.url));
4529
4529
  function parseCliJson(raw, schema, label) {
4530
4530
  const trimmed = raw.trim();
@@ -4580,7 +4580,9 @@ function parseSchemaYaml(content) {
4580
4580
  */
4581
4581
  async function generateSnapshot(projectDir) {
4582
4582
  const adapter = new OpenSpecAdapter(projectDir);
4583
- const cliExecutor = new CliExecutor(new ConfigManager(projectDir), projectDir);
4583
+ const configManager = new ConfigManager(projectDir);
4584
+ const cliExecutor = new CliExecutor(configManager, projectDir);
4585
+ const uiConfig = await configManager.readConfig().catch(() => DEFAULT_CONFIG);
4584
4586
  if (!await adapter.isInitialized()) throw new Error(`OpenSpec not initialized in ${projectDir}`);
4585
4587
  const specsMeta = await adapter.listSpecsWithMeta();
4586
4588
  const specs = await Promise.all(specsMeta.map(async (meta) => {
@@ -4704,6 +4706,7 @@ async function generateSnapshot(projectDir) {
4704
4706
  changesCount: changes.filter((c) => c !== null).length,
4705
4707
  archivesCount: archives.length
4706
4708
  },
4709
+ config: uiConfig,
4707
4710
  specs,
4708
4711
  changes: changes.filter((c) => c !== null),
4709
4712
  archives,
@@ -4976,7 +4979,7 @@ async function main() {
4976
4979
  console.log(`✅ Server running at ${server.url}`);
4977
4980
  console.log("");
4978
4981
  if (argv.open) {
4979
- await (await import("./open-BVmQScxd.mjs")).default(server.url);
4982
+ await (await import("./open-DDagk2eo.mjs")).default(server.url);
4980
4983
  console.log("🌐 Browser opened");
4981
4984
  }
4982
4985
  console.log("");
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { n as createServer, t as startServer } from "./src-kxKAXq88.mjs";
1
+ import { n as createServer, t as startServer } from "./src-16GA3our.mjs";
2
2
 
3
3
  export { createServer, startServer };
@@ -1,11 +1,11 @@
1
1
  import fs, { constants } from "node:fs/promises";
2
2
  import path from "node:path";
3
3
  import fs$1 from "node:fs";
4
- import { fileURLToPath } from "node:url";
5
4
  import childProcess, { execFile } from "node:child_process";
5
+ import { promisify } from "node:util";
6
+ import { fileURLToPath } from "node:url";
6
7
  import process from "node:process";
7
8
  import { Buffer } from "node:buffer";
8
- import { promisify } from "node:util";
9
9
  import os from "node:os";
10
10
 
11
11
  //#region ../../node_modules/.pnpm/is-docker@3.0.0/node_modules/is-docker/index.js