@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.
Files changed (85) hide show
  1. package/.claude-plugin/plugin.json +8 -8
  2. package/.mcp.json +8 -8
  3. package/LICENSE +21 -21
  4. package/README.de.md +359 -359
  5. package/README.es.md +359 -359
  6. package/README.fr.md +359 -359
  7. package/README.hi.md +359 -359
  8. package/README.id.md +359 -359
  9. package/README.ja.md +359 -359
  10. package/README.ko.md +359 -359
  11. package/README.md +94 -180
  12. package/README.pt.md +359 -359
  13. package/README.ru.md +359 -359
  14. package/README.th.md +359 -359
  15. package/README.tr.md +359 -359
  16. package/README.vi.md +359 -359
  17. package/README.zh-TW.md +359 -359
  18. package/README.zh.md +94 -180
  19. package/agents/ds-flash.md +26 -26
  20. package/agents/ds-pro.md +32 -32
  21. package/agents/ds-reviewer.md +23 -23
  22. package/agents/ds-worker.md +22 -22
  23. package/codex/agents/ds-flash.toml +30 -30
  24. package/codex/agents/ds-pro.toml +31 -31
  25. package/codex/agents/ds-reviewer.toml +28 -28
  26. package/codex/agents/ds-worker.toml +28 -28
  27. package/codex/prompts/dsh-config.md +3 -3
  28. package/codex/prompts/dsh-status.md +1 -1
  29. package/commands/config.md +11 -11
  30. package/commands/off.md +5 -5
  31. package/commands/on.md +5 -5
  32. package/commands/status.md +5 -5
  33. package/cordis.patch.yml +4 -4
  34. package/lib/client.js +1655 -974
  35. package/official-web-bridge/cordis.patch.yml +4 -0
  36. package/official-web-bridge/entry.mjs +1 -0
  37. package/official-web-bridge/lib/client.js +3446 -0
  38. package/official-web-bridge/package.json +26 -0
  39. package/package.json +133 -131
  40. package/scripts/build-client.mjs +32 -28
  41. package/scripts/live-crew-smoke.mjs +39 -39
  42. package/scripts/live-policy-matrix.mjs +177 -177
  43. package/scripts/policy-probe.mjs +101 -101
  44. package/scripts/setup.mjs +284 -284
  45. package/scripts/smoke-real.mjs +110 -110
  46. package/scripts/smoke.mjs +78 -78
  47. package/scripts/verify-installer-fix.mjs +26 -26
  48. package/scripts/verify-official-bridge-e2e.mjs +159 -0
  49. package/src/adaptive-routing.mjs +260 -260
  50. package/src/client/activation-summary.tsx +64 -64
  51. package/src/client/collapsible-sections.mjs +55 -0
  52. package/src/client/entry.tsx +236 -236
  53. package/src/client/index.tsx +1213 -1120
  54. package/src/config-readiness.mjs +59 -59
  55. package/src/delivery.mjs +205 -205
  56. package/src/dsh-cli-runtime.mjs +458 -447
  57. package/src/failure-classification.mjs +172 -172
  58. package/src/hub/entry.mjs +98 -98
  59. package/src/hub-client.mjs +132 -132
  60. package/src/hub-compatibility.mjs +49 -49
  61. package/src/i18n.mjs +19 -19
  62. package/src/install/cli.mjs +28 -28
  63. package/src/install/install-legacy.mjs +462 -462
  64. package/src/install/install.mjs +451 -451
  65. package/src/install/npx-lifecycle.mjs +1119 -1055
  66. package/src/install/official-web.mjs +132 -0
  67. package/src/mcp-runtime.mjs +257 -257
  68. package/src/model-catalog.mjs +173 -173
  69. package/src/model-routing.mjs +391 -391
  70. package/src/official-web-bridge.mjs +196 -0
  71. package/src/policy.mjs +197 -197
  72. package/src/readiness-matrix.mjs +169 -169
  73. package/src/runtime-controls.mjs +90 -90
  74. package/src/runtime-identity.mjs +108 -108
  75. package/src/server.mjs +477 -477
  76. package/src/status-shard.mjs +52 -52
  77. package/src/structured-error-code.mjs +38 -38
  78. package/src/vision-route.mjs +138 -138
  79. package/src/workflow-runtime.mjs +573 -573
  80. package/src/workflow.mjs +160 -160
  81. package/src/workspace-audit.mjs +231 -231
  82. package/src/workspace-isolation.mjs +365 -365
  83. package/statusline/statusline.sh +14 -14
  84. package/statusline/worker-segment.sh +35 -35
  85. package/worker.cordis.yml +77 -77
