(event: string, data: Record<string, unknown>)
| 586 | const context = yield* Effect.context<never>(); |
| 587 | const debugEnabled = config.debug ?? readDebugDefault(); |
| 588 | const debugLog = (event: string, data: Record<string, unknown>) => { |
| 589 | if (!debugEnabled) return; |
| 590 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: debug logging must tolerate non-serializable SDK capability snapshots |
| 591 | try { |
| 592 | console.error(`[executor:mcp] ${event} ${JSON.stringify(data)}`); |
| 593 | } catch { |
| 594 | console.error(`[executor:mcp] ${event}`, data); |
| 595 | } |
| 596 | }; |
| 597 | const elicitationMode = |
| 598 | config.elicitationMode ?? |
| 599 | ({ |
no test coverage detected