mu-agent-bridge 1.0.60 → 1.0.62

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.
@@ -1020,9 +1020,10 @@ const cdp_client_1 = require("../src-ts/plugins/workbuddy/cdp-client");
1020
1020
  (0, node_test_1.default)("workbuddy CDP 等待新建任务入口完成渲染后再点击", async () => {
1021
1021
  let lookups = 0;
1022
1022
  let clicked = false;
1023
+ let clickCount = 0;
1023
1024
  let messages = 1;
1024
1025
  let conversationId = "old-conversation";
1025
- const button = { textContent: "新建任务", disabled: false, getAttribute: () => null, getClientRects: () => [{}], click: () => { clicked = true; messages = 0; conversationId = null; } };
1026
+ const button = { textContent: "新建任务", disabled: false, getAttribute: () => null, getClientRects: () => [{}], click: () => { clicked = true; clickCount++; messages = 0; conversationId = null; } };
1026
1027
  const editor = { innerText: "今天帮你做些什么?", querySelector: () => clicked ? {} : null, cloneNode: () => ({ textContent: "", querySelectorAll: () => [] }) };
1027
1028
  const document = {
1028
1029
  querySelectorAll: (selector) => {
@@ -1039,6 +1040,7 @@ const cdp_client_1 = require("../src-ts/plugins/workbuddy/cdp-client");
1039
1040
  internal.evaluate = async (expression) => (0, node_vm_1.runInNewContext)(expression, { document, location: { href: "app://workbuddy/task/old" } });
1040
1041
  await client.createTask();
1041
1042
  strict_1.default.equal(clicked, true);
1043
+ strict_1.default.equal(clickCount, 1);
1042
1044
  });
1043
1045
  (0, node_test_1.default)("workbuddy CDP 通过无障碍名称识别无可见文字的新建任务图标", async () => {
1044
1046
  let conversationId = "old-conversation";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mu-agent-bridge",
3
- "version": "1.0.60",
3
+ "version": "1.0.62",
4
4
  "description": "将 AUN Agent 连接到本地桌面 AI 客户端的插件平台。",
5
5
  "main": "dist/src-ts/cli.js",
6
6
  "bin": {