@falling-ts/dsh-force-compact 0.2.2 → 0.2.3
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.cn.md +12 -0
- package/README.md +13 -0
- package/assets/live-conversation.png +0 -0
- package/assets/settings-panel.png +0 -0
- package/package.json +2 -1
package/README.cn.md
CHANGED
|
@@ -214,6 +214,18 @@ falling-ts-force-compact:
|
|
|
214
214
|
|
|
215
215
|
---
|
|
216
216
|
|
|
217
|
+
## 截图
|
|
218
|
+
|
|
219
|
+

|
|
220
|
+
|
|
221
|
+
*设置面板 — `设置 > 强制压缩`。上面九个字段都可以实时编辑,无需重启。*
|
|
222
|
+
|
|
223
|
+
![会话页 — 红色 `[强制压缩中>>>]` 徽章挂在正在进行的回合旁边](assets/live-conversation.png)
|
|
224
|
+
|
|
225
|
+
*会话页 — live-UI 信令有三种状态(🟥 压缩中 / 🟢 已完成 / 🔵 工作中),绿色横幅约 3 s 后淡出回到随机「工作中」文案。*
|
|
226
|
+
|
|
227
|
+
---
|
|
228
|
+
|
|
217
229
|
## License
|
|
218
230
|
|
|
219
231
|
MIT(见 LICENSE)。
|
package/README.md
CHANGED
|
@@ -196,6 +196,19 @@ falling-ts-force-compact:
|
|
|
196
196
|
When the `settings` service is absent, the plugin falls back to the same defaults and still
|
|
197
197
|
compacts — the namespace is optional, never a hard dependency.
|
|
198
198
|
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
## Screenshots
|
|
202
|
+
|
|
203
|
+

|
|
204
|
+
|
|
205
|
+
*Settings panel — `设置 > 强制压缩`. All nine fields above can be edited live without restart.*
|
|
206
|
+
|
|
207
|
+
![Live conversation — red "[forced compacting>>>]" badge pinned beside an in-flight turn](assets/live-conversation.png)
|
|
208
|
+
|
|
209
|
+
*Conversation page — the live-UI signal paints three states (🟥 compressing / 🟢 done / 🔵 working);
|
|
210
|
+
the green banner fades after ~3 s back to a random "working" line.*
|
|
211
|
+
|
|
199
212
|
### Tuning for low-context llama.cpp
|
|
200
213
|
|
|
201
214
|
Serve `Qwen3.8‑27B` with a comfortable-but-modest context and let the plugin decide the
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@falling-ts/dsh-force-compact",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "DSH Cordis plugin: hooks the core model-request seam (agent/pre-step + agent/request) to force-compact a session's context and disable thinking per the \"强制压缩配置\" settings namespace (disableThinking, autoThresholdTokens, retainLatestTokens, turnEndForceCompactionEnabled). When the threshold fires (or /force-compact queues while busy), the latest `retainLatestTokens` of the conversation's surface tokens are KEPT VERBATIM and everything before that cutoff is COMPACTED INTO A SINGLE SUMMARY NODE in one LLM call (original span entries become shadowed/skipped). Also compacts at each turn/end and at each session/flush durability checkpoint. Host half is a pure listener; a web client half registers a settings.section (强制压缩 / Force Compact) that reads and writes the same settings namespace.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"index.js",
|
|
14
14
|
"src/",
|
|
15
15
|
"web/",
|
|
16
|
+
"assets/",
|
|
16
17
|
"cordis.patch.yml"
|
|
17
18
|
],
|
|
18
19
|
"license": "MIT",
|