lex-agentic-memory 0.1.17 → 0.1.18
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: 0fa1a3b9e2411cb4b3e12ac5947bf347024f55175d5c91be1d63c6a246ac78df
|
|
4
|
+
data.tar.gz: c9646ceb246178c1a5f14355bb50dc9da9f63a2c201e727b71a25e43c1e954fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c69c9a1c2141a946864162aa66a28b37a77b23f26c9948471f38f1126d31d95287ce6880bda5c64dd00b2954eb155a87e947839ccf12dfa4178f43e11cf42856
|
|
7
|
+
data.tar.gz: dc660b2c429b50292af69c55c11b5723f01797f1caefd3b3c044663c425f2ccea60c8c6f7be06b22cbd35dd4d2e0afa645cc7996d368c8f057013692713053f1
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.18] - 2026-03-30
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- fix `NameError: undefined local variable or method 'log'` in ErrorTracer.setup by replacing `log.info` with `Legion::Logging.info` — singleton module context has no `Legion::Logging::Helper` mixin
|
|
7
|
+
|
|
3
8
|
## [0.1.17] - 2026-03-30
|
|
4
9
|
|
|
5
10
|
### Changed
|
|
@@ -21,7 +21,7 @@ module Legion
|
|
|
21
21
|
@runner = Object.new.extend(Legion::Extensions::Agentic::Memory::Trace::Runners::Traces)
|
|
22
22
|
wrap_logging_methods
|
|
23
23
|
@active = true
|
|
24
|
-
|
|
24
|
+
Legion::Logging.info '[memory] ErrorTracer active — errors/fatals will become episodic traces'
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
def active?
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'spec_helper'
|
|
4
|
+
|
|
5
|
+
RSpec.describe Legion::Extensions::Agentic::Memory::Trace::Helpers::ErrorTracer do
|
|
6
|
+
# Capture originals before any example runs so we can restore after each
|
|
7
|
+
original_error = Legion::Logging.method(:error)
|
|
8
|
+
original_fatal = Legion::Logging.method(:fatal)
|
|
9
|
+
|
|
10
|
+
before do
|
|
11
|
+
# Reset state between examples
|
|
12
|
+
described_class.instance_variable_set(:@active, nil)
|
|
13
|
+
described_class.instance_variable_set(:@recent, nil)
|
|
14
|
+
described_class.instance_variable_set(:@runner, nil)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
after do
|
|
18
|
+
# Restore logging singleton methods to prevent cross-test side effects
|
|
19
|
+
Legion::Logging.define_singleton_method(:error, &original_error)
|
|
20
|
+
Legion::Logging.define_singleton_method(:fatal, &original_fatal)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
describe '.setup' do
|
|
24
|
+
it 'activates without raising' do
|
|
25
|
+
expect { described_class.setup }.not_to raise_error
|
|
26
|
+
expect(described_class.active?).to be true
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
it 'is idempotent' do
|
|
30
|
+
described_class.setup
|
|
31
|
+
described_class.setup
|
|
32
|
+
expect(described_class.active?).to be true
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe '.active?' do
|
|
37
|
+
it 'returns false before setup' do
|
|
38
|
+
expect(described_class.active?).to be false
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
it 'returns true after setup' do
|
|
42
|
+
described_class.setup
|
|
43
|
+
expect(described_class.active?).to be true
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
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.
|
|
4
|
+
version: 0.1.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Esity
|
|
@@ -461,6 +461,7 @@ files:
|
|
|
461
461
|
- spec/legion/extensions/agentic/memory/trace/batch_decay_spec.rb
|
|
462
462
|
- spec/legion/extensions/agentic/memory/trace/client_spec.rb
|
|
463
463
|
- spec/legion/extensions/agentic/memory/trace/helpers/decay_spec.rb
|
|
464
|
+
- spec/legion/extensions/agentic/memory/trace/helpers/error_tracer_spec.rb
|
|
464
465
|
- spec/legion/extensions/agentic/memory/trace/helpers/hot_tier_spec.rb
|
|
465
466
|
- spec/legion/extensions/agentic/memory/trace/helpers/postgres_store_spec.rb
|
|
466
467
|
- spec/legion/extensions/agentic/memory/trace/helpers/snapshot_spec.rb
|