LearnNewsExamplesServices
Frontmatter
id7550
titleConvert databaseLifecycleService to DatabaseLifecycleService Neo.mjs Class
stateClosed
labels
enhancementai
assigneestobiu
createdAtOct 19, 2025, 11:17 PM
updatedAtOct 19, 2025, 11:18 PM
githubUrlhttps://github.com/neomjs/neo/issues/7550
authortobiu
commentsCount0
parentIssue7536
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 19, 2025, 11:18 PM

Convert databaseLifecycleService to DatabaseLifecycleService Neo.mjs Class

Closed v11.0.0 enhancementai
tobiu
tobiu commented on Oct 19, 2025, 11:17 PM

This ticket covers refactoring ai/mcp/server/knowledge-base/services/databaseLifecycleService.mjs into a singleton class that extends Neo.core.Base. The file was renamed to DatabaseLifecycleService.mjs to follow project conventions. This service is responsible for starting, stopping, and checking the status of the ChromaDB process for the knowledge base.

Acceptance Criteria

  1. The file ai/mcp/server/knowledge-base/services/databaseLifecycleService.mjs is renamed to DatabaseLifecycleService.mjs.
  2. The content is replaced with a DatabaseLifecycleService class that extends Neo.core.Base and is configured as a singleton.
  3. Existing functions (start_database, stop_database, get_database_status) are converted into class methods.
  4. A new ChromaManager.mjs service is created and used by the DatabaseLifecycleService to handle DB connections, mirroring the memory-core architecture.
  5. The ai/mcp/server/knowledge-base/services/toolService.mjs is updated to import the DatabaseLifecycleService class and map its methods.
  6. All related tools (start_database, stop_database) continue to function correctly after the refactoring.
tobiu assigned to @tobiu on Oct 19, 2025, 11:17 PM
tobiu added the enhancement label on Oct 19, 2025, 11:17 PM
tobiu added the ai label on Oct 19, 2025, 11:17 PM
tobiu added parent issue #7536 on Oct 19, 2025, 11:17 PM
tobiu referenced in commit 6a9b37e - "Convert databaseLifecycleService to DatabaseLifecycleService Neo.mjs Class #7550" on Oct 19, 2025, 11:18 PM
tobiu closed this issue on Oct 19, 2025, 11:18 PM