billion-context-pi 0.1.68-pr.407.205 → 0.1.68

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
@@ -10,16 +10,6 @@ The model decides <em>when</em> and <em>what</em> to compress — not a hard lim
10
10
 
11
11
  ---
12
12
 
13
- ## 📄 Paper / Preprint
14
-
15
- - **[Model-Driven Incremental Hierarchical Compression: Training-Free Multi-Generational Context Management for Long-Lived Coding Agents](./paper/model-driven-incremental-hierarchical-compression-training-free-multi-generational-context-management-for-long-lived-coding-agents.md)** (English, v0.2)
16
-
17
- > 📝 **The paper itself is open-sourced under the MIT License as part of the codebase (`paper/`). It is a living document — anyone may edit it; improvements are welcome via pull request.**
18
-
19
- A production-scale longitudinal study: 4.5 months, three hosts, 174,327 model calls, 18.76B cumulative input tokens (~24.7B across all hosts), zero window violations on 204,800-token models, marathon sessions of 8,584–12,049 calls.
20
-
21
- ---
22
-
23
13
  <p align="center">
24
14
  <a href="https://www.npmjs.com/package/billion-context-pi"><img src="https://img.shields.io/npm/v/billion-context-pi.svg?style=flat-square" alt="npm"></a>
25
15
  <a href="https://github.com/ranxianglei/billion-context-pi/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/billion-context-pi.svg?style=flat-square" alt="license"></a>
package/README.zh-CN.md CHANGED
@@ -8,16 +8,6 @@
8
8
 
9
9
  ---
10
10
 
11
- ## 📄 论文 / 预印本
12
-
13
- - **[模型驱动的分层增量压缩:面向长寿命编码 Agent 的免训练多代上下文管理](./paper/模型驱动的分层增量压缩-免训练多代上下文管理.md)**(中文版,v0.2)
14
-
15
- > 📝 **论文本身与代码一同以 MIT 许可开源(位于 `paper/` 目录),是代码库的一部分 —— 这是一份活文档,任何人都可以编辑,欢迎提 PR 改进。**
16
-
17
- 生产规模纵向研究:四个半月、三宿主、174,327 次模型调用、187.6 亿累计输入 token(三宿主合计约 247 亿),204,800-token 窗口零违规,马拉松会话 8,584–12,049 次调用。
18
-
19
- ---
20
-
21
11
  <p align="center">
22
12
  <a href="https://www.npmjs.com/package/billion-context-pi"><img src="https://img.shields.io/npm/v/billion-context-pi.svg?style=flat-square" alt="npm"></a>
23
13
  <a href="https://github.com/ranxianglei/billion-context-pi/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/billion-context-pi.svg?style=flat-square" alt="license"></a>
@@ -1,7 +1,6 @@
1
1
  import { Type, type Static } from "typebox";
2
2
  import type { ToolDefinition } from "@earendil-works/pi-coding-agent";
3
3
  import type { AcpRuntime } from "./runtime.js";
4
- import { type ToolPromptOverrides } from "./surface.js";
5
4
  import { type CompressionBlock, type CompressionState } from "acp-kernel";
