opencode-supertask 0.1.36 → 0.1.37
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/CHANGELOG.md +8 -0
- package/dist/cli/index.js +4 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/gateway/index.js +4 -2
- package/dist/gateway/index.js.map +1 -1
- package/dist/worker/index.js +4 -2
- package/dist/worker/index.js.map +1 -1
- package/package.json +1 -1
package/dist/worker/index.js
CHANGED
|
@@ -6848,6 +6848,7 @@ var WorkerEngine = class {
|
|
|
6848
6848
|
const args = ["run", "--agent", task.agent, "--format", "json"];
|
|
6849
6849
|
if (model) args.push("-m", model);
|
|
6850
6850
|
args.push(task.prompt);
|
|
6851
|
+
const cwd = task.cwd || process.cwd();
|
|
6851
6852
|
const child = spawn(process.execPath, [
|
|
6852
6853
|
this.launcherEntry(),
|
|
6853
6854
|
LAUNCH_IDENTITY_ARGUMENT,
|
|
@@ -6855,9 +6856,10 @@ var WorkerEngine = class {
|
|
|
6855
6856
|
this.opencodeBin,
|
|
6856
6857
|
...args
|
|
6857
6858
|
], {
|
|
6858
|
-
cwd
|
|
6859
|
+
cwd,
|
|
6859
6860
|
env: {
|
|
6860
6861
|
...process.env,
|
|
6862
|
+
PWD: cwd,
|
|
6861
6863
|
[MANAGED_RUN_ENV]: MANAGED_RUN_ENV_VALUE
|
|
6862
6864
|
},
|
|
6863
6865
|
stdio: ["pipe", "pipe", "pipe", "ipc"],
|
|
@@ -6868,7 +6870,7 @@ var WorkerEngine = class {
|
|
|
6868
6870
|
runId,
|
|
6869
6871
|
launchIdentity,
|
|
6870
6872
|
child,
|
|
6871
|
-
commandContext: runCommandContext(this.opencodeBin, args,
|
|
6873
|
+
commandContext: runCommandContext(this.opencodeBin, args, cwd),
|
|
6872
6874
|
output: "",
|
|
6873
6875
|
sessionId: null,
|
|
6874
6876
|
timeoutTimer: null,
|