@autorag/librarian 2.10.5 → 2.11.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 (106) hide show
  1. package/NOTICE +14 -9
  2. package/README.md +65 -25
  3. package/dist/agent/agent.d.ts +51 -49
  4. package/dist/agent/answer-guidelines.d.ts +22 -1
  5. package/dist/agent/context-token-guard.d.ts +11 -0
  6. package/dist/agent/discord-remote.d.ts +30 -0
  7. package/dist/agent/embedding-controls.d.ts +22 -0
  8. package/dist/agent/index.d.ts +1 -2
  9. package/dist/agent/mcp-client.d.ts +27 -0
  10. package/dist/agent/pi-session.d.ts +8 -1
  11. package/dist/agent/query-decomposition.d.ts +1 -1
  12. package/dist/agent/search-documents.d.ts +2 -2
  13. package/dist/agent/search-progress.d.ts +96 -0
  14. package/dist/agent/system-prompt.d.ts +1 -1
  15. package/dist/agent/welcome-header.d.ts +35 -0
  16. package/dist/cli/commands/models.d.ts +0 -14
  17. package/dist/cli/commands/search.d.ts +3 -4
  18. package/dist/cli/commands/setup.d.ts +2 -0
  19. package/dist/cli/config.d.ts +7 -19
  20. package/dist/cli/index.d.ts +1 -1
  21. package/dist/cli/index.js +16364 -18337
  22. package/dist/cli/setup.d.ts +22 -36
  23. package/dist/cloud/config.d.ts +3 -3
  24. package/dist/core.js +7372 -9206
  25. package/dist/datasource/embedding-env.d.ts +29 -0
  26. package/dist/datasource/errors.d.ts +1 -1
  27. package/dist/datasource/index.d.ts +2 -1
  28. package/dist/datasource/sidecar/config.d.ts +3 -0
  29. package/dist/datasource/sidecar/index.d.ts +1 -1
  30. package/dist/datasource/skills/discrawl/client.d.ts +1 -0
  31. package/dist/datasource/skills/discrawl/embedding.d.ts +17 -0
  32. package/dist/datasource/skills/discrawl/types.d.ts +11 -3
  33. package/dist/datasource/skills/factory.d.ts +17 -1
  34. package/dist/datasource/skills/github-gist/semantic.d.ts +5 -5
  35. package/dist/datasource/skills/github-gist/skill.d.ts +2 -3
  36. package/dist/datasource/skills/hister/client.d.ts +83 -0
  37. package/dist/datasource/skills/hister/embedding.d.ts +64 -0
  38. package/dist/datasource/skills/hister/index.d.ts +2 -0
  39. package/dist/datasource/skills/hister/setup.d.ts +87 -0
  40. package/dist/datasource/skills/hister/skill.d.ts +63 -0
  41. package/dist/datasource/skills/lazykatok/types.d.ts +9 -1
  42. package/dist/datasource/skills/mailcrawl/types.d.ts +9 -1
  43. package/dist/datasource/skills/obsidian/index.d.ts +4 -6
  44. package/dist/datasource/skills/obsidian/methods.d.ts +13 -17
  45. package/dist/datasource/skills/obsidian/paths.d.ts +24 -24
  46. package/dist/datasource/skills/obsidian/skill.d.ts +10 -15
  47. package/dist/datasource/skills/obsidian/staging.d.ts +50 -0
  48. package/dist/datasource/skills/obsidian/vault-index.d.ts +44 -0
  49. package/dist/embedding/daemon.d.ts +57 -0
  50. package/dist/embedding/embedder.d.ts +59 -0
  51. package/dist/embedding/http-embedder.d.ts +28 -0
  52. package/dist/embedding/in-process.d.ts +19 -0
  53. package/dist/embedding/index.d.ts +28 -0
  54. package/dist/embedding/managed.d.ts +44 -0
  55. package/dist/embedding/prefixes.d.ts +18 -0
  56. package/dist/embedding/settings.d.ts +9 -0
  57. package/dist/index.js +7465 -9298
  58. package/dist/mcp/index.js +7460 -9294
  59. package/dist/memory/context.d.ts +1 -1
  60. package/dist/memory/similar-queries.d.ts +1 -1
  61. package/dist/minsync/binary.d.ts +21 -0
  62. package/dist/minsync/client.d.ts +11 -10
  63. package/dist/minsync/index.d.ts +1 -1
  64. package/dist/minsync/installer.d.ts +1 -1
  65. package/dist/minsync/method.d.ts +3 -11
  66. package/dist/minsync/process.d.ts +1 -0
  67. package/dist/minsync/types.d.ts +0 -2
  68. package/dist/minsync/workspace-lock.d.ts +7 -0
  69. package/dist/process/terminate-tree.d.ts +4 -5
  70. package/dist/retrieval/rerank.d.ts +10 -3
  71. package/licenses/hister-AGPL-3.0-notice.txt +47 -0
  72. package/package.json +4 -4
  73. package/skills/autorag/SKILL.md +9 -11
  74. package/skills/autorag-doctor/SKILL.md +50 -29
  75. package/skills/autorag-lite-setup/SKILL.md +31 -13
  76. package/skills/autorag-setup/SKILL.md +99 -26
  77. package/dist/agent/peer-target-tool.d.ts +0 -19
  78. package/dist/agent/query-peer-tool.d.ts +0 -51
  79. package/dist/cli/commands/gateway.d.ts +0 -7
  80. package/dist/cli/commands/p2p-policy.d.ts +0 -2
  81. package/dist/cli/commands/p2p.d.ts +0 -7
  82. package/dist/cli/commands/serve.d.ts +0 -19
  83. package/dist/datasource/skills/obsidian/client.d.ts +0 -15
  84. package/dist/datasource/skills/obsidian/types.d.ts +0 -92
  85. package/dist/embedding-runtime/cache.d.ts +0 -30
  86. package/dist/embedding-runtime/gateway-embedder.d.ts +0 -41
  87. package/dist/embedding-runtime/gateway.d.ts +0 -27
  88. package/dist/embedding-runtime/index.d.ts +0 -120
  89. package/dist/embedding-runtime/manifest.d.ts +0 -20
  90. package/dist/embedding-runtime/supervisor.d.ts +0 -74
  91. package/dist/embedding-runtime/types.d.ts +0 -70
  92. package/dist/p2p/approval-store.d.ts +0 -32
  93. package/dist/p2p/egress-gate.d.ts +0 -22
  94. package/dist/p2p/file-sharing.d.ts +0 -33
  95. package/dist/p2p/injection-classifier.d.ts +0 -33
  96. package/dist/p2p/injection-gate.d.ts +0 -37
  97. package/dist/p2p/pii-gate.d.ts +0 -47
  98. package/dist/p2p/policy-filter.d.ts +0 -15
  99. package/dist/p2p/policy.d.ts +0 -77
  100. package/dist/p2p/simplex-query-store.d.ts +0 -44
  101. package/dist/p2p/simplex-server.d.ts +0 -115
  102. package/dist/p2p/simplex-transport.d.ts +0 -62
  103. package/dist/p2p/wire.d.ts +0 -39
  104. package/licenses/embedding-assets.json +0 -85
  105. package/licenses/llama.cpp-MIT.txt +0 -21
  106. package/licenses/qwen3-embedding-notice.txt +0 -13
