{"record":{"id":"bb71b04f83fbb7a9","repo":"ruvnet/ruflo","slug":"plugin-not-initialized-bb71b0","errorCode":null,"errorMessage":"Plugin not initialized","messagePattern":"Plugin not initialized","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/plugins/code-intelligence/src/index.ts","lineNumber":143,"sourceCode":"  async shutdown(): Promise<void> {\n    this.state = 'shutdown';\n    this.gnnBridge = null;\n    this.mincutBridge = null;\n  }\n\n  /**\n   * Get MCP tools provided by this plugin\n   */\n  getMCPTools() {\n    return codeIntelligenceTools;\n  }\n\n  /**\n   * Get tool context for execution\n   */\n  getToolContext() {\n    if (!this.gnnBridge || !this.mincutBridge) {\n      throw new Error('Plugin not initialized');\n    }\n\n    const store = new Map<string, unknown>();\n\n    const blockedPatterns = this.config.security.blockedPatterns.map(\n      p => new RegExp(p)\n    );\n\n    return {\n      get: <T>(key: string) => store.get(key) as T | undefined,\n      set: <T>(key: string, value: T) => { store.set(key, value); },\n      bridges: {\n        gnn: this.gnnBridge,\n        mincut: this.mincutBridge,\n      },\n      config: {\n        allowedRoots: this.config.security.allowedRoots,\n        blockedPatterns,","sourceCodeStart":125,"sourceCodeEnd":161,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/code-intelligence/src/index.ts#L125-L161","documentation":"CodeIntelligencePlugin.getToolContext() found the GNN or MinCut bridge absent — initialize() has not run (or shutdown() cleared them). Tools cannot execute without their bridges, so this sentinel rejects tool-context creation on an uninitialized plugin.","triggerScenarios":"Thrown at v3/plugins/code-intelligence/src/index.ts:143 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the module/bridge/plugin initialize() method has been called and awaited before invoking this operation.","Guard against calls made during startup: await the initialization promise or check the initialized flag and fail fast with a clear setup hint."],"exampleFix":null,"handlingStrategy":"type-guard","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"}