6
5
  declare const RangeSpec: Type.TObject<{
7
6
  startId: Type.TString;
@@ -20,7 +19,7 @@ declare const CompressParams: Type.TObject<{
20
19
  summaryMaxChars: Type.TOptional<Type.TNumber>;
21
20
  }>;
22
21
  type CompressArgs = Static<typeof CompressParams>;
23
- export declare function makeCompressTool(runtime: AcpRuntime, overrides?: ToolPromptOverrides): ToolDefinition<typeof CompressParams>;
22
+ export declare function makeCompressTool(runtime: AcpRuntime): ToolDefinition<typeof CompressParams>;
24
23
  type RangeEntry = Static<typeof RangeSpec>;
25
24
  export declare function normalizeRanges(args: CompressArgs): RangeEntry[] | string;
26
25
  export declare function tailRepair(s: string): string | undefined;
package/dist/config.d.ts CHANGED
@@ -2,8 +2,6 @@ import { type Config, type Prompts } from "acp-kernel";
2
2
  import type { CompressReasoningConfig } from "./reasoning-drop.js";
3
3
  import type { DegenerationGuardConfig } from "./degeneration.js";
4
4
  import type { ThrottleRetryConfig } from "./throttle-retry.js";
5
- import type { PiPromptSections } from "./system-prompt.js";
6
- import type { NudgeSectionsConfig, ToolPromptsConfig } from "./surface.js";
7
5
  /** Per-role delegate defaults. Lets long-lived automation pin a cheaper or
8
6
  * more capable model and a thinking level per delegate role, so the main
9
7
  * agent doesn't have to fill them in on every `acp_delegate()` call. */
@@ -122,13 +120,6 @@ export interface CompressSettings {
122
120
  * tool calls — see CompressReasoningConfig in src/reasoning-drop.ts.
123
121
  * Merged field-wise (drop, threshold) across the three levels. */
124
122
  reasoning?: CompressReasoningConfig;
125
- /** Active prompt pack name (see CONFIGURATION.md “Prompt packs”). Base
126
- * level; override per provider/model via `providers`. "default" or unset =
127
- * built-in defaults. Resolved per request against the live model, so
128
- * switching models mid-session switches the pack. Packs ship text-level
129
- * overrides only; a pack's `toolPrompts` follow the base selection (tool
130
- * definitions freeze at extension load, before the model is known). */
131
- promptPack?: string;
132
123
  }
133
124
  /** Per-provider compression overrides. Carries the same tuning fields as the
134
125
  * global level, plus an optional per-model map keyed by model id. */
@@ -261,21 +252,6 @@ export interface AdapterConfig {
261
252
  * replacing the kernel's tuned compression rules may reduce summary quality
262
253
  * (lost paths/signatures/decisions → worse retrieval). */
263
254
  acknowledgePromptsRisk?: boolean;
264
- /** Override structural sections of the ACP system prompt (ACP TAGS, TOOLS,
265
- * WHEN TO COMPRESS, ...). Tri-state per section: string = replace, null =
266
- * remove, omitted = default. Not risk-gated — these are documentation
267
- * sections, not compression rules. Set via acp.json. */
268
- promptSections?: Partial<PiPromptSections>;
269
- /** Override guidance-class nudge texts (efficiencyNote, emergencyHeader,
270
- * t2Guidance, t3Guidance). Same tri-state semantics. Not risk-gated. */
271
- nudgeSections?: NudgeSectionsConfig;
272
- /** Override the four ACP tool definitions' LLM-facing text (description,
273
- * paramDescriptions, promptSnippet, promptGuidelines). Read synchronously
274
- * at extension load — tool defs are frozen at registration time. */
275
- toolPrompts?: ToolPromptsConfig;
276
- /** Replace (string) or remove (null) the ACP_DELEGATE_NOTIFICATIONS appendix
277
- * injected when the delegate tool is enabled. */
278
- delegatePrompt?: string | null;
279
255
  coreOverrides?: Partial<Config>;
280
256
  }
281
257
  export declare const DEFAULT_TOOL_BASH_TIMEOUT = 60;
@@ -1,12 +1,11 @@
1
1
  import { Type } from "typebox";
2
2
  import type { ToolDefinition } from "@earendil-works/pi-coding-agent";
3
3
  import type { AcpRuntime } from "./runtime.js";
4
- import { type ToolPromptOverrides } from "./surface.js";
5
4
  declare const DecompressParams: Type.TObject<{
6
5
  blockId: Type.TString;
7
6
  full: Type.TOptional<Type.TBoolean>;
8
7
  toFile: Type.TOptional<Type.TString>;
9
8
  inline: Type.TOptional<Type.TBoolean>;
10
9
  }>;
11
- export declare function makeDecompressTool(runtime: AcpRuntime, overrides?: ToolPromptOverrides): ToolDefinition<typeof DecompressParams>;
10
+ export declare function makeDecompressTool(runtime: AcpRuntime): ToolDefinition<typeof DecompressParams>;
12
11
  export {};