bridge-agent 0.10.8 → 0.12.7

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.
@@ -22478,23 +22478,23 @@ async function getRolePrompt(ctx, role) {
22478
22478
  );
22479
22479
  const latencyMs = Date.now() - start;
22480
22480
  const bytes = res.content.length;
22481
- console.log("[mcp] mcp.bridge_get_role_prompt", { role, wsId: ctx.workspaceId, latency_ms: latencyMs, bytes });
22481
+ console.error("[mcp] mcp.bridge_get_role_prompt", { role, wsId: ctx.workspaceId, latency_ms: latencyMs, bytes });
22482
22482
  let content = res.content;
22483
22483
  if (content.includes("{{PANEL_ID}}")) {
22484
22484
  content = content.replaceAll("{{PANEL_ID}}", ctx.agentId ?? "unknown");
22485
- console.log("[mcp] prompts.runtime_var.substituted", { role, var: "PANEL_ID", resolved: true });
22485
+ console.error("[mcp] prompts.runtime_var.substituted", { role, var: "PANEL_ID", resolved: true });
22486
22486
  }
22487
22487
  if (content.includes("{{WORKSPACE_ID}}")) {
22488
22488
  content = content.replaceAll("{{WORKSPACE_ID}}", ctx.workspaceId);
22489
- console.log("[mcp] prompts.runtime_var.substituted", { role, var: "WORKSPACE_ID", resolved: true });
22489
+ console.error("[mcp] prompts.runtime_var.substituted", { role, var: "WORKSPACE_ID", resolved: true });
22490
22490
  }
22491
22491
  if (content.includes("{{PROJECT_ID}}")) {
22492
22492
  content = content.replaceAll("{{PROJECT_ID}}", ctx.projectId);
22493
- console.log("[mcp] prompts.runtime_var.substituted", { role, var: "PROJECT_ID", resolved: true });
22493
+ console.error("[mcp] prompts.runtime_var.substituted", { role, var: "PROJECT_ID", resolved: true });
22494
22494
  }
22495
22495
  if (content.includes("{{GROUP_ID}}")) {
22496
22496
  content = content.replaceAll("{{GROUP_ID}}", "none");
22497
- console.log("[mcp] prompts.runtime_var.substituted", { role, var: "GROUP_ID", resolved: true });
22497
+ console.error("[mcp] prompts.runtime_var.substituted", { role, var: "GROUP_ID", resolved: true });
22498
22498
  }
22499
22499
  return { ...res, content };
22500
22500
  }
@@ -23251,8 +23251,8 @@ function startHttpServer() {
23251
23251
  }
23252
23252
  });
23253
23253
  httpServer.listen(port, () => {
23254
- console.log(`[bridge-mcp] HTTP MCP server listening on :${port}`);
23255
- console.log(`[bridge-mcp] Bridge API: ${bridgeServerUrl}`);
23254
+ console.error(`[bridge-mcp] HTTP MCP server listening on :${port}`);
23255
+ console.error(`[bridge-mcp] Bridge API: ${bridgeServerUrl}`);
23256
23256
  });
23257
23257
  }
23258
23258
  async function startStdioServer() {