@autorag/librarian 2.13.1 → 2.13.3
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 +9 -9
- package/README.md +11 -8
- package/dist/agent/agent.d.ts +12 -6
- package/dist/agent/refresh-progress.d.ts +4 -0
- package/dist/agent/search-documents.d.ts +3 -1
- package/dist/agent/search-progress.d.ts +5 -0
- package/dist/cli/index.js +2502 -1567
- package/dist/cloud/context-overflow.d.ts +29 -0
- package/dist/convert/installer.d.ts +1 -1
- package/dist/core.js +2427 -1500
- package/dist/datasource/connector-skill.d.ts +1 -2
- package/dist/datasource/connector.d.ts +2 -3
- package/dist/datasource/index.d.ts +1 -2
- package/dist/datasource/skills/hister/client.d.ts +5 -5
- package/dist/datasource/skills/hister/setup.d.ts +5 -0
- package/dist/datasource/skills/mailcrawl/types.d.ts +18 -0
- package/dist/datasource/skills/spotlight/connector.d.ts +16 -24
- package/dist/datasource/skills/spotlight/index.d.ts +2 -2
- package/dist/datasource/skills/spotlight/skill.d.ts +26 -13
- package/dist/index.js +2489 -1561
- package/dist/mcp/index.js +2484 -1550
- package/dist/minsync/client.d.ts +2 -2
- package/dist/minsync/index.d.ts +1 -1
- package/dist/minsync/installer.d.ts +1 -1
- package/dist/minsync/method.d.ts +3 -3
- package/dist/minsync/process.d.ts +1 -0
- package/dist/minsync/stage.d.ts +361 -0
- package/dist/minsync/types.d.ts +4 -0
- package/dist/minsync/workspace.d.ts +2 -1
- package/dist/mirror/index-store.d.ts +16 -15
- package/dist/mirror/index.d.ts +2 -2
- package/dist/mirror/paths.d.ts +0 -2
- package/dist/mirror/sync.d.ts +6 -15
- package/dist/parser/types.d.ts +2 -2
- package/dist/process/lifecycle.d.ts +10 -0
- package/dist/profiles.js +2454 -1527
- package/dist/retrieval/scope.d.ts +1 -1
- package/package.json +14 -15
- package/skills/autorag-lite-setup/SKILL.md +3 -3
- package/skills/autorag-setup/SKILL.md +8 -8
- package/dist/datasource/skills/mail-export/connector.d.ts +0 -21
- package/dist/datasource/skills/mail-export/index.d.ts +0 -2
- package/dist/datasource/skills/mail-export/skill.d.ts +0 -20
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context-overflow recovery for the hosted Dazzi Models API.
|
|
3
|
+
*
|
|
4
|
+
* The hosted server reports a request that exceeds the model's window as
|
|
5
|
+
* `400 context_length_exceeded` (or HTTP 413 for an oversized body), which Pi
|
|
6
|
+
* already recognises: it compacts, then retries once.
|
|
7
|
+
*
|
|
8
|
+
* That recovery is not enough on its own. Pi compacts by summarising older
|
|
9
|
+
* turns and keeping the latest ones whole, so an oversized tool result that is
|
|
10
|
+
* the newest turn survives compaction and the retry is rejected again. This
|
|
11
|
+
* module remembers which model just overflowed and how big the rejected request
|
|
12
|
+
* was, so the context guard can hold the retry to a fraction of that size.
|
|
13
|
+
*/
|
|
14
|
+
import { type Api, type AssistantMessageEventStream, type Model, type SimpleStreamOptions, type TranscriptContext } from "@earendil-works/pi-ai";
|
|
15
|
+
/** The context guard reports the estimated size (its chars/4 unit, system prompt and tools included) of each request it releases. */
|
|
16
|
+
export declare function recordRequestEstimate(model: Pick<Model<Api>, "provider" | "id">, estimatedTokens: number): void;
|
|
17
|
+
/**
|
|
18
|
+
* Remember that `model` just overflowed, so later requests are held to half the
|
|
19
|
+
* estimated size of the one that failed. The ceiling only ever ratchets down,
|
|
20
|
+
* and is not set for a model whose requests the guard never sized.
|
|
21
|
+
*/
|
|
22
|
+
export declare function noteContextOverflow(model: Pick<Model<Api>, "provider" | "id">): void;
|
|
23
|
+
/** The most estimated tokens a request to `model` may carry after an overflow, if it has overflowed. */
|
|
24
|
+
export declare function contextOverflowCeiling(model: Pick<Model<Api>, "provider" | "id">): number | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Pi's built-in `openai-responses` stream, unchanged except that a context
|
|
27
|
+
* overflow it reports is noted for {@link contextOverflowCeiling}.
|
|
28
|
+
*/
|
|
29
|
+
export declare function streamDazziSimple(model: Model<Api>, context: TranscriptContext, options?: SimpleStreamOptions): AssistantMessageEventStream;
|
|
@@ -8,7 +8,7 @@ import { type FileeCliOptions } from "./cli.js";
|
|
|
8
8
|
* Filee's own engines (FFmpeg, Pandoc, LibreOffice, ...) are fetched by
|
|
9
9
|
* filee-cli itself on first use.
|
|
10
10
|
*/
|
|
11
|
-
export declare const FILEE_CLI_VERSION = "2.0.0-
|
|
11
|
+
export declare const FILEE_CLI_VERSION = "2.0.0-3";
|
|
12
12
|
export interface FileeCliAsset {
|
|
13
13
|
readonly name: string;
|
|
14
14
|
readonly url: string;
|