@tenux/cli 0.0.3 → 0.0.5

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.
Files changed (2) hide show
  1. package/dist/cli.js +7 -4
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -15,12 +15,15 @@ import { Command } from "commander";
15
15
  import chalk from "chalk";
16
16
  import { hostname } from "os";
17
17
  import { homedir } from "os";
18
- import { join } from "path";
19
- import { existsSync } from "fs";
18
+ import { join, dirname } from "path";
19
+ import { existsSync, readFileSync } from "fs";
20
20
  import { execSync } from "child_process";
21
+ import { fileURLToPath } from "url";
21
22
  import { createClient } from "@supabase/supabase-js";
23
+ var __dirname = dirname(fileURLToPath(import.meta.url));
24
+ var pkg = JSON.parse(readFileSync(join(__dirname, "..", "package.json"), "utf-8"));
22
25
  var program = new Command();
23
- program.name("tenux").description("Tenux desktop agent \u2014 bridges your machine to the Tenux mobile IDE").version("0.0.1");
26
+ program.name("tenux").description("Tenux desktop agent \u2014 bridges your machine to the Tenux mobile IDE").version(pkg.version);
24
27
  function detectClaudeCode() {
25
28
  let installed = false;
26
29
  try {
@@ -41,7 +44,7 @@ async function sleep(ms) {
41
44
  }
42
45
  program.command("login").description("Authenticate with Tenux via browser-based device auth").option("--url <url>", "Tenux app URL").action(async (opts) => {
43
46
  console.log(chalk.bold("\n tenux"), chalk.dim("desktop agent\n"));
44
- const appUrl = (opts.url ?? process.env.TENUX_APP_URL ?? "http://localhost:3000").replace(/\/+$/, "");
47
+ const appUrl = (opts.url ?? process.env.TENUX_APP_URL ?? "https://tenux.dev").replace(/\/+$/, "");
45
48
  console.log(chalk.dim(" App:"), appUrl);
46
49
  const deviceName = hostname();
47
50
  const platform = process.platform;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tenux/cli",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "Tenux — mobile-first IDE for 10x engineering",
5
5
  "author": "Antelogic LLC",
6
6
  "license": "MIT",