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 +4 -4
- data/CHANGELOG.md +11 -1
- data/lib/legion/gaia/routes.rb +8 -14
- data/lib/legion/gaia/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz: '
|
|
3
|
+
metadata.gz: f7adc19980f0a22cd2a66ce9a7d76d09322b4e03ed02281d8f38e08fd1094417
|
|
4
|
+
data.tar.gz: '038b5dc7cf7177fb3c7708a297993037e8c755577aabbecf00487cb68dbb477f'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3739abb6d354660faa2ca878b7d59658f1cf551ed717ee9a73dbe0b994d66c381b3652e73bdc16e95dd450bd56d5f1b6038c29f0a76e5597b0757ffa55f66c3a
|
|
7
|
+
data.tar.gz: 1cbda4d21a05c55a95338fdf9ec9e6d956147971f1bfa6bd8572e37a5cf3a0a6603ffb6bd3958eff780c03356f2209e5c779ca748e80dac5d2dbd6407b545682
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [
|
|
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
|
|
data/lib/legion/gaia/routes.rb
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
module Legion
|
|
11
11
|
module Gaia
|
|
12
12
|
module Routes
|
|
13
|
-
def self.registered(app)
|
|
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}"
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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]}"
|
|
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}"
|
|
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}"
|
|
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
|
data/lib/legion/gaia/version.rb
CHANGED