opencode-supertask 0.1.14 → 0.1.16
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 +32 -14
- package/dist/cli/index.js.map +1 -1
- package/dist/gateway/index.js +1 -1
- package/dist/gateway/index.js.map +1 -1
- package/dist/plugin/supertask.js +24 -7
- package/dist/plugin/supertask.js.map +1 -1
- package/dist/worker/index.js +1 -1
- package/dist/worker/index.js.map +1 -1
- package/package.json +1 -1
package/dist/gateway/index.js
CHANGED
|
@@ -18895,7 +18895,7 @@ var WorkerEngine = class {
|
|
|
18895
18895
|
const modelArg = modelToUse ? ` -m "${modelToUse}"` : "";
|
|
18896
18896
|
const cmd = `opencode run --agent supertask-runner${modelArg} --format json "\u6267\u884C\u4EFB\u52A1 ID: ${task.id}${modelToUse ? ` OVERRIDE_MODEL=${modelToUse}` : ""}"`;
|
|
18897
18897
|
const cwd = task.cwd || process.cwd();
|
|
18898
|
-
const child = spawn("sh", ["-c", cmd], { cwd, stdio: ["
|
|
18898
|
+
const child = spawn("sh", ["-c", cmd], { cwd, stdio: ["ignore", "pipe", "pipe"] });
|
|
18899
18899
|
await TaskRunService.updatePid(run.id, process.pid, child.pid ?? 0);
|
|
18900
18900
|
let output = "";
|
|
18901
18901
|
const handleData = (data) => {
|