@autorag/librarian 2.3.0 → 2.4.1
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 +143 -16
- package/dist/agent/agent.d.ts +45 -13
- package/dist/agent/bash-tool.d.ts +2 -0
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/search-documents.d.ts +12 -3
- package/dist/agent/search-minsync-tool.d.ts +2 -2
- package/dist/cli/commands/evidence.d.ts +3 -0
- package/dist/cli/commands/index.d.ts +3 -3
- package/dist/cli/commands/refresh.d.ts +3 -4
- 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/commands/watch.d.ts +1 -1
- package/dist/cli/config.d.ts +17 -19
- package/dist/cli/index.js +14497 -10906
- 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/crawler-types.d.ts +2 -0
- package/dist/datasource/described-skill.d.ts +17 -0
- package/dist/datasource/index.d.ts +3 -3
- 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 +1 -0
- package/dist/datasource/skills/{gdrive → cloud-drive}/rclone-connector.d.ts +4 -0
- package/dist/datasource/skills/cloud-drive/skill.d.ts +1 -1
- package/dist/datasource/skills/discrawl/types.d.ts +4 -8
- package/dist/datasource/skills/factory.d.ts +2 -0
- package/dist/datasource/skills/gmail/index.d.ts +0 -1
- package/dist/datasource/skills/gmail/skill.d.ts +1 -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 +1 -0
- package/dist/datasource/skills/obsidian/types.d.ts +2 -0
- package/dist/datasource/types.d.ts +5 -2
- package/dist/filesystem/cloud-placeholder.d.ts +26 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2591 -1438
- package/dist/jikji/client.d.ts +3 -0
- 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 +17 -8
- package/dist/minsync/types.d.ts +5 -0
- package/dist/mirror/sync.d.ts +1 -1
- 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/retrieval/index.d.ts +0 -2
- package/dist/retrieval/registry.d.ts +2 -2
- package/dist/retrieval/types.d.ts +1 -1
- 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 +17 -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 +13 -12
- package/skills/autorag/SKILL.md +64 -43
- package/skills/autorag-setup/SKILL.md +76 -39
- package/dist/agent/search-bm25-tool.d.ts +0 -18
- 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/skill.d.ts +0 -24
- package/dist/datasource/skills/gmail/himalaya-connector.d.ts +0 -40
- package/dist/retrieval/methods/bm25.d.ts +0 -52
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
* `undefined`-as-deny.
|
|
15
15
|
* - Model/tool arguments never grant access. Only the trusted server-supplied
|
|
16
16
|
* {@link DatasourceAccessContext} can authorize a datasource.
|
|
17
|
-
* - Datasource sources are slash-hierarchical opaque paths
|
|
18
|
-
*
|
|
17
|
+
* - Datasource sources are slash-hierarchical opaque paths when the skill
|
|
18
|
+
* supports the `scoped` capability; skills without that capability may
|
|
19
|
+
* expose another opaque identity format.
|
|
19
20
|
*/
|
|
20
21
|
import type { RetrievalMethod } from "../retrieval/types.js";
|
|
21
22
|
export type { RetrievalMethod } from "../retrieval/types.js";
|
|
@@ -62,6 +63,8 @@ export interface DatasourceSkillDescriptor {
|
|
|
62
63
|
export interface DatasourceAccessible {
|
|
63
64
|
readonly datasourceId?: string;
|
|
64
65
|
readonly tags?: readonly string[];
|
|
66
|
+
/** Capability names such as `scoped`; absent means no source-scope support. */
|
|
67
|
+
readonly capabilities?: readonly string[];
|
|
65
68
|
}
|
|
66
69
|
/**
|
|
67
70
|
* A pluggable datasource skill. Skills are server-bound: they are constructed
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** Darwin st_flags bit used by iCloud/File Provider data-less placeholders. */
|
|
2
|
+
export declare const UF_DATALESS = 32768;
|
|
3
|
+
export declare const FILE_PROVIDER_XATTR = "com.apple.file-provider-domain-id";
|
|
4
|
+
/** Windows FILE_ATTRIBUTE_* bits commonly used by Cloud Files placeholders. */
|
|
5
|
+
export declare const WINDOWS_FILE_ATTRIBUTE_OFFLINE = 4096;
|
|
6
|
+
export declare const WINDOWS_FILE_ATTRIBUTE_RECALL_ON_OPEN = 262144;
|
|
7
|
+
export declare const WINDOWS_FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS = 4194304;
|
|
8
|
+
export type FilesystemKind = "local" | "file-provider";
|
|
9
|
+
export interface FilesystemClassification {
|
|
10
|
+
readonly kind: FilesystemKind;
|
|
11
|
+
readonly provider?: string;
|
|
12
|
+
readonly reason: "path-marker" | "file-provider-xattr" | "cloud-volume" | "placeholder-attribute" | "local";
|
|
13
|
+
}
|
|
14
|
+
export declare function pathLooksLikeCloudRoot(target: string): boolean;
|
|
15
|
+
export declare function homeCloudRoots(home?: string): readonly string[];
|
|
16
|
+
export declare function classifyFilesystemRoot(target: string): Promise<FilesystemClassification>;
|
|
17
|
+
export declare function isDatalessPlaceholder(target: string): Promise<boolean>;
|
|
18
|
+
export interface MaterializedWalk {
|
|
19
|
+
readonly materialized: readonly string[];
|
|
20
|
+
readonly skippedDataless: number;
|
|
21
|
+
}
|
|
22
|
+
export declare function listMaterializedFiles(root: string, options?: {
|
|
23
|
+
readonly limit?: number;
|
|
24
|
+
readonly timeoutMs?: number;
|
|
25
|
+
}): Promise<MaterializedWalk>;
|
|
26
|
+
export declare function relativeCloudHint(root: string, filePath: string): string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { AutoRAGAgent, type AutoRAGAgentOptions, type AutoRAGRefreshComponentStatus, type AutoRAGRefreshOptions, type AutoRAGRefreshResult, type AutoRAGRefreshStatus, type AutoRAGWatchRefreshHandle, type AutoRAGWatchRefreshOptions, type AutoRefreshOptions, type RefreshMethod, } from "./agent/agent.js";
|
|
2
|
-
export { type AutoRAGResultsDetails, createEmitResultsTool, EMIT_AUTORAG_RESULTS_TOOL_NAME, type SearchDocumentDiagnostic, type SearchDocumentDiagnosticCode, type SearchDocumentDiagnosticSeverity, type SearchDocumentsResponse, type SearchDocumentWarning, } from "./agent/index.js";
|
|
2
|
+
export { type AutoRAGResultsDetails, createEmitResultsTool, EMIT_AUTORAG_RESULTS_TOOL_NAME, 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 "./datasource/index.js";
|
|
5
5
|
export * from "./dupey/index.js";
|