(event: string, data: Record<string, unknown>)
| 1049 | const context = yield* Effect.context<never>(); |
| 1050 | const debugEnabled = config.debug ?? readDebugDefault(); |
| 1051 | const debugLog = (event: string, data: Record<string, unknown>) => { |
| 1052 | if (!debugEnabled) return; |
| 1053 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: debug logging must tolerate non-serializable SDK capability snapshots |
| 1054 | try { |
| 1055 | console.error(`[executor:mcp] ${event} ${JSON.stringify(data)}`); |
| 1056 | } catch { |
| 1057 | console.error(`[executor:mcp] ${event}`, data); |
| 1058 | } |
| 1059 | }; |
| 1060 | const elicitationMode = |
| 1061 | config.elicitationMode ?? |
| 1062 | ({ |
no test coverage detected