@autorag/librarian 2.10.6 → 2.12.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.
Files changed (86) hide show
  1. package/NOTICE +14 -0
  2. package/README.md +52 -10
  3. package/dist/agent/agent.d.ts +70 -2
  4. package/dist/agent/answer-citations.d.ts +34 -2
  5. package/dist/agent/answer-guidelines.d.ts +24 -3
  6. package/dist/agent/ask-user.d.ts +8 -0
  7. package/dist/agent/automation-tool.d.ts +45 -0
  8. package/dist/agent/citation-links.d.ts +23 -0
  9. package/dist/agent/citation-numbers.d.ts +68 -0
  10. package/dist/agent/citation-relevance.d.ts +37 -0
  11. package/dist/agent/conversation-queries.d.ts +31 -0
  12. package/dist/agent/convert-tool.d.ts +28 -0
  13. package/dist/agent/evidence-persistence.d.ts +17 -11
  14. package/dist/agent/index.d.ts +1 -0
  15. package/dist/agent/intent-tracing.d.ts +33 -0
  16. package/dist/agent/mcp-client.d.ts +27 -0
  17. package/dist/agent/permission-gate.d.ts +78 -0
  18. package/dist/agent/permission-judgment.d.ts +72 -0
  19. package/dist/agent/permission-paths.d.ts +23 -0
  20. package/dist/agent/pi-session.d.ts +8 -0
  21. package/dist/agent/query-routing.d.ts +14 -17
  22. package/dist/agent/search-documents.d.ts +1 -1
  23. package/dist/agent/search-progress.d.ts +96 -0
  24. package/dist/agent/self-config.d.ts +2 -0
  25. package/dist/agent/user-requests.d.ts +52 -0
  26. package/dist/agent/welcome-header.d.ts +35 -0
  27. package/dist/automation/config.d.ts +48 -0
  28. package/dist/automation/daemon.d.ts +31 -0
  29. package/dist/automation/dispatch.d.ts +13 -0
  30. package/dist/automation/run-agent.d.ts +22 -0
  31. package/dist/automation/run.d.ts +32 -0
  32. package/dist/automation/service.d.ts +61 -0
  33. package/dist/cli/commands/automate.d.ts +2 -0
  34. package/dist/cli/commands/setup.d.ts +2 -0
  35. package/dist/cli/config.d.ts +21 -0
  36. package/dist/cli/index.d.ts +1 -1
  37. package/dist/cli/index.js +26740 -21094
  38. package/dist/cli/open-target.d.ts +9 -0
  39. package/dist/cli/setup.d.ts +21 -0
  40. package/dist/convert/cli.d.ts +77 -0
  41. package/dist/convert/index.d.ts +4 -0
  42. package/dist/convert/installer.d.ts +84 -0
  43. package/dist/convert/matrix.d.ts +27 -0
  44. package/dist/convert/relate.d.ts +30 -0
  45. package/dist/core.js +32095 -27288
  46. package/dist/datasource/connector-timeouts.d.ts +6 -2
  47. package/dist/datasource/crawler-types.d.ts +1 -1
  48. package/dist/datasource/errors.d.ts +1 -1
  49. package/dist/datasource/index.d.ts +2 -1
  50. package/dist/datasource/skills/factory.d.ts +3 -0
  51. package/dist/datasource/skills/hister/client.d.ts +83 -0
  52. package/dist/datasource/skills/hister/embedding.d.ts +64 -0
  53. package/dist/datasource/skills/hister/index.d.ts +2 -0
  54. package/dist/datasource/skills/hister/setup.d.ts +87 -0
  55. package/dist/datasource/skills/hister/skill.d.ts +63 -0
  56. package/dist/datasource/skills/lazykatok/types.d.ts +2 -2
  57. package/dist/datasource/skills/mailcrawl/types.d.ts +1 -1
  58. package/dist/datasource/skills/obsidian/index.d.ts +4 -6
  59. package/dist/datasource/skills/obsidian/methods.d.ts +13 -17
  60. package/dist/datasource/skills/obsidian/paths.d.ts +24 -24
  61. package/dist/datasource/skills/obsidian/skill.d.ts +10 -15
  62. package/dist/datasource/skills/obsidian/staging.d.ts +50 -0
  63. package/dist/datasource/skills/obsidian/vault-index.d.ts +44 -0
  64. package/dist/dupey/cli.d.ts +18 -0
  65. package/dist/index.d.ts +1 -0
  66. package/dist/index.js +32263 -27429
  67. package/dist/mcp/index.js +32149 -27342
  68. package/dist/minsync/installer.d.ts +1 -1
  69. package/dist/minsync/workspace-lock.d.ts +7 -0
  70. package/dist/process/terminate-tree.d.ts +4 -5
  71. package/dist/profiles/agent-factory.d.ts +60 -0
  72. package/dist/profiles/automation-profiles.d.ts +25 -0
  73. package/dist/profiles/loop-guard.d.ts +23 -0
  74. package/dist/profiles/retrieval-tools.d.ts +24 -0
  75. package/dist/profiles/session-model.d.ts +69 -0
  76. package/dist/profiles.d.ts +13 -0
  77. package/dist/profiles.js +34739 -0
  78. package/dist/retrieval/rerank.d.ts +6 -0
  79. package/licenses/hister-AGPL-3.0-notice.txt +47 -0
  80. package/package.json +9 -3
  81. package/skills/autorag/SKILL.md +79 -5
  82. package/skills/autorag-doctor/SKILL.md +5 -4
  83. package/skills/autorag-lite-setup/SKILL.md +23 -5
  84. package/skills/autorag-setup/SKILL.md +68 -7
  85. package/dist/datasource/skills/obsidian/client.d.ts +0 -15
  86. package/dist/datasource/skills/obsidian/types.d.ts +0 -92
