mcp-agents-memory 0.9.4 → 0.9.5

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.
Files changed (2) hide show
  1. package/build/index.js +11 -4
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -57124,6 +57124,12 @@ var _flushInProgress2 = false;
57124
57124
  var _flushPending2 = false;
57125
57125
  var _flushDebounceTimer2 = null;
57126
57126
  function findProjectDir(cwd) {
57127
+ const slug = cwd.replace(/\//g, "-");
57128
+ const slugPath = path4.join(PROJECTS_ROOT, slug);
57129
+ try {
57130
+ if (fs3.statSync(slugPath).isDirectory()) return slugPath;
57131
+ } catch {
57132
+ }
57127
57133
  let subdirs;
57128
57134
  try {
57129
57135
  subdirs = fs3.readdirSync(PROJECTS_ROOT, { withFileTypes: true });
@@ -57139,10 +57145,11 @@ function findProjectDir(cwd) {
57139
57145
  } catch {
57140
57146
  continue;
57141
57147
  }
57142
- const jsonlFile = files.find((f) => f.isFile() && f.name.endsWith(".jsonl"));
57143
- if (!jsonlFile) continue;
57144
- const foundCwd = readCwdFromJsonl(path4.join(dirPath, jsonlFile.name));
57145
- if (foundCwd === cwd) return dirPath;
57148
+ for (const f of files) {
57149
+ if (!f.isFile() || !f.name.endsWith(".jsonl")) continue;
57150
+ const foundCwd = readCwdFromJsonl(path4.join(dirPath, f.name));
57151
+ if (foundCwd === cwd) return dirPath;
57152
+ }
57146
57153
  }
57147
57154
  return null;
57148
57155
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-agents-memory",
3
- "version": "0.9.4",
3
+ "version": "0.9.5",
4
4
  "description": "Long-term memory for AI agents with provenance tracking",
5
5
  "main": "build/index.js",
6
6
  "type": "module",