{"record":{"id":"58e3ab39d88bfc32","repo":"ruvnet/ruflo","slug":"pluginmanager-failed-to-load-manifest-creating","errorCode":null,"errorMessage":"[PluginManager] Failed to load manifest, creating new one","messagePattern":"\\[PluginManager\\] Failed to load manifest, creating new one","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/cli/src/plugins/manager.ts","lineNumber":119,"sourceCode":"\n    // Load or create manifest\n    this.manifest = await this.loadManifest();\n  }\n\n  private async ensureDirectory(dir: string): Promise<void> {\n    if (!fs.existsSync(dir)) {\n      fs.mkdirSync(dir, { recursive: true });\n    }\n  }\n\n  private async loadManifest(): Promise<InstalledPluginsManifest> {\n    try {\n      if (fs.existsSync(this.config.manifestPath)) {\n        const content = fs.readFileSync(this.config.manifestPath, 'utf-8');\n        return JSON.parse(content) as InstalledPluginsManifest;\n      }\n    } catch (error) {\n      console.warn('[PluginManager] Failed to load manifest, creating new one');\n    }\n\n    return {\n      version: '1.0.0',\n      lastUpdated: new Date().toISOString(),\n      plugins: {},\n    };\n  }\n\n  private async saveManifest(): Promise<void> {\n    if (!this.manifest) return;\n\n    this.manifest.lastUpdated = new Date().toISOString();\n\n    await this.ensureDirectory(path.dirname(this.config.manifestPath));\n    fs.writeFileSync(\n      this.config.manifestPath,\n      JSON.stringify(this.manifest, null, 2),","sourceCodeStart":101,"sourceCodeEnd":137,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/@claude-flow/cli/src/plugins/manager.ts#L101-L137","documentation":"Log warning in loadManifest: reading or JSON-parsing the installed-plugins manifest at config.manifestPath failed (corrupt or unreadable file); the manager recovers by creating a fresh empty manifest.","triggerScenarios":"Thrown at v3/@claude-flow/cli/src/plugins/manager.ts:119 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Delete or repair the corrupt plugin manifest file so it can be parsed, or let the manager recreate it (already done); re-install plugins afterward since entries may be lost."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa13ee4ad60ac2090b1480656eb233521790d640","analyzedAt":"2026-08-18T21:34:22.708Z","contentChangedAt":"2026-08-18T21:34:22.708Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}