This ticket covers refactoring ai/mcp/server/memory-core/services/sessionService.mjs into a singleton class that extends Neo.core.Base. The file will also be renamed to SessionService.mjs to follow a more consistent naming convention. This service handles summarizing agent sessions.
Acceptance Criteria
- The file
ai/mcp/server/memory-core/services/sessionService.mjs is renamed to ai/mcp/server/memory-core/services/SessionService.mjs.
- The
sessionService.mjs module is refactored into a SessionService class.
- The
SessionService class extends Neo.core.Base and is configured as a singleton.
- Existing functions (
summarizeSessions, SessionSummarizer's methods) are converted into class methods or integrated into the SessionService class.
- The
ai/mcp/server/memory-core/services/toolService.mjs is updated to import the SessionService singleton and map its methods.
- Any other services that depend on
sessionService are updated to use the new SessionService singleton instance.
- All related tools (e.g.,
summarize_sessions) continue to function correctly after the refactoring.
This ticket covers refactoring
ai/mcp/server/memory-core/services/sessionService.mjsinto a singleton class that extendsNeo.core.Base. The file will also be renamed toSessionService.mjsto follow a more consistent naming convention. This service handles summarizing agent sessions.Acceptance Criteria
ai/mcp/server/memory-core/services/sessionService.mjsis renamed toai/mcp/server/memory-core/services/SessionService.mjs.sessionService.mjsmodule is refactored into aSessionServiceclass.SessionServiceclass extendsNeo.core.Baseand is configured as a singleton.summarizeSessions,SessionSummarizer's methods) are converted into class methods or integrated into theSessionServiceclass.ai/mcp/server/memory-core/services/toolService.mjsis updated to import theSessionServicesingleton and map its methods.sessionServiceare updated to use the newSessionServicesingleton instance.summarize_sessions) continue to function correctly after the refactoring.