@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 claudeBin = process.platform === "win32" ? "claude.cmd" : "claude";
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: false,
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
@@ -8,7 +8,7 @@ import {
8
8
  loadConfig,
9
9
  saveConfig,
10
10
  updateConfig
11
- } from "./chunk-KN4BV53L.js";
11
+ } from "./chunk-OBVRQLAG.js";
12
12
 
13
13
  // src/cli.ts
14
14
  import { Command } from "commander";
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  resetSupabase,
8
8
  saveConfig,
9
9
  updateConfig
10
- } from "./chunk-KN4BV53L.js";
10
+ } from "./chunk-OBVRQLAG.js";
11
11
  export {
12
12
  Relay,
13
13
  configExists,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tenux/cli",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "Tenux — mobile-first IDE for 10x engineering",
5
5
  "author": "Antelogic LLC",
6
6
  "license": "MIT",