total-recall-brain 3.1.1 → 3.1.2
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/package.json
CHANGED
package/src/cli/remember.mjs
CHANGED
|
@@ -16,7 +16,11 @@ import matter from 'gray-matter';
|
|
|
16
16
|
import { loadNodes, writeNode, deleteNode } from './vault.mjs';
|
|
17
17
|
import { brainDir } from './config.mjs';
|
|
18
18
|
|
|
19
|
-
const getBrainDir = () =>
|
|
19
|
+
const getBrainDir = () => {
|
|
20
|
+
if (process.env._TR_TEST_AGENT_DIR) return process.env._TR_TEST_AGENT_DIR;
|
|
21
|
+
if (process.env.AGENT_DIR) return path.join(process.env.AGENT_DIR, 'skills', 'total-recall');
|
|
22
|
+
return brainDir;
|
|
23
|
+
};
|
|
20
24
|
|
|
21
25
|
function getQueueFile(overrideBrainDir) {
|
|
22
26
|
const dir = overrideBrainDir || getBrainDir();
|