@pyxmate/memory 0.32.0 → 0.32.1

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.
@@ -811,7 +811,7 @@ var deleteMemoryTool = {
811
811
  query: { reason: args.reason },
812
812
  scope: args
813
813
  });
814
- return res.ok ? mcpJson(res.data) : res.result;
814
+ return res.ok ? mcpJson({ deleted: args.id }) : res.result;
815
815
  }
816
816
  };
817
817
 
@@ -1014,9 +1014,9 @@ var upsertUserProfileTool = {
1014
1014
  import { z as z8 } from "zod";
1015
1015
  var inputShape5 = {
1016
1016
  query: z8.string().min(1).describe("Required natural-language search text."),
1017
- limit: z8.number().int().min(1).max(100).optional().describe("Maximum results; server clamps to 1\u2013100. Default 5."),
1017
+ limit: z8.number().int().min(1).max(100).optional().describe("Maximum results; server clamps to 1\u2013100. Default 10."),
1018
1018
  strategy: z8.enum(["naive", "graph", "hybrid"]).optional().describe(
1019
- "RAG strategy. Server default is `naive`; use `hybrid` for cross-encoder reranking, multi-entity decomposition, and confidence scoring."
1019
+ "RAG strategy. Defaults to `hybrid` (cross-encoder reranking, multi-entity decomposition, confidence scoring) and is sent explicitly when omitted; pass `naive` for a lighter vector-only search or `graph` for graph-augmented retrieval."
1020
1020
  ),
1021
1021
  type: z8.enum(["short-term", "long-term", "working", "episodic", "summary"]).optional().describe("Filter by memory type."),
1022
1022
  agentId: z8.string().optional().describe("Filter to memories stored for this agentId."),
@@ -1043,9 +1043,13 @@ var searchMemoriesTool = {
1043
1043
  method: "GET",
1044
1044
  path: "/api/memory/search",
1045
1045
  query: {
1046
- q: args.query,
1046
+ query: args.query,
1047
1047
  limit: args.limit,
1048
- strategy: args.strategy,
1048
+ // Force `hybrid` unless the caller explicitly overrides. The server's
1049
+ // own default is hybrid too, but older tenant instances default to
1050
+ // `naive` (1–2 results vs hybrid's 15–20) — sending it explicitly makes
1051
+ // recall deterministic regardless of the instance version.
1052
+ strategy: args.strategy ?? "hybrid",
1049
1053
  type: args.type,
1050
1054
  agentId: args.agentId,
1051
1055
  abstentionThreshold: args.abstentionThreshold,
@@ -1326,7 +1330,7 @@ var ALL_TOOL_NAMES = ALL_TOOLS.map((t) => t.name);
1326
1330
  // src/mcp/server.ts
1327
1331
  async function runMcpServer(opts) {
1328
1332
  const fetchImpl = opts.fetchImpl ?? fetch;
1329
- const version = opts.version ?? (true ? "0.32.0" : "0.0.0-dev");
1333
+ const version = opts.version ?? (true ? "0.32.1" : "0.0.0-dev");
1330
1334
  const server = new McpServer(
1331
1335
  { name: "pyx-memory", version },
1332
1336
  { instructions: PYX_MEMORY_INSTRUCTIONS, capabilities: { tools: {} } }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pyxmate/memory",
3
- "version": "0.32.0",
3
+ "version": "0.32.1",
4
4
  "type": "module",
5
5
  "description": "SDK for pyx-memory — Memory as a Service for AI agents",
6
6
  "license": "MIT",