billion-context-pi 0.1.73 → 0.1.74-pr.232.289

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
@@ -219,7 +219,7 @@ It discovers the agents and their tool baselines from the installed pi-subagents
219
219
 
220
220
  billion-context-pi works out of the box with no configuration — it reads your model's context window automatically and applies sensible defaults.
221
221
 
222
- Behavior is tuned via an optional `acp.json` config file (`~/.pi/acp.json` for global defaults, `<project>/.pi/acp.json` for per-project overrides) plus a few environment variables. For the complete reference — every key, type, default, and the precedence order — see **[CONFIGURATION.md](./CONFIGURATION.md)** ([中文](./CONFIGURATION.zh-CN.md)).
222
+ Behavior is tuned via an optional `acp.json` config file (`~/.pi/agent/acp.json` for global defaults, `<project>/.pi/agent/acp.json` for per-project overrides) plus a few environment variables. The legacy locations (`~/.pi/acp.json`, `<project>/.pi/acp.json`) are still read for backward compatibility when the new one is absent. For the complete reference — every key, type, default, and the precedence order — see **[CONFIGURATION.md](./CONFIGURATION.md)** ([中文](./CONFIGURATION.zh-CN.md)).
223
223
 
224
224
  ### Logging
225
225
 
package/README.zh-CN.md CHANGED
@@ -216,7 +216,7 @@ billion-context-pi 自带的 `acp_delegate` 工具可独立工作。如果你另
216
216
 
217
217
  billion-context-pi 开箱即用,无需任何配置——它会自动读取模型的上下文窗口并应用合理的默认值。
218
218
 
219
- 行为通过可选的 `acp.json` 配置文件(`~/.pi/acp.json` 为全局默认,`<项目>/.pi/acp.json` 为项目级覆盖)以及若干环境变量来调优。完整参考——每个 key、类型、默认值与优先级顺序——请查阅 **[CONFIGURATION.zh-CN.md](./CONFIGURATION.zh-CN.md)** ([English](./CONFIGURATION.md))。
219
+ 行为通过可选的 `acp.json` 配置文件(`~/.pi/agent/acp.json` 为全局默认,`<项目>/.pi/agent/acp.json` 为项目级覆盖)以及若干环境变量来调优。旧位置(`~/.pi/acp.json`、`<项目>/.pi/acp.json`)在新位置不存在时仍会被读取(向后兼容)。完整参考——每个 key、类型、默认值与优先级顺序——请查阅 **[CONFIGURATION.zh-CN.md](./CONFIGURATION.zh-CN.md)** ([English](./CONFIGURATION.md))。
220
220
 
221
221
  ### 日志
222
222
 
@@ -24,6 +24,7 @@ export declare function makeCompressTool(runtime: AcpRuntime, overrides?: ToolPr
24
24
  type RangeEntry = Static<typeof RangeSpec>;
25
25
  export declare function normalizeRanges(args: CompressArgs): RangeEntry[] | string;
26
26
  export declare function tailRepair(s: string): string | undefined;
27
+ export declare function arrayWrapRepair(s: string): string | undefined;
27
28
  /** Panel block count, or -1 for non-panels. Accepts BOTH the legacy
28
29
  * "… B blocks)" form (0-block runs; historical transcripts replayed by
29
30
  * index/floor-stale) and the #376 "… blocks: b3=m00044–m00097*, …" form. */
@@ -1 +1,12 @@
1
1
  export declare const CONFIG_DIR_NAME: string;
2
+ /**
3
+ * Agent dir (e.g. ~/.pi/agent) with a host feature-detection fallback.
4
+ *
5
+ * Pi's getAgentDir() honors the host's agent-dir env override (<APP>_CODING_AGENT_DIR)
6
+ * and defaults to <home>/<CONFIG_DIR_NAME>/agent. Aliased hosts that do not re-export
7
+ * it would break a static named import exactly like the missing CONFIG_DIR_NAME did in
8
+ * #364, so we feature-detect through the same namespace import and fall back to Pi's
9
+ * default path shape. On such hosts the env override does not apply to this path
10
+ * (documented limitation; all real hosts running pi's code export it).
11
+ */
12
+ export declare function getAgentDir(): string;
package/dist/config.d.ts CHANGED
@@ -278,7 +278,8 @@ export interface AdapterConfig {
278
278
  /** Override acp-kernel's load-bearing compression prompt rules (the 4
279
279
  * Prompts fields). Each set field replaces the kernel default verbatim.
280
280
  * Requires acknowledgePromptsRisk: true — without it, overrides are dropped
281
- * (defaults used) and a warning is logged. Set via ~/.pi/acp.json. */
281
+ * (defaults used) and a warning is logged. Set via acp.json (see
282
+ * CONFIGURATION.md for locations). */
282
283
  prompts?: Partial<Prompts>;
283
284
  /** Must be true for `prompts` overrides to take effect. Acknowledges that
284
285
  * replacing the kernel's tuned compression rules may reduce summary quality