@wairon/cli 5.1.1-dev.74 → 5.1.1-dev.75
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/dist/cli/index.js +9 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -65,7 +65,7 @@ var init_defaults = __esm({
|
|
|
65
65
|
copilot: ".github/prompts",
|
|
66
66
|
codex: ".codex/agents"
|
|
67
67
|
};
|
|
68
|
-
WAIRON_VERSION = "5.1.1-dev.
|
|
68
|
+
WAIRON_VERSION = "5.1.1-dev.75";
|
|
69
69
|
GITHUB_REPO = "SYW-Apps/Waffle-AIron";
|
|
70
70
|
SUPPORTED_ALIASES = ["wai"];
|
|
71
71
|
SCAN_EXCLUDE_DIRS = /* @__PURE__ */ new Set([
|
|
@@ -43614,6 +43614,12 @@ function getGraph(cfg, sessionId, tier, projectId, level) {
|
|
|
43614
43614
|
function getProjectCanvas(cfg, sessionId, projectId) {
|
|
43615
43615
|
return getWebProjectCanvas(cfg, sessionId, projectId);
|
|
43616
43616
|
}
|
|
43617
|
+
function getProjectCanvasModel(cfg, sessionId, projectId) {
|
|
43618
|
+
return getWebProjectCanvasModel(cfg, sessionId, projectId);
|
|
43619
|
+
}
|
|
43620
|
+
function getProjectOpenApi(cfg, sessionId, projectId, portalId) {
|
|
43621
|
+
return getWebProjectOpenApi(cfg, sessionId, projectId, portalId);
|
|
43622
|
+
}
|
|
43617
43623
|
function signOutEverywhere(cfg, sessionId) {
|
|
43618
43624
|
const principal = authenticateSession(cfg.dataDir, sessionId);
|
|
43619
43625
|
if (!principal.authenticated) {
|
|
@@ -46035,12 +46041,12 @@ async function handleWebRequest(cfg, req, res, body, url, ctx) {
|
|
|
46035
46041
|
}
|
|
46036
46042
|
if (req.method === "GET" && parts.length === 2 && parts[1] === "canvas-model") {
|
|
46037
46043
|
const projectId = url.searchParams.get("projectId") ?? "";
|
|
46038
|
-
return sendJson(res, 200,
|
|
46044
|
+
return sendJson(res, 200, getProjectCanvasModel(cfg, sessionId, projectId));
|
|
46039
46045
|
}
|
|
46040
46046
|
if (req.method === "GET" && parts.length === 2 && parts[1] === "openapi") {
|
|
46041
46047
|
const projectId = url.searchParams.get("projectId") ?? "";
|
|
46042
46048
|
const spec = url.searchParams.get("spec") ?? void 0;
|
|
46043
|
-
const html =
|
|
46049
|
+
const html = getProjectOpenApi(cfg, sessionId, projectId, spec);
|
|
46044
46050
|
res.writeHead(200, { "content-type": "text/html; charset=utf-8" });
|
|
46045
46051
|
res.end(html);
|
|
46046
46052
|
return;
|