morphbox
Version:
Docker-based AI sandbox for development with Claude integration
26 lines (23 loc) • 684 B
JavaScript
import { j as json } from './index-3BbzJtgI.js';
import { t as taskManager } from './task-manager-CrRO35wb.js';
import 'child_process';
import 'events';
import './workspace-CcQOwpY7.js';
import 'fs';
import 'util';
import 'path';
const POST = async ({ request }) => {
try {
const { pid } = await request.json();
if (!pid) {
return json({ error: "Process ID is required" }, { status: 400 });
}
taskManager.stopTask(pid);
return json({ success: true });
} catch (error) {
console.error("Failed to stop task:", error);
return json({ error: error.message }, { status: 500 });
}
};
export { POST };
//# sourceMappingURL=_server.ts-C0IuE87c.js.map