@skedulo/memory-hub-mcp 0.2.24 → 0.2.25

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.
@@ -143,11 +143,6 @@ Take the items in order. Before reading anything, skip and list:
143
143
  - `diffLines` of -1: the diff failed; flag it as not checked.
144
144
  - `editedByOtherWithin7Days`: someone else is working on it; never rewrite it. Count it as "already swept by a teammate" in the digest, not as waiting.
145
145
  - `editable: false`: flag it (the "Stale memories" rule on edits you cannot make).
146
- - an item whose text starts with an `UPDATE <date> (said in session)` line that its changed code now
147
- disagrees with: never rewrite it, and never move its `source`. A spoken correction can run ahead of
148
- the code, so leave it as it is and list it under "Said in session, but the code disagrees" in the
149
- digest. Only verifying shows the disagreement (the "Other items" step below); once it does, stop
150
- there and spend no update on it.
151
146
  - tagged `Superseded`: a newer memory replaced it; report it, do not update it.
152
147
 
153
148
  In `dry-run` mode, read nothing more. Count as `apply` would, with each project handed over counted
@@ -179,7 +174,9 @@ In `apply` mode:
179
174
  2. Verify: read each path in `changed` at `target`, and its change with
180
175
  `git -C <clone> diff <source.commit> <target> -- <paths>`.
181
176
  3. If the item starts with an `UPDATE <date> (said in session)` line and the code disagrees with
182
- it, change nothing and list it, as above. When the code agrees with it, the line stays.
177
+ it, never rewrite it and never move its `source`: a spoken correction can run ahead of the
178
+ code. List it under "Said in session, but the code disagrees" in the digest and spend no
179
+ update on it. When the code agrees with it, the line stays.
183
180
  Otherwise apply the section's "still true", "clearly wrong" or "unclear" step, with
184
181
  `source: {repo: "<owner/name>", commit: "<target>"}` and `expectedLastModified` on every
185
182
  `memory_update`, keeping the item's visibility.
@@ -215,10 +212,10 @@ One digest for the whole run, headed with the mode and the date:
215
212
  3. Flagged and skipped items with why: too big, diff failed, not editable,
216
213
  superseded, unclear after verifying, not reached. Items edited by someone else in the last 7
217
214
  days are counted as already swept by a teammate.
218
- Then a list headed "Said in session, but the code disagrees": for each item, the memory (by
219
- title; by uid only when Private, with nothing else about it), what was said and when (the date on
220
- its `UPDATE` line), and what the code shows. Nothing was rewritten; the person decides which side
221
- is right.
215
+ Then a list headed "Said in session, but the code disagrees": for each item, the memory by
216
+ title, what was said and when (the date on its `UPDATE` line), and what the code shows. For a
217
+ Private memory, show only its uid and that date. Nothing was rewritten; the person decides which
218
+ side is right.
222
219
  4. Per project: what the targeted updates and sources-only refreshes changed, by page title and
223
220
  entry ID, the core changes waiting ("run project-knowledge on <Project> to decide them"), and
224
221
  anything "Worth a look", such as new modules.
package/dist/capture.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.logCapture = exports.captureVisibility = exports.captureUpdateRefusal = exports.captureUpsert = exports.isCaptureMode = void 0;
3
+ exports.logCapture = exports.captureVisibility = exports.captureSourceRefusal = exports.captureUpdateRefusal = exports.captureUpsert = exports.isCaptureMode = void 0;
4
4
  const fs_1 = require("fs");
5
5
  const SIMILAR_OWN_FACT_FLOOR = 0.86;
6
6
  function isCaptureMode(env = process.env) {
@@ -90,6 +90,16 @@ function captureUpdateRefusal(type, env = process.env) {
90
90
  };
91
91
  }
92
92
  exports.captureUpdateRefusal = captureUpdateRefusal;
93
+ function captureSourceRefusal(source, env = process.env) {
94
+ if (!isCaptureMode(env) || source === undefined) {
95
+ return undefined;
96
+ }
97
+ return {
98
+ message: 'Not updated: capture mode never changes source, so nothing was changed. ' +
99
+ 'Update again without source; only a human or the sweep re-checks an item against the code.',
100
+ };
101
+ }
102
+ exports.captureSourceRefusal = captureSourceRefusal;
93
103
  // An auto-capture is never reviewed before it is saved, so it stays with its author until they share it.
94
104
  function captureVisibility(requested, env = process.env) {
95
105
  return isCaptureMode(env) ? 'Private' : requested;
package/dist/cli.js CHANGED
File without changes
package/dist/index.js CHANGED
@@ -295,7 +295,7 @@ server.tool('memory_update', "Revise a memory (yours, or a Team item on your tea
295
295
  source: source_1.sourceSchema.nullable().optional().describe(`${source_1.SOURCE_DESCRIPTION} Pass it after re-checking the item against the repo; null clears the source.`),
296
296
  expectedLastModified: zod_1.z.string().min(1).optional().describe('The lastModifiedDate memory_get returned. Required when you are not the author. The update is refused if the item changed since.'),
297
297
  }, async (input) => {
298
- const refused = (0, capture_1.captureUpdateRefusal)(input.type);
298
+ const refused = (0, capture_1.captureUpdateRefusal)(input.type) ?? (0, capture_1.captureSourceRefusal)(input.source);
299
299
  if (refused) {
300
300
  return { content: [{ type: 'text', text: refused.message }] };
301
301
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skedulo/memory-hub-mcp",
3
- "version": "0.2.24",
3
+ "version": "0.2.25",
4
4
  "description": "MCP server for the Memory Hub: recall and save developer memory from Claude Code and Claude Desktop.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {