@autorag/librarian 2.13.7 → 2.13.9
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 +15 -0
- package/dist/agent/agent.d.ts +41 -1
- package/dist/agent/calculator-tool.d.ts +39 -0
- package/dist/agent/evidence-ledger.d.ts +11 -0
- package/dist/agent/index-schedule.d.ts +45 -0
- package/dist/agent/index.d.ts +1 -0
- package/dist/agent/result-render.d.ts +43 -0
- package/dist/agent/search-all-tool.d.ts +2 -1
- package/dist/agent/search-minsync-tool.d.ts +2 -1
- package/dist/agent/search-single-datasource-tool.d.ts +2 -1
- package/dist/agent/watch-refresh.d.ts +2 -0
- package/dist/calculator/civil.d.ts +27 -0
- package/dist/calculator/decimal.d.ts +47 -0
- package/dist/calculator/errors.d.ts +4 -0
- package/dist/calculator/expression.d.ts +11 -0
- package/dist/calculator/index.d.ts +17 -0
- package/dist/calculator/operations.d.ts +36 -0
- package/dist/calculator/temporal.d.ts +18 -0
- package/dist/calculator/timezone.d.ts +19 -0
- package/dist/cli/commands/index.d.ts +1 -1
- package/dist/cli/commands/lite-find.d.ts +26 -0
- package/dist/cli/commands/lite-refresh.d.ts +1 -1
- package/dist/cli/commands/refresh.d.ts +4 -0
- package/dist/cli/commands/watch.d.ts +2 -1
- package/dist/cli/index.js +2979 -265
- package/dist/cli/signal-abort.d.ts +21 -0
- package/dist/core.d.ts +2 -0
- package/dist/core.js +2164 -188
- package/dist/find/groups.d.ts +35 -0
- package/dist/find/index.d.ts +10 -0
- package/dist/find/relevance.d.ts +29 -0
- package/dist/find/run.d.ts +24 -0
- package/dist/find/text.d.ts +37 -0
- package/dist/find/types.d.ts +86 -0
- package/dist/index.js +2200 -227
- package/dist/mcp/index.js +2199 -227
- package/dist/minsync/channel-union.d.ts +23 -0
- package/dist/minsync/method.d.ts +7 -0
- package/dist/mirror/sync.d.ts +9 -0
- package/dist/profiles.js +2187 -216
- package/dist/retrieval/engine.d.ts +7 -0
- package/dist/retrieval/merger.d.ts +6 -0
- package/dist/retrieval/record-cut.d.ts +101 -0
- package/package.json +1 -1
- package/skills/autorag/SKILL.md +28 -0
- package/skills/autorag-setup/SKILL.md +39 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** Exit codes a shell reports for a process that stops on a signal: 128 plus the signal number. */
|
|
2
|
+
export declare const SIGNAL_EXIT_CODES: {
|
|
3
|
+
readonly SIGINT: 130;
|
|
4
|
+
readonly SIGTERM: 143;
|
|
5
|
+
};
|
|
6
|
+
export type StopSignal = keyof typeof SIGNAL_EXIT_CODES;
|
|
7
|
+
export interface SignalAbort {
|
|
8
|
+
/** Aborts, with an error naming the signal, when the process is told to stop. */
|
|
9
|
+
readonly signal: AbortSignal;
|
|
10
|
+
/** The first signal received, or `undefined` while none has arrived. */
|
|
11
|
+
readonly received: StopSignal | undefined;
|
|
12
|
+
/** Stop listening. Call once the guarded work has settled. */
|
|
13
|
+
dispose(): void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Turn SIGINT and SIGTERM into an abort the long-running work already understands. Without a listener of its
|
|
17
|
+
* own a command is left to the host-exit cleanup, which kills the child processes but lets the run carry on
|
|
18
|
+
* through its other phases against a dead index; with one, the refresh stops, records itself as failed and the
|
|
19
|
+
* command exits with the signal's conventional code.
|
|
20
|
+
*/
|
|
21
|
+
export declare function abortOnSignal(): SignalAbort;
|
package/dist/core.d.ts
CHANGED
|
@@ -87,5 +87,7 @@ export declare class AutoRAGLite {
|
|
|
87
87
|
}
|
|
88
88
|
/** Resolve the existing CLI config and construct a model-free runtime. */
|
|
89
89
|
export declare function createAutoRAGLite(options?: AutoRAGLiteOptions): AutoRAGLite;
|
|
90
|
+
export type { IndexSchedule, PowerPolicy, PowerSource, ScheduleDay, ScheduleDecision, ScheduleDenyReason, } from "./agent/index-schedule.js";
|
|
91
|
+
export { checkIndexSchedule, detectPowerSource, evaluateIndexSchedule, validateIndexSchedule, } from "./agent/index-schedule.js";
|
|
90
92
|
export type { AgentModelAuth, AgentModelConfig, AgentModelResolutionSource, CliConfig, MinSyncMethodConfig, NormalizedIndexingConfig, RawIndexingMethods, ResolveAgentModelOptions, ResolveConfigInput, ResolvedAgentModel, ResolvedAgentModelDetailed, ResolvedAgentModelRole, ResolvedConfigPath, } from "./cli/config.js";
|
|
91
93
|
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";
|