mu-agent-bridge 1.0.58 → 1.0.59

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.
@@ -70,13 +70,13 @@ for (const kind of ["qwenwork", "chatgpt"]) {
70
70
  const dataDir = await (0, promises_1.mkdtemp)((0, node_path_1.join)((0, node_os_1.tmpdir)(), "mab-draft-"));
71
71
  const page = desktop("任务期间的输入");
72
72
  page.generating = true;
73
- const client = kind === "qwenwork" ? new cdp_client_1.QwenCdpClient({ dataDir }) : new cdp_client_2.ChatgptCdpClient({ dataDir });
73
+ const client = kind === "qwenwork" ? new cdp_client_1.QwenCdpClient({ dataDir }) : new cdp_client_2.ChatgptCdpClient({ dataDir, timeoutMs: 50 });
74
74
  client.evaluate = page.evaluate;
75
75
  try {
76
- await strict_1.default.rejects(client.direct("新请求", 0), /正在生成/);
77
- await strict_1.default.rejects(client.createSession(), /正在生成/);
76
+ await strict_1.default.rejects(client.direct("新请求", 0), /正在生成|等待超时/);
77
+ await strict_1.default.rejects(client.createSession(), /正在生成|等待超时/);
78
78
  if (kind === "chatgpt")
79
- await strict_1.default.rejects(client.switchSession({ id: "target", host: "h", title: "目标" }), /正在生成/);
79
+ await strict_1.default.rejects(client.switchSession({ id: "target", host: "h", title: "目标" }), /正在生成|等待超时/);
80
80
  strict_1.default.equal(page.editor.innerText, "任务期间的输入");
81
81
  strict_1.default.equal(page.newChat, false);
82
82
  strict_1.default.equal(page.sends, 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mu-agent-bridge",
3
- "version": "1.0.58",
3
+ "version": "1.0.59",
4
4
  "description": "将 AUN Agent 连接到本地桌面 AI 客户端的插件平台。",
5
5
  "main": "dist/src-ts/cli.js",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-bridge-workbuddy",
3
- "version": "1.1.19",
3
+ "version": "1.1.20",
4
4
  "description": "mu-agent-bridge 的 WorkBuddy 桌面端插件。",
5
5
  "keywords": [
6
6
  "mu-agent-bridge-plugin",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "id": "workbuddy",
3
- "version": "1.1.19",
3
+ "version": "1.1.20",
4
4
  "type": "agent",
5
5
  "displayName": "WorkBuddy",
6
6
  "entry": "dist/src-ts/plugins/workbuddy/index.js",