billion-context-pi 0.1.76 → 0.1.77-pr.490.344

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 CHANGED
@@ -145,11 +145,12 @@ billion-context-pi is built for the **Pi** coding agent (`@earendil-works/pi-cod
145
145
  | `search_context` | Search compressed block summaries (and visible messages) by keyword |
146
146
  | `acp_status` | Show context usage, compressed blocks, compressible ranges |
147
147
  | `acp_cache` | Prompt-cache reconciliation: grand ledger (input/cached/hit rate), per-request miss attribution, per-fold economics |
148
+ | `acp_rule` | Record a short, principle-level reminder that survives compression (opt-in: `"rules": true`) |
148
149
  | `acp_delegate` | Spawn a clean-context sub-agent for a task (review / research / implement / plan / advise) |
149
150
  | `acp_delegate_wait` | Block until a delegate run finishes (returns its result; times out otherwise) |
150
151
  | `acp_delegate_cancel` | Cancel a running delegate by runId |
151
152
 
152
- The four `acp_delegate*` tools are optional: if you bring your own sub-agent extension, disable them with one `acp.json` key — see *Using your own sub-agent instead* below.
153
+ The four `acp_delegate*` tools are optional: if you bring your own sub-agent extension, disable them with one `acp.json` key — see *Using your own sub-agent instead* below. `acp_rule` is likewise opt-in — off by default, enable it with `"rules": true`.
153
154
 
154
155
  ### acp_delegate — clean-context delegation
155
156
 
package/README.zh-CN.md CHANGED
@@ -133,11 +133,12 @@ billion-context-pi 面向 **Pi** 编码代理(`@earendil-works/pi-coding-agent`)
133
133
  | `decompress` | 恢复之前压缩的块内容 |
134
134
  | `search_context` | 按关键词搜索已压缩块摘要(及可见消息) |
135
135
  | `acp_status` | 显示上下文用量、已压缩块、可压缩范围 |
136
+ | `acp_rule` | 记录一条简短、原则性的提醒,穿越压缩保留(可选:`"rules": true`) |
136
137
  | `acp_delegate` | 为某个任务派生一个干净上下文的子代理(审查 / 调研 / 实现 / 规划 / 建议) |
137
138
  | `acp_delegate_wait` | 阻塞等待委派任务完成(返回结果,否则超时) |
138
139
  | `acp_delegate_cancel` | 按 runId 取消正在运行的委派任务 |
139
140
 
140
- `acp_delegate*` 四个工具是可选的:如果你自带子代理扩展,一个 `acp.json` 键即可关闭 —— 见下文*改用你自己的子代理*。
141
+ `acp_delegate*` 四个工具是可选的:如果你自带子代理扩展,一个 `acp.json` 键即可关闭 —— 见下文*改用你自己的子代理*。`acp_rule` 同样是可选项 —— 默认关闭,在 `acp.json` 中设置 `"rules": true` 启用。
141
142
 
142
143
  ### acp_delegate — 干净上下文委派
143
144
 
@@ -7,7 +7,7 @@ var __export = (target, all) => {
7
7
  // src/contract.ts
8
8
  var SIDECAR_SCHEMA_VERSION = 1;
9
9
  function sidecarProducer() {
10
- return `billion-context-pi@${true ? "0.1.76" : "dev"}`;
10
+ return `billion-context-pi@${true ? "0.1.77" : "dev"}`;
11
11
  }
12
12
 
13
13
  export {
@@ -15,4 +15,4 @@ export {
15
15
  SIDECAR_SCHEMA_VERSION,
16
16
  sidecarProducer
17
17
  };
18
- //# sourceMappingURL=chunk-44F6OZJV.js.map
18
+ //# sourceMappingURL=chunk-BKSJVDJY.js.map
@@ -39,4 +39,5 @@ export declare function isCompressSuccessText(text: string): boolean;
39
39
  * the retry cap applies. Non-panels ("No ranges provided.") stay neutral. */
40
40
  export declare function isCompressNoopText(text: string): boolean;
41
41
  export declare function blockSpanLabel(block: CompressionBlock, state: CompressionState): string;
42
+ export declare function tierReadyHint(state: CompressionState, config: ReturnType<AcpRuntime["configFor"]>): string;
42
43
  export {};
package/dist/config.d.ts CHANGED
@@ -293,6 +293,12 @@ export interface AdapterConfig {
293
293
  * multi-session hosts (Prime RLM & co.) whose injected agent messages must
294
294
  * delimit real turns. See docs/host-adapter.md. */
295
295
  hostSession?: boolean | HostSessionConfig;
296
+ /** Persistent-rules feature gate (#526): opt-in `rules: true` in acp.json.
297
+ * Gates the human `/acp-rule` command (list + record — kernel
298
+ * `listRules`/`addRule` against the session `.acp.json` sidecar state) and
299
+ * the model-side `acp_rule` tool (#490). Custom limits via
300
+ * coreOverrides.rules ({ maxRules?, maxRuleChars? }). */
301
+ rules?: boolean;
296
302
  /** Legacy flat alias for `delegate.displayUsage`. Kept for backward
297
303
  * compatibility with existing acp.json files. Prefer `delegate.displayUsage`. */
298
304
  displayUsage?: "merged" | "separate";
package/dist/contract.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  SIDECAR_SCHEMA_VERSION,
3
3
  sidecarProducer
4
- } from "./chunk-44F6OZJV.js";
4
+ } from "./chunk-BKSJVDJY.js";
5
5
  export {
6
6
  SIDECAR_SCHEMA_VERSION,
7
7
  sidecarProducer