nexo-brain 7.23.2 → 7.23.4
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/.claude-plugin/plugin.json +1 -1
- package/README.md +7 -1
- package/package.json +1 -1
- package/scripts/sync_release_artifacts.py +28 -0
- package/src/auto_update.py +25 -47
- package/src/automation_reconciler.py +383 -0
- package/src/automation_supervisor.py +86 -9
- package/src/backup_retention.py +70 -0
- package/src/cli.py +55 -2
- package/src/cognitive/_core.py +4 -3
- package/src/cognitive_paths.py +194 -0
- package/src/dashboard/app.py +2 -1
- package/src/db/_episodic.py +85 -7
- package/src/db/_schema.py +81 -0
- package/src/db/_skills.py +3 -3
- package/src/disk_recovery/__init__.py +11 -0
- package/src/disk_recovery/handlers/__init__.py +1 -0
- package/src/disk_recovery/handlers/common.py +37 -0
- package/src/disk_recovery/handlers/macos.py +39 -0
- package/src/disk_recovery/handlers/windows.py +49 -0
- package/src/disk_recovery/registry.py +135 -0
- package/src/doctor/providers/boot.py +115 -15
- package/src/kg_populate.py +2 -5
- package/src/paths.py +321 -5
- package/src/plugins/update.py +14 -36
- package/src/pre_answer_router.py +21 -0
- package/src/runtime_service.py +30 -3
- package/src/runtime_versioning.py +272 -10
- package/src/script_registry.py +3 -2
- package/src/scripts/backfill_task_owner.py +10 -4
- package/src/scripts/deep-sleep/apply_findings.py +2 -5
- package/src/scripts/deep-sleep/collect.py +2 -5
- package/src/scripts/nexo-cognitive-decay.py +2 -1
- package/src/scripts/nexo-daily-self-audit.py +36 -10
- package/src/scripts/nexo-followup-runner.py +1 -1
- package/src/scripts/nexo-immune.py +2 -1
- package/src/scripts/nexo-migrate.py +2 -3
- package/src/scripts/post_disk_recovery_sweep.py +75 -0
- package/src/scripts/prune_runtime_backups.py +78 -11
- package/src/server.py +13 -1
- package/src/storage_router.py +2 -3
- package/src/support_snapshot.py +25 -0
- package/src/transcript_index.py +234 -0
- package/src/transcript_utils.py +31 -8
- package/src/user_data_portability.py +2 -3
- package/tool-enforcement-map.json +15 -0
|
@@ -389,12 +389,11 @@ def import_user_bundle(bundle_path: str) -> dict:
|
|
|
389
389
|
if not inspection.get("ok"):
|
|
390
390
|
return inspection
|
|
391
391
|
|
|
392
|
-
|
|
393
|
-
backups_dir.mkdir(parents=True, exist_ok=True)
|
|
394
|
-
safety_backup = backups_dir / f"pre-import-user-data-{_now_stamp()}.tar.gz"
|
|
392
|
+
safety_backup = paths.create_backup_path("pre-import-user-data", ".tar.gz")
|
|
395
393
|
safety_result = export_user_bundle(str(safety_backup), enforce_rate_limit=False)
|
|
396
394
|
if not safety_result.get("ok"):
|
|
397
395
|
return {"ok": False, "error": "failed to create safety backup", "safety_backup": str(safety_backup)}
|
|
396
|
+
paths.finalize_backup_snapshot(safety_backup)
|
|
398
397
|
|
|
399
398
|
stage_dir: Path | None = None
|
|
400
399
|
|
|
@@ -315,6 +315,21 @@
|
|
|
315
315
|
},
|
|
316
316
|
"triggers_after": []
|
|
317
317
|
},
|
|
318
|
+
"nexo_automation_reconcile": {
|
|
319
|
+
"description": "Build or apply a reconciliation plan for operator-facing automations",
|
|
320
|
+
"category": "automation",
|
|
321
|
+
"source": "server",
|
|
322
|
+
"requires": [],
|
|
323
|
+
"provides": [
|
|
324
|
+
"automation_reconciliation_plan"
|
|
325
|
+
],
|
|
326
|
+
"internal_calls": [],
|
|
327
|
+
"enforcement": {
|
|
328
|
+
"level": "none",
|
|
329
|
+
"rules": []
|
|
330
|
+
},
|
|
331
|
+
"triggers_after": []
|
|
332
|
+
},
|
|
318
333
|
"nexo_automation_instructions": {
|
|
319
334
|
"description": "Set or clear operator extra instructions for an automation",
|
|
320
335
|
"category": "personal",
|