@opencode-ai/util 0.0.0-dev-17509 → 0.0.0-dev-17534

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.
@@ -213,7 +213,7 @@ const makeCrossSpawnSpawner = Effect.gen(function* () {
213
213
  stderr = Stream.transduce(stderr, err.stream);
214
214
  return { stdout, stderr, all: Stream.merge(stdout, stderr) };
215
215
  };
216
- const spawn = (command, opts) => Effect.callback((resume) => {
216
+ const launchProcess = (command, opts) => Effect.callback((resume) => {
217
217
  const signal = Deferred.makeUnsafe();
218
218
  const proc = launch(command.command, command.args, opts);
219
219
  let end = false;
@@ -237,6 +237,10 @@ const makeCrossSpawnSpawner = Effect.gen(function* () {
237
237
  proc.kill("SIGTERM");
238
238
  });
239
239
  });
240
+ const spawn = Effect.fnUntraced(function* (command, opts) {
241
+ yield* Effect.logInfo("spawning process", { command: command.command, args: command.args, cwd: opts.cwd });
242
+ return yield* launchProcess(command, opts);
243
+ });
240
244
  const killGroup = (command, proc, signal) => {
241
245
  if (globalThis.process.platform === "win32") {
242
246
  return Effect.callback((resume) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/util",
4
- "version": "0.0.0-dev-17509",
4
+ "version": "0.0.0-dev-17534",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {