total-recall-brain 3.6.0 → 3.6.1

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.0",
3
+ "version": "3.6.1",
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": {
@@ -14,7 +14,7 @@ agents:
14
14
  exec: flag
15
15
  - name: codex
16
16
  binary: codex
17
- flags: --full-auto --json
17
+ flags: --full-auto --json --skip-git-repo-check
18
18
  priority: 4
19
19
  enabled: true
20
20
  exec: subcommand
@@ -44,7 +44,7 @@ export function findBinaryInPath(binaryName) {
44
44
  const DEFAULT_AGENTS = [
45
45
  { name: 'antigravity', binary: 'antigravity', flags: '--sandbox=false --yolo -o json', priority: 1, enabled: true, exec: 'flag' },
46
46
  { name: 'claude', binary: 'claude', flags: '--output-format json --permission-mode bypassPermissions', priority: 3, enabled: true, exec: 'flag' },
47
- { name: 'codex', binary: 'codex', flags: '--full-auto --json', priority: 4, enabled: true, exec: 'subcommand' },
47
+ { name: 'codex', binary: 'codex', flags: '--full-auto --json --skip-git-repo-check', priority: 4, enabled: true, exec: 'subcommand' },
48
48
  ];
49
49
 
50
50
  /**
@@ -304,22 +304,28 @@ export async function callLocalRuntime(prompt, system, config) {
304
304
  // Pre-flight command execution validation
305
305
  validateCommand(cmd);
306
306
 
307
+ const spawnEnv = {
308
+ ...process.env,
309
+ GOOGLE_API_KEY: process.env.GOOGLE_API_KEY || process.env.GEMINI_API_KEY || dynamicSecrets.google_api_key || googleApiKey,
310
+ GEMINI_API_KEY: process.env.GEMINI_API_KEY || process.env.GOOGLE_API_KEY || dynamicSecrets.google_api_key || googleApiKey,
311
+ ANTHROPIC_API_KEY: process.env.ANTHROPIC_API_KEY || dynamicSecrets.anthropic_api_key,
312
+ OPENAI_API_KEY: process.env.OPENAI_API_KEY || dynamicSecrets.openai_api_key,
313
+ TAVILY_API_KEY: process.env.TAVILY_API_KEY || dynamicSecrets.tavily_api_key || tavilyApiKey,
314
+ BRAVE_API_KEY: process.env.BRAVE_API_KEY || dynamicSecrets.brave_api_key || braveApiKey,
315
+ EXA_API_KEY: process.env.EXA_API_KEY || dynamicSecrets.exa_api_key || exaApiKey,
316
+ SERPER_API_KEY: process.env.SERPER_API_KEY || dynamicSecrets.serper_api_key || serperApiKey,
317
+ GITHUB_TOKEN: process.env.GITHUB_TOKEN || dynamicSecrets.github_token || githubToken,
318
+ };
319
+
320
+ if (agent.name === 'antigravity' || agent.name === 'gemini') {
321
+ delete spawnEnv.GOOGLE_API_KEY;
322
+ }
323
+
307
324
  const result = spawnSync('sh', ['-c', cmd], {
308
325
  encoding: 'utf8',
309
326
  timeout,
310
327
  maxBuffer: 10 * 1024 * 1024,
311
- env: {
312
- ...process.env,
313
- GOOGLE_API_KEY: process.env.GOOGLE_API_KEY || process.env.GEMINI_API_KEY || dynamicSecrets.google_api_key || googleApiKey,
314
- GEMINI_API_KEY: process.env.GEMINI_API_KEY || process.env.GOOGLE_API_KEY || dynamicSecrets.google_api_key || googleApiKey,
315
- ANTHROPIC_API_KEY: process.env.ANTHROPIC_API_KEY || dynamicSecrets.anthropic_api_key,
316
- OPENAI_API_KEY: process.env.OPENAI_API_KEY || dynamicSecrets.openai_api_key,
317
- TAVILY_API_KEY: process.env.TAVILY_API_KEY || dynamicSecrets.tavily_api_key || tavilyApiKey,
318
- BRAVE_API_KEY: process.env.BRAVE_API_KEY || dynamicSecrets.brave_api_key || braveApiKey,
319
- EXA_API_KEY: process.env.EXA_API_KEY || dynamicSecrets.exa_api_key || exaApiKey,
320
- SERPER_API_KEY: process.env.SERPER_API_KEY || dynamicSecrets.serper_api_key || serperApiKey,
321
- GITHUB_TOKEN: process.env.GITHUB_TOKEN || dynamicSecrets.github_token || githubToken,
322
- },
328
+ env: spawnEnv,
323
329
  cwd: process.cwd(),
324
330
  });
325
331