billion-context-pi 0.0.6 → 0.1.24
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 +9 -9
- package/README.zh-CN.md +8 -8
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# billion-context-pi
|
|
2
2
|
|
|
3
3
|
[English](./README.md) | [中文](./README.zh-CN.md)
|
|
4
4
|
|
|
@@ -11,13 +11,13 @@ The model decides <em>when</em> and <em>what</em> to compress — not a hard lim
|
|
|
11
11
|
---
|
|
12
12
|
|
|
13
13
|
<p align="center">
|
|
14
|
-
<a href="https://www.npmjs.com/package/
|
|
15
|
-
<a href="https://github.com/ranxianglei/
|
|
16
|
-
<a href="https://github.com/ranxianglei/
|
|
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>
|
|
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>
|
|
16
|
+
<a href="https://github.com/ranxianglei/billion-context-pi"><img src="https://img.shields.io/badge/GitHub-ranxianglei%2Fbillion--context--pi-181717?style=flat-square&logo=github" alt="GitHub"></a>
|
|
17
17
|
</p>
|
|
18
18
|
|
|
19
19
|
<p align="center">
|
|
20
|
-
<code>pi install npm:
|
|
20
|
+
<code>pi install npm:billion-context-pi</code>
|
|
21
21
|
</p>
|
|
22
22
|
|
|
23
23
|
---
|
|
@@ -40,12 +40,12 @@ This means:
|
|
|
40
40
|
## Install
|
|
41
41
|
|
|
42
42
|
```bash
|
|
43
|
-
pi install npm:
|
|
43
|
+
pi install npm:billion-context-pi
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
That's it. The extension auto-loads on next Pi startup. No configuration needed — it reads your model's context window automatically.
|
|
47
47
|
|
|
48
|
-
> **Uninstall `pi-subagents` first (optional, recommended).**
|
|
48
|
+
> **Uninstall `pi-subagents` first (optional, recommended).** billion-context-pi ships its own `acp_delegate` sub-agent tool (see below) that replaces pi-subagents at a fraction of the context cost (~600 tok vs ~7K tok/turn). If you have pi-subagents installed, remove it to avoid duplicate delegation tools:
|
|
49
49
|
> ```bash
|
|
50
50
|
> pi remove npm:pi-subagents
|
|
51
51
|
> ```
|
|
@@ -101,7 +101,7 @@ Rich status display for the user:
|
|
|
101
101
|
╭─────────────────────────────────────────────╮
|
|
102
102
|
│ ACP Context Analysis │
|
|
103
103
|
╰─────────────────────────────────────────────╯
|
|
104
|
-
|
|
104
|
+
billion-context-pi@0.1.14
|
|
105
105
|
|
|
106
106
|
Context: 12% (120K / 1.0M)
|
|
107
107
|
Growth: +15K since last nudge
|
|
@@ -121,7 +121,7 @@ Blocks: 3 active (3.7K summary, 15.2K original compressed)
|
|
|
121
121
|
|
|
122
122
|
## Configuration
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
billion-context-pi works out of the box with no configuration. Three optional keys can be set in a JSON config file.
|
|
125
125
|
|
|
126
126
|
### Config file
|
|
127
127
|
|
package/README.zh-CN.md
CHANGED
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
<p align="center">
|
|
12
|
-
<a href="https://www.npmjs.com/package/
|
|
13
|
-
<a href="https://github.com/ranxianglei/
|
|
14
|
-
<a href="https://github.com/ranxianglei/
|
|
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>
|
|
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>
|
|
14
|
+
<a href="https://github.com/ranxianglei/billion-context-pi"><img src="https://img.shields.io/badge/GitHub-ranxianglei%2Fbillion--context--pi-181717?style=flat-square&logo=github" alt="GitHub"></a>
|
|
15
15
|
</p>
|
|
16
16
|
|
|
17
17
|
<p align="center">
|
|
18
|
-
<code>pi install npm:
|
|
18
|
+
<code>pi install npm:billion-context-pi</code>
|
|
19
19
|
</p>
|
|
20
20
|
|
|
21
21
|
---
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
## 安装
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
|
-
pi install npm:
|
|
42
|
+
pi install npm:billion-context-pi
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
完成。扩展在下次 Pi 启动时自动加载。无需配置 —— 它会自动读取模型的上下文窗口。
|
|
46
46
|
|
|
47
|
-
> **建议先卸载 `pi-subagents`(可选,推荐)。**
|
|
47
|
+
> **建议先卸载 `pi-subagents`(可选,推荐)。** billion-context-pi 自带 `acp_delegate` 子代理工具(见下文),以极低的上下文成本(~600 tok vs ~7K tok/轮)替代 pi-subagents。如果你已安装 pi-subagents,卸载它以避免重复的委派工具:
|
|
48
48
|
> ```bash
|
|
49
49
|
> pi remove npm:pi-subagents
|
|
50
50
|
> ```
|
|
@@ -100,7 +100,7 @@ Pi 内置的自动压缩会被取消 —— ACP 是唯一的上下文管理者
|
|
|
100
100
|
╭─────────────────────────────────────────────╮
|
|
101
101
|
│ ACP Context Analysis │
|
|
102
102
|
╰─────────────────────────────────────────────╯
|
|
103
|
-
|
|
103
|
+
billion-context-pi@0.1.14
|
|
104
104
|
|
|
105
105
|
Context: 12% (120K / 1.0M)
|
|
106
106
|
Growth: +15K since last nudge
|
|
@@ -120,7 +120,7 @@ Blocks: 3 active (3.7K summary, 15.2K original compressed)
|
|
|
120
120
|
|
|
121
121
|
## 配置
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
billion-context-pi 开箱即用,无需任何配置。可以在 JSON 配置文件中设置三个可选 key。
|
|
124
124
|
|
|
125
125
|
### 配置文件
|
|
126
126
|
|
package/dist/index.js
CHANGED
|
@@ -8185,7 +8185,7 @@ async function statusReport(runtime, ctx) {
|
|
|
8185
8185
|
const activeBlocksList = state.blocks.filter((b) => b.active);
|
|
8186
8186
|
const totalBlocksList = state.blocks;
|
|
8187
8187
|
const lines = [];
|
|
8188
|
-
const versionStr = "0.
|
|
8188
|
+
const versionStr = "0.1.24" ? `billion-context-pi@${"0.1.24"}` : "";
|
|
8189
8189
|
lines.push("\u256D\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256E");
|
|
8190
8190
|
lines.push("\u2502 ACP Context Analysis \u2502");
|
|
8191
8191
|
lines.push("\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256F");
|
|
@@ -8433,7 +8433,7 @@ async function checkForUpdate(autoUpdate, notify) {
|
|
|
8433
8433
|
const data = await res.json();
|
|
8434
8434
|
const latest = data.version;
|
|
8435
8435
|
if (!latest) return;
|
|
8436
|
-
const current = runtimeVersion ?? "0.
|
|
8436
|
+
const current = runtimeVersion ?? "0.1.24";
|
|
8437
8437
|
debug.event("update-check", {
|
|
8438
8438
|
current,
|
|
8439
8439
|
latest,
|