参考所有分组,完成尽量多的内容:闭环OPFS类型source-map守卫

This commit is contained in:
cnc
2026-06-05 06:40:58 +08:00
parent d80405ccb3
commit 9c52e426f7
2 changed files with 12 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ persistence. It is a policy and bridge map only; it must not add independent fil
| Entry | Boundary |
| --- | --- |
| `web/src/wasm-core.js` | Keeps LinuxCNC parameter restore/save bridge files under the OPFS workspace and cleans WASM scratch files. |
| `web/src/wasm-core.d.ts` | Exposes only the OPFS-backed workspace, directory, parameter-file, and mount/workspace option types used by the bridge. |
| `web/src/app.js` | Persists browser programs at `programs/current.ngc` and LinuxCNC parameters at `parameters/rs274ngc.var`. |
| `web/test-browser-wasm-smoke-opfs-basic-sections.js` | Verifies OPFS program file reads through LinuxCNC `read_text()` and rejects unsafe paths. |
| `web/test-browser-wasm-smoke-opfs-parameter-sections.js` | Verifies OPFS parameter restore, save, `.new`, `.bak`, failure, and stale-state semantics. |