(err: unknown)
| 543 | }; |
| 544 | |
| 545 | const formatBoundaryError = (err: unknown): { name?: string; message: string; stack?: string } => { |
| 546 | // oxlint-disable-next-line executor/no-instanceof-error, executor/no-unknown-error-message -- boundary: SDK Promise rejection supplies unknown JS errors for logging only |
| 547 | if (err instanceof Error) return { name: err.name, message: err.message, stack: err.stack }; |
| 548 | // oxlint-disable-next-line executor/no-unknown-error-message -- boundary: fallback log formatting for unknown SDK Promise rejection values |
| 549 | return { message: String(err) }; |
| 550 | }; |
| 551 | |
| 552 | // --------------------------------------------------------------------------- |
| 553 | // MCP result formatting |
no outgoing calls
no test coverage detected