lex-agentic-memory 0.1.28 → 0.1.29
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a0af0290643c859f7d436f39e4b346775fee6e4c361f6d7e7aebc6ac4a248c53
|
|
4
|
+
data.tar.gz: 1dbede8a5e1531656c5bad3bcd9621dff10b457fbc18ee21a19a564d39ee455c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 840af0aca9ce3f774be7683ca45ae8ba530863989336cde04bf0bd89b5ce6c0b2722626acec8a69a3ca76415dd40f5cf52ae0f3e8d250e223ed49a45d3d747f9
|
|
7
|
+
data.tar.gz: 7311721dc1a95e18f0a50c7cb0693f3e1bcfd067692a91d375a95d1ad60ead085655c4c8060c3b7d2e7a38e290eac22c55f47a784bee72f64ed66978fd8db023
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.29] - 2026-04-22
|
|
4
|
+
### Fixed
|
|
5
|
+
- `parse_db_content` no longer attempts JSON parse on plain-text content — checks for `{`/`[` prefix before parsing, returns raw string for non-JSON content without logging errors
|
|
6
|
+
|
|
3
7
|
## [0.1.28] - 2026-04-22
|
|
4
8
|
### Fixed
|
|
5
9
|
- Snapshot save/restore now logs warnings when Self/Affect module methods are unavailable instead of silently skipping
|
|
@@ -316,10 +316,15 @@ module Legion
|
|
|
316
316
|
end
|
|
317
317
|
|
|
318
318
|
def parse_db_content(raw)
|
|
319
|
-
|
|
320
|
-
|
|
319
|
+
return raw unless raw.is_a?(String)
|
|
320
|
+
|
|
321
|
+
stripped = raw.strip
|
|
322
|
+
return raw unless stripped.start_with?('{', '[')
|
|
323
|
+
|
|
324
|
+
parsed = Legion::JSON.load(stripped)
|
|
325
|
+
parsed.is_a?(Hash) || parsed.is_a?(Array) ? parsed : raw
|
|
321
326
|
rescue StandardError => e
|
|
322
|
-
log.
|
|
327
|
+
log.debug "[trace_persistence] malformed JSON in content column, returning raw: #{e.message}"
|
|
323
328
|
raw
|
|
324
329
|
end
|
|
325
330
|
|