openspecui 1.3.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.
- package/LICENSE +21 -0
- package/dist/cli.mjs +9 -6
- package/dist/index.mjs +1 -1
- package/dist/{open-BVmQScxd.mjs → open-DDagk2eo.mjs} +2 -2
- package/dist/{src-E2ERj6H4.mjs → src-16GA3our.mjs} +1014 -233
- package/package.json +3 -3
- package/web/assets/{BufferResource-8LHM3mct.js → BufferResource-Bn1UWy0D.js} +1 -1
- package/web/assets/{CanvasRenderer-BSV3tOcF.js → CanvasRenderer-D8NiU8la.js} +1 -1
- package/web/assets/{Filter-C5FD597y.js → Filter-CRwq487x.js} +1 -1
- package/web/assets/{RenderTargetSystem-DlUN0zsW.js → RenderTargetSystem-CtoB_qTm.js} +1 -1
- package/web/assets/{WebGLRenderer-QgEdU6ZZ.js → WebGLRenderer-BgKO8R0a.js} +1 -1
- package/web/assets/{WebGPURenderer-D7lHEg9G.js → WebGPURenderer-CQeL2efC.js} +1 -1
- package/web/assets/{browserAll-C7nnv_eJ.js → browserAll-DP6sOYev.js} +1 -1
- package/web/assets/ghostty-web-evxujSxm.js +13 -0
- package/web/assets/{index-Ar3cmjnK.js → index-4MAU81Qk.js} +1 -1
- package/web/assets/{index-Byo82vIc.js → index-B0IbsqHi.js} +1 -1
- package/web/assets/{index-Nzl3W_bm.js → index-B147AOgf.js} +1 -1
- package/web/assets/{index-CDAgriaJ.js → index-BMashGQn.js} +1 -1
- package/web/assets/{index-B0Q8Tr0G.js → index-BPZ3nG0r.js} +1 -1
- package/web/assets/{index-C8uGGt6w.js → index-BejnsZfY.js} +1 -1
- package/web/assets/{index-Dte58iQe.js → index-BnT52DZ8.js} +1 -1
- package/web/assets/{index-BFbdtMlr.js → index-CBCPR3Qb.js} +1 -1
- package/web/assets/{index-CYijlhdV.js → index-D2Tp4F9B.js} +1 -1
- package/web/assets/{index-JGA2Yc2F.js → index-D6ardy54.js} +1 -1
- package/web/assets/{index-DwUe2J4w.js → index-DJqmTRAR.js} +1 -1
- package/web/assets/{index-DYX6cNJ6.js → index-DTeOcXKn.js} +1 -1
- package/web/assets/{index-BkWa50ks.js → index-DcXyAs0z.js} +1 -1
- package/web/assets/{index-BJlwU-uQ.js → index-T8xoxmUb.js} +222 -219
- package/web/assets/index-Ys2MTD3W.css +1 -0
- package/web/assets/{index-C_c_g9pe.js → index-dSf1u0YV.js} +1 -1
- package/web/assets/{index-BdGDc8qr.js → index-f0QdJSzm.js} +1 -1
- package/web/assets/{webworkerAll-CEAZP48d.js → webworkerAll-DA2HufNb.js} +1 -1
- package/web/index.html +2 -2
- package/web/assets/index-ZMhgIxpu.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
|
|
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
|
|
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
|
|
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-
|
|
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,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
|