feat(ts-client): support batch memory delete#1266
Conversation
There was a problem hiding this comment.
Pull request overview
This PR extends the TypeScript client’s MemMachineMemory.delete() API to support batch deletion of episodic/semantic memories in a single request, aligning the client with the server’s existing *_ids delete fields.
Changes:
- Widen
memory.delete()to accept either a single ID (string) or multiple IDs (string[]). - Update delete request payload construction to send
episodic_ids/semantic_ids. - Apply
npm audit fixupdates inpackage-lock.json(notablyflattedandmarkdown-itupgrades).
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| packages/ts-client/src/memory/memmachine-memory.ts | Exposes batch delete and adjusts delete payload format to use *_ids. |
| packages/ts-client/package-lock.json | Lockfile updates from npm audit fix (dependency/security metadata changes). |
Files not reviewed (1)
- packages/ts-client/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
572ab6a to
4423f4f
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
Files not reviewed (1)
- packages/ts-client/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
4423f4f to
7ca70c7
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
Files not reviewed (1)
- packages/ts-client/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- `delete()` now accepts `string | string[]` for bulk episodic/semantic deletion - chore: run `npm audit fix` (flatted 3.3.3→3.4.2, markdown-it 14.1.0→14.1.1) Signed-off-by: yaleMemVerge <yale.sun@memverge.com>
7ca70c7 to
6a22af3
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 3 changed files in this pull request and generated no new comments.
Files not reviewed (1)
- packages/ts-client/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 3 changed files in this pull request and generated no new comments.
Files not reviewed (1)
- packages/ts-client/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
Files not reviewed (1)
- packages/ts-client/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Steve Scargall <37674041+sscargal@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Steve Scargall <37674041+sscargal@users.noreply.github.com>
Purpose of the change
Support deleting multiple memories in a single API call from the TypeScript client, aligning with the existing server-side batch delete capability.
Description
The server's DeleteEpisodicMemorySpec and DeleteSemanticMemorySpec already accept both a single ID (episodic_id/semantic_id) and a list (episodic_ids/semantic_ids). This PR updates the TS client's MemMachineMemory.delete() to expose that capability.
Fixes/Closes
Fixes #1249
Type of change
How Has This Been Tested?
Test Results: Verified locally against a running MemMachine server instance.
Checklist
Maintainer Checklist
Further comments
package-lock.json changes are from npm audit fix — upgrades flatted (3.3.3→3.4.2) and markdown-it (14.1.0→14.1.1) to address security advisories, along with peer dependency metadata corrections.