LearnNewsExamplesServices
Frontmatter
id7543
titleConvert memoryService to MemoryService Neo.mjs Class
stateClosed
labels
enhancementai
assigneestobiu
createdAtOct 18, 2025, 3:06 PM
updatedAtOct 18, 2025, 3:19 PM
githubUrlhttps://github.com/neomjs/neo/issues/7543
authortobiu
commentsCount0
parentIssue7536
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 18, 2025, 3:19 PM

Convert memoryService to MemoryService Neo.mjs Class

Closed v11.0.0 enhancementai
tobiu
tobiu commented on Oct 18, 2025, 3:06 PM

This ticket covers refactoring ai/mcp/server/memory-core/services/memoryService.mjs into a singleton class that extends Neo.core.Base. The file will also be renamed to MemoryService.mjs to follow a more consistent naming convention. This service handles adding, listing, and querying agent memories.

Acceptance Criteria

  1. The file ai/mcp/server/memory-core/services/memoryService.mjs is renamed to ai/mcp/server/memory-core/services/MemoryService.mjs.
  2. The memoryService.mjs module is refactored into a MemoryService class.
  3. The MemoryService class extends Neo.core.Base and is configured as a singleton.
  4. Existing functions (addMemory, listMemories, queryMemories) are converted into class methods.
  5. The ai/mcp/server/memory-core/services/toolService.mjs is updated to import the MemoryService singleton and map its methods.
  6. Any other services that depend on memoryService are updated to use the new MemoryService singleton instance.
  7. All related tools (e.g., add_memory, get_session_memories, query_raw_memories) continue to function correctly after the refactoring.
tobiu assigned to @tobiu on Oct 18, 2025, 3:06 PM
tobiu added the enhancement label on Oct 18, 2025, 3:06 PM
tobiu added parent issue #7536 on Oct 18, 2025, 3:06 PM
tobiu added the ai label on Oct 18, 2025, 3:06 PM
tobiu referenced in commit bfbe2db - "Convert memoryService to MemoryService Neo.mjs Class #7543" on Oct 18, 2025, 3:19 PM
tobiu closed this issue on Oct 18, 2025, 3:19 PM