(description: string | undefined)
| 61 | * "(read-only)" -> "(read-only). " (closing paren is mid-sentence) |
| 62 | */ |
| 63 | export function buildSourceDescriptionPrefix(description: string | undefined): string { |
| 64 | const trimmed = description?.trim() ?? ""; |
| 65 | if (!trimmed) return ""; |
| 66 | return /[.!?:]$/.test(trimmed) ? `${trimmed} ` : `${trimmed}. `; |
| 67 | } |
| 68 | |
| 69 | /** |
| 70 | * Convert a Zod schema object to simplified parameter list |
no outgoing calls
no test coverage detected