@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.
Files changed (91) hide show
  1. package/NOTICE +3 -0
  2. package/README.md +50 -18
  3. package/dist/agent/agent.d.ts +110 -39
  4. package/dist/agent/cloud-release-extension.d.ts +43 -0
  5. package/dist/agent/decision-backends.d.ts +49 -0
  6. package/dist/agent/decision-model-check.d.ts +92 -0
  7. package/dist/agent/dupey-tool.d.ts +2 -0
  8. package/dist/agent/everything-search-tool.d.ts +1 -0
  9. package/dist/agent/fsearch-search-tool.d.ts +1 -0
  10. package/dist/agent/index.d.ts +4 -1
  11. package/dist/agent/jev-extension.d.ts +27 -32
  12. package/dist/agent/jikji-find-tool.d.ts +5 -0
  13. package/dist/agent/name-candidates.d.ts +88 -0
  14. package/dist/agent/permission-gate.d.ts +2 -5
  15. package/dist/agent/query-routing.d.ts +1 -1
  16. package/dist/agent/search-documents.d.ts +1 -1
  17. package/dist/agent/sllm-decision.d.ts +34 -0
  18. package/dist/cli/commands/duplicates.d.ts +3 -2
  19. package/dist/cli/commands/models.d.ts +2 -0
  20. package/dist/cli/commands/search.d.ts +2 -0
  21. package/dist/cli/config.d.ts +49 -30
  22. package/dist/cli/index.js +13123 -9835
  23. package/dist/cli/setup.d.ts +27 -1
  24. package/dist/cloud/jev-backend.d.ts +26 -4
  25. package/dist/core.js +5772 -2598
  26. package/dist/datasource/index.d.ts +2 -2
  27. package/dist/datasource/skills/obsidian/index.d.ts +1 -1
  28. package/dist/datasource/skills/obsidian/methods.d.ts +1 -1
  29. package/dist/datasource/skills/obsidian/skill.d.ts +1 -0
  30. package/dist/datasource/skills/obsidian/vault-index.d.ts +1 -1
  31. package/dist/datasource/skills/wombat/client.d.ts +17 -0
  32. package/dist/datasource/skills/wombat/index.d.ts +4 -0
  33. package/dist/datasource/skills/wombat/methods.d.ts +15 -0
  34. package/dist/datasource/skills/wombat/skill.d.ts +38 -0
  35. package/dist/datasource/skills/wombat/types.d.ts +89 -0
  36. package/dist/dupey/cli.d.ts +21 -1
  37. package/dist/dupey/filter.d.ts +8 -1
  38. package/dist/dupey/index.d.ts +1 -0
  39. package/dist/dupey/scan-plan.d.ts +23 -0
  40. package/dist/embedding/index.d.ts +3 -1
  41. package/dist/everything/client.d.ts +1 -2
  42. package/dist/filesystem/cloud-placeholder.d.ts +313 -21
  43. package/dist/filesystem/shared-exclusive-queue.d.ts +16 -0
  44. package/dist/fsearch/client.d.ts +3 -2
  45. package/dist/index.d.ts +1 -1
  46. package/dist/index.js +5877 -2663
  47. package/dist/jikji/answer-pack.d.ts +7 -1
  48. package/dist/jikji/client.d.ts +28 -14
  49. package/dist/jikji/diagnostics.d.ts +16 -2
  50. package/dist/jikji/index.d.ts +3 -3
  51. package/dist/jikji/installer.d.ts +11 -5
  52. package/dist/jikji/retry-command.d.ts +10 -0
  53. package/dist/jikji/types.d.ts +47 -1
  54. package/dist/jikji/version.d.ts +20 -0
  55. package/dist/mcp/index.js +5847 -2660
  56. package/dist/mcp/server.d.ts +3 -0
  57. package/dist/minsync/binary.d.ts +10 -5
  58. package/dist/minsync/client.d.ts +7 -10
  59. package/dist/minsync/embedder-config.d.ts +11 -10
  60. package/dist/minsync/errors.d.ts +3 -0
  61. package/dist/minsync/index.d.ts +1 -1
  62. package/dist/minsync/installer.d.ts +1 -1
  63. package/dist/minsync/method.d.ts +1 -0
  64. package/dist/minsync/types.d.ts +0 -9
  65. package/dist/minsync/version.d.ts +20 -0
  66. package/dist/mirror/cloud-fingerprints.d.ts +30 -0
  67. package/dist/mirror/cloud.d.ts +79 -0
  68. package/dist/mirror/index.d.ts +4 -0
  69. package/dist/mirror/sync.d.ts +33 -1
  70. package/dist/parser/csv.d.ts +26 -0
  71. package/dist/parser/defaults.d.ts +1 -1
  72. package/dist/parser/index.d.ts +2 -0
  73. package/dist/parser/kordoc.d.ts +6 -3
  74. package/dist/parser/parse-worker.js +668 -28
  75. package/dist/parser/spreadsheet-render.d.ts +53 -0
  76. package/dist/parser/spreadsheet.d.ts +27 -0
  77. package/dist/profiles/loop-guard.d.ts +8 -2
  78. package/dist/profiles/retrieval-tools.d.ts +2 -1
  79. package/dist/profiles.js +16381 -13206
  80. package/dist/retrieval/skip.d.ts +1 -1
  81. package/dist/retrieval/types.d.ts +1 -1
  82. package/package.json +3 -3
  83. package/skills/autorag/SKILL.md +7 -4
  84. package/skills/autorag-doctor/SKILL.md +8 -3
  85. package/skills/autorag-lite-setup/SKILL.md +4 -4
  86. package/skills/autorag-setup/SKILL.md +53 -30
  87. package/dist/datasource/skills/cloud-drive/index.d.ts +0 -2
  88. package/dist/datasource/skills/cloud-drive/rclone-connector.d.ts +0 -49
  89. package/dist/datasource/skills/cloud-drive/skill.d.ts +0 -14
  90. package/dist/minsync/kiwi.d.ts +0 -17
  91. package/dist/minsync/lexical-language.d.ts +0 -18
@@ -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" | "bm25";
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
- /** Build the whole request body: model, a string state, and the questions by id. */
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 answer
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;