@ran-sh/dsh-crew 0.3.1 → 0.3.3

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 (80) hide show
  1. package/.claude-plugin/marketplace.json +17 -17
  2. package/.claude-plugin/plugin.json +8 -8
  3. package/.mcp.json +8 -8
  4. package/LICENSE +21 -21
  5. package/README.de.md +359 -359
  6. package/README.es.md +359 -359
  7. package/README.fr.md +359 -359
  8. package/README.hi.md +359 -359
  9. package/README.id.md +359 -359
  10. package/README.ja.md +359 -359
  11. package/README.ko.md +359 -359
  12. package/README.md +168 -140
  13. package/README.pt.md +359 -359
  14. package/README.ru.md +359 -359
  15. package/README.th.md +359 -359
  16. package/README.tr.md +359 -359
  17. package/README.vi.md +359 -359
  18. package/README.zh-TW.md +359 -359
  19. package/README.zh.md +168 -140
  20. package/agents/ds-flash.md +26 -26
  21. package/agents/ds-pro.md +32 -32
  22. package/agents/ds-reviewer.md +23 -23
  23. package/agents/ds-worker.md +22 -22
  24. package/bin/dsh-crew.mjs +12 -0
  25. package/codex/agents/ds-flash.toml +30 -30
  26. package/codex/agents/ds-pro.toml +31 -31
  27. package/codex/agents/ds-reviewer.toml +28 -28
  28. package/codex/agents/ds-worker.toml +28 -28
  29. package/codex/prompts/dsh-config.md +3 -3
  30. package/codex/prompts/dsh-status.md +1 -1
  31. package/commands/config.md +11 -11
  32. package/commands/off.md +5 -5
  33. package/commands/on.md +5 -5
  34. package/commands/status.md +5 -5
  35. package/cordis.patch.yml +4 -4
  36. package/lib/client.js +2765 -2765
  37. package/package.json +131 -127
  38. package/scripts/build-client.mjs +28 -28
  39. package/scripts/live-crew-smoke.mjs +39 -39
  40. package/scripts/live-policy-matrix.mjs +177 -177
  41. package/scripts/policy-probe.mjs +101 -101
  42. package/scripts/setup.mjs +295 -294
  43. package/scripts/smoke-real.mjs +110 -110
  44. package/scripts/smoke.mjs +78 -78
  45. package/scripts/verify-installer-fix.mjs +26 -26
  46. package/scripts/verify-npm-install.mjs +297 -276
  47. package/src/adaptive-routing.mjs +260 -260
  48. package/src/client/activation-summary.tsx +64 -64
  49. package/src/client/entry.tsx +236 -236
  50. package/src/client/index.tsx +1120 -1120
  51. package/src/config-readiness.mjs +59 -59
  52. package/src/delivery.mjs +205 -205
  53. package/src/dsh-cli-runtime.mjs +447 -251
  54. package/src/failure-classification.mjs +172 -172
  55. package/src/hub/entry.mjs +98 -98
  56. package/src/hub-client.mjs +132 -132
  57. package/src/hub-compatibility.mjs +49 -49
  58. package/src/i18n.mjs +19 -19
  59. package/src/install/cli.mjs +28 -28
  60. package/src/install/install-legacy.mjs +462 -460
  61. package/src/install/install.mjs +451 -451
  62. package/src/install/npx-lifecycle.mjs +797 -0
  63. package/src/mcp-runtime.mjs +257 -257
  64. package/src/model-catalog.mjs +173 -173
  65. package/src/model-routing.mjs +391 -391
  66. package/src/policy.mjs +197 -197
  67. package/src/readiness-matrix.mjs +169 -169
  68. package/src/runtime-controls.mjs +90 -90
  69. package/src/runtime-identity.mjs +108 -108
  70. package/src/server.mjs +477 -477
  71. package/src/status-shard.mjs +52 -52
  72. package/src/structured-error-code.mjs +38 -38
  73. package/src/vision-route.mjs +138 -138
  74. package/src/workflow-runtime.mjs +573 -567
  75. package/src/workflow.mjs +160 -160
  76. package/src/workspace-audit.mjs +231 -231
  77. package/src/workspace-isolation.mjs +365 -306
  78. package/statusline/statusline.sh +14 -14
  79. package/statusline/worker-segment.sh +35 -35
  80. package/worker.cordis.yml +77 -77
