@qualcomm-ui/mdx-vite 2.14.2 → 2.15.0

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.
Files changed (64) hide show
  1. package/dist/ai-knowledge/env.d.ts +27 -0
  2. package/dist/ai-knowledge/env.d.ts.map +1 -0
  3. package/dist/{open-web-ui-knowledge/generate-knowledge.d.ts → ai-knowledge/generator/command.d.ts} +3 -3
  4. package/dist/ai-knowledge/generator/command.d.ts.map +1 -0
  5. package/dist/ai-knowledge/generator/config.d.ts +4 -0
  6. package/dist/ai-knowledge/generator/config.d.ts.map +1 -0
  7. package/dist/ai-knowledge/generator/demo-plugin.d.ts +8 -0
  8. package/dist/ai-knowledge/generator/demo-plugin.d.ts.map +1 -0
  9. package/dist/ai-knowledge/generator/doc-props-plugin.d.ts +16 -0
  10. package/dist/ai-knowledge/generator/doc-props-plugin.d.ts.map +1 -0
  11. package/dist/ai-knowledge/generator/generator.types.d.ts +51 -0
  12. package/dist/ai-knowledge/generator/generator.types.d.ts.map +1 -0
  13. package/dist/ai-knowledge/generator/index.d.ts +2 -0
  14. package/dist/ai-knowledge/generator/index.d.ts.map +1 -0
  15. package/dist/ai-knowledge/generator/knowledge-generator.d.ts +35 -0
  16. package/dist/ai-knowledge/generator/knowledge-generator.d.ts.map +1 -0
  17. package/dist/ai-knowledge/generator/npm-install-tabs-plugin.d.ts +3 -0
  18. package/dist/ai-knowledge/generator/npm-install-tabs-plugin.d.ts.map +1 -0
  19. package/dist/ai-knowledge/generator/qds-theme-plugin.d.ts +7 -0
  20. package/dist/ai-knowledge/generator/qds-theme-plugin.d.ts.map +1 -0
  21. package/dist/ai-knowledge/generator/section-extractor.d.ts +47 -0
  22. package/dist/ai-knowledge/generator/section-extractor.d.ts.map +1 -0
  23. package/dist/ai-knowledge/generator/section.types.d.ts +83 -0
  24. package/dist/ai-knowledge/generator/section.types.d.ts.map +1 -0
  25. package/dist/ai-knowledge/generator/utils.d.ts +11 -0
  26. package/dist/ai-knowledge/generator/utils.d.ts.map +1 -0
  27. package/dist/ai-knowledge/open-web-ui/api.d.ts.map +1 -0
  28. package/dist/ai-knowledge/open-web-ui/common.d.ts +67 -0
  29. package/dist/ai-knowledge/open-web-ui/common.d.ts.map +1 -0
  30. package/dist/ai-knowledge/open-web-ui/download-knowledge.d.ts.map +1 -0
  31. package/dist/{open-web-ui-knowledge → ai-knowledge/open-web-ui}/knowledge-cleaner.d.ts +1 -1
  32. package/dist/ai-knowledge/open-web-ui/knowledge-cleaner.d.ts.map +1 -0
  33. package/dist/ai-knowledge/open-web-ui/upload-knowledge.d.ts.map +1 -0
  34. package/dist/ai-knowledge/types.d.ts +57 -0
  35. package/dist/ai-knowledge/types.d.ts.map +1 -0
  36. package/dist/cli.js +1879 -1459
  37. package/dist/cli.js.map +4 -4
  38. package/dist/docs-plugin/docs-plugin.d.ts.map +1 -1
  39. package/dist/docs-plugin/internal/config-schema.d.ts +30 -2
  40. package/dist/docs-plugin/internal/config-schema.d.ts.map +1 -1
  41. package/dist/docs-plugin/internal/services/markdown/remark-remove-jsx.d.ts.map +1 -1
  42. package/dist/docs-plugin/mdx-plugins.d.ts.map +1 -1
  43. package/dist/docs-plugin/remark/remark-extract-meta.d.ts +18 -0
  44. package/dist/docs-plugin/remark/remark-extract-meta.d.ts.map +1 -0
  45. package/dist/docs-plugin/types.d.ts +51 -6
  46. package/dist/docs-plugin/types.d.ts.map +1 -1
  47. package/dist/index.js +1126 -709
  48. package/dist/index.js.map +4 -4
  49. package/dist/tsbuildinfo +1 -1
  50. package/package.json +1 -1
  51. package/dist/open-web-ui-knowledge/api.d.ts.map +0 -1
  52. package/dist/open-web-ui-knowledge/common.d.ts +0 -33
  53. package/dist/open-web-ui-knowledge/common.d.ts.map +0 -1
  54. package/dist/open-web-ui-knowledge/download-knowledge.d.ts.map +0 -1
  55. package/dist/open-web-ui-knowledge/generate-knowledge.d.ts.map +0 -1
  56. package/dist/open-web-ui-knowledge/knowledge-cleaner.d.ts.map +0 -1
  57. package/dist/open-web-ui-knowledge/load-config-from-env.d.ts +0 -32
  58. package/dist/open-web-ui-knowledge/load-config-from-env.d.ts.map +0 -1
  59. package/dist/open-web-ui-knowledge/types.d.ts +0 -74
  60. package/dist/open-web-ui-knowledge/types.d.ts.map +0 -1
  61. package/dist/open-web-ui-knowledge/upload-knowledge.d.ts.map +0 -1
  62. /package/dist/{open-web-ui-knowledge → ai-knowledge/open-web-ui}/api.d.ts +0 -0
  63. /package/dist/{open-web-ui-knowledge → ai-knowledge/open-web-ui}/download-knowledge.d.ts +0 -0
  64. /package/dist/{open-web-ui-knowledge → ai-knowledge/open-web-ui}/upload-knowledge.d.ts +0 -0
