cross-agent-teams-mcp 0.5.16 → 0.5.17

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/cli.js CHANGED
@@ -742,8 +742,7 @@ var RegisterAgentService = class {
742
742
  } catch {
743
743
  }
744
744
  }
745
- const log = this.deps.log ?? ((line) => {
746
- console.debug(line);
745
+ const log = this.deps.log ?? (() => {
747
746
  });
748
747
  try {
749
748
  log(`register_agent takeover: old=${bound} new=${input.connection_id} device=${resolvedDevice.ok} team=${team} name=${input.name} closed=${closed}`);
@@ -3639,8 +3638,7 @@ function registerBusinessTools(server, db, getCallerAgentId, fanout, onRegisterS
3639
3638
  // src/mcp/transport.ts
3640
3639
  function mountMcp(app, db, fanout, channelWakeFanout, opts = {}) {
3641
3640
  const sessions = /* @__PURE__ */ new Map();
3642
- const log = opts.log ?? ((line) => {
3643
- console.debug(line);
3641
+ const log = opts.log ?? (() => {
3644
3642
  });
3645
3643
  const context = opts.context ?? { localDevice: "local" };
3646
3644
  function closeSessionByConnectionId(connectionId) {
@@ -4135,6 +4133,7 @@ async function buildServer(opts) {
4135
4133
  const orphanGcMaxSessions = opts.orphanGcMaxSessions ?? parsePositiveInt(process.env.ORPHAN_GC_MAX_SESSIONS, DEFAULT_ORPHAN_GC_MAX_SESSIONS);
4136
4134
  const mcp = mountMcp(app, db, fanout, channelWakeFanout, {
4137
4135
  context,
4136
+ log: opts.mcpLog,
4138
4137
  orphanSessionLimit: orphanGcMaxSessions
4139
4138
  });
4140
4139
  app.get("/health", async () => ({