legionio 1.4.99 → 1.4.101
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 +12 -0
- data/lib/legion/extensions/actors/base.rb +5 -1
- data/lib/legion/extensions.rb +8 -1
- data/lib/legion/service.rb +3 -1
- data/lib/legion/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: 4a5e67604f3f5f8bf4b49bea289800d891fc4073ac2947adef44760cf1eca2ff
|
|
4
|
+
data.tar.gz: af9fc49a94f6babfde4a69905d3c1da3c3d4cac2856ba71429a4720daadc0334
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2e64d067a8e1dcc4005b2c7640aaf04112b94b0499a661003a8bcd56b80023e7543a6bfcfd81f3642f74fe041ef77bcb3a8dead6216873f94329e3e2c72b32fd
|
|
7
|
+
data.tar.gz: ffe6519b87c9ff5e891ddfeb8f785ace26729f48e840c3bc5fad409dae8b2997b5cd6b074bfb6171447625ea72b1f11a4a31a23747c187171c2c8b750ff7fe21
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Legion Changelog
|
|
2
2
|
|
|
3
|
+
## [1.4.101] - 2026-03-21
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- add post-extension GAIA rediscovery in service boot sequence
|
|
7
|
+
- fix self-contained actor dispatch to call instance methods instead of class methods
|
|
8
|
+
|
|
9
|
+
## [1.4.100] - 2026-03-21
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- `hook_actor` FATAL now logs actor class name and ancestors for debugging unmatched actors
|
|
13
|
+
- `hook_all_actors` logs actor type counts after hooking (subscription/every/poll/once/loop)
|
|
14
|
+
|
|
3
15
|
## [1.4.99] - 2026-03-21
|
|
4
16
|
|
|
5
17
|
### Fixed
|
|
@@ -17,7 +17,11 @@ module Legion
|
|
|
17
17
|
klass = runner_class
|
|
18
18
|
klass = Kernel.const_get(klass) if klass.is_a?(String)
|
|
19
19
|
func = respond_to?(:runner_function) ? runner_function : :action
|
|
20
|
-
klass.
|
|
20
|
+
if klass == self.class
|
|
21
|
+
send(func, **args)
|
|
22
|
+
else
|
|
23
|
+
klass.send(func, **args)
|
|
24
|
+
end
|
|
21
25
|
rescue StandardError => e
|
|
22
26
|
Legion::Logging.error e.message
|
|
23
27
|
Legion::Logging.error e.backtrace
|
data/lib/legion/extensions.rb
CHANGED
|
@@ -177,6 +177,13 @@ module Legion
|
|
|
177
177
|
Legion::Logging.info "Hooking #{@pending_actors.size} deferred actors"
|
|
178
178
|
@pending_actors.each { |actor| hook_actor(**actor) }
|
|
179
179
|
@pending_actors = []
|
|
180
|
+
Legion::Logging.info(
|
|
181
|
+
"Actors hooked: subscription:#{@subscription_tasks.count}," \
|
|
182
|
+
"every:#{@timer_tasks.count}," \
|
|
183
|
+
"poll:#{@poll_tasks.count}," \
|
|
184
|
+
"once:#{@once_tasks.count}," \
|
|
185
|
+
"loop:#{@loop_tasks.count}"
|
|
186
|
+
)
|
|
180
187
|
@loaded_extensions&.each { |name| Catalog.transition(name, :running) }
|
|
181
188
|
end
|
|
182
189
|
|
|
@@ -216,7 +223,7 @@ module Legion
|
|
|
216
223
|
elsif actor_class.ancestors.include? Legion::Extensions::Actors::Subscription
|
|
217
224
|
hook_subscription_actor(extension_hash, size, opts)
|
|
218
225
|
else
|
|
219
|
-
Legion::Logging.fatal
|
|
226
|
+
Legion::Logging.fatal "#{actor_class} did not match any actor classes (ancestors: #{actor_class.ancestors.first(5).map(&:to_s)})"
|
|
220
227
|
end
|
|
221
228
|
end
|
|
222
229
|
|
data/lib/legion/service.rb
CHANGED
|
@@ -11,7 +11,7 @@ module Legion
|
|
|
11
11
|
base.freeze
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
def initialize(transport: true, cache: true, data: true, supervision: true, extensions: true, # rubocop:disable Metrics/ParameterLists,Metrics/MethodLength
|
|
14
|
+
def initialize(transport: true, cache: true, data: true, supervision: true, extensions: true, # rubocop:disable Metrics/CyclomaticComplexity,Metrics/ParameterLists,Metrics/MethodLength,Metrics/PerceivedComplexity
|
|
15
15
|
crypt: true, api: true, llm: true, gaia: true, log_level: 'info', http_port: nil)
|
|
16
16
|
setup_logging(log_level: log_level)
|
|
17
17
|
Legion::Logging.debug('Starting Legion::Service')
|
|
@@ -66,6 +66,8 @@ module Legion
|
|
|
66
66
|
Legion::Readiness.mark_ready(:extensions)
|
|
67
67
|
end
|
|
68
68
|
|
|
69
|
+
Legion::Gaia.registry&.rediscover if gaia && defined?(Legion::Gaia) && Legion::Gaia.started?
|
|
70
|
+
|
|
69
71
|
Legion::Extensions::Memory::Helpers::ErrorTracer.setup if defined?(Legion::Extensions::Memory::Helpers::ErrorTracer)
|
|
70
72
|
|
|
71
73
|
Legion::Crypt.cs if crypt
|
data/lib/legion/version.rb
CHANGED