(event: string, data: Record<string, unknown>)
| 678 | const context = yield* Effect.context<never>(); |
| 679 | const debugEnabled = config.debug ?? readDebugDefault(); |
| 680 | const debugLog = (event: string, data: Record<string, unknown>) => { |
| 681 | if (!debugEnabled) return; |
| 682 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: debug logging must tolerate non-serializable SDK capability snapshots |
| 683 | try { |
| 684 | console.error(`[executor:mcp] ${event} ${JSON.stringify(data)}`); |
| 685 | } catch { |
| 686 | console.error(`[executor:mcp] ${event}`, data); |
| 687 | } |
| 688 | }; |
| 689 | const elicitationMode = |
| 690 | config.elicitationMode ?? |
| 691 | ({ |
no test coverage detected