billion-context-pi 0.1.39 → 0.1.41

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/dist/runtime.d.ts CHANGED
@@ -22,7 +22,6 @@ export interface AcpRuntime {
22
22
  /** Drop per-session tracking state (session_start). */
23
23
  clearSessionTracking(sid: string): void;
24
24
  adapter: AdapterConfig;
25
- setAdapter(adapter: AdapterConfig): void;
26
25
  prompts: Prompts;
27
26
  setPrompts(prompts: Prompts): void;
28
27
  markNudgeShown(turnKey: string): void;
@@ -30,6 +29,10 @@ export interface AcpRuntime {
30
29
  clearNudgeTracking(): void;
31
30
  liveContextLimit(ctx: ExtensionContext): number;
32
31
  configFor(ctx: ExtensionContext): Config;
32
+ /** Re-read ~/.<dir>/acp.json + <cwd>/<dir>/acp.json and re-derive the adapter
33
+ * config when the contents change. Cheap no-op when unchanged. Called at
34
+ * session_start and on every context event so config edits apply live. */
35
+ reloadConfig(cwd: string): Promise<void>;
33
36
  stateFor(ctx: ExtensionContext, liveMessages?: AgentMessage[]): Promise<{
34
37
  state: CompressionState;
35
38
  coreMessages: ReturnType<typeof entriesToCoreMessages>;
@@ -0,0 +1,3 @@
1
+ export declare function formatTokens(tokens: number): string;
2
+ export declare function stableTagTokens(text: string): string;
3
+ export declare function rewriteTagTokens(tag: string, body: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "billion-context-pi",
3
- "version": "0.1.39",
3
+ "version": "0.1.41",
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",