package/README.md CHANGED
@@ -1,140 +1,168 @@
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**, and **pnpm**.
42
-
43
- Recommended source setup:
44
-
45
- ```bash
46
- git clone https://github.com/Ran-sh/dsh-crew.git
47
- cd dsh-crew
48
- node scripts/setup.mjs install
49
- ```
50
-
51
- Windows can use:
52
-
53
- ```bat
54
- install.cmd
55
- ```
56
-
57
- DSH Crew uses its own Harness home and profile:
58
-
59
- ```text
60
- ~/.config/dsh-crew/harness
61
- profile: dsh-crew
62
- ```
63
-
64
- Supported Crew tooling does **not** modify the normal `~/.dsh` home, the official `web` profile, or official DSH credential stores.
65
-
66
- ## Quick start
67
-
68
- 1. Start DeepSeek Harness normally.
69
- 2. Open **Settings → DSH Crew**.
70
- 3. Install the Codex integration; Claude Code integration is optional.
71
- 4. Refresh Harness models and choose role priorities if needed.
72
- 5. Restart the coding host after integration changes.
73
-
74
- Then ask the host naturally, for example:
75
-
76
- ```text
77
- Use ds-worker to implement this change.
78
- Use ds-reviewer to review the implementation.
79
- ```
80
-
81
- ## Roles and routing
82
-
83
- | Role | Purpose |
84
- |---|---|
85
- | `worker` | Implementation, fixes, tests, search, analysis |
86
- | `reviewer` | Independent review and verdict |
87
-
88
- 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.
89
-
90
- Legacy `ds-flash` / `ds-pro` aliases remain for compatibility, but new prompts should use `ds-worker` / `ds-reviewer`.
91
-
92
- ## Isolation
93
-
94
- `execution.isolation` defaults to `worktree`.
95
-
96
- 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.
97
-
98
- ## Update / uninstall
99
-
100
- Update a source install:
101
-
102
- ```bash
103
- git pull --ff-only
104
- node scripts/setup.mjs install
105
- ```
106
-
107
- Uninstall Crew and its integrations:
108
-
109
- ```bash
110
- node scripts/setup.mjs uninstall
111
- ```
112
-
113
- Windows shortcuts:
114
-
115
- ```bat
116
- install.cmd
117
- uninstall.cmd
118
- ```
119
-
120
- Crew config and backups under `~/.config/dsh-crew` are preserved unless you remove them yourself.
121
-
122
- ## Development
123
-
124
- ```bash
125
- pnpm install --frozen-lockfile
126
- node --test test/*.test.mjs
127
- pnpm run build:client
128
- pnpm run verify:npm-install
129
- ```
130
-
131
- Useful docs:
132
-
133
- - [Architecture roadmap](./docs/v0.3-architecture-roadmap.md)
134
- - [Readiness matrix](./docs/readiness-matrix.md)
135
- - [Agent Workflow](./docs/agent-workflow.md)
136
- - [Changelog](./CHANGELOG.md)
137
-
138
- ## License
139
-
140
- 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">
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: manage DSH Crew directly through npm/npx — no clone required:
44
+
45
+ ```bash
46
+ npx @ran-sh/dsh-crew@latest install
47
+ ```
48
+
49
+ Manage the installation later with the same CLI:
50
+
51
+ ```bash
52
+ npx @ran-sh/dsh-crew@latest status
53
+ npx @ran-sh/dsh-crew@latest update
54
+ npx @ran-sh/dsh-crew@latest uninstall # add --purge to also remove config/backups
55
+ ```
56
+
57
+ An npx install persists the already-built package under Crew-owned state (`~/.config/dsh-crew/app`) before registering it, so the installation never depends on a transient npx cache and does not require pnpm, a lockfile, or rebuilding anything.
58
+
59
+ Developer / source setup (alternative path):
60
+
61
+ ```bash
62
+ git clone https://github.com/Ran-sh/dsh-crew.git
63
+ cd dsh-crew
64
+ node scripts/setup.mjs install
65
+ ```
66
+
67
+ Windows source checkouts can use:
68
+
69
+ ```bat
70
+ install.cmd
71
+ ```
72
+
73
+ DSH Crew uses its own Harness home and profile:
74
+
75
+ ```text
76
+ ~/.config/dsh-crew/harness
77
+ profile: dsh-crew
78
+ ```
79
+
80
+ Supported Crew tooling does **not** modify the normal `~/.dsh` home, the official `web` profile, or official DSH credential stores.
81
+
82
+ ## Quick start
83
+
84
+ 1. Start DeepSeek Harness normally.
85
+ 2. Open **Settings DSH Crew**.
86
+ 3. Install the Codex integration; Claude Code integration is optional.
87
+ 4. Refresh Harness models and choose role priorities if needed.
88
+ 5. Restart the coding host after integration changes.
89
+
90
+ Then ask the host naturally, for example:
91
+
92
+ ```text
93
+ Use ds-worker to implement this change.
94
+ Use ds-reviewer to review the implementation.
95
+ ```
96
+
97
+ ## Roles and routing
98
+
99
+ | Role | Purpose |
100
+ |---|---|
101
+ | `worker` | Implementation, fixes, tests, search, analysis |
102
+ | `reviewer` | Independent review and verdict |
103
+
104
+ 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.
105
+
106
+ Legacy `ds-flash` / `ds-pro` aliases remain for compatibility, but new prompts should use `ds-worker` / `ds-reviewer`.
107
+
108
+ ## Isolation
109
+
110
+ `execution.isolation` defaults to `worktree`.
111
+
112
+ 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.
113
+
114
+ ## Update / uninstall
115
+
116
+ npx-managed installs update in place (config, credentials, and backups are preserved; the candidate is staged and validated before switching):
117
+
118
+ ```bash
119
+ npx @ran-sh/dsh-crew@latest update
120
+ ```
121
+
122
+ Uninstall an npx-managed install:
123
+
124
+ ```bash
125
+ npx @ran-sh/dsh-crew@latest uninstall
126
+ ```
127
+
128
+ Update a source install instead with:
129
+
130
+ ```bash
131
+ git pull --ff-only
132
+ node scripts/setup.mjs install
133
+ ```
134
+
135
+ Uninstall Crew from a source checkout:
136
+
137
+ ```bash
138
+ node scripts/setup.mjs uninstall
139
+ ```
140
+
141
+ Windows shortcuts:
142
+
143
+ ```bat
144
+ install.cmd
145
+ uninstall.cmd
146
+ ```
147
+
148
+ Crew config and backups under `~/.config/dsh-crew` are preserved unless you remove them yourself.
149
+
150
+ ## Development
151
+
152
+ ```bash
153
+ pnpm install --frozen-lockfile
154
+ node --test test/*.test.mjs
155
+ pnpm run build:client
156
+ pnpm run verify:npm-install
157
+ ```
158
+
159
+ Useful docs:
160
+
161
+ - [Architecture roadmap](./docs/v0.3-architecture-roadmap.md)
162
+ - [Readiness matrix](./docs/readiness-matrix.md)
163
+ - [Agent Workflow](./docs/agent-workflow.md)
164
+ - [Changelog](./CHANGELOG.md)
165
+
166
+ ## License
167
+
168
+ MIT