@@ -0,0 +1,27 @@
1
+ import type { AiKnowledgeConfig, CliConfig } from "./types";
2
+ interface LoadEnvironmentConfigsOptions {
3
+ /** CLI options that override config */
4
+ cliOptions?: Partial<CliConfig>;
5
+ /** Filter to specific environment names */
6
+ environments?: string[];
7
+ }
8
+ export declare function loadEnv(): void;
9
+ export interface SharedConfig {
10
+ knowledgeId: string;
11
+ webUiKey: string;
12
+ webUiUrl: string;
13
+ }
14
+ /**
15
+ * Gets OpenWebUI credentials from environment variables.
16
+ * Used for legacy single-environment setups.
17
+ */
18
+ export declare function getConfigFromEnv(): SharedConfig;
19
+ export declare function loadKnowledgeConfigFromEnv(options: CliConfig): AiKnowledgeConfig;
20
+ /**
21
+ * Loads environment configurations for knowledge generation.
22
+ * If environments are defined in config, returns merged configs for each.
23
+ * Otherwise falls back to legacy single-environment behavior.
24
+ */
25
+ export declare function loadEnvironmentConfigs(options?: LoadEnvironmentConfigsOptions): AiKnowledgeConfig[];
26
+ export {};
27
+ //# sourceMappingURL=env.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/ai-knowledge/env.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAC,iBAAiB,EAAE,SAAS,EAAgB,MAAM,SAAS,CAAA;AAExE,UAAU,6BAA6B;IACrC,uCAAuC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAA;IAC/B,2CAA2C;IAC3C,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;CACxB;AAED,wBAAgB,OAAO,SAOtB;AAED,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,YAAY,CAc/C;AAWD,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,SAAS,GACjB,iBAAiB,CAmDnB;AAoBD;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,GAAE,6BAAkC,GAC1C,iBAAiB,EAAE,CA0ErB"}
@@ -1,9 +1,9 @@
1
1
  import type { KnowledgePageData } from "@qualcomm-ui/mdx-common";
