@autorag/librarian 2.1.0 → 2.3.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 (79) hide show
  1. package/README.md +155 -55
  2. package/dist/agent/agent.d.ts +27 -41
  3. package/dist/agent/bash-tool.d.ts +0 -11
  4. package/dist/agent/dupey-tool.d.ts +15 -0
  5. package/dist/agent/emit-results-tool.d.ts +14 -0
  6. package/dist/agent/index.d.ts +1 -0
  7. package/dist/agent/local-model.d.ts +12 -0
  8. package/dist/agent/search-bm25-tool.d.ts +1 -1
  9. package/dist/agent/search-documents.d.ts +1 -1
  10. package/dist/agent/search-minsync-tool.d.ts +1 -1
  11. package/dist/agent/system-prompt.d.ts +1 -2
  12. package/dist/cli/commands/duplicates.d.ts +4 -0
  13. package/dist/cli/commands/health.d.ts +9 -65
  14. package/dist/cli/commands/init.d.ts +1 -1
  15. package/dist/cli/commands/search.d.ts +2 -2
  16. package/dist/cli/config.d.ts +10 -14
  17. package/dist/cli/index.js +10652 -9947
  18. package/dist/datasource/aliased-skill.d.ts +28 -0
  19. package/dist/datasource/chunk-store.d.ts +2 -0
  20. package/dist/datasource/connector-skill.d.ts +4 -1
  21. package/dist/datasource/connector.d.ts +5 -1
  22. package/dist/datasource/crawler-client.d.ts +9 -0
  23. package/dist/datasource/crawler-skill.d.ts +47 -0
  24. package/dist/datasource/crawler-types.d.ts +53 -0
  25. package/dist/datasource/index.d.ts +8 -4
  26. package/dist/datasource/skills/cloud-drive/index.d.ts +1 -0
  27. package/dist/datasource/skills/cloud-drive/skill.d.ts +14 -0
  28. package/dist/datasource/skills/discrawl/client.d.ts +23 -0
  29. package/dist/datasource/skills/discrawl/config.d.ts +9 -0
  30. package/dist/datasource/skills/discrawl/index.d.ts +5 -0
  31. package/dist/datasource/skills/discrawl/methods.d.ts +55 -0
  32. package/dist/datasource/skills/discrawl/paths.d.ts +30 -0
  33. package/dist/datasource/skills/discrawl/skill.d.ts +61 -0
  34. package/dist/datasource/skills/discrawl/types.d.ts +198 -0
  35. package/dist/datasource/skills/factory.d.ts +7 -0
  36. package/dist/datasource/skills/gdrive/rclone-connector.d.ts +16 -24
  37. package/dist/datasource/skills/notion/index.d.ts +15 -2
  38. package/dist/datasource/skills/obsidian/client.d.ts +15 -0
  39. package/dist/datasource/skills/obsidian/index.d.ts +6 -2
  40. package/dist/datasource/skills/obsidian/methods.d.ts +26 -0
  41. package/dist/datasource/skills/obsidian/paths.d.ts +27 -0
  42. package/dist/datasource/skills/obsidian/skill.d.ts +41 -17
  43. package/dist/datasource/skills/obsidian/types.d.ts +90 -0
  44. package/dist/datasource/skills/slack/index.d.ts +15 -2
  45. package/dist/datasource/skills/telecrawl/index.d.ts +15 -0
  46. package/dist/datasource/skills/wacrawl/index.d.ts +15 -0
  47. package/dist/dupey/cli.d.ts +40 -0
  48. package/dist/dupey/filter.d.ts +8 -0
  49. package/dist/dupey/index.d.ts +2 -0
  50. package/dist/index.d.ts +1 -0
  51. package/dist/index.js +7774 -7409
  52. package/dist/memory/check-memory-tool.d.ts +1 -0
  53. package/dist/memory/index.d.ts +2 -2
  54. package/dist/memory/memory.d.ts +33 -3
  55. package/dist/memory/renderer.d.ts +2 -1
  56. package/dist/mirror/sync.d.ts +3 -1
  57. package/dist/observability/run-log.d.ts +1 -26
  58. package/dist/process/portable-spawn.d.ts +10 -0
  59. package/dist/retrieval/merger.d.ts +1 -0
  60. package/dist/retrieval/scope.d.ts +10 -0
  61. package/package.json +21 -20
  62. package/skills/autorag/SKILL.md +59 -96
  63. package/skills/autorag-setup/SKILL.md +144 -378
  64. package/dist/datasource/skills/discord/connector.d.ts +0 -30
  65. package/dist/datasource/skills/discord/index.d.ts +0 -2
  66. package/dist/datasource/skills/discord/skill.d.ts +0 -20
  67. package/dist/datasource/skills/notion/connector.d.ts +0 -26
  68. package/dist/datasource/skills/notion/skill.d.ts +0 -20
  69. package/dist/datasource/skills/obsidian/connector.d.ts +0 -22
  70. package/dist/datasource/skills/slack/connector.d.ts +0 -28
  71. package/dist/datasource/skills/slack/skill.d.ts +0 -20
  72. package/dist/subagents/contracts.d.ts +0 -90
  73. package/dist/subagents/dispatch-templates.d.ts +0 -104
  74. package/dist/subagents/dispatch-validation.d.ts +0 -169
  75. package/dist/subagents/explorer-tools-extension.d.ts +0 -4
  76. package/dist/subagents/explorer-tools-extension.js +0 -130
  77. package/dist/subagents/local-models.d.ts +0 -14
  78. package/dist/subagents/model-policy.d.ts +0 -31
  79. package/dist/subagents/runtime.d.ts +0 -52
