cc-claw 0.27.2 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents/mcp-server.js +3 -1
- package/dist/cli.js +1124 -370
- package/package.json +1 -1
|
@@ -343,6 +343,7 @@ IMPORTANT: Always use this tool for memories. Do NOT save to your own memory fil
|
|
|
343
343
|
// remember params
|
|
344
344
|
tag: z.string().optional().describe("Memory tag / trigger phrase"),
|
|
345
345
|
content: z.string().optional().describe("Memory content to save"),
|
|
346
|
+
category: z.enum(["fact", "preference", "event", "decision"]).optional().describe("Memory category"),
|
|
346
347
|
// recall/history params
|
|
347
348
|
query: z.string().optional().describe("Search query"),
|
|
348
349
|
limit: z.number().optional().describe("Max results to return"),
|
|
@@ -363,7 +364,8 @@ IMPORTANT: Always use this tool for memories. Do NOT save to your own memory fil
|
|
|
363
364
|
if (!params.tag || !params.content) return fail("remember requires 'tag' and 'content'");
|
|
364
365
|
const result = await callApi("/api/memory/remember", {
|
|
365
366
|
tag: params.tag,
|
|
366
|
-
content: params.content
|
|
367
|
+
content: params.content,
|
|
368
|
+
category: params.category
|
|
367
369
|
});
|
|
368
370
|
return ok(`Memory saved (ID: ${result.id}).`);
|
|
369
371
|
}
|