@ran-sh/dsh-crew 0.3.7 → 0.3.8
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 +36 -67
- package/README.zh.md +37 -68
- package/lib/client.js +3446 -3446
- package/official-web-bridge/cordis.patch.yml +4 -0
- package/official-web-bridge/entry.mjs +1 -0
- package/official-web-bridge/lib/client.js +3446 -0
- package/official-web-bridge/package.json +26 -0
- package/package.json +5 -3
- package/scripts/build-client.mjs +5 -1
- package/scripts/verify-official-bridge-e2e.mjs +159 -0
- package/src/dsh-cli-runtime.mjs +219 -208
- package/src/install/npx-lifecycle.mjs +67 -3
- package/src/install/official-web.mjs +132 -0
- package/src/official-web-bridge.mjs +196 -0
- package/src/runtime-identity.mjs +1 -1
package/README.md
CHANGED
|
@@ -1,124 +1,93 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<img src="./docs/images/dsh-crew-logo.png" alt="DSH Crew" width="120" />
|
|
3
|
-
</p>
|
|
1
|
+
<p align="center"><img src="./docs/images/dsh-crew-logo.png" alt="DSH Crew" width="120" /></p>
|
|
4
2
|
|
|
5
3
|
<h1 align="center">DSH Crew</h1>
|
|
6
4
|
|
|
7
|
-
<p align="center"><strong>
|
|
5
|
+
<p align="center"><strong>Workers and reviewers for Codex Desktop and Claude Code, shown inside the official DeepSeek Harness UI.</strong></p>
|
|
8
6
|
|
|
9
7
|
<p align="center"><a href="./README.md"><b>English</b></a> · <a href="./README.zh.md">简体中文</a></p>
|
|
10
8
|
|
|
11
|
-
##
|
|
12
|
-
|
|
13
|
-
- A `worker` for implementation, fixes, tests, and repository inspection.
|
|
14
|
-
- A read-only `reviewer` with its own model priority.
|
|
15
|
-
- Ordered provider/model routing for both roles.
|
|
16
|
-
- Temporary Git worktrees by default, so workers do not edit your main workspace directly.
|
|
17
|
-
- A live settings and jobs panel inside DeepSeek Harness.
|
|
18
|
-
|
|
19
|
-
## Install
|
|
9
|
+
## Quick start
|
|
20
10
|
|
|
21
11
|
Requirements: Node.js; Git is required for worktree isolation.
|
|
22
12
|
|
|
23
13
|
```bash
|
|
24
14
|
npm install -g @ran-sh/dsh-crew@latest
|
|
25
15
|
dsh-crew install
|
|
16
|
+
dsh-crew integrate
|
|
26
17
|
```
|
|
27
18
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
## Start Harness
|
|
31
|
-
|
|
32
|
-
Windows PowerShell:
|
|
33
|
-
|
|
34
|
-
```powershell
|
|
35
|
-
$env:DSH_HOME = "$HOME\.config\dsh-crew\harness"
|
|
36
|
-
& "$env:DSH_HOME\runtime\node_modules\.bin\dsh.cmd" --profile dsh-crew --port 3210
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
macOS / Linux:
|
|
19
|
+
Start the official Harness on port 3080 as usual:
|
|
40
20
|
|
|
41
21
|
```bash
|
|
42
|
-
|
|
43
|
-
"$HOME/.config/dsh-crew/harness/runtime/node_modules/.bin/dsh" \
|
|
44
|
-
--profile dsh-crew --port 3210
|
|
22
|
+
npx -y @deepseek-ai/dsh web --host 127.0.0.1 --port 3080
|
|
45
23
|
```
|
|
46
24
|
|
|
47
|
-
Open <http://127.0.0.1:
|
|
25
|
+
Open <http://127.0.0.1:3080> and go to **Settings → DSH Crew**. The official 3080 process displays the UI; Crew work stays in an isolated backend on `127.0.0.1:3210`, which the bridge starts in the background when needed.
|
|
48
26
|
|
|
49
27
|
## Configure
|
|
50
28
|
|
|
51
|
-
1.
|
|
52
|
-
2.
|
|
53
|
-
3.
|
|
54
|
-
4.
|
|
55
|
-
5.
|
|
56
|
-
|
|
57
|
-
The settings page is split into collapsible modules. Each closed module still shows its effective state and first-priority model.
|
|
29
|
+
1. Click **Refresh Harness Models**.
|
|
30
|
+
2. Set the model order for Worker and Reviewer.
|
|
31
|
+
3. Keep Worker on **Auto** for automatic delegation.
|
|
32
|
+
4. Reviewer defaults to **Manual**; enable automatic review only when wanted.
|
|
33
|
+
5. Keep **worktree** isolation for coding tasks.
|
|
58
34
|
|
|
59
|
-
|
|
35
|
+
With one configured model, both roles simply use that model. With several models, each role tries its ordered list and falls back to the next available model. Settings modules are collapsible and show their effective state while closed.
|
|
60
36
|
|
|
61
|
-
|
|
37
|
+
## Use from Codex or Claude
|
|
62
38
|
|
|
63
39
|
```text
|
|
64
40
|
Use ds-worker to implement this change and run the tests.
|
|
65
41
|
Use ds-reviewer to review the result.
|
|
66
42
|
```
|
|
67
43
|
|
|
68
|
-
Legacy `ds-flash` and `ds-pro` aliases remain
|
|
44
|
+
Legacy `ds-flash` and `ds-pro` aliases remain compatible.
|
|
69
45
|
|
|
70
|
-
##
|
|
46
|
+
## Common commands
|
|
71
47
|
|
|
72
48
|
```bash
|
|
73
|
-
dsh-crew status
|
|
74
|
-
dsh-crew update
|
|
75
|
-
dsh-crew
|
|
49
|
+
dsh-crew status # installation and integration health
|
|
50
|
+
dsh-crew update # update and repair enabled integrations
|
|
51
|
+
dsh-crew integrate # connect official 3080 UI to isolated 3210 Crew
|
|
52
|
+
dsh-crew detach # remove only the 3080 bridge
|
|
53
|
+
dsh-crew uninstall # remove Crew, keep config and backups
|
|
76
54
|
```
|
|
77
55
|
|
|
78
|
-
`uninstall
|
|
56
|
+
`dsh-crew uninstall --purge` also removes Crew configuration and backups.
|
|
79
57
|
|
|
80
|
-
|
|
58
|
+
If you prefer a completely separate UI, run `dsh-crew detach`, then start the isolated profile directly:
|
|
81
59
|
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
dsh-crew
|
|
60
|
+
```powershell
|
|
61
|
+
$env:DSH_HOME = "$HOME\.config\dsh-crew\harness"
|
|
62
|
+
& "$env:DSH_HOME\runtime\node_modules\.bin\dsh.cmd" --profile dsh-crew --host 127.0.0.1 --port 3210
|
|
85
63
|
```
|
|
86
64
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
Crew owns a dedicated Harness home and profile:
|
|
65
|
+
The bridge backs up the official `web` profile before its first change and registers only a lightweight proxy/client package. The full Crew Hub, model execution, config, and credentials stay under:
|
|
90
66
|
|
|
91
67
|
```text
|
|
92
68
|
~/.config/dsh-crew/harness
|
|
93
69
|
profile: dsh-crew
|
|
94
70
|
```
|
|
95
71
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
Developer install:
|
|
99
|
-
|
|
100
|
-
```bash
|
|
101
|
-
git clone https://github.com/Ran-sh/dsh-crew.git
|
|
102
|
-
cd dsh-crew
|
|
103
|
-
node scripts/setup.mjs install
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
Developer uninstall:
|
|
72
|
+
For launchers at `<= 0.3.3`, first refresh the launcher because the old updater cannot discover newer releases and cannot be retroactively fixed:
|
|
107
73
|
|
|
108
74
|
```bash
|
|
109
|
-
|
|
75
|
+
npm install -g @ran-sh/dsh-crew@latest
|
|
76
|
+
dsh-crew update
|
|
110
77
|
```
|
|
111
78
|
|
|
112
|
-
##
|
|
79
|
+
## Source development
|
|
113
80
|
|
|
114
81
|
```bash
|
|
115
|
-
|
|
82
|
+
git clone https://github.com/Ran-sh/dsh-crew.git
|
|
83
|
+
cd dsh-crew
|
|
84
|
+
node scripts/setup.mjs install
|
|
116
85
|
node --test test/*.test.mjs
|
|
117
86
|
pnpm run build:client
|
|
118
|
-
|
|
87
|
+
node scripts/setup.mjs uninstall
|
|
119
88
|
```
|
|
120
89
|
|
|
121
|
-
More detail: [Changelog](./CHANGELOG.md) · [Readiness matrix](./docs/readiness-matrix.md)
|
|
90
|
+
More detail: [Changelog](./CHANGELOG.md) · [Readiness matrix](./docs/readiness-matrix.md)
|
|
122
91
|
|
|
123
92
|
## License
|
|
124
93
|
|
package/README.zh.md
CHANGED
|
@@ -1,124 +1,93 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<img src="./docs/images/dsh-crew-logo.png" alt="DSH Crew" width="120" />
|
|
3
|
-
</p>
|
|
1
|
+
<p align="center"><img src="./docs/images/dsh-crew-logo.png" alt="DSH Crew" width="120" /></p>
|
|
4
2
|
|
|
5
3
|
<h1 align="center">DSH Crew</h1>
|
|
6
4
|
|
|
7
|
-
<p align="center"><strong>让 Codex Desktop
|
|
5
|
+
<p align="center"><strong>让 Codex Desktop 和 Claude Code 使用 Worker / Reviewer,并统一显示在官方 DeepSeek Harness 界面中。</strong></p>
|
|
8
6
|
|
|
9
7
|
<p align="center"><a href="./README.md">English</a> · <a href="./README.zh.md"><b>简体中文</b></a></p>
|
|
10
8
|
|
|
11
|
-
##
|
|
9
|
+
## 快速开始
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
- `reviewer`:使用独立模型顺序进行只读审查。
|
|
15
|
-
- 为两个角色分别设置 Provider / Model 优先级。
|
|
16
|
-
- 默认使用临时 Git worktree,不直接修改主工作区。
|
|
17
|
-
- 在 DeepSeek Harness 中查看设置、进度和结果。
|
|
18
|
-
|
|
19
|
-
## 安装
|
|
20
|
-
|
|
21
|
-
需要 Node.js;worktree 隔离还需要 Git。
|
|
11
|
+
需要 Node.js;使用 worktree 隔离还需要 Git。
|
|
22
12
|
|
|
23
13
|
```bash
|
|
24
14
|
npm install -g @ran-sh/dsh-crew@latest
|
|
25
15
|
dsh-crew install
|
|
16
|
+
dsh-crew integrate
|
|
26
17
|
```
|
|
27
18
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
## 启动 Harness
|
|
31
|
-
|
|
32
|
-
Windows PowerShell:
|
|
33
|
-
|
|
34
|
-
```powershell
|
|
35
|
-
$env:DSH_HOME = "$HOME\.config\dsh-crew\harness"
|
|
36
|
-
& "$env:DSH_HOME\runtime\node_modules\.bin\dsh.cmd" --profile dsh-crew --port 3210
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
macOS / Linux:
|
|
19
|
+
照常在 3080 端口启动官方 Harness:
|
|
40
20
|
|
|
41
21
|
```bash
|
|
42
|
-
|
|
43
|
-
"$HOME/.config/dsh-crew/harness/runtime/node_modules/.bin/dsh" \
|
|
44
|
-
--profile dsh-crew --port 3210
|
|
22
|
+
npx -y @deepseek-ai/dsh web --host 127.0.0.1 --port 3080
|
|
45
23
|
```
|
|
46
24
|
|
|
47
|
-
打开 <http://127.0.0.1:
|
|
25
|
+
打开 <http://127.0.0.1:3080>,进入 **设置 → DSH Crew**。3080 只显示官方界面;Crew 的任务与模型执行继续隔离在 `127.0.0.1:3210`,需要时由桥接在后台自动启动。
|
|
48
26
|
|
|
49
27
|
## 配置
|
|
50
28
|
|
|
51
|
-
1.
|
|
52
|
-
2.
|
|
53
|
-
3.
|
|
54
|
-
4.
|
|
55
|
-
5.
|
|
56
|
-
|
|
57
|
-
设置页已按模块折叠;关闭后仍会显示当前状态和第一优先模型。
|
|
29
|
+
1. 点击“刷新 Harness 模型”。
|
|
30
|
+
2. 分别设置 Worker 和 Reviewer 的模型顺序。
|
|
31
|
+
3. Worker 保持 **Auto**,即可自动委派。
|
|
32
|
+
4. Reviewer 默认 **Manual**;确实需要自动复审时再开启。
|
|
33
|
+
5. 编码任务建议保持 **worktree** 隔离。
|
|
58
34
|
|
|
59
|
-
|
|
35
|
+
只配置一个模型时,两个角色直接使用它。配置多个模型时,每个角色按自己的排序调用,失败后依次回退。设置模块可以展开/收起,收起后仍显示当前状态。
|
|
60
36
|
|
|
61
|
-
|
|
37
|
+
## 在 Codex 或 Claude 中使用
|
|
62
38
|
|
|
63
39
|
```text
|
|
64
40
|
使用 ds-worker 实现这个改动并运行测试。
|
|
65
41
|
使用 ds-reviewer 审查结果。
|
|
66
42
|
```
|
|
67
43
|
|
|
68
|
-
旧的 `ds-flash`、`ds-pro`
|
|
44
|
+
旧的 `ds-flash`、`ds-pro` 别名仍可使用。
|
|
69
45
|
|
|
70
|
-
##
|
|
46
|
+
## 常用命令
|
|
71
47
|
|
|
72
48
|
```bash
|
|
73
|
-
dsh-crew status
|
|
74
|
-
dsh-crew update
|
|
75
|
-
dsh-crew
|
|
49
|
+
dsh-crew status # 查看安装与集成状态
|
|
50
|
+
dsh-crew update # 更新并自动修复已启用的集成
|
|
51
|
+
dsh-crew integrate # 将官方 3080 界面连接到隔离的 3210 Crew
|
|
52
|
+
dsh-crew detach # 只移除 3080 桥接
|
|
53
|
+
dsh-crew uninstall # 卸载 Crew,保留配置和备份
|
|
76
54
|
```
|
|
77
55
|
|
|
78
|
-
|
|
56
|
+
`dsh-crew uninstall --purge` 才会同时删除 Crew 配置和备份。
|
|
79
57
|
|
|
80
|
-
|
|
58
|
+
如果想继续使用完全独立的界面,先运行 `dsh-crew detach`,再直接启动隔离 profile:
|
|
81
59
|
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
dsh-crew
|
|
60
|
+
```powershell
|
|
61
|
+
$env:DSH_HOME = "$HOME\.config\dsh-crew\harness"
|
|
62
|
+
& "$env:DSH_HOME\runtime\node_modules\.bin\dsh.cmd" --profile dsh-crew --host 127.0.0.1 --port 3210
|
|
85
63
|
```
|
|
86
64
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
Crew 使用独立的 Harness home 和 profile:
|
|
65
|
+
桥接首次修改前会备份官方 `web` profile,并且只注册轻量代理/客户端包。完整 Crew Hub、模型执行、配置和凭据仍位于:
|
|
90
66
|
|
|
91
67
|
```text
|
|
92
68
|
~/.config/dsh-crew/harness
|
|
93
69
|
profile: dsh-crew
|
|
94
70
|
```
|
|
95
71
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
开发者安装:
|
|
99
|
-
|
|
100
|
-
```bash
|
|
101
|
-
git clone https://github.com/Ran-sh/dsh-crew.git
|
|
102
|
-
cd dsh-crew
|
|
103
|
-
node scripts/setup.mjs install
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
开发者卸载:
|
|
72
|
+
对于 `<= 0.3.3` 的旧启动器,请先刷新启动器;旧 updater 无法发现新版本,也无法被追溯修复:
|
|
107
73
|
|
|
108
74
|
```bash
|
|
109
|
-
|
|
75
|
+
npm install -g @ran-sh/dsh-crew@latest
|
|
76
|
+
dsh-crew update
|
|
110
77
|
```
|
|
111
78
|
|
|
112
|
-
##
|
|
79
|
+
## 源码开发
|
|
113
80
|
|
|
114
81
|
```bash
|
|
115
|
-
|
|
82
|
+
git clone https://github.com/Ran-sh/dsh-crew.git
|
|
83
|
+
cd dsh-crew
|
|
84
|
+
node scripts/setup.mjs install
|
|
116
85
|
node --test test/*.test.mjs
|
|
117
86
|
pnpm run build:client
|
|
118
|
-
|
|
87
|
+
node scripts/setup.mjs uninstall
|
|
119
88
|
```
|
|
120
89
|
|
|
121
|
-
|
|
90
|
+
更多资料:[Changelog](./CHANGELOG.md) · [Readiness Matrix](./docs/readiness-matrix.md)
|
|
122
91
|
|
|
123
92
|
## License
|
|
124
93
|
|