(error: unknown)
| 91 | } |
| 92 | |
| 93 | function fromStoreError(error: unknown): never { |
| 94 | if (error instanceof StoreError) { |
| 95 | throw new RootSelectionError(error.message, error.diagnostic.code, { |
| 96 | ...(error.diagnostic.target ? { target: error.diagnostic.target } : {}), |
| 97 | ...(error.diagnostic.fix ? { fix: error.diagnostic.fix } : {}), |
| 98 | }); |
| 99 | } |
| 100 | |
| 101 | throw error; |
| 102 | } |
| 103 | |
| 104 | function doctorFix(id: string): string { |
| 105 | return `Run openspec store doctor ${id} to inspect it.`; |
no outgoing calls
no test coverage detected