Guard browser machine text-store staging

This commit is contained in:
2026-06-13 17:36:12 +08:00
parent 0d90a5b513
commit 41a9cd65c1
2 changed files with 118 additions and 6 deletions

View File

@@ -1425,3 +1425,72 @@ machine-file-store 或 session runtime semantics。
```bash
git status --short && git log -5 --oneline && tail -n 120 text7.txt && awk '/^[一二三四五六七八九十百]+、/ {print}' text7.txt | sort | uniq -d
```
二十五、2026-06-13 继续执行记录browser machine text-store staging guard
1. 本批目标。
继续 staged path guard inventory 第二十轮,处理 browser OPFS/machine text store 默认
OPFS path 对账:
```text
linuxcnc/machines/<machine>/machine.ini
linuxcnc/machines/<machine>/tool.tbl
linuxcnc/machines/<machine>/linuxcnc.var
```
2. 已完成改动。
- browser 侧新增 `assertMachineTextStorePaths(...)`
- `browser-interp` 的 `saveMachineTextFiles(...)` 返回 path map 增加默认 OPFS path
guard
- `browser-random-toolchanger` 的 `saveMachineTextFiles(...)` 返回 path map 增加默认
OPFS path guard
- `browser-ini-file-session` 与 `browser-ini-override-session` 的 machine text-store
path map 增加默认 OPFS path guard
- invalid parameter/tool INI negative session 的 machine text-store path map 增加默认
OPFS path guard
- 未修改 OPFS file-service、machine-file-store、path-model、machine file 内容或
session runtime semantics。
涉及文件:
```text
wasm-port/tests/browser/interp_smoke.html
```
3. 已完成的目标验证。
```bash
git diff --check
SKIP_INI_BUILD=1 SKIP_INTERP_BUILD=1 wasm-port/tests/browser/verify_interp_browser.sh
```
4. 本批剩余建议验证。
```bash
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
Guard browser machine text-store staging
```
5. 下一步工作建议。
继续 staged path guard inventory 第二十一轮,优先扫描 OPFS gcode program storage
边界,例如 `saveGcodeProgram(...)` / `loadGcodeProgram(...)` 与
`linuxcnc/gcode/<filename>` path 对账;仍只加 filesystem/OPFS path guard不改变
gcode storage、file-service 或 interpreter runtime semantics。
下一轮第一条命令仍保持:
```bash
git status --short && git log -5 --oneline && tail -n 120 text7.txt && awk '/^[一二三四五六七八九十百]+、/ {print}' text7.txt | sort | uniq -d
```