@@ -1,31 +0,0 @@
1
- export declare const ORCHESTRATOR_MODEL_ID: "gpt-5.6-sol";
2
- export declare const EXPLORER_MODEL_ID: "gpt-5.6-luna";
3
- export declare const REQUIRED_MODEL_IDS: Readonly<{
4
- orchestrator: "gpt-5.6-sol";
5
- explorer: "gpt-5.6-luna";
6
- }>;
7
- export type ModelRole = keyof typeof REQUIRED_MODEL_IDS;
8
- export interface ModelReference {
9
- readonly id: string;
10
- readonly provider?: string;
11
- }
12
- export interface ValidatedModelPolicy {
13
- readonly orchestrator: ModelReference;
14
- readonly explorer: ModelReference;
15
- }
16
- export type ModelPolicyErrorCode = "INVALID_POLICY_OBJECT" | "MISSING_REQUIRED_MODEL" | "INVALID_MODEL_REFERENCE";
17
- export declare class ModelPolicyError extends Error {
18
- readonly code: ModelPolicyErrorCode;
19
- readonly role?: ModelRole;
20
- readonly expected?: string;
21
- readonly actual?: string;
22
- constructor(code: ModelPolicyErrorCode, message: string, options?: {
23
- readonly role?: ModelRole;
24
- readonly expected?: string;
25
- readonly actual?: string;
26
- });
27
- }
28
- export declare function validateModelPolicy(value: unknown): ValidatedModelPolicy;
29
- export declare function assertModelPolicy(value: unknown): asserts value is ValidatedModelPolicy;
30
- export declare function isModelPolicy(value: unknown): value is ValidatedModelPolicy;
31
- export declare function requiredModelId(role: ModelRole): string;
@@ -1,52 +0,0 @@
1
- import type { AgentTool } from "@earendil-works/pi-agent-core";
2
- import { type Api, type Model } from "@earendil-works/pi-ai";
3
- import { type AgentSession } from "@earendil-works/pi-coding-agent";
4
- export declare const EXPLORER_TOOLS_EXTENSION_PATH: string;
5
- export declare const AUTORAG_EXPLORER_AGENT_MANAGED_VERSION = 2;
6
- export declare const AUTORAG_EXPLORER_AGENT_DEFINITION: string;
7
- export interface MandatorySubagentSessionOptions {
8
- readonly cwd: string;
9
- readonly model: Model<Api>;
10
- readonly explorerModel?: Model<Api>;
11
- readonly systemPrompt: string;
12
- readonly tools: readonly AgentTool[];
13
- readonly extensionPath?: string;
14
- readonly apiKey?: string;
15
- readonly providerApiKeys?: Readonly<Record<string, string>>;
16
- readonly agentDir?: string;
17
- readonly sessionDir?: string;
18
- }
19
- export interface MandatorySubagentSession {
20
- readonly session: AgentSession;
21
- readonly extensionPath: string;
22
- }
23
- export interface HealthSubagentProbeSessionOptions {
24
- readonly cwd: string;
25
- readonly model: Model<Api>;
26
- readonly explorerModel?: Model<Api>;
27
- readonly systemPrompt: string;
28
- readonly tools: readonly AgentTool[];
29
- readonly extensionPath?: string;
30
- readonly apiKey?: string;
31
- readonly providerApiKeys?: Readonly<Record<string, string>>;
32
- readonly agentDir: string;
33
- readonly sessionDir: string;
34
- }
35
- export interface HealthSubagentProbeSession {
36
- readonly session: AgentSession;
37
- readonly extensionPath: string;
38
- readonly dispose: () => void;
39
- }
40
- export declare function createMandatorySubagentSession(options: MandatorySubagentSessionOptions): Promise<MandatorySubagentSession>;
41
- /**
42
- * Create a short-lived subagent session for the `autorag health` explorer probe.
43
- *
44
- * Unlike {@link createMandatorySubagentSession}, this requires absolute
45
- * `agentDir` and `sessionDir` (typically under a caller-created temp
46
- * directory) so the probe never touches durable home state. On a lease
47
- * conflict — i.e. when another live session holds a different child
48
- * environment/registry routing — the error is rethrown with a stable
49
- * "concurrent AutoRAG session busy" message so the health command can map
50
- * it to `subagent_failed`.
51
- */
52
- export declare function createHealthSubagentProbeSession(options: HealthSubagentProbeSessionOptions): Promise<HealthSubagentProbeSession>;