@autorag/librarian 2.13.4 → 2.13.5
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 +3 -0
- package/README.md +50 -18
- package/dist/agent/agent.d.ts +110 -39
- package/dist/agent/cloud-release-extension.d.ts +43 -0
- package/dist/agent/decision-backends.d.ts +49 -0
- package/dist/agent/decision-model-check.d.ts +92 -0
- package/dist/agent/dupey-tool.d.ts +2 -0
- package/dist/agent/everything-search-tool.d.ts +1 -0
- package/dist/agent/fsearch-search-tool.d.ts +1 -0
- package/dist/agent/index.d.ts +4 -1
- package/dist/agent/jev-extension.d.ts +27 -32
- package/dist/agent/jikji-find-tool.d.ts +5 -0
- package/dist/agent/name-candidates.d.ts +88 -0
- package/dist/agent/permission-gate.d.ts +2 -5
- package/dist/agent/query-routing.d.ts +1 -1
- package/dist/agent/search-documents.d.ts +1 -1
- package/dist/agent/sllm-decision.d.ts +34 -0
- package/dist/cli/commands/duplicates.d.ts +3 -2
- package/dist/cli/commands/models.d.ts +2 -0
- package/dist/cli/commands/search.d.ts +2 -0
- package/dist/cli/config.d.ts +49 -30
- package/dist/cli/index.js +13123 -9835
- package/dist/cli/setup.d.ts +27 -1
- package/dist/cloud/jev-backend.d.ts +26 -4
- package/dist/core.js +5772 -2598
- package/dist/datasource/index.d.ts +2 -2
- package/dist/datasource/skills/obsidian/index.d.ts +1 -1
- package/dist/datasource/skills/obsidian/methods.d.ts +1 -1
- package/dist/datasource/skills/obsidian/skill.d.ts +1 -0
- package/dist/datasource/skills/obsidian/vault-index.d.ts +1 -1
- package/dist/datasource/skills/wombat/client.d.ts +17 -0
- package/dist/datasource/skills/wombat/index.d.ts +4 -0
- package/dist/datasource/skills/wombat/methods.d.ts +15 -0
- package/dist/datasource/skills/wombat/skill.d.ts +38 -0
- package/dist/datasource/skills/wombat/types.d.ts +89 -0
- package/dist/dupey/cli.d.ts +21 -1
- package/dist/dupey/filter.d.ts +8 -1
- package/dist/dupey/index.d.ts +1 -0
- package/dist/dupey/scan-plan.d.ts +23 -0
- package/dist/embedding/index.d.ts +3 -1
- package/dist/everything/client.d.ts +1 -2
- package/dist/filesystem/cloud-placeholder.d.ts +313 -21
- package/dist/filesystem/shared-exclusive-queue.d.ts +16 -0
- package/dist/fsearch/client.d.ts +3 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5877 -2663
- package/dist/jikji/answer-pack.d.ts +7 -1
- package/dist/jikji/client.d.ts +28 -14
- package/dist/jikji/diagnostics.d.ts +16 -2
- package/dist/jikji/index.d.ts +3 -3
- package/dist/jikji/installer.d.ts +11 -5
- package/dist/jikji/retry-command.d.ts +10 -0
- package/dist/jikji/types.d.ts +47 -1
- package/dist/jikji/version.d.ts +20 -0
- package/dist/mcp/index.js +5847 -2660
- package/dist/mcp/server.d.ts +3 -0
- package/dist/minsync/binary.d.ts +10 -5
- package/dist/minsync/client.d.ts +7 -10
- package/dist/minsync/embedder-config.d.ts +11 -10
- package/dist/minsync/errors.d.ts +3 -0
- package/dist/minsync/index.d.ts +1 -1
- package/dist/minsync/installer.d.ts +1 -1
- package/dist/minsync/method.d.ts +1 -0
- package/dist/minsync/types.d.ts +0 -9
- package/dist/minsync/version.d.ts +20 -0
- package/dist/mirror/cloud-fingerprints.d.ts +30 -0
- package/dist/mirror/cloud.d.ts +79 -0
- package/dist/mirror/index.d.ts +4 -0
- package/dist/mirror/sync.d.ts +33 -1
- package/dist/parser/csv.d.ts +26 -0
- package/dist/parser/defaults.d.ts +1 -1
- package/dist/parser/index.d.ts +2 -0
- package/dist/parser/kordoc.d.ts +6 -3
- package/dist/parser/parse-worker.js +668 -28
- package/dist/parser/spreadsheet-render.d.ts +53 -0
- package/dist/parser/spreadsheet.d.ts +27 -0
- package/dist/profiles/loop-guard.d.ts +8 -2
- package/dist/profiles/retrieval-tools.d.ts +2 -1
- package/dist/profiles.js +16381 -13206
- package/dist/retrieval/skip.d.ts +1 -1
- package/dist/retrieval/types.d.ts +1 -1
- package/package.json +3 -3
- package/skills/autorag/SKILL.md +7 -4
- package/skills/autorag-doctor/SKILL.md +8 -3
- package/skills/autorag-lite-setup/SKILL.md +4 -4
- package/skills/autorag-setup/SKILL.md +53 -30
- package/dist/datasource/skills/cloud-drive/index.d.ts +0 -2
- package/dist/datasource/skills/cloud-drive/rclone-connector.d.ts +0 -49
- package/dist/datasource/skills/cloud-drive/skill.d.ts +0 -14
- package/dist/minsync/kiwi.d.ts +0 -17
- package/dist/minsync/lexical-language.d.ts +0 -18
package/dist/cli/setup.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ResolvedFileeBinary, type ResolveFileeBinaryOptions } from "../convert/index.js";
|
|
2
2
|
import { type HisterServiceDeps, type HisterSetupReport } from "../datasource/skills/hister/setup.js";
|
|
3
3
|
import { type EmbeddingBackend, type ManagedEmbedder } from "../embedding/index.js";
|
|
4
|
+
import { type CloudFileProbe, type CloudRootKind } from "../filesystem/cloud-placeholder.js";
|
|
4
5
|
import { type FileLockHandle } from "../filesystem/file-lock.js";
|
|
5
6
|
export type SetupDatasourceState = "configured" | "skipped" | "blocked";
|
|
6
7
|
export interface SetupDatasourceReport {
|
|
@@ -18,6 +19,19 @@ export interface SetupEmbeddingReport {
|
|
|
18
19
|
readonly reason?: string;
|
|
19
20
|
}
|
|
20
21
|
export type SetupFileeState = "installed" | "cached" | "path" | "configured" | "skipped" | "failed";
|
|
22
|
+
/**
|
|
23
|
+
* One cloud or network folder detected on this machine that no `searchPaths`
|
|
24
|
+
* entry covers. The path is the folder's own absolute location; the command is
|
|
25
|
+
* the exact `autorag init` invocation that adds it to the config's
|
|
26
|
+
* `searchPaths`. Detection reads directory metadata only (never file
|
|
27
|
+
* contents) and a probe that fails is dropped, never fatal.
|
|
28
|
+
*/
|
|
29
|
+
export interface SetupCloudFolderReport {
|
|
30
|
+
readonly path: string;
|
|
31
|
+
readonly kind: CloudRootKind;
|
|
32
|
+
/** Exact command that adds this folder to `searchPaths` on a fresh config. */
|
|
33
|
+
readonly command: string;
|
|
34
|
+
}
|
|
21
35
|
/** The Filee command line behind `convert_files`; setup installs it unless the operator opted out. */
|
|
22
36
|
export interface SetupFileeReport {
|
|
23
37
|
readonly state: SetupFileeState;
|
|
@@ -26,7 +40,7 @@ export interface SetupFileeReport {
|
|
|
26
40
|
}
|
|
27
41
|
export interface SetupReport {
|
|
28
42
|
readonly ok: boolean;
|
|
29
|
-
readonly mode: "semantic" | "
|
|
43
|
+
readonly mode: "semantic" | "sparse";
|
|
30
44
|
readonly embedding: SetupEmbeddingReport;
|
|
31
45
|
readonly datasources: readonly SetupDatasourceReport[];
|
|
32
46
|
readonly remediation?: string;
|
|
@@ -36,6 +50,12 @@ export interface SetupReport {
|
|
|
36
50
|
readonly histers?: readonly HisterSetupReport[];
|
|
37
51
|
/** Present on every run; `skipped` when `filee.enabled` or `filee.autoInstall` is false. */
|
|
38
52
|
readonly filee?: SetupFileeReport;
|
|
53
|
+
/**
|
|
54
|
+
* Cloud and network folders this machine has that no `searchPaths` entry
|
|
55
|
+
* covers, each with the command that adds it. Absent when there are none or
|
|
56
|
+
* on a platform without a probe. Never affects `ok`.
|
|
57
|
+
*/
|
|
58
|
+
readonly cloudFolders?: readonly SetupCloudFolderReport[];
|
|
39
59
|
readonly changed: boolean;
|
|
40
60
|
}
|
|
41
61
|
export interface SetupDeps {
|
|
@@ -51,6 +71,12 @@ export interface SetupDeps {
|
|
|
51
71
|
readonly hister?: HisterServiceDeps;
|
|
52
72
|
/** Finds or installs filee-cli; defaults to the pinned release download. */
|
|
53
73
|
readonly filee?: (options: Pick<ResolveFileeBinaryOptions, "executable" | "autoInstall">) => Promise<ResolvedFileeBinary>;
|
|
74
|
+
/**
|
|
75
|
+
* Cloud/network root probe; defaults to the platform probe (`DarwinCloudProbe`
|
|
76
|
+
* on macOS, `WindowsCloudProbe` on Windows, none elsewhere). Injected by
|
|
77
|
+
* tests so they need no real cloud mounts.
|
|
78
|
+
*/
|
|
79
|
+
readonly cloudProbe?: CloudFileProbe;
|
|
54
80
|
}
|
|
55
81
|
export declare function runSetup(options: {
|
|
56
82
|
configPath: string;
|
|
@@ -17,6 +17,21 @@ import { type BackendRequest, type BackendResponse, type JevBackend, type Questi
|
|
|
17
17
|
export declare const JEV_PATH = "/v1/jev";
|
|
18
18
|
/** Live Jev model id on the hosted Dazzi Models plan. */
|
|
19
19
|
export declare const DAZZI_DEFAULT_JEV_MODEL = "jev-1.13";
|
|
20
|
+
/** One decision model the hosted plan serves at `POST <root>/v1/jev`. */
|
|
21
|
+
export interface DazziDecisionModel {
|
|
22
|
+
readonly id: string;
|
|
23
|
+
readonly description?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* `GET <root>/v1/models?operation=jev`: the decision models the hosted plan serves, in its order. Throws on a
|
|
27
|
+
* network failure, a non-2xx answer, or a body that is not a model list.
|
|
28
|
+
*/
|
|
29
|
+
export declare function listDazziDecisionModels(options: {
|
|
30
|
+
readonly baseUrl: string;
|
|
31
|
+
readonly apiKey: string;
|
|
32
|
+
readonly signal?: AbortSignal;
|
|
33
|
+
readonly fetchImpl?: typeof fetch;
|
|
34
|
+
}): Promise<DazziDecisionModel[]>;
|
|
20
35
|
/** Options for {@link DazziJevBackend}. */
|
|
21
36
|
export interface DazziJevBackendOptions {
|
|
22
37
|
/** Environment holding `AUTORAG_BASE_URL`. Default `process.env`. */
|
|
@@ -77,14 +92,21 @@ export declare class DazziJevBackend implements JevBackend {
|
|
|
77
92
|
/** POST JSON with a per-attempt timeout and jev-use's retry policy. */
|
|
78
93
|
private postJson;
|
|
79
94
|
}
|
|
80
|
-
/**
|
|
95
|
+
/**
|
|
96
|
+
* The key each question goes out under, in question order. An id that is already a valid key keeps
|
|
97
|
+
* it; any other, such as `datasource:web` or a long `evidence:...` id, has every other character
|
|
98
|
+
* replaced with `_`, is cut to 100 characters, and takes a numeric suffix when that key is taken.
|
|
99
|
+
* Answers are read back under the same keys, so each stays with its own question.
|
|
100
|
+
*/
|
|
101
|
+
export declare function wireQuestionKeys(ids: readonly string[]): string[];
|
|
102
|
+
/** Build the whole request body: model, a string state, and the questions by {@link wireQuestionKeys}. */
|
|
81
103
|
export declare function toNativeBody(state: State, questions: (Question & {
|
|
82
104
|
id: string;
|
|
83
105
|
})[], model: string): NativeBody;
|
|
84
106
|
/**
|
|
85
|
-
* Read the provider's answer map back into raw answers, in question order
|
|
86
|
-
* Anything missing or mistyped is a `BackendError` — a silently dropped
|
|
87
|
-
* would read as a low-confidence judgment.
|
|
107
|
+
* Read the provider's answer map back into raw answers, in question order, under the keys
|
|
108
|
+
* {@link toNativeBody} sent. Anything missing or mistyped is a `BackendError` — a silently dropped
|
|
109
|
+
* answer would read as a low-confidence judgment.
|
|
88
110
|
*/
|
|
89
111
|
export declare function parseNativeAnswers(backend: string, answers: unknown, questions: (Question & {
|
|
90
112
|
id: string;
|