@clarify-labs/cli 0.11.23 → 0.11.24

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/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_engine = require("./engine-CnbBD_zS.cjs");
2
+ const require_engine = require("./engine-CanMaJiv.cjs");
3
3
  exports.ClarifyEngine = require_engine.ClarifyEngine;
4
4
  exports.createClarifyEngine = require_engine.createClarifyEngine;
5
5
  exports.createViteAdapter = require_engine.createViteAdapter;
package/output/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { d as createViteAdapter, f as defineConfig, n as createClarifyEngine, t as ClarifyEngine } from "./engine-tpA8t5AF.js";
1
+ import { d as createViteAdapter, f as defineConfig, n as createClarifyEngine, t as ClarifyEngine } from "./engine-B3XJxakI.js";
2
2
  export { ClarifyEngine, createClarifyEngine, createViteAdapter, defineConfig };
@@ -1,4 +1,4 @@
1
- import { ContentRoute, ClarifyNavigationNode, ClarifyPagesConfig, ClarifyPagesGroup, ClarifyPagesItem, ClarifyRouteIntent, ClarifyTabsConfig, LocalizedNavigation, LocalizedTabbedNavigation, MarkdownContentRoute, ResolvedClarifyLocalesConfig, TabbedNavigation } from '../../types.js';
1
+ import { ContentRoute, ClarifyNavigationNode, ClarifyPagesConfig, ClarifyPagesGroup, ClarifyPagesItem, ClarifyRouteIntent, ClarifyLocalizedText, ClarifyTabsConfig, LocalizedNavigation, LocalizedTabbedNavigation, MarkdownContentRoute, ResolvedClarifyLocalesConfig, TabbedNavigation } from '../../types.js';
2
2
  import { ContentProcessor } from '../content/content.js';
3
3
  import { kebabToTitle } from './heading-metadata.js';
4
4
  export type FindContentRoutesOptions = {
@@ -10,6 +10,7 @@ export declare function basePathFromRef(ref: string): string;
10
10
  export declare function openAPIPagePathFromRef(ref: string, tagFilter?: string[], explicitPath?: string): string;
11
11
  export declare function routePathFromRef(ref: string, explicitPath?: string): string;
12
12
  export declare function localizedRoutePath(basePath: string, locale: string, _i18n: ResolvedClarifyLocalesConfig): string;
13
+ export declare function resolveLocalizedText(text: ClarifyLocalizedText | undefined, locale: string, fallbackLocale?: string): string | undefined;
13
14
  export declare function findContentRoutes(dir: string, base?: string, options?: FindContentRoutesOptions): Promise<MarkdownContentRoute[]>;
14
15
  export declare function withAlternates<T extends ContentRoute>(route: T, routes: ContentRoute[], locales: ResolvedClarifyLocalesConfig): T;
15
16
  export declare function findLocalizedContentRoutes(contentRoot: string, locales?: ResolvedClarifyLocalesConfig, options?: FindContentRoutesOptions): Promise<MarkdownContentRoute[]>;
@@ -9,6 +9,7 @@ export declare function generateOpenAPISpecModule(spec: OpenAPISpec): string;
9
9
  type OpenAPIPageModuleOptions = {
10
10
  specModuleId: string;
11
11
  operationOrder?: string[];
12
+ title?: string;
12
13
  };
13
14
  export declare function generateOpenAPIPageModule(opts: OpenAPIPageModuleOptions): string;
14
15
  export {};
package/output/types.d.ts CHANGED
@@ -329,6 +329,8 @@ export type OpenAPIContentRouteState = {
329
329
  sourceSpecId?: string;
330
330
  /** Spec virtual module id fragment used by this route after route-level filtering. */
331
331
  routeSpecModuleId?: string;
332
+ /** Navigation title configured for this route, already resolved for the route locale. */
333
+ configuredTitle?: string;
332
334
  };
333
335
  export type ContentRouteArtifacts = {
334
336
  /** Public URL for the machine-readable content artifact served or emitted for this route. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clarify-labs/cli",
3
- "version": "0.11.23",
3
+ "version": "0.11.24",
4
4
  "license": "AGPL-3.0-only",
5
5
  "type": "module",
6
6
  "repository": {
@@ -39,8 +39,8 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@apidevtools/swagger-parser": "^12.1.0",
42
- "@clarify-labs/renderer": "0.11.23",
43
- "@clarify-labs/templates": "0.11.23",
42
+ "@clarify-labs/renderer": "0.11.24",
43
+ "@clarify-labs/templates": "0.11.24",
44
44
  "@mdx-js/mdx": "^3.1.1",
45
45
  "@mdx-js/rollup": "^3.1.1",
46
46
  "@modelcontextprotocol/sdk": "^1.29.0",