@autorag/librarian 2.4.0 → 2.4.2
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 +25 -3
- package/dist/agent/agent.d.ts +40 -12
- package/dist/agent/emit-results-tool.d.ts +1 -2
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/search-documents.d.ts +11 -2
- package/dist/cli/commands/duplicates.d.ts +6 -0
- package/dist/cli/commands/evidence.d.ts +3 -0
- package/dist/cli/commands/index.d.ts +1 -1
- package/dist/cli/commands/lite-refresh.d.ts +10 -0
- package/dist/cli/commands/lite-retrieve.d.ts +33 -0
- package/dist/cli/commands/lite.d.ts +3 -0
- package/dist/cli/commands/refresh.d.ts +3 -4
- package/dist/cli/commands/report.d.ts +3 -0
- package/dist/cli/commands/search.d.ts +2 -2
- package/dist/cli/commands/status.d.ts +2 -0
- package/dist/cli/commands/tui.d.ts +1 -1
- package/dist/cli/commands/watch.d.ts +3 -1
- package/dist/cli/config.d.ts +0 -11
- package/dist/cli/index.js +1538 -1090
- package/dist/core.d.ts +67 -0
- package/dist/core.js +14786 -0
- package/dist/datasource/access-context.d.ts +1 -1
- package/dist/datasource/result-filter.d.ts +1 -1
- package/dist/datasource/skills/gmail/index.d.ts +0 -1
- package/dist/datasource/skills/gmail/skill.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4015 -3111
- package/dist/jikji/client.d.ts +2 -0
- package/dist/minsync/client.d.ts +2 -1
- package/dist/minsync/index.d.ts +1 -1
- package/dist/minsync/installer.d.ts +7 -1
- package/dist/minsync/method.d.ts +10 -19
- package/dist/mirror/index.d.ts +1 -1
- package/dist/mirror/paths.d.ts +2 -0
- package/dist/retrieval/engine.d.ts +123 -0
- package/dist/retrieval/index.d.ts +1 -2
- package/dist/retrieval/registry.d.ts +2 -2
- package/dist/retrieval/types.d.ts +1 -1
- package/dist/ui/discover.d.ts +0 -2
- package/package.json +6 -2
- package/skills/autorag/SKILL.md +19 -6
- package/skills/autorag-lite-search/SKILL.md +155 -0
- package/skills/autorag-lite-setup/SKILL.md +182 -0
- package/skills/autorag-setup/SKILL.md +62 -23
- package/dist/agent/search-bm25-tool.d.ts +0 -26
- package/dist/datasource/skills/gmail/himalaya-connector.d.ts +0 -51
- package/dist/retrieval/methods/bm25.d.ts +0 -23
package/dist/core.d.ts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { AutoRAGJikjiPrepareResult, AutoRAGRefreshOptions, AutoRAGRefreshResult, AutoRAGRefreshStatus, AutoRAGWatchRefreshHandle, AutoRAGWatchRefreshOptions } from "./agent/agent.js";
|
|
2
|
+
import type { AutoRAGResultsDetails } from "./agent/emit-results-tool.js";
|
|
3
|
+
import { type SearchDocumentsResponse } from "./agent/search-documents.js";
|
|
4
|
+
import { type CliConfig, type ResolveConfigInput } from "./cli/config.js";
|
|
5
|
+
import type { MemorySchemaV4 } from "./memory/memory.js";
|
|
6
|
+
import type { MinSyncSyncResult } from "./minsync/types.js";
|
|
7
|
+
import type { ParsedMirrorSyncResult } from "./mirror/sync.js";
|
|
8
|
+
import type { RetrievalEngine } from "./retrieval/engine.js";
|
|
9
|
+
import type { CuratedResult, RetrievalDiagnostic, RetrievalOptions, RetrievalResult } from "./retrieval/types.js";
|
|
10
|
+
/** Input accepted by {@link createAutoRAGLite}. Flags keep CLI precedence intact. */
|
|
11
|
+
export interface AutoRAGLiteOptions {
|
|
12
|
+
readonly flags?: ResolveConfigInput["flags"];
|
|
13
|
+
readonly env?: NodeJS.ProcessEnv;
|
|
14
|
+
readonly cwd?: string;
|
|
15
|
+
readonly readOnly?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/** The model-free AutoRAG runtime facade. */
|
|
18
|
+
export declare class AutoRAGLite {
|
|
19
|
+
readonly config: CliConfig;
|
|
20
|
+
private readonly agent;
|
|
21
|
+
private readonly retrievalEngine;
|
|
22
|
+
private readonly memory;
|
|
23
|
+
private readonly sessions;
|
|
24
|
+
constructor(config: CliConfig);
|
|
25
|
+
/** Refresh parsed mirrors and configured indexes without constructing a model. */
|
|
26
|
+
refresh(force?: boolean, options?: AutoRAGRefreshOptions): Promise<AutoRAGRefreshResult>;
|
|
27
|
+
/** Alias for callers that model indexing as a lifecycle operation. */
|
|
28
|
+
index(force?: boolean, options?: AutoRAGRefreshOptions): Promise<AutoRAGRefreshResult>;
|
|
29
|
+
/** Return the path-opaque refresh and index health snapshot. */
|
|
30
|
+
getRefreshStatus(): Promise<AutoRAGRefreshStatus>;
|
|
31
|
+
/** Short status alias for headless lifecycle callers. */
|
|
32
|
+
status(): Promise<AutoRAGRefreshStatus>;
|
|
33
|
+
/** Run only parsed-mirror indexing while preserving the agent's path pinning. */
|
|
34
|
+
syncParsedMirrors(force?: boolean): Promise<ParsedMirrorSyncResult>;
|
|
35
|
+
/** Run the configured MinSync indexer without constructing a model. */
|
|
36
|
+
syncMinSync(): Promise<MinSyncSyncResult | undefined>;
|
|
37
|
+
/** Run the configured Jikji preparer without constructing a model. */
|
|
38
|
+
prepareJikji(): Promise<readonly AutoRAGJikjiPrepareResult[] | undefined>;
|
|
39
|
+
/** Start an opt-in incremental filesystem refresh watcher. */
|
|
40
|
+
startWatchRefresh(options?: AutoRAGWatchRefreshOptions): AutoRAGWatchRefreshHandle;
|
|
41
|
+
/** Return the deterministic retrieval engine used by this configured runtime. */
|
|
42
|
+
getRetrievalEngine(): RetrievalEngine;
|
|
43
|
+
/** Retrieve merged results without entering the model-backed agent loop. */
|
|
44
|
+
retrieve(query: string, options?: RetrievalOptions): Promise<{
|
|
45
|
+
results: RetrievalResult[];
|
|
46
|
+
diagnostics: RetrievalDiagnostic[];
|
|
47
|
+
}>;
|
|
48
|
+
/** Retrieve per-method results without entering the model-backed agent loop. */
|
|
49
|
+
retrieveByMethod(query: string, options?: RetrievalOptions): Promise<{
|
|
50
|
+
byMethod: Map<string, RetrievalResult[]>;
|
|
51
|
+
diagnostics: RetrievalDiagnostic[];
|
|
52
|
+
}>;
|
|
53
|
+
/** Persist a typed structured report for later evidence and feedback commands. */
|
|
54
|
+
recordStructuredResultsSession(sessionId: string, query: string, details: AutoRAGResultsDetails): SearchDocumentsResponse;
|
|
55
|
+
/** Generate a session id and persist a typed structured report. */
|
|
56
|
+
recordReport(query: string, details: AutoRAGResultsDetails): SearchDocumentsResponse;
|
|
57
|
+
/** Return the opaque result registry associated with a persisted report. */
|
|
58
|
+
getResultRegistry(sessionId: string): ReadonlyMap<number, CuratedResult>;
|
|
59
|
+
/** Record numbered feedback against a report persisted by this facade. */
|
|
60
|
+
recordFeedbackByNumbers(sessionId: string, usefulNumbers: readonly number[], notUsefulNumbers?: readonly number[]): void;
|
|
61
|
+
/** Return a detached snapshot of persisted evidence and feedback state. */
|
|
62
|
+
getMemorySchema(): MemorySchemaV4;
|
|
63
|
+
}
|
|
64
|
+
/** Resolve the existing CLI config and construct a model-free runtime. */
|
|
65
|
+
export declare function createAutoRAGLite(options?: AutoRAGLiteOptions): AutoRAGLite;
|
|
66
|
+
export type { AgentModelAuth, AgentModelConfig, AgentModelResolutionSource, CliConfig, MinSyncMethodConfig, NormalizedIndexingConfig, RawIndexingMethods, ResolveConfigInput, ResolvedAgentModel, ResolvedAgentModelDetailed, ResolvedAgentModelRole, ResolvedConfigPath, UiConfig, } from "./cli/config.js";
|
|
67
|
+
export { AUTORAG_HOME_ENV, buildAgentOptions, ConfigError, DEFAULT_CONFIG_FILENAME, LEGACY_CONFIG_FILENAME, normalizeEmbedder, normalizeIndexingConfig, normalizeLegacyConfigPaths, readRawConfigObject, resolveAgentModel, resolveAgentModelDetailed, resolveConfig, resolveConfigPath, resolveConfigReadOnly, resolveModel, writeConfigObject, writeDefaultConfig, } from "./cli/config.js";
|