@shuind/dsh-codex-harness 0.2.4 → 0.2.6

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
@@ -1,49 +1,49 @@
1
- # @shuind/dsh-codex-harness
2
-
3
- 为 DSH 提供可自定义提示词与 Codex 工具的编码模式。
4
-
5
- ## 功能
6
-
7
- - 使用精简codex提示词;对gpt过度拉屎做了少量提示词约束。
8
- - 在 **设置 → 插件 → 插件配置 → Codex Harness** 中查看、编辑或恢复完整提示词。
9
- - 提供 `exec_command`、`write_stdin`、`apply_patch` 和 `update_plan`。
10
- - 支持 Fast 请求、GPT 图片与思考强度和上下文容量。
11
- - 实时显示请求模型、模型回复和上下文压缩状态及耗时。
12
- - Responses 请求优先使用原生 `apply_patch`、hosted `web_search` 和远程压缩,失败时回退到 DSH 实现。
13
-
14
- ## 安装
15
-
16
- ```sh
17
- dsh plugin --profile web add @shuind/dsh-codex-harness@0.2.1
18
- ```
19
-
20
- 重启 Web,在 **Agent 预设** 中选择 **Codex 模式**,再创建会话。
21
-
22
- ## 配置
23
-
24
- ### 模型
25
-
26
- 在 DSH 的 Models 中配置支持 OpenAI Responses 的 provider、endpoint、API key 和 GPT 模型。例如:
27
-
28
- ```yaml
29
- api: openai-responses
30
- baseURL: https://your-responses-endpoint.example.com
31
- apiKeyEnv: OPENAI_API_KEY
32
- ```
33
-
34
- 也可以配合 [dsh-codex-connect](https://github.com/shuind/dsh-codex-connect) 使用 ChatGPT 订阅模型。
35
-
36
- ### 提示词
37
-
38
- 打开 **设置 → 插件 → 插件配置 → Codex Harness**。编辑器展示本插件实际注入的完整提示词;保存后从下一次请求开始生效,点击“恢复默认”可回到随包模板。
39
-
40
- 身份、模型、工作目录、工具说明和 DSH 运行时上下文由对应插件动态提供,不会写死在可编辑模板中。
41
-
42
- ### Fast 与上下文
43
-
44
- - **Fast**:在 Codex 模式的模型菜单中开启,向 Responses 请求发送 `service_tier: "priority"`。
45
- - **上下文容量**:点击输入栏旁的上下文用量指示器,可设置 `1K`–`1000K` tokens;下一次请求和自动压缩使用该值。
46
-
47
- ## License
48
-
49
- MIT
1
+ # @shuind/dsh-codex-harness
2
+
3
+ 为 DSH 提供可自定义提示词与 Codex 工具的编码模式。
4
+
5
+ ## 功能
6
+
7
+ - 使用精简codex提示词;对gpt过度拉屎做了少量提示词约束。
8
+ - 在 **设置 → 插件 → 插件配置 → Codex Harness** 中查看、编辑或恢复完整提示词。
9
+ - 提供 `exec_command`、`write_stdin`、`apply_patch` 和 `update_plan`。
10
+ - 支持 Fast 请求、GPT 图片与思考强度和上下文容量。
11
+ - 实时显示请求模型、模型回复和上下文压缩状态及耗时。
12
+ - Responses 请求优先使用原生 `apply_patch`、hosted `web_search` 和远程压缩,失败时回退到 DSH 实现。
13
+
14
+ ## 安装
15
+
16
+ ```sh
17
+ dsh plugin --profile web add @shuind/dsh-codex-harness@0.2.1
18
+ ```
19
+
20
+ 重启 Web,在 **Agent 预设** 中选择 **Codex 模式**,再创建会话。
21
+
22
+ ## 配置
23
+
24
+ ### 模型
25
+
26
+ 在 DSH 的 Models 中配置支持 OpenAI Responses 的 provider、endpoint、API key 和 GPT 模型。例如:
27
+
28
+ ```yaml
29
+ api: openai-responses
30
+ baseURL: https://your-responses-endpoint.example.com
31
+ apiKeyEnv: OPENAI_API_KEY
32
+ ```
33
+
34
+ 也可以配合 [dsh-codex-connect](https://github.com/shuind/dsh-codex-connect) 使用 ChatGPT 订阅模型。
35
+
36
+ ### 提示词
37
+
38
+ 打开 **设置 → 插件 → 插件配置 → Codex Harness**。编辑器展示本插件实际注入的完整提示词;保存后从下一次请求开始生效,点击“恢复默认”可回到随包模板。
39
+
40
+ 身份、模型、工作目录、工具说明和 DSH 运行时上下文由对应插件动态提供,不会写死在可编辑模板中。
41
+
42
+ ### Fast 与上下文
43
+
44
+ - **Fast**:在 Codex 模式的模型菜单中开启,向 Responses 请求发送 `service_tier: "priority"`。
45
+ - **上下文容量**:点击输入栏旁的上下文用量指示器,可设置 `1K`–`1000K` tokens;下一次请求和自动压缩使用该值。
46
+
47
+ ## License
48
+
49
+ MIT
package/cordis.patch.yml CHANGED
@@ -1,11 +1,11 @@
1
- - insert:
2
- # Keep preset installation and settings registration on the host plane.
3
- - id: codex-preset-installer
4
- name: '@shuind/dsh-codex-harness/installer'
5
- # This row owns the global capability layer and also advertises the
6
- # browser face. Codex prompt/tools remain agent-preset scoped.
7
- - id: codex-client
8
- name: '@shuind/dsh-codex-harness'
9
- config:
10
- globalEnhancements: true
11
- codexCore: false
1
+ - insert:
2
+ # Keep preset installation and settings registration on the host plane.
3
+ - id: codex-preset-installer
4
+ name: '@shuind/dsh-codex-harness/installer'
5
+ # This row owns the global capability layer and also advertises the
6
+ # browser face. Codex prompt/tools remain agent-preset scoped.
7
+ - id: codex-client
8
+ name: '@shuind/dsh-codex-harness'
9
+ config:
10
+ globalEnhancements: true
11
+ codexCore: false