MCPcopy Create free account
hub / github.com/agent-tower/core / run

Function run

packages/desktop/scripts/prepare-runtime.mjs:14–25  ·  view source on GitHub ↗
(command, args)

Source from the content-addressed store, hash-verified

12import path from 'node:path';
13import { fileURLToPath } from 'node:url';
14import { spawnSync } from 'node:child_process';
15import { patchClaudeAgentAcp } from '../../server/scripts/patch-claude-agent-acp.mjs';
16
17const __dirname = path.dirname(fileURLToPath(import.meta.url));
18const packageRoot = path.resolve(__dirname, '..');
19const monorepoRoot = path.resolve(packageRoot, '../..');
20const runtimeDir = path.join(packageRoot, 'runtime');
21const serverRuntimeDir = path.join(runtimeDir, 'server');
22const webRuntimeDir = path.join(runtimeDir, 'web');
23const nodeRuntimeDir = path.join(runtimeDir, 'node');
24
25function run(command, args) {
26 const result = spawnSync(command, args, {
27 cwd: monorepoRoot,
28 stdio: 'inherit',

Callers 2

mergeTeamRunMembersMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected