@ran-sh/dsh-crew 0.3.6 → 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/.claude-plugin/plugin.json +8 -8
- package/.mcp.json +8 -8
- package/LICENSE +21 -21
- package/README.de.md +359 -359
- package/README.es.md +359 -359
- package/README.fr.md +359 -359
- package/README.hi.md +359 -359
- package/README.id.md +359 -359
- package/README.ja.md +359 -359
- package/README.ko.md +359 -359
- package/README.md +94 -180
- package/README.pt.md +359 -359
- package/README.ru.md +359 -359
- package/README.th.md +359 -359
- package/README.tr.md +359 -359
- package/README.vi.md +359 -359
- package/README.zh-TW.md +359 -359
- package/README.zh.md +94 -180
- package/agents/ds-flash.md +26 -26
- package/agents/ds-pro.md +32 -32
- package/agents/ds-reviewer.md +23 -23
- package/agents/ds-worker.md +22 -22
- package/codex/agents/ds-flash.toml +30 -30
- package/codex/agents/ds-pro.toml +31 -31
- package/codex/agents/ds-reviewer.toml +28 -28
- package/codex/agents/ds-worker.toml +28 -28
- package/codex/prompts/dsh-config.md +3 -3
- package/codex/prompts/dsh-status.md +1 -1
- package/commands/config.md +11 -11
- package/commands/off.md +5 -5
- package/commands/on.md +5 -5
- package/commands/status.md +5 -5
- package/cordis.patch.yml +4 -4
- package/lib/client.js +1655 -974
- 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 +133 -131
- package/scripts/build-client.mjs +32 -28
- package/scripts/live-crew-smoke.mjs +39 -39
- package/scripts/live-policy-matrix.mjs +177 -177
- package/scripts/policy-probe.mjs +101 -101
- package/scripts/setup.mjs +284 -284
- package/scripts/smoke-real.mjs +110 -110
- package/scripts/smoke.mjs +78 -78
- package/scripts/verify-installer-fix.mjs +26 -26
- package/scripts/verify-official-bridge-e2e.mjs +159 -0
- package/src/adaptive-routing.mjs +260 -260
- package/src/client/activation-summary.tsx +64 -64
- package/src/client/collapsible-sections.mjs +55 -0
- package/src/client/entry.tsx +236 -236
- package/src/client/index.tsx +1213 -1120
- package/src/config-readiness.mjs +59 -59
- package/src/delivery.mjs +205 -205
- package/src/dsh-cli-runtime.mjs +458 -447
- package/src/failure-classification.mjs +172 -172
- package/src/hub/entry.mjs +98 -98
- package/src/hub-client.mjs +132 -132
- package/src/hub-compatibility.mjs +49 -49
- package/src/i18n.mjs +19 -19
- package/src/install/cli.mjs +28 -28
- package/src/install/install-legacy.mjs +462 -462
- package/src/install/install.mjs +451 -451
- package/src/install/npx-lifecycle.mjs +1119 -1055
- package/src/install/official-web.mjs +132 -0
- package/src/mcp-runtime.mjs +257 -257
- package/src/model-catalog.mjs +173 -173
- package/src/model-routing.mjs +391 -391
- package/src/official-web-bridge.mjs +196 -0
- package/src/policy.mjs +197 -197
- package/src/readiness-matrix.mjs +169 -169
- package/src/runtime-controls.mjs +90 -90
- package/src/runtime-identity.mjs +108 -108
- package/src/server.mjs +477 -477
- package/src/status-shard.mjs +52 -52
- package/src/structured-error-code.mjs +38 -38
- package/src/vision-route.mjs +138 -138
- package/src/workflow-runtime.mjs +573 -573
- package/src/workflow.mjs +160 -160
- package/src/workspace-audit.mjs +231 -231
- package/src/workspace-isolation.mjs +365 -365
- package/statusline/statusline.sh +14 -14
- package/statusline/worker-segment.sh +35 -35
- package/worker.cordis.yml +77 -77
package/README.md
CHANGED
|
@@ -1,180 +1,94 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
|
|
3
|
-
</
|
|
4
|
-
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
<p align="center">
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
dsh-crew
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
1. Start DeepSeek Harness normally.
|
|
97
|
-
2. Open **Settings → DSH Crew**.
|
|
98
|
-
3. Install the Codex integration; Claude Code integration is optional.
|
|
99
|
-
4. Refresh Harness models and choose role priorities if needed.
|
|
100
|
-
5. Restart the coding host after integration changes.
|
|
101
|
-
|
|
102
|
-
Then ask the host naturally, for example:
|
|
103
|
-
|
|
104
|
-
```text
|
|
105
|
-
Use ds-worker to implement this change.
|
|
106
|
-
Use ds-reviewer to review the implementation.
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
## Roles and routing
|
|
110
|
-
|
|
111
|
-
| Role | Purpose |
|
|
112
|
-
|---|---|
|
|
113
|
-
| `worker` | Implementation, fixes, tests, search, analysis |
|
|
114
|
-
| `reviewer` | Independent review and verdict |
|
|
115
|
-
|
|
116
|
-
Each role resolves its own ordered provider/model candidates. Explicit user priorities remain authoritative; automatic escalation only happens when the workflow has evidence that stronger execution or review is needed.
|
|
117
|
-
|
|
118
|
-
Legacy `ds-flash` / `ds-pro` aliases remain for compatibility, but new prompts should use `ds-worker` / `ds-reviewer`.
|
|
119
|
-
|
|
120
|
-
## Isolation
|
|
121
|
-
|
|
122
|
-
`execution.isolation` defaults to `worktree`.
|
|
123
|
-
|
|
124
|
-
A coding worker receives a temporary git worktree at the requested revision, so parallel workers do not write into the same working tree. The worker returns an auditable change candidate for the orchestrator to accept, reject, or revise; Crew does not silently merge changes into your primary workspace.
|
|
125
|
-
|
|
126
|
-
## Update / uninstall
|
|
127
|
-
|
|
128
|
-
The managed Crew payload updates in place (config, credentials, and backups are preserved; the candidate is staged and validated before switching):
|
|
129
|
-
|
|
130
|
-
```bash
|
|
131
|
-
dsh-crew update
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
Uninstall the managed payload and integrations:
|
|
135
|
-
|
|
136
|
-
```bash
|
|
137
|
-
dsh-crew uninstall
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
Update a source install instead with:
|
|
141
|
-
|
|
142
|
-
```bash
|
|
143
|
-
git pull --ff-only
|
|
144
|
-
node scripts/setup.mjs install
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
Uninstall Crew from a source checkout:
|
|
148
|
-
|
|
149
|
-
```bash
|
|
150
|
-
node scripts/setup.mjs uninstall
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
Windows shortcuts:
|
|
154
|
-
|
|
155
|
-
```bat
|
|
156
|
-
install.cmd
|
|
157
|
-
uninstall.cmd
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
Crew config and backups under `~/.config/dsh-crew` are preserved unless you remove them yourself.
|
|
161
|
-
|
|
162
|
-
## Development
|
|
163
|
-
|
|
164
|
-
```bash
|
|
165
|
-
pnpm install --frozen-lockfile
|
|
166
|
-
node --test test/*.test.mjs
|
|
167
|
-
pnpm run build:client
|
|
168
|
-
pnpm run verify:npm-install
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
Useful docs:
|
|
172
|
-
|
|
173
|
-
- [Architecture roadmap](./docs/v0.3-architecture-roadmap.md)
|
|
174
|
-
- [Readiness matrix](./docs/readiness-matrix.md)
|
|
175
|
-
- [Agent Workflow](./docs/agent-workflow.md)
|
|
176
|
-
- [Changelog](./CHANGELOG.md)
|
|
177
|
-
|
|
178
|
-
## License
|
|
179
|
-
|
|
180
|
-
MIT
|
|
1
|
+
<p align="center"><img src="./docs/images/dsh-crew-logo.png" alt="DSH Crew" width="120" /></p>
|
|
2
|
+
|
|
3
|
+
<h1 align="center">DSH Crew</h1>
|
|
4
|
+
|
|
5
|
+
<p align="center"><strong>Workers and reviewers for Codex Desktop and Claude Code, shown inside the official DeepSeek Harness UI.</strong></p>
|
|
6
|
+
|
|
7
|
+
<p align="center"><a href="./README.md"><b>English</b></a> · <a href="./README.zh.md">简体中文</a></p>
|
|
8
|
+
|
|
9
|
+
## Quick start
|
|
10
|
+
|
|
11
|
+
Requirements: Node.js; Git is required for worktree isolation.
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install -g @ran-sh/dsh-crew@latest
|
|
15
|
+
dsh-crew install
|
|
16
|
+
dsh-crew integrate
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Start the official Harness on port 3080 as usual:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npx -y @deepseek-ai/dsh web --host 127.0.0.1 --port 3080
|
|
23
|
+
```
|
|
24
|
+
|
|
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.
|
|
26
|
+
|
|
27
|
+
## Configure
|
|
28
|
+
|
|
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.
|
|
34
|
+
|
|
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.
|
|
36
|
+
|
|
37
|
+
## Use from Codex or Claude
|
|
38
|
+
|
|
39
|
+
```text
|
|
40
|
+
Use ds-worker to implement this change and run the tests.
|
|
41
|
+
Use ds-reviewer to review the result.
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Legacy `ds-flash` and `ds-pro` aliases remain compatible.
|
|
45
|
+
|
|
46
|
+
## Common commands
|
|
47
|
+
|
|
48
|
+
```bash
|
|
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
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
`dsh-crew uninstall --purge` also removes Crew configuration and backups.
|
|
57
|
+
|
|
58
|
+
If you prefer a completely separate UI, run `dsh-crew detach`, then start the isolated profile directly:
|
|
59
|
+
|
|
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
|
|
63
|
+
```
|
|
64
|
+
|
|
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:
|
|
66
|
+
|
|
67
|
+
```text
|
|
68
|
+
~/.config/dsh-crew/harness
|
|
69
|
+
profile: dsh-crew
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
For launchers at `<= 0.3.3`, first refresh the launcher because the old updater cannot discover newer releases and cannot be retroactively fixed:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
npm install -g @ran-sh/dsh-crew@latest
|
|
76
|
+
dsh-crew update
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Source development
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
git clone https://github.com/Ran-sh/dsh-crew.git
|
|
83
|
+
cd dsh-crew
|
|
84
|
+
node scripts/setup.mjs install
|
|
85
|
+
node --test test/*.test.mjs
|
|
86
|
+
pnpm run build:client
|
|
87
|
+
node scripts/setup.mjs uninstall
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
More detail: [Changelog](./CHANGELOG.md) · [Readiness matrix](./docs/readiness-matrix.md)
|
|
91
|
+
|
|
92
|
+
## License
|
|
93
|
+
|
|
94
|
+
MIT
|