Multi-Agent Collaboration for Team and Friends
TypeScript agent-automationagent-orchestrationagent-workflowai-agentsai-collaborationai-memoryai-workforceautonomous-agentsclaude-codeclaude-code-skillscodexcoding-agentmulti-agentmultiple-agentone-person-businessone-person-companyone-person-teamopencodesolopreneur
#!/usr/bin/env node
import { cpSync, existsSync, mkdirSync, rmSync } from "node:fs";
import { join, dirname } from "node:path";
import { fileURLToPath } from "node:url";
const __dirname = dirname(fileURLToPath(import.meta.url));
const appRoot = join(__dirname, "..");
const daemonRoot = join(appRoot, "..", "daemon");
const source = join(daemonRoot, "dist", "cli", "index.js");
const targetDir = join(appRoot, "dist", "daemon");
const target = join(targetDir, "index.js");
if (!existsSync(source)) throw new Error("@alook/daemon build did not produce dist/cli/index.js");
rmSync(join(appRoot, "dist", "cli"), { recursive: true, force: true });
rmSync(targetDir, { recursive: true, force: true });
mkdirSync(targetDir, { recursive: true });
cpSync(source, target);
console.log("[bundle-daemon] Copied @alook/daemon dist/cli/index.js → dist/daemon/index.js");