dsh-plugin-subagent-bridge 0.9.0 → 0.9.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-plugin-subagent-bridge",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "type": "module",
5
5
  "description": "Subagent bridge: lets Codex delegate a task to DeepSeek Harness the way it would spawn a subagent (one call, waits for the answer), plus a codex_dispatch tool for the reverse direction.",
6
6
  "keywords": [
@@ -148,6 +148,28 @@ DSH 自己的委派深度上限是 1:worker(depth 0)能开子 agent(dept
148
148
  写错了(`/glm-5.3`、`a/b/c`)桥会在**发 prompt 之前**报错,不会白跑一轮。
149
149
 
150
150
 
151
+ ## 新建项目:`workspace`
152
+
153
+ DSH 侧边栏的分组叫「项目(workspace)」,和会话的工作目录是两回事。桥默认只**复用**已有项目:`cwd` 恰好是一个项目的目录,会话就归进去;否则落在「未分组」。
154
+
155
+ 要在 DSH 里**新建**一个和 Codex 这边对等的项目,加 `workspace`:
156
+
157
+ ```json
158
+ { "prompt": "…", "cwd": "/repo/clawer", "workspace": true }
159
+ { "prompt": "…", "cwd": "/repo/clawer", "workspace": "Clawer" }
160
+ ```
161
+
162
+ - `true` → 用 `cwd` 建项目,标题取目录名;
163
+ - 字符串 → 同上,但用这个标题;
164
+ - 目录已是项目 → **复用,不改标题**,不会重复创建;
165
+ - 目录不存在 → 先建目录再登记项目;
166
+ - 不传 → 只复用,没有项目就未分组(默认行为)。
167
+
168
+ **什么时候传**:用户说「创建一个 xxx 项目」「在 DSH 里也建一个」「别让它落到未分组」时。单纯派活、目录已经是项目时不用传——传了也只是复用。
169
+
170
+ 返回里带 `workspace: { id, title, path }`,可以据此确认落在哪个项目下。
171
+
172
+
151
173
  ## 怎么写 prompt
152
174
 
153
175
  worker **看不到你这段对话**,它只有 `prompt` 和 `cwd`。写成可以独立开工的工单: