@autorag/librarian 2.10.5 → 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 +6 -9
- package/README.md +19 -18
- package/dist/agent/agent.d.ts +45 -48
- 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 +0 -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/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 +3134 -6671
- package/dist/cli/setup.d.ts +13 -36
- package/dist/cloud/config.d.ts +3 -3
- package/dist/core.js +5144 -7954
- 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 +5153 -7965
- package/dist/mcp/index.js +4890 -7700
- 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 +11 -10
- package/dist/minsync/index.d.ts +1 -1
- package/dist/minsync/installer.d.ts +1 -1
- package/dist/minsync/method.d.ts +3 -11
- package/dist/minsync/process.d.ts +1 -0
- package/dist/minsync/types.d.ts +0 -2
- package/dist/retrieval/rerank.d.ts +10 -3
- package/package.json +3 -3
- package/skills/autorag/SKILL.md +3 -8
- package/skills/autorag-doctor/SKILL.md +46 -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
package/dist/cli/setup.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { resolveProfile } from "../embedding-runtime/manifest.js";
|
|
3
|
-
import type { ProfileId } from "../embedding-runtime/types.js";
|
|
1
|
+
import { type EmbeddingBackend, type ManagedEmbedder } from "../embedding/index.js";
|
|
4
2
|
import { type FileLockHandle } from "../filesystem/file-lock.js";
|
|
5
3
|
export type SetupDatasourceState = "configured" | "skipped" | "blocked";
|
|
6
4
|
export interface SetupDatasourceReport {
|
|
@@ -8,46 +6,26 @@ export interface SetupDatasourceReport {
|
|
|
8
6
|
readonly state: SetupDatasourceState;
|
|
9
7
|
readonly reason?: string;
|
|
10
8
|
}
|
|
9
|
+
export interface SetupEmbeddingReport {
|
|
10
|
+
/** Where text is embedded: a configured remote endpoint, the `minsync serve` daemon, or MinSync in-process. */
|
|
11
|
+
readonly backend?: Exclude<EmbeddingBackend, "none">;
|
|
12
|
+
readonly provider?: string;
|
|
13
|
+
readonly model?: string;
|
|
14
|
+
readonly dimension?: number;
|
|
15
|
+
/** Why no embedding backend is available. */
|
|
16
|
+
readonly reason?: string;
|
|
17
|
+
}
|
|
11
18
|
export interface SetupReport {
|
|
12
19
|
readonly ok: boolean;
|
|
13
20
|
readonly mode: "semantic" | "bm25";
|
|
14
|
-
readonly
|
|
15
|
-
readonly state: string;
|
|
16
|
-
readonly health: boolean;
|
|
17
|
-
readonly model: string;
|
|
18
|
-
readonly reason?: string;
|
|
19
|
-
};
|
|
20
|
-
readonly model: {
|
|
21
|
-
readonly valid: boolean;
|
|
22
|
-
readonly profile: ProfileId;
|
|
23
|
-
};
|
|
21
|
+
readonly embedding: SetupEmbeddingReport;
|
|
24
22
|
readonly datasources: readonly SetupDatasourceReport[];
|
|
25
23
|
readonly remediation?: string;
|
|
26
24
|
readonly changed: boolean;
|
|
27
25
|
}
|
|
28
|
-
export interface SetupRuntime {
|
|
29
|
-
runtimeStatus(): Promise<RuntimeStatus>;
|
|
30
|
-
verifyModel(profileId?: ProfileId): Promise<{
|
|
31
|
-
profileId: ProfileId;
|
|
32
|
-
path: string;
|
|
33
|
-
hash: string;
|
|
34
|
-
}>;
|
|
35
|
-
ensureRuntime?(input?: {
|
|
36
|
-
profileId?: ProfileId;
|
|
37
|
-
}): Promise<{
|
|
38
|
-
baseUrl: string;
|
|
39
|
-
profile: ReturnType<typeof resolveProfile>;
|
|
40
|
-
identity: {
|
|
41
|
-
provider: string;
|
|
42
|
-
model: string;
|
|
43
|
-
dimension: number;
|
|
44
|
-
profileId: ProfileId;
|
|
45
|
-
};
|
|
46
|
-
}>;
|
|
47
|
-
releaseRuntimeHandles?(): Promise<void>;
|
|
48
|
-
}
|
|
49
26
|
export interface SetupDeps {
|
|
50
|
-
|
|
27
|
+
/** Embedding backend probe; defaults to the one built from the config's `minSync.embedder`. */
|
|
28
|
+
readonly embedder?: ManagedEmbedder;
|
|
51
29
|
readonly env?: NodeJS.ProcessEnv;
|
|
52
30
|
readonly pathExists?: (path: string) => boolean;
|
|
53
31
|
readonly executable?: (name: string) => string | undefined;
|
|
@@ -56,6 +34,5 @@ export interface SetupDeps {
|
|
|
56
34
|
export declare function runSetup(options: {
|
|
57
35
|
configPath: string;
|
|
58
36
|
workspacePath: string;
|
|
59
|
-
profileId?: ProfileId;
|
|
60
37
|
deps?: SetupDeps;
|
|
61
38
|
}): Promise<SetupReport>;
|
package/dist/cloud/config.d.ts
CHANGED
|
@@ -5,11 +5,11 @@ export declare const PROVIDER_NAME = "Dazzi Models";
|
|
|
5
5
|
* Chat model used when nothing is configured and the user is signed in. Used only
|
|
6
6
|
* if the live or persisted catalog lists it; otherwise the first catalog model.
|
|
7
7
|
*/
|
|
8
|
-
export declare const DEFAULT_DAZZI_CHAT_MODEL_ID = "
|
|
8
|
+
export declare const DEFAULT_DAZZI_CHAT_MODEL_ID = "z-ai/glm-5.3-flash";
|
|
9
9
|
/**
|
|
10
10
|
* Question-decomposition model used when nothing is configured and the user is
|
|
11
|
-
* signed in.
|
|
12
|
-
*
|
|
11
|
+
* signed in. The decomposition call runs with minimal reasoning, so reasoning-only
|
|
12
|
+
* models (e.g. `z-ai/glm-5.3-flash`) also work. Same catalog caveat as
|
|
13
13
|
* {@link DEFAULT_DAZZI_CHAT_MODEL_ID}: the model must be in the signed-in catalog.
|
|
14
14
|
*/
|
|
15
15
|
export declare const DEFAULT_DAZZI_QUERY_DECOMPOSITION_MODEL_ID = "openai/gpt-6-luna";
|