thinkpool-pair 0.7.202 → 0.7.203
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 +4 -1
- package/package.json +1 -1
package/bridge.mjs
CHANGED
|
@@ -2239,7 +2239,10 @@ function openStructured({ id, runtime = 'claude', model, effort, resume, log, co
|
|
|
2239
2239
|
{ const onBuiltin = !entry.provider || entry.provider === 'anthropic'
|
|
2240
2240
|
const m = onBuiltin ? (evt.model || evt.ctx?.model) : null
|
|
2241
2241
|
if (m && m !== entry.model) { entry.model = m; announce() }
|
|
2242
|
-
|
|
2242
|
+
// A custom Anthropic-compatible endpoint may expose its own catalog through the
|
|
2243
|
+
// same SDK method. Never publish that as the ROOM's Claude catalog: its models
|
|
2244
|
+
// already render in the provider group and otherwise leak under ANTHROPIC.
|
|
2245
|
+
if (onBuiltin && evt.kind === 'models' && Array.isArray(evt.models) && evt.models.length) { roomModels = evt.models; announce() } }
|
|
2243
2246
|
// Cache the last usage/ctx meter on the entry (persisted + replayed — see
|
|
2244
2247
|
// openStructured). Chrome events bypass pushLog/persist in emitTail below, so
|
|
2245
2248
|
// usage needs an explicit persist() here to survive a bridge restart.
|