| 12 | import { getConfig } from '../config.js' |
| 13 | |
| 14 | export interface ApiEnvelope<T = unknown> { |
| 15 | success: boolean |
| 16 | code?: string | null |
| 17 | message?: string | null |
| 18 | requestId?: string | null |
| 19 | data: T |
| 20 | } |
| 21 | |
| 22 | export class CliApiError extends Error { |
| 23 | readonly kind = 'api' as const |
nothing calls this directly
no outgoing calls
no test coverage detected