mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-06 04:42:24 +00:00
Harden memory workflow to reduce merge conflicts
This commit is contained in:
1 parent
561bc9b4bd
commit
811f45b3af
8 files changed
+84
-10
No files matched your search
@@ -35,9 +35,7 @@ const cliArgs = process.argv.slice(2);
|
||||
const fileArgIndex = cliArgs.indexOf('--file');
|
||||
const explicitFile = fileArgIndex !== -1 ? cliArgs[fileArgIndex + 1] : null;
|
||||
const envFile = process.env.SCHEDULER_MEMORY_FILE;
|
||||
const defaultFile = 'memory-update.md';
|
||||
|
||||
const targetFile = explicitFile || (envFile && existsSync(envFile) ? envFile : (existsSync(defaultFile) ? defaultFile : null));
|
||||
const targetFile = explicitFile || (envFile && existsSync(envFile) ? envFile : null);
|
||||
|
||||
if (targetFile) {
|
||||
try {
|
||||
@@ -71,7 +69,7 @@ if (memoryContent) {
|
||||
} else {
|
||||
// No memory file found — skip ingest rather than storing meaningless placeholder events.
|
||||
// Placeholder events pollute the store and degrade retrieval quality on future runs.
|
||||
console.warn(`No memory input found (checked --file, env SCHEDULER_MEMORY_FILE=${envFile}, and default ${defaultFile}). Skipping ingest.`);
|
||||
console.warn(`No memory input found (checked --file and env SCHEDULER_MEMORY_FILE=${envFile}). Skipping ingest.`);
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user