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.
@@ -23276,6 +23276,7 @@ var WorkerEngine = class {
23276
23276
  const args = ["run", "--agent", task.agent, "--format", "json"];
23277
23277
  if (model) args.push("-m", model);
23278
23278
  args.push(task.prompt);
23279
+ const cwd = task.cwd || process.cwd();
23279
23280
  const child = spawn(process.execPath, [
23280
23281
  this.launcherEntry(),
23281
23282
  LAUNCH_IDENTITY_ARGUMENT,
@@ -23283,9 +23284,10 @@ var WorkerEngine = class {
23283
23284
  this.opencodeBin,
23284
23285
  ...args
23285
23286
  ], {
23286
- cwd: task.cwd || process.cwd(),
23287
+ cwd,
23287
23288
  env: {
23288
23289
  ...process.env,
23290
+ PWD: cwd,
23289
23291
  [MANAGED_RUN_ENV]: MANAGED_RUN_ENV_VALUE
23290
23292
  },
23291
23293
  stdio: ["pipe", "pipe", "pipe", "ipc"],
@@ -23296,7 +23298,7 @@ var WorkerEngine = class {
23296
23298
  runId,
23297
23299
  launchIdentity,
23298
23300
  child,
23299
- commandContext: runCommandContext(this.opencodeBin, args, task.cwd || process.cwd()),
23301
+ commandContext: runCommandContext(this.opencodeBin, args, cwd),
23300
23302
  output: "",
23301
23303
  sessionId: null,
23302
23304
  timeoutTimer: null,