@shuind/dsh-codex-harness 0.1.9 → 0.1.10

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
@@ -7,7 +7,7 @@ DSH 继续负责会话、文件系统、Shell、Skills 和插件扩展;本包
7
7
  ## 安装
8
8
 
9
9
  ```sh
10
- dsh plugin --profile web add @shuind/dsh-codex-harness@0.1.9
10
+ dsh plugin --profile web add @shuind/dsh-codex-harness@0.1.10
11
11
  ```
12
12
 
13
13
  重启 Web,创建新会话,在模式菜单中选择 `Codex 模式`。
@@ -19,7 +19,7 @@ dsh plugin --profile web remove @shuind/dsh-codex
19
19
  mv "$DSH_HOME/.agent-presets/codex" "$DSH_HOME/.agent-presets/codex.old"
20
20
  ```
21
21
 
22
- 安装器会把随包提供的 preset 写入 `$DSH_HOME/.agent-presets/codex`,不会覆盖已有目录。
22
+ 安装器会把随包提供的 preset 写入 `$DSH_HOME/.agent-presets/codex`,不会覆盖已有目录。升级已有安装时,请先备份并移除旧的 `codex` preset 目录,再重启 Web,让新版本安装包含压缩组的 preset。
23
23
 
24
24
  ## 提供的工具
25
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shuind/dsh-codex-harness",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "A minimal Codex harness for GPT models that do not fit DSH's native interface, while remaining compatible with the DSH plugin ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -35,6 +35,29 @@
35
35
  config:
36
36
  timeoutMs: 300000
37
37
 
38
+ # Context compaction is agent-scoped in Web. The token meter stays on the host
39
+ # plane, while this group owns the backend, `/compact`, and optional tool-result
40
+ # pruning for Codex sessions.
41
+ - id: compaction
42
+ name: cordis:group
43
+ group: true
44
+ isolate:
45
+ compaction: true
46
+ toolResultPruner: true
47
+ config:
48
+ - id: compaction-basic
49
+ name: '@deepseek-ai/dsh-compaction-basic'
50
+
51
+ - id: command-compact
52
+ name: '@deepseek-ai/dsh-command-compact'
53
+
54
+ - id: tool-result-pruner
55
+ name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
56
+ config:
57
+ thresholdChars: 8192
58
+ headChars: 4096
59
+ tailChars: 1024
60
+
38
61
  # Skills are the dsh extensibility seam and do not change the four Codex core
39
62
  # tool names.
40
63
  - id: skill-filesystem