@autorag/librarian 2.2.0 → 2.4.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.
- package/README.md +194 -47
- package/dist/agent/agent.d.ts +34 -47
- package/dist/agent/bash-tool.d.ts +2 -11
- package/dist/agent/dupey-tool.d.ts +15 -0
- package/dist/agent/emit-results-tool.d.ts +14 -0
- package/dist/agent/index.d.ts +1 -0
- package/dist/agent/local-model.d.ts +12 -0
- package/dist/agent/search-bm25-tool.d.ts +11 -3
- package/dist/agent/search-documents.d.ts +2 -2
- package/dist/agent/search-minsync-tool.d.ts +2 -2
- package/dist/agent/system-prompt.d.ts +1 -2
- package/dist/cli/commands/duplicates.d.ts +4 -0
- package/dist/cli/commands/health.d.ts +9 -65
- package/dist/cli/commands/index.d.ts +3 -3
- package/dist/cli/commands/init.d.ts +1 -1
- package/dist/cli/commands/search.d.ts +2 -2
- package/dist/cli/commands/tui.d.ts +36 -0
- package/dist/cli/commands/ui.d.ts +13 -0
- package/dist/cli/config.d.ts +27 -22
- package/dist/cli/index.js +14965 -12563
- package/dist/cli/tui-commands.d.ts +16 -0
- package/dist/cli/tui-session-store.d.ts +16 -0
- package/dist/datasource/access-context.d.ts +6 -12
- package/dist/datasource/aliased-skill.d.ts +28 -0
- package/dist/datasource/chunk-store.d.ts +2 -0
- package/dist/datasource/connector-skill.d.ts +3 -0
- package/dist/datasource/connector.d.ts +4 -0
- package/dist/datasource/crawler-skill.d.ts +6 -0
- package/dist/datasource/crawler-types.d.ts +2 -0
- package/dist/datasource/described-skill.d.ts +17 -0
- package/dist/datasource/index.d.ts +4 -2
- package/dist/datasource/result-filter.d.ts +2 -1
- package/dist/datasource/skills/clawgallery/client.d.ts +9 -0
- package/dist/datasource/skills/clawgallery/index.d.ts +5 -0
- package/dist/datasource/skills/clawgallery/methods.d.ts +19 -0
- package/dist/datasource/skills/clawgallery/paths.d.ts +7 -0
- package/dist/datasource/skills/clawgallery/skill.d.ts +35 -0
- package/dist/datasource/skills/clawgallery/types.d.ts +58 -0
- package/dist/datasource/skills/cloud-drive/index.d.ts +2 -0
- package/dist/datasource/skills/cloud-drive/rclone-connector.d.ts +47 -0
- package/dist/datasource/skills/cloud-drive/skill.d.ts +14 -0
- package/dist/datasource/skills/discrawl/skill.d.ts +3 -0
- package/dist/datasource/skills/discrawl/types.d.ts +4 -8
- package/dist/datasource/skills/factory.d.ts +9 -0
- package/dist/datasource/skills/gmail/himalaya-connector.d.ts +12 -1
- package/dist/datasource/skills/katok/methods.d.ts +6 -4
- package/dist/datasource/skills/katok/types.d.ts +8 -26
- package/dist/datasource/skills/mailcrawl/client.d.ts +15 -0
- package/dist/datasource/skills/mailcrawl/config.d.ts +2 -0
- package/dist/datasource/skills/mailcrawl/index.d.ts +4 -0
- package/dist/datasource/skills/mailcrawl/methods.d.ts +15 -0
- package/dist/datasource/skills/mailcrawl/skill.d.ts +34 -0
- package/dist/datasource/skills/mailcrawl/types.d.ts +71 -0
- package/dist/datasource/skills/obsidian/skill.d.ts +2 -0
- package/dist/datasource/skills/obsidian/types.d.ts +2 -0
- package/dist/datasource/types.d.ts +5 -2
- package/dist/dupey/cli.d.ts +40 -0
- package/dist/dupey/filter.d.ts +8 -0
- package/dist/dupey/index.d.ts +2 -0
- package/dist/filesystem/cloud-placeholder.d.ts +26 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8889 -9292
- package/dist/jikji/client.d.ts +1 -0
- package/dist/memory/check-memory-tool.d.ts +1 -0
- package/dist/memory/index.d.ts +2 -2
- package/dist/memory/memory.d.ts +33 -3
- package/dist/memory/renderer.d.ts +2 -1
- package/dist/minsync/client.d.ts +5 -1
- package/dist/minsync/embedder-config.d.ts +4 -1
- package/dist/minsync/index.d.ts +4 -4
- package/dist/minsync/installer.d.ts +1 -0
- package/dist/minsync/method.d.ts +22 -1
- package/dist/minsync/types.d.ts +5 -0
- package/dist/mirror/sync.d.ts +3 -1
- package/dist/observability/run-log.d.ts +1 -26
- package/dist/parser/defaults.d.ts +2 -0
- package/dist/parser/index.d.ts +2 -2
- package/dist/parser/opendataloader-pdf.d.ts +10 -0
- package/dist/parser/types.d.ts +7 -0
- package/dist/process/portable-spawn.d.ts +10 -0
- package/dist/retrieval/index.d.ts +2 -2
- package/dist/retrieval/methods/bm25.d.ts +7 -36
- package/dist/ui/browse.d.ts +11 -0
- package/dist/ui/catalog.d.ts +59 -0
- package/dist/ui/config-store.d.ts +43 -0
- package/dist/ui/discover.d.ts +19 -0
- package/dist/ui/html.d.ts +2 -0
- package/dist/ui/probe.d.ts +24 -0
- package/dist/ui/prompt.d.ts +21 -0
- package/dist/ui/server.d.ts +28 -0
- package/package.json +17 -15
- package/skills/autorag/SKILL.md +79 -108
- package/skills/autorag-setup/SKILL.md +170 -395
- package/dist/datasource/skills/discrawl/config.d.ts +0 -9
- package/dist/datasource/skills/gdrive/connector.d.ts +0 -30
- package/dist/datasource/skills/gdrive/index.d.ts +0 -3
- package/dist/datasource/skills/gdrive/rclone-connector.d.ts +0 -51
- package/dist/datasource/skills/gdrive/skill.d.ts +0 -24
- package/dist/subagents/contracts.d.ts +0 -90
- package/dist/subagents/dispatch-templates.d.ts +0 -104
- package/dist/subagents/dispatch-validation.d.ts +0 -169
- package/dist/subagents/explorer-tools-extension.d.ts +0 -4
- package/dist/subagents/explorer-tools-extension.js +0 -130
- package/dist/subagents/local-models.d.ts +0 -14
- package/dist/subagents/model-policy.d.ts +0 -31
- 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>;
|