opencode-acp 1.18.2-pr.440.187 → 1.18.2-pr.443.189
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 +14 -1
- package/README.zh-CN.md +7 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,6 +10,13 @@ The model decides <em>when</em> and <em>what</em> to compress — not a hard lim
|
|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
|
13
|
+
> ⚠️ **Using OpenCode 2.x?** This extension uses the OpenCode **V1** plugin
|
|
14
|
+
> API and does **not** load on OpenCode 2.x. For OpenCode 2.x the recommended
|
|
15
|
+
> context manager is [billion-context](https://github.com/ranxianglei/billion-context):
|
|
16
|
+
> `bili opencode` (launcher) or `bili plugin install opencode` (native plugin,
|
|
17
|
+
> no launcher). This extension remains fully supported on OpenCode **1.x**.
|
|
18
|
+
|
|
19
|
+
---
|
|
13
20
|
|
|
14
21
|
## 📄 Paper / Preprint
|
|
15
22
|
|
|
@@ -67,7 +74,8 @@ Pick by your client:
|
|
|
67
74
|
| Client | Use |
|
|
68
75
|
|---|---|
|
|
69
76
|
| **pi** | [`billion-context-pi`](https://github.com/ranxianglei/billion-context-pi) (in-process extension) |
|
|
70
|
-
| **opencode** | [`opencode-acp`](https://github.com/ranxianglei/opencode-acp) (in-process extension) |
|
|
77
|
+
| **opencode 1.x** | [`opencode-acp`](https://github.com/ranxianglei/opencode-acp) (in-process extension) |
|
|
78
|
+
| **opencode 2.0+** | [`billion-context`](https://github.com/ranxianglei/billion-context) — `bili opencode` (built-in V2 plugin) or `bili plugin install opencode` (self-spawning native plugin, no launcher); `opencode-acp` does not load on 2.x |
|
|
71
79
|
| **omp** | [`billion-context`](https://github.com/ranxianglei/billion-context) via `bili omp` (built-in plugin) |
|
|
72
80
|
| **everything else** (no context hook) | [`billion-context`](https://github.com/ranxianglei/billion-context) — `bili <client>` (launcher, preferred) or `/bili/` prefix |
|
|
73
81
|
|
|
@@ -101,6 +109,11 @@ across all other sessions.
|
|
|
101
109
|
|
|
102
110
|
## Installation
|
|
103
111
|
|
|
112
|
+
> ⚠️ This installs the **V1** plugin — it targets OpenCode **1.x**. On
|
|
113
|
+
> OpenCode **2.x** the plugin will not load; use
|
|
114
|
+
> [billion-context](https://github.com/ranxianglei/billion-context) instead
|
|
115
|
+
> (`bili opencode` or `bili plugin install opencode`).
|
|
116
|
+
|
|
104
117
|
```bash
|
|
105
118
|
opencode plugin opencode-acp@stable --global
|
|
106
119
|
```
|
package/README.zh-CN.md
CHANGED
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
|
13
|
+
> ⚠️ **你用的是 OpenCode 2.x?** 本扩展使用 OpenCode **V1** 插件 API,在 OpenCode 2.x 上**不会加载**。OpenCode 2.x 推荐的上下文管理方案是 [billion-context](https://github.com/ranxianglei/billion-context):`bili opencode`(启动器)或 `bili plugin install opencode`(原生插件,免启动器)。本扩展在 OpenCode **1.x** 上继续完整可用。
|
|
14
|
+
|
|
15
|
+
---
|
|
13
16
|
|
|
14
17
|
## 📄 论文 / 预印本
|
|
15
18
|
|
|
@@ -59,7 +62,8 @@ ACP 将上下文管理的所有权限全部交给模型自己,而不依靠外
|
|
|
59
62
|
| 客户端 | 用这个 |
|
|
60
63
|
|---|---|
|
|
61
64
|
| **pi** | [`billion-context-pi`](https://github.com/ranxianglei/billion-context-pi)(进程内扩展) |
|
|
62
|
-
| **opencode** | [`opencode-acp`](https://github.com/ranxianglei/opencode-acp)(进程内扩展) |
|
|
65
|
+
| **opencode 1.x** | [`opencode-acp`](https://github.com/ranxianglei/opencode-acp)(进程内扩展) |
|
|
66
|
+
| **opencode 2.0+** | [`billion-context`](https://github.com/ranxianglei/billion-context) —— `bili opencode`(内置 V2 插件)或 `bili plugin install opencode`(自拉起原生插件,免启动器);`opencode-acp` 在 2.x 上不加载 |
|
|
63
67
|
| **omp** | [`billion-context`](https://github.com/ranxianglei/billion-context),`bili omp`(内置插件) |
|
|
64
68
|
| **其余所有**(没有上下文 hook) | [`billion-context`](https://github.com/ranxianglei/billion-context) —— `bili <client>`(启动器,优先)或 `/bili/` 前缀 |
|
|
65
69
|
|
|
@@ -88,6 +92,8 @@ ACP 将上下文管理的所有权限全部交给模型自己,而不依靠外
|
|
|
88
92
|
|
|
89
93
|
## 安装
|
|
90
94
|
|
|
95
|
+
> ⚠️ 这里安装的是 **V1** 插件 —— 面向 OpenCode **1.x**。在 OpenCode **2.x** 上该插件不会加载;请改用 [billion-context](https://github.com/ranxianglei/billion-context)(`bili opencode` 或 `bili plugin install opencode`)。
|
|
96
|
+
|
|
91
97
|
```bash
|
|
92
98
|
opencode plugin opencode-acp@stable --global
|
|
93
99
|
```
|
package/dist/index.js
CHANGED
|
@@ -10906,7 +10906,7 @@ import { writeFile as writeFile2, mkdir as mkdir2 } from "fs/promises";
|
|
|
10906
10906
|
import { join as join4 } from "path";
|
|
10907
10907
|
import { existsSync as existsSync4 } from "fs";
|
|
10908
10908
|
import { homedir as homedir3 } from "os";
|
|
10909
|
-
var LOG_VERSION = true ? "1.18.2-pr.
|
|
10909
|
+
var LOG_VERSION = true ? "1.18.2-pr.443.189" : "dev";
|
|
10910
10910
|
var LEVEL_RANK = {
|
|
10911
10911
|
debug: 10,
|
|
10912
10912
|
info: 20,
|
|
@@ -13624,7 +13624,7 @@ var server = (async (ctx) => {
|
|
|
13624
13624
|
}
|
|
13625
13625
|
const logger = new Logger(config.debug, config.debug ? "debug" : config.logLevel);
|
|
13626
13626
|
logger.info("ACP plugin initialized", {
|
|
13627
|
-
version: true ? "1.18.2-pr.
|
|
13627
|
+
version: true ? "1.18.2-pr.443.189" : "dev",
|
|
13628
13628
|
workspace: ctx.directory,
|
|
13629
13629
|
logLevel: logger.level,
|
|
13630
13630
|
debug: config.debug,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "opencode-acp",
|
|
4
|
-
"version": "1.18.2-pr.
|
|
4
|
+
"version": "1.18.2-pr.443.189",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Active Context Pruning — model-driven context management for OpenCode (hardened fork of DCP with 35 bug fixes)",
|
|
7
7
|
"main": "./dist/index.js",
|