mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 14:16:34 +09:00
Checkpoint: File edits
Automatic checkpoint created by Claude Code - Branch: v3 - Timestamp: 2026-01-13T00:35:39Z - Changes: 1 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4cd4308646
commit
2447bb6c00
1 file changed
+4
-6
@@ -134,16 +134,14 @@ Examples:
|
||||
async function runWorker(workerType: HeadlessWorkerType, timeout: number): Promise<void> {
|
||||
console.log(`[Headless] Starting worker: ${workerType}`);
|
||||
|
||||
const executor = new HeadlessWorkerExecutor({
|
||||
const executor = new HeadlessWorkerExecutor(process.cwd(), {
|
||||
maxConcurrent: 1,
|
||||
defaultTimeout: timeout,
|
||||
workingDirectory: process.cwd(),
|
||||
sandboxMode: 'permissive'
|
||||
defaultTimeoutMs: timeout
|
||||
});
|
||||
|
||||
try {
|
||||
const result = await executor.execute(workerType, {
|
||||
timeout,
|
||||
timeoutMs: timeout,
|
||||
model: 'sonnet',
|
||||
sandbox: 'permissive'
|
||||
});
|
||||
@@ -159,7 +157,7 @@ async function runWorker(workerType: HeadlessWorkerType, timeout: number): Promi
|
||||
process.exit(1);
|
||||
}
|
||||
} finally {
|
||||
await executor.shutdown();
|
||||
// executor doesn't have shutdown, just let it be garbage collected
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user