multiclaws 0.4.13 → 0.4.15

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/dist/infra/frp.js CHANGED
@@ -362,8 +362,8 @@ class FrpTunnelManager {
362
362
  (0, node_child_process_1.execSync)(`tar -xzf "${archivePath}" -C "${downloadDir}"`, { stdio: "ignore" });
363
363
  }
364
364
  else {
365
- // Windows: use tar (available since Windows 10 1803)
366
- (0, node_child_process_1.execSync)(`tar -xf "${archivePath}" -C "${downloadDir}"`, { stdio: "ignore" });
365
+ // Windows: tar does not support .zip; use PowerShell's Expand-Archive instead
366
+ (0, node_child_process_1.execSync)(`powershell -NoProfile -Command "Expand-Archive -LiteralPath '${archivePath}' -DestinationPath '${downloadDir}' -Force"`, { stdio: "ignore" });
367
367
  }
368
368
  // Move binary to target
369
369
  const extractedBinary = node_path_1.default.join(downloadDir, archiveName, binaryName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multiclaws",
3
- "version": "0.4.13",
3
+ "version": "0.4.15",
4
4
  "description": "MultiClaws plugin for OpenClaw collaboration via A2A protocol",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -137,7 +137,9 @@ multiclaws_profile_show()
137
137
  → 自动同步所有团队成员
138
138
  ```
139
139
 
140
- ### 智能委派
140
+ ### 智能委派(单轮)
141
+
142
+ 适用于一次性任务,不需要来回沟通。
141
143
 
142
144
  ```
143
145
  1. multiclaws_agents() — 列出智能体,读 bio
@@ -151,6 +153,53 @@ multiclaws_profile_show()
151
153
  - 匹配数据需求(如「检查 API 代码」→ bio 中有该代码库的智能体)
152
154
  - 多个匹配时选最具体的
153
155
 
156
+ ### 多轮协作(需要来回沟通)
157
+
158
+ 适用于需要协商、确认、多次沟通才能完成的任务(如约会议、对需求、联合调试)。
159
+
160
+ **根据用户是否需要看到中间过程,选择以下两种模式:**
161
+
162
+ #### 模式 A:交互式多轮(推荐 — 用户能看到每一步进展)
163
+
164
+ 主 AI 直接处理多轮沟通,每轮之间向用户汇报进展。
165
+
166
+ ```
167
+ 用户: "帮我和小明约明天下午的会议"
168
+
169
+ 1. multiclaws_agents() — 找到小明
170
+ 2. multiclaws_delegate(agentUrl="小明", task="我想约明天下午开会,你什么时候有空?")
171
+ 3. → 向用户汇报: "小明说明天下午 3 点和 4 点都可以"
172
+ 4.(用户说"约 3 点"或 AI 自行判断)
173
+ 5. multiclaws_delegate(agentUrl="小明", task="确认明天下午 3 点开会")
174
+ 6. → 向用户汇报: "已和小明确认明天下午 3 点"
175
+ ```
176
+
177
+ **关键规则:**
178
+ - 每次 `multiclaws_delegate` 返回后,**立即向用户汇报结果**,不要等全部完成
179
+ - 如果能自行判断下一步(如对方给了选项,用户已表达偏好),直接继续
180
+ - 如果需要用户决策(如对方提出多个方案),暂停并询问用户
181
+ - 协商未达成一致时,继续发 `multiclaws_delegate`,最多 5 轮
182
+
183
+ #### 模式 B:自主式多轮(AI 全自动完成,只报告最终结果)
184
+
185
+ 适用于用户明确授权自主处理、不需要看中间过程的场景。使用 `sessions_spawn` 启动子 agent,子 agent 自主完成全部沟通。
186
+
187
+ ```
188
+ 用户: "帮我和小明约个会,我明天下午都行,你自己搞定"
189
+
190
+ 1. sessions_spawn(task="联系小明协商明天下午的会议时间。我这边下午都可以。
191
+ 使用 multiclaws_delegate 与小明沟通,协商确定具体时间。
192
+ 完成后汇报最终结果。", mode="run")
193
+ 2.(子 agent 自主多轮沟通)
194
+ 3. 子 agent 完成 → announce 回父 agent → 向用户报告最终结果
195
+ ```
196
+
197
+ **何时用模式 B:**
198
+ - 用户明确说「你自己搞定」「自动处理」「不用问我」
199
+ - 任务参数已完全明确,不需要用户中间决策
200
+
201
+ **默认用模式 A。** 除非用户明确要求自主处理,否则始终用交互式模式,确保用户看到每一步。
202
+
154
203
  ---
155
204
 
156
205
  ## 网络配置