@smyslenny/agent-memory 5.0.0 → 5.0.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/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp/server.js +5 -0
- package/dist/mcp/server.js.map +1 -1
- package/package.json +1 -1
package/dist/mcp/server.js
CHANGED
|
@@ -16137,6 +16137,7 @@ function runAutoIngestWatcher(options) {
|
|
|
16137
16137
|
const memoryMdPath = join(workspaceDir, "MEMORY.md");
|
|
16138
16138
|
const debounceMs = options.debounceMs ?? 1200;
|
|
16139
16139
|
const initialScan = options.initialScan ?? true;
|
|
16140
|
+
const ingestDaily = process.env.AGENT_MEMORY_AUTO_INGEST_DAILY === "1";
|
|
16140
16141
|
const logger = options.logger ?? console;
|
|
16141
16142
|
const timers = /* @__PURE__ */ new Map();
|
|
16142
16143
|
const watchers = [];
|
|
@@ -16157,6 +16158,10 @@ function runAutoIngestWatcher(options) {
|
|
|
16157
16158
|
const isTrackedMarkdownFile = (absPath) => {
|
|
16158
16159
|
if (!absPath.endsWith(".md")) return false;
|
|
16159
16160
|
if (resolve(absPath) === memoryMdPath) return true;
|
|
16161
|
+
if (!ingestDaily) {
|
|
16162
|
+
const basename = absPath.split("/").pop() ?? "";
|
|
16163
|
+
if (/^\d{4}-\d{2}-\d{2}\.md$/.test(basename)) return false;
|
|
16164
|
+
}
|
|
16160
16165
|
const rel = relative(memoryDir, absPath).replace(/\\/g, "/");
|
|
16161
16166
|
if (rel.startsWith("..") || rel === "") return false;
|
|
16162
16167
|
return !rel.includes("/");
|