@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.
- package/README.md +66 -30
- package/dist/cli.js +20364 -16545
- package/dist/effort/store/index.js +1 -1
- package/dist/{index-srdtw7w1.js → index-4g6vyznd.js} +5 -4
- package/dist/index.js +903 -155
- package/package.json +1 -1
|
@@ -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;
|