接入L4-TOOL-DB节点运行时

结论:ToolDbProcessPort 已可通过 Node/native adapter 真实执行 LinuxCNC DB_PROGRAM 协议,浏览器端仍保持锁定直到 Python/WASM Worker 接入。
This commit is contained in:
2026-06-19 06:55:56 +08:00
parent c3e5e336a0
commit 823bab5fa4
8 changed files with 288 additions and 5 deletions

View File

@@ -569,6 +569,12 @@ private module paths:
LinuxCNC-owned tool DB process port contract. Contract-only mode does not run
`DB_PROGRAM`, does not parse `.tbl` as a fallback, and keeps execution and
promotion disabled.
- `createLinuxCncToolDbNodeRuntimeAdapter()` in
`runtime/sdk/src/tool-db-node-runtime-adapter.js` for Node/native verification
of the real LinuxCNC `DB_PROGRAM` child process. This adapter is intentionally
not exported from the browser-facing SDK index because it depends on Node
process APIs; browser runtime remains locked until a Python/WASM Worker runs
the DB program.
- `saveToolDbFile()`, `loadToolDbFile()`, `saveToolDbTranscript()`, and
`loadToolDbTranscript()` for OPFS persistence of the DB flat file and protocol
transcript artifacts.