Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Requires Node 18 or later and a `SUPERMEMORY_API_KEY` from [console.supermemory.
- **`getProfile`** returns v5 profile entries (`{ id, memory }`), so profile IDs can be passed to `memoryForget`. With a `query`, `searchResults` is the v5 search `results` array.
- **`documentList`** returns v5 documents; status is under `system.status`.
- **Conversations** saved by the middlewares are stored as one document per conversation (document `id` = the `id` you pass), instead of through `/v4/conversations`.
- **Claude memory tool** drops `memoryContainerTag`. Its files live in the configured namespace and are marked with `metadata.source = "claude-memory"`. Files written by 2.x are not migrated.
- **Claude memory tool** drops `memoryContainerTag`. Its files live in the configured namespace. New files are marked with `metadata.source = "claude-memory"`; files written by 2.x are still found, because both versions stamp `claude_memory_type` and `file_path`.
- **VoltAgent** search options use v5 shapes: `filters` → typed `filter`, `rerank` is `"none" | "order" | "aggregate"`, `searchMode: "documents"` → `"chunks"`, `include` keys are `documents`, `related`, `forgotten`, and `entityContext` → `supportingContext`.

## Usage
Expand Down
2 changes: 1 addition & 1 deletion packages/tools/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@supermemory/tools",
"type": "module",
"version": "3.0.0",
"version": "3.0.1",
"description": "Memory tools for AI SDK, OpenAI, Voltagent and Mastra with supermemory",
"scripts": {
"build": "tsdown",
Expand Down
4 changes: 2 additions & 2 deletions packages/tools/src/claude-memory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export class ClaudeMemoryTool {
filter: {
operator: "and",
operands: [
{ field: "source", operator: "eq", value: CLAUDE_MEMORY_SOURCE },
// 2.x files have no `source`; claude_memory_type + file_path identify files in both versions
{ field: "claude_memory_type", operator: "eq", value: "file" },
{ field: "file_path", operator: "contains", value: dirPath },
],
Expand Down Expand Up @@ -572,7 +572,7 @@ export class ClaudeMemoryTool {

// Different paths can normalize to the same ID; only the exact file counts.
if (
document.metadata?.source !== CLAUDE_MEMORY_SOURCE ||
document.metadata?.claude_memory_type !== "file" ||
this.getDocumentFilePath(document) !== filePath
) {
return { success: false, error: `File not found: ${filePath}` }
Expand Down
Loading