lingshu-skill 5.54.0 → 5.56.0
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/CHANGELOG.md +57 -0
- package/README.md +1 -1
- package/SKILL-lite.md +1 -1
- package/SKILL-tiny.md +1 -1
- package/SKILL.md +1 -1
- package/assets/panel.html +5 -1
- package/package.json +1 -1
- package/scripts/astrbot_plugin_lingshu/CHECKSUMS.json +9 -9
- package/scripts/astrbot_plugin_lingshu/engine/CHANGELOG.md +57 -0
- package/scripts/astrbot_plugin_lingshu/engine/README.md +1 -1
- package/scripts/astrbot_plugin_lingshu/engine/SKILL-lite.md +1 -1
- package/scripts/astrbot_plugin_lingshu/engine/SKILL-tiny.md +1 -1
- package/scripts/astrbot_plugin_lingshu/engine/SKILL.md +1 -1
- package/scripts/astrbot_plugin_lingshu/engine/assets/panel.html +5 -1
- package/scripts/astrbot_plugin_lingshu/engine/scripts/cli.py +175 -42
- package/scripts/astrbot_plugin_lingshu/engine/scripts/memory.py +6587 -6583
- package/scripts/astrbot_plugin_lingshu/engine/scripts/persona.py +6 -0
- package/scripts/cli.py +175 -42
- package/scripts/memory.py +6587 -6583
- package/scripts/persona.py +6 -0
package/scripts/persona.py
CHANGED
|
@@ -348,6 +348,12 @@ def load_persona() -> dict:
|
|
|
348
348
|
_good["state"] = _merged
|
|
349
349
|
p = _good
|
|
350
350
|
log_event("persona", "检测到人格空态,已自动从 persona.lastgood.json 回滚", level="warn")
|
|
351
|
+
# AUTOH EAL-COMMIT(v5.56):立即写回盘,否则下次 load 又读到空态 →
|
|
352
|
+
# 反复回滚 + 反复告警(实测 5 分钟刷 78 条 warn)。写回失败不影响返回值。
|
|
353
|
+
try:
|
|
354
|
+
atomic_json(HOME / "persona.json", _good)
|
|
355
|
+
except Exception:
|
|
356
|
+
pass
|
|
351
357
|
except Exception:
|
|
352
358
|
pass
|
|
353
359
|
|