2
- import type { WebUiKnowledgeConfig } from "./types";
2
+ import type { AiKnowledgeConfig } from "../types";
3
3
  /**
4
4
  * Generates knowledge documentation from MDX files.
5
5
  * Returns an array of pages that were generated.
6
6
  */
7
- export declare function generate(config: WebUiKnowledgeConfig): Promise<KnowledgePageData[]>;
7
+ export declare function generate(config: AiKnowledgeConfig): Promise<KnowledgePageData[]>;
8
8
  export declare function addGenerateKnowledgeCommand(): void;
9
- //# sourceMappingURL=generate-knowledge.d.ts.map
9
+ //# sourceMappingURL=command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/ai-knowledge/generator/command.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,yBAAyB,CAAA;AAG9D,OAAO,KAAK,EAAC,iBAAiB,EAAY,MAAM,UAAU,CAAA;AAI1D;;;GAGG;AACH,wBAAsB,QAAQ,CAC5B,MAAM,EAAE,iBAAiB,GACxB,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAG9B;AAED,wBAAgB,2BAA2B,SA0D1C"}
@@ -0,0 +1,4 @@
1
+ import type { AiKnowledgeConfig } from "../types";
2
+ export declare function setConfig(config: AiKnowledgeConfig): void;
3
+ export declare function getConfig(): AiKnowledgeConfig;
4
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/ai-knowledge/generator/config.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,UAAU,CAAA;AAI/C,wBAAgB,SAAS,CAAC,MAAM,EAAE,iBAAiB,QAElD;AAED,wBAAgB,SAAS,IAAI,iBAAiB,CAK7C"}
@@ -0,0 +1,8 @@
1
+ import type { Plugin } from "unified";
2
+ /**
3
+ * Creates a remark plugin that replaces demo JSX elements (QdsDemo, CodeDemo,
4
+ * Demo) with code blocks containing the demo source code from the demos folder.
5
+ * Imported files are added as sibling code blocks immediately after the demo.
6
+ */
7
+ export declare function formatDemos(demosFolder: string | undefined): Plugin;
8
+ //# sourceMappingURL=demo-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"demo-plugin.d.ts","sourceRoot":"","sources":["../../../src/ai-knowledge/generator/demo-plugin.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,SAAS,CAAA;AAmDnC;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAuJnE"}
@@ -0,0 +1,16 @@
1
+ import type { Plugin } from "unified";
2
+ import type { ComponentProps, DocProps, SimplifiedProp } from "./generator.types";
3
+ export declare class PropFormatter {
4
+ private docProps;
5
+ loadDocProps(): Promise<DocProps | null>;
6
+ private formatCommentParts;
7
+ private formatComment;
8
+ extractProps(props: ComponentProps, isPartial: boolean): SimplifiedProp[];
9
+ private convertPropInfo;
10
+ /**
11
+ * Creates a remark plugin that replaces TypeDocProps JSX elements with
12
+ * Markdown tables containing component prop documentation.
13
+ */
14
+ formatTypeDocProps(): Plugin;
15
+ }
16
+ //# sourceMappingURL=doc-props-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doc-props-plugin.d.ts","sourceRoot":"","sources":["../../../src/ai-knowledge/generator/doc-props-plugin.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,SAAS,CAAA;AAWnC,OAAO,KAAK,EACV,cAAc,EACd,QAAQ,EAER,cAAc,EACf,MAAM,mBAAmB,CAAA;AAoD1B,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAwB;IAElC,YAAY,IAAI,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;IAqC9C,OAAO,CAAC,kBAAkB;IAsC1B,OAAO,CAAC,aAAa;IAoCrB,YAAY,CAAC,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,OAAO,GAAG,cAAc,EAAE;IA0BzE,OAAO,CAAC,eAAe;IAiBvB;;;OAGG;IACH,kBAAkB,IAAI,MAAM;CA6F7B"}
@@ -0,0 +1,51 @@
1
+ import type { Root } from "mdast";
2
+ import type { QuiComment } from "@qualcomm-ui/typedoc-common";
3
+ export interface ImportedModule {
4
+ content: string;
5
+ path: string;
6
+ }
7
+ export interface ComponentProps {
8
+ input?: PropInfo[];
9
+ name: string;
10
+ output?: PropInfo[];
11
+ props?: PropInfo[];
12
+ }
13
+ export interface DocProps {
14
+ props: Record<string, ComponentProps>;
15
+ }
16
+ export interface PropInfo {
17
+ comment?: QuiComment;
18
+ defaultValue?: string;
19
+ name: string;
20
+ resolvedType?: {
21
+ baseType?: string;
22
+ name?: string;
23
+ prettyType?: string;
24
+ required?: boolean;
25
+ type?: string;
26
+ };
27
+ type: string;
28
+ }
29
+ export interface SimplifiedProp {
30
+ defaultValue?: string;
31
+ description: string;
32
+ name: string;
33
+ propType?: "input" | "output" | undefined;
34
+ required: boolean | undefined;
35
+ type: string;
36
+ }
37
+ export interface ProcessedPage {
38
+ content: string;
39
+ frontmatter: Record<string, string>;
40
+ /** Content before meta blocks are stripped, used for section extraction */
41
+ rawContent: string;
42
+ /** AST with data nodes preserved, used for section extraction */
43
+ sectionAst: Root;
44
+ title: string;
45
+ url: string | undefined;
46
+ }
47
+ export interface MdxFlowExpression {
48
+ type: "mdxFlowExpression";
49
+ value: string;
50
+ }
51
+ //# sourceMappingURL=generator.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.types.d.ts","sourceRoot":"","sources":["../../../src/ai-knowledge/generator/generator.types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,OAAO,CAAA;AAE/B,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,6BAA6B,CAAA;AAE3D,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAA;IACnB,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAA;CACnB;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;CACtC;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,CAAC,EAAE;QACb,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;QAClB,IAAI,CAAC,EAAE,MAAM,CAAA;KACd,CAAA;IACD,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,cAAc;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAA;IACzC,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IAC7B,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACnC,2EAA2E;IAC3E,UAAU,EAAE,MAAM,CAAA;IAClB,iEAAiE;IACjE,UAAU,EAAE,IAAI,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CACxB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,mBAAmB,CAAA;IACzB,KAAK,EAAE,MAAM,CAAA;CACd"}
@@ -0,0 +1,2 @@
1
+ export * from "./command";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ai-knowledge/generator/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
@@ -0,0 +1,35 @@
1
+ import type { KnowledgePageData } from "@qualcomm-ui/mdx-common";
2
+ import type { AiKnowledgeConfig } from "../types";
3
+ /**
4
+ * Generator class that encapsulates all knowledge generation logic with shared
5
+ * config.
6
+ */
7
+ export declare class KnowledgeGenerator {
8
+ private readonly config;
9
+ private propFormatter;
10
+ constructor(config: AiKnowledgeConfig);
11
+ run(): Promise<KnowledgePageData[]>;
12
+ private scanPages;
13
+ private formatFrontmatterExpressions;
14
+ /**
15
+ * Creates a remark plugin that transforms relative URLs to absolute URLs.
16
+ */
17
+ private transformRelativeUrls;
18
+ private applyPlugins;
19
+ private filterFrontmatter;
20
+ /**
21
+ * Processes MDX content by transforming JSX elements (TypeDocProps, demos)
22
+ * into Markdown, resolving relative links, and cleaning up formatting.
23
+ */
24
+ private processMdxContent;
25
+ private processMdxPage;
26
+ private generateLlmsTxt;
27
+ private generateAggregatedOutput;
28
+ private generateExtraFiles;
29
+ private generatePerPageExports;
30
+ private computeAggregateHash;
31
+ private generateManifest;
32
+ private generateBulkZip;
33
+ private generateSectionsOutput;
34
+ }
35
+ //# sourceMappingURL=knowledge-generator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"knowledge-generator.d.ts","sourceRoot":"","sources":["../../../src/ai-knowledge/generator/knowledge-generator.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAEV,iBAAiB,EAElB,MAAM,yBAAyB,CAAA;AAShC,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,UAAU,CAAA;AAY/C;;;GAGG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmB;IAC1C,OAAO,CAAC,aAAa,CAAe;gBAExB,MAAM,EAAE,iBAAiB;IAM/B,GAAG,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC;YAuD3B,SAAS;IA4EvB,OAAO,CAAC,4BAA4B;IAgDpC;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAgB7B,OAAO,CAAC,YAAY;IAQpB,OAAO,CAAC,iBAAiB;IA6BzB;;;OAGG;YACW,iBAAiB;YAsBjB,cAAc;IA0D5B,OAAO,CAAC,eAAe;YA6BT,wBAAwB;YAiBxB,kBAAkB;YAwElB,sBAAsB;IA6IpC,OAAO,CAAC,oBAAoB;YAQd,gBAAgB;YA2BhB,eAAe;YAiBf,sBAAsB;CAoDrC"}
@@ -0,0 +1,3 @@
1
+ import type { Plugin } from "unified";
2
+ export declare const formatNpmInstallTabs: Plugin;
3
+ //# sourceMappingURL=npm-install-tabs-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"npm-install-tabs-plugin.d.ts","sourceRoot":"","sources":["../../../src/ai-knowledge/generator/npm-install-tabs-plugin.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,SAAS,CAAA;AAKnC,eAAO,MAAM,oBAAoB,EAAE,MAqClC,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { Plugin } from "unified";
2
+ /**
3
+ * Creates a remark plugin that replaces theme JSX elements with
4
+ * markdown tables containing theme data from.
5
+ */
6
+ export declare function formatThemeNodes(): Promise<Plugin>;
7
+ //# sourceMappingURL=qds-theme-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"qds-theme-plugin.d.ts","sourceRoot":"","sources":["../../../src/ai-knowledge/generator/qds-theme-plugin.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,SAAS,CAAA;AA8CnC;;;GAGG;AACH,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC,CAwExD"}
@@ -0,0 +1,47 @@
1
+ import type { Root } from "mdast";
2
+ import type { SectionEntry } from "./section.types";
3
+ export interface SectionExtractorOptions {
4
+ /**
5
+ * Header depths that define section boundaries.
6
+ * @default [1, 2, 3, 4]
7
+ */
8
+ depths?: number[];
9
+ /**
10
+ * Minimum content length to create a section entry.
11
+ * @default 0
12
+ */
13
+ minContentLength?: number;
14
+ }
15
+ export interface PageInfo {
16
+ frontmatter: Record<string, unknown>;
17
+ id: string;
18
+ title: string;
19
+ url?: string;
20
+ }
21
+ /**
22
+ * Extracts sections from processed markdown content, organized by headers.
23
+ */
24
+ export declare class SectionExtractor {
25
+ private readonly depths;
26
+ private readonly minContentLength;
27
+ constructor(options?: SectionExtractorOptions);
28
+ /**
29
+ * Extracts sections from a parsed AST.
30
+ */
31
+ extract(tree: Root, pageInfo: PageInfo): SectionEntry[];
32
+ private getHeadingText;
33
+ private buildSectionEntry;
34
+ private extractMetadata;
35
+ private parseMetaBlock;
36
+ private parseValue;
37
+ /**
38
+ * Convert links to inline code. URLs are not relevant for text embeddings
39
+ * and will muddy the vector storage.
40
+ */
41
+ private transformLinks;
42
+ private nodesToRawContent;
43
+ private nodesToContent;
44
+ private generateSectionId;
45
+ private generateAnchorId;
46
+ }
47
+ //# sourceMappingURL=section-extractor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"section-extractor.d.ts","sourceRoot":"","sources":["../../../src/ai-knowledge/generator/section-extractor.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAA8B,IAAI,EAAoB,MAAM,OAAO,CAAA;AAO/E,OAAO,KAAK,EAAc,YAAY,EAAkB,MAAM,iBAAiB,CAAA;AAE/E,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IAEjB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAED,MAAM,WAAW,QAAQ;IACvB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAaD;;GAEG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAa;IACpC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAQ;gBAE7B,OAAO,CAAC,EAAE,uBAAuB;IAM7C;;OAEG;IACH,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,GAAG,YAAY,EAAE;IAyDvD,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,iBAAiB;IA+DzB,OAAO,CAAC,eAAe;IA2BvB,OAAO,CAAC,cAAc;IA+BtB,OAAO,CAAC,UAAU;IAclB;;;OAGG;IACH,OAAO,CAAC,cAAc;IAkBtB,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,gBAAgB;CAGzB"}
@@ -0,0 +1,83 @@
1
+ /**
2
+ * A code example extracted from a section.
3
+ */
4
+ export interface CodeExample {
5
+ /**
6
+ * The code content.
7
+ */
8
+ code: string;
9
+ /**
10
+ * Programming language from fence info string.
11
+ */
12
+ language: string;
13
+ }
14
+ /**
15
+ * Metadata extracted from ::: meta ::: blocks within a section.
16
+ */
17
+ export interface SectionMetadata {
18
+ [key: string]: string | string[] | undefined;
19
+ category?: string;
20
+ component?: string;
21
+ keywords?: string[];
22
+ props?: string[];
23
+ type?: string;
24
+ }
25
+ /**
26
+ * A single section entry extracted from documentation.
27
+ */
28
+ export interface SectionEntry {
29
+ /**
30
+ * Code examples extracted from this section.
31
+ */
32
+ codeExamples?: CodeExample[];
33
+ /**
34
+ * Prose content with code blocks removed. Used for formatted output.
35
+ */
36
+ content: string;
37
+ /**
38
+ * Hash of this section's contents. Includes {@link codeExamples}, {@link
39
+ * metadata}, {@link headerPath}, and {@link rawContent}.
40
+ */
41
+ hash: string;
42
+ /**
43
+ * Breadcrumb path of headers leading to this section.
44
+ * @example ["Button", "Examples", "Variants"]
45
+ */
46
+ headerPath: string[];
47
+ /**
48
+ * Metadata extracted from ::: meta ::: blocks within this section.
49
+ */
50
+ metadata?: SectionMetadata;
51
+ /**
52
+ * Frontmatter from the source page.
53
+ */
54
+ pageFrontmatter?: Record<string, unknown>;
55
+ /**
56
+ * Source page identifier.
57
+ */
58
+ pageId: string;
59
+ /**
60
+ * Raw markdown content from the AST, including code blocks.
61
+ */
62
+ rawContent: string;
63
+ /**
64
+ * Generated section ID for anchor links.
65
+ * @example "button-examples-variants"
66
+ */
67
+ sectionId: string;
68
+ /**
69
+ * URL with anchor to this specific section.
70
+ */
71
+ url?: string;
72
+ }
73
+ /**
74
+ * Output structure for the sections.json export.
75
+ */
76
+ export interface KnowledgeSections {
77
+ generatedAt: string;
78
+ hash: string;
79
+ sections: SectionEntry[];
80
+ totalSections: number;
81
+ version: 1;
82
+ }
83
+ //# sourceMappingURL=section.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"section.types.d.ts","sourceRoot":"","sources":["../../../src/ai-knowledge/generator/section.types.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAA;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;IAE5B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IAEf;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;;OAGG;IACH,UAAU,EAAE,MAAM,EAAE,CAAA;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAA;IAE1B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAEzC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,YAAY,EAAE,CAAA;IACxB,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,CAAC,CAAA;CACX"}
@@ -0,0 +1,11 @@
1
+ import type { ImportedModule } from "./generator.types";
2
+ export declare function exists(dirPath: string): Promise<boolean>;
3
+ export declare function computeMd5(content: string): string;
4
+ export declare function isPreviewLine(trimmedLine: string): boolean;
5
+ export declare function removePreviewLines(code: string): string;
6
+ export declare function getIntroLines(projectName?: string, description?: string): string;
7
+ export declare function extractRelativeImports(content: string): string[];
8
+ export declare function resolveModulePath(importPath: string, fromFile: string): Promise<string | null>;
9
+ export declare function extractMetadata(metadata: Record<string, string> | undefined): [string, string][];
10
+ export declare function collectRelativeImports(filePath: string, visited?: Set<string>): Promise<ImportedModule[]>;
11
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/ai-knowledge/generator/utils.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAA;AAErD,wBAAsB,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAI9D;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAElD;AAED,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAM1D;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAKvD;AAED,wBAAgB,aAAa,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,UAavE;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAwBhE;AAED,wBAAsB,iBAAiB,CACrC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAiBxB;AAED,wBAAgB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apiKey: string;
4
+ knowledgeId: string;
5
+ url: string;
6
+ }
7
+ /**
8
+ * Resolved OpenWebUI integration config ready for upload operations.
9
+ * Contains all credentials loaded from the env file.
10
+ */
11
+ export interface ResolvedOpenWebUiIntegration {
12
+ /**
13
+ * API key for authentication.
14
+ */
15
+ apiKey: string;
16
+ /**
17
+ * Environment name this integration references.
18
+ */
19
+ environment: string;
20
+ /**
21
+ * Knowledge base ID.
22
+ */
23
+ knowledgeId: string;
24
+ /**
25
+ * Integration name (key from integrations.openWebUi).
26
+ */
27
+ name: string;
28
+ /**
29
+ * Output path from the referenced environment.
30
+ */
31
+ outputPath: string;
32
+ /**
33
+ * OpenWebUI instance URL.
34
+ */
35
+ url: string;
36
+ }
37
+ /**
38
+ * Loads OpenWebUI credentials for an integration.
39
+ *
40
+ * Convention: `id: "dev"` loads `.env.dev` unless `envFile` is specified. If the
41
+ * env file doesn't exist (common in CI), dotenv silently skips it and uses env
42
+ * vars already set in the process.
43
+ *
44
+ * Reads from OPEN_WEB_UI_* env vars, with fallback to legacy WEB_UI_* vars.
45
+ */
46
+ export declare function loadOpenWebUiEnv(integration: OpenWebUiIntegration, integrationName: string): OpenWebUiCredentials;
47
+ /**
48
+ * Resolves a full OpenWebUI integration config with credentials loaded.
49
+ */
50
+ export declare function resolveOpenWebUiIntegration(name: string, integration: OpenWebUiIntegration, outputPath: string): ResolvedOpenWebUiIntegration;
51
+ interface LoadOpenWebUiIntegrationsOptions {
52
+ /** Filter to integrations referencing specific environments */
53
+ environments?: string[];
54
+ /** Filter to specific integration names */
55
+ integrations?: string[];
56
+ }
57
+ /**
58
+ * Loads OpenWebUI integration configurations for upload operations.
59
+ * Returns resolved integrations with environment output paths.
60
+ */
61
+ export declare function loadOpenWebUiIntegrations(options?: LoadOpenWebUiIntegrationsOptions): Array<{
62
+ integration: OpenWebUiIntegration;
63
+ name: string;
64
+ outputPath: string;
65
+ }>;
66
+ export {};
67
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/ai-knowledge/open-web-ui/common.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,mBAAmB,CAAA;AAG3D,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,GAAG,EAAE,MAAM,CAAA;CACZ;AAED;;;GAGG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;CACZ;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,oBAAoB,EACjC,eAAe,EAAE,MAAM,GACtB,oBAAoB,CA6BtB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,oBAAoB,EACjC,UAAU,EAAE,MAAM,GACjB,4BAA4B,CAW9B;AAED,UAAU,gCAAgC;IACxC,+DAA+D;IAC/D,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,2CAA2C;IAC3C,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;CACxB;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,GAAE,gCAAqC,GAC7C,KAAK,CAAC;IACP,WAAW,EAAE,oBAAoB,CAAA;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;CACnB,CAAC,CA0CD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"download-knowledge.d.ts","sourceRoot":"","sources":["../../../src/ai-knowledge/open-web-ui/download-knowledge.ts"],"names":[],"mappings":"AAYA,wBAAgB,2BAA2B,SAyC1C"}
@@ -1,4 +1,4 @@
1
- import type { SharedConfig } from "./common";
1
+ import type { SharedConfig } from "../env";
2
2
  export interface KnowledgeCleanerConfig extends SharedConfig {
3
3
  }
