@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/index.js
CHANGED
|
@@ -3674,6 +3674,7 @@ function runAutoIngestWatcher(options) {
|
|
|
3674
3674
|
const memoryMdPath = join2(workspaceDir, "MEMORY.md");
|
|
3675
3675
|
const debounceMs = options.debounceMs ?? 1200;
|
|
3676
3676
|
const initialScan = options.initialScan ?? true;
|
|
3677
|
+
const ingestDaily = process.env.AGENT_MEMORY_AUTO_INGEST_DAILY === "1";
|
|
3677
3678
|
const logger = options.logger ?? console;
|
|
3678
3679
|
const timers = /* @__PURE__ */ new Map();
|
|
3679
3680
|
const watchers = [];
|
|
@@ -3694,6 +3695,10 @@ function runAutoIngestWatcher(options) {
|
|
|
3694
3695
|
const isTrackedMarkdownFile = (absPath) => {
|
|
3695
3696
|
if (!absPath.endsWith(".md")) return false;
|
|
3696
3697
|
if (resolve(absPath) === memoryMdPath) return true;
|
|
3698
|
+
if (!ingestDaily) {
|
|
3699
|
+
const basename = absPath.split("/").pop() ?? "";
|
|
3700
|
+
if (/^\d{4}-\d{2}-\d{2}\.md$/.test(basename)) return false;
|
|
3701
|
+
}
|
|
3697
3702
|
const rel = relative(memoryDir, absPath).replace(/\\/g, "/");
|
|
3698
3703
|
if (rel.startsWith("..") || rel === "") return false;
|
|
3699
3704
|
return !rel.includes("/");
|