nexo-brain 2.6.16 → 2.6.18
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 +12 -2
- package/package.json +1 -1
- package/src/auto_update.py +10 -1
- package/src/bootstrap_docs.py +3 -1
- package/src/client_preferences.py +68 -2
- package/src/client_sync.py +45 -21
- package/src/cognitive/_search.py +30 -3
- package/src/doctor/providers/runtime.py +325 -0
- package/src/plugins/cognitive_memory.py +4 -0
- package/src/plugins/update.py +10 -1
- package/src/scripts/deep-sleep/apply_findings.py +393 -0
- package/src/scripts/deep-sleep/collect.py +221 -0
- package/src/scripts/deep-sleep/synthesize-prompt.md +13 -0
- package/src/scripts/deep-sleep/synthesize.py +1 -0
- package/src/scripts/nexo-update.sh +7 -1
|
@@ -161,6 +161,7 @@ def main():
|
|
|
161
161
|
for candidate in [
|
|
162
162
|
DEEP_SLEEP_DIR / f"{target_date}-analysis.json",
|
|
163
163
|
DEEP_SLEEP_DIR / f"{target_date}-synthesis.json",
|
|
164
|
+
DEEP_SLEEP_DIR / target_date / "synthesis.json",
|
|
164
165
|
]:
|
|
165
166
|
if candidate.exists() and candidate.stat().st_size > 100:
|
|
166
167
|
try:
|
|
@@ -266,7 +266,13 @@ sys.path.insert(0, os.environ["NEXO_CODE"])
|
|
|
266
266
|
from client_preferences import normalize_client_preferences
|
|
267
267
|
|
|
268
268
|
schedule_file = Path(os.environ["NEXO_HOME"]) / "config" / "schedule.json"
|
|
269
|
-
|
|
269
|
+
schedule_payload = json.loads(schedule_file.read_text()) if schedule_file.exists() else {}
|
|
270
|
+
prefs = normalize_client_preferences(schedule_payload)
|
|
271
|
+
if prefs != {key: schedule_payload.get(key) for key in prefs}:
|
|
272
|
+
merged = dict(schedule_payload)
|
|
273
|
+
merged.update(prefs)
|
|
274
|
+
schedule_file.parent.mkdir(parents=True, exist_ok=True)
|
|
275
|
+
schedule_file.write_text(json.dumps(merged, indent=2, ensure_ascii=False) + "\n")
|
|
270
276
|
enabled = [key for key, value in prefs.get("interactive_clients", {}).items() if value]
|
|
271
277
|
if prefs.get("automation_enabled", True):
|
|
272
278
|
backend = prefs.get("automation_backend")
|