opencode-acp 1.14.27 → 1.15.0-pr.376.118
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 -0
- package/README.zh-CN.md +8 -0
- package/dist/index.js +450 -75
- package/dist/index.js.map +1 -1
- package/dist/lib/config-validation.d.ts.map +1 -1
- package/dist/lib/config.d.ts +51 -3
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/hooks.d.ts.map +1 -1
- package/dist/lib/messages/index.d.ts +1 -1
- package/dist/lib/messages/index.d.ts.map +1 -1
- package/dist/lib/messages/inject/utils.d.ts.map +1 -1
- package/dist/lib/messages/reasoning-strip.d.ts +24 -0
- package/dist/lib/messages/reasoning-strip.d.ts.map +1 -1
- package/dist/lib/state/fork-transfer.d.ts +42 -0
- package/dist/lib/state/fork-transfer.d.ts.map +1 -0
- package/dist/lib/state/persistence.d.ts +14 -3
- package/dist/lib/state/persistence.d.ts.map +1 -1
- package/dist/lib/state/state.d.ts +3 -2
- package/dist/lib/state/state.d.ts.map +1 -1
- package/dist/lib/state/types.d.ts +6 -0
- package/dist/lib/state/types.d.ts.map +1 -1
- package/dist/lib/state/utils.d.ts +1 -0
- package/dist/lib/state/utils.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -381,6 +381,15 @@ Each level overrides the previous, so project settings take priority over global
|
|
|
381
381
|
// Preserve your messages during compression.
|
|
382
382
|
// Warning: large copy-pasted prompts will never be compressed away
|
|
383
383
|
"protectUserMessages": false,
|
|
384
|
+
// [#368] Drop oversized reasoning (thinking) from historical compress
|
|
385
|
+
// tool calls at request time. compress calls are hard-exempt from
|
|
386
|
+
// compression, so their thinking rides along every request as an
|
|
387
|
+
// unreclaimable floor. Closed turns only; the active round is never
|
|
388
|
+
// touched. Small thinkings under the threshold are kept.
|
|
389
|
+
"reasoning": {
|
|
390
|
+
"drop": true,
|
|
391
|
+
"threshold": 2048
|
|
392
|
+
},
|
|
384
393
|
},
|
|
385
394
|
// Garbage collection — hardcoded 100% fallback only
|
|
386
395
|
"gc": {
|
package/README.zh-CN.md
CHANGED
|
@@ -334,6 +334,14 @@ ACP 使用自己的配置文件,按以下顺序搜索:
|
|
|
334
334
|
// Preserve your messages during compression.
|
|
335
335
|
// Warning: large copy-pasted prompts will never be compressed away
|
|
336
336
|
"protectUserMessages": false,
|
|
337
|
+
// [#368] 请求时丢弃历史 compress 工具调用中超大的 reasoning(思考)。
|
|
338
|
+
// compress 调用被硬排除在压缩之外,其思考内容会随每次请求原样重发,
|
|
339
|
+
// 形成无法回收的上下文底座。仅作用于已关闭的轮次,活跃轮永不触碰;
|
|
340
|
+
// 低于阈值的小思考保留。
|
|
341
|
+
"reasoning": {
|
|
342
|
+
"drop": true,
|
|
343
|
+
"threshold": 2048
|
|
344
|
+
},
|
|
337
345
|
},
|
|
338
346
|
// 垃圾回收与批量清理
|
|
339
347
|
"gc": {
|