LearnNewsExamplesServices
Frontmatter
id7538
titleConvert DatabaseLifecycleService to a Neo.mjs Class
stateClosed
labels
enhancementai
assigneestobiu
createdAtOct 18, 2025, 1:28 PM
updatedAtOct 18, 2025, 1:38 PM
githubUrlhttps://github.com/neomjs/neo/issues/7538
authortobiu
commentsCount0
parentIssue7536
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 18, 2025, 1:38 PM

Convert DatabaseLifecycleService to a Neo.mjs Class

Closed v11.0.0 enhancementai
tobiu
tobiu commented on Oct 18, 2025, 1:28 PM

This ticket covers refactoring ai/mcp/server/memory-core/services/databaseLifecycleService.mjs into a singleton class that extends Neo.core.Base. This service is responsible for managing the lifecycle of the ChromaDB process (starting, stopping, and checking its status).

Acceptance Criteria

  1. The databaseLifecycleService.mjs module is refactored into a DatabaseLifecycleService class.
  2. The DatabaseLifecycleService class extends Neo.core.Base and is configured as a singleton.
  3. State variables (e.g., chromaProcess) are moved into the Neo config system (e.g., chromaProcess_).
  4. Existing functions (isDbRunning, start_database, stop_database, get_database_status) are converted into class methods.
  5. The ai/mcp/server/memory-core/services/toolService.mjs is updated to import the DatabaseLifecycleService singleton.
  6. Any services that depend on databaseLifecycleService are updated to use the new singleton instance.
  7. The neo-memory-core__healthcheck tool and other related tools continue to function correctly after the refactoring.
tobiu assigned to @tobiu on Oct 18, 2025, 1:28 PM
tobiu added the enhancement label on Oct 18, 2025, 1:28 PM
tobiu added parent issue #7536 on Oct 18, 2025, 1:28 PM
tobiu added the ai label on Oct 18, 2025, 1:28 PM
tobiu referenced in commit 48a0edd - "Convert DatabaseLifecycleService to a Neo.mjs Class #7538" on Oct 18, 2025, 1:38 PM
tobiu closed this issue on Oct 18, 2025, 1:38 PM