lex-agentic-memory 0.1.18 → 0.1.19

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: 0fa1a3b9e2411cb4b3e12ac5947bf347024f55175d5c91be1d63c6a246ac78df
4
- data.tar.gz: c9646ceb246178c1a5f14355bb50dc9da9f63a2c201e727b71a25e43c1e954fe
3
+ metadata.gz: 440d04008d2af919b940d155b035cf4d1cac9d8e67361792008b166504ed9a2a
4
+ data.tar.gz: 0f0d8fade5d070d635b707e792501d9b88624205940b32b9babf194c33970620
5
5
  SHA512:
6
- metadata.gz: c69c9a1c2141a946864162aa66a28b37a77b23f26c9948471f38f1126d31d95287ce6880bda5c64dd00b2954eb155a87e947839ccf12dfa4178f43e11cf42856
7
- data.tar.gz: dc660b2c429b50292af69c55c11b5723f01797f1caefd3b3c044663c425f2ccea60c8c6f7be06b22cbd35dd4d2e0afa645cc7996d368c8f057013692713053f1
6
+ metadata.gz: d6695c59a99700fb47490bafbf29e9749fca9f9b523d38ec67ee31f3a522f633fc0c5a36d0cdbd6f362e6bbb78ac35a896a2bcf9023f16a3c3d6d9cb25ea6279
7
+ data.tar.gz: 7e79c8329c3de95c22a832144d729c5430586048727a88762698df887fb8b9a06689391f9539ac081375082b19e76b8805dcb807554d7f30df342cd3b1eb00f1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.19] - 2026-03-31
4
+
5
+ ### Fixed
6
+ - `postgres_store.retrieve_by_domain` now accepts `min_strength:` keyword to match in-memory store interface
7
+ - `postgres_store.all_traces` now accepts `min_strength:` keyword to match in-memory store interface
8
+ - Both methods now filter by strength in the SQL query for consistency with Store and CacheStore
9
+
3
10
  ## [0.1.18] - 2026-03-30
4
11
 
5
12
  ### Fixed
@@ -76,11 +76,12 @@ module Legion
76
76
  end
77
77
 
78
78
  # Retrieve traces whose domain_tags column contains the given tag string.
79
- def retrieve_by_domain(tag, limit: 50)
79
+ def retrieve_by_domain(tag, min_strength: 0.0, limit: 50)
80
80
  return [] unless db_ready?
81
81
 
82
82
  rows = traces_ds
83
83
  .where(Sequel.like(:domain_tags, "%#{tag}%"))
84
+ .where { strength >= min_strength }
84
85
  .order(Sequel.desc(:strength))
85
86
  .limit(limit)
86
87
  .all
@@ -91,10 +92,12 @@ module Legion
91
92
  end
92
93
 
93
94
  # Return all traces for this tenant.
94
- def all_traces
95
+ def all_traces(min_strength: 0.0)
95
96
  return [] unless db_ready?
96
97
 
97
- traces_ds.all.map { |r| deserialize_trace(r) }
98
+ ds = traces_ds
99
+ ds = ds.where { strength >= min_strength } if min_strength > 0.0
100
+ ds.all.map { |r| deserialize_trace(r) }
98
101
  rescue StandardError => e
99
102
  log_warn("all_traces failed: #{e.message}")
100
103
  []
@@ -4,7 +4,7 @@ module Legion
4
4
  module Extensions
5
5
  module Agentic
6
6
  module Memory
7
- VERSION = '0.1.18'
7
+ VERSION = '0.1.19'
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.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity