thinkpool-pair 0.7.36 → 0.7.37
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 +11 -1
- package/package.json +1 -1
package/bridge.mjs
CHANGED
|
@@ -151,7 +151,9 @@ if (argv[0] === 'install-service' || argv[0] === 'uninstall-service') {
|
|
|
151
151
|
// shell export can't reach a serviced bridge — provider.json is its own source
|
|
152
152
|
// of truth. Idempotent; a no-op for the default Anthropic provider. See provider.mjs.
|
|
153
153
|
const { applyProviderEnv } = await import('./provider.mjs')
|
|
154
|
-
|
|
154
|
+
// Captured so the room announce can report the active LLM provider (anthropic,
|
|
155
|
+
// or a custom Anthropic-compatible endpoint) to the web welcome banner.
|
|
156
|
+
const PROVIDER_INFO = applyProviderEnv()
|
|
155
157
|
|
|
156
158
|
if (argv[0] === 'login') { const { runLogin } = await import('./account.mjs'); await runLogin(SUPABASE_URL, SUPABASE_ANON, WEB_BASE) }
|
|
157
159
|
if (argv[0] === 'bind') { const { runBind } = await import('./account.mjs'); runBind(argv[1], argv[2]) }
|
|
@@ -415,6 +417,14 @@ const announce = () =>
|
|
|
415
417
|
// cwd + version: the host's working dir + thinkpool-pair version, shown in
|
|
416
418
|
// the room's welcome banner. Re-sent per announce so late joiners get them.
|
|
417
419
|
cwd, version: VERSION,
|
|
420
|
+
// provider: the LLM endpoint this bridge drives Claude Code through —
|
|
421
|
+
// 'anthropic' (the default, the host's regular Claude login) or 'custom'
|
|
422
|
+
// (any Anthropic-compatible base url: GLM/Z.ai, OpenRouter, a proxy). Shown
|
|
423
|
+
// in the room banner so both drivers see whose model they're on.
|
|
424
|
+
// providerBaseUrl rides along only for custom so the banner can show the
|
|
425
|
+
// host (e.g. openrouter.ai). Older web clients ignore unknown fields.
|
|
426
|
+
provider: PROVIDER_INFO.provider,
|
|
427
|
+
providerBaseUrl: PROVIDER_INFO.baseUrl || undefined,
|
|
418
428
|
// pendingUpdate: a newer thinkpool-pair is out — drives the room's "update ready"
|
|
419
429
|
// chip; re-sent per announce so reloads/late-joiners see it (Slice 3).
|
|
420
430
|
pendingUpdate,
|