推进 INI 面板 shell handoff package schema
This commit is contained in:
100
text13.txt
100
text13.txt
@@ -907,3 +907,103 @@ host_wasm_opfs_browser_smokes=ok
|
||||
`isSupportedIniPanelShellSessionHandoffPackage()`,为 package 增加 versioned schema 与 focused
|
||||
compatibility predicate,便于外部 shell 在消费 package 前做单点兼容性检查;仍保持只读,不新增
|
||||
控制按钮,不解析 G-code。
|
||||
|
||||
八、2026-06-15 继续执行记录:INI panel shell handoff package schema gate
|
||||
|
||||
本轮按“第一原则:加快实质性推进”继续推进 browser/UI workflow,为 shell handoff package
|
||||
新增 versioned schema 与 focused compatibility predicate,让外部 shell 能在消费 package 前做
|
||||
单点 shape 兼容性检查。
|
||||
|
||||
完成内容:
|
||||
|
||||
- `ui-shell.js` 新增 `createIniPanelShellSessionHandoffPackageSchema()`;
|
||||
- package schema 输出:
|
||||
- `apiName: "ini-panel-shell-session-handoff-package"`;
|
||||
- `packageVersion: 1`;
|
||||
- `fields`;
|
||||
- `manifestFields`;
|
||||
- `ui-shell.js` 新增 `isSupportedIniPanelShellSessionHandoffPackage()`;
|
||||
- predicate 检查:
|
||||
- package 对象存在;
|
||||
- `apiName` 匹配;
|
||||
- `packageVersion` 匹配;
|
||||
- package 顶层 required fields 存在;
|
||||
- `manifests` 对象存在;
|
||||
- manifest required fields 存在;
|
||||
- `createIniPanelShellViewModel()` 新增:
|
||||
- `shellSessionHandoffPackageSchema`;
|
||||
- `createShellSessionHandoffPackageSchema`;
|
||||
- `isSupportedShellSessionHandoffPackage`;
|
||||
- `createIniPanelLaunchApiManifest().methods` 新增:
|
||||
- `getShellSessionHandoffPackageSchema`;
|
||||
- `isSupportedShellSessionHandoffPackage`;
|
||||
- `launch.html` 的 `window.linuxCncIniPanelLaunchApi` 新增真实 browser 入口:
|
||||
- `getShellSessionHandoffPackageSchema()`;
|
||||
- `isSupportedShellSessionHandoffPackage()`;
|
||||
- `ini_panel_launch_smoke.html` 校验真实 launch iframe:
|
||||
- package schema version 为 1;
|
||||
- 当前 package 可支持;
|
||||
- 错误 package version 被拒绝;
|
||||
- `ini_panel_shell_integration_workflow_smoke.html` 校验外部 shell workflow 能读取
|
||||
package schema,并用 predicate 确认 package 可支持;
|
||||
- `verify_ini_panel_shell_integration_manifest.mjs` 覆盖:
|
||||
- package schema 完整 shape;
|
||||
- valid package 支持;
|
||||
- 错误 version、错误 apiName、缺 package 字段、缺 manifest 字段、null 被拒绝;
|
||||
- `verify_ini_panel_ui_shell.mjs` 覆盖 shell view-model 的 package schema 和 predicate;
|
||||
- `verify_ini_panel_launch_api_manifest.mjs`、`verify_ini_panel_entry_docs.mjs` 与
|
||||
`docs/panel-entry.md` 同步记录和校验新 helper/API;
|
||||
- 未新增控制按钮;
|
||||
- 未执行 action-plan;
|
||||
- 未解析 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_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
|
||||
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
|
||||
```
|
||||
|
||||
下一步建议:
|
||||
|
||||
继续推进 browser/UI workflow 与文档化可执行工作流。下一批建议新增一个只读
|
||||
`createIniPanelShellSessionHandoffPackageReport()` 或等价 helper,把 package schema support、
|
||||
missing package fields、missing manifest fields、version/apiName mismatch 和 checklist blocking
|
||||
reasons 合并成 display-ready report,便于外部 shell 在拒绝 package 时显示原因;仍保持只读,
|
||||
不新增控制按钮,不解析 G-code。
|
||||
|
||||
Reference in New Issue
Block a user