total-recall-brain 3.6.10 → 3.6.11

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.10",
3
+ "version": "3.6.11",
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": {
@@ -62,13 +62,13 @@ const CLIENTS = {
62
62
  antigravity: {
63
63
  label: 'Antigravity',
64
64
  mode: 'symlink',
65
- target: 'AGENTS.md',
65
+ target: '.agents/rules/AGENTS.md',
66
66
  writeSlashCommands: true
67
67
  },
68
68
  gemini: {
69
69
  label: 'Gemini',
70
70
  mode: 'symlink',
71
- target: 'GEMINI.md',
71
+ target: '.agents/rules/GEMINI.md',
72
72
  writeSlashCommands: true
73
73
  },
74
74
  aider: {
@@ -456,8 +456,8 @@ async function writeShim(shimPath, skillsDir, nodes = [], { vaultDir, derivedDir
456
456
  const CLIENT_SHIMS = {
457
457
  cursor: ['.cursorrules'],
458
458
  'claude-code': ['.clauderules'],
459
- antigravity: ['AGENTS.md'],
460
- gemini: ['GEMINI.md'],
459
+ antigravity: ['AGENTS.md', '.agents/rules/AGENTS.md', '.agent/rules/AGENTS.md'],
460
+ gemini: ['GEMINI.md', '.agents/rules/GEMINI.md', '.agent/rules/GEMINI.md'],
461
461
  codex: ['.codexrules'],
462
462
  vscode: ['.github/copilot-instructions.md', '.vscode/copilot-instructions.md'],
463
463
  pi: [],
@@ -474,8 +474,20 @@ function readConnectedClients(clientsPath) {
474
474
  const raw = fs.readFileSync(clientsPath, 'utf8').trim();
475
475
  if (!raw) return null;
476
476
  const parsed = JSON.parse(raw);
477
- if (!Array.isArray(parsed) || parsed.length === 0) return null;
478
- return new Set(parsed.map(String));
477
+
478
+ // Support object format: { clients: { gemini: {...} } }
479
+ if (parsed && typeof parsed === 'object' && !Array.isArray(parsed) && parsed.clients) {
480
+ const keys = Object.keys(parsed.clients);
481
+ if (keys.length === 0) return null;
482
+ return new Set(keys);
483
+ }
484
+
485
+ // Support legacy array format just in case
486
+ if (Array.isArray(parsed) && parsed.length > 0) {
487
+ return new Set(parsed.map(String));
488
+ }
489
+
490
+ return null;
479
491
  } catch {
480
492
  return null;
481
493
  }