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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 440d04008d2af919b940d155b035cf4d1cac9d8e67361792008b166504ed9a2a
|
|
4
|
+
data.tar.gz: 0f0d8fade5d070d635b707e792501d9b88624205940b32b9babf194c33970620
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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
|
[]
|