Move panel temporary state to worker OPFS

This commit is contained in:
2026-09-03 14:03:32 +08:00
parent 0f6691a9fc
commit 2b1e249baf
22 changed files with 688 additions and 42 deletions

View File

@@ -34,7 +34,14 @@ export function capabilities(contextId) {
event: 1,
workspace: 1,
commands: [...COMMANDS],
worker_storage_commands: ["UI_STATE_SAVE", "UI_STATE_LOAD", "UI_STATE_CLEAR"],
streams: ["STATE_SNAPSHOT", "EVENT", "ALARM"],
storage: {
owner: "dedicated-worker",
ui_state: "opfs_temp_json_v1",
power_off_checkpoint: "opfs_temp_json_v1",
authority: "linuxcnc-wasm-remains-authoritative",
},
limits: { ...LIMITS },
exclusions: EXCLUSIONS.map((entry) => ({ ...entry })),
};