推进 INI 面板 shell integration browser workflow smoke

This commit is contained in:
2026-06-15 07:54:19 +08:00
parent 1f9a8c33b0
commit a663c8dbca
5 changed files with 291 additions and 0 deletions

View File

@@ -1763,3 +1763,80 @@ host_wasm_opfs_browser_smokes=ok
继续推进 browser/UI workflow。下一批建议把 shell integration readiness 接到 control-page 或 launch
的外部 shell smoke 中,形成“读取 integration manifest -> readiness gate -> 打开 control page ->
读取 readonly status”的端到端只读接入 workflow仍保持只读不新增控制按钮不解析 G-code。
二十二、2026-06-15 继续执行记录INI panel shell integration browser workflow smoke
本轮按“第一原则:加快实质性推进”继续推进 browser/UI workflow把 shell integration readiness
接入真实 browser 端到端只读外部 shell workflow覆盖“读取 integration manifest -> readiness gate
-> 打开 control page -> 读取 readonly status”的接入链路。
完成内容:
- 新增 `wasm-port/tests/browser/ini_panel_shell_integration_workflow_smoke.html`
- 该 browser smoke 模拟外部 shell
- 先加载真实 `launch.html`
- 读取 `linuxCncIniPanelLaunchApi.getShellIntegrationManifest()`
- 读取 `linuxCncIniPanelLaunchApi.getShellIntegrationReadiness()`
- 校验 readiness `phase === "ready"`、`ready === true`、`missing` 为空;
- 从 integration manifest 的 target pages 找到 control-page target
- 加载真实 `control-page.html`
- 校验 control-page browser API manifest 与 integration manifest 对齐;
- 等待 embedded INI panel API ready
- 通过既有 UI workflow 写入 INI、保存 machine files、load session
- 使用 `readControlPageStatus()` 读取 readonly machine-session status
- 校验 workflow last action、parameter file、tool table 与 control-page DOM status
- `verify_ini_panel_browser.sh` 纳入新 browser smoke并输出
`browser_ini_shell_integration_workflow_smoke=ok`
- `docs/panel-entry.md` 记录该 browser workflow smoke 的外部 shell handoff 目的;
- `verify_ini_panel_entry_docs.mjs` 校验:
- 文档记录新 smoke
- browser 聚合脚本执行新 smoke
- 新 smoke 使用 `getShellIntegrationReadiness()`
- 新 smoke 使用 `readControlPageStatus()`
- 新 smoke 输出成功标记;
- 未新增控制按钮;
- 未解析 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_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_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 integration workflow 的只读 handoff 抽成 Node 可测
helper例如 `createIniPanelShellIntegrationWorkflowPlan()`),让外部 shell 在不开 browser 的情况下
获得 target page、readiness、required methods 与 readonly status handoff plan仍保持只读不新增
控制按钮,不解析 G-code。