@autorag/librarian 2.4.2 → 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 +71 -29
- package/dist/agent/agent.d.ts +65 -1
- package/dist/agent/fast-answer-tool.d.ts +46 -0
- 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/gateway.d.ts +7 -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/serve.d.ts +18 -0
- package/dist/cli/commands/setup.d.ts +2 -0
- package/dist/cli/commands/tui.d.ts +1 -1
- package/dist/cli/config.d.ts +20 -0
- package/dist/cli/index.js +6285 -1613
- package/dist/cli/output.d.ts +6 -0
- package/dist/cli/setup.d.ts +59 -0
- package/dist/core.js +4657 -1271
- 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/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.js +4663 -1274
- package/dist/minsync/client.d.ts +24 -0
- package/dist/minsync/embedder-config.d.ts +12 -0
- package/dist/minsync/index.d.ts +4 -3
- package/dist/minsync/local-embedder.d.ts +16 -0
- package/dist/minsync/method.d.ts +3 -0
- package/dist/minsync/types.d.ts +9 -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/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 +14 -9
- package/skills/autorag/SKILL.md +16 -6
- package/skills/autorag-lite-setup/SKILL.md +2 -2
- package/skills/autorag-setup/SKILL.md +7 -9
- 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
package/dist/cli/output.d.ts
CHANGED
|
@@ -11,6 +11,12 @@ export interface RenderOptions {
|
|
|
11
11
|
export declare function renderRefresh(result: AutoRAGRefreshResult, opts: RenderOptions): string;
|
|
12
12
|
export declare function renderStatus(status: AutoRAGRefreshStatus, opts: RenderOptions): string;
|
|
13
13
|
export declare function renderSearch(resp: SearchDocumentsResponse, opts: RenderOptions): string;
|
|
14
|
+
/**
|
|
15
|
+
* Render the two-phase search's immediate first answer. Kept distinct from
|
|
16
|
+
* the final response so callers can show "fast answer → verified answer"
|
|
17
|
+
* progression; the JSON shape wraps the normal search envelope.
|
|
18
|
+
*/
|
|
19
|
+
export declare function renderPreliminary(resp: SearchDocumentsResponse, opts: RenderOptions): string;
|
|
14
20
|
export declare function renderMemory(schema: MemorySchemaV4, opts: RenderOptions): string;
|
|
15
21
|
export declare function renderFeedback(result: {
|
|
16
22
|
applied: boolean;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { type RuntimeStatus } from "../embedding-runtime/index.js";
|
|
2
|
+
import { resolveProfile } from "../embedding-runtime/manifest.js";
|
|
3
|
+
import type { ProfileId } from "../embedding-runtime/types.js";
|
|
4
|
+
import { type FileLockHandle } from "../filesystem/file-lock.js";
|
|
5
|
+
export type SetupDatasourceState = "configured" | "skipped" | "blocked";
|
|
6
|
+
export interface SetupDatasourceReport {
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly state: SetupDatasourceState;
|
|
9
|
+
readonly reason?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface SetupReport {
|
|
12
|
+
readonly ok: boolean;
|
|
13
|
+
readonly mode: "semantic" | "bm25";
|
|
14
|
+
readonly runtime: {
|
|
15
|
+
readonly state: string;
|
|
16
|
+
readonly health: boolean;
|
|
17
|
+
readonly model: string;
|
|
18
|
+
};
|
|
19
|
+
readonly model: {
|
|
20
|
+
readonly valid: boolean;
|
|
21
|
+
readonly profile: ProfileId;
|
|
22
|
+
};
|
|
23
|
+
readonly datasources: readonly SetupDatasourceReport[];
|
|
24
|
+
readonly remediation?: string;
|
|
25
|
+
readonly changed: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface SetupRuntime {
|
|
28
|
+
runtimeStatus(): Promise<RuntimeStatus>;
|
|
29
|
+
verifyModel(profileId?: ProfileId): Promise<{
|
|
30
|
+
profileId: ProfileId;
|
|
31
|
+
path: string;
|
|
32
|
+
hash: string;
|
|
33
|
+
}>;
|
|
34
|
+
ensureRuntime?(input?: {
|
|
35
|
+
profileId?: ProfileId;
|
|
36
|
+
}): Promise<{
|
|
37
|
+
baseUrl: string;
|
|
38
|
+
profile: ReturnType<typeof resolveProfile>;
|
|
39
|
+
identity: {
|
|
40
|
+
provider: string;
|
|
41
|
+
model: string;
|
|
42
|
+
dimension: number;
|
|
43
|
+
profileId: ProfileId;
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
46
|
+
}
|
|
47
|
+
export interface SetupDeps {
|
|
48
|
+
readonly runtime?: SetupRuntime;
|
|
49
|
+
readonly env?: NodeJS.ProcessEnv;
|
|
50
|
+
readonly pathExists?: (path: string) => boolean;
|
|
51
|
+
readonly executable?: (name: string) => string | undefined;
|
|
52
|
+
readonly acquireLock?: (path: string) => FileLockHandle;
|
|
53
|
+
}
|
|
54
|
+
export declare function runSetup(options: {
|
|
55
|
+
configPath: string;
|
|
56
|
+
workspacePath: string;
|
|
57
|
+
profileId?: ProfileId;
|
|
58
|
+
deps?: SetupDeps;
|
|
59
|
+
}): Promise<SetupReport>;
|