推进 INI 面板 shell handoff control-page mount workflow helper
This commit is contained in:
80
text12.txt
80
text12.txt
@@ -2868,3 +2868,83 @@ host_wasm_opfs_browser_smokes=ok
|
||||
(例如 `mountIniPanelShellSessionHandoffFromControlPage()`),让外部 shell 可以把 control-page API
|
||||
或 session-load state 传入后一次生成 mount-state、render-state 与 DOM workflow result;仍保持只读,
|
||||
不新增控制按钮,不解析 G-code。
|
||||
|
||||
三十六、2026-06-15 继续执行记录:INI panel shell handoff control-page mount workflow helper
|
||||
|
||||
本轮按“第一原则:加快实质性推进”继续推进 SDK/API surface 与 browser/UI workflow,为 shell
|
||||
handoff mount workflow 增加 control-page/session-load 聚合 helper,让外部 shell 可以把 control-page
|
||||
API 或已观察到的 session-load state 传入后,一次生成 mount-state、render-state 与 DOM workflow
|
||||
result。
|
||||
|
||||
完成内容:
|
||||
|
||||
- `ui-shell.js` 新增 `mountIniPanelShellSessionHandoffFromControlPage()`;
|
||||
- 新 helper 支持传入 `sessionLoadState`,也支持从 `controlPageApi.loadControlPageSessionState()`
|
||||
读取只读 session readiness;
|
||||
- 新 helper 返回 `apiName`、`workflowVersion`、`phase`、`ready`、`statusLine`、
|
||||
`loadSessionStateMethod`、`sessionLoadState`、`sessionLoadError`、`mountState`、
|
||||
`mountDisplayViewModel`、`mountRenderState` 与 `mountWorkflow`;
|
||||
- control-page API 缺失时返回 waiting-api 派生的 blocked workflow result;
|
||||
- control-page API 抛错时把错误转换为 `createControlPageSessionLoadState({ phase: "error" })`,
|
||||
不把异常直接抛给外部 shell;
|
||||
- `createIniPanelShellViewModel()` 暴露 `mountShellSessionHandoffFromControlPage`;
|
||||
- `createIniPanelLaunchApiManifest().methods` 新增 `mountShellSessionHandoffFromControlPage`,
|
||||
launch method count 更新为 31;
|
||||
- `launch.html` 的 `window.linuxCncIniPanelLaunchApi.mountShellSessionHandoffFromControlPage()` 暴露
|
||||
真实 browser API,并默认复用 launch 侧 handoff package 与 package render-state;
|
||||
- `ini_panel_shell_integration_workflow_smoke.html` 改为通过 control-page mount workflow 渲染 ready
|
||||
mount-state,并校验 session-load、mount-state 与 DOM workflow result;
|
||||
- Node smoke 覆盖 session-load state 直传、control-page API 读取与缺失 API blocked 路径;
|
||||
- 文档同步记录 control-page mount workflow 用法;
|
||||
- 未新增控制按钮;
|
||||
- 未解析 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 readonly status 聚合 helper(例如
|
||||
`readIniPanelShellSessionHandoffStatusFromControlPage()`),让外部 shell 在 mount workflow ready 后一次
|
||||
读取 readonly status、校验 expected status fields,并返回 structured status result;仍保持只读,不新增
|
||||
控制按钮,不解析 G-code。
|
||||
|
||||
Reference in New Issue
Block a user