opencode-acp 1.6.1 → 1.8.0

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
@@ -419,6 +419,34 @@ For the complete list with root cause analysis, see the [bug tracker](https://gi
419
419
 
420
420
  ---
421
421
 
422
+ ## Changelog
423
+
424
+ ### v1.7.0 — Principle-Driven Prompts
425
+
426
+ **Philosophy**: Replaced verbose context-management guidance with 4 concise principles injected every turn. The model now sees *what matters* (principles) instead of *what to do* (rigid rules).
427
+
428
+ **Prompt changes**:
429
+ - 4 principles replace CONTEXT PRESSURE LEVELS, 7-item priority list, DO NOT RE-COMPRESS rules
430
+ - Context display simplified: absolute token count only, no percentage
431
+ - `<acp-context>` tag wrapping (backward compatible with `<dcp-context>`)
432
+
433
+ **Hybrid Tips frequency**:
434
+ - 💡 Light Tips (15-45%): Every turn — non-disruptive reminder
435
+ - ⚠️ Warning Tips (45%+): Key nodes only — first crossing or 10pp growth, prevents over-compression
436
+
437
+ **Config simplification**:
438
+ - Removed `hardNudgeContextPercent` — merged into `minContextLimit`/`maxContextLimit`
439
+ - Removed `perMessageNudgeGrowthPercent` — light Tips show every turn
440
+ - `maxSummaryLength` default: 200 → 2000
441
+ - `maxSummaryLengthHard` default: 3000 → 4000
442
+
443
+ **Bug fixes**:
444
+ - Windows path validation: `os.tmpdir()` + `path.relative()` (was hardcoded `/tmp/`)
445
+ - Compress after-detection: reset warning tracking
446
+ - Dead code cleanup: `shouldInjectPerMessageNudge`, no-op template
447
+
448
+ ---
449
+
422
450
  ## License
423
451
 
424
452
  AGPL-3.0-or-later -- This project is a fork of [@tarquinen/opencode-dcp](https://github.com/Tarquinen/opencode-dynamic-context-pruning). Original copyright belongs to the original author. Modifications and bug fixes by ranxianglei.
package/README.zh-CN.md CHANGED
@@ -391,6 +391,34 @@ ACP 在首次启动时自动将配置从 `dcp.jsonc` 迁移到 `acp.jsonc`,将
391
391
 
392
392
  ---
393
393
 
394
+ ## 更新日志
395
+
396
+ ### v1.7.0 — 原则驱动提示
397
+
398
+ **理念**:用 4 条简洁原则替代冗长的上下文管理指导。模型现在看到的是*重要原则*而非*死板规则*。
399
+
400
+ **提示变更**:
401
+ - 4 条原则替代 CONTEXT PRESSURE LEVELS、7 项优先级列表、DO NOT RE-COMPRESS 规则
402
+ - 上下文显示简化:仅显示绝对 token 数,不显示百分比
403
+ - `<acp-context>` 标签包裹(向后兼容 `<dcp-context>`)
404
+
405
+ **混合 Tips 频率**:
406
+ - 💡 轻量提示(15-45%):每轮显示 — 不打扰
407
+ - ⚠️ 警告提示(45%+):仅关键节点 — 首次跨越或增长 10pp,防止过度压缩
408
+
409
+ **配置简化**:
410
+ - 移除 `hardNudgeContextPercent` — 合并到 `minContextLimit`/`maxContextLimit`
411
+ - 移除 `perMessageNudgeGrowthPercent` — 轻量提示每轮显示
412
+ - `maxSummaryLength` 默认值:200 → 2000
413
+ - `maxSummaryLengthHard` 默认值:3000 → 4000
414
+
415
+ **Bug 修复**:
416
+ - Windows 路径校验:`os.tmpdir()` + `path.relative()`(原硬编码 `/tmp/`)
417
+ - 压缩检测后:重置警告追踪
418
+ - 死代码清理:`shouldInjectPerMessageNudge`、空操作模板
419
+
420
+ ---
421
+
394
422
  ## 许可证
395
423
 
396
424
  AGPL-3.0-or-later — 本项目是 [@tarquinen/opencode-dcp](https://github.com/Tarquinen/opencode-dynamic-context-pruning) 的分支。原始版权归原始作者所有。修改和错误修复由 ranxianglei 完成。
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAyBjD,QAAA,MAAM,MAAM,EAAE,MAkHK,CAAA;AAEnB,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AA0BjD,QAAA,MAAM,MAAM,EAAE,MAmHK,CAAA;AAEnB,eAAe,MAAM,CAAA"}