@@ -1,6 +1,5 @@
1
- import { type RuntimeStatus } from "../embedding-runtime/index.js";
2
- import { resolveProfile } from "../embedding-runtime/manifest.js";
3
- import type { ProfileId } from "../embedding-runtime/types.js";
1
+ import { type HisterServiceDeps, type HisterSetupReport } from "../datasource/skills/hister/setup.js";
2
+ import { type EmbeddingBackend, type ManagedEmbedder } from "../embedding/index.js";
4
3
  import { type FileLockHandle } from "../filesystem/file-lock.js";
5
4
  export type SetupDatasourceState = "configured" | "skipped" | "blocked";
6
5
  export interface SetupDatasourceReport {
@@ -8,54 +7,41 @@ export interface SetupDatasourceReport {
8
7
  readonly state: SetupDatasourceState;
9
8
  readonly reason?: string;
10
9
  }
10
+ export interface SetupEmbeddingReport {
11
+ /** Where text is embedded: a configured remote endpoint, the `minsync serve` daemon, or MinSync in-process. */
12
+ readonly backend?: Exclude<EmbeddingBackend, "none">;
13
+ readonly provider?: string;
14
+ readonly model?: string;
15
+ readonly dimension?: number;
16
+ /** Why no embedding backend is available. */
17
+ readonly reason?: string;
18
+ }
11
19
  export interface SetupReport {
12
20
  readonly ok: boolean;
13
21
  readonly mode: "semantic" | "bm25";
14
- readonly runtime: {
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
- };
22
+ readonly embedding: SetupEmbeddingReport;
24
23
  readonly datasources: readonly SetupDatasourceReport[];
25
24
  readonly remediation?: string;
25
+ /** One entry per configured `hister` datasource; absent when none is configured. */
26
+ readonly hister?: HisterSetupReport;
27
+ /** Every configured `hister` datasource, when there is more than one. */
28
+ readonly histers?: readonly HisterSetupReport[];
26
29
  readonly changed: boolean;
27
30
  }
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
31
  export interface SetupDeps {
50
- readonly runtime?: SetupRuntime;
32
+ /** Embedding backend probe; defaults to the one built from the config's `minSync.embedder`. */
33
+ readonly embedder?: ManagedEmbedder;
51
34
  readonly env?: NodeJS.ProcessEnv;
52
35
  readonly pathExists?: (path: string) => boolean;
53
36
  readonly executable?: (name: string) => string | undefined;
54
37
  readonly acquireLock?: (path: string) => FileLockHandle;
38
+ /** Hister's config path, health, restart and reindex; defaults to the real programs. */
39
+ readonly hister?: HisterServiceDeps;
55
40
  }
56
41
  export declare function runSetup(options: {
57
42
  configPath: string;
58
43
  workspacePath: string;
59
- profileId?: ProfileId;
44
+ /** Write Hister's `semantic_search` to the shared embedding model (and restart/reindex it). Off by default. */
45
+ syncHister?: boolean;
60
46
  deps?: SetupDeps;
61
47
  }): Promise<SetupReport>;
@@ -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 = "anthropic/claude-haiku-5.5";
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. `z-ai/glm-5.3-flash` is not usable here: it requires reasoning, and
12
- * the decomposition call runs with reasoning off. Same catalog caveat as
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";