lex-agentic-self 0.1.7 → 0.1.8

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: a2d4ca650c6d9e1d883d1d059bc26b7bbe0444fbce02dae2088006734fa200fc
4
- data.tar.gz: 2c58a7bb28ca2b0f5a69a65f3cce6b4d76b472b88414b4c06dde4c369c17b4b8
3
+ metadata.gz: 0c660e26600da2bf1c6e0ec3ff8c8d81a1eabebc3859d3de838e30f22b4ba91d
4
+ data.tar.gz: ec3d26a5dd95ad077de1880fd60f48d23ff0a34aa841f82cda7bcbfdad99e5d0
5
5
  SHA512:
6
- metadata.gz: e9944a49735cf91c810c59d62233029f47f953714ac9854c18229b85b18f816b8f5dc441024e1c6778e663d3979b7c59afd889535903c1641dbc5b7267b69ffc
7
- data.tar.gz: 0d6ae8a1aa86bcdf47d015c8174e74c148c15598fdb1fba6b30fe3ca15f1aa2c06620f67477a20aadaa1d37de707feebbb0c857c18e07defe46d7e677aa36557
6
+ metadata.gz: ffbe4a9cee92f015c0d167fa98327aceb9641c8dd448d99f0649ff42e87eb531b51eec961729f615e274c2854422cdb0b3e2cc77d02f456b9ceeb944a6088ebb
7
+ data.tar.gz: f418467e5090f41939297b8907288f4ef29b95fbc9def510bbc1efb503abd79cdf8a3420b7ec2ce707d5d29d06e0569531da88395658a3901b80a8d7356b53b9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.8] - 2026-03-30
4
+
5
+ ### Fixed
6
+ - fix `NoMethodError: undefined method 'local_data_connected?'` in Identity::Fingerprint by including `Legion::Data::Helper` and adding `respond_to?` guard in `local_available?`
7
+
3
8
  ## [0.1.7] - 2026-03-30
4
9
 
5
10
  ### Changed
@@ -10,6 +10,8 @@ module Legion
10
10
  module Identity
11
11
  module Helpers
12
12
  class Fingerprint
13
+ include Legion::Data::Helper if defined?(Legion::Data::Helper)
14
+
13
15
  attr_reader :model, :observation_count, :entropy_history
14
16
 
15
17
  def initialize
@@ -159,7 +161,7 @@ module Legion
159
161
  private
160
162
 
161
163
  def local_available?
162
- defined?(Legion::Data::Local) && local_data_connected?
164
+ defined?(Legion::Data::Local) && respond_to?(:local_data_connected?) && local_data_connected?
163
165
  end
164
166
  end
165
167
  end
@@ -4,7 +4,7 @@ module Legion
4
4
  module Extensions
5
5
  module Agentic
6
6
  module Self
7
- VERSION = '0.1.7'
7
+ VERSION = '0.1.8'
8
8
  end
9
9
  end
10
10
  end
@@ -63,4 +63,33 @@ RSpec.describe Legion::Extensions::Agentic::Self::Identity::Helpers::Fingerprint
63
63
  expect(fp.maturity).to eq(:developing)
64
64
  end
65
65
  end
66
+
67
+ describe '#load_from_local' do
68
+ context 'when local persistence is unavailable' do
69
+ before do
70
+ allow_any_instance_of(described_class).to receive(:local_data_connected?).and_return(false)
71
+ end
72
+
73
+ it 'initializes without raising' do
74
+ expect { described_class.new }.not_to raise_error
75
+ end
76
+
77
+ it 'starts with zero observations' do
78
+ fp2 = described_class.new
79
+ expect(fp2.observation_count).to eq(0)
80
+ end
81
+ end
82
+ end
83
+
84
+ describe '#save_to_local' do
85
+ context 'when local persistence is unavailable' do
86
+ before do
87
+ allow(fp).to receive(:local_data_connected?).and_return(false)
88
+ end
89
+
90
+ it 'returns nil when local data is unavailable' do
91
+ expect(fp.save_to_local).to be_nil
92
+ end
93
+ end
94
+ end
66
95
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lex-agentic-self
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity