This ticket covers refactoring ai/mcp/server/memory-core/services/summaryService.mjs into a singleton class that extends Neo.core.Base. The file will also be renamed to SummaryService.mjs to follow a more consistent naming convention. This service handles deleting, listing, and querying session summaries.
Acceptance Criteria
- A new file
ai/mcp/server/memory-core/services/SummaryService.mjs is created with the refactored SummaryService class content.
- The
SummaryService class extends Neo.core.Base and is configured as a singleton.
- Existing functions (
deleteAllSummaries, listSummaries, querySummaries) are converted into class methods.
- The old file
ai/mcp/server/memory-core/services/summaryService.mjs is deleted.
- The
ai/mcp/server/memory-core/services/toolService.mjs is updated to import the SummaryService singleton and map its methods.
- Any other services that depend on
summaryService are updated to use the new SummaryService singleton instance.
- All related tools (e.g.,
delete_all_summaries, get_all_summaries, query_summaries) continue to function correctly after the refactoring.
This ticket covers refactoring
ai/mcp/server/memory-core/services/summaryService.mjsinto a singleton class that extendsNeo.core.Base. The file will also be renamed toSummaryService.mjsto follow a more consistent naming convention. This service handles deleting, listing, and querying session summaries.Acceptance Criteria
ai/mcp/server/memory-core/services/SummaryService.mjsis created with the refactoredSummaryServiceclass content.SummaryServiceclass extendsNeo.core.Baseand is configured as a singleton.deleteAllSummaries,listSummaries,querySummaries) are converted into class methods.ai/mcp/server/memory-core/services/summaryService.mjsis deleted.ai/mcp/server/memory-core/services/toolService.mjsis updated to import theSummaryServicesingleton and map its methods.summaryServiceare updated to use the newSummaryServicesingleton instance.delete_all_summaries,get_all_summaries,query_summaries) continue to function correctly after the refactoring.