(event: string, data: Record<string, unknown>)
| 1134 | const context = yield* Effect.context<never>(); |
| 1135 | const debugEnabled = config.debug ?? readDebugDefault(); |
| 1136 | const debugLog = (event: string, data: Record<string, unknown>) => { |
| 1137 | if (!debugEnabled) return; |
| 1138 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: debug logging must tolerate non-serializable SDK capability snapshots |
| 1139 | try { |
| 1140 | console.error(`[executor:mcp] ${event} ${JSON.stringify(data)}`); |
| 1141 | } catch { |
| 1142 | console.error(`[executor:mcp] ${event}`, data); |
| 1143 | } |
| 1144 | }; |
| 1145 | const elicitationMode = |
| 1146 | config.elicitationMode ?? |
| 1147 | ({ |
no test coverage detected