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.
@@ -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
- * renumbers refs so old fingerprints are meaningless; session_shutdown for
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "billion-context-pi",
3
- "version": "0.1.78",
3
+ "version": "0.1.79",
4
4
  "description": "One billion, not one million. Model-driven context management for the Pi coding agent.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",