@ran-sh/dsh-crew 0.3.5 → 0.3.7

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 (78) 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 +125 -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 +125 -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 +3446 -2765
  35. package/package.json +131 -131
  36. package/scripts/build-client.mjs +28 -28
  37. package/scripts/live-crew-smoke.mjs +39 -39
  38. package/scripts/live-policy-matrix.mjs +177 -177
  39. package/scripts/policy-probe.mjs +101 -101
  40. package/scripts/setup.mjs +284 -284
  41. package/scripts/smoke-real.mjs +110 -110
  42. package/scripts/smoke.mjs +78 -78
  43. package/scripts/verify-installer-fix.mjs +26 -26
  44. package/src/adaptive-routing.mjs +260 -260
  45. package/src/client/activation-summary.tsx +64 -64
  46. package/src/client/collapsible-sections.mjs +55 -0
  47. package/src/client/entry.tsx +236 -236
  48. package/src/client/index.tsx +1213 -1120
  49. package/src/config-readiness.mjs +59 -59
  50. package/src/delivery.mjs +205 -205
  51. package/src/dsh-cli-runtime.mjs +239 -239
  52. package/src/failure-classification.mjs +172 -172
  53. package/src/hub/entry.mjs +98 -98
  54. package/src/hub-client.mjs +132 -132
  55. package/src/hub-compatibility.mjs +49 -49
  56. package/src/i18n.mjs +19 -19
  57. package/src/install/cli.mjs +28 -28
  58. package/src/install/install-legacy.mjs +462 -462
  59. package/src/install/install.mjs +451 -451
  60. package/src/install/npx-lifecycle.mjs +1055 -1019
  61. package/src/mcp-runtime.mjs +257 -257
  62. package/src/model-catalog.mjs +173 -173
  63. package/src/model-routing.mjs +391 -391
  64. package/src/policy.mjs +197 -197
  65. package/src/readiness-matrix.mjs +169 -169
  66. package/src/runtime-controls.mjs +90 -90
  67. package/src/runtime-identity.mjs +108 -108
  68. package/src/server.mjs +477 -477
  69. package/src/status-shard.mjs +52 -52
  70. package/src/structured-error-code.mjs +38 -38
  71. package/src/vision-route.mjs +138 -138
  72. package/src/workflow-runtime.mjs +573 -573
  73. package/src/workflow.mjs +160 -160
  74. package/src/workspace-audit.mjs +231 -231
  75. package/src/workspace-isolation.mjs +365 -365
  76. package/statusline/statusline.sh +14 -14
  77. package/statusline/worker-segment.sh +35 -35
  78. package/worker.cordis.yml +77 -77
package/README.md CHANGED
@@ -1,180 +1,125 @@
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">
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"><strong>Let Codex Desktop or Claude Code coordinate isolated DeepSeek Harness workers and reviewers.</strong></p>
8
+
9
+ <p align="center"><a href="./README.md"><b>English</b></a> · <a href="./README.zh.md">简体中文</a></p>
10
+
11
+ ## What you get
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
20
+
21
+ Requirements: Node.js; Git is required for worktree isolation.
22
+
23
+ ```bash
24
+ npm install -g @ran-sh/dsh-crew@latest
25
+ dsh-crew install
26
+ ```
27
+
28
+ Use the global launcher. Transient `npx` execution is not the supported install path on npm versions affected by npm/cli#9870.
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:
40
+
41
+ ```bash
42
+ DSH_HOME="$HOME/.config/dsh-crew/harness" \
43
+ "$HOME/.config/dsh-crew/harness/runtime/node_modules/.bin/dsh" \
44
+ --profile dsh-crew --port 3210
45
+ ```
46
+
47
+ Open <http://127.0.0.1:3210>, then go to **Settings → DSH Crew**.
48
+
49
+ ## Configure
50
+
51
+ 1. Install the Codex and/or Claude Code integration.
52
+ 2. Click **Refresh Harness Models**.
53
+ 3. Order the models used by Flash and Pro.
54
+ 4. Keep `worker` on Auto for automatic delegation; keep `reviewer` on Manual unless you want automatic review.
55
+ 5. Use `worktree` isolation for coding tasks.
56
+
57
+ The settings page is split into collapsible modules. Each closed module still shows its effective state and first-priority model.
58
+
59
+ ## Use
60
+
61
+ Ask your coding host naturally:
62
+
63
+ ```text
64
+ Use ds-worker to implement this change and run the tests.
65
+ Use ds-reviewer to review the result.
66
+ ```
67
+
68
+ Legacy `ds-flash` and `ds-pro` aliases remain available, but new workflows should use `ds-worker` and `ds-reviewer`.
69
+
70
+ ## Check, update, remove
71
+
72
+ ```bash
73
+ dsh-crew status
74
+ dsh-crew update
75
+ dsh-crew uninstall
76
+ ```
77
+
78
+ `uninstall` preserves configuration and backups. Add `--purge` only when you also want those removed.
79
+
80
+ For launchers at `<= 0.3.3`, the old updater cannot discover newer releases and cannot be retroactively fixed. Refresh the launcher first, then update the managed payload:
81
+
82
+ ```bash
83
+ npm install -g @ran-sh/dsh-crew@latest
84
+ dsh-crew update
85
+ ```
86
+
87
+ ## Isolation and source installs
88
+
89
+ Crew owns a dedicated Harness home and profile:
90
+
91
+ ```text
92
+ ~/.config/dsh-crew/harness
93
+ profile: dsh-crew
94
+ ```
95
+
96
+ Normal Crew operations do not modify `~/.dsh`, the official `web` profile, or official Harness credential stores.
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:
107
+
108
+ ```bash
109
+ node scripts/setup.mjs uninstall
110
+ ```
111
+
112
+ ## Development
113
+
114
+ ```bash
115
+ pnpm install --frozen-lockfile
116
+ node --test test/*.test.mjs
117
+ pnpm run build:client
118
+ pnpm run verify:npm-install
119
+ ```
120
+
121
+ More detail: [Changelog](./CHANGELOG.md) · [Readiness matrix](./docs/readiness-matrix.md) · [Architecture](./docs/v0.3-architecture-roadmap.md)
122
+
123
+ ## License
124
+
125
+ MIT