收口HostBridge请求信封校验

共享契约新增HostBridge method白名单和request id归一规则

Expo与Tauri壳在能力分发前拒绝非法id和未知method

补充两端测试、配置门禁、原生壳方案和共享决策记录
This commit is contained in:
2026-06-18 13:22:27 +08:00
parent 4c4682069b
commit 71b18002d4
9 changed files with 205 additions and 5 deletions
@@ -649,6 +649,8 @@ for (const snippet of [
'normalizeHostBridgeExportFileName',
'normalizeHostBridgeClipboardText',
'base64Data',
'isHostBridgeMethod',
'normalizeHostBridgeRequestId',
'HOST_BRIDGE_RESPONSE_CACHE_MAX',
'completedHostBridgeResponses',
'inFlightHostBridgeResponses',