Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: stub atomicWrite in the runner shutdown harness
[._.]/ Adam Eivya5318a8e2e43
diff --git a/server/cos-runner/shutdown.test.js b/server/cos-runner/shutdown.test.jsindex dd346c4afb..a1f63e219e 100644--- a/server/cos-runner/shutdown.test.js+++ b/server/cos-runner/shutdown.test.js@@ -72,7 +72,9 @@ function runner(assertDatabaseAdmission = vi.fn()) {process, console, Buffer, Date, setTimeout, clearTimeout, join, basename,PATHS: { root: '/example', cosAgents: '/example/agents' }, PORTS: { COS: 0 },setupProcessErrorHandlers: vi.fn(), existsSync: () => true, ensureDir: async () => {},- readFile: async path => files.get(path) ?? '{}', writeFile, withState, drainState,+ readFile: async path => files.get(path) ?? '{}', writeFile,+ atomicWrite: (path, data) => writeFile(path, typeof data === 'string' ? data : JSON.stringify(data, null, 2)),+ withState, drainState,createRunnerShutdown, registerRunnerShutdownSignals, createTuiExitHandler, createHttpDrain,armForceKillShared: armForceKill, killProcessTree, spawn, pty,createAgentSentinelAccess,