nexo-brain 0.8.5 → 0.8.6

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.
Files changed (2) hide show
  1. package/bin/nexo-brain.js +31 -0
  2. package/package.json +1 -1
package/bin/nexo-brain.js CHANGED
@@ -353,6 +353,9 @@ async function main() {
353
353
  error_handling: errorHandling,
354
354
  calibrated_at: new Date().toISOString(),
355
355
  };
356
+ // Ensure NEXO_HOME and brain dir exist before writing calibration
357
+ fs.mkdirSync(NEXO_HOME, { recursive: true });
358
+ fs.mkdirSync(path.join(NEXO_HOME, "brain"), { recursive: true });
356
359
  fs.writeFileSync(
357
360
  path.join(NEXO_HOME, "brain", "calibration.json"),
358
361
  JSON.stringify(calibration, null, 2)
@@ -447,6 +450,12 @@ async function main() {
447
450
  "tools_credentials.py",
448
451
  "tools_task_history.py",
449
452
  "tools_menu.py",
453
+ "knowledge_graph.py",
454
+ "kg_populate.py",
455
+ "maintenance.py",
456
+ "storage_router.py",
457
+ "migrate_embeddings.py",
458
+ "auto_close_sessions.py",
450
459
  ];
451
460
  coreFiles.forEach((f) => {
452
461
  const src = path.join(srcDir, f);
@@ -466,6 +475,8 @@ async function main() {
466
475
  "agents.py",
467
476
  "backup.py",
468
477
  "evolution.py",
478
+ "adaptive_mode.py",
479
+ "knowledge_graph_tools.py",
469
480
  ];
470
481
  pluginFiles.forEach((f) => {
471
482
  const src = path.join(pluginsSrcDir, f);
@@ -485,6 +496,26 @@ async function main() {
485
496
  }
486
497
  });
487
498
 
499
+ // Dashboard
500
+ const dashSrcDir = path.join(srcDir, "dashboard");
501
+ const dashDestDir = path.join(NEXO_HOME, "dashboard");
502
+ if (fs.existsSync(dashSrcDir)) {
503
+ const copyDirRecursive = (src, dest) => {
504
+ fs.mkdirSync(dest, { recursive: true });
505
+ fs.readdirSync(src).forEach(item => {
506
+ const srcPath = path.join(src, item);
507
+ const destPath = path.join(dest, item);
508
+ if (fs.statSync(srcPath).isDirectory()) {
509
+ copyDirRecursive(srcPath, destPath);
510
+ } else {
511
+ fs.copyFileSync(srcPath, destPath);
512
+ }
513
+ });
514
+ };
515
+ copyDirRecursive(dashSrcDir, dashDestDir);
516
+ log(" Dashboard installed.");
517
+ }
518
+
488
519
  // Generate personality
489
520
  const personality = `# ${operatorName} — Personality
490
521
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexo-brain",
3
- "version": "0.8.5",
3
+ "version": "0.8.6",
4
4
  "mcpName": "io.github.wazionapps/nexo",
5
5
  "description": "NEXO — Cognitive co-operator for Claude Code. Atkinson-Shiffrin memory, semantic RAG, trust scoring, and metacognitive error prevention.",
6
6
  "bin": {