Task 5 of v0.3 plan.
writeLiveValues(filePath, projectDir, payload) wraps the caller's
{device, pou_name, values} in the v1 envelope (version, updated_at,
project_dir) and writes atomically via <file>.<pid>.tmp + rename.
Creates parent dirs as needed.
Mirrors src/tui/shared/state-write.ts. Kept separate because the
TUI subpackage is ESM and the server is CJS; the duplication is
~15 lines of code that almost never changes.
|
||
|---|---|---|
| .. | ||
| approve-gate.test.ts | ||
| detect.test.ts | ||
| get-user-selection.test.ts | ||
| inspect.test.ts | ||
| ipc.test.ts | ||
| launcher.test.ts | ||
| live-values-write.test.ts | ||
| mirror-paths.test.ts | ||
| open-project-preflight.test.ts | ||
| script-manager.test.ts | ||
| ssh-version.test.ts | ||
| state-read.test.ts | ||