billion-context-pi 0.1.71 → 0.1.72
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 +2 -1
- package/dist/cache-tool.d.ts +10 -0
- package/dist/index.js +651 -105
- package/dist/index.js.map +1 -1
- package/dist/proxy-detect.d.ts +13 -0
- package/dist/surface.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -132,6 +132,7 @@ billion-context-pi is built for the **Pi** coding agent (`@earendil-works/pi-cod
|
|
|
132
132
|
| `decompress` | Restore a previously compressed block's content |
|
|
133
133
|
| `search_context` | Search compressed block summaries (and visible messages) by keyword |
|
|
134
134
|
| `acp_status` | Show context usage, compressed blocks, compressible ranges |
|
|
135
|
+
| `acp_cache` | Prompt-cache reconciliation: grand ledger (input/cached/hit rate), per-request miss attribution, per-fold economics |
|
|
135
136
|
| `acp_delegate` | Spawn a clean-context sub-agent for a task (review / research / implement / plan / advise) |
|
|
136
137
|
| `acp_delegate_wait` | Block until a delegate run finishes (returns its result; times out otherwise) |
|
|
137
138
|
| `acp_delegate_cancel` | Cancel a running delegate by runId |
|
|
@@ -171,7 +172,7 @@ If you already run another sub-agent extension (pi-subagents, pi-lens, …), tur
|
|
|
171
172
|
```
|
|
172
173
|
|
|
173
174
|
- Equivalent object form: `{ "delegate": { "enabled": false } }`.
|
|
174
|
-
- **What it removes:** the `acp_delegate`, `acp_delegate_wait` and `acp_delegate_cancel` tools, the `ACP_DELEGATE NOTIFICATIONS` system-prompt section, and the `ctrl+alt+f` fleet shortcut (`/acp-fleet` then reports that delegate is off). Compression is unaffected — `compress`, `decompress`, `search_context` and `
|
|
175
|
+
- **What it removes:** the `acp_delegate`, `acp_delegate_wait` and `acp_delegate_cancel` tools, the `ACP_DELEGATE NOTIFICATIONS` system-prompt section, and the `ctrl+alt+f` fleet shortcut (`/acp-fleet` then reports that delegate is off). Compression is unaffected — `compress`, `decompress`, `search_context`, `acp_status` and `acp_cache` stay.
|
|
175
176
|
- **When it applies:** the three tools are registered at session start, so a change needs a **new session** (or a Pi restart). The system-prompt section is resolved live on every turn, so it can disappear mid-session before the tools do.
|
|
176
177
|
- Want to drop only the prompt section and keep the tools? Set `{ "delegatePrompt": null }`.
|
|
177
178
|
- Pi's `--exclude-tools acp_delegate,acp_delegate_wait,acp_delegate_cancel` is **not** a substitute: it hides the tools but the model still receives the `ACP_DELEGATE NOTIFICATIONS` section describing tools it cannot call. Use `delegate: false`.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Type } from "typebox";
|
|
2
|
+
import type { ExtensionContext, SessionEntry, ToolDefinition } from "@earendil-works/pi-coding-agent";
|
|
3
|
+
import type { AcpRuntime } from "./runtime.js";
|
|
4
|
+
import { type ToolPromptOverrides } from "./surface.js";
|
|
5
|
+
import { type CacheSample } from "acp-kernel";
|
|
6
|
+
declare const CacheParams: Type.TObject<{}>;
|
|
7
|
+
export declare function cacheSamples(entries: SessionEntry[]): CacheSample[];
|
|
8
|
+
export declare function cacheReportText(runtime: AcpRuntime, ctx: ExtensionContext): Promise<string>;
|
|
9
|
+
export declare function makeCacheTool(runtime: AcpRuntime, overrides?: ToolPromptOverrides): ToolDefinition<typeof CacheParams>;
|
|
10
|
+
export {};
|