(event: string, data: Record<string, unknown>)
| 1566 | const context = yield* Effect.context<never>(); |
| 1567 | const debugEnabled = config.debug ?? readDebugDefault(); |
| 1568 | const debugLog = (event: string, data: Record<string, unknown>) => { |
| 1569 | if (!debugEnabled) return; |
| 1570 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: debug logging must tolerate non-serializable SDK capability snapshots |
| 1571 | try { |
| 1572 | console.error(`[executor:mcp] ${event} ${JSON.stringify(data)}`); |
| 1573 | } catch { |
| 1574 | console.error(`[executor:mcp] ${event}`, data); |
| 1575 | } |
| 1576 | }; |
| 1577 | const elicitationMode = |
| 1578 | config.elicitationMode ?? |
| 1579 | ({ |
no test coverage detected