@autorag/librarian 2.7.0 → 2.8.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/NOTICE +6 -0
- package/README.md +66 -23
- package/dist/agent/agent.d.ts +119 -25
- package/dist/agent/answer-guidelines.d.ts +19 -0
- package/dist/agent/citations.d.ts +20 -0
- package/dist/agent/index.d.ts +1 -0
- package/dist/agent/jev-extension.d.ts +68 -0
- package/dist/agent/pi-session.d.ts +21 -1
- package/dist/agent/query-decomposition.d.ts +25 -0
- package/dist/agent/query-routing.d.ts +54 -0
- package/dist/agent/search-documents.d.ts +2 -2
- package/dist/agent/system-prompt.d.ts +1 -0
- package/dist/cli/commands/evidence.d.ts +22 -0
- package/dist/cli/commands/init.d.ts +2 -1
- package/dist/cli/commands/update-check.d.ts +8 -0
- package/dist/cli/config.d.ts +66 -1
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +9432 -8427
- package/dist/cli/update-check.d.ts +34 -0
- package/dist/cli/version.d.ts +5 -0
- package/dist/core.d.ts +33 -1
- package/dist/core.js +9505 -8630
- package/dist/everything/bundle.d.ts +15 -3
- package/dist/everything/client.d.ts +22 -5
- package/dist/everything/index.d.ts +1 -1
- package/dist/filesystem/name-search.d.ts +57 -0
- package/dist/fsearch/client.d.ts +7 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +10824 -8655
- package/dist/jikji/client.d.ts +6 -1
- package/dist/mcp/index.d.ts +2 -0
- package/dist/mcp/index.js +29949 -0
- package/dist/mcp/server.d.ts +9 -0
- package/dist/minsync/method.d.ts +6 -3
- package/dist/mirror/index.d.ts +1 -1
- package/dist/mirror/paths.d.ts +6 -0
- package/dist/retrieval/engine.d.ts +32 -1
- package/dist/retrieval/index.d.ts +2 -1
- package/dist/retrieval/rerank.d.ts +2 -0
- package/dist/retrieval/selection.d.ts +97 -0
- package/package.json +7 -3
- package/skills/autorag/SKILL.md +25 -4
- package/skills/autorag-doctor/SKILL.md +27 -18
- package/skills/autorag-lite-setup/SKILL.md +115 -59
- package/skills/autorag-setup/SKILL.md +79 -7
- package/skills/autorag-lite-search/SKILL.md +0 -245
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AutoRAG's own update check. Pi's interactive host reports its own version and
|
|
3
|
+
* changelog; this module answers "is a newer `@autorag/librarian` published?"
|
|
4
|
+
* so the CLI and TUI can notify on AutoRAG's terms.
|
|
5
|
+
*
|
|
6
|
+
* The check is best-effort: any network/parse failure yields `status: "error"`
|
|
7
|
+
* and never throws, so a launch is never blocked or failed by the lookup.
|
|
8
|
+
*/
|
|
9
|
+
export declare const AUTORAG_PACKAGE_NAME = "@autorag/librarian";
|
|
10
|
+
export declare const AUTORAG_UPDATE_COMMAND = "bun install -g @autorag/librarian";
|
|
11
|
+
export declare const AUTORAG_LATEST_VERSION_URL: string;
|
|
12
|
+
export declare const AUTORAG_UPDATE_CHECK_TIMEOUT_MS = 2500;
|
|
13
|
+
export type AutoRAGUpdateStatus = "available" | "up-to-date" | "skipped" | "error";
|
|
14
|
+
export interface AutoRAGUpdateResult {
|
|
15
|
+
readonly status: AutoRAGUpdateStatus;
|
|
16
|
+
readonly packageName: string;
|
|
17
|
+
readonly currentVersion: string;
|
|
18
|
+
readonly latestVersion?: string;
|
|
19
|
+
readonly installCommand: string;
|
|
20
|
+
}
|
|
21
|
+
export interface CheckAutoRAGUpdateOptions {
|
|
22
|
+
/** The running package version to compare against the registry. */
|
|
23
|
+
readonly currentVersion: string;
|
|
24
|
+
/** Registry endpoint override; primarily a test/QA seam. */
|
|
25
|
+
readonly url?: string;
|
|
26
|
+
readonly timeoutMs?: number;
|
|
27
|
+
readonly fetchImpl?: typeof fetch;
|
|
28
|
+
readonly env?: Readonly<Record<string, string | undefined>>;
|
|
29
|
+
}
|
|
30
|
+
/** Semver precedence by numeric core, then release-over-prerelease. `undefined` when either side is unparsable. */
|
|
31
|
+
export declare function comparePackageVersions(left: string, right: string): number | undefined;
|
|
32
|
+
export declare function checkAutoRAGUpdate(options: CheckAutoRAGUpdateOptions): Promise<AutoRAGUpdateResult>;
|
|
33
|
+
/** One-line TUI/CLI notice, or `undefined` when there is nothing to announce. */
|
|
34
|
+
export declare function renderAutoRAGUpdateNotice(result: AutoRAGUpdateResult): string | undefined;
|
package/dist/core.d.ts
CHANGED
|
@@ -2,10 +2,13 @@ import type { AutoRAGJikjiPrepareResult, AutoRAGRefreshOptions, AutoRAGRefreshRe
|
|
|
2
2
|
import type { AutoRAGResultsDetails } from "./agent/emit-results-tool.js";
|
|
3
3
|
import { type SearchDocumentsResponse } from "./agent/search-documents.js";
|
|
4
4
|
import { type CliConfig, type ResolveConfigInput } from "./cli/config.js";
|
|
5
|
+
import type { EverythingSearchRequest, EverythingSearchResult } from "./everything/index.js";
|
|
6
|
+
import type { FSearchSearchRequest, FSearchSearchResult } from "./fsearch/index.js";
|
|
5
7
|
import type { MemorySchemaV4 } from "./memory/memory.js";
|
|
6
8
|
import type { MinSyncSyncResult } from "./minsync/types.js";
|
|
7
9
|
import type { ParsedMirrorSyncResult } from "./mirror/sync.js";
|
|
8
10
|
import type { RetrievalEngine } from "./retrieval/engine.js";
|
|
11
|
+
import type { DatasourceCatalogEntry, RetrievalSelection } from "./retrieval/selection.js";
|
|
9
12
|
import type { CuratedResult, RetrievalDiagnostic, RetrievalOptions, RetrievalResult, RetrievalUnsearchedSurface } from "./retrieval/types.js";
|
|
10
13
|
/** Input accepted by {@link createAutoRAGLite}. Flags keep CLI precedence intact. */
|
|
11
14
|
export interface AutoRAGLiteOptions {
|
|
@@ -40,6 +43,30 @@ export declare class AutoRAGLite {
|
|
|
40
43
|
startWatchRefresh(options?: AutoRAGWatchRefreshOptions): AutoRAGWatchRefreshHandle;
|
|
41
44
|
/** Return the deterministic retrieval engine used by this configured runtime. */
|
|
42
45
|
getRetrievalEngine(): RetrievalEngine;
|
|
46
|
+
/**
|
|
47
|
+
* List the authorized configured datasources for this runtime: identity,
|
|
48
|
+
* capability tags, and authorized source scope strings only — no
|
|
49
|
+
* credentials or config metadata.
|
|
50
|
+
*/
|
|
51
|
+
listDatasources(): DatasourceCatalogEntry[];
|
|
52
|
+
/**
|
|
53
|
+
* Search only the selected datasources/methods/local surfaces. Selection is
|
|
54
|
+
* applied before any backend is invoked, so an unselected or unauthorized
|
|
55
|
+
* datasource never runs. Unknown or unauthorized selections throw
|
|
56
|
+
* {@link RetrievalSelectionError}.
|
|
57
|
+
*/
|
|
58
|
+
searchSelected(query: string, selection?: RetrievalSelection, options?: RetrievalOptions): Promise<{
|
|
59
|
+
results: RetrievalResult[];
|
|
60
|
+
diagnostics: RetrievalDiagnostic[];
|
|
61
|
+
unsearched: RetrievalUnsearchedSurface[];
|
|
62
|
+
}>;
|
|
63
|
+
/**
|
|
64
|
+
* Search the Windows-only Everything index through the model-free provider,
|
|
65
|
+
* delegating to the existing agent backend (unsupported off Windows).
|
|
66
|
+
*/
|
|
67
|
+
searchEverything(request: EverythingSearchRequest): Promise<EverythingSearchResult>;
|
|
68
|
+
/** Search the existing macOS/Linux FSearch client through the model-free provider. */
|
|
69
|
+
searchFsearch(request: FSearchSearchRequest): Promise<FSearchSearchResult>;
|
|
43
70
|
/** Retrieve merged results without entering the model-backed agent loop. */
|
|
44
71
|
retrieve(query: string, options?: RetrievalOptions): Promise<{
|
|
45
72
|
results: RetrievalResult[];
|
|
@@ -58,8 +85,13 @@ export declare class AutoRAGLite {
|
|
|
58
85
|
recordReport(query: string, details: AutoRAGResultsDetails): SearchDocumentsResponse;
|
|
59
86
|
/** Return the opaque result registry associated with a persisted report. */
|
|
60
87
|
getResultRegistry(sessionId: string): ReadonlyMap<number, CuratedResult>;
|
|
88
|
+
/** Record numbered feedback and report whether numbers matched and changed memory. */
|
|
89
|
+
recordFeedbackByNumbersDetailed(sessionId: string, usefulNumbers: readonly number[], notUsefulNumbers?: readonly number[]): {
|
|
90
|
+
matched: boolean;
|
|
91
|
+
applied: boolean;
|
|
92
|
+
};
|
|
61
93
|
/** Record numbered feedback against a report persisted by this facade. */
|
|
62
|
-
recordFeedbackByNumbers(sessionId: string, usefulNumbers: readonly number[], notUsefulNumbers?: readonly number[]):
|
|
94
|
+
recordFeedbackByNumbers(sessionId: string, usefulNumbers: readonly number[], notUsefulNumbers?: readonly number[]): boolean;
|
|
63
95
|
/** Return a detached snapshot of persisted evidence and feedback state. */
|
|
64
96
|
getMemorySchema(): MemorySchemaV4;
|
|
65
97
|
}
|