@1presence/bridge 0.85.0 → 0.86.0
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/dist/claude.js +6 -1
- package/package.json +1 -1
package/dist/claude.js
CHANGED
|
@@ -543,6 +543,7 @@ export function spawnClaude(params) {
|
|
|
543
543
|
.finally(() => { mcpReconnecting = false; });
|
|
544
544
|
};
|
|
545
545
|
try {
|
|
546
|
+
let lastSurfaceLog = '';
|
|
546
547
|
const q = query({ prompt: input.stream, options });
|
|
547
548
|
for await (const m of q) {
|
|
548
549
|
if (m.isReplay)
|
|
@@ -556,7 +557,11 @@ export function spawnClaude(params) {
|
|
|
556
557
|
if (handleEvent(event))
|
|
557
558
|
onEvent(event);
|
|
558
559
|
const surface = assessRemoteMcpSurface(m);
|
|
559
|
-
|
|
560
|
+
const surfaceLine = `[bridge] mcp surface: ${REMOTE_MCP_SERVER_NAME}=${surface.status}, ${surface.toolCount} tool(s)`;
|
|
561
|
+
if (surfaceLine !== lastSurfaceLog) {
|
|
562
|
+
lastSurfaceLog = surfaceLine;
|
|
563
|
+
process.stderr.write(paint(surface.usable ? SECTION_COLORS.system : SECTION_COLORS.error, surfaceLine) + '\n');
|
|
564
|
+
}
|
|
560
565
|
if (!surface.usable) {
|
|
561
566
|
let detail = '';
|
|
562
567
|
try {
|