@wairon/cli 5.0.2-dev.11 → 5.0.2-dev.12

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 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.0.2-dev.11";
68
+ WAIRON_VERSION = "5.0.2-dev.12";
69
69
  GITHUB_REPO = "SYW-Apps/Waffle-AIron";
70
70
  ARCHITECT_AGENT_ID = "agent-architect";
71
71
  ARCHITECT_TEMPLATE_ID = "architect";
@@ -29212,6 +29212,16 @@ function audienceDistance(resolution, targetProjectId) {
29212
29212
  // src/server/landscape.ts
29213
29213
  var yamlLib = __toESM(require("js-yaml"));
29214
29214
  init_filenames();
29215
+
29216
+ // src/server/openapiindex.ts
29217
+ function buildOpenApiSpecIndex(specs) {
29218
+ return { openapiIndex: true, specs: specs.map((s) => ({ portalId: s.portalId, name: s.name })) };
29219
+ }
29220
+ function openApiIndexDocument(specs) {
29221
+ return JSON.stringify(buildOpenApiSpecIndex(specs), null, 2);
29222
+ }
29223
+
29224
+ // src/server/landscape.ts
29215
29225
  var PROJECT_ADMIN_CAPABILITY3 = "project:admin";
29216
29226
  var PROJECT_READ_CAPABILITY3 = "project:read";
29217
29227
  var PROJECT_WRITE_CAPABILITY3 = "project:write";
@@ -29734,11 +29744,7 @@ function exportProjectSurface(cfg, credential, projectId, format, maxAudience, p
29734
29744
  };
29735
29745
  }
29736
29746
  return {
29737
- body: JSON.stringify(
29738
- { openapiIndex: true, specs: specs.map((s) => ({ portalId: s.portalId, name: s.name })) },
29739
- null,
29740
- 2
29741
- ),
29747
+ body: openApiIndexDocument(specs),
29742
29748
  contentType: "application/json",
29743
29749
  filename: `${safeFilenamePart(projectId)}-surface.openapi.index.json`
29744
29750
  };
@@ -31866,13 +31872,6 @@ var ShareSnapshotRegistry = class {
31866
31872
  return stored;
31867
31873
  }
31868
31874
  };
31869
- function openApiIndexDocument(specs) {
31870
- return JSON.stringify(
31871
- { openapiIndex: true, specs: specs.map((s) => ({ portalId: s.portalId, name: s.name })) },
31872
- null,
31873
- 2
31874
- );
31875
- }
31876
31875
  function selectCapturedOpenApi(snap, portalId) {
31877
31876
  const specs = snap.openapiSet;
31878
31877
  if (!specs || specs.length === 0) {