(text: string)
| 106 | } |
| 107 | |
| 108 | function parseConfig(text: string): Record<string, any> { |
| 109 | if (!text.trim()) return {}; |
| 110 | const errors: any[] = []; |
| 111 | const result = parseJsonc(text, errors, { allowTrailingComma: true }); |
| 112 | if (result == null || typeof result !== 'object' || Array.isArray(result)) { |
| 113 | return {}; |
| 114 | } |
| 115 | return result as Record<string, any>; |
| 116 | } |
| 117 | |
| 118 | function getOpencodeServerEntry(): { type: string; command: string[]; enabled: boolean } { |
| 119 | return { |
no outgoing calls
no test coverage detected