@tenux/cli 0.0.4 → 0.0.6
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,10 +210,11 @@ 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
|
+
shell: isWindows,
|
|
217
218
|
env: { ...process.env },
|
|
218
219
|
// inherits Claude auth from ~/.claude
|
|
219
220
|
stdio: ["pipe", "pipe", "pipe"]
|
package/dist/cli.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
loadConfig,
|
|
9
9
|
saveConfig,
|
|
10
10
|
updateConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VIGQFZN2.js";
|
|
12
12
|
|
|
13
13
|
// src/cli.ts
|
|
14
14
|
import { Command } from "commander";
|
|
@@ -44,7 +44,7 @@ async function sleep(ms) {
|
|
|
44
44
|
}
|
|
45
45
|
program.command("login").description("Authenticate with Tenux via browser-based device auth").option("--url <url>", "Tenux app URL").action(async (opts) => {
|
|
46
46
|
console.log(chalk.bold("\n tenux"), chalk.dim("desktop agent\n"));
|
|
47
|
-
const appUrl = (opts.url ?? process.env.TENUX_APP_URL ?? "
|
|
47
|
+
const appUrl = (opts.url ?? process.env.TENUX_APP_URL ?? "https://tenux.dev").replace(/\/+$/, "");
|
|
48
48
|
console.log(chalk.dim(" App:"), appUrl);
|
|
49
49
|
const deviceName = hostname();
|
|
50
50
|
const platform = process.platform;
|
package/dist/index.js
CHANGED