package/README.md CHANGED
@@ -1,180 +1,94 @@
1
- <p align="center">
2
- <img src="./docs/images/dsh-crew-logo.png" alt="DSH Crew" width="120" />
3
- </p>
4
-
5
- <h1 align="center">DSH Crew</h1>
6
-
7
- <p align="center">
8
- <strong>Use Codex Desktop or Claude Code as the orchestrator, and dispatch coding work to isolated DeepSeek Harness workers and reviewers.</strong>
9
- </p>
10
-
11
- <p align="center">
12
- <a href="./README.md"><b>English</b></a> · <a href="./README.zh.md">简体中文</a>
13
- </p>
14
-
15
- ## What it does
16
-
17
- DSH Crew adds a small orchestration layer between your coding host and DeepSeek Harness:
18
-
19
- - **worker** implements, fixes, tests, searches, and analyzes;
20
- - **reviewer** — independently reviews the worker result and returns a verdict;
21
- - **model policy** — resolves provider/model priorities per role and can escalate on evidence;
22
- - **isolated execution** coding workers run in temporary git worktrees by default;
23
- - **live jobs** — Hub sessions expose progress, results, cancellation, routing trace, and readiness data.
24
-
25
- ```text
26
- Codex Desktop / Claude Code
27
-
28
-
29
- DSH Crew
30
- ┌────┴────┐
31
- │ │
32
- worker reviewer
33
- │ │
34
- └────┬────┘
35
-
36
- DeepSeek Harness
37
- ```
38
-
39
- ## Install
40
-
41
- Prerequisites: **Node.js** (Git is needed only for coding-worker isolation).
42
-
43
- Recommended: install a stable, package-manager-installed launcher and manage DSH Crew with it:
44
-
45
- ```bash
46
- npm install -g @ran-sh/dsh-crew@latest
47
- dsh-crew install
48
- ```
49
-
50
- Manage the installation later with the same CLI:
51
-
52
- ```bash
53
- dsh-crew status
54
- dsh-crew update
55
- dsh-crew uninstall # add --purge to also remove config/backups
56
- ```
57
-
58
- The globally installed package is only the launcher/manager. The actual Crew runtime/plugin payload is persisted under Crew-owned state (`~/.config/dsh-crew/app`) before Harness registration, so runtime behavior never depends on npm cache paths.
59
-
60
- > Known compatibility issue: transient `npx @ran-sh/dsh-crew …` execution is currently unreliable on some npm versions (npm/cli#9870: the npx cache bin is not put on the spawned command PATH). Until that upstream fix reaches your npm, use the global-launcher flow above instead.
61
-
62
- An update of the managed payload does not require a clone or rebuild. When the launcher and payload versions match, `dsh-crew update` resolves the newest permitted package from your configured npm registry (or an explicit `--candidate <path>` override). When the running launcher is newer, its validated package payload is used first to converge the older managed payload. Every path stages and validates before switching. If the managed payload is newer than the launcher, it is never downgraded and the CLI prints the exact launcher-refresh command.
63
-
64
- > Migration boundary for legacy `<= 0.3.3`: those immutable launchers cannot discover newer registry versions, so their old update behavior cannot be retroactively fixed. Refresh the launcher first, then converge the managed payload—no source checkout is required:
65
- >
66
- > ```bash
67
- > npm install -g @ran-sh/dsh-crew@latest
68
- > dsh-crew update
69
- > ```
70
-
71
- Developer / source setup (alternative path):
72
-
73
- ```bash
74
- git clone https://github.com/Ran-sh/dsh-crew.git
75
- cd dsh-crew
76
- node scripts/setup.mjs install
77
- ```
78
-
79
- Windows source checkouts can use:
80
-
81
- ```bat
82
- install.cmd
83
- ```
84
-
85
- DSH Crew uses its own Harness home and profile:
86
-
87
- ```text
88
- ~/.config/dsh-crew/harness
89
- profile: dsh-crew
90
- ```
91
-
92
- Supported Crew tooling does **not** modify the normal `~/.dsh` home, the official `web` profile, or official DSH credential stores.
93
-
94
- ## Quick start
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