@clarify-labs/cli 0.11.20 → 0.11.23
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/output/cli.cjs +1 -1
- package/output/cli.js +1 -1
- package/output/core/runtime/ssg.d.ts +1 -0
- package/output/{engine-CAis1rme.cjs → engine-CnbBD_zS.cjs} +20 -3
- package/output/engine-CnbBD_zS.cjs.map +1 -0
- package/output/{engine-BgfGFPKK.js → engine-tpA8t5AF.js} +20 -3
- package/output/engine-tpA8t5AF.js.map +1 -0
- package/output/index.cjs +1 -1
- package/output/index.js +1 -1
- package/output/types.d.ts +2 -0
- package/package.json +3 -3
- package/output/engine-BgfGFPKK.js.map +0 -1
- package/output/engine-CAis1rme.cjs.map +0 -1
|
@@ -833,6 +833,7 @@ function navigationSections(sections) {
|
|
|
833
833
|
title: section.title,
|
|
834
834
|
level: section.level,
|
|
835
835
|
badge: section.badge,
|
|
836
|
+
deprecated: section.deprecated,
|
|
836
837
|
tags: section.tags
|
|
837
838
|
}));
|
|
838
839
|
}
|
|
@@ -1912,6 +1913,7 @@ function routeToRuntimeManifestEntry(route, component, mode) {
|
|
|
1912
1913
|
title: section.title,
|
|
1913
1914
|
level: section.level,
|
|
1914
1915
|
badge: section.badge,
|
|
1916
|
+
deprecated: section.deprecated,
|
|
1915
1917
|
tags: section.tags
|
|
1916
1918
|
}));
|
|
1917
1919
|
return entry;
|
|
@@ -2235,7 +2237,7 @@ function createViteAdapter(engine) {
|
|
|
2235
2237
|
}
|
|
2236
2238
|
var cliPackageVersion = {
|
|
2237
2239
|
name: "@clarify-labs/cli",
|
|
2238
|
-
version: "0.11.
|
|
2240
|
+
version: "0.11.23",
|
|
2239
2241
|
license: "AGPL-3.0-only",
|
|
2240
2242
|
type: "module",
|
|
2241
2243
|
repository: {
|
|
@@ -3210,6 +3212,7 @@ function extractOpenAPISections(spec, filterTags, operationOrder) {
|
|
|
3210
3212
|
title,
|
|
3211
3213
|
level: 2,
|
|
3212
3214
|
badge: kind === "webhook" ? "WEBHOOK" : method.toUpperCase(),
|
|
3215
|
+
deprecated: op.deprecated === true ? true : void 0,
|
|
3213
3216
|
tags
|
|
3214
3217
|
},
|
|
3215
3218
|
operationId: typeof op.operationId === "string" ? op.operationId : void 0
|
|
@@ -4365,6 +4368,20 @@ async function buildSSRBundle(root, ssrEntry, ssrOutDir, plugins) {
|
|
|
4365
4368
|
}
|
|
4366
4369
|
});
|
|
4367
4370
|
}
|
|
4371
|
+
function resolveSSRBundlePath(ssrOutputDir) {
|
|
4372
|
+
for (const entryName of [
|
|
4373
|
+
"entry-server.js",
|
|
4374
|
+
"entry-server.mjs",
|
|
4375
|
+
"entry-server.cjs"
|
|
4376
|
+
]) {
|
|
4377
|
+
const candidate = join(ssrOutputDir, entryName);
|
|
4378
|
+
if (existsSync(candidate)) return candidate;
|
|
4379
|
+
}
|
|
4380
|
+
const fallback = readdirSync(ssrOutputDir).filter((name) => name.startsWith("entry-server.")).sort((a, b) => a.localeCompare(b))[0];
|
|
4381
|
+
if (fallback) return join(ssrOutputDir, fallback);
|
|
4382
|
+
const files = readdirSync(ssrOutputDir).sort((a, b) => a.localeCompare(b)).slice(0, 20);
|
|
4383
|
+
throw new Error(`[clarify] SSR entry bundle not found in "${ssrOutputDir}". Tried entry-server.js, entry-server.mjs, entry-server.cjs. Found files: ${files.length > 0 ? files.join(", ") : "(empty directory)"}`);
|
|
4384
|
+
}
|
|
4368
4385
|
async function renderSSGRoutes(routes, contextOrConfig, outputDirectory, ssrBundlePath) {
|
|
4369
4386
|
const { render } = await import(pathToFileURL(ssrBundlePath).href);
|
|
4370
4387
|
const template = readIndexHtml(outputDirectory);
|
|
@@ -4743,7 +4760,7 @@ var ClarifyEngine = class {
|
|
|
4743
4760
|
ssrOutDir: ssrOutputDir,
|
|
4744
4761
|
plugins: this.runtime.ssrPlugins ?? []
|
|
4745
4762
|
});
|
|
4746
|
-
const ssrBundlePath =
|
|
4763
|
+
const ssrBundlePath = resolveSSRBundlePath(ssrOutputDir);
|
|
4747
4764
|
await renderSSGRoutes(this.routes, this.runtimeContext(), outputDir, ssrBundlePath);
|
|
4748
4765
|
} catch (err) {
|
|
4749
4766
|
console.error("[clarify] SSG failed:", err);
|
|
@@ -4790,4 +4807,4 @@ function createClarifyEngine(options = {}) {
|
|
|
4790
4807
|
//#endregion
|
|
4791
4808
|
export { createClarifyTempDir as a, cliPackageVersion as c, createViteAdapter as d, defineConfig as f, findRouteConflicts as i, cliPackageVersionWithCaret as l, createClarifyEngine as n, deserializeSearchIndex as o, createClarifyRuntimeAliases as r, searchMcpIndex as s, ClarifyEngine as t, printCliVersion as u };
|
|
4792
4809
|
|
|
4793
|
-
//# sourceMappingURL=engine-
|
|
4810
|
+
//# sourceMappingURL=engine-tpA8t5AF.js.map
|