diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-08-20 22:21:24 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-08-20 22:21:24 +0200 |
| commit | ae52b69b14a6997d01aad66f49fbea7b5ca2dfe6 (patch) | |
| tree | 26f850a88565846a139868a4b85c715734751a41 /packages/meshbay-client/src/preload.js | |
| parent | c8af746c846b5dbc792f7e4f0d806647d513cc5c (diff) | |
| parent | 2e9490ca27047ae03e495d397abbe1aec1b2273a (diff) | |
| download | meshbay-ae52b69b14a6997d01aad66f49fbea7b5ca2dfe6.tar.gz | |
Merge feat/unified-group-management: wizard, public groups, activity sidebar
Diffstat (limited to 'packages/meshbay-client/src/preload.js')
| -rw-r--r-- | packages/meshbay-client/src/preload.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/meshbay-client/src/preload.js b/packages/meshbay-client/src/preload.js index e3af68f..04dfe44 100644 --- a/packages/meshbay-client/src/preload.js +++ b/packages/meshbay-client/src/preload.js @@ -80,6 +80,16 @@ contextBridge.exposeInMainWorld('meshbay', { choose: () => ipcRenderer.invoke('root:choose'), }, + // The local node, if one is running. The renderer never sees the session + // token — it names an operation and the main process executes it, the same + // pattern as hub:fetch. + node: { + detect: () => ipcRenderer.invoke('node:detect'), + call: (method, path, body) => ipcRenderer.invoke('node:call', method, path, body), + pairingCode: () => ipcRenderer.invoke('node:pairing-code'), + setPairingCode: (code) => ipcRenderer.invoke('node:set-pairing-code', code), + }, + // A sink that writes to disk as chunks arrive, never a buffer handed over at // the end. `auto` uses the remembered folder without a dialog, which is what // "save automatically" means; without one, or when the person asked to be |