thinkpool-pair 0.6.21 → 0.6.22
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/bridge.mjs +7 -1
- package/package.json +1 -1
package/bridge.mjs
CHANGED
|
@@ -770,7 +770,13 @@ if (process.env.THINKPOOL_PAIR_AUTOUPDATE === '1' && VERSION) {
|
|
|
770
770
|
const a = core(latest), b = core(VERSION)
|
|
771
771
|
let newer = false
|
|
772
772
|
for (let i = 0; i < 3; i++) { if ((a[i] || 0) > (b[i] || 0)) { newer = true; break } if ((a[i] || 0) < (b[i] || 0)) break }
|
|
773
|
-
if (newer) process.stderr.write(
|
|
773
|
+
if (newer) process.stderr.write(
|
|
774
|
+
`\n ◆ thinkpool-pair ${latest} is out (you're on ${VERSION}).\n` +
|
|
775
|
+
` To update: stop this bridge (Ctrl-C), then rerun:\n` +
|
|
776
|
+
` npx thinkpool-pair@latest ${room}\n` +
|
|
777
|
+
` Your session resumes on restart (you'll be asked to continue it).\n` +
|
|
778
|
+
` For hands-off updates with no interruption, install the background\n` +
|
|
779
|
+
` service: npx thinkpool-pair@latest install-service ${room}\n`)
|
|
774
780
|
} catch { /* offline — never block the session */ }
|
|
775
781
|
}, 60000).unref()
|
|
776
782
|
}
|