summaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src/meshbay_hub/static/platform.js
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-08-22 12:29:32 +0200
committerChristophe Besson <cbesson@gmail.com>2026-08-22 12:29:32 +0200
commit6d1ece3156c3ee7ce3fe1c19aabeb45b34d6436a (patch)
tree1a739d995b97e0d7fddb632b62d6f13da75348a7 /packages/meshbay-hub/src/meshbay_hub/static/platform.js
parent79130a9d4eb95db35b1d84f14f9b1b18d18299a7 (diff)
downloadmeshbay-6d1ece3156c3ee7ce3fe1c19aabeb45b34d6436a.tar.gz
feat: node:start auto-provisions config and unlock key
When the wizard calls node:start with {hubUrl, username}, the handler writes a minimal node.toml and a random unlock.key if they don't exist. The daemon then creates the keystore on first start using the unlock file — fully non-interactive. Existing configs are left untouched: if node.toml or unlock.key already exist, provisioning is skipped and the node starts as before. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/platform.js')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/platform.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/platform.js b/packages/meshbay-hub/src/meshbay_hub/static/platform.js
index eeffd49..a8e17bf 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/platform.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/platform.js
@@ -227,9 +227,9 @@ export const node = {
async installed() {
return bridge && bridge.node ? bridge.node.installed() : { installed: false };
},
- async start() {
+ async start(opts) {
if (!bridge || !bridge.node) throw new Error('Node bridge not available');
- return bridge.node.start();
+ return bridge.node.start(opts);
},
async call(method, path, body) {
if (!bridge || !bridge.node) throw new Error('Node bridge not available');