@xiaoso/dsh-tool-plus 0.1.9 → 0.1.10-beta.1
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.en.md +12 -5
- package/README.md +11 -4
- package/THIRD_PARTY_NOTICES.md +36 -0
- package/lib/client.js +272 -181
- package/lib/index.mjs +875 -1081
- package/lib/{scrapers-mhvFrvjH.mjs → scrapers-DODCPcZW.mjs} +1 -1
- package/lib/types/client/BashPlusCard.d.ts +6 -6
- package/lib/types/client/ToolPlusSection.d.ts +3 -3
- package/lib/types/client/forms.d.ts +6 -6
- package/lib/types/client/index.d.ts +25 -12
- package/lib/types/client/locales.d.ts +1 -1
- package/lib/types/client/preset-panel.d.ts +54 -42
- package/lib/types/config/settings.d.ts +202 -21
- package/lib/types/host/browser-probe-rpc.d.ts +2 -1
- package/lib/types/host/preset-host.d.ts +103 -0
- package/lib/types/host/preset-rpc.d.ts +37 -72
- package/lib/types/presets/compare.d.ts +14 -37
- package/lib/types/presets/conflicts.d.ts +59 -0
- package/lib/types/presets/delta.d.ts +23 -18
- package/lib/types/presets/plan.d.ts +55 -0
- package/lib/types/presets/rows.d.ts +84 -0
- package/lib/types/presets/status.d.ts +56 -47
- package/lib/types/tools/bash/background.d.ts +20 -5
- package/lib/types/tools/bash/streaming-output.d.ts +4 -2
- package/lib/types/tools/shared/browser-rpc-channel.d.ts +84 -42
- package/lib/types/web/client/labels.d.ts +1 -1
- package/lib/types/web/client/row-utils.d.ts +26 -1
- package/lib/{utils-eiUz9n8I.mjs → utils-D80w8vry.mjs} +1 -1
- package/package.json +61 -46
- package/presets/tool-plus-ptc.patch.yml +164 -0
- package/presets/tool-plus-standard.patch.yml +158 -0
- package/lib/types/presets/install.d.ts +0 -44
- package/lib/types/presets/paths.d.ts +0 -41
- package/lib/types/presets/rewrite.d.ts +0 -86
- package/presets/install-presets.mjs +0 -143
- package/presets/package.json +0 -42
- package/presets/tool-plus-ptc/agent.cordis.yml +0 -284
- package/presets/tool-plus-ptc/preset.yml +0 -3
- package/presets/tool-plus-standard/agent.cordis.yml +0 -269
- package/presets/tool-plus-standard/preset.yml +0 -3
package/README.en.md
CHANGED
|
@@ -56,11 +56,18 @@ dsh plugin --profile web add link:<path to this repo>
|
|
|
56
56
|
| **Tool Plus 标准增强版** | official standard | everything in standard mode, with the file/shell toolset swapped for this plugin |
|
|
57
57
|
| **Tool Plus PTC 增强版** | official PTC (Code Mode) | same, but composing multi-step operations through Code Mode's `run_code` |
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
Both presets are **declared by the plugin**: installing it (as a profile bundle) brings two `@deepseek-ai/dsh-agent-preset` declaration rows along in its patch layer, so they appear in the preset list immediately. There is no install step, and the plugin writes nothing at startup.
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
- **
|
|
61
|
+
**Tool Plus → Presets** in the settings page is where you change them. Since dsh 0.1.7 the official preset page is read-only and the `agent_preset` tool is gone, so this panel is the only graphical entry point:
|
|
62
|
+
|
|
63
|
+
- **Minimal update** — disables just the official tool rows still mounted, touching nothing else
|
|
64
|
+
- **Align to template** — replaces this row's whole plugin list with the selected template
|
|
65
|
+
- **Revert to bundled** — removes the override you wrote in the profile configuration (`<profile>/cordis.patch.yml`), falling back to the bundled declaration
|
|
66
|
+
- **View differences** — shows which entries differ before you touch anything
|
|
67
|
+
|
|
68
|
+
Writes go through the harness's own `ctx.configEditor`, so they inherit the profile lock, concurrency protection, atomic write and rollback.
|
|
69
|
+
|
|
70
|
+
> Upgrading from 0.1.9 or earlier: `~/.dsh/.agent-presets/` is **read by nothing** any more (0.1.7 moved presets into the patch layer), so it is safe to delete; the panel tells you when it finds one.
|
|
64
71
|
|
|
65
72
|
## Configuration
|
|
66
73
|
|
|
@@ -71,7 +78,7 @@ Works out of the box, no configuration needed. Common tweaks: background thresho
|
|
|
71
78
|
- **dsh CLI**: installed globally, `npm i -g @deepseek-ai/dsh`
|
|
72
79
|
- **Node.js** ≥ 22.19 or ≥ 24
|
|
73
80
|
- **Git Bash** (recommended): serves as the bash execution environment on Windows
|
|
74
|
-
- Targets DeepSeek Harness `dsh` v0.1.
|
|
81
|
+
- Targets DeepSeek Harness `dsh` v0.1.7-rc.2 (pre-release; interfaces may change)
|
|
75
82
|
|
|
76
83
|
## Notes
|
|
77
84
|
|
package/README.md
CHANGED
|
@@ -56,12 +56,19 @@ dsh plugin --profile web add link:<本仓库路径>
|
|
|
56
56
|
| **Tool Plus 标准增强版** | 官方 standard | 官方标准模式全部能力 + 文件/Shell 工具集换成本插件 |
|
|
57
57
|
| **Tool Plus PTC 增强版** | 官方 PTC(Code Mode) | 同上,但经 Code Mode 以 `run_code` 组合多步操作 |
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
两个预设**随插件声明**:安装插件(作为 profile bundle)时,插件的补丁层里就带着两条 `@deepseek-ai/dsh-agent-preset` 声明行,装上即可在预设列表里选。没有安装步骤,插件启动时也不写任何文件。
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
设置页「Tool Plus → 预设」是改它们的地方(dsh 0.1.7 起官方的预设页只读、也没有 `agent_preset` 工具,所以这里是唯一的图形入口):
|
|
62
|
+
|
|
63
|
+
- **最小更新**:只把这几个仍挂着的官方工具行关掉,其他内容一个字节都不动
|
|
64
|
+
- **对齐模板**:用所选模板整份替换这一行的插件列表
|
|
65
|
+
- **恢复随包**:删掉你写在 profile 配置(`<profile>/cordis.patch.yml`)里的覆盖,回落到随包声明
|
|
63
66
|
- **查看差异**:先看差在哪几行,再决定动不动手
|
|
64
67
|
|
|
68
|
+
写入通过宿主自己的 `ctx.configEditor` 完成,因此自带 profile 锁、并发保护、原子写与失败回滚。
|
|
69
|
+
|
|
70
|
+
> 从 0.1.9 或更早升级过来的话:`~/.dsh/.agent-presets/` 目录**已经没有任何代码读它**(0.1.7 起预设改为补丁层声明),可以安全删除;设置页检测到它会给出提示。
|
|
71
|
+
|
|
65
72
|
## 配置
|
|
66
73
|
|
|
67
74
|
开箱即用,无需配置。需要微调时常用项有:后台阈值(`autoBackgroundMs`)、超时(`defaultTimeoutMs` / `maxTimeoutMs`)、输出截断窗口、编辑默认模式(`editMode`,默认 `replace`)、结构化摘要开关(`readSummarizeEnabled`)。抓取相关:可切换网页转 Markdown 的后端(`fetchReader`,含浏览器 JS 渲染——SPA 页面),设置面板里可一键「探测浏览器」查看本机可用的 Chrome/Edge。
|
|
@@ -71,7 +78,7 @@ dsh plugin --profile web add link:<本仓库路径>
|
|
|
71
78
|
- **dsh CLI**:需全局安装,`npm i -g @deepseek-ai/dsh`
|
|
72
79
|
- **Node.js** ≥ 22.19 或 ≥ 24
|
|
73
80
|
- **Git Bash**(推荐):Windows 上作为 bash 执行环境
|
|
74
|
-
- 适用于 DeepSeek Harness `dsh` v0.1.
|
|
81
|
+
- 适用于 DeepSeek Harness `dsh` v0.1.7-rc.2(pre-release,接口可能变动)
|
|
75
82
|
|
|
76
83
|
## 注意事项
|
|
77
84
|
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -17,6 +17,16 @@ Scope of ported upstream code:
|
|
|
17
17
|
`src/tools/hashline/test/fixtures/` (copied from
|
|
18
18
|
`crates/pi-edit/tests/fixtures/hashline/`), MIT, same notice below.
|
|
19
19
|
|
|
20
|
+
It also contains a verbatim copy of one upstream file set from the project
|
|
21
|
+
[deepseek-harness](https://github.com/deepseek-ai/deepseek-harness):
|
|
22
|
+
|
|
23
|
+
- `presets/baseline/standard.patch.yml` and `presets/baseline/ptc.patch.yml` are
|
|
24
|
+
byte-for-byte copies of `packages/bundle/web-app/presets/standard.patch.yml`
|
|
25
|
+
and `ptc.patch.yml` from the dsh release this plugin pins. They are vendored
|
|
26
|
+
as the **input** to `scripts/build-preset-patches.mjs`, which derives this
|
|
27
|
+
plugin's own two agent-preset declarations from them; the generated files are
|
|
28
|
+
`presets/tool-plus-{standard,ptc}.patch.yml`. MIT, notice below.
|
|
29
|
+
|
|
20
30
|
---
|
|
21
31
|
|
|
22
32
|
oh-my-pi - MIT
|
|
@@ -46,3 +56,29 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
46
56
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
47
57
|
SOFTWARE.
|
|
48
58
|
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
deepseek-harness - MIT
|
|
62
|
+
|
|
63
|
+
MIT License
|
|
64
|
+
|
|
65
|
+
Copyright (c) 2026 DeepSeek
|
|
66
|
+
|
|
67
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
68
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
69
|
+
in the Software without restriction, including without limitation the rights
|
|
70
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
71
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
72
|
+
furnished to do so, subject to the following conditions:
|
|
73
|
+
|
|
74
|
+
The above copyright notice and this permission notice shall be included in all
|
|
75
|
+
copies or substantial portions of the Software.
|
|
76
|
+
|
|
77
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
78
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
79
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
80
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
81
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
82
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
83
|
+
SOFTWARE.
|
|
84
|
+
|