@autorag/librarian 2.10.4 → 2.10.6
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 +9 -9
- package/README.md +32 -17
- package/dist/agent/agent.d.ts +63 -51
- package/dist/agent/context-token-guard.d.ts +11 -0
- package/dist/agent/discord-remote.d.ts +30 -0
- package/dist/agent/embedding-controls.d.ts +22 -0
- package/dist/agent/index.d.ts +1 -2
- package/dist/agent/pi-session.d.ts +21 -1
- package/dist/agent/query-decomposition.d.ts +1 -1
- package/dist/agent/search-documents.d.ts +2 -2
- package/dist/agent/system-prompt.d.ts +1 -1
- package/dist/agent/web-search-tool.d.ts +2 -2
- package/dist/cli/commands/models.d.ts +0 -14
- package/dist/cli/commands/search.d.ts +3 -4
- package/dist/cli/config.d.ts +7 -19
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +6056 -9408
- package/dist/cli/setup.d.ts +13 -36
- package/dist/cli/whatsapp-extension.d.ts +21 -0
- package/dist/cloud/config.d.ts +3 -3
- package/dist/core.js +7126 -9804
- package/dist/datasource/embedding-env.d.ts +29 -0
- package/dist/datasource/sidecar/config.d.ts +3 -0
- package/dist/datasource/sidecar/index.d.ts +1 -1
- package/dist/datasource/skills/discrawl/client.d.ts +1 -0
- package/dist/datasource/skills/discrawl/embedding.d.ts +17 -0
- package/dist/datasource/skills/discrawl/types.d.ts +11 -3
- package/dist/datasource/skills/factory.d.ts +14 -1
- package/dist/datasource/skills/github-gist/semantic.d.ts +5 -5
- package/dist/datasource/skills/github-gist/skill.d.ts +2 -3
- package/dist/datasource/skills/lazykatok/types.d.ts +9 -1
- package/dist/datasource/skills/mailcrawl/types.d.ts +9 -1
- package/dist/embedding/daemon.d.ts +57 -0
- package/dist/embedding/embedder.d.ts +59 -0
- package/dist/embedding/http-embedder.d.ts +28 -0
- package/dist/embedding/in-process.d.ts +19 -0
- package/dist/embedding/index.d.ts +28 -0
- package/dist/embedding/managed.d.ts +44 -0
- package/dist/embedding/prefixes.d.ts +18 -0
- package/dist/embedding/settings.d.ts +9 -0
- package/dist/index.js +7149 -9829
- package/dist/mcp/index.js +7146 -9824
- package/dist/memory/context.d.ts +1 -1
- package/dist/memory/similar-queries.d.ts +1 -1
- package/dist/minsync/binary.d.ts +21 -0
- package/dist/minsync/client.d.ts +19 -10
- package/dist/minsync/embedder-config.d.ts +11 -1
- package/dist/minsync/index.d.ts +1 -1
- package/dist/minsync/installer.d.ts +1 -1
- package/dist/minsync/kiwi.d.ts +17 -0
- package/dist/minsync/lexical-language.d.ts +18 -0
- package/dist/minsync/method.d.ts +3 -11
- package/dist/minsync/process.d.ts +1 -0
- package/dist/minsync/types.d.ts +9 -2
- package/dist/retrieval/rerank.d.ts +10 -3
- package/dist/web/search/types.d.ts +22 -18
- package/package.json +4 -3
- package/skills/autorag/SKILL.md +3 -8
- package/skills/autorag-doctor/SKILL.md +47 -26
- package/skills/autorag-lite-setup/SKILL.md +8 -8
- package/skills/autorag-setup/SKILL.md +39 -23
- package/dist/agent/peer-target-tool.d.ts +0 -19
- package/dist/agent/query-peer-tool.d.ts +0 -51
- package/dist/cli/commands/gateway.d.ts +0 -7
- package/dist/cli/commands/p2p-policy.d.ts +0 -2
- package/dist/cli/commands/p2p.d.ts +0 -7
- package/dist/cli/commands/serve.d.ts +0 -19
- package/dist/embedding-runtime/cache.d.ts +0 -30
- package/dist/embedding-runtime/gateway-embedder.d.ts +0 -41
- package/dist/embedding-runtime/gateway.d.ts +0 -27
- package/dist/embedding-runtime/index.d.ts +0 -120
- package/dist/embedding-runtime/manifest.d.ts +0 -20
- package/dist/embedding-runtime/supervisor.d.ts +0 -74
- package/dist/embedding-runtime/types.d.ts +0 -70
- package/dist/p2p/approval-store.d.ts +0 -32
- package/dist/p2p/egress-gate.d.ts +0 -22
- package/dist/p2p/file-sharing.d.ts +0 -33
- package/dist/p2p/injection-classifier.d.ts +0 -33
- package/dist/p2p/injection-gate.d.ts +0 -37
- package/dist/p2p/pii-gate.d.ts +0 -47
- package/dist/p2p/policy-filter.d.ts +0 -15
- package/dist/p2p/policy.d.ts +0 -77
- package/dist/p2p/simplex-query-store.d.ts +0 -44
- package/dist/p2p/simplex-server.d.ts +0 -115
- package/dist/p2p/simplex-transport.d.ts +0 -62
- package/dist/p2p/wire.d.ts +0 -39
- package/licenses/embedding-assets.json +0 -85
- package/licenses/llama.cpp-MIT.txt +0 -21
- package/licenses/qwen3-embedding-notice.txt +0 -13
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ProfileId } from "../../embedding-runtime/types.js";
|
|
2
1
|
import type { CommandContext } from "./types.js";
|
|
3
2
|
/**
|
|
4
3
|
* One chat model discovered through the pi model runtime (built-in catalog plus
|
|
@@ -20,19 +19,6 @@ export interface ModelCatalogOptions {
|
|
|
20
19
|
readonly agentDir?: string;
|
|
21
20
|
}
|
|
22
21
|
export interface ModelsCommandDeps {
|
|
23
|
-
prefetchModel?: (profileId?: ProfileId) => Promise<{
|
|
24
|
-
profileId: ProfileId;
|
|
25
|
-
path: string;
|
|
26
|
-
}>;
|
|
27
|
-
importModel?: (profileId: ProfileId | undefined, sourcePath: string) => Promise<{
|
|
28
|
-
profileId: ProfileId;
|
|
29
|
-
path: string;
|
|
30
|
-
}>;
|
|
31
|
-
verifyModel?: (profileId?: ProfileId) => Promise<{
|
|
32
|
-
profileId: ProfileId;
|
|
33
|
-
path: string;
|
|
34
|
-
hash: string;
|
|
35
|
-
}>;
|
|
36
22
|
listModels?: (options: ModelCatalogOptions) => Promise<readonly ModelCatalogEntry[]>;
|
|
37
23
|
}
|
|
38
24
|
export declare function runModels(ctx: CommandContext, deps?: ModelsCommandDeps): Promise<number>;
|
|
@@ -27,11 +27,10 @@ export interface SearchDeps {
|
|
|
27
27
|
agentFactory?: (opts: AutoRAGAgentOptions) => Pick<AutoRAGAgent, "searchDocumentsStream">;
|
|
28
28
|
modelResolver?: (config: CliConfig, options?: ResolveAgentModelOptions) => ResolvedAgentModel | Promise<ResolvedAgentModel>;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* alive after the search completes and the CLI never exits.
|
|
30
|
+
* Unloads MinSync's in-process embedding model so the process can exit. Without this the model's
|
|
31
|
+
* native threads keep the event loop alive after the search completes and the CLI never exits.
|
|
33
32
|
*/
|
|
34
|
-
|
|
33
|
+
releaseEmbedders?: () => Promise<void>;
|
|
35
34
|
}
|
|
36
35
|
/**
|
|
37
36
|
* Run the `autorag search` command. Returns exit code 0 on success, 2 for
|
package/dist/cli/config.d.ts
CHANGED
|
@@ -98,23 +98,6 @@ export interface RerankConfig {
|
|
|
98
98
|
/** Per-request timeout in milliseconds. */
|
|
99
99
|
timeoutMs?: number;
|
|
100
100
|
}
|
|
101
|
-
export interface P2pConfig {
|
|
102
|
-
enabled?: boolean;
|
|
103
|
-
port?: number;
|
|
104
|
-
host?: string;
|
|
105
|
-
/** SimpleX CLI database prefix (defaults to <workspace>/.autorag/p2p/simplex). */
|
|
106
|
-
simplexDbPrefix?: string;
|
|
107
|
-
maxBodyBytes?: number;
|
|
108
|
-
maxFileBytes?: number;
|
|
109
|
-
policy?: Record<string, unknown>;
|
|
110
|
-
quotas?: {
|
|
111
|
-
queriesPerHour?: number;
|
|
112
|
-
burst?: number;
|
|
113
|
-
};
|
|
114
|
-
injectionClassifier?: boolean;
|
|
115
|
-
piiNer?: boolean;
|
|
116
|
-
newFilesPublic?: boolean;
|
|
117
|
-
}
|
|
118
101
|
export interface AgentModelConfig {
|
|
119
102
|
/** Provider identity used for auth lookup and Model.provider (e.g. openrouter, fireworks, ollama). */
|
|
120
103
|
provider: string;
|
|
@@ -203,8 +186,6 @@ export interface CliConfig {
|
|
|
203
186
|
refresh?: AutoRAGRefreshLimits;
|
|
204
187
|
/** Datasource skill configuration (skill name → config). */
|
|
205
188
|
datasources?: DatasourcesConfig;
|
|
206
|
-
/** P2P sharing configuration. Disabled by default. */
|
|
207
|
-
p2p?: P2pConfig;
|
|
208
189
|
}
|
|
209
190
|
export interface ResolveConfigInput {
|
|
210
191
|
flags: Record<string, string | boolean | undefined>;
|
|
@@ -319,6 +300,13 @@ export interface ResolvedAgentModelDetailed {
|
|
|
319
300
|
readonly role: ResolvedAgentModelRole;
|
|
320
301
|
}
|
|
321
302
|
export declare function resolveAgentModel(config: CliConfig, options?: ResolveAgentModelOptions): Promise<ResolvedAgentModel>;
|
|
303
|
+
/**
|
|
304
|
+
* Model for `autorag tui`. Same chain as {@link resolveAgentModel} (config model,
|
|
305
|
+
* then Pi's settings default, then the signed-in Dazzi default) except that it
|
|
306
|
+
* never falls back to the local runtime: with nothing to resolve it returns
|
|
307
|
+
* undefined, so Pi's native `/login` and `/model` flows own first launch.
|
|
308
|
+
*/
|
|
309
|
+
export declare function resolveTuiAgentModel(config: CliConfig, options?: ResolveAgentModelOptions): Promise<ResolvedAgentModel | undefined>;
|
|
322
310
|
/**
|
|
323
311
|
* Check that a config file still resolves to a callable model, the way the
|
|
324
312
|
* next `autorag` launch will read it: invalid JSON, a schema error, or a model
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
declare const COMMANDS: readonly ["init", "setup", "refresh", "status", "search", "evidence", "memory", "index", "watch", "health", "duplicates", "tui", "
|
|
2
|
+
declare const COMMANDS: readonly ["init", "setup", "refresh", "status", "search", "evidence", "memory", "index", "watch", "health", "duplicates", "tui", "lite", "models", "update-check"];
|
|
3
3
|
type CommandName = (typeof COMMANDS)[number];
|
|
4
4
|
export type { CommandName };
|
|
5
5
|
interface ParsedArgs {
|