@ran-sh/dsh-crew 0.4.2 → 0.5.0
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 +5 -3
- package/README.zh.md +5 -3
- package/docs/ui-surfaces.md +47 -0
- package/lib/client.js +978 -498
- package/official-web-bridge/lib/client.js +978 -498
- package/package.json +5 -4
- package/src/client/collapsible-sections.mjs +4 -3
- package/src/client/entry.tsx +9 -236
- package/src/client/host-readiness.mjs +45 -0
- package/src/client/index.tsx +368 -123
- package/src/client/surface-detection.mjs +30 -0
- package/src/client/task-telemetry.mjs +72 -0
- package/src/install/install-legacy.mjs +113 -14
- package/src/official-web-bridge.mjs +6 -1
- package/src/runtime-identity.mjs +6 -4
package/README.md
CHANGED
|
@@ -22,7 +22,9 @@ Start the official Harness on port 3080 as usual:
|
|
|
22
22
|
npx -y @deepseek-ai/dsh web --host 127.0.0.1 --port 3080
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
Open <http://127.0.0.1:3080> and go to **Settings → DSH Crew
|
|
25
|
+
Open <http://127.0.0.1:3080> and go to the single **Settings → DSH Crew** entry. The official 3080 process is the daily console; Crew work stays in the isolated backend at `127.0.0.1:3210`. Use **Open 3210 Crew Harness →** only for low-level Provider and Harness Model settings.
|
|
26
|
+
|
|
27
|
+
The shared client is surface-aware: 3080 renders the complete Crew control plane, host readiness, and task status; 3210 renders only a minimal Crew runtime panel while its native Harness menus continue to own Providers, Harness Models, Agent presets, and low-level settings. Detection uses the structured bridge/runtime endpoints, not a hard-coded browser port, and fails closed when evidence is missing. See [UI surface architecture](./docs/ui-surfaces.md).
|
|
26
28
|
|
|
27
29
|
## Configure
|
|
28
30
|
|
|
@@ -32,7 +34,7 @@ Open <http://127.0.0.1:3080> and go to **Settings → DSH Crew**. The official 3
|
|
|
32
34
|
4. Reviewer defaults to **Manual**; enable automatic review only when wanted.
|
|
33
35
|
5. Keep **worktree** isolation for coding tasks.
|
|
34
36
|
|
|
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.
|
|
37
|
+
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. The task section shows a compact Worker/Reviewer table plus process-local model call counts, sources, and last-call times; prompts, results, and credentials are not collected for this overview.
|
|
36
38
|
|
|
37
39
|
## Use from Codex or Claude
|
|
38
40
|
|
|
@@ -102,7 +104,7 @@ pnpm run build:client
|
|
|
102
104
|
node scripts/setup.mjs uninstall
|
|
103
105
|
```
|
|
104
106
|
|
|
105
|
-
More detail: [Changelog](./CHANGELOG.md) · [Readiness matrix](./docs/readiness-matrix.md) · [Job contracts](./docs/job-contracts.md)
|
|
107
|
+
More detail: [Changelog](./CHANGELOG.md) · [UI surfaces](./docs/ui-surfaces.md) · [Readiness matrix](./docs/readiness-matrix.md) · [Job contracts](./docs/job-contracts.md)
|
|
106
108
|
· [GPT-first extension](./docs/gpt-relay-extension.md)
|
|
107
109
|
|
|
108
110
|
## License
|
package/README.zh.md
CHANGED
|
@@ -22,7 +22,9 @@ dsh-crew integrate
|
|
|
22
22
|
npx -y @deepseek-ai/dsh web --host 127.0.0.1 --port 3080
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
打开 <http://127.0.0.1:3080
|
|
25
|
+
打开 <http://127.0.0.1:3080>,进入唯一的 **设置 → DSH Crew**。3080 是日常控制台;Crew 的任务与模型执行继续隔离在 `127.0.0.1:3210`。只有配置底层 Provider 和 Harness Models 时才点击“打开 3210 Crew Harness →”。
|
|
26
|
+
|
|
27
|
+
共享客户端会识别当前 surface:3080 显示完整 Crew 控制面、宿主就绪度和任务状态;3210 的 DSH Crew 入口只显示最小运行时诊断,Provider、Harness Models、Agent 预设和底层设置仍由 Harness 原生菜单管理。识别依赖结构化 bridge/runtime 接口,不硬编码浏览器端口;证据缺失时会保守隐藏控制面。详见 [UI surface 架构](./docs/ui-surfaces.md)。
|
|
26
28
|
|
|
27
29
|
## 配置
|
|
28
30
|
|
|
@@ -32,7 +34,7 @@ npx -y @deepseek-ai/dsh web --host 127.0.0.1 --port 3080
|
|
|
32
34
|
4. Reviewer 默认 **Manual**;确实需要自动复审时再开启。
|
|
33
35
|
5. 编码任务建议保持 **worktree** 隔离。
|
|
34
36
|
|
|
35
|
-
|
|
37
|
+
只配置一个模型时,两个角色直接使用它。配置多个模型时,每个角色按自己的排序调用,失败后依次回退。设置模块可以展开/收起,收起后仍显示当前状态。任务区用紧凑表格显示 Worker/Reviewer,并聚合当前进程内的模型调用次数、来源和最近调用时间;不会为此采集提示词、结果或凭据。
|
|
36
38
|
|
|
37
39
|
## 在 Codex 或 Claude 中使用
|
|
38
40
|
|
|
@@ -101,7 +103,7 @@ pnpm run build:client
|
|
|
101
103
|
node scripts/setup.mjs uninstall
|
|
102
104
|
```
|
|
103
105
|
|
|
104
|
-
更多资料:[Changelog](./CHANGELOG.md) · [Readiness Matrix](./docs/readiness-matrix.md) · [任务契约](./docs/job-contracts.md)
|
|
106
|
+
更多资料:[Changelog](./CHANGELOG.md) · [UI surfaces](./docs/ui-surfaces.md) · [Readiness Matrix](./docs/readiness-matrix.md) · [任务契约](./docs/job-contracts.md)
|
|
105
107
|
· [GPT-first 扩展接入](./docs/gpt-relay-extension.md)
|
|
106
108
|
|
|
107
109
|
## License
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# 3080 and 3210 UI responsibilities
|
|
2
|
+
|
|
3
|
+
DSH Crew deliberately presents two different user experiences from one shared
|
|
4
|
+
client build.
|
|
5
|
+
|
|
6
|
+
## 3080: daily Crew control plane
|
|
7
|
+
|
|
8
|
+
The official Harness `web` profile on `127.0.0.1:3080` owns day-to-day Crew
|
|
9
|
+
management:
|
|
10
|
+
|
|
11
|
+
- Crew workflow and global enablement
|
|
12
|
+
- Worker and Reviewer policy
|
|
13
|
+
- model priority, fallback, review, and adaptive routing
|
|
14
|
+
- runtime and activation-boundary information
|
|
15
|
+
- Codex and Claude installation actions and structured readiness
|
|
16
|
+
- task status and bounded model-invocation summaries
|
|
17
|
+
- the link to the underlying 3210 Crew Harness
|
|
18
|
+
|
|
19
|
+
The lightweight official-web bridge keeps these requests same-origin and
|
|
20
|
+
proxies only the `/_dsh/dsh-crew/*` contract to the isolated backend.
|
|
21
|
+
|
|
22
|
+
## 3210: isolated native Harness
|
|
23
|
+
|
|
24
|
+
The Crew-owned `dsh-crew` profile on `127.0.0.1:3210` owns model execution and
|
|
25
|
+
low-level Harness configuration. Its native Harness menus remain the place for
|
|
26
|
+
Providers, Harness Models, Agent presets, and native runtime settings.
|
|
27
|
+
|
|
28
|
+
The DSH Crew settings entry on this surface is intentionally diagnostics-only:
|
|
29
|
+
it shows bounded runtime identity and a link back to 3080. It does not duplicate
|
|
30
|
+
Worker/Reviewer policy, host integrations, tasks, or orchestration controls.
|
|
31
|
+
|
|
32
|
+
## Surface detection and failure behavior
|
|
33
|
+
|
|
34
|
+
The client does not infer responsibility from a hard-coded browser port. It
|
|
35
|
+
uses two same-origin, structured signals:
|
|
36
|
+
|
|
37
|
+
1. `/_dsh/dsh-crew/bridge-status` identifies the official bridge control plane.
|
|
38
|
+
2. `/_dsh/dsh-crew/runtime` identifies the native Crew-owned runtime.
|
|
39
|
+
|
|
40
|
+
The bridge signal wins on 3080 because the proxied runtime response correctly
|
|
41
|
+
describes the 3210 backend. If neither contract can be verified, the client
|
|
42
|
+
fails closed to the minimal diagnostics view. Missing evidence never enables
|
|
43
|
+
the full control plane and never becomes `READY`.
|
|
44
|
+
|
|
45
|
+
The split changes presentation only. Crew state, credentials, routing policy,
|
|
46
|
+
and model execution remain isolated under the Crew-owned home and profile.
|
|
47
|
+
|