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