Guard browser OPFS custom session filename constants

This commit is contained in:
2026-06-13 23:55:22 +08:00
parent 33ae88bc21
commit 2e3f242b90
2 changed files with 111 additions and 48 deletions

View File

@@ -2409,3 +2409,60 @@ browser/OPFS boundary guard不改变 LinuxCNC-owned interpreter、INI、tool
```bash
git status --short && git log -5 --oneline && tail -n 120 text7.txt && awk '/^[一二三四五六七八九十百]+、/ {print}' text7.txt | sort | uniq -d
```
四十一、2026-06-13 继续执行记录browser OPFS custom session filename constants guard
1. 本批目标。
继续 staged path guard inventory 第三十六轮,收敛 browser OPFS smoke 中 custom
session 的 repeated filename literals。
2. 已完成改动。
- INI-derived custom session block 新增局部 constants
`iniFileMachineId`、`iniFileParameterFilename`、`iniFileToolTableFilename`
- explicit override custom session block 新增局部 constants
`iniOverrideMachineId`、`explicitParameterFilename`、`explicitToolTableFilename`
- machine text、custom OPFS write、runtime input、session staging、save staging 均改为
复用对应局部 constants
- 常量只保留在 browser smoke 对应测试 block 内,避免扩大抽象范围;
- 未修改 OPFS bridge behavior、file-service、path-model、SDK planner、interpreter 或
LinuxCNC-owned 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
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 OPFS custom session filename constants
```
4. 下一步工作建议。
继续 staged path guard inventory 第三十七轮,优先扫描 browser OPFS smoke 中 custom
session 的 INI WASM path (`/work/browser-ini-file-session.ini` 与
`/work/browser-ini-override-session.ini`) 是否值得同样局部常量化;仍只加 browser/OPFS
boundary guard不改变 LinuxCNC-owned interpreter、INI、tool、parameter 或 runtime
semantics。
下一轮第一条命令仍保持:
```bash
git status --short && git log -5 --oneline && tail -n 120 text7.txt && awk '/^[一二三四五六七八九十百]+、/ {print}' text7.txt | sort | uniq -d
```