@clarify-labs/cli 0.11.13 → 0.11.15
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/package.d.ts +1 -0
- package/output/cli.cjs +4 -1
- package/output/cli.cjs.map +1 -1
- package/output/cli.js +4 -1
- package/output/cli.js.map +1 -1
- package/output/core/config/config-schema.d.ts +2 -2
- package/output/{engine-CTFNxQRw.js → engine-DMfwsN-k.js} +17 -6
- package/output/engine-DMfwsN-k.js.map +1 -0
- package/output/{engine--f7G04zS.cjs → engine-DQ_RfLxa.cjs} +22 -5
- package/output/engine-DQ_RfLxa.cjs.map +1 -0
- package/output/index.cjs +1 -1
- package/output/index.js +1 -1
- package/package.json +3 -3
- package/output/engine--f7G04zS.cjs.map +0 -1
- package/output/engine-CTFNxQRw.js.map +0 -1
|
@@ -1149,12 +1149,19 @@ var clarifyPagesItemSchema = zod.z.lazy(() => zod.z.union([
|
|
|
1149
1149
|
filter: zod.z.object({ tags: zod.z.array(zod.z.string()).optional() }).strict().optional()
|
|
1150
1150
|
}).strict()
|
|
1151
1151
|
]));
|
|
1152
|
-
var
|
|
1152
|
+
var clarifyPagesGroupShape = {
|
|
1153
1153
|
group: clarifyLocalizedTextSchema,
|
|
1154
1154
|
icon: zod.z.string().optional(),
|
|
1155
|
+
visible: zod.z.enum([
|
|
1156
|
+
"always",
|
|
1157
|
+
"active",
|
|
1158
|
+
"never"
|
|
1159
|
+
]).optional(),
|
|
1160
|
+
searchable: zod.z.boolean().optional(),
|
|
1155
1161
|
layout: zod.z.enum(["documentation", "blog"]).optional(),
|
|
1156
1162
|
pages: zod.z.array(clarifyPagesItemSchema)
|
|
1157
|
-
}
|
|
1163
|
+
};
|
|
1164
|
+
var clarifyPagesGroupSchema = zod.z.lazy(() => zod.z.object(clarifyPagesGroupShape).strict());
|
|
1158
1165
|
var clarifyPagesConfigSchema = zod.z.union([zod.z.array(clarifyPagesGroupSchema), zod.z.literal("FileTree")]);
|
|
1159
1166
|
var clarifyTabItemSchema = zod.z.object({
|
|
1160
1167
|
tab: clarifyLocalizedTextSchema,
|
|
@@ -1813,7 +1820,7 @@ function createViteAdapter(engine) {
|
|
|
1813
1820
|
}
|
|
1814
1821
|
var cliPackageVersion = {
|
|
1815
1822
|
name: "@clarify-labs/cli",
|
|
1816
|
-
version: "0.11.
|
|
1823
|
+
version: "0.11.15",
|
|
1817
1824
|
license: "AGPL-3.0-only",
|
|
1818
1825
|
type: "module",
|
|
1819
1826
|
repository: {
|
|
@@ -1889,6 +1896,9 @@ var cliPackageVersion = {
|
|
|
1889
1896
|
}
|
|
1890
1897
|
}.version ?? "0.0.0";
|
|
1891
1898
|
var cliPackageVersionWithCaret = `^${cliPackageVersion}`;
|
|
1899
|
+
function printCliVersion() {
|
|
1900
|
+
console.error(`[clarify] v${cliPackageVersion}`);
|
|
1901
|
+
}
|
|
1892
1902
|
//#endregion
|
|
1893
1903
|
//#region source/core/config/options.ts
|
|
1894
1904
|
function resolveBuildOptions(options = {}) {
|
|
@@ -4197,6 +4207,7 @@ var ClarifyEngine = class {
|
|
|
4197
4207
|
assertNoContentDiagnostics(this.routes);
|
|
4198
4208
|
const outputDir = this.runtime.outputDirectory ?? this.generateOptions.outputDirectory;
|
|
4199
4209
|
if (!outputDir) throw new Error("[clarify] outputDirectory is required before SSG runs");
|
|
4210
|
+
const resolvedOutputDir = (0, node_path.resolve)(this.root, outputDir);
|
|
4200
4211
|
const ssrOutputDir = createClarifyTempDir("ssr-output");
|
|
4201
4212
|
let tempEntryPath;
|
|
4202
4213
|
try {
|
|
@@ -4208,7 +4219,7 @@ var ClarifyEngine = class {
|
|
|
4208
4219
|
plugins: this.runtime.ssrPlugins ?? []
|
|
4209
4220
|
});
|
|
4210
4221
|
const ssrBundlePath = (0, node_path.join)(ssrOutputDir, "entry-server.js");
|
|
4211
|
-
await renderSSGRoutes(this.routes, this.runtimeContext(),
|
|
4222
|
+
await renderSSGRoutes(this.routes, this.runtimeContext(), resolvedOutputDir, ssrBundlePath);
|
|
4212
4223
|
} catch (err) {
|
|
4213
4224
|
console.error("[clarify] SSG failed:", err);
|
|
4214
4225
|
throw err;
|
|
@@ -4314,6 +4325,12 @@ Object.defineProperty(exports, "findRouteConflicts", {
|
|
|
4314
4325
|
return findRouteConflicts;
|
|
4315
4326
|
}
|
|
4316
4327
|
});
|
|
4328
|
+
Object.defineProperty(exports, "printCliVersion", {
|
|
4329
|
+
enumerable: true,
|
|
4330
|
+
get: function() {
|
|
4331
|
+
return printCliVersion;
|
|
4332
|
+
}
|
|
4333
|
+
});
|
|
4317
4334
|
Object.defineProperty(exports, "searchMcpIndex", {
|
|
4318
4335
|
enumerable: true,
|
|
4319
4336
|
get: function() {
|
|
@@ -4321,4 +4338,4 @@ Object.defineProperty(exports, "searchMcpIndex", {
|
|
|
4321
4338
|
}
|
|
4322
4339
|
});
|
|
4323
4340
|
|
|
4324
|
-
//# sourceMappingURL=engine
|
|
4341
|
+
//# sourceMappingURL=engine-DQ_RfLxa.cjs.map
|