推进 INI 面板 shell handoff mount DOM contract helper
This commit is contained in:
75
text12.txt
75
text12.txt
@@ -2720,3 +2720,78 @@ host_wasm_opfs_browser_smokes=ok
|
||||
继续推进 SDK/API surface。下一批建议为 shared mount DOM renderer 增加 schema/contract helper
|
||||
(例如 `createIniPanelShellSessionHandoffMountDomContract()`),让外部 shell 可在渲染前校验所需
|
||||
DOM nodes、dataset keys 与 row dataset prefix;仍保持只读,不新增控制按钮,不解析 G-code。
|
||||
|
||||
三十四、2026-06-15 继续执行记录:INI panel shell handoff mount DOM contract helper
|
||||
|
||||
本轮按“第一原则:加快实质性推进”继续推进 SDK/API surface 与 browser/UI workflow,把 shared
|
||||
mount DOM renderer 的隐式 DOM 约定抽成可复用 contract/readiness helper,让外部 shell 能在渲染前
|
||||
校验所需 DOM nodes、dataset keys 与 row dataset prefix。
|
||||
|
||||
完成内容:
|
||||
|
||||
- `ui-shell.js` 新增 `createIniPanelShellSessionHandoffMountDomContract()`;
|
||||
- `ui-shell.js` 新增 `createIniPanelShellSessionHandoffMountDomReadiness()`;
|
||||
- `renderIniPanelShellSessionHandoffMountState()` 改为复用 DOM readiness gate,并支持通过 contract
|
||||
统一 selectors 与 row dataset prefix;
|
||||
- `createIniPanelShellViewModel()` 暴露 `shellSessionHandoffMountDomContract`、
|
||||
`createShellSessionHandoffMountDomContract` 与 `createShellSessionHandoffMountDomReadiness`;
|
||||
- `createIniPanelLaunchApiManifest().methods` 新增:
|
||||
- `getShellSessionHandoffMountDomContract`;
|
||||
- `getShellSessionHandoffMountDomReadiness`;
|
||||
- `launch.html` 的 `window.linuxCncIniPanelLaunchApi` 暴露对应 browser API;
|
||||
- `ini_panel_shell_integration_workflow_smoke.html` 改为先构造外部 shell-owned DOM contract,再执行
|
||||
readiness 校验,随后用同一 contract 渲染 waiting/ready mount-state;
|
||||
- Node smoke 覆盖默认 contract、外部 row dataset prefix、DOM readiness ready/missing 路径、launch
|
||||
manifest 方法清单与文档记录;
|
||||
- 未新增控制按钮;
|
||||
- 未解析 G-code;
|
||||
- 未解释 canonical events;
|
||||
- 未新增 JS CNC 语义;
|
||||
- 未改变 OPFS/session persistence、LinuxCNC interpreter、tool、parameter、planner 或
|
||||
LinuxCNC-owned runtime semantics。
|
||||
|
||||
验证已通过:
|
||||
|
||||
```bash
|
||||
git diff --check
|
||||
wasm-port/tests/ui/node/verify_ini_panel_ui_shell.sh
|
||||
wasm-port/tests/ui/node/verify_ini_panel_launch_api_manifest.sh
|
||||
wasm-port/tests/ui/node/verify_ini_panel_shell_integration_manifest.sh
|
||||
wasm-port/tests/ui/node/verify_ini_panel_entry_docs.sh
|
||||
wasm-port/tests/ui/node/verify_ui_node_smokes.sh
|
||||
SKIP_INI_BUILD=1 SKIP_INTERP_BUILD=1 wasm-port/tests/browser/verify_ini_panel_browser.sh
|
||||
wasm-port/tools/verify_vendor_sync.sh
|
||||
wasm-port/tools/verify_no_standalone_cnc_semantics.sh
|
||||
SKIP_INTERP_BUILD=1 wasm-port/tests/wasm/node/verify_interp_wasm.sh
|
||||
SKIP_INTERP_BUILD=1 wasm-port/tests/wasm/node/verify_sim_configs_inventory_wasm.sh
|
||||
wasm-port/tests/host/verify_host_smokes.sh
|
||||
```
|
||||
|
||||
关键输出:
|
||||
|
||||
```text
|
||||
ini_panel_ui_shell_node_smoke=ok
|
||||
ini_panel_launch_api_manifest_node_smoke=ok
|
||||
ini_panel_shell_integration_manifest_node_smoke=ok
|
||||
ini_panel_entry_docs_node_smoke=ok
|
||||
ui_node_smokes=ok
|
||||
browser_ini_opfs_smoke=ok
|
||||
browser_ini_control_page_smoke=ok
|
||||
browser_ini_launch_smoke=ok
|
||||
browser_ini_shell_integration_workflow_smoke=ok
|
||||
vendor sync up to date
|
||||
standalone CNC semantics guard complete
|
||||
interp_wasm_node_smoke=ok
|
||||
sim_configs_wasm_node_inventory_executed=28
|
||||
sim_configs_wasm_node_inventory_passed=28
|
||||
sim_configs_wasm_node_inventory_skipped=131
|
||||
sim_configs_wasm_node_inventory_unexpected_fail=0
|
||||
host_wasm_opfs_browser_smokes=ok
|
||||
```
|
||||
|
||||
下一步建议:
|
||||
|
||||
继续推进 SDK/API surface。下一批建议把 shell handoff mount DOM contract/readiness 聚合进一个
|
||||
可复用的 browser-side mount workflow helper(例如 `mountIniPanelShellSessionHandoff()`),让外部
|
||||
shell 一次调用即可完成 contract 生成、DOM readiness、mount-state render 与 structured result;仍
|
||||
保持只读,不新增控制按钮,不解析 G-code。
|
||||
|
||||
Reference in New Issue
Block a user