import { z } from "zod";
const TaskStopParams = z.object({
    id: z.string().describe("The background process ID to stop"),
});
export function createTaskStopTool(processManager) {
    return {
        name: "task_stop",
        description: "Stop a background process by ID. Sends SIGTERM, then SIGKILL after 5 seconds.",
        parameters: TaskStopParams,
        async execute({ id }) {
            return processManager.stop(id);
        },
    };
}
//# sourceMappingURL=task-stop.js.map