(event: string, data: Record<string, unknown>)
| 1101 | const context = yield* Effect.context<never>(); |
| 1102 | const debugEnabled = config.debug ?? readDebugDefault(); |
| 1103 | const debugLog = (event: string, data: Record<string, unknown>) => { |
| 1104 | if (!debugEnabled) return; |
| 1105 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: debug logging must tolerate non-serializable SDK capability snapshots |
| 1106 | try { |
| 1107 | console.error(`[executor:mcp] ${event} ${JSON.stringify(data)}`); |
| 1108 | } catch { |
| 1109 | console.error(`[executor:mcp] ${event}`, data); |
| 1110 | } |
| 1111 | }; |
| 1112 | const elicitationMode = |
| 1113 | config.elicitationMode ?? |
| 1114 | ({ |
no test coverage detected