@@ -0,0 +1,44 @@
1
+ import type { MinSyncVectorMethodOptions } from "../../../minsync/method.js";
2
+ import type { RetrievalResult } from "../../../retrieval/types.js";
3
+ import type { DatasourceDiagnostic, DatasourceDiagnosticCode } from "../../types.js";
4
+ /** The MinSync settings a vault shares with the rest of the install: binary, embedder, chunking. */
5
+ export type ObsidianMinSyncOptions = Pick<MinSyncVectorMethodOptions, "binaryPath" | "autoInstall" | "installer" | "embedder" | "maxChunkSize">;
6
+ export interface ObsidianVaultIndexOptions {
7
+ readonly instanceId: string;
8
+ readonly vaultPath: string | undefined;
9
+ readonly workspaceRoot: string | undefined;
10
+ readonly minSync?: ObsidianMinSyncOptions;
11
+ }
12
+ export type ObsidianSearchMode = "bm25" | "semantic";
13
+ export interface ObsidianSearchOptions {
14
+ readonly topK?: number;
15
+ readonly scope?: string;
16
+ readonly signal?: AbortSignal;
17
+ }
18
+ export type VaultSyncOutcome = {
19
+ readonly ok: true;
20
+ readonly notes: number;
21
+ readonly diagnostics: readonly DatasourceDiagnostic[];
22
+ } | {
23
+ readonly ok: false;
24
+ readonly code: DatasourceDiagnosticCode;
25
+ readonly message: string;
26
+ };
27
+ /**
28
+ * One vault, indexed by MinSync in a workspace of its own. Notes are staged under the workspace's
29
+ * `files/` folder (see `staging.ts`), `minsync sync` embeds and indexes them incrementally, and a
30
+ * query runs against that index and maps each chunk back to its note.
31
+ */
32
+ export declare class ObsidianVaultIndex {
33
+ private readonly instanceId;
34
+ private readonly vaultPath;
35
+ private readonly workspaceRoot;
36
+ private readonly minSync;
37
+ constructor(options: ObsidianVaultIndexOptions);
38
+ /** Mirror the vault's notes into the MinSync workspace and sync it. Never throws except on abort. */
39
+ sync(signal?: AbortSignal): Promise<VaultSyncOutcome>;
40
+ private syncLocked;
41
+ /** Search the indexed vault. Rejects, with the reason, when the vault was never indexed or a sync is running. */
42
+ query(mode: ObsidianSearchMode, text: string, options?: ObsidianSearchOptions): Promise<RetrievalResult[]>;
43
+ private queryLocked;
44
+ }
@@ -38,3 +38,21 @@ export declare class DupeyCliError extends Error {
38
38
  constructor(message: string);
39
39
  }
40
40
  export declare function scanWithDupey(dir: string, options?: DupeyCliOptions): Promise<DupeyScanResult>;
41
+ export type DupeyRelation = "exact" | "near" | "contains" | "different";
42
+ export type DupeyCompareResult = {
43
+ readonly relation: DupeyRelation;
44
+ readonly nearScore: number;
45
+ readonly jaccard: number;
46
+ readonly containmentAInB?: number;
47
+ readonly containmentBInA?: number;
48
+ }
49
+ /** dupey cannot extract text from one of the files (for example HTML or an image), so no family can form. */
50
+ | {
51
+ readonly relation: "unsupported";
52
+ };
53
+ /**
54
+ * Would `dupey scan` put these two files in one family? Classifies with the
55
+ * same default thresholds the scan uses, so the answer matches what a later
56
+ * scan of a directory holding both will report.
57
+ */
58
+ export declare function compareWithDupey(a: string, b: string, options?: DupeyCliOptions): Promise<DupeyCompareResult>;
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export { AutoRAGAgent, type AutoRAGAgentOptions, type AutoRAGRefreshComponentSta
2
2
  export { type AutoRAGResultsDetails, reportSchema, type SearchDocumentDiagnostic, type SearchDocumentDiagnosticCode, type SearchDocumentDiagnosticSeverity, type SearchDocumentsResponse, type SearchDocumentsStreamEvent, type SearchDocumentWarning, } from "./agent/index.js";
3
3
  export { buildSystemPrompt, type SystemPromptConfig } from "./agent/system-prompt.js";
4
4
  export * from "./cloud/index.js";
5
+ export * from "./convert/index.js";
5
6
  export { AutoRAGLite, type AutoRAGLiteOptions, buildAgentOptions, type CliConfig, createAutoRAGLite, type ResolveConfigInput, resolveConfig, resolveConfigReadOnly, writeConfigObject, writeDefaultConfig, } from "./core.js";
6
7
  export * from "./datasource/index.js";
7
8
  export * from "./dupey/index.js";