(event: string, data: Record<string, unknown>)
| 1115 | const context = yield* Effect.context<never>(); |
| 1116 | const debugEnabled = config.debug ?? readDebugDefault(); |
| 1117 | const debugLog = (event: string, data: Record<string, unknown>) => { |
| 1118 | if (!debugEnabled) return; |
| 1119 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: debug logging must tolerate non-serializable SDK capability snapshots |
| 1120 | try { |
| 1121 | console.error(`[executor:mcp] ${event} ${JSON.stringify(data)}`); |
| 1122 | } catch { |
| 1123 | console.error(`[executor:mcp] ${event}`, data); |
| 1124 | } |
| 1125 | }; |
| 1126 | const elicitationMode = |
| 1127 | config.elicitationMode ?? |
| 1128 | ({ |
no test coverage detected