(result: { content?: unknown; toolResult?: unknown })
| 51 | }; |
| 52 | |
| 53 | const textOf = (result: { content?: unknown; toolResult?: unknown }): string => |
| 54 | ((result.content ?? []) as Array<{ type: string; text?: string }>) |
| 55 | .filter((part) => part.type === "text") |
| 56 | .map((part) => part.text) |
| 57 | .join("\n"); |
| 58 | |
| 59 | const closeQuietly = (connected: Connected): Effect.Effect<void> => |
| 60 | Effect.promise(() => connected.client.close().catch(() => undefined)); |
no outgoing calls
no test coverage detected