@qualcomm-ui/mdx-vite 2.10.0 → 2.11.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.
- package/dist/cli.js +274 -24
- package/dist/cli.js.map +3 -3
- package/dist/docs-plugin/internal/config-schema.d.ts +40 -0
- package/dist/docs-plugin/internal/config-schema.d.ts.map +1 -1
- package/dist/docs-plugin/types.d.ts +61 -3
- package/dist/docs-plugin/types.d.ts.map +1 -1
- package/dist/index.js +100 -45
- package/dist/index.js.map +3 -3
- package/dist/open-web-ui-knowledge/common.d.ts +25 -0
- package/dist/open-web-ui-knowledge/common.d.ts.map +1 -1
- package/dist/open-web-ui-knowledge/generate-knowledge.d.ts.map +1 -1
- package/dist/open-web-ui-knowledge/load-config-from-env.d.ts +29 -0
- package/dist/open-web-ui-knowledge/load-config-from-env.d.ts.map +1 -1
- package/dist/open-web-ui-knowledge/types.d.ts +34 -0
- package/dist/open-web-ui-knowledge/types.d.ts.map +1 -1
- package/dist/open-web-ui-knowledge/upload-knowledge.d.ts.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,33 @@
|
|
|
1
|
+
import type { OpenWebUiIntegration } from "../docs-plugin/types";
|
|
2
|
+
import type { ResolvedOpenWebUiIntegration } from "./types";
|
|
1
3
|
export declare function loadEnv(): void;
|
|
2
4
|
export interface SharedConfig {
|
|
3
5
|
knowledgeId: string;
|
|
4
6
|
webUiKey: string;
|
|
5
7
|
webUiUrl: string;
|
|
6
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Gets OpenWebUI credentials from environment variables.
|
|
11
|
+
* Used for legacy single-environment setups.
|
|
12
|
+
*/
|
|
7
13
|
export declare function getConfigFromEnv(): SharedConfig;
|
|
14
|
+
export interface OpenWebUiCredentials {
|
|
15
|
+
apiKey: string;
|
|
16
|
+
knowledgeId: string;
|
|
17
|
+
url: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Loads OpenWebUI credentials for an integration.
|
|
21
|
+
*
|
|
22
|
+
* Convention: `id: "dev"` loads `.env.dev` unless `envFile` is specified. If the
|
|
23
|
+
* env file doesn't exist (common in CI), dotenv silently skips it and uses env
|
|
24
|
+
* vars already set in the process.
|
|
25
|
+
*
|
|
26
|
+
* Reads from OPEN_WEB_UI_* env vars, with fallback to legacy WEB_UI_* vars.
|
|
27
|
+
*/
|
|
28
|
+
export declare function loadOpenWebUiEnv(integration: OpenWebUiIntegration, integrationName: string): OpenWebUiCredentials;
|
|
29
|
+
/**
|
|
30
|
+
* Resolves a full OpenWebUI integration config with credentials loaded.
|
|
31
|
+
*/
|
|
32
|
+
export declare function resolveOpenWebUiIntegration(name: string, integration: OpenWebUiIntegration, outputPath: string): ResolvedOpenWebUiIntegration;
|
|
8
33
|
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/open-web-ui-knowledge/common.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/open-web-ui-knowledge/common.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,sBAAsB,CAAA;AAE9D,OAAO,KAAK,EAAgB,4BAA4B,EAAC,MAAM,SAAS,CAAA;AAExE,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,CAa/C;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-knowledge.d.ts","sourceRoot":"","sources":["../../src/open-web-ui-knowledge/generate-knowledge.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"generate-knowledge.d.ts","sourceRoot":"","sources":["../../src/open-web-ui-knowledge/generate-knowledge.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,yBAAyB,CAAA;AAgB9D,OAAO,KAAK,EAAY,oBAAoB,EAAC,MAAM,SAAS,CAAA;AA4uC5D;;;GAGG;AACH,wBAAsB,QAAQ,CAC5B,MAAM,EAAE,oBAAoB,GAC3B,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAG9B;AAED,wBAAgB,2BAA2B,SA0D1C"}
|
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
import type { OpenWebUiIntegration } from "../docs-plugin/types";
|
|
1
2
|
import type { CliConfig, WebUiKnowledgeConfig } from "./types";
|
|
3
|
+
interface LoadEnvironmentConfigsOptions {
|
|
4
|
+
/** CLI options that override config */
|
|
5
|
+
cliOptions?: Partial<CliConfig>;
|
|
6
|
+
/** Filter to specific environment names */
|
|
7
|
+
environments?: string[];
|
|
8
|
+
}
|
|
9
|
+
interface LoadOpenWebUiIntegrationsOptions {
|
|
10
|
+
/** Filter to integrations referencing specific environments */
|
|
11
|
+
environments?: string[];
|
|
12
|
+
/** Filter to specific integration names */
|
|
13
|
+
integrations?: string[];
|
|
14
|
+
}
|
|
2
15
|
export declare function loadKnowledgeConfigFromEnv(options: CliConfig): WebUiKnowledgeConfig;
|
|
16
|
+
/**
|
|
17
|
+
* Loads environment configurations for knowledge generation.
|
|
18
|
+
* If environments are defined in config, returns merged configs for each.
|
|
19
|
+
* Otherwise falls back to legacy single-environment behavior.
|
|
20
|
+
*/
|
|
21
|
+
export declare function loadEnvironmentConfigs(options?: LoadEnvironmentConfigsOptions): WebUiKnowledgeConfig[];
|
|
22
|
+
/**
|
|
23
|
+
* Loads OpenWebUI integration configurations for upload operations.
|
|
24
|
+
* Returns resolved integrations with environment output paths.
|
|
25
|
+
*/
|
|
26
|
+
export declare function loadOpenWebUiIntegrations(options?: LoadOpenWebUiIntegrationsOptions): Array<{
|
|
27
|
+
integration: OpenWebUiIntegration;
|
|
28
|
+
name: string;
|
|
29
|
+
outputPath: string;
|
|
30
|
+
}>;
|
|
31
|
+
export {};
|
|
3
32
|
//# sourceMappingURL=load-config-from-env.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-config-from-env.d.ts","sourceRoot":"","sources":["../../src/open-web-ui-knowledge/load-config-from-env.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"load-config-from-env.d.ts","sourceRoot":"","sources":["../../src/open-web-ui-knowledge/load-config-from-env.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAGV,oBAAoB,EACrB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EAAC,SAAS,EAAE,oBAAoB,EAAC,MAAM,SAAS,CAAA;AAE5D,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,UAAU,gCAAgC;IACxC,+DAA+D;IAC/D,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,2CAA2C;IAC3C,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;CACxB;AAWD,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,SAAS,GACjB,oBAAoB,CAkDtB;AAoBD;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,GAAE,6BAAkC,GAC1C,oBAAoB,EAAE,CAmExB;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"}
|
|
@@ -2,12 +2,46 @@ import type { KnowledgeExtraFile, KnowledgeIntegrationConfig } from "../docs-plu
|
|
|
2
2
|
export interface WebUiKnowledgeConfig extends KnowledgeIntegrationConfig {
|
|
3
3
|
clean?: boolean;
|
|
4
4
|
docPropsPath?: string;
|
|
5
|
+
/**
|
|
6
|
+
* Name of the environment being processed (for logging/tracking).
|
|
7
|
+
*/
|
|
8
|
+
environmentName?: string;
|
|
5
9
|
extraFiles?: KnowledgeExtraFile[];
|
|
6
10
|
outputMode: "per-page" | "aggregated";
|
|
7
11
|
outputPath: string;
|
|
8
12
|
routeDir: string;
|
|
9
13
|
verbose?: boolean;
|
|
10
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Resolved OpenWebUI integration config ready for upload operations.
|
|
17
|
+
* Contains all credentials loaded from the env file.
|
|
18
|
+
*/
|
|
19
|
+
export interface ResolvedOpenWebUiIntegration {
|
|
20
|
+
/**
|
|
21
|
+
* API key for authentication.
|
|
22
|
+
*/
|
|
23
|
+
apiKey: string;
|
|
24
|
+
/**
|
|
25
|
+
* Environment name this integration references.
|
|
26
|
+
*/
|
|
27
|
+
environment: string;
|
|
28
|
+
/**
|
|
29
|
+
* Knowledge base ID.
|
|
30
|
+
*/
|
|
31
|
+
knowledgeId: string;
|
|
32
|
+
/**
|
|
33
|
+
* Integration name (key from integrations.openWebUi).
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* Output path from the referenced environment.
|
|
38
|
+
*/
|
|
39
|
+
outputPath: string;
|
|
40
|
+
/**
|
|
41
|
+
* OpenWebUI instance URL.
|
|
42
|
+
*/
|
|
43
|
+
url: string;
|
|
44
|
+
}
|
|
11
45
|
export interface CliConfig extends Omit<WebUiKnowledgeConfig, "docPropsPath" | "metadata" | "outputPath" | "routeDir"> {
|
|
12
46
|
envFilePath?: string;
|
|
13
47
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/open-web-ui-knowledge/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,kBAAkB,EAClB,0BAA0B,EAC3B,MAAM,sBAAsB,CAAA;AAE7B,MAAM,WAAW,oBAAqB,SAAQ,0BAA0B;IACtE,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,kBAAkB,EAAE,CAAA;IACjC,UAAU,EAAE,UAAU,GAAG,YAAY,CAAA;IACrC,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,SACf,SAAQ,IAAI,CACV,oBAAoB,EACpB,cAAc,GAAG,UAAU,GAAG,YAAY,GAAG,UAAU,CACxD;IACD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAA;CACb"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/open-web-ui-knowledge/types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,kBAAkB,EAClB,0BAA0B,EAC3B,MAAM,sBAAsB,CAAA;AAE7B,MAAM,WAAW,oBAAqB,SAAQ,0BAA0B;IACtE,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,UAAU,CAAC,EAAE,kBAAkB,EAAE,CAAA;IACjC,UAAU,EAAE,UAAU,GAAG,YAAY,CAAA;IACrC,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;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,MAAM,WAAW,SACf,SAAQ,IAAI,CACV,oBAAoB,EACpB,cAAc,GAAG,UAAU,GAAG,YAAY,GAAG,UAAU,CACxD;IACD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAA;CACb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-knowledge.d.ts","sourceRoot":"","sources":["../../src/open-web-ui-knowledge/upload-knowledge.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"upload-knowledge.d.ts","sourceRoot":"","sources":["../../src/open-web-ui-knowledge/upload-knowledge.ts"],"names":[],"mappings":"AA+TA,wBAAgB,yBAAyB,SAwKxC"}
|