(message: string)
| 81 | ] |
| 82 | |
| 83 | function toError(message: string) { |
| 84 | return { |
| 85 | content: [{ type: 'text', text: message }], |
| 86 | isError: true, |
| 87 | } as const |
| 88 | } |
| 89 | |
| 90 | const nonEmptyStringSchema = z.string().refine(value => value.trim().length > 0, { |
| 91 | message: 'expected a non-empty string', |
no outgoing calls
no test coverage detected