buildwithnexus 0.5.9 → 0.5.11

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