buildwithnexus 0.3.2 → 0.3.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/bin.js CHANGED
@@ -671,7 +671,7 @@ function addSshConfig(port) {
671
671
  fs4.writeFileSync(sshConfigPath, block, { mode: 384 });
672
672
  }
673
673
  }
674
- async function waitForSsh(port, timeoutMs = 3e5) {
674
+ async function waitForSsh(port, timeoutMs = 6e5) {
675
675
  const start = Date.now();
676
676
  while (Date.now() - start < timeoutMs) {
677
677
  try {
@@ -1045,7 +1045,7 @@ async function checkHealth(port, vmRunning) {
1045
1045
  }
1046
1046
  return status;
1047
1047
  }
1048
- async function waitForServer(port, timeoutMs = 9e5) {
1048
+ async function waitForServer(port, timeoutMs = 36e5) {
1049
1049
  const start = Date.now();
1050
1050
  let lastLog = 0;
1051
1051
  while (Date.now() - start < timeoutMs) {
@@ -1069,7 +1069,7 @@ async function waitForServer(port, timeoutMs = 9e5) {
1069
1069
  }
1070
1070
  return false;
1071
1071
  }
1072
- async function waitForCloudInit(port, timeoutMs = 18e5) {
1072
+ async function waitForCloudInit(port, timeoutMs = 72e5) {
1073
1073
  const start = Date.now();
1074
1074
  let lastLog = 0;
1075
1075
  while (Date.now() - start < timeoutMs) {
@@ -1305,6 +1305,8 @@ var phases = [
1305
1305
  name: "VM Provisioning",
1306
1306
  run: async (ctx, spinner) => {
1307
1307
  const { config, keys, tarballPath } = ctx;
1308
+ const pinPath = path6.join(process.env.HOME || "~", ".buildwithnexus", "ssh", "vm_host_key.pin");
1309
+ if (fs6.existsSync(pinPath)) fs6.unlinkSync(pinPath);
1308
1310
  spinner.text = "Waiting for SSH...";
1309
1311
  spinner.start();
1310
1312
  const sshReady = await waitForSsh(config.sshPort);
@@ -1337,7 +1339,7 @@ var phases = [
1337
1339
  spinner.start();
1338
1340
  const cloudInitDone = await waitForCloudInit(config.sshPort);
1339
1341
  if (!cloudInitDone) {
1340
- fail(spinner, "Cloud-init timed out after 30 minutes");
1342
+ fail(spinner, "Cloud-init timed out after 2 hours");
1341
1343
  log.warn("Check progress: buildwithnexus ssh \u2192 tail -f /var/log/cloud-init-output.log");
1342
1344
  throw new Error("Cloud-init timed out");
1343
1345
  }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "buildwithnexus",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "Launch an autonomous AI runtime with triple-nested VM isolation in one command",
5
5
  "type": "module",
6
6
  "bin": {