@tenux/cli 0.0.5 → 0.0.7
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.
|
@@ -210,13 +210,14 @@ async function handleClaudeQuery(command, supabase) {
|
|
|
210
210
|
if (model) args.push("--model", model);
|
|
211
211
|
if (session_id) args.push("--resume", session_id);
|
|
212
212
|
args.push("-p", prompt);
|
|
213
|
-
const
|
|
213
|
+
const isWindows = process.platform === "win32";
|
|
214
|
+
const claudeBin = isWindows ? "claude.cmd" : "claude";
|
|
214
215
|
const proc = spawn(claudeBin, args, {
|
|
215
216
|
cwd,
|
|
216
|
-
shell:
|
|
217
|
-
env: { ...process.env },
|
|
218
|
-
// inherits Claude auth from ~/.claude
|
|
217
|
+
shell: isWindows,
|
|
219
218
|
stdio: ["pipe", "pipe", "pipe"]
|
|
219
|
+
// env is omitted — Node inherits parent process.env automatically.
|
|
220
|
+
// Spreading env on Windows can lose system variables and cause ENOENT.
|
|
220
221
|
});
|
|
221
222
|
let seq = 0;
|
|
222
223
|
let capturedSessionId = null;
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED