lex-apollo 0.4.0 → 0.4.2

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: 8e6e95c43807f0f9a3eaaaaa0a0d4cadafdbf279acb4829fe0c0ef6ce909e6bc
4
- data.tar.gz: c336ca5086ffc85995bf6a8759799d48d65edf905f12458de4aa63c24608d0fe
3
+ metadata.gz: 58044db4866170db60e7607b6dd9d5afcf56118c5d8373c180d9618480b59c82
4
+ data.tar.gz: c29bca810b4c41aed2093ee2ee64d12608d53a12d0401a47911b25ca2b9c3705
5
5
  SHA512:
6
- metadata.gz: 84bfc36365061507970f0fb99c084a2729702041b416211791c90309e1f9e3ce54f1ba2fb9986ebf4e5412d327822ce82f51f83274df6cff758e4564d4786f84
7
- data.tar.gz: ede777694a9e166d0ce8b8862f444eb02c231204a89c265f850503ca78a8001b89bf3430995a1fb2ca324040467831dee73a5563caa81105a67956721507b505
6
+ metadata.gz: 2f72472b867e644ca58175c5fb7d3d0300a44e2e52fca0d75fd8000d2deae5ef524a29a93418f3be20d074037493d541bd2ddeb7c3b4c0cbdaf0869934147ec6
7
+ data.tar.gz: 0aeee79c5734195652092460791ea4089a8c4e71bcf141f33bb01c0c478dc4ddb44e26410e0d7607270f7fec172131687b58c794c0b9f60bad95a44c676257b2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.4.2] - 2026-03-24
4
+
5
+ ### Fixed
6
+ - fix `undefined method 'scan_and_ingest' for module EntityExtractor` in EntityWatchdog actor — self-contained actors must override `runner_class` to return `self.class` so the framework dispatches to the actor instance, not the runner module
7
+
8
+ ## [0.4.1] - 2026-03-23
9
+
10
+ ### Changed
11
+ - route llm calls through pipeline when available, add caller identity for attribution
12
+
3
13
  ## [0.4.0] - 2026-03-23
4
14
 
5
15
  ### Added
@@ -16,7 +16,7 @@ module Legion
16
16
  TASK_LOG_LOOKBACK_SECONDS = 300
17
17
  TASK_LOG_LIMIT = 50
18
18
 
19
- def runner_class = Legion::Extensions::Apollo::Runners::EntityExtractor
19
+ def runner_class = self.class
20
20
  def runner_function = 'scan_and_ingest'
21
21
  def time = 120
22
22
  def run_now? = false
@@ -20,7 +20,8 @@ module Legion
20
20
  messages: [
21
21
  { role: 'user', content: entity_extraction_prompt(text: text, entity_types: types) }
22
22
  ],
23
- schema: entity_schema
23
+ schema: entity_schema,
24
+ caller: { extension: 'lex-apollo', runner: 'entity_extractor' }
24
25
  )
25
26
 
26
27
  raw_entities = result.dig(:data, :entities) || []
@@ -310,7 +310,8 @@ module Legion
310
310
  { role: 'system', content: 'Do these two statements contradict each other? Return JSON.' },
311
311
  { role: 'user', content: "A: #{content_a}\n\nB: #{content_b}" }
312
312
  ],
313
- schema: { type: 'object', properties: { contradicts: { type: 'boolean' } } }
313
+ schema: { type: 'object', properties: { contradicts: { type: 'boolean' } } },
314
+ caller: { extension: 'lex-apollo', runner: 'knowledge' }
314
315
  )
315
316
  result[:data]&.dig(:contradicts) == true
316
317
  rescue StandardError
@@ -3,7 +3,7 @@
3
3
  module Legion
4
4
  module Extensions
5
5
  module Apollo
6
- VERSION = '0.4.0'
6
+ VERSION = '0.4.2'
7
7
  end
8
8
  end
9
9
  end
@@ -23,8 +23,8 @@ RSpec.describe Legion::Extensions::Apollo::Actor::EntityWatchdog do
23
23
  subject(:actor) { described_class.allocate }
24
24
 
25
25
  describe 'actor configuration' do
26
- it 'uses EntityExtractor as runner_class' do
27
- expect(actor.runner_class).to eq(Legion::Extensions::Apollo::Runners::EntityExtractor)
26
+ it 'uses self.class as runner_class for self-contained dispatch' do
27
+ expect(actor.runner_class).to eq(described_class)
28
28
  end
29
29
 
30
30
  it 'runs scan_and_ingest function' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lex-apollo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity