6 lines
589 B
JavaScript
6 lines
589 B
JavaScript
/** Optional post-local-mode transport boundary. It is disabled unless the
|
|
* user explicitly enables it; no inference or memory leaves the machine by
|
|
* default. The actual Holepunch transport is intentionally isolated here. */
|
|
export function p2pStatus() { return { enabled: process.env.JARVIS_P2P_ENABLE === '1', inference: false, memorySync: false, reason: process.env.JARVIS_P2P_ENABLE === '1' ? 'transport adapter not configured' : 'disabled by default' }; }
|
|
export async function syncMemory() { throw new Error('optional P2P memory sync is disabled until explicitly configured'); }
|