buildwithnexus 0.5.4 → 0.5.6
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
|
@@ -20,7 +20,7 @@ __export(banner_exports, {
|
|
|
20
20
|
import chalk from "chalk";
|
|
21
21
|
function showBanner() {
|
|
22
22
|
console.log(BANNER);
|
|
23
|
-
console.log(chalk.dim(" v0.5.
|
|
23
|
+
console.log(chalk.dim(" v0.5.6 \xB7 buildwithnexus.dev\n"));
|
|
24
24
|
}
|
|
25
25
|
function showPhase(phase, total, description) {
|
|
26
26
|
const progress = chalk.cyan(`[${phase}/${total}]`);
|
|
@@ -671,7 +671,7 @@ function addSshConfig(port) {
|
|
|
671
671
|
fs5.writeFileSync(sshConfigPath, block, { mode: 384 });
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
|
-
async function waitForSsh(port, timeoutMs =
|
|
674
|
+
async function waitForSsh(port, timeoutMs = 6e5) {
|
|
675
675
|
const start = Date.now();
|
|
676
676
|
let attempt = 0;
|
|
677
677
|
const backoffMs = (n) => Math.min(3e3 * Math.pow(2, n), 3e4);
|
|
@@ -683,7 +683,7 @@ async function waitForSsh(port, timeoutMs = 3e5) {
|
|
|
683
683
|
port,
|
|
684
684
|
username: "nexus",
|
|
685
685
|
privateKeyPath: SSH_KEY,
|
|
686
|
-
readyTimeout:
|
|
686
|
+
readyTimeout: 1e4,
|
|
687
687
|
hostVerifier: getHostVerifier()
|
|
688
688
|
});
|
|
689
689
|
ssh.dispose();
|
|
@@ -2943,7 +2943,7 @@ var shellCommand2 = new Command13("shell").description("Launch the interactive N
|
|
|
2943
2943
|
});
|
|
2944
2944
|
|
|
2945
2945
|
// src/cli.ts
|
|
2946
|
-
var cli = new Command14().name("buildwithnexus").description("Auto-scaffold and launch a fully autonomous NEXUS runtime").version("0.5.
|
|
2946
|
+
var cli = new Command14().name("buildwithnexus").description("Auto-scaffold and launch a fully autonomous NEXUS runtime").version("0.5.6");
|
|
2947
2947
|
cli.addCommand(initCommand);
|
|
2948
2948
|
cli.addCommand(startCommand);
|
|
2949
2949
|
cli.addCommand(stopCommand);
|
|
Binary file
|
|
@@ -36,10 +36,13 @@ runcmd:
|
|
|
36
36
|
- systemctl enable auditd
|
|
37
37
|
- systemctl start auditd
|
|
38
38
|
|
|
39
|
-
# SSH hardening
|
|
39
|
+
# SSH hardening + ensure service is running
|
|
40
40
|
- sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config
|
|
41
41
|
- sed -i 's/PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config
|
|
42
|
+
- systemctl enable ssh
|
|
42
43
|
- systemctl restart ssh
|
|
44
|
+
- sleep 2
|
|
45
|
+
- systemctl is-active ssh || systemctl start ssh
|
|
43
46
|
|
|
44
47
|
# Docker setup
|
|
45
48
|
- usermod -aG docker nexus
|