(text: string)
| 117 | } |
| 118 | |
| 119 | function parseConfig(text: string): Record<string, any> { |
| 120 | if (!text.trim()) return {}; |
| 121 | const errors: any[] = []; |
| 122 | const result = parseJsonc(text, errors, { allowTrailingComma: true }); |
| 123 | if (result == null || typeof result !== 'object' || Array.isArray(result)) { |
| 124 | return {}; |
| 125 | } |
| 126 | return result as Record<string, any>; |
| 127 | } |
| 128 | |
| 129 | function getOpencodeServerEntry(): { |
| 130 | type: string; |
no outgoing calls
no test coverage detected