(value: unknown)
| 62 | * value is not a usable object. |
| 63 | */ |
| 64 | export function asOpencodeEntries(value: unknown): Record<string, unknown> | null { |
| 65 | if (value === null || typeof value !== "object" || Array.isArray(value)) { |
| 66 | return null; |
| 67 | } |
| 68 | return value as Record<string, unknown>; |
| 69 | } |
| 70 | |
| 71 | /** Matches a string whose entire value is an OpenCode `{file:...}` reference. */ |
| 72 | const OPENCODE_FILE_TEMPLATE_PATTERN = /^\s*\{file:(.+?)\}\s*$/; |
no outgoing calls
no test coverage detected
searching dependent graphs…