buildwithnexus 0.5.8 → 0.5.10

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/bin.js CHANGED
@@ -18,9 +18,22 @@ __export(banner_exports, {
18
18
  showSecurityPosture: () => showSecurityPosture
19
19
  });
20
20
  import chalk from "chalk";
21
+ import { readFileSync } from "fs";
22
+ import { dirname, join } from "path";
23
+ import { fileURLToPath } from "url";
24
+ function getVersion() {
25
+ try {
26
+ const __dirname2 = dirname(fileURLToPath(import.meta.url));
27
+ const packageJson2 = JSON.parse(readFileSync(join(__dirname2, "..", "..", "package.json"), "utf-8"));
28
+ return packageJson2.version;
29
+ } catch {
30
+ return "unknown";
31
+ }
32
+ }
21
33
  function showBanner() {
22
34
  console.log(BANNER);
23
- console.log(chalk.dim(" v0.5.6 \xB7 buildwithnexus.dev\n"));
35
+ console.log(chalk.dim(` v${getVersion()} \xB7 buildwithnexus.dev
36
+ `));
24
37
  }
25
38
  function showPhase(phase, total, description) {
26
39
  const progress = chalk.cyan(`[${phase}/${total}]`);
@@ -751,6 +764,9 @@ var init_ssh = __esm({
751
764
 
752
765
  // src/cli.ts
753
766
  import { Command as Command14 } from "commander";
767
+ import { readFileSync as readFileSync2 } from "fs";
768
+ import { dirname as dirname2, join as join2 } from "path";
769
+ import { fileURLToPath as fileURLToPath4 } from "url";
754
770
 
755
771
  // src/commands/init.ts
756
772
  init_banner();
@@ -1241,9 +1257,9 @@ import fs7 from "fs";
1241
1257
  import path7 from "path";
1242
1258
  import os3 from "os";
1243
1259
  import crypto4 from "crypto";
1244
- import { fileURLToPath } from "url";
1260
+ import { fileURLToPath as fileURLToPath2 } from "url";
1245
1261
  function getReleaseTarball() {
1246
- const dir = path7.dirname(fileURLToPath(import.meta.url));
1262
+ const dir = path7.dirname(fileURLToPath2(import.meta.url));
1247
1263
  const tarballPath = path7.join(dir, "nexus-release.tar.gz");
1248
1264
  if (fs7.existsSync(tarballPath)) return tarballPath;
1249
1265
  const rootPath = path7.resolve(dir, "..", "dist", "nexus-release.tar.gz");
@@ -1251,7 +1267,7 @@ function getReleaseTarball() {
1251
1267
  throw new Error("nexus-release.tar.gz not found. Run: npm run bundle");
1252
1268
  }
1253
1269
  function getCloudInitTemplate() {
1254
- const dir = path7.dirname(fileURLToPath(import.meta.url));
1270
+ const dir = path7.dirname(fileURLToPath2(import.meta.url));
1255
1271
  const templatePath = path7.join(dir, "templates", "cloud-init.yaml.ejs");
1256
1272
  if (fs7.existsSync(templatePath)) return fs7.readFileSync(templatePath, "utf-8");
1257
1273
  const srcPath = path7.resolve(dir, "..", "src", "templates", "cloud-init.yaml.ejs");
@@ -1782,12 +1798,12 @@ var logsCommand = new Command6("logs").description("View NEXUS server logs").opt
1782
1798
  import { Command as Command7 } from "commander";
1783
1799
  import path10 from "path";
1784
1800
  import fs9 from "fs";
1785
- import { fileURLToPath as fileURLToPath2 } from "url";
1801
+ import { fileURLToPath as fileURLToPath3 } from "url";
1786
1802
  init_secrets();
1787
1803
  init_qemu();
1788
1804
  init_ssh();
1789
1805
  function getReleaseTarball2() {
1790
- const dir = path10.dirname(fileURLToPath2(import.meta.url));
1806
+ const dir = path10.dirname(fileURLToPath3(import.meta.url));
1791
1807
  const tarballPath = path10.join(dir, "nexus-release.tar.gz");
1792
1808
  if (fs9.existsSync(tarballPath)) return tarballPath;
1793
1809
  const rootPath = path10.resolve(dir, "..", "dist", "nexus-release.tar.gz");
@@ -2948,7 +2964,9 @@ var shellCommand2 = new Command13("shell").description("Launch the interactive N
2948
2964
  });
2949
2965
 
2950
2966
  // src/cli.ts
2951
- var cli = new Command14().name("buildwithnexus").description("Auto-scaffold and launch a fully autonomous NEXUS runtime").version("0.5.6");
2967
+ var __dirname = dirname2(fileURLToPath4(import.meta.url));
2968
+ var packageJson = JSON.parse(readFileSync2(join2(__dirname, "..", "package.json"), "utf-8"));
2969
+ var cli = new Command14().name("buildwithnexus").description("Auto-scaffold and launch a fully autonomous NEXUS runtime").version(packageJson.version);
2952
2970
  cli.addCommand(initCommand);
2953
2971
  cli.addCommand(startCommand);
2954
2972
  cli.addCommand(stopCommand);
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buildwithnexus",
3
- "version": "0.5.8",
3
+ "version": "0.5.10",
4
4
  "description": "Launch an autonomous AI runtime with triple-nested VM isolation in one command",
5
5
  "type": "module",
6
6
  "bin": {