@autorag/librarian 2.13.2 → 2.13.4
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 +3 -0
- package/README.md +0 -1
- package/dist/agent/context-token-guard.d.ts +11 -6
- package/dist/agent/token-count.d.ts +4 -0
- package/dist/cli/index.js +287 -632
- package/dist/cloud/context-overflow.d.ts +29 -0
- package/dist/core.js +203 -547
- package/dist/datasource/connector-skill.d.ts +1 -1
- package/dist/datasource/connector.d.ts +1 -1
- package/dist/datasource/index.d.ts +0 -1
- package/dist/index.js +205 -552
- package/dist/mcp/index.js +205 -549
- package/dist/profiles.js +288 -632
- package/package.json +2 -1
- package/skills/autorag-doctor/SKILL.md +1 -2
- package/skills/autorag-lite-setup/SKILL.md +1 -1
- package/skills/autorag-setup/SKILL.md +3 -4
- package/dist/datasource/skills/spotlight/connector.d.ts +0 -53
- package/dist/datasource/skills/spotlight/index.d.ts +0 -2
- package/dist/datasource/skills/spotlight/skill.d.ts +0 -33
package/NOTICE
CHANGED
package/README.md
CHANGED
|
@@ -667,7 +667,6 @@ AutoRAG Agent connects to external tools and communication platforms using dedic
|
|
|
667
667
|
| **Cloud Drives** | `cloud-drive` | [`rclone`](https://rclone.org) CLI | Google Drive (Tier-1), OneDrive, Dropbox, etc. | Incremental Mirror + BM25 |
|
|
668
668
|
| **Photos & Shots** | `clawgallery` | `clawgallery` CLI | Local screenshot and photo store | Hybrid OCR/Visual Search |
|
|
669
669
|
| **RSS / News** | `rss` | Native HTTP Poller | RSS 2.0 & Atom feeds (24h deduplication) | Lexical |
|
|
670
|
-
| **macOS Spotlight** | `spotlight` | Native `mdfind` CLI | macOS system metadata and content index | System Native |
|
|
671
670
|
| **Browser History** | `hister` | [Hister](https://github.com/asciimoo/hister) server (AGPL-3.0-or-later, separate program, HTTP API) | Pages visited in Chrome/Chromium/Firefox, captured by Hister's own extension and indexed by Hister (web pages only; its local-file indexing is never used) | Lexical full-text; optional Semantic via Hister's own embedding endpoint |
|
|
672
671
|
|
|
673
672
|
For configuration syntax and connector details, see [docs/datasource-skills.md](docs/datasource-skills.md). Non-interactive `sync`/`index` steps get a one-hour per-connector budget (`connector.indexTimeoutMs`) because first-run imports routinely take minutes; interactive search keeps its 60-second default.
|
|
@@ -20,15 +20,20 @@ export declare function createContextTokenGuardedTransform(model: ContextTokenGu
|
|
|
20
20
|
/** The model with its output limit held to {@link MAX_OUTPUT_TOKENS}; the same model when already within it, or when absent. */
|
|
21
21
|
export declare function withBoundedOutput<T extends Model<any> | undefined>(model: T): T;
|
|
22
22
|
/**
|
|
23
|
-
* Keep
|
|
24
|
-
*
|
|
25
|
-
*
|
|
23
|
+
* Keep the request inside the model budget by dropping retrieval chunks only: the
|
|
24
|
+
* lowest-ranked ones go first, across every ranked list in the transcript (every
|
|
25
|
+
* list's best chunk stays before any list's second), each with an explicit marker.
|
|
26
|
+
* The user's query, earlier turns, and the system prompt are never edited. When no
|
|
27
|
+
* chunk is left to drop, only the newest tool result is shortened; anything still
|
|
28
|
+
* too large is left for the provider to reject and pi's compaction to recover.
|
|
26
29
|
*/
|
|
27
30
|
export declare function guardAgentContextMessages(model: Model<any> | undefined, messages: AgentMessage[], useReportedUsage?: boolean, fixedOverheadTokens?: number): AgentMessage[];
|
|
28
31
|
/**
|
|
29
|
-
* Estimate the current transcript
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
+
* Estimate the current transcript: pi-coding-agent's chars/4 counter as the
|
|
33
|
+
* floor, raised by a real BPE count for text that chars/4 undercounts (see
|
|
34
|
+
* `token-count.ts`). `useReportedUsage` adds the last assistant turn's
|
|
35
|
+
* provider-reported usage for the settled prefix; pass false when the messages
|
|
36
|
+
* were just edited.
|
|
32
37
|
*/
|
|
33
38
|
export declare function estimateContextMessageTokens(messages: readonly AgentMessage[], useReportedUsage?: boolean): number;
|
|
34
39
|
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Tokens in `text`, never fewer than the chars/4 guess so prose keeps the budget it had. */
|
|
2
|
+
export declare function estimateTextTokens(text: string): number;
|
|
3
|
+
/** How many tokens the pieces add beyond their chars/4 guesses; zero for prose. */
|
|
4
|
+
export declare function tokensBeyondCharGuess(parts: readonly string[]): number;
|