Powerman9x commited on
Commit
f5e65be
·
verified ·
1 Parent(s): df33f07

Upload sync_hf.py

Browse files
Files changed (1) hide show
  1. scripts/sync_hf.py +11 -2
scripts/sync_hf.py CHANGED
@@ -1273,7 +1273,7 @@ class OpenClawFullSync:
1273
 
1274
  # ── Plugin allowlist (STRICT) ──
1275
  data.setdefault("plugins", {}).setdefault("entries", {})
1276
- plugin_allow = ["telegram", "acpx", "github"]
1277
  if A2A_PEERS:
1278
  plugin_allow.append("a2a-gateway")
1279
  data["plugins"]["allow"] = plugin_allow
@@ -1281,7 +1281,7 @@ class OpenClawFullSync:
1281
 
1282
  # Explicitly disable heavy plugins
1283
  HEAVY_PLUGINS = [
1284
- "browser", "canvas", "memory-core", "memory-wiki",
1285
  "active-memory", "workboard", "codex", "cua-computer",
1286
  "diagnostics-otel", "document-extract", "file-transfer",
1287
  "geolocation", "imap", "linux-node", "logbook",
@@ -1298,6 +1298,15 @@ class OpenClawFullSync:
1298
  data["plugins"]["entries"][pid] = entry
1299
  print(f"[SYNC] Disabled {len(HEAVY_PLUGINS)} heavy plugins to speed startup")
1300
 
 
 
 
 
 
 
 
 
 
1301
  # acpx config
1302
  data["plugins"]["entries"]["acpx"] = {
1303
  "enabled": True,
 
1273
 
1274
  # ── Plugin allowlist (STRICT) ──
1275
  data.setdefault("plugins", {}).setdefault("entries", {})
1276
+ plugin_allow = ["telegram", "acpx", "github", "memory-core"]
1277
  if A2A_PEERS:
1278
  plugin_allow.append("a2a-gateway")
1279
  data["plugins"]["allow"] = plugin_allow
 
1281
 
1282
  # Explicitly disable heavy plugins
1283
  HEAVY_PLUGINS = [
1284
+ "browser", "canvas", "memory-wiki",
1285
  "active-memory", "workboard", "codex", "cua-computer",
1286
  "diagnostics-otel", "document-extract", "file-transfer",
1287
  "geolocation", "imap", "linux-node", "logbook",
 
1298
  data["plugins"]["entries"][pid] = entry
1299
  print(f"[SYNC] Disabled {len(HEAVY_PLUGINS)} heavy plugins to speed startup")
1300
 
1301
+ # Memory engine must stay available — earlier boots persisted
1302
+ # memory-core.enabled=false, so force it back on every boot.
1303
+ mem_entry = data["plugins"]["entries"].get("memory-core", {})
1304
+ if not isinstance(mem_entry, dict):
1305
+ mem_entry = {}
1306
+ mem_entry["enabled"] = True
1307
+ data["plugins"]["entries"]["memory-core"] = mem_entry
1308
+ print("[SYNC] memory-core plugin enabled (memory engine active)")
1309
+
1310
  # acpx config
1311
  data["plugins"]["entries"]["acpx"] = {
1312
  "enabled": True,