@pyxmate/memory 0.34.0 → 0.35.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.
- package/dist/cli/pyx-mem.mjs +5 -3
- package/dist/index.d.ts +8 -0
- package/package.json +1 -1
package/dist/cli/pyx-mem.mjs
CHANGED
|
@@ -555,7 +555,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
|
555
555
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
556
556
|
|
|
557
557
|
// src/mcp/instructions.ts
|
|
558
|
-
var PYX_MEMORY_INSTRUCTIONS = `Use pyx-memory to search durable project/user memory before assuming prior decisions, and to store concise facts after corrections, bug fixes, design decisions, integration discoveries, gotchas, explicit preferences, or "remember this" requests. Store decisions, not deliberation. Include topic and project. When content names people, organizations, tools, places, events, or key concepts, you (the caller) must extract and pass both entities and relationships \u2014 the server does not auto-extract them. Edges matter as much as nodes: without relationships the graph cannot connect related memories. Use file ingest for documents/images worth persisting; images require a description.`;
|
|
558
|
+
var PYX_MEMORY_INSTRUCTIONS = `Use pyx-memory to search durable project/user memory before assuming prior decisions, and to store concise facts after corrections, bug fixes, design decisions, integration discoveries, gotchas, explicit preferences, or "remember this" requests. Store decisions, not deliberation. Include topic and project. Pass eventTime (ISO-8601, when the fact happened or took effect) for any fact that can change or go stale \u2014 job/status changes, decisions that supersede earlier ones, dated events; recency ordering, dated ("as of") queries, and stale-vs-current conflict resolution all key off it. When content names people, organizations, tools, places, events, or key concepts, you (the caller) must extract and pass both entities and relationships \u2014 the server does not auto-extract them. Edges matter as much as nodes: without relationships the graph cannot connect related memories. Use file ingest for documents/images worth persisting; images require a description.`;
|
|
559
559
|
|
|
560
560
|
// src/mcp/sampling.ts
|
|
561
561
|
function createSamplingClient(server) {
|
|
@@ -1175,7 +1175,9 @@ var inputShape7 = {
|
|
|
1175
1175
|
"Storage targets. Include 'graph' when you provide entities/relationships or want zero graph write counts reported."
|
|
1176
1176
|
),
|
|
1177
1177
|
importance: z10.number().int().min(1).max(10).optional().describe("Importance 1\u201310."),
|
|
1178
|
-
eventTime: z10.string().optional().describe(
|
|
1178
|
+
eventTime: z10.string().optional().describe(
|
|
1179
|
+
'ISO-8601 time the fact happened or took effect (bi-temporal). Pass for any fact that can change or go stale \u2014 recency ordering, dated ("as of") queries, and stale-vs-current conflict resolution key off it.'
|
|
1180
|
+
),
|
|
1179
1181
|
source: z10.string().optional().describe("Free-form origin (filename, URL, conversation id)."),
|
|
1180
1182
|
agentId: z10.string().optional().describe("Agent identifier stored alongside the entry."),
|
|
1181
1183
|
sessionId: z10.string().optional().describe("Session identifier for grouping."),
|
|
@@ -1330,7 +1332,7 @@ var ALL_TOOL_NAMES = ALL_TOOLS.map((t) => t.name);
|
|
|
1330
1332
|
// src/mcp/server.ts
|
|
1331
1333
|
async function runMcpServer(opts) {
|
|
1332
1334
|
const fetchImpl = opts.fetchImpl ?? fetch;
|
|
1333
|
-
const version = opts.version ?? (true ? "0.
|
|
1335
|
+
const version = opts.version ?? (true ? "0.35.1" : "0.0.0-dev");
|
|
1334
1336
|
const server = new McpServer(
|
|
1335
1337
|
{ name: "pyx-memory", version },
|
|
1336
1338
|
{ instructions: PYX_MEMORY_INSTRUCTIONS, capabilities: { tools: {} } }
|
package/dist/index.d.ts
CHANGED
|
@@ -584,6 +584,14 @@ interface MemorySearchParams {
|
|
|
584
584
|
* unless `enableMultiHop` is also set.
|
|
585
585
|
*/
|
|
586
586
|
multiHopBridges?: string[];
|
|
587
|
+
/**
|
|
588
|
+
* Set false for a read-only search that does NOT bump access counts /
|
|
589
|
+
* lastAccessed on returned entries. Access feeds ranking (WEIGHT_ACCESS and
|
|
590
|
+
* the no-eventTime recency fallback), so a measurement that searches the
|
|
591
|
+
* store mutates what it measures — repeated benchmark runs over a persisted
|
|
592
|
+
* index drift. Default true (access tracking is the product's usage signal).
|
|
593
|
+
*/
|
|
594
|
+
trackAccess?: boolean;
|
|
587
595
|
/** Maximum sensitivity level to include in results. Entries above this level are excluded or redacted. */
|
|
588
596
|
maxSensitivity?: SensitivityLevel;
|
|
589
597
|
/** Tenant ID for multi-tenant isolation. */
|