bloby-bot 0.22.12 → 0.22.14
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/bin/cli.js +23 -16
- package/package.json +2 -2
package/bin/cli.js
CHANGED
|
@@ -1518,10 +1518,15 @@ async function update() {
|
|
|
1518
1518
|
}
|
|
1519
1519
|
|
|
1520
1520
|
if (daemonWasRunning) {
|
|
1521
|
-
if (updateResult && updateResult.
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1521
|
+
if (updateResult && updateResult.healthOk) {
|
|
1522
|
+
console.log(` ${c.blue}✔${c.reset} Daemon restarted with new version.`);
|
|
1523
|
+
if (updateResult.tunnelUrl) {
|
|
1524
|
+
console.log(` ${c.dim}Tunnel:${c.reset} ${c.blue}${link(updateResult.tunnelUrl)}${c.reset}`);
|
|
1525
|
+
}
|
|
1526
|
+
if (updateResult.relayUrl) {
|
|
1527
|
+
console.log(` ${c.dim}URL:${c.reset} ${c.pink}${link(updateResult.relayUrl)}${c.reset}`);
|
|
1528
|
+
}
|
|
1529
|
+
console.log('');
|
|
1525
1530
|
} else {
|
|
1526
1531
|
console.log(` ${c.yellow}⚠${c.reset} Daemon may still be starting. Check ${c.pink}bloby daemon status${c.reset}\n`);
|
|
1527
1532
|
}
|
|
@@ -1646,13 +1651,14 @@ async function daemon(sub) {
|
|
|
1646
1651
|
const restartResult = await waitForDaemonHealth(restartStepper, restartConfig, restartHasTunnel);
|
|
1647
1652
|
restartStepper.finish();
|
|
1648
1653
|
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
finalMessage(restartResult.tunnelUrl, restartResult.relayUrl);
|
|
1653
|
-
} else {
|
|
1654
|
-
console.log(`\n ${c.blue}✔${c.reset} Bloby daemon restarted.\n`);
|
|
1654
|
+
console.log(`\n ${c.blue}✔${c.reset} Bloby daemon restarted.\n`);
|
|
1655
|
+
if (restartResult.tunnelUrl) {
|
|
1656
|
+
console.log(` ${c.dim}Tunnel:${c.reset} ${c.blue}${link(restartResult.tunnelUrl)}${c.reset}`);
|
|
1655
1657
|
}
|
|
1658
|
+
if (restartResult.relayUrl) {
|
|
1659
|
+
console.log(` ${c.dim}URL:${c.reset} ${c.pink}${link(restartResult.relayUrl)}${c.reset}`);
|
|
1660
|
+
}
|
|
1661
|
+
if (restartResult.tunnelUrl || restartResult.relayUrl) console.log('');
|
|
1656
1662
|
break;
|
|
1657
1663
|
}
|
|
1658
1664
|
|
|
@@ -1784,13 +1790,14 @@ async function daemon(sub) {
|
|
|
1784
1790
|
const sysRestartResult = await waitForDaemonHealth(sysRestartStepper, sysRestartConfig, sysRestartHasTunnel);
|
|
1785
1791
|
sysRestartStepper.finish();
|
|
1786
1792
|
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
console.log(
|
|
1793
|
+
console.log(`\n ${c.blue}✔${c.reset} Bloby daemon restarted.\n`);
|
|
1794
|
+
if (sysRestartResult.tunnelUrl) {
|
|
1795
|
+
console.log(` ${c.dim}Tunnel:${c.reset} ${c.blue}${link(sysRestartResult.tunnelUrl)}${c.reset}`);
|
|
1796
|
+
}
|
|
1797
|
+
if (sysRestartResult.relayUrl) {
|
|
1798
|
+
console.log(` ${c.dim}URL:${c.reset} ${c.pink}${link(sysRestartResult.relayUrl)}${c.reset}`);
|
|
1793
1799
|
}
|
|
1800
|
+
if (sysRestartResult.tunnelUrl || sysRestartResult.relayUrl) console.log('');
|
|
1794
1801
|
break;
|
|
1795
1802
|
}
|
|
1796
1803
|
|