total-recall-brain 3.6.6 → 3.6.7
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 +1 -1
- package/src/core/surface.mjs +6 -8
package/package.json
CHANGED
package/src/core/surface.mjs
CHANGED
|
@@ -395,8 +395,9 @@ async function writeShim(shimPath, skillsDir, nodes = [], { vaultDir, derivedDir
|
|
|
395
395
|
if (fs.existsSync(shimPath)) {
|
|
396
396
|
const stat = fs.lstatSync(shimPath);
|
|
397
397
|
if (stat.isSymbolicLink()) {
|
|
398
|
-
|
|
399
|
-
|
|
398
|
+
// If it's a symlink, DO NOT destroy it. It likely points to INSTRUCTIONS.md natively,
|
|
399
|
+
// and its content will update automatically when the target updates.
|
|
400
|
+
return;
|
|
400
401
|
} else {
|
|
401
402
|
const raw = fs.readFileSync(shimPath, 'utf8');
|
|
402
403
|
let cleaned = raw;
|
|
@@ -465,12 +466,9 @@ async function compilePointers(instructionsFile, skillsDir, nodes = [], { vaultD
|
|
|
465
466
|
const connectedClients = readConnectedClients(clientsPath);
|
|
466
467
|
|
|
467
468
|
if (connectedClients === null) {
|
|
468
|
-
//
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
await writeShim(path.join(baseDir, file), skillsDir, nodes, { vaultDir, derivedDir });
|
|
472
|
-
}
|
|
473
|
-
}
|
|
469
|
+
// Backward compat loop removed to prevent context exhaustion.
|
|
470
|
+
// By default, we only write INSTRUCTIONS.md.
|
|
471
|
+
// Users must explicitly use 'npx total-recall connect' to register client IDEs.
|
|
474
472
|
} else {
|
|
475
473
|
// Only write shims for connected clients
|
|
476
474
|
for (const client of connectedClients) {
|