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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "total-recall-brain",
3
- "version": "3.6.6",
3
+ "version": "3.6.7",
4
4
  "description": "Sovereign AI system — database-free, SSSS-powered personal intelligence engine deployable to any POSIX host.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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
- fs.unlinkSync(shimPath);
399
- atomicWrite(shimPath, fullContent);
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
- // No clients.json → backward compat: write ALL client shims
469
- for (const files of Object.values(CLIENT_SHIMS)) {
470
- for (const file of files) {
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) {