Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

368 B
Raw Blame
import { spawn } from 'node:child_process';

import { requireExecutionApproval } from './executionPolicy';

// Intentional agent terminal: execution policy authorizes the exact command before dispatch.
export const runTerminal = async (input: { command: string }) => {
  await requireExecutionApproval(input.command);
  return spawn('bash', ['-c', input.command]);
};