@open-tomato/rafa 0.10.0 → 0.12.0

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.
@@ -4,7 +4,7 @@ import {
4
4
  openNdjsonStore,
5
5
  openSqliteStore,
6
6
  selectEffortStore
7
- } from "../../index-srdtw7w1.js";
7
+ } from "../../index-4g6vyznd.js";
8
8
  import {
9
9
  STORE_BACKENDS
10
10
  } from "../../index-96pz9023.js";
@@ -1006,16 +1006,17 @@ async function teeToOperator(stream) {
1006
1006
  }
1007
1007
  return text + tail;
1008
1008
  }
1009
- async function spawnClaudeCaptured(args, prompt) {
1009
+ async function spawnClaudeCaptured(args, prompt, options = {}) {
1010
1010
  guardSpend();
1011
- return spawnCaptured(args, prompt);
1011
+ return spawnCaptured(args, prompt, options);
1012
1012
  }
1013
- async function spawnCaptured(args, prompt) {
1013
+ async function spawnCaptured(args, prompt, options = {}) {
1014
1014
  const proc = Bun.spawn([CLAUDE_BIN, ...args], {
1015
1015
  stdin: new TextEncoder().encode(prompt),
1016
1016
  stdout: "pipe",
1017
1017
  stderr: "inherit",
1018
- env: claudeSessionEnv()
1018
+ env: claudeSessionEnv(),
1019
+ ...options.cwd === undefined ? {} : { cwd: options.cwd }
1019
1020
  });
1020
1021
  liveSessions.add(proc);
1021
1022
  let stdout;