4
4
  export declare class KnowledgeCleaner {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"knowledge-cleaner.d.ts","sourceRoot":"","sources":["../../../src/ai-knowledge/open-web-ui/knowledge-cleaner.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,QAAQ,CAAA;AAIxC,MAAM,WAAW,sBAAuB,SAAQ,YAAY;CAAG;AAE/D,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAU;IACnC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAc;gBAE/B,MAAM,EAAE,sBAAsB;IASpC,oBAAoB;CAa3B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-knowledge.d.ts","sourceRoot":"","sources":["../../../src/ai-knowledge/open-web-ui/upload-knowledge.ts"],"names":[],"mappings":"AA+TA,wBAAgB,yBAAyB,SAwKxC"}
@@ -0,0 +1,57 @@
1
+ import type { Plugin } from "unified";
2
+ import type { KnowledgePageData } from "@qualcomm-ui/mdx-common";
3
+ import type { KnowledgeExtraFile, KnowledgeIntegrationConfig, SectionExportConfig } from "../docs-plugin";
4
+ export type KnowledgeMdxPlugin = (opts: KnowledgePageData) => Plugin;
5
+ export interface AiKnowledgeConfig extends KnowledgeIntegrationConfig {
6
+ clean?: boolean;
7
+ docPropsPath?: string;
8
+ /**
9
+ * Name of the environment being processed (for logging/tracking).
10
+ */
11
+ environmentName?: string;
12
+ extraFiles?: KnowledgeExtraFile[];
13
+ /**
14
+ * Generate bulk.zip containing all Markdown files.
15
+ *
16
+ * @default true
17
+ */
18
+ generateBulkZip?: boolean;
19
+ /**
20
+ * Generate manifest.json with file metadata and MD5 hashes.
21
+ *
22
+ * @default true
23
+ */
24
+ generateManifest?: boolean;
25
+ /**
26
+ * Output directory for manifest.json and bulk.zip.
27
+ *
28
+ * @default "exports"
29
+ */
30
+ manifestOutputPath?: string;
31
+ /**
32
+ * Array of plugins to apply to MDX files during processing. Can be used to
33
+ * replace JSX components with markdown-friendly data, add metadata, and more.
34
+ */
35
+ mdxPlugins?: KnowledgeMdxPlugin[];
36
+ outputMode: "per-page" | "aggregated";
37
+ outputPath: string;
38
+ routeDir: string;
39
+ /**
40
+ * Configuration for JSON section exports. Automatically enabled when
41
+ * outputMode is "per-page".
42
+ */
43
+ sections?: SectionExportConfig;
44
+ verbose?: boolean;
45
+ }
46
+ export interface CliConfig extends Omit<AiKnowledgeConfig, "docPropsPath" | "metadata" | "outputPath" | "routeDir"> {
47
+ envFilePath?: string;
48
+ /**
49
+ * CLI metadata as `key=value` strings.
50
+ */
51
+ metadata?: string[];
52
+ outputPath?: string;
53
+ }
54
+ export interface GlobalCliOpts {
55
+ env?: string;
56
+ }
57
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ai-knowledge/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,SAAS,CAAA;AAEnC,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,yBAAyB,CAAA;AAE9D,OAAO,KAAK,EACV,kBAAkB,EAClB,0BAA0B,EAC1B,mBAAmB,EACpB,MAAM,gBAAgB,CAAA;AAEvB,MAAM,MAAM,kBAAkB,GAAG,CAAC,IAAI,EAAE,iBAAiB,KAAK,MAAM,CAAA;AAEpE,MAAM,WAAW,iBAAkB,SAAQ,0BAA0B;IACnE,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,UAAU,CAAC,EAAE,kBAAkB,EAA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