建立ToolDbProcessPort合约层
结论:已新增ToolDbProcessPort合约、OPFS tool DB flat-file/transcript store和Node/WASM gates,baseline保持28/28/131/0且promotion继续锁定。
This commit is contained in:
@@ -61,6 +61,37 @@ export function toolTablePath(machineId, filename = "tool.tbl") {
|
||||
);
|
||||
}
|
||||
|
||||
export function toolDbRootPath(machineId) {
|
||||
return opfsPath(
|
||||
ROOT,
|
||||
"machines",
|
||||
assertSegment(machineId, "machine id"),
|
||||
"tool-db",
|
||||
);
|
||||
}
|
||||
|
||||
export function toolDbFilePath(machineId, filename = "db_nonran_file") {
|
||||
return opfsPath(
|
||||
ROOT,
|
||||
"machines",
|
||||
assertSegment(machineId, "machine id"),
|
||||
"tool-db",
|
||||
assertSegment(filename, "tool DB filename"),
|
||||
);
|
||||
}
|
||||
|
||||
export function toolDbTranscriptPath(machineId, runId, filename = "transcript.json") {
|
||||
return opfsPath(
|
||||
ROOT,
|
||||
"machines",
|
||||
assertSegment(machineId, "machine id"),
|
||||
"tool-db",
|
||||
"transcripts",
|
||||
assertSegment(runId, "tool DB run id"),
|
||||
assertSegment(filename, "tool DB transcript filename"),
|
||||
);
|
||||
}
|
||||
|
||||
export function parameterFilePath(machineId, filename = "linuxcnc.var") {
|
||||
return opfsPath(
|
||||
ROOT,
|
||||
|
||||
Reference in New Issue
Block a user