billion-context-pi 0.1.78 → 0.1.79
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 +3 -2
- package/README.zh-CN.md +3 -2
- package/dist/{chunk-TNMZCJIL.js → chunk-6YLMDMXH.js} +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/contract.js +1 -1
- package/dist/index.js +215 -41
- package/dist/index.js.map +1 -1
- package/dist/rule-tool.d.ts +8 -0
- package/dist/runtime.d.ts +3 -3
- package/dist/session-log.d.ts +12 -0
- package/package.json +1 -1
- /package/dist/{chunk-TNMZCJIL.js.map → chunk-6YLMDMXH.js.map} +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Type } from "typebox";
|
|
2
|
+
import type { ToolDefinition } from "@earendil-works/pi-coding-agent";
|
|
3
|
+
import type { AcpRuntime } from "./runtime.js";
|
|
4
|
+
declare const RuleParams: Type.TObject<{
|
|
5
|
+
rule: Type.TOptional<Type.TString>;
|
|
6
|
+
}>;
|
|
7
|
+
export declare function makeRuleTool(runtime: AcpRuntime): ToolDefinition<typeof RuleParams>;
|
|
8
|
+
export {};
|
package/dist/runtime.d.ts
CHANGED
|
@@ -136,9 +136,9 @@ export interface AcpRuntime {
|
|
|
136
136
|
* is written). Returns the failure count for this exact range fingerprint
|
|
137
137
|
* in this session (issue #250 loop breaker). */
|
|
138
138
|
noteDeadCompress(sid: string, fingerprint: string): number;
|
|
139
|
-
/** Drop a session's dead-range repeat tracking (a successful compress
|
|
140
|
-
*
|
|
141
|
-
* memory hygiene). */
|
|
139
|
+
/** Drop a session's dead-range repeat tracking (a successful compress is
|
|
140
|
+
* progress — reset the #250 loop breaker for the next attempt round;
|
|
141
|
+
* session_shutdown for memory hygiene). Compress does NOT renumber refs. */
|
|
142
142
|
clearDeadCompress(sid: string): void;
|
|
143
143
|
/** Record one turn's FRESH-anchor provider usage sample and report whether
|
|
144
144
|
* the recent window is stable enough to calibrate the internal estimate
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { SessionEntry } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
/** Parse a session jsonl into entries — mirrors pi's own loadEntriesFromFile
|
|
3
|
+
* (JSON.parse per line; blank and malformed lines skipped). */
|
|
4
|
+
export declare function parseSessionLog(text: string): SessionEntry[];
|
|
5
|
+
/** Read-only lookup of entries in ANCESTOR sessions (issue #531): a derived
|
|
6
|
+
* child session (Prime RLM inline) inherits blocks whose message ids exist
|
|
7
|
+
* only in the parent's session log, so decompress must fall back up the
|
|
8
|
+
* parentSession header chain. Walks upward from `sessionFile` (nearest
|
|
9
|
+
* ancestor first), cycle-safe and depth-capped like state inheritance, and
|
|
10
|
+
* returns entries whose base id is in `wantedBaseIds`. The starting session
|
|
11
|
+
* itself is never included; nearest-ancestor entries win on duplicate ids. */
|
|
12
|
+
export declare function loadAncestorEntries(sessionFile: string | undefined, wantedBaseIds: Set<string>): Promise<SessionEntry[]>;
|
package/package.json
CHANGED
|
File without changes
|