@prom.codes/memory-mcp 0.16.0 → 0.17.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/bin.js +22 -2
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -4279,6 +4279,21 @@ var curateInput = {
|
|
|
4279
4279
|
limit: z.number().int().positive().max(MAX_LIMIT).optional()
|
|
4280
4280
|
};
|
|
4281
4281
|
var emptyInput = {};
|
|
4282
|
+
var sharedVerdictCache = /* @__PURE__ */ new Map();
|
|
4283
|
+
function memorySource(workspaceRoot, rootIsHomeOrFsRoot) {
|
|
4284
|
+
if (rootIsHomeOrFsRoot)
|
|
4285
|
+
return { backend: "local-sqlite", projectMemoryShared: false };
|
|
4286
|
+
let shared = sharedVerdictCache.get(workspaceRoot);
|
|
4287
|
+
if (shared === void 0) {
|
|
4288
|
+
try {
|
|
4289
|
+
shared = memoriesShared(workspaceRoot);
|
|
4290
|
+
} catch {
|
|
4291
|
+
shared = false;
|
|
4292
|
+
}
|
|
4293
|
+
sharedVerdictCache.set(workspaceRoot, shared);
|
|
4294
|
+
}
|
|
4295
|
+
return { backend: "local-sqlite", projectMemoryShared: shared };
|
|
4296
|
+
}
|
|
4282
4297
|
function registerTools(server, source, hooks = {}) {
|
|
4283
4298
|
const ready = typeof source === "function" ? source : () => Promise.resolve(source);
|
|
4284
4299
|
const onToolCall = hooks.onToolCall;
|
|
@@ -4316,6 +4331,9 @@ function registerTools(server, source, hooks = {}) {
|
|
|
4316
4331
|
projectFilesSynced: sync.synced,
|
|
4317
4332
|
projectFilesPruned: sync.pruned,
|
|
4318
4333
|
...sync.skipped.length > 0 ? { skippedFiles: sync.skipped } : {},
|
|
4334
|
+
// Provenance (ask 5): memory is local-sqlite; `projectMemoryShared` says
|
|
4335
|
+
// whether these project memories are git-shared with the team.
|
|
4336
|
+
source: memorySource(workspaceRoot, deps.rootIsHomeOrFsRoot),
|
|
4319
4337
|
woven: weave(records),
|
|
4320
4338
|
recordsShown: bounded.shown,
|
|
4321
4339
|
recordsFetched: bounded.fetched,
|
|
@@ -4456,6 +4474,8 @@ ${f.value}`);
|
|
|
4456
4474
|
projectId,
|
|
4457
4475
|
query: args.query,
|
|
4458
4476
|
sources,
|
|
4477
|
+
// Provenance (ask 5): local-sqlite backend + git-shared project flag.
|
|
4478
|
+
source: memorySource(workspaceRoot, deps.rootIsHomeOrFsRoot),
|
|
4459
4479
|
hits: hits.map((h) => ({ snippet: h.snippet, record: recordToJson(h.record) })),
|
|
4460
4480
|
sessions: sessionHits
|
|
4461
4481
|
});
|
|
@@ -4628,7 +4648,7 @@ ${f.value}`);
|
|
|
4628
4648
|
embeddingsError = err instanceof Error ? err.message : String(err);
|
|
4629
4649
|
}
|
|
4630
4650
|
}
|
|
4631
|
-
const update = await buildUpdateStatus("@prom.codes/memory-mcp", "0.
|
|
4651
|
+
const update = await buildUpdateStatus("@prom.codes/memory-mcp", "0.17.0", { isDevBuild: false });
|
|
4632
4652
|
let recorder;
|
|
4633
4653
|
try {
|
|
4634
4654
|
const scopes = ["project-local", "project", "user"];
|
|
@@ -4710,7 +4730,7 @@ ${f.value}`);
|
|
|
4710
4730
|
// dist/server.js
|
|
4711
4731
|
var SERVER_IDENTITY = {
|
|
4712
4732
|
name: "prometheus-memory-mcp",
|
|
4713
|
-
version: "0.
|
|
4733
|
+
version: "0.17.0",
|
|
4714
4734
|
title: "prom.codes Memory"
|
|
4715
4735
|
};
|
|
4716
4736
|
var SERVER_INSTRUCTIONS = "Persistent agent memory for this workspace \u2014 USE IT PROACTIVELY; the user will not tell you to. Protocol:\n1. ONE-TIME: if this workspace has no Prometheus memory rule yet, call memory_setup now (idempotent) so the protocol is installed into the runtime rule files and survives future sessions. (The server also auto-installs it on startup when a project rule file already exists \u2014 memory_setup covers the rest.)\n2. SESSION START: before any non-trivial task, call memory_read to recall facts, decisions and procedures from earlier sessions.\n3. DURING WORK: when the user states a durable preference, decision, correction or project fact, store it with memory_write (semantic for facts, procedural for how-tos) \u2014 without being asked.\n4. LOOK-UP: use memory_search for keyword recall when memory_read is not specific enough.\n5. SESSION END: consolidate what was learned with memory_capture.\nCall memory_status anytime to check what is stored and whether the rule is installed. Never store secrets, API keys or credentials \u2014 such writes are rejected.";
|