推进 INI 面板 shell integration manifest
This commit is contained in:
99
text12.txt
99
text12.txt
@@ -1569,3 +1569,102 @@ host_wasm_opfs_browser_smokes=ok
|
||||
可复用的 shell integration manifest(例如 `createIniPanelShellIntegrationManifest()`),让外部
|
||||
shell 一次读取入口页、目标页、launch API、control-page API、OPFS/session persistence 能力与
|
||||
compatibility predicate 状态;仍保持只读,不新增控制按钮,不解析 G-code。
|
||||
|
||||
二十、2026-06-15 继续执行记录:INI panel shell integration manifest
|
||||
|
||||
本轮按“第一原则:加快实质性推进”继续推进 SDK/API surface,把 launch API 与 control-page API
|
||||
组合成可复用的 shell integration manifest,让外部 shell 能一次读取入口页、目标页、两类 API
|
||||
manifest、OPFS/session persistence 能力与 compatibility 状态。
|
||||
|
||||
完成内容:
|
||||
|
||||
- `wasm-port/runtime/ui/ini-panel/ui-shell.js` 新增:
|
||||
- `createIniPanelShellIntegrationSchema()`;
|
||||
- `createIniPanelShellIntegrationManifest()`;
|
||||
- `isSupportedIniPanelShellIntegrationManifest()`;
|
||||
- shell integration manifest 固定暴露:
|
||||
- `pages`;
|
||||
- `launcherLinks`;
|
||||
- `launchApiSchema`;
|
||||
- `launchApiManifest`;
|
||||
- `controlPageApiSchema`;
|
||||
- `controlPageApiManifest`;
|
||||
- `compatibility.launchApiManifest`;
|
||||
- `compatibility.controlPageApiManifest`;
|
||||
- `persistenceCapabilities`;
|
||||
- `createIniPanelShellViewModel()` 新增:
|
||||
- `shellIntegrationSchema`;
|
||||
- `shellIntegrationManifest`;
|
||||
- `isSupportedShellIntegrationManifest`;
|
||||
- `createIniPanelLaunchApiManifest().methods` 新增:
|
||||
- `getShellIntegrationSchema`;
|
||||
- `getShellIntegrationManifest`;
|
||||
- `launch.html` 的 `window.linuxCncIniPanelLaunchApi` 新增真实 browser 入口:
|
||||
- `getShellIntegrationSchema()`;
|
||||
- `getShellIntegrationManifest()`;
|
||||
- 新增 `verify_ini_panel_shell_integration_manifest.mjs/.sh`,覆盖:
|
||||
- schema 固定字段;
|
||||
- manifest 完整 shape;
|
||||
- supported、错误 version、错误 apiName、缺少字段和 null 输入;
|
||||
- 修改返回对象不污染 `INI_PANEL_ENTRIES` 或后续 manifest;
|
||||
- custom entries 的 pages、launcher links 和 launch target pages;
|
||||
- 不引入 JS CNC 语义;
|
||||
- `verify_ui_node_smokes.sh` 纳入 shell integration manifest focused gate;
|
||||
- `ini_panel_launch_smoke.html` 在真实 launch iframe 中校验:
|
||||
- `getShellIntegrationSchema()`;
|
||||
- `getShellIntegrationManifest()`;
|
||||
- launch/control-page compatibility 均为 true;
|
||||
- control-page manifest 名称;
|
||||
- browser manifest 与模块 helper 结果一致;
|
||||
- `verify_ini_panel_launch_api_manifest.mjs`、`verify_ini_panel_ui_shell.mjs`、
|
||||
`verify_ini_panel_entry_docs.mjs` 与 `docs/panel-entry.md` 同步记录和校验;
|
||||
- 未新增控制按钮;
|
||||
- 未解析 G-code;
|
||||
- 未解释 canonical events;
|
||||
- 未改变 OPFS/session persistence、LinuxCNC interpreter、tool、parameter、planner 或
|
||||
LinuxCNC-owned runtime semantics。
|
||||
|
||||
验证已通过:
|
||||
|
||||
```bash
|
||||
git diff --check
|
||||
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_ui_shell.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_shell_integration_manifest_node_smoke=ok
|
||||
ini_panel_launch_api_manifest_node_smoke=ok
|
||||
ini_panel_ui_shell_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
|
||||
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
|
||||
```
|
||||
|
||||
下一步建议:
|
||||
|
||||
继续推进 OPFS/session persistence。下一批建议增加只读 shell integration readiness helper
|
||||
(例如 `createIniPanelShellIntegrationReadiness()`),用 integration manifest、launch manifest 和
|
||||
control-page manifest 生成外部 shell 可直接展示/拦截的 readiness 状态;仍保持只读,不新增控制
|
||||
按钮,不解析 G-code。
|
||||
|
||||
Reference in New Issue
Block a user