opencode-supertask 0.1.13 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/index.js
CHANGED
|
@@ -19308,7 +19308,7 @@ var init_worker = __esm({
|
|
|
19308
19308
|
const modelArg = modelToUse ? ` -m "${modelToUse}"` : "";
|
|
19309
19309
|
const cmd = `opencode run --agent supertask-runner${modelArg} --format json "\u6267\u884C\u4EFB\u52A1 ID: ${task.id}${modelToUse ? ` OVERRIDE_MODEL=${modelToUse}` : ""}"`;
|
|
19310
19310
|
const cwd = task.cwd || process.cwd();
|
|
19311
|
-
const child = spawn("sh", ["-c", cmd], { cwd, stdio: ["
|
|
19311
|
+
const child = spawn("sh", ["-c", cmd], { cwd, stdio: ["ignore", "pipe", "pipe"] });
|
|
19312
19312
|
await TaskRunService.updatePid(run.id, process.pid, child.pid ?? 0);
|
|
19313
19313
|
let output = "";
|
|
19314
19314
|
const handleData = (data) => {
|