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: route the motion skills install through the shared childProcess wrapper
Adam Eivy73ab0d70ab1f
diff --git a/server/routes/htmlComposition.js b/server/routes/htmlComposition.jsindex f03108bcd1..63a4c31a5a 100644--- a/server/routes/htmlComposition.js+++ b/server/routes/htmlComposition.js@@ -20,8 +20,7 @@ let skillInstall = null;router.post('/toolkit/skills/install', asyncHandler(async (req, res) => {if (skillInstall) throw new ServerError('A motion skills install is already running', { status: 409, code: 'INSTALL_IN_PROGRESS' });const { detectMotionSkills, skillInstallCommand } = await import('../lib/motionSkills.js');- const { execFile } = await import('node:child_process');- const { safeChildProcessOptions } = await import('../lib/processEnv.js');+ const { execFile } = await import('../lib/childProcess.js');const packs = detectMotionSkills().filter(pack => !pack.installed);const sources = new Map(MOTION_SKILL_PACKS.map(pack => [pack.id, pack]));const failed = [];@@ -29,7 +28,7 @@ router.post('/toolkit/skills/install', asyncHandler(async (req, res) => {for (const { id, label } of packs) {const [command, args] = skillInstallCommand(sources.get(id));console.log(`🎬 Installing ${label} motion skills`);- const ok = await new Promise(resolve => execFile(command, args, safeChildProcessOptions({ timeout: 5 * 60 * 1000, shell: process.platform === 'win32' }), error => {+ const ok = await new Promise(resolve => execFile(command, args, { timeout: 5 * 60 * 1000, shell: process.platform === 'win32' }, error => {if (error) console.error(`❌ ${label} skill install failed: ${error.message.split('\n')[0]}`);resolve(!error);}));diff --git a/server/routes/htmlComposition.test.js b/server/routes/htmlComposition.test.jsindex 68c7439fb5..7ceb4b4319 100644--- a/server/routes/htmlComposition.test.js+++ b/server/routes/htmlComposition.test.js@@ -13,7 +13,7 @@ vi.mock('../services/mediaJobQueue/index.js', () => ({}));vi.mock('../services/pipeline/audioMux.js', () => ({ resolveMusicTrackPath: vi.fn(async () => null) }));const skillState = vi.hoisted(() => ({ installed: false }));-vi.mock('node:child_process', async importOriginal => ({+vi.mock('../lib/childProcess.js', async importOriginal => ({...(await importOriginal()),execFile: vi.fn((command, args, options, callback) => { skillState.installed = true; callback(null); }),}));@@ -90,7 +90,7 @@ describe('GET /api/html-composition/beats (#8958)', () => {describe('motion skills install', () => {it('installs each missing skill pack through the skills CLI and returns the refreshed status', async () => {- const { execFile } = await import('node:child_process');+ const { execFile } = await import('../lib/childProcess.js');const response = await request(app).post('/api/html-composition/toolkit/skills/install');expect(response.status).toBe(200);expect(execFile).toHaveBeenCalledTimes(3);