thinkpool-pair 0.7.74 → 0.7.75
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/account.mjs +5 -1
- package/package.json +1 -1
package/account.mjs
CHANGED
|
@@ -298,7 +298,11 @@ export async function runAccount(SUPABASE_URL, SUPABASE_ANON) {
|
|
|
298
298
|
// → dashboard reads "no bridge" while sessions run; 2026-06-17/-22/-24). The 15s
|
|
299
299
|
// tick + token-refresh callers are unaffected (their interval exceeds the window).
|
|
300
300
|
const trackPresence = makeThrottledTrack(acct, { minMs: 5000 })
|
|
301
|
-
|
|
301
|
+
// `service` lets the dashboard show whether this bridge is the durable installed
|
|
302
|
+
// service (always-on, survives reboot) vs a foreground `npx` run that dies with its
|
|
303
|
+
// terminal. THINKPOOL_PAIR_AUTOUPDATE=1 is set ONLY by the install-service plist/unit
|
|
304
|
+
// (service.mjs), so it's the reliable proxy for "running as the managed service".
|
|
305
|
+
const pushPresence = () => trackPresence({ name: machine, version: VERSION, rooms: [...children.keys()], service: process.env.THINKPOOL_PAIR_AUTOUPDATE === '1', ts: Date.now() })
|
|
302
306
|
// Re-track on EVERY (re)subscribe, not just the first: a realtime reconnect
|
|
303
307
|
// (network blip, or a token swap mid-flight) rejoins the channel and must
|
|
304
308
|
// re-announce, or the dashboard would read "no bridge" until the next restart.
|