Skip to content

feat: add MemoryCount endpoint for counting memories with filters#7

Merged
daniel-harperdb merged 1 commit intofeat/namespace-supportfrom
feat/memory-count
Mar 19, 2026
Merged

feat: add MemoryCount endpoint for counting memories with filters#7
daniel-harperdb merged 1 commit intofeat/namespace-supportfrom
feat/memory-count

Conversation

@daniel-harperdb
Copy link
Collaborator

Summary

Adds a MemoryCount custom resource that returns the number of stored memories, with optional filtering.

  • Supports all existing filters (source, classification, channelId, authorId, agentId)
  • Returns { count: number }
  • Useful for dashboards, quotas, and agent introspection

Stacked on #6 (namespace-support).

Test plan

  • Unit tests included (test/memory-count.test.js)
  • Manual test: verify count matches actual records with and without filters

@daniel-harperdb daniel-harperdb merged commit 659eb83 into feat/namespace-support Mar 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant