推进 INI 面板 shell handoff package mount-state
This commit is contained in:
81
text12.txt
81
text12.txt
@@ -2326,3 +2326,84 @@ host_wasm_opfs_browser_smokes=ok
|
||||
`createIniPanelShellSessionHandoffPackageMountState()` 或等价 helper,把 launch-side package
|
||||
render-state、target control page、required readonly methods 与首帧 control-page session readiness
|
||||
合并为外部 shell 可消费的 mount-state;仍保持只读,不新增控制按钮,不解析 G-code。
|
||||
|
||||
二十九、2026-06-15 继续执行记录:INI panel shell handoff package mount-state
|
||||
|
||||
本轮按“第一原则:加快实质性推进”继续推进 browser/UI workflow 与 OPFS/session persistence
|
||||
的交界,新增 shell handoff package mount-state,把 launch-side package render-state、control
|
||||
page target、required readonly methods 与 control-page session readiness 合并为外部 shell 可消费
|
||||
状态。
|
||||
|
||||
完成内容:
|
||||
|
||||
- `ui-shell.js` 新增 `createIniPanelShellSessionHandoffPackageMountState()`;
|
||||
- `createIniPanelShellViewModel()` 新增 `shellSessionHandoffPackageMountState`;
|
||||
- shell view-model 暴露 `createShellSessionHandoffPackageMountState` helper;
|
||||
- `createIniPanelLaunchApiManifest().methods` 新增
|
||||
`getShellSessionHandoffPackageMountState`;
|
||||
- `launch.html` 的 `window.linuxCncIniPanelLaunchApi.getShellSessionHandoffPackageMountState()`
|
||||
新增真实 browser 入口;
|
||||
- launch API 的 mount-state 入口支持传入真实 `sessionLoadState`,从而让外部 shell 在 control
|
||||
page iframe ready 后生成 ready mount-state;
|
||||
- 默认 launch mount-state 表示 `waiting-panel`,不主动打开 control page,不执行 action plan;
|
||||
- `ini_panel_launch_smoke.html` 校验默认 mount-state 的 package readiness、target、readonly
|
||||
method 与 waiting session;
|
||||
- `ini_panel_shell_integration_workflow_smoke.html` 在真实 control page iframe ready 后,把
|
||||
`loadControlPageSessionState()` 结果传入 launch API,并校验 ready mount-state;
|
||||
- `verify_ini_panel_ui_shell.mjs` 覆盖 helper 导出、shell view-model 字段、默认 blocked mount
|
||||
state 与 ready session mount-state;
|
||||
- `verify_ini_panel_shell_integration_manifest.mjs` 覆盖 ready/blocked/error mount-state;
|
||||
- `verify_ini_panel_launch_api_manifest.mjs` 覆盖 launch manifest 与 launch page API 暴露;
|
||||
- `verify_ini_panel_entry_docs.mjs` 与 `docs/panel-entry.md` 同步记录和校验新 helper;
|
||||
- 未新增控制按钮;
|
||||
- 未解析 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_shell_integration_manifest.sh
|
||||
wasm-port/tests/ui/node/verify_ini_panel_launch_api_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_shell_integration_manifest_node_smoke=ok
|
||||
ini_panel_launch_api_manifest_node_smoke=ok
|
||||
ini_panel_entry_docs_node_smoke=ok
|
||||
browser_ini_opfs_smoke=ok
|
||||
browser_ini_control_page_smoke=ok
|
||||
browser_ini_launch_smoke=ok
|
||||
browser_ini_shell_integration_workflow_smoke=ok
|
||||
ui_node_smokes=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
|
||||
```
|
||||
|
||||
下一步建议:
|
||||
|
||||
继续推进 browser/UI workflow 与 SDK/API surface。下一批建议增加 mount-state display 或
|
||||
render-state helper,把 mount-state checks 压缩为外部 shell 可直接显示的 rows,并在 shell
|
||||
integration browser workflow 中校验 waiting/ready mount-state 显示;仍保持只读,不新增控制按钮,
|
||||
不解析 G-code。
|
||||
|
||||
Reference in New Issue
Block a user