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
Stop a Node 26 deprecation warning from failing the maintenance worker test
Claude8c517ce1f4eb
diff --git a/server/lib/databaseMaintenanceWorker.test.js b/server/lib/databaseMaintenanceWorker.test.jsindex c3717898b6..63a6b54378 100644--- a/server/lib/databaseMaintenanceWorker.test.js+++ b/server/lib/databaseMaintenanceWorker.test.js@@ -65,13 +65,14 @@ export async function stopApp(id) {appendFileSync(${JSON.stringify(join(stubs.dir, 'events.log'))}, 'stop ' + row.name + '\\n');return { success: true };}\n`);- const hooks = join(stubs.dir, 'hooks.mjs');- writeFileSync(hooks, `export async function resolve(specifier, context, next) {- const result = await next(specifier, context);- return result.url.endsWith('/server/services/pm2.js') ? { url: ${JSON.stringify(pathToFileURL(stubModule).href)}, format: 'module', shortCircuit: true } : result;-}\n`);+ // In-thread registerHooks: Node 26 deprecates module.register() with a+ // stderr warning that breaks the exact-stderr assertions below.const register = join(stubs.dir, 'register.mjs');- writeFileSync(register, `import { register } from 'node:module';\nregister(${JSON.stringify(pathToFileURL(hooks).href)});\n`);+ writeFileSync(register, `import { registerHooks } from 'node:module';+registerHooks({ resolve(specifier, context, next) {+ const result = next(specifier, context);+ return result.url.endsWith('/server/services/pm2.js') ? { url: ${JSON.stringify(pathToFileURL(stubModule).href)}, format: 'module', shortCircuit: true } : result;+} });\n`);return pathToFileURL(register).href;}