(catalog: SpecCatalogEntry[])
| 263 | } |
| 264 | |
| 265 | async saveSpecCatalog(catalog: SpecCatalogEntry[]): Promise<void> { |
| 266 | if (!this.catalogPath) { |
| 267 | throw new Error("FileSystemSpecService not initialized"); |
| 268 | } |
| 269 | const catalogPath = path.join(this.catalogPath, "catalog.json"); |
| 270 | await fs.writeFile(catalogPath, JSON.stringify(catalog, null, 2)); |
| 271 | } |
| 272 | |
| 273 | async loadSpecCatalog(): Promise<SpecCatalogEntry[]> { |
| 274 | try { |