buildwithnexus 0.5.9 → 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,9 +764,9 @@ var init_ssh = __esm({
751
764
 
752
765
  // src/cli.ts
753
766
  import { Command as Command14 } from "commander";
754
- import { readFileSync } from "fs";
755
- import { dirname, join } from "path";
756
- import { fileURLToPath as fileURLToPath3 } from "url";
767
+ import { readFileSync as readFileSync2 } from "fs";
768
+ import { dirname as dirname2, join as join2 } from "path";
769
+ import { fileURLToPath as fileURLToPath4 } from "url";
757
770
 
758
771
  // src/commands/init.ts
759
772
  init_banner();
@@ -1244,9 +1257,9 @@ import fs7 from "fs";
1244
1257
  import path7 from "path";
1245
1258
  import os3 from "os";
1246
1259
  import crypto4 from "crypto";
1247
- import { fileURLToPath } from "url";
1260
+ import { fileURLToPath as fileURLToPath2 } from "url";
1248
1261
  function getReleaseTarball() {
1249
- const dir = path7.dirname(fileURLToPath(import.meta.url));
1262
+ const dir = path7.dirname(fileURLToPath2(import.meta.url));
1250
1263
  const tarballPath = path7.join(dir, "nexus-release.tar.gz");
1251
1264
  if (fs7.existsSync(tarballPath)) return tarballPath;
1252
1265
  const rootPath = path7.resolve(dir, "..", "dist", "nexus-release.tar.gz");
@@ -1254,7 +1267,7 @@ function getReleaseTarball() {
1254
1267
  throw new Error("nexus-release.tar.gz not found. Run: npm run bundle");
1255
1268
  }
1256
1269
  function getCloudInitTemplate() {
1257
- const dir = path7.dirname(fileURLToPath(import.meta.url));
1270
+ const dir = path7.dirname(fileURLToPath2(import.meta.url));
1258
1271
  const templatePath = path7.join(dir, "templates", "cloud-init.yaml.ejs");
1259
1272
  if (fs7.existsSync(templatePath)) return fs7.readFileSync(templatePath, "utf-8");
1260
1273
  const srcPath = path7.resolve(dir, "..", "src", "templates", "cloud-init.yaml.ejs");
@@ -1785,12 +1798,12 @@ var logsCommand = new Command6("logs").description("View NEXUS server logs").opt
1785
1798
  import { Command as Command7 } from "commander";
1786
1799
  import path10 from "path";
1787
1800
  import fs9 from "fs";
1788
- import { fileURLToPath as fileURLToPath2 } from "url";
1801
+ import { fileURLToPath as fileURLToPath3 } from "url";
1789
1802
  init_secrets();
1790
1803
  init_qemu();
1791
1804
  init_ssh();
1792
1805
  function getReleaseTarball2() {
1793
- const dir = path10.dirname(fileURLToPath2(import.meta.url));
1806
+ const dir = path10.dirname(fileURLToPath3(import.meta.url));
1794
1807
  const tarballPath = path10.join(dir, "nexus-release.tar.gz");
1795
1808
  if (fs9.existsSync(tarballPath)) return tarballPath;
1796
1809
  const rootPath = path10.resolve(dir, "..", "dist", "nexus-release.tar.gz");
@@ -2951,8 +2964,8 @@ var shellCommand2 = new Command13("shell").description("Launch the interactive N
2951
2964
  });
2952
2965
 
2953
2966
  // src/cli.ts
2954
- var __dirname = dirname(fileURLToPath3(import.meta.url));
2955
- var packageJson = JSON.parse(readFileSync(join(__dirname, "..", "package.json"), "utf-8"));
2967
+ var __dirname = dirname2(fileURLToPath4(import.meta.url));
2968
+ var packageJson = JSON.parse(readFileSync2(join2(__dirname, "..", "package.json"), "utf-8"));
2956
2969
  var cli = new Command14().name("buildwithnexus").description("Auto-scaffold and launch a fully autonomous NEXUS runtime").version(packageJson.version);
2957
2970
  cli.addCommand(initCommand);
2958
2971
  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.10",
4
4
  "description": "Launch an autonomous AI runtime with triple-nested VM isolation in one command",
5
5
  "type": "module",
6
6
  "bin": {