legion-gaia 0.9.52 → 0.9.54

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: 8390ab05b469136c10d656240dd01aed52856c2eb6ad853b566c1bf6712cc351
4
- data.tar.gz: '08fa057814b2eb00550a6afb0db16074871a0974a026aa2c8b2caa23768921f4'
3
+ metadata.gz: f7adc19980f0a22cd2a66ce9a7d76d09322b4e03ed02281d8f38e08fd1094417
4
+ data.tar.gz: '038b5dc7cf7177fb3c7708a297993037e8c755577aabbecf00487cb68dbb477f'
5
5
  SHA512:
6
- metadata.gz: 0c2a1e84bf1839d3b50db07766243a15cd8bca7c56c6f14bbe68a7c4e9130a414fa745a06d0696901d319b784435943e5965b8397607c19ac9cbaa69bc534424
7
- data.tar.gz: 9be977c4a11659433a0e6e7cbe11be7f5aee4692541b46b5be6f5c2856d38f9b1f1991b1653332847b8a57a7a5787b426e720d8b6940c136cb5c0d12b1f6e49d
6
+ metadata.gz: 3739abb6d354660faa2ca878b7d59658f1cf551ed717ee9a73dbe0b994d66c381b3652e73bdc16e95dd450bd56d5f1b6038c29f0a76e5597b0757ffa55f66c3a
7
+ data.tar.gz: 1cbda4d21a05c55a95338fdf9ec9e6d956147971f1bfa6bd8572e37a5cf3a0a6603ffb6bd3958eff780c03356f2209e5c779ca748e80dac5d2dbd6407b545682
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  # Changelog
2
2
 
3
- ## [Unreleased]
3
+ ## [0.9.54] - 2026-05-09
4
+
5
+ ### Removed
6
+ - Unnecessary `defined?(Legion::Logging)` guards from route handlers — legion-logging is a hard gemspec dependency and always available
7
+
8
+ ## [0.9.53] - 2026-05-08
9
+
10
+ ### Fixed
11
+ - Count array-backed Volition intentions when logging cognitive markers so normal action-selection results do not raise `NoMethodError`.
12
+ - Skip live Apollo-backed partner reflection for idle `action_selection` argument building when there are no signals or partner observations, preventing zero-signal ticks from embedding relationship lookup queries.
13
+ - Stop idle partner-absence checks from polling live Apollo-backed attachment reflection after sustained no-observation heartbeats.
4
14
 
5
15
  ## [0.9.52] - 2026-05-07
6
16
 
@@ -10,7 +10,7 @@
10
10
  module Legion
11
11
  module Gaia
12
12
  module Routes
13
- def self.registered(app) # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
13
+ def self.registered(app)
14
14
  app.helpers do # rubocop:disable Metrics/BlockLength
15
15
  unless method_defined?(:gaia_available?)
16
16
  define_method(:gaia_available?) do
@@ -24,7 +24,7 @@ module Legion
24
24
 
25
25
  Legion::Gaia::SensoryBuffer::MAX_BUFFER_SIZE
26
26
  rescue NameError => e
27
- Legion::Logging.debug "[gaia] route helpers failed #{e.class}: #{e.message}" if defined?(Legion::Logging)
27
+ Legion::Logging.debug "[gaia] route helpers failed #{e.class}: #{e.message}"
28
28
  nil
29
29
  end
30
30
  end
@@ -134,16 +134,12 @@ module Legion
134
134
 
135
135
  def self.register_teams_webhook_route(app)
136
136
  app.post '/api/channels/teams/webhook' do
137
- if defined?(Legion::Logging)
138
- Legion::Logging.debug "API: POST /api/channels/teams/webhook params=#{params.keys}"
139
- end
137
+ Legion::Logging.debug "API: POST /api/channels/teams/webhook params=#{params.keys}"
140
138
  body = request.body.read
141
139
 
142
140
  adapter = Routes.teams_adapter
143
141
  unless adapter
144
- if defined?(Legion::Logging)
145
- Legion::Logging.warn 'API POST /api/channels/teams/webhook returned 503: teams adapter not available'
146
- end
142
+ Legion::Logging.warn 'API POST /api/channels/teams/webhook returned 503: teams adapter not available'
147
143
  halt 503, json_response({ error: 'teams adapter not available' }, status_code: 503)
148
144
  end
149
145
 
@@ -152,14 +148,12 @@ module Legion
152
148
  auth_header: request.env['HTTP_AUTHORIZATION']
153
149
  )
154
150
  unless result[:status].to_i == 200
155
- if defined?(Legion::Logging)
156
- Legion::Logging.warn "API POST /api/channels/teams/webhook returned #{result[:status]}: #{result[:type]}"
157
- end
151
+ Legion::Logging.warn "API POST /api/channels/teams/webhook returned #{result[:status]}: #{result[:type]}"
158
152
  halt result[:status], json_response({ error: result[:type], detail: result[:detail] },
159
153
  status_code: result[:status])
160
154
  end
161
155
 
162
- Legion::Logging.info "API: accepted Teams webhook frame_id=#{result[:frame_id]}" if defined?(Legion::Logging)
156
+ Legion::Logging.info "API: accepted Teams webhook frame_id=#{result[:frame_id]}"
163
157
  json_response({ status: 'accepted', frame_id: result[:frame_id] })
164
158
  end
165
159
  end
@@ -170,7 +164,7 @@ module Legion
170
164
 
171
165
  Legion::Gaia.channel_registry.adapter_for(:teams)
172
166
  rescue StandardError => e
173
- Legion::Logging.warn "Gaia#teams_adapter failed: #{e.message}" if defined?(Legion::Logging)
167
+ Legion::Logging.warn "Gaia#teams_adapter failed: #{e.message}"
174
168
  nil
175
169
  end
176
170
 
@@ -194,7 +188,7 @@ module Legion
194
188
  )
195
189
 
196
190
  Legion::Gaia.ingest(frame)
197
- Legion::Logging.info "API: gaia ingest frame_id=#{frame.id} identity=#{identity}" if defined?(Legion::Logging)
191
+ Legion::Logging.info "API: gaia ingest frame_id=#{frame.id} identity=#{identity}"
198
192
  json_response({ status: 'accepted', frame_id: frame.id })
199
193
  end
200
194
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Legion
4
4
  module Gaia
5
- VERSION = '0.9.52'
5
+ VERSION = '0.9.54'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: legion-gaia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.52
4
+ version: 0.9.54
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity