@autorag/librarian 2.4.1 → 2.5.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/NOTICE +68 -0
- package/README.md +72 -30
- package/dist/agent/agent.d.ts +74 -2
- package/dist/agent/emit-results-tool.d.ts +1 -2
- package/dist/agent/fast-answer-tool.d.ts +46 -0
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/peer-target-tool.d.ts +19 -0
- package/dist/agent/search-all-tool.d.ts +3 -0
- package/dist/agent/search-datasource-tool.d.ts +3 -0
- package/dist/agent/search-documents.d.ts +50 -5
- package/dist/agent/search-minsync-tool.d.ts +3 -0
- package/dist/agent/system-prompt.d.ts +1 -0
- package/dist/cli/commands/duplicates.d.ts +6 -0
- package/dist/cli/commands/gateway.d.ts +7 -0
- package/dist/cli/commands/lite-refresh.d.ts +10 -0
- package/dist/cli/commands/lite-retrieve.d.ts +33 -0
- package/dist/cli/commands/lite.d.ts +3 -0
- package/dist/cli/commands/models.d.ts +18 -0
- package/dist/cli/commands/p2p-policy.d.ts +2 -0
- package/dist/cli/commands/p2p.d.ts +7 -0
- package/dist/cli/commands/report.d.ts +3 -0
- package/dist/cli/commands/serve.d.ts +18 -0
- package/dist/cli/commands/setup.d.ts +2 -0
- package/dist/cli/commands/status.d.ts +2 -0
- package/dist/cli/commands/tui.d.ts +1 -1
- package/dist/cli/commands/watch.d.ts +2 -0
- package/dist/cli/config.d.ts +20 -0
- package/dist/cli/index.js +7911 -2518
- package/dist/cli/output.d.ts +6 -0
- package/dist/cli/setup.d.ts +59 -0
- package/dist/core.d.ts +67 -0
- package/dist/core.js +18172 -0
- package/dist/datasource/access-context.d.ts +1 -1
- package/dist/datasource/connector-skill.d.ts +1 -1
- package/dist/datasource/connector.d.ts +1 -1
- package/dist/datasource/index.d.ts +0 -1
- package/dist/datasource/result-filter.d.ts +1 -1
- package/dist/datasource/skills/discrawl/client.d.ts +6 -2
- package/dist/datasource/skills/discrawl/index.d.ts +1 -1
- package/dist/datasource/skills/discrawl/skill.d.ts +2 -1
- package/dist/datasource/skills/discrawl/types.d.ts +22 -0
- package/dist/datasource/skills/factory.d.ts +2 -1
- package/dist/datasource/skills/katok/client.d.ts +4 -7
- package/dist/datasource/skills/katok/types.d.ts +1 -6
- package/dist/embedding-runtime/cache.d.ts +21 -0
- package/dist/embedding-runtime/gateway.d.ts +27 -0
- package/dist/embedding-runtime/index.d.ts +120 -0
- package/dist/embedding-runtime/manifest.d.ts +24 -0
- package/dist/embedding-runtime/supervisor.d.ts +74 -0
- package/dist/embedding-runtime/types.d.ts +66 -0
- package/dist/filesystem/source-paths.d.ts +27 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +13214 -8659
- package/dist/minsync/client.d.ts +26 -1
- package/dist/minsync/embedder-config.d.ts +12 -0
- package/dist/minsync/index.d.ts +4 -3
- package/dist/minsync/installer.d.ts +7 -1
- package/dist/minsync/local-embedder.d.ts +16 -0
- package/dist/minsync/method.d.ts +8 -2
- package/dist/minsync/types.d.ts +9 -0
- package/dist/mirror/index.d.ts +1 -1
- package/dist/mirror/paths.d.ts +2 -0
- package/dist/mirror/sync.d.ts +1 -0
- package/dist/observability/run-log.d.ts +2 -0
- package/dist/p2p/approval-store.d.ts +31 -0
- package/dist/p2p/egress-gate.d.ts +22 -0
- package/dist/p2p/file-sharing.d.ts +33 -0
- package/dist/p2p/injection-classifier.d.ts +33 -0
- package/dist/p2p/injection-gate.d.ts +37 -0
- package/dist/p2p/pii-gate.d.ts +47 -0
- package/dist/p2p/policy-filter.d.ts +15 -0
- package/dist/p2p/policy.d.ts +77 -0
- package/dist/p2p/simplex-server.d.ts +95 -0
- package/dist/p2p/simplex-transport.d.ts +38 -0
- package/dist/p2p/wire.d.ts +39 -0
- package/dist/process/terminate-tree.d.ts +20 -0
- package/dist/retrieval/engine.d.ts +123 -0
- package/dist/retrieval/index.d.ts +1 -0
- package/licenses/apache-2.0.txt +202 -0
- package/licenses/embedding-assets.json +104 -0
- package/licenses/gemma-notice.txt +24 -0
- package/licenses/gemma-section-3.2-flow-down.txt +9 -0
- package/licenses/gemma-terms-of-use.html +4750 -0
- package/licenses/gemma-terms-of-use.txt +158 -0
- package/licenses/llama.cpp-MIT.txt +21 -0
- package/licenses/qwen3-embedding-notice.txt +13 -0
- package/package.json +19 -10
- package/skills/autorag/SKILL.md +16 -6
- package/skills/autorag-lite-search/SKILL.md +155 -0
- package/skills/autorag-lite-setup/SKILL.md +182 -0
- package/skills/autorag-setup/SKILL.md +58 -27
- package/dist/datasource/skills/gmail/connector.d.ts +0 -30
- package/dist/datasource/skills/gmail/index.d.ts +0 -2
- package/dist/datasource/skills/gmail/skill.d.ts +0 -24
|
@@ -39,5 +39,5 @@ export declare class DatasourceAccessContext {
|
|
|
39
39
|
* Datasources without the `scoped` capability bypass this predicate and
|
|
40
40
|
* are authorized only at the skill/tag level.
|
|
41
41
|
*/
|
|
42
|
-
allowedSourcesPredicate(_userScope?: string): (source: string) => boolean;
|
|
42
|
+
allowedSourcesPredicate(_userScope?: string, userScopes?: readonly string[]): (source: string) => boolean;
|
|
43
43
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared {@link DatasourceSkill} implementation for connector-backed
|
|
3
|
-
* datasources (Slack, Discord, Notion, GitHub, Google Drive,
|
|
3
|
+
* datasources (Slack, Discord, Notion, GitHub, Google Drive,
|
|
4
4
|
* local mail exports, RSS/news).
|
|
5
5
|
*
|
|
6
6
|
* Composition: a trusted {@link DatasourceConnector} fetches documents, a
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Connector contract shared by the built-in datasource skills (Slack, Discord,
|
|
3
|
-
* Notion, GitHub, Google Drive,
|
|
3
|
+
* Notion, GitHub, Google Drive, local mail exports,
|
|
4
4
|
* RSS/news).
|
|
5
5
|
*
|
|
6
6
|
* A *connector* is the trusted, server-configured bridge to one external
|
|
@@ -12,7 +12,6 @@ export { CLOUD_DRIVE_SKILL_DEFINITION, CloudDriveSkill, type CloudDriveSkillOpti
|
|
|
12
12
|
export { DEFAULT_DISCRAWL_EMBEDDING_MODEL, DEFAULT_DISCRAWL_MODE, DEFAULT_DISCRAWL_SOURCE, DiscrawlClient, type DiscrawlFailureReason, DiscrawlFtsMethod, DiscrawlHybridMethod, type DiscrawlOptions, type DiscrawlSearchHit, type DiscrawlSearchMode, type DiscrawlSearchOptions, type DiscrawlSearchResult, DiscrawlSemanticMethod, DiscrawlSkill, type DiscrawlSkillClient, type DiscrawlSkillOptions, type DiscrawlSourceKind, ENGLISH_ONLY_EMBEDDING_MODELS, } from "./skills/discrawl/index.js";
|
|
13
13
|
export { BUILTIN_DATASOURCE_SKILL_NAMES, type BuildDatasourceSkillsResult, buildDatasourceSkills, type DatasourceSkillConfig, type DatasourcesConfig, } from "./skills/factory.js";
|
|
14
14
|
export { GitHubConnector, type GitHubConnectorOptions, GitHubSkill, type GitHubSkillOptions, } from "./skills/github/index.js";
|
|
15
|
-
export { GmailConnector, type GmailConnectorOptions, GmailSkill, type GmailSkillOptions, } from "./skills/gmail/index.js";
|
|
16
15
|
export type { KatokFailureReason, KatokHit, KatokOptions, KatokSearchMode, KatokSearchOptions, KatokSearchResult, KatokSkillClient, KatokSkillOptions, } from "./skills/katok/index.js";
|
|
17
16
|
export { KatokBm25Method, KatokClient, KatokSemanticMethod, KatokSkill, } from "./skills/katok/index.js";
|
|
18
17
|
export { MailExportConnector, type MailExportConnectorOptions, MailExportSkill, type MailExportSkillOptions, } from "./skills/mail-export/index.js";
|
|
@@ -60,5 +60,5 @@ export declare class DatasourceResultFilter {
|
|
|
60
60
|
* is intersected with the trusted allow-scopes and can only narrow
|
|
61
61
|
* results. `undefined` means "no extra user restriction".
|
|
62
62
|
*/
|
|
63
|
-
filter(byMethod: ResultsByMethod, methods: readonly RetrievalMethod[], ctx: DatasourceAccessContext, userScope?: string): ResultsByMethod;
|
|
63
|
+
filter(byMethod: ResultsByMethod, methods: readonly RetrievalMethod[], ctx: DatasourceAccessContext, userScope?: string, userScopes?: readonly string[]): ResultsByMethod;
|
|
64
64
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DiscrawlDoctorResult, DiscrawlEmbedResult, DiscrawlOptions, DiscrawlSearchMode, DiscrawlSearchOptions, DiscrawlSearchResult, DiscrawlStatusResult, DiscrawlSyncResult } from "./types.js";
|
|
1
|
+
import type { DiscrawlDoctorResult, DiscrawlEmbeddingConfigResult, DiscrawlEmbeddingRuntime, DiscrawlEmbedResult, DiscrawlMetadataResult, DiscrawlOptions, DiscrawlSearchMode, DiscrawlSearchOptions, DiscrawlSearchResult, DiscrawlStatusResult, DiscrawlSyncResult } from "./types.js";
|
|
2
2
|
/**
|
|
3
3
|
* Thin external `discrawl` CLI wrapper. Every method spawns the `discrawl`
|
|
4
4
|
* binary as a child process, parses JSON from stdout, and returns a
|
|
@@ -12,12 +12,16 @@ import type { DiscrawlDoctorResult, DiscrawlEmbedResult, DiscrawlOptions, Discra
|
|
|
12
12
|
export declare class DiscrawlClient {
|
|
13
13
|
private readonly options;
|
|
14
14
|
constructor(options?: DiscrawlOptions);
|
|
15
|
+
configureEmbeddings(runtime: DiscrawlEmbeddingRuntime): Promise<DiscrawlEmbeddingConfigResult>;
|
|
16
|
+
prepareEmbeddings(): Promise<boolean>;
|
|
17
|
+
metadata(signal?: AbortSignal): Promise<DiscrawlMetadataResult>;
|
|
15
18
|
doctor(signal?: AbortSignal): Promise<DiscrawlDoctorResult>;
|
|
16
19
|
status(signal?: AbortSignal): Promise<DiscrawlStatusResult>;
|
|
17
20
|
sync(signal?: AbortSignal): Promise<DiscrawlSyncResult>;
|
|
18
|
-
embed(limit?: number, signal?: AbortSignal): Promise<DiscrawlEmbedResult>;
|
|
21
|
+
embed(limit?: number, rebuild?: boolean, signal?: AbortSignal): Promise<DiscrawlEmbedResult>;
|
|
19
22
|
search(mode: DiscrawlSearchMode, query: string, options?: DiscrawlSearchOptions): Promise<DiscrawlSearchResult>;
|
|
20
23
|
private runJson;
|
|
21
24
|
private run;
|
|
22
25
|
}
|
|
23
26
|
export declare function discrawlWorkspace(options: DiscrawlOptions): string | undefined;
|
|
27
|
+
export declare function nativeGatewayBaseUrl(baseUrl: string): string;
|
|
@@ -2,4 +2,4 @@ export { DiscrawlClient, discrawlWorkspace } from "./client.js";
|
|
|
2
2
|
export { DiscrawlFtsMethod, DiscrawlHybridMethod, type DiscrawlMethodOptions, type DiscrawlSearchClient, DiscrawlSemanticMethod, } from "./methods.js";
|
|
3
3
|
export { DISCRAWL_SOURCE_KIND, discrawlConfigPath, discrawlDatabasePath, discrawlDatasourceRoot, discrawlSourcePath, parseDiscrawlSourcePath, } from "./paths.js";
|
|
4
4
|
export { DiscrawlSkill, type DiscrawlSkillClient, type DiscrawlSkillOptions } from "./skill.js";
|
|
5
|
-
export { DEFAULT_DISCRAWL_BINARY, DEFAULT_DISCRAWL_EMBEDDING_MODEL, DEFAULT_DISCRAWL_EMBEDDING_PROVIDER, DEFAULT_DISCRAWL_MAX_BUFFER_BYTES, DEFAULT_DISCRAWL_MODE, DEFAULT_DISCRAWL_SOURCE, DEFAULT_DISCRAWL_TIMEOUT_MS, type DiscrawlDoctorInfo, type DiscrawlDoctorResult, type DiscrawlEmbedInfo, type DiscrawlEmbedResult, type DiscrawlFailure, type DiscrawlFailureReason, type DiscrawlMessage, type DiscrawlOptions, type DiscrawlSearchHit, type DiscrawlSearchMode, type DiscrawlSearchOptions, type DiscrawlSearchResult, type DiscrawlSourceKind, type DiscrawlStatusInfo, type DiscrawlStatusResult, type DiscrawlSyncInfo, type DiscrawlSyncResult, ENGLISH_ONLY_EMBEDDING_MODELS, } from "./types.js";
|
|
5
|
+
export { DEFAULT_DISCRAWL_BINARY, DEFAULT_DISCRAWL_EMBEDDING_MODEL, DEFAULT_DISCRAWL_EMBEDDING_PROVIDER, DEFAULT_DISCRAWL_MAX_BUFFER_BYTES, DEFAULT_DISCRAWL_MODE, DEFAULT_DISCRAWL_SOURCE, DEFAULT_DISCRAWL_TIMEOUT_MS, type DiscrawlDoctorInfo, type DiscrawlDoctorResult, type DiscrawlEmbeddingConfigResult, type DiscrawlEmbeddingRuntime, type DiscrawlEmbedInfo, type DiscrawlEmbedResult, type DiscrawlFailure, type DiscrawlFailureReason, type DiscrawlMessage, type DiscrawlMetadataInfo, type DiscrawlMetadataResult, type DiscrawlOptions, type DiscrawlSearchHit, type DiscrawlSearchMode, type DiscrawlSearchOptions, type DiscrawlSearchResult, type DiscrawlSourceKind, type DiscrawlStatusInfo, type DiscrawlStatusResult, type DiscrawlSyncInfo, type DiscrawlSyncResult, ENGLISH_ONLY_EMBEDDING_MODELS, } from "./types.js";
|
|
@@ -5,7 +5,8 @@ import type { DiscrawlDoctorResult, DiscrawlEmbedResult, DiscrawlSearchMode, Dis
|
|
|
5
5
|
export interface DiscrawlSkillClient extends DiscrawlSearchClient {
|
|
6
6
|
doctor(): Promise<DiscrawlDoctorResult>;
|
|
7
7
|
sync(): Promise<DiscrawlSyncResult>;
|
|
8
|
-
embed(limit?: number): Promise<DiscrawlEmbedResult>;
|
|
8
|
+
embed(limit?: number, rebuild?: boolean): Promise<DiscrawlEmbedResult>;
|
|
9
|
+
prepareEmbeddings?(): Promise<boolean>;
|
|
9
10
|
}
|
|
10
11
|
export interface DiscrawlSkillOptions {
|
|
11
12
|
readonly client: DiscrawlSkillClient;
|
|
@@ -50,6 +50,25 @@ export declare const DEFAULT_DISCRAWL_EMBEDDING_PROVIDER = "ollama";
|
|
|
50
50
|
* the katok client. The client spawns the `discrawl` binary as a child process
|
|
51
51
|
* — it never opens the Discord archive database directly.
|
|
52
52
|
*/
|
|
53
|
+
export interface DiscrawlEmbeddingRuntime {
|
|
54
|
+
readonly provider: string;
|
|
55
|
+
readonly model: string;
|
|
56
|
+
readonly baseUrl: string;
|
|
57
|
+
readonly dimensions: number;
|
|
58
|
+
readonly identity?: string;
|
|
59
|
+
}
|
|
60
|
+
export interface DiscrawlEmbeddingConfigResult {
|
|
61
|
+
readonly configured: boolean;
|
|
62
|
+
readonly rebuildRequired: boolean;
|
|
63
|
+
readonly diagnostic?: string;
|
|
64
|
+
}
|
|
65
|
+
export interface DiscrawlMetadataInfo {
|
|
66
|
+
readonly embeddingProvider?: string;
|
|
67
|
+
readonly embeddingModel?: string;
|
|
68
|
+
readonly embeddingDimensions?: number;
|
|
69
|
+
readonly embeddingIdentity?: string;
|
|
70
|
+
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
71
|
+
}
|
|
53
72
|
export interface DiscrawlOptions {
|
|
54
73
|
/** Explicit path to the `discrawl` binary. Defaults to a bare PATH lookup. */
|
|
55
74
|
readonly binaryPath?: string;
|
|
@@ -72,6 +91,8 @@ export interface DiscrawlOptions {
|
|
|
72
91
|
readonly guildId?: string;
|
|
73
92
|
/** Embedding provider understood by the native discrawl configuration. */
|
|
74
93
|
readonly embeddingProvider?: string;
|
|
94
|
+
/** AutoRAG-owned runtime to write into a managed workspace config. */
|
|
95
|
+
readonly embeddingRuntime?: DiscrawlEmbeddingRuntime;
|
|
75
96
|
/**
|
|
76
97
|
* Embedding model understood by the native discrawl configuration.
|
|
77
98
|
* English-only models are accepted but reported through a diagnostic.
|
|
@@ -184,6 +205,7 @@ export interface DiscrawlSearchOk {
|
|
|
184
205
|
}
|
|
185
206
|
export type DiscrawlDoctorResult = DiscrawlOk<DiscrawlDoctorInfo> | DiscrawlFailure;
|
|
186
207
|
export type DiscrawlStatusResult = DiscrawlOk<DiscrawlStatusInfo> | DiscrawlFailure;
|
|
208
|
+
export type DiscrawlMetadataResult = DiscrawlOk<DiscrawlMetadataInfo> | DiscrawlFailure;
|
|
187
209
|
export type DiscrawlSyncResult = DiscrawlOk<DiscrawlSyncInfo> | DiscrawlFailure;
|
|
188
210
|
export type DiscrawlEmbedResult = DiscrawlOk<DiscrawlEmbedInfo> | DiscrawlFailure;
|
|
189
211
|
export type DiscrawlSearchResult = DiscrawlSearchOk | DiscrawlFailure;
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* and reported so setup surfaces actionable (but path-opaque) feedback.
|
|
9
9
|
*/
|
|
10
10
|
import type { DatasourceSkill } from "../types.js";
|
|
11
|
+
import { type DiscrawlEmbeddingRuntime } from "./discrawl/index.js";
|
|
11
12
|
/** One configured datasource entry (the trusted `datasources.<name>` value). */
|
|
12
13
|
export interface DatasourceSkillConfig {
|
|
13
14
|
readonly enabled?: boolean;
|
|
@@ -41,4 +42,4 @@ export declare const BUILTIN_DATASOURCE_SKILL_NAMES: readonly string[];
|
|
|
41
42
|
* collected in `unknown` (never thrown) so callers can surface setup
|
|
42
43
|
* feedback without failing agent construction.
|
|
43
44
|
*/
|
|
44
|
-
export declare function buildDatasourceSkills(config: DatasourcesConfig | undefined, workspaceRoot?: string): BuildDatasourceSkillsResult;
|
|
45
|
+
export declare function buildDatasourceSkills(config: DatasourcesConfig | undefined, workspaceRoot?: string, embeddingRuntime?: DiscrawlEmbeddingRuntime): BuildDatasourceSkillsResult;
|
|
@@ -2,12 +2,9 @@ import type { KatokChunkResult, KatokContextResult, KatokDoctorResult, KatokInde
|
|
|
2
2
|
/**
|
|
3
3
|
* Thin external `katok` CLI wrapper. Every method spawns the `katok` binary as
|
|
4
4
|
* a child process, parses JSON from stdout, and returns a discriminated ok/fail
|
|
5
|
-
* union. No method throws for expected failures (missing binary,
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* Remote-embedding configuration is rejected before spawn, case-insensitively,
|
|
10
|
-
* so the spawned process can never egress embeddings to a remote endpoint.
|
|
5
|
+
* union. No method throws for expected failures (missing binary, CLI nonzero
|
|
6
|
+
* exit, timeout, oversized output, or invalid JSON). The client never opens the
|
|
7
|
+
* KakaoTalk database directly.
|
|
11
8
|
*/
|
|
12
9
|
export declare class KatokClient {
|
|
13
10
|
private readonly options;
|
|
@@ -19,6 +16,6 @@ export declare class KatokClient {
|
|
|
19
16
|
chunkGet(chunkId: string, signal?: AbortSignal): Promise<KatokChunkResult>;
|
|
20
17
|
context(chunkId: string, signal?: AbortSignal): Promise<KatokContextResult>;
|
|
21
18
|
parent(chunkId: string, signal?: AbortSignal): Promise<KatokParentResult>;
|
|
22
|
-
/** Single retrieval pipeline: build env,
|
|
19
|
+
/** Single retrieval pipeline: build env, spawn, parse-free raw result. */
|
|
23
20
|
private run;
|
|
24
21
|
}
|
|
@@ -39,7 +39,7 @@ export declare const DEFAULT_KATOK_OPTIONS: {
|
|
|
39
39
|
* every method returns a discriminated union with `ok: false` and one of these
|
|
40
40
|
* reasons.
|
|
41
41
|
*/
|
|
42
|
-
export type KatokFailureReason = "binary-missing" | "
|
|
42
|
+
export type KatokFailureReason = "binary-missing" | "nonzero-exit" | "spawn-error" | "timeout" | "aborted" | "stdout-too-large" | "stderr-too-large" | "invalid-json" | "invalid-shape";
|
|
43
43
|
/** Common failure payload shared by every method result union. */
|
|
44
44
|
export interface KatokFailure {
|
|
45
45
|
readonly ok: false;
|
|
@@ -50,11 +50,6 @@ export interface KatokFailure {
|
|
|
50
50
|
readonly stderr: string;
|
|
51
51
|
/** Exit code, or `null` when the process never exited normally. */
|
|
52
52
|
readonly code: number | null;
|
|
53
|
-
/**
|
|
54
|
-
* The offending environment key when `reason === "remote-embedding-rejected"`.
|
|
55
|
-
* A config key name (never a path, never the key's value).
|
|
56
|
-
*/
|
|
57
|
-
readonly violatingKey?: string;
|
|
58
53
|
readonly hits?: readonly unknown[];
|
|
59
54
|
}
|
|
60
55
|
/** A single indexed chat chunk returned by the katok CLI. */
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { CacheError } from "./types.js";
|
|
2
|
+
export interface CacheAsset {
|
|
3
|
+
readonly id: string;
|
|
4
|
+
readonly url: string;
|
|
5
|
+
readonly filename: string;
|
|
6
|
+
readonly sha256: string;
|
|
7
|
+
readonly kind?: "model" | "runtime";
|
|
8
|
+
readonly archiveMembers?: readonly string[];
|
|
9
|
+
}
|
|
10
|
+
export declare function cacheDirectory(kind: "models" | "runtime", cacheRoot?: string): string;
|
|
11
|
+
export interface CacheOptions {
|
|
12
|
+
readonly cacheRoot?: string;
|
|
13
|
+
readonly offline?: boolean;
|
|
14
|
+
readonly fetch?: typeof globalThis.fetch;
|
|
15
|
+
/** Total budget (ms) for a single asset download. Defaults to 10 minutes so large models can transfer. */
|
|
16
|
+
readonly downloadTimeoutMs?: number;
|
|
17
|
+
}
|
|
18
|
+
export declare function verifyCacheEntry(path: string, expectedSha256: string): Promise<string>;
|
|
19
|
+
export declare function hasVerifiedAsset(asset: CacheAsset, cacheRoot?: string): Promise<boolean>;
|
|
20
|
+
export declare function downloadAsset(asset: CacheAsset, options?: CacheOptions): Promise<string>;
|
|
21
|
+
export declare function importAsset(sourcePath: string, asset: CacheAsset, options?: CacheOptions): Promise<string>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { RuntimeProfile } from "./types.js";
|
|
2
|
+
export type GatewayErrorCode = "non-loopback-host" | "non-loopback-upstream" | "bad-request" | "batch-limit" | "upstream" | "upstream-violation" | "timeout";
|
|
3
|
+
export declare class GatewayError extends Error {
|
|
4
|
+
readonly code: GatewayErrorCode;
|
|
5
|
+
readonly status: number;
|
|
6
|
+
constructor(code: GatewayErrorCode, message: string, status?: number, options?: {
|
|
7
|
+
readonly cause?: unknown;
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
export interface StartEmbeddingGatewayOptions {
|
|
11
|
+
readonly profile: RuntimeProfile;
|
|
12
|
+
readonly host?: string;
|
|
13
|
+
readonly port?: number;
|
|
14
|
+
readonly upstreamUrl: string;
|
|
15
|
+
readonly fetch?: typeof fetch;
|
|
16
|
+
readonly maxInputs?: number;
|
|
17
|
+
readonly maxCharacters?: number;
|
|
18
|
+
readonly timeoutMs?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface EmbeddingGateway {
|
|
21
|
+
readonly host: string;
|
|
22
|
+
readonly port: number;
|
|
23
|
+
readonly url: string;
|
|
24
|
+
close(): Promise<void>;
|
|
25
|
+
}
|
|
26
|
+
export declare function isLoopbackHost(host: string): boolean;
|
|
27
|
+
export declare function startEmbeddingGateway(options: StartEmbeddingGatewayOptions): Promise<EmbeddingGateway>;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { type CacheOptions } from "./cache.js";
|
|
2
|
+
import { startEmbeddingGateway } from "./gateway.js";
|
|
3
|
+
import { type SupervisorStatus } from "./supervisor.js";
|
|
4
|
+
import type { BackendKind, HealthStatus, ProfileId, RuntimeProfile } from "./types.js";
|
|
5
|
+
export interface EmbeddingRuntimeCache {
|
|
6
|
+
downloadAsset(asset: {
|
|
7
|
+
id: string;
|
|
8
|
+
url: string;
|
|
9
|
+
filename: string;
|
|
10
|
+
sha256: string;
|
|
11
|
+
kind?: "model" | "runtime";
|
|
12
|
+
archiveMembers?: readonly string[];
|
|
13
|
+
}, options?: CacheOptions): Promise<string>;
|
|
14
|
+
importAsset(sourcePath: string, asset: {
|
|
15
|
+
id: string;
|
|
16
|
+
url: string;
|
|
17
|
+
filename: string;
|
|
18
|
+
sha256: string;
|
|
19
|
+
kind?: "model" | "runtime";
|
|
20
|
+
archiveMembers?: readonly string[];
|
|
21
|
+
}, options?: CacheOptions): Promise<string>;
|
|
22
|
+
verifyCacheEntry(path: string, expectedSha256: string): Promise<string>;
|
|
23
|
+
hasVerifiedAsset?(asset: {
|
|
24
|
+
id: string;
|
|
25
|
+
url: string;
|
|
26
|
+
filename: string;
|
|
27
|
+
sha256: string;
|
|
28
|
+
kind?: "model" | "runtime";
|
|
29
|
+
archiveMembers?: readonly string[];
|
|
30
|
+
}, cacheRoot?: string): Promise<boolean>;
|
|
31
|
+
}
|
|
32
|
+
export interface EmbeddingRuntimeSupervisor {
|
|
33
|
+
ensureRunning(): Promise<SupervisorStatus>;
|
|
34
|
+
shutdown(): Promise<void>;
|
|
35
|
+
status(): SupervisorStatus;
|
|
36
|
+
}
|
|
37
|
+
export interface EmbeddingRuntimeGateway {
|
|
38
|
+
readonly url: string;
|
|
39
|
+
close(): Promise<void>;
|
|
40
|
+
}
|
|
41
|
+
export interface EmbeddingRuntimeOptions {
|
|
42
|
+
cacheRoot?: string;
|
|
43
|
+
backend?: BackendKind;
|
|
44
|
+
offline?: boolean;
|
|
45
|
+
platform?: "darwin-arm64-metal" | "win-x64-cpu" | "win-x64-vulkan";
|
|
46
|
+
fetch?: typeof fetch;
|
|
47
|
+
supervisor?: EmbeddingRuntimeSupervisor;
|
|
48
|
+
cache?: EmbeddingRuntimeCache;
|
|
49
|
+
gatewayFactory?: (options: Parameters<typeof startEmbeddingGateway>[0]) => Promise<EmbeddingRuntimeGateway>;
|
|
50
|
+
}
|
|
51
|
+
export interface EnsureRuntimeOptions extends EmbeddingRuntimeOptions {
|
|
52
|
+
profileId?: ProfileId;
|
|
53
|
+
/** Refuse downloads; used by MinSync refresh/query paths. */
|
|
54
|
+
cachedOnly?: boolean;
|
|
55
|
+
}
|
|
56
|
+
export interface RuntimeIdentity {
|
|
57
|
+
readonly profileId: ProfileId;
|
|
58
|
+
readonly provider: string;
|
|
59
|
+
readonly model: string;
|
|
60
|
+
readonly dimension: number;
|
|
61
|
+
readonly runtimeBuild: string;
|
|
62
|
+
readonly modelRevision: string;
|
|
63
|
+
readonly artifactSha256: string;
|
|
64
|
+
}
|
|
65
|
+
export interface EnsuredRuntime {
|
|
66
|
+
readonly baseUrl: string;
|
|
67
|
+
readonly profile: RuntimeProfile;
|
|
68
|
+
readonly identity: RuntimeIdentity;
|
|
69
|
+
readonly supervisor: SupervisorStatus;
|
|
70
|
+
}
|
|
71
|
+
export interface RuntimeStatus {
|
|
72
|
+
readonly state: SupervisorStatus["state"];
|
|
73
|
+
readonly backend: BackendKind;
|
|
74
|
+
readonly model: string;
|
|
75
|
+
readonly pid?: number;
|
|
76
|
+
readonly port?: number;
|
|
77
|
+
readonly uptimeMs?: number;
|
|
78
|
+
readonly lastError?: string;
|
|
79
|
+
readonly profileId?: ProfileId;
|
|
80
|
+
readonly baseUrl?: string;
|
|
81
|
+
readonly health: HealthStatus;
|
|
82
|
+
}
|
|
83
|
+
export declare function createEmbeddingRuntime(options?: EmbeddingRuntimeOptions): {
|
|
84
|
+
resolveRuntimeProfile: (profileId?: ProfileId) => RuntimeProfile;
|
|
85
|
+
ensureRuntime: (input?: EnsureRuntimeOptions) => Promise<EnsuredRuntime>;
|
|
86
|
+
releaseRuntimeHandles: () => Promise<void>;
|
|
87
|
+
stopRuntime: () => Promise<void>;
|
|
88
|
+
runtimeStatus: () => Promise<RuntimeStatus>;
|
|
89
|
+
prefetchModel: (profileId?: ProfileId) => Promise<{
|
|
90
|
+
profileId: ProfileId;
|
|
91
|
+
path: string;
|
|
92
|
+
}>;
|
|
93
|
+
importModel: (profileId: ProfileId | undefined, sourcePath: string) => Promise<{
|
|
94
|
+
profileId: ProfileId;
|
|
95
|
+
path: string;
|
|
96
|
+
}>;
|
|
97
|
+
verifyModel: (profileId?: ProfileId) => Promise<{
|
|
98
|
+
profileId: ProfileId;
|
|
99
|
+
path: string;
|
|
100
|
+
hash: string;
|
|
101
|
+
}>;
|
|
102
|
+
};
|
|
103
|
+
export declare const resolveRuntimeProfile: (profileId?: ProfileId) => RuntimeProfile;
|
|
104
|
+
export declare const ensureRuntime: (input?: EnsureRuntimeOptions) => Promise<EnsuredRuntime>;
|
|
105
|
+
export declare const releaseRuntimeHandles: () => Promise<void>;
|
|
106
|
+
export declare const stopRuntime: () => Promise<void>;
|
|
107
|
+
export declare const runtimeStatus: () => Promise<RuntimeStatus>;
|
|
108
|
+
export declare const prefetchModel: (profileId?: ProfileId) => Promise<{
|
|
109
|
+
profileId: ProfileId;
|
|
110
|
+
path: string;
|
|
111
|
+
}>;
|
|
112
|
+
export declare const importModel: (profileId: ProfileId | undefined, sourcePath: string) => Promise<{
|
|
113
|
+
profileId: ProfileId;
|
|
114
|
+
path: string;
|
|
115
|
+
}>;
|
|
116
|
+
export declare const verifyModel: (profileId?: ProfileId) => Promise<{
|
|
117
|
+
profileId: ProfileId;
|
|
118
|
+
path: string;
|
|
119
|
+
hash: string;
|
|
120
|
+
}>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { BackendKind, PlatformId, ProfileId, RuntimeAsset, RuntimeProfile } from "./types.js";
|
|
2
|
+
export declare function resolveProfile(profileId: ProfileId): RuntimeProfile;
|
|
3
|
+
export declare function platformRuntimeAsset(platform: PlatformId): RuntimeAsset;
|
|
4
|
+
export declare function selectPlatformAsset(platform: PlatformId, backend: BackendKind, vulkanAvailable?: boolean): RuntimeAsset;
|
|
5
|
+
export declare const MODEL_ASSETS: {
|
|
6
|
+
readonly qwen3: {
|
|
7
|
+
readonly url: "https://huggingface.co/Qwen/Qwen3-Embedding-0.6B-GGUF/resolve/370f27d7550e0def9b39c1f16d3fbaa13aa67728/Qwen3-Embedding-0.6B-Q8_0.gguf";
|
|
8
|
+
readonly revision: "370f27d7550e0def9b39c1f16d3fbaa13aa67728";
|
|
9
|
+
readonly sha256: "06507c7b42688469c4e7298b0a1e16deff06caf291cf0a5b278c308249c3e439";
|
|
10
|
+
readonly license: "Apache-2.0";
|
|
11
|
+
readonly noticeReference: "Qwen3 model card and Apache-2.0 license";
|
|
12
|
+
};
|
|
13
|
+
readonly embeddinggemma: {
|
|
14
|
+
readonly url: "https://huggingface.co/ggml-org/embeddinggemma-300M-GGUF/resolve/0f741b5a6585bd53aeb15cd1372c56f2a0f65e12/embeddinggemma-300M-Q8_0.gguf";
|
|
15
|
+
readonly revision: "0f741b5a6585bd53aeb15cd1372c56f2a0f65e12";
|
|
16
|
+
readonly sha256: "b5ce9d77a3fc4b3b39ccb5643c36777911cc4eb46a66962eadfa3f5f60490d63";
|
|
17
|
+
readonly license: "Gemma Terms of Use";
|
|
18
|
+
readonly noticeReference: "Google EmbeddingGemma model card and Gemma Terms of Use";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export declare const MODEL_ASSET_URLS: {
|
|
22
|
+
readonly qwen3: "https://huggingface.co/Qwen/Qwen3-Embedding-0.6B-GGUF/resolve/370f27d7550e0def9b39c1f16d3fbaa13aa67728/Qwen3-Embedding-0.6B-Q8_0.gguf";
|
|
23
|
+
readonly embeddinggemma: "https://huggingface.co/ggml-org/embeddinggemma-300M-GGUF/resolve/0f741b5a6585bd53aeb15cd1372c56f2a0f65e12/embeddinggemma-300M-Q8_0.gguf";
|
|
24
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { type ChildProcess, type SpawnOptions } from "node:child_process";
|
|
2
|
+
import type { BackendKind, ProfileId } from "./types.js";
|
|
3
|
+
export type SupervisorState = "stopped" | "starting" | "ready" | "failed" | "stopping";
|
|
4
|
+
export interface SupervisorStatus {
|
|
5
|
+
readonly state: SupervisorState;
|
|
6
|
+
readonly pid?: number;
|
|
7
|
+
readonly port?: number;
|
|
8
|
+
readonly backend: BackendKind;
|
|
9
|
+
readonly model: string;
|
|
10
|
+
readonly uptimeMs?: number;
|
|
11
|
+
readonly lastError?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class SupervisorError extends Error {
|
|
14
|
+
readonly code: "lock-conflict" | "readiness-timeout" | "spawn" | "exited" | "shutdown" | "missing-executable";
|
|
15
|
+
constructor(code: SupervisorError["code"], message: string, options?: {
|
|
16
|
+
readonly cause?: unknown;
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
type SpawnLike = (command: string, args: readonly string[], options: SpawnOptions) => ChildProcess;
|
|
20
|
+
type KillLike = (pid: number, signal?: NodeJS.Signals | number) => void;
|
|
21
|
+
export interface SupervisorOptions {
|
|
22
|
+
readonly cacheRoot?: string;
|
|
23
|
+
readonly profileId?: ProfileId;
|
|
24
|
+
readonly backend?: BackendKind;
|
|
25
|
+
readonly executablePath?: string;
|
|
26
|
+
readonly modelPath?: string;
|
|
27
|
+
readonly readinessTimeoutMs?: number;
|
|
28
|
+
readonly readinessIntervalMs?: number;
|
|
29
|
+
readonly logMaxBytes?: number;
|
|
30
|
+
readonly fetch?: typeof globalThis.fetch;
|
|
31
|
+
readonly spawn?: SpawnLike;
|
|
32
|
+
readonly kill?: KillLike;
|
|
33
|
+
readonly platform?: NodeJS.Platform;
|
|
34
|
+
}
|
|
35
|
+
export declare const DEFAULT_READINESS_TIMEOUT_MS = 60000;
|
|
36
|
+
export declare class EmbeddingRuntimeSupervisor {
|
|
37
|
+
private readonly root;
|
|
38
|
+
private readonly backend;
|
|
39
|
+
private readonly executablePath;
|
|
40
|
+
private readonly modelPath;
|
|
41
|
+
private readonly timeoutMs;
|
|
42
|
+
private readonly intervalMs;
|
|
43
|
+
private readonly logMaxBytes;
|
|
44
|
+
private readonly spawnProcess;
|
|
45
|
+
private readonly killProcess;
|
|
46
|
+
private readonly fetchHealth;
|
|
47
|
+
private readonly osPlatform;
|
|
48
|
+
private readonly defaultExecutable;
|
|
49
|
+
private child?;
|
|
50
|
+
private adoptedPid?;
|
|
51
|
+
private startedAt?;
|
|
52
|
+
private currentPort?;
|
|
53
|
+
private state;
|
|
54
|
+
private lastError?;
|
|
55
|
+
private restartCount;
|
|
56
|
+
private shutdownRequested;
|
|
57
|
+
private stopping?;
|
|
58
|
+
constructor(options?: SupervisorOptions);
|
|
59
|
+
ensureRunning(): Promise<SupervisorStatus>;
|
|
60
|
+
status(): SupervisorStatus;
|
|
61
|
+
shutdown(): Promise<void>;
|
|
62
|
+
private adoptExistingRuntime;
|
|
63
|
+
private acquireLock;
|
|
64
|
+
private resolveExecutable;
|
|
65
|
+
private startChild;
|
|
66
|
+
private recoverUnexpectedExit;
|
|
67
|
+
private waitUntilReady;
|
|
68
|
+
private stopAdopted;
|
|
69
|
+
private stopChild;
|
|
70
|
+
private cleanupState;
|
|
71
|
+
private appendLog;
|
|
72
|
+
private readLog;
|
|
73
|
+
}
|
|
74
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export type BackendKind = "auto" | "cpu" | "vulkan";
|
|
2
|
+
export type PlatformId = "darwin-arm64-metal" | "win-x64-cpu" | "win-x64-vulkan";
|
|
3
|
+
export type ProfileId = "qwen3-embedding-0.6b" | "embeddinggemma-300m";
|
|
4
|
+
export interface ProtocolCapabilities {
|
|
5
|
+
readonly healthz: boolean;
|
|
6
|
+
readonly embed: boolean;
|
|
7
|
+
readonly openaiCompatible: boolean;
|
|
8
|
+
readonly ollamaCompatible: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface RuntimeProfile {
|
|
11
|
+
readonly profileId: ProfileId;
|
|
12
|
+
readonly provider: string;
|
|
13
|
+
readonly model: string;
|
|
14
|
+
readonly dimension: number;
|
|
15
|
+
readonly queryPrefix: string;
|
|
16
|
+
readonly passagePrefix: string;
|
|
17
|
+
readonly runtimeBuild: string;
|
|
18
|
+
readonly modelRevision: string;
|
|
19
|
+
readonly artifactSha256: string;
|
|
20
|
+
readonly backend: BackendKind;
|
|
21
|
+
readonly protocolCapabilities: ProtocolCapabilities;
|
|
22
|
+
}
|
|
23
|
+
export interface HealthResult {
|
|
24
|
+
readonly ok: true;
|
|
25
|
+
readonly profileId: ProfileId;
|
|
26
|
+
readonly dimension: number;
|
|
27
|
+
readonly runtimeBuild: string;
|
|
28
|
+
}
|
|
29
|
+
export interface HealthFailure {
|
|
30
|
+
readonly ok: false;
|
|
31
|
+
readonly code: "unavailable" | "starting" | "incompatible" | "failed";
|
|
32
|
+
readonly message: string;
|
|
33
|
+
readonly retryable: boolean;
|
|
34
|
+
}
|
|
35
|
+
export type HealthStatus = HealthResult | HealthFailure;
|
|
36
|
+
export interface FailureResult {
|
|
37
|
+
readonly ok: false;
|
|
38
|
+
readonly code: string;
|
|
39
|
+
readonly message: string;
|
|
40
|
+
readonly cause?: unknown;
|
|
41
|
+
}
|
|
42
|
+
export declare class CacheError extends Error {
|
|
43
|
+
readonly code: "invalid-hash" | "offline-missing" | "download" | "hash-mismatch" | "io" | "extraction" | "missing-member";
|
|
44
|
+
readonly path?: string;
|
|
45
|
+
constructor(code: CacheError["code"], message: string, options?: {
|
|
46
|
+
readonly path?: string;
|
|
47
|
+
readonly cause?: unknown;
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
export interface ModelAsset {
|
|
51
|
+
readonly url: string;
|
|
52
|
+
readonly revision: string;
|
|
53
|
+
readonly sha256: string;
|
|
54
|
+
readonly license: string;
|
|
55
|
+
readonly noticeReference: string;
|
|
56
|
+
}
|
|
57
|
+
export interface RuntimeAsset {
|
|
58
|
+
readonly id: string;
|
|
59
|
+
readonly url: string;
|
|
60
|
+
readonly filename: string;
|
|
61
|
+
readonly sha256: string;
|
|
62
|
+
readonly version: string;
|
|
63
|
+
readonly platform: PlatformId;
|
|
64
|
+
readonly archiveMembers: readonly string[];
|
|
65
|
+
readonly kind: "runtime";
|
|
66
|
+
}
|
|
@@ -14,6 +14,13 @@ export interface ResolvedVirtualSource {
|
|
|
14
14
|
readonly realPath: string;
|
|
15
15
|
readonly sourceId: string;
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* True when `source` is an absolute filesystem path on any supported OS
|
|
19
|
+
* (POSIX `/...`, Windows drive `C:\` or `C:/`, or UNC `\\...`).
|
|
20
|
+
* Platform-independent so peer wire ids behave identically on macOS, Linux,
|
|
21
|
+
* and Windows servers.
|
|
22
|
+
*/
|
|
23
|
+
export declare function isFilesystemAbsolutePath(source: string): boolean;
|
|
17
24
|
/**
|
|
18
25
|
* Normalize an opaque virtual source id. Returns the normalized id, or
|
|
19
26
|
* `undefined` when the input is syntactically invalid or unsafe (no leading
|
|
@@ -21,6 +28,26 @@ export interface ResolvedVirtualSource {
|
|
|
21
28
|
* and never returns a real path — failures are signaled as `undefined`.
|
|
22
29
|
*/
|
|
23
30
|
export declare function normalizeVirtualPath(virtual: string | undefined | null): string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Canonicalize any retrieval source form to the canonical virtual source id:
|
|
33
|
+
*
|
|
34
|
+
* 1. An id already inside a configured root's virtual namespace is validated
|
|
35
|
+
* and returned unchanged (modulo separator cleanup).
|
|
36
|
+
* 2. An OS-absolute real path contained in a configured source root becomes
|
|
37
|
+
* that root's virtual id (`/<prefix>/<relative>`); the longest containing
|
|
38
|
+
* root wins for nested roots.
|
|
39
|
+
* 3. A datasource slash identity (`/kakao/<instance>/chunks/<chunk>`) is a
|
|
40
|
+
* virtual id in a non-filesystem namespace and passes through validation.
|
|
41
|
+
* 4. An absolute filesystem path outside every root passes through as its
|
|
42
|
+
* own canonical form — backslashes are converted to forward slashes so
|
|
43
|
+
* Windows drive/UNC paths canonicalize identically on every host — letting
|
|
44
|
+
* operators write policy globs against real absolute paths.
|
|
45
|
+
*
|
|
46
|
+
* Everything else fails closed as `undefined`: traversal segments, URL
|
|
47
|
+
* schemes (including the retired `kakao:<chat>` colon scheme), backslashes in
|
|
48
|
+
* non-absolute sources, and empty input.
|
|
49
|
+
*/
|
|
50
|
+
export declare function normalizeSource(source: string, sourceRoots: readonly SourceRoot[]): string | undefined;
|
|
24
51
|
/**
|
|
25
52
|
* Exact-prefix boundary match: `/docs` matches `/docs` and `/docs/...` but NOT
|
|
26
53
|
* `/docs-2`. Prevents prefix confusion between sibling roots like `/docs` and
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { AutoRAGAgent, type AutoRAGAgentOptions, type AutoRAGRefreshComponentStatus, type AutoRAGRefreshOptions, type AutoRAGRefreshResult, type AutoRAGRefreshStatus, type AutoRAGWatchRefreshHandle, type AutoRAGWatchRefreshOptions, type AutoRefreshOptions, type RefreshMethod, } from "./agent/agent.js";
|
|
2
|
-
export { type AutoRAGResultsDetails, createEmitResultsTool, EMIT_AUTORAG_RESULTS_TOOL_NAME, type SearchDocumentDiagnostic, type SearchDocumentDiagnosticCode, type SearchDocumentDiagnosticSeverity, type SearchDocumentsResponse, type SearchDocumentsStreamEvent, type SearchDocumentWarning, } from "./agent/index.js";
|
|
2
|
+
export { type AutoRAGResultsDetails, createEmitResultsTool, EMIT_AUTORAG_RESULTS_TOOL_NAME, emitResultsSchema, type SearchDocumentDiagnostic, type SearchDocumentDiagnosticCode, type SearchDocumentDiagnosticSeverity, type SearchDocumentsResponse, type SearchDocumentsStreamEvent, type SearchDocumentWarning, } from "./agent/index.js";
|
|
3
3
|
export { buildSystemPrompt, type SystemPromptConfig } from "./agent/system-prompt.js";
|
|
4
|
+
export { AutoRAGLite, type AutoRAGLiteOptions, buildAgentOptions, type CliConfig, createAutoRAGLite, type ResolveConfigInput, resolveConfig, resolveConfigReadOnly, writeConfigObject, writeDefaultConfig, } from "./core.js";
|
|
4
5
|
export * from "./datasource/index.js";
|
|
5
6
|
export * from "./dupey/index.js";
|
|
6
7
|
export * from "./jikji/index.js";
|