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.
- package/build/index.js +11 -4
- 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
|
|
57143
|
-
|
|
57144
|
-
|
|
57145
|
-
|
|
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
|
}
|