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.
@@ -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
- prefs = normalize_client_preferences(json.loads(schedule_file.read_text())) if schedule_file.exists() else normalize_client_preferences({})
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")