@ran-sh/dsh-crew 0.5.0 → 0.5.2
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 +93 -112
- package/README.zh.md +93 -111
- package/codex/AGENTS.md +92 -0
- package/docs/installation.md +63 -0
- package/docs/ui-surfaces.md +1 -2
- package/lib/client.js +41 -4
- package/official-web-bridge/lib/client.js +41 -4
- package/package.json +162 -133
- package/scripts/setup.mjs +65 -19
- package/scripts/verify-npm-install.mjs +16 -3
- package/src/client/host-readiness.mjs +2 -1
- package/src/client/index.tsx +29 -15
- package/src/hub/index.mjs +8 -6
- package/src/install/install-legacy.mjs +65 -11
- package/src/install/install.mjs +3 -1
- package/src/install/npx-lifecycle.mjs +55 -19
- package/src/install/windows-startup.mjs +98 -0
- package/src/install/zcode.mjs +316 -0
- package/src/runtime-identity.mjs +1 -1
- package/windows/start-dsh-crew.cmd +55 -0
- package/windows/start-dsh-crew.vbs +9 -0
- package/zcode/AGENTS.md +21 -0
- package/zcode/agents/ds-reviewer.md +19 -0
- package/zcode/agents/ds-worker.md +20 -0
- package/zcode/commands/dsh-config.md +6 -0
- package/zcode/commands/dsh-status.md +4 -0
package/README.md
CHANGED
|
@@ -1,112 +1,93 @@
|
|
|
1
|
-
<p align="center"><img src="./docs/images/dsh-crew-logo.png" alt="DSH Crew" width="
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
```bash
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
dsh-crew
|
|
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
|
-
## Source development
|
|
97
|
-
|
|
98
|
-
```bash
|
|
99
|
-
git clone https://github.com/Ran-sh/dsh-crew.git
|
|
100
|
-
cd dsh-crew
|
|
101
|
-
node scripts/setup.mjs install
|
|
102
|
-
node --test test/*.test.mjs
|
|
103
|
-
pnpm run build:client
|
|
104
|
-
node scripts/setup.mjs uninstall
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
More detail: [Changelog](./CHANGELOG.md) · [UI surfaces](./docs/ui-surfaces.md) · [Readiness matrix](./docs/readiness-matrix.md) · [Job contracts](./docs/job-contracts.md)
|
|
108
|
-
· [GPT-first extension](./docs/gpt-relay-extension.md)
|
|
109
|
-
|
|
110
|
-
## License
|
|
111
|
-
|
|
112
|
-
MIT
|
|
1
|
+
<p align="center"><img src="./docs/images/dsh-crew-logo.png" alt="DSH Crew" width="112" /></p>
|
|
2
|
+
|
|
3
|
+
# DSH Crew
|
|
4
|
+
|
|
5
|
+
Workers and independent reviewers for Codex Desktop, Claude Code, and ZCode, with daily controls inside the official DeepSeek Harness UI.
|
|
6
|
+
|
|
7
|
+
[English](./README.md) · [简体中文](./README.zh.md)
|
|
8
|
+
|
|
9
|
+
## Quick start
|
|
10
|
+
|
|
11
|
+
Requirements: Node.js; Git is also 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
|
+
On Windows, installation also creates a per-user login-start entry. It starts the isolated Crew backend on 3210 and the official UI on 3080 without opening a browser. Open <http://127.0.0.1:3080> when you need the console.
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
dsh-crew status
|
|
23
|
+
dsh-crew inspect
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
- **3080**: daily console, Crew settings, Codex/Claude readiness, jobs.
|
|
27
|
+
- **3210**: isolated Crew backend, Providers, Harness Models, low-level Harness settings.
|
|
28
|
+
- **Codex / ZCode**: installation adds managed capability-aware policy blocks and dispatch roles. Existing user instructions remain untouched.
|
|
29
|
+
- **ZCode**: uses `~/.zcode/cli/config.json` when native MCP servers exist, otherwise the compatible `~/.agents/mcp.json` source.
|
|
30
|
+
|
|
31
|
+
## Configure and use
|
|
32
|
+
|
|
33
|
+
In **Settings → DSH Crew**, refresh Harness Models and order the Worker and Reviewer model lists. One configured model is used directly; several models are tried in your chosen order. Worker can run automatically. Reviewer defaults to manual.
|
|
34
|
+
|
|
35
|
+
Ask Codex or Claude naturally:
|
|
36
|
+
|
|
37
|
+
```text
|
|
38
|
+
Use ds-worker to implement this change and run its tests.
|
|
39
|
+
Use ds-reviewer to review the result.
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Codex first discovers the live Crew capability/readiness contract. If it selected Crew and Crew becomes unavailable, it pauses and asks whether to repair Crew or continue locally; it does not silently fall back.
|
|
43
|
+
|
|
44
|
+
## Commands
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
dsh-crew status # installation and integration health
|
|
48
|
+
dsh-crew inspect # live capabilities and readiness
|
|
49
|
+
dsh-crew jobs list # jobs and Result Contracts
|
|
50
|
+
dsh-crew jobs watch <id> --after 0
|
|
51
|
+
dsh-crew update # update and repair enabled integrations
|
|
52
|
+
dsh-crew integrate # add the official 3080 bridge
|
|
53
|
+
dsh-crew detach # remove only the 3080 bridge
|
|
54
|
+
dsh-crew uninstall # remove managed files; keep config/backups
|
|
55
|
+
dsh-crew uninstall --purge # also remove config/backups
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
The official `web` profile receives only a lightweight bridge. The Crew runtime, models, config, and credentials stay isolated under:
|
|
59
|
+
|
|
60
|
+
```text
|
|
61
|
+
~/.config/dsh-crew/harness
|
|
62
|
+
profile: dsh-crew
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Install from source
|
|
66
|
+
|
|
67
|
+
Use this path to install the current GitHub `main` before it is published to npm:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
git clone https://github.com/Ran-sh/dsh-crew.git
|
|
71
|
+
cd dsh-crew
|
|
72
|
+
node scripts/setup.mjs install
|
|
73
|
+
node scripts/setup.mjs status
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Verify and remove it with:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
node --test test/*.test.mjs
|
|
80
|
+
pnpm run build:client
|
|
81
|
+
node scripts/setup.mjs uninstall
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
For launchers at `<= 0.3.3`, refresh the launcher first. The old updater cannot discover newer releases and cannot be retroactively fixed:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
npm install -g @ran-sh/dsh-crew@latest
|
|
88
|
+
dsh-crew update
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Installation ownership and rollback details: [Installation plan](./docs/installation.md). Architecture contracts: [UI surfaces](./docs/ui-surfaces.md) · [Readiness](./docs/readiness-matrix.md) · [Jobs and information flow](./docs/job-contracts.md).
|
|
92
|
+
|
|
93
|
+
MIT
|
package/README.zh.md
CHANGED
|
@@ -1,111 +1,93 @@
|
|
|
1
|
-
<p align="center"><img src="./docs/images/dsh-crew-logo.png" alt="DSH Crew" width="
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
## 快速开始
|
|
10
|
-
|
|
11
|
-
需要 Node.js;使用 worktree 隔离还需要 Git。
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
npm install -g @ran-sh/dsh-crew@latest
|
|
15
|
-
dsh-crew install
|
|
16
|
-
dsh-crew integrate
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
```bash
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
dsh-crew
|
|
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
|
-
|
|
97
|
-
```bash
|
|
98
|
-
git clone https://github.com/Ran-sh/dsh-crew.git
|
|
99
|
-
cd dsh-crew
|
|
100
|
-
node scripts/setup.mjs install
|
|
101
|
-
node --test test/*.test.mjs
|
|
102
|
-
pnpm run build:client
|
|
103
|
-
node scripts/setup.mjs uninstall
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
更多资料:[Changelog](./CHANGELOG.md) · [UI surfaces](./docs/ui-surfaces.md) · [Readiness Matrix](./docs/readiness-matrix.md) · [任务契约](./docs/job-contracts.md)
|
|
107
|
-
· [GPT-first 扩展接入](./docs/gpt-relay-extension.md)
|
|
108
|
-
|
|
109
|
-
## License
|
|
110
|
-
|
|
111
|
-
MIT
|
|
1
|
+
<p align="center"><img src="./docs/images/dsh-crew-logo.png" alt="DSH Crew" width="112" /></p>
|
|
2
|
+
|
|
3
|
+
# DSH Crew
|
|
4
|
+
|
|
5
|
+
让 Codex Desktop、Claude Code 和 ZCode 使用 Worker / Reviewer,并在官方 DeepSeek Harness 界面中完成日常控制。
|
|
6
|
+
|
|
7
|
+
[English](./README.md) · [简体中文](./README.zh.md)
|
|
8
|
+
|
|
9
|
+
## 快速开始
|
|
10
|
+
|
|
11
|
+
需要 Node.js;使用 worktree 隔离还需要 Git。
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install -g @ran-sh/dsh-crew@latest
|
|
15
|
+
dsh-crew install
|
|
16
|
+
dsh-crew integrate
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Windows 安装会同时创建当前用户的登录启动项:后台启动隔离的 3210 Crew 和官方 3080 界面服务,但不会自动弹出浏览器。需要时打开 <http://127.0.0.1:3080>。
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
dsh-crew status
|
|
23
|
+
dsh-crew inspect
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
- **3080**:日常控制台、Crew 设置、Codex/Claude 就绪状态、任务列表。
|
|
27
|
+
- **3210**:隔离 Crew 后端、Provider、Harness Models 和底层 Harness 设置。
|
|
28
|
+
- **Codex / ZCode**:安装程序会加入可卸载的能力感知规则区块和 dispatch 角色,不改动已有个人规则。
|
|
29
|
+
- **ZCode**:已有原生 MCP 服务时使用 `~/.zcode/cli/config.json`,否则兼容使用 `~/.agents/mcp.json`。
|
|
30
|
+
|
|
31
|
+
## 配置与使用
|
|
32
|
+
|
|
33
|
+
进入 **设置 → DSH Crew**,刷新 Harness Models,然后分别排列 Worker 和 Reviewer 的模型顺序。只配置一个模型时直接使用;配置多个模型时按你的排序依次尝试。Worker 可以自动调用,Reviewer 默认手动。
|
|
34
|
+
|
|
35
|
+
直接告诉 Codex 或 Claude:
|
|
36
|
+
|
|
37
|
+
```text
|
|
38
|
+
使用 ds-worker 实现这个改动并运行测试。
|
|
39
|
+
使用 ds-reviewer 审查结果。
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Codex 会先读取 Crew 的实时能力与就绪合同。如果已经选择 Crew、但 Crew 变得不可调用,它会暂停并询问“修复 Crew 后继续”还是“由 Codex 本地继续”,不会静默降级。
|
|
43
|
+
|
|
44
|
+
## 常用命令
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
dsh-crew status # 安装和集成状态
|
|
48
|
+
dsh-crew inspect # 实时能力与就绪度
|
|
49
|
+
dsh-crew jobs list # 任务与 Result Contract
|
|
50
|
+
dsh-crew jobs watch <id> --after 0
|
|
51
|
+
dsh-crew update # 更新并修复已启用集成
|
|
52
|
+
dsh-crew integrate # 接入官方 3080
|
|
53
|
+
dsh-crew detach # 只移除 3080 桥接
|
|
54
|
+
dsh-crew uninstall # 移除受管文件,保留配置/备份
|
|
55
|
+
dsh-crew uninstall --purge # 同时移除配置/备份
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
官方 `web` profile 只安装轻量桥接。Crew 运行时、模型、配置与凭据隔离在:
|
|
59
|
+
|
|
60
|
+
```text
|
|
61
|
+
~/.config/dsh-crew/harness
|
|
62
|
+
profile: dsh-crew
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## 从源码安装
|
|
66
|
+
|
|
67
|
+
如果要在 npm 发布前安装 GitHub `main`:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
git clone https://github.com/Ran-sh/dsh-crew.git
|
|
71
|
+
cd dsh-crew
|
|
72
|
+
node scripts/setup.mjs install
|
|
73
|
+
node scripts/setup.mjs status
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
验证与卸载:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
node --test test/*.test.mjs
|
|
80
|
+
pnpm run build:client
|
|
81
|
+
node scripts/setup.mjs uninstall
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
对于 `<= 0.3.3` 的旧启动器,请先刷新启动器。旧 updater 无法发现更新,也无法被追溯修复:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
npm install -g @ran-sh/dsh-crew@latest
|
|
88
|
+
dsh-crew update
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
安装归属与回滚细节见[安装方案](./docs/installation.md)。架构合同:[界面分工](./docs/ui-surfaces.md) · [就绪矩阵](./docs/readiness-matrix.md) · [任务与信息流](./docs/job-contracts.md)。
|
|
92
|
+
|
|
93
|
+
MIT
|
package/codex/AGENTS.md
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# Global capability-aware delegation policy
|
|
2
|
+
|
|
3
|
+
The main Codex agent owns the user's task from planning through final delivery.
|
|
4
|
+
DSH Crew is an execution and review capability that Codex may use after
|
|
5
|
+
discovering what the current environment actually supports.
|
|
6
|
+
|
|
7
|
+
## Discover capabilities before delegation
|
|
8
|
+
|
|
9
|
+
- Before delegating substantial work, query DSH Crew's authoritative live
|
|
10
|
+
configuration, capability, and readiness surfaces.
|
|
11
|
+
- Discover capabilities dynamically from the returned contracts. Do not rely
|
|
12
|
+
on a hard-coded list of roles, models, providers, tools, modes, or optional
|
|
13
|
+
features; newly added capabilities should be considered automatically.
|
|
14
|
+
- For every relevant capability, respect its reported availability, activation
|
|
15
|
+
state, invocation mode, constraints, dependencies, and readiness evidence.
|
|
16
|
+
- Treat installed, configured, enabled, and callable as different states. Use a
|
|
17
|
+
capability only when the complete live execution path is ready.
|
|
18
|
+
- Keep the capability snapshot for the current plan, and refresh it after a
|
|
19
|
+
relevant configuration change or an availability, routing, credential,
|
|
20
|
+
compatibility, or activation failure.
|
|
21
|
+
- If discovery is unavailable or evidence is incomplete, fail closed: do not
|
|
22
|
+
invent capabilities or repeatedly dispatch blind retries. If DSH Crew was
|
|
23
|
+
selected for the task, apply the operator decision gate below.
|
|
24
|
+
|
|
25
|
+
## Operator decision gate when DSH Crew is unavailable
|
|
26
|
+
|
|
27
|
+
- Once Codex has selected DSH Crew for any work unit, any condition that makes
|
|
28
|
+
the required Crew capability unavailable or non-callable is a mandatory
|
|
29
|
+
pause point, regardless of cause.
|
|
30
|
+
- At this pause point, do not continue implementation, silently fall back,
|
|
31
|
+
choose another execution path, or repair/reconfigure DSH Crew without new
|
|
32
|
+
operator direction. Perform only the read-only diagnosis needed to report
|
|
33
|
+
the blocker accurately.
|
|
34
|
+
- Report the unavailable capability, bounded reason and evidence, and completed
|
|
35
|
+
work. Then wait for the operator to choose one direction:
|
|
36
|
+
1. Repair or restore DSH Crew, then continue through DSH Crew.
|
|
37
|
+
2. Do not repair DSH Crew; continue with the main Codex agent.
|
|
38
|
+
- Resume only after the operator gives a new instruction. If repair is chosen,
|
|
39
|
+
verify live capability again before dispatch. If local execution is chosen,
|
|
40
|
+
state that the affected work is no longer independently delegated.
|
|
41
|
+
- This gate applies only after DSH Crew has been selected or explicitly
|
|
42
|
+
requested. It does not force a pause when initial planning decides DSH Crew
|
|
43
|
+
provides no benefit and the task should remain with the main agent.
|
|
44
|
+
|
|
45
|
+
## Decide what to delegate
|
|
46
|
+
|
|
47
|
+
- Decompose the request into bounded work units before choosing an executor.
|
|
48
|
+
- Match each unit against discovered capabilities. Use DSH Crew only where it
|
|
49
|
+
provides a clear execution, isolation, parallelism, specialization, or
|
|
50
|
+
independent-review benefit.
|
|
51
|
+
- Delegate the smallest coherent unit that can be completed and verified
|
|
52
|
+
independently. Do not delegate an entire request merely because it is large.
|
|
53
|
+
- Keep ambiguity, dependency ordering, cross-cutting decisions, conflict
|
|
54
|
+
resolution, external side effects, final integration, and user communication
|
|
55
|
+
in the main Codex agent.
|
|
56
|
+
- Respect reported concurrency and isolation limits. Parallelize only
|
|
57
|
+
independent units with explicit, non-overlapping ownership.
|
|
58
|
+
- Simple questions, explanations, small read-only inspections, and genuinely
|
|
59
|
+
trivial edits should normally remain in the main agent.
|
|
60
|
+
- Explicit user instructions override default routing, but never safety or
|
|
61
|
+
capability boundaries.
|
|
62
|
+
|
|
63
|
+
## Execute and verify
|
|
64
|
+
|
|
65
|
+
- Give each delegated unit a concrete objective, owned scope, workspace
|
|
66
|
+
context, constraints, and required validation evidence.
|
|
67
|
+
- Prefer isolated execution for code changes when supported. Review work must
|
|
68
|
+
remain read-only.
|
|
69
|
+
- Consume compact structured results and canonical events. Do not move
|
|
70
|
+
unbounded transcripts, raw provider payloads, credentials, or unnecessary
|
|
71
|
+
patch content between agents.
|
|
72
|
+
- The main agent must validate results, tests, changed scope, unresolved risks,
|
|
73
|
+
and completion state before accepting delegated work.
|
|
74
|
+
|
|
75
|
+
## Review policy
|
|
76
|
+
|
|
77
|
+
- Use available independent review for non-trivial code changes when its live
|
|
78
|
+
invocation policy permits automatic use or the user requests manual use.
|
|
79
|
+
- Never bypass a manual, disabled, unavailable, or restricted review boundary.
|
|
80
|
+
- Treat requested changes, incomplete structured results, or missing direct
|
|
81
|
+
evidence as not approved.
|
|
82
|
+
- If selected DSH Crew review cannot run, apply the operator decision gate. The
|
|
83
|
+
main agent may review locally only after the operator selects that path.
|
|
84
|
+
|
|
85
|
+
## Authority and completion
|
|
86
|
+
|
|
87
|
+
- Delegation does not broaden authority. Publishing, pushing, messaging,
|
|
88
|
+
credential changes, account actions, destructive operations, and other
|
|
89
|
+
external effects still require authority from the user's request.
|
|
90
|
+
- Do not present delegated work as complete until validation passes, structured
|
|
91
|
+
results are complete, integration is checked, and permitted review
|
|
92
|
+
requirements are satisfied or transparently reported as unavailable.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Installation plan
|
|
2
|
+
|
|
3
|
+
DSH Crew uses an explicit installer. Merely installing the npm package does not mutate the host.
|
|
4
|
+
|
|
5
|
+
## Recommended path
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @ran-sh/dsh-crew@latest
|
|
9
|
+
dsh-crew install
|
|
10
|
+
dsh-crew integrate
|
|
11
|
+
dsh-crew status
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
To test GitHub `main` before an npm release:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
git clone https://github.com/Ran-sh/dsh-crew.git
|
|
18
|
+
cd dsh-crew
|
|
19
|
+
node scripts/setup.mjs install
|
|
20
|
+
node scripts/setup.mjs status
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Managed surfaces
|
|
24
|
+
|
|
25
|
+
| Surface | Installed behavior | Uninstall behavior |
|
|
26
|
+
| --- | --- | --- |
|
|
27
|
+
| Crew runtime | Isolated in `~/.config/dsh-crew/harness`, profile: dsh-crew | Registration removed; config kept unless `--purge` |
|
|
28
|
+
| Codex MCP and roles | Points Worker, Reviewer, and MCP to the installed release | Only DSH Crew entries are removed |
|
|
29
|
+
| Global Codex policy | Managed block inside `~/.codex/AGENTS.md` | Only the managed block is removed |
|
|
30
|
+
| ZCode MCP, agents and commands | Installs `~/.zcode/AGENTS.md`, `agents/{ds-worker,ds-reviewer}.md`, commands and a source-aware `dsh-crew` MCP entry | Only DSH Crew-owned files/entry are removed |
|
|
31
|
+
| Windows login startup | `DSH Crew.vbs` plus a Crew-owned CMD launcher | Only those two managed files are removed |
|
|
32
|
+
| Official 3080 UI | Optional lightweight bridge after `integrate` | `detach` removes the bridge; a backup is kept |
|
|
33
|
+
|
|
34
|
+
The Windows login launcher starts the official UI on 3080 and the isolated Crew backend on 3210. It does not open a browser and does not store credentials.
|
|
35
|
+
|
|
36
|
+
ZCode uses `~/.zcode/cli/config.json` when it already has native MCP servers. If
|
|
37
|
+
that native list is empty, the installer uses `~/.agents/mcp.json`; unrelated
|
|
38
|
+
servers are preserved and a conflicting unowned `dsh-crew` entry fails closed.
|
|
39
|
+
|
|
40
|
+
## Verification
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
dsh-crew status
|
|
44
|
+
dsh-crew inspect
|
|
45
|
+
dsh-crew jobs list
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Source checkout verification:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
node --test test/*.test.mjs
|
|
52
|
+
pnpm run build:client
|
|
53
|
+
npm pack --dry-run
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Rollback
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
dsh-crew detach
|
|
60
|
+
dsh-crew uninstall
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Use `dsh-crew uninstall --purge` only when configuration and backups should also be deleted.
|
package/docs/ui-surfaces.md
CHANGED
|
@@ -12,7 +12,7 @@ management:
|
|
|
12
12
|
- Worker and Reviewer policy
|
|
13
13
|
- model priority, fallback, review, and adaptive routing
|
|
14
14
|
- runtime and activation-boundary information
|
|
15
|
-
- Codex and
|
|
15
|
+
- Codex, Claude, and ZCode installation actions and structured readiness
|
|
16
16
|
- task status and bounded model-invocation summaries
|
|
17
17
|
- the link to the underlying 3210 Crew Harness
|
|
18
18
|
|
|
@@ -44,4 +44,3 @@ the full control plane and never becomes `READY`.
|
|
|
44
44
|
|
|
45
45
|
The split changes presentation only. Crew state, credentials, routing policy,
|
|
46
46
|
and model execution remain isolated under the Crew-owned home and profile.
|
|
47
|
-
|