fde2e-bu 1.7.1 → 1.7.3
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 +1 -1
- package/src/mcp/commands-snapshot.json +20 -0
- package/src/mcp/schema.mjs +5 -4
package/package.json
CHANGED
|
@@ -62,6 +62,8 @@
|
|
|
62
62
|
"optional": [
|
|
63
63
|
"waitSelector",
|
|
64
64
|
"timeoutMs",
|
|
65
|
+
"expect",
|
|
66
|
+
"expectRegex",
|
|
65
67
|
"targetTabId",
|
|
66
68
|
"targetWindowId"
|
|
67
69
|
],
|
|
@@ -349,6 +351,24 @@
|
|
|
349
351
|
"upToSeq"
|
|
350
352
|
],
|
|
351
353
|
"summary": "标记信箱已读(可 upToSeq 截止)(BU 插件保留命令)。"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"cmd": "waitHandle",
|
|
357
|
+
"required": [
|
|
358
|
+
"windowId"
|
|
359
|
+
],
|
|
360
|
+
"optional": [
|
|
361
|
+
"timeoutMs"
|
|
362
|
+
],
|
|
363
|
+
"summary": "长阻塞请求窗口控制权归还(timeoutMs 100..300000 缺省 300s;每窗至多一个 pending——后来者 E_HANDLE_BUSY;到期 E_HANDLE_TIMEOUT;取消经 cancelCommand)。"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"cmd": "postHandle",
|
|
367
|
+
"required": [
|
|
368
|
+
"windowId"
|
|
369
|
+
],
|
|
370
|
+
"optional": [],
|
|
371
|
+
"summary": "主动交出窗口控制权(controller 回落 owner;即时命令)。"
|
|
352
372
|
}
|
|
353
373
|
]
|
|
354
374
|
}
|
package/src/mcp/schema.mjs
CHANGED
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
// commands.json;对表测试保证与真源一致,真源再生成命令见该文件 $doc)。
|
|
4
4
|
//
|
|
5
5
|
// 工具面=调研 C 节裁决的混合粒度:6 个意图级(open/click/fill/read/screenshot/
|
|
6
|
-
// cmd 透传)+窗口三件套;bu_cmd 透传枚举=云端可执行
|
|
7
|
-
// COMMANDS;
|
|
6
|
+
// cmd 透传)+窗口三件套;bu_cmd 透传枚举=云端可执行 24 条(CLOUD_EXECUTABLE_
|
|
7
|
+
// COMMANDS;handle-protocol 增 waitHandle/postHandle——omni 0.9 白名单已开。
|
|
8
|
+
// 7 条保留命令经 omni 云端派发必被拒 E_INVALID_COMMAND——conformance C7,
|
|
8
9
|
// 故不进枚举也不暴露)。inputSchema 的 required/optional 逐字来自快照;字段类型
|
|
9
10
|
// 是 CLI 侧展示提示(快照只给字段名,类型面以 packages/protocol/src/validate.js 为准)。
|
|
10
11
|
import { readFileSync } from 'node:fs';
|
|
@@ -79,11 +80,11 @@ export function buildTools(contract = loadContract()) {
|
|
|
79
80
|
},
|
|
80
81
|
});
|
|
81
82
|
}
|
|
82
|
-
// bu_cmd:任意契约命令透传(枚举=云端可执行
|
|
83
|
+
// bu_cmd:任意契约命令透传(枚举=云端可执行 24=全集 31 − 保留 7)
|
|
83
84
|
const cloudExecutable = contract.commands.map((c) => c.cmd).filter((c) => !RESERVED_COMMANDS.includes(c));
|
|
84
85
|
tools.push({
|
|
85
86
|
name: 'bu_cmd',
|
|
86
|
-
description: '(透传)一条完整 om-adapter/0.7 命令直达云端可执行白名单(
|
|
87
|
+
description: '(透传)一条完整 om-adapter/0.7 命令直达云端可执行白名单(24 条,含 waitHandle/postHandle 控制权族);保留命令(窗口聚焦/尺寸/元数据与留言板族)经云端派发会被拒,不在此面。命令语义见契约层 commands.json。',
|
|
87
88
|
inputSchema: {
|
|
88
89
|
type: 'object',
|
|
89
90
|
properties: {
|