lex-agentic-memory 0.1.22 → 0.1.23
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: a795b1799756184a81da06e46f2958513f404882292040cb7ebd7d35005d93be
|
|
4
|
+
data.tar.gz: 709c8605a2e70964e91a1a143a89d5469d243a92bd54ad6a47d48b500f4d3a09
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 00c7573a851ec910a6380c7c0723a3aaa684710d5b7fdda2e2d7123c8439ef634d356030b0a11a8e3827b00b6fdc6c622fbc215206bbf35c3671e6f74f8a6f92
|
|
7
|
+
data.tar.gz: 8299132b32423db960b554fadaf63439050de19c76f86767b6555cba014b3e92339e8aebab70abccbfb937c749838a147dcf9df49ba30f7d94b3d19293709be7
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.23] - 2026-04-03
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- Sanitize trace content before SQLite persist: force-decode to BINARY then re-encode UTF-8, strip null bytes — prevents `unrecognized token` SQL errors from unescaped characters
|
|
7
|
+
|
|
3
8
|
## [0.1.22] - 2026-04-03
|
|
4
9
|
|
|
5
10
|
### Changed
|
|
@@ -253,10 +253,13 @@ module Legion
|
|
|
253
253
|
|
|
254
254
|
def serialize_trace_for_db(trace)
|
|
255
255
|
payload = trace[:content_payload] || trace[:content]
|
|
256
|
+
content = payload.is_a?(Hash) ? ::JSON.generate(payload) : payload.to_s
|
|
257
|
+
content = content.dup.force_encoding('BINARY').encode('UTF-8', invalid: :replace, undef: :replace, replace: '')
|
|
258
|
+
.delete("\0")
|
|
256
259
|
{
|
|
257
260
|
trace_id: trace[:trace_id],
|
|
258
261
|
trace_type: trace[:trace_type].to_s,
|
|
259
|
-
content:
|
|
262
|
+
content: content,
|
|
260
263
|
strength: trace[:strength],
|
|
261
264
|
peak_strength: trace[:peak_strength],
|
|
262
265
|
base_decay_rate: trace[:base_decay_rate],
|