@shuind/dsh-codex-harness 0.3.0 → 0.3.2
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/CHANGELOG.md +21 -0
- package/LICENSE +21 -21
- package/README.md +3 -5
- package/README.zh.md +3 -3
- package/RELEASE.md +1 -1
- package/docs/preset-library.md +1 -1
- package/docs/tool-policy.md +1 -1
- package/lib/client.js +268 -138
- package/lib/index.js +38 -20
- package/lib/types/client/desktop.js +30 -22
- package/lib/types/client/index.d.ts +11 -0
- package/lib/types/client/policy-locale.d.ts +14 -3
- package/lib/types/client/policy-locale.js +28 -1
- package/lib/types/client/tool-policy.d.ts +15 -1
- package/lib/types/client/tool-policy.js +67 -10
- package/lib/types/contracts/ui-contracts.d.ts +4 -0
- package/lib/types/entries/preferences.d.ts +3 -2
- package/lib/types/entries/tool-policy.d.ts +2 -77
- package/lib/types/policy/rule-resolver.d.ts +1 -77
- package/lib/types/responses/compact-checkpoint.js +3 -10
- package/lib/types/responses/remote-compact.js +39 -11
- package/package.json +271 -160
- package/src/client/desktop.tsx +40 -22
- package/src/client/policy-locale.ts +27 -2
- package/src/client/tool-policy.tsx +99 -11
- package/src/contracts/ui-contracts.ts +4 -0
- package/src/entries/preferences.ts +2 -1
- package/src/policy/rule-resolver.ts +2 -2
- package/src/responses/compact-checkpoint.ts +2 -8
- package/src/responses/remote-compact.ts +41 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.2 (2026-11-28)
|
|
4
|
+
|
|
5
|
+
- **工具页置顶「GPT 能力」分组**:
|
|
6
|
+
- 在预设工具策略页单独置顶「GPT 能力」分组,高亮展示 GPT 来源的联网搜索(托管搜索 / Codex 搜索 / 双搜索)、`codex_connect_image_generate`(默认徽章与提示注明实测路由至 `GPT-Image-2.6 Sunburst`)以及只读 `/compact` 远程压缩说明行。
|
|
7
|
+
- **修复 GPT 能力徽章未实时刷新问题**:
|
|
8
|
+
- 在 `src/client/desktop.tsx` 的设置页 `injected()` 中补齐 `getCodexConnectScope` 注入,修改 `dsh-codex-connect` 的生图模型或搜索配置后工具页徽章可实时同步。
|
|
9
|
+
- **远程压缩健壮性修复**:
|
|
10
|
+
- JSON 压缩响应解析严格校验 `item.type === 'compaction'`,避免将带 `encrypted_content` 的普通推理项(`reasoning`)误认为压缩结果。
|
|
11
|
+
- 远程压缩遇到未卸载的实时图片内容块时不再静默替换为 `[image omitted]`,而是交回 DSH 适配器回退处理;已显式卸载的图片继续使用标准卸载占位文本。
|
|
12
|
+
- **市场截图维护**:
|
|
13
|
+
- 更新设置页与上下文容量/远程压缩展示截图。
|
|
14
|
+
|
|
15
|
+
## 0.3.1 (2026-11-22)
|
|
16
|
+
|
|
17
|
+
- **适配 DeepSeek Harness `0.2.2-rc.5`**:
|
|
18
|
+
- 将 `engines.dsh` 范围扩展至 `>=0.2.2-rc.1 <=0.2.2-rc.5`,并将全部 `@deepseek-ai/dsh-*` 开发依赖与传递 peer 依赖对齐验证到 `0.2.2-rc.5`。
|
|
19
|
+
- **修复从 GitHub 源码安装触发的 `TS2883` 构建错误**:
|
|
20
|
+
- 为 `src/policy/rule-resolver.ts` 与 `src/entries/preferences.ts` 的 `Config` 补齐显式可移植类型标注,避免在 `pnpm v11` 严格依赖布局下导出 `.d.ts` 时引用非直接依赖 `@deepseek-ai/cosmokit`。
|
|
21
|
+
- **市场元数据维护**:
|
|
22
|
+
- 新增 256px 栅格市场图标 `assets/codex-icon-256.png`,并将 `screenshots.json` 迁移为相对路径。
|
|
23
|
+
|
|
3
24
|
## 0.3.0 (2026-11-18)
|
|
4
25
|
|
|
5
26
|
本版本整合 `0.2.22`–`0.2.40`(本地重构与适配,含 npm `0.2.32-dsh-v0.2.2-rc.1` 之后的演进)并新增以下改进与修复,作为面向 DeepSeek Harness `0.2.2-rc.1`–`0.2.2-rc.4`(`>=0.2.2-rc.1 <=0.2.2-rc.4`)的 `0.3.0` 正式发布版本:
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 DeepSeek
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 DeepSeek
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -2,21 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
给 DeepSeek Harness(DSH)用的 Codex 风格插件:自带一套混合模式编码预设(`codex-hybrid`)和 Codex 常用工具,支持对任意预设按工具做启用 / 替换 / 延迟加载 / 隐藏,也可以单独调整预设提示词,并针对 OpenAI Responses API 与中转站补全了常用请求增强。
|
|
4
4
|
|
|
5
|
-
当前版本 `0.3.
|
|
5
|
+
当前版本 `0.3.2` 适配 **DeepSeek Harness `0.2.2-rc.1`–`0.2.2-rc.5`**(`engines.dsh: >=0.2.2-rc.1 <=0.2.2-rc.5`)。
|
|
6
6
|
|
|
7
7
|
## 安装
|
|
8
8
|
|
|
9
9
|
### 从插件市场 / npm 安装
|
|
10
10
|
|
|
11
|
-
在 Harness 的 **插件 → 添加插件** 中输入 `@shuind/dsh-codex-harness`(或指定 `@shuind/dsh-codex-harness@0.3.
|
|
11
|
+
在 Harness 的 **插件 → 添加插件** 中输入 `@shuind/dsh-codex-harness`(或指定 `@shuind/dsh-codex-harness@0.3.2`),安装后按提示重启 Harness 即可。
|
|
12
12
|
|
|
13
13
|
### 从离线包安装(GitHub Release)
|
|
14
14
|
|
|
15
|
-
1. 在 [Releases](https://github.com/shuind/dsh-codex-harness/releases) 页面下载对应版本的 `.tgz` 安装包(如 `shuind-dsh-codex-harness-0.3.
|
|
15
|
+
1. 在 [Releases](https://github.com/shuind/dsh-codex-harness/releases) 页面下载对应版本的 `.tgz` 安装包(如 `shuind-dsh-codex-harness-0.3.2.tgz`)。
|
|
16
16
|
2. 打开 Harness 桌面端的 **插件 → 添加插件**,填入该 `.tgz` 文件的本地路径确认安装,然后重启 Harness。
|
|
17
17
|
|
|
18
|
-
> 桌面端请直接在软件内的插件页面安装或升级,不要用命令行里可能存在的旧版 `dsh` 去改桌面端的 `desktop` profile。
|
|
19
|
-
|
|
20
18
|
## 功能概览
|
|
21
19
|
|
|
22
20
|
- **Codex 常用工具**:
|
package/README.zh.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# @shuind/dsh-codex-harness
|
|
2
|
-
|
|
3
|
-
中文文档已默认放在 [README.md](README.md)。
|
|
1
|
+
# @shuind/dsh-codex-harness
|
|
2
|
+
|
|
3
|
+
中文文档已默认放在 [README.md](README.md)。
|
package/RELEASE.md
CHANGED
|
@@ -42,7 +42,7 @@ dry-run contains the current `lib/` files, generated `cordis.patch.yml`, preset
|
|
|
42
42
|
sources, exported locales and icon. The generated patch must declare
|
|
43
43
|
`@deepseek-ai/dsh-agent-preset`; it must not mount the legacy directory installer.
|
|
44
44
|
|
|
45
|
-
The `0.3.
|
|
45
|
+
The `0.3.1` build targets Harness `0.2.2-rc.1`–`0.2.2-rc.5` (`>=0.2.2-rc.1 <=0.2.2-rc.5`). Keep that exact engine
|
|
46
46
|
requirement until another runtime has been verified. Do not publish as part of
|
|
47
47
|
an ordinary adaptation task unless the user explicitly requests publishing.
|
|
48
48
|
|
package/docs/preset-library.md
CHANGED
package/docs/tool-policy.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 跨预设工具覆盖
|
|
2
2
|
|
|
3
|
-
版本 `0.3.
|
|
3
|
+
版本 `0.3.1`,目标运行时 DeepSeek Harness `>=0.2.2-rc.1 <=0.2.2-rc.5`。工具覆盖是独立 Host 插件,行 id 为 `codex-tool-policy`,默认 `rules: []`,不会自动改变任何预设。
|
|
4
4
|
|
|
5
5
|
## 改什么,不改什么
|
|
6
6
|
|