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: a4a726ce7792c2342e46df371973c90e78d11957ec56c76f4ab6c2f7c8c31b7a
4
- data.tar.gz: 2fab727488f18d34881ff4805dcf5452b4a2fd3bde78a5924f5a638f4440b1c1
3
+ metadata.gz: a0af0290643c859f7d436f39e4b346775fee6e4c361f6d7e7aebc6ac4a248c53
4
+ data.tar.gz: 1dbede8a5e1531656c5bad3bcd9621dff10b457fbc18ee21a19a564d39ee455c
5
5
  SHA512:
6
- metadata.gz: ca13a314ea5c7eb0895bb98e36da27fd53992a3e66fd9b6e4da0e257a24e532fbd69be957a771d1f84295178b1e5b8fce20d18ec8a2289390474018714956e0d
7
- data.tar.gz: ab7fe39c52cd26ac67567583f0f7c5ffa38cf16f8c0e8def6daeb3d3f93a22363dc0a8f130c8e777fa0545637ea234533a98a57f495cb1fd874b95767ed5e1de
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
- parsed = Legion::JSON.load(raw.to_s)
320
- parsed.is_a?(Hash) ? parsed : raw
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.error "[trace_persistence] deserialize_trace_from_db content: #{e.message}"
327
+ log.debug "[trace_persistence] malformed JSON in content column, returning raw: #{e.message}"
323
328
  raw
324
329
  end
325
330
 
@@ -4,7 +4,7 @@ module Legion
4
4
  module Extensions
5
5
  module Agentic
6
6
  module Memory
7
- VERSION = '0.1.28'
7
+ VERSION = '0.1.29'
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lex-agentic-memory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.28
4
+ version: 0.1.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity