@tenux/cli 0.0.3 → 0.0.4
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/dist/cli.js +6 -3
- 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(
|
|
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 {
|