collavre_openclaw 0.6.4 → 0.6.5

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: '028dc9b0f4d77120602482cb67e02ccb7d54efa1ce69d850452a4fe548923e26'
4
- data.tar.gz: e3caf613040f7572a727ed5abd89dcb14f5ddc336ebd962006b4ad67bffed20a
3
+ metadata.gz: badc8487c94ad358c79bae0c570927f65fc7bc43d27352cddc72f2d9831eb051
4
+ data.tar.gz: 45f1ff5326c7c843b1d39bed2a0b2dcd7bd1ae81fa10114c1a3eaa38bff2af4c
5
5
  SHA512:
6
- metadata.gz: 69854771a368ea6200b04126e70d4939b0b70783adaae82c6ed43998879f009d3d87fed40c84c3a3f4aa0d9e90f08b350f23c84f427127e9c71236ee051744c0
7
- data.tar.gz: 9f2ef5b7a2f8d3980ddcb81c878a65a760545b35374e500e319b04131886297a95dfe864b8dccf617b383a15b6b66a8f48029af2f4cad35163b5bb38168c8dee
6
+ metadata.gz: 78afcd285c356f0d1238a769efee1b0bff7522713c081ea0daf0cefd95c668f1af2c5e7d2bea69ec7328e22d4f5da5fee51f04c13e7e5221a94e70cc12461155
7
+ data.tar.gz: 8f64b29e88d6578797377dd6140bf00c6d1b3d6fc06885efdd4b62a3229feafc051970bc6f16b7c9be3080c4fda3e04e8c4b1fc5c4cb4530daa4ccdd6c1b9652
@@ -11,5 +11,16 @@ Rails.application.config.to_prepare do
11
11
  Collavre::AiClient.register_adapter("openclaw", CollavreOpenclaw::OpenclawAdapter)
12
12
  Rails.logger.info("[CollavreOpenclaw] Registered OpenClaw adapter")
13
13
  end
14
+
15
+ # OpenClaw uses stateful, incremental sessions and appears in the AI-agent
16
+ # vendor dropdown. Register both into core so core needs no OpenClaw name of
17
+ # its own to decide session support or list the vendor. Both registrations
18
+ # are idempotent, so re-running on reload is safe.
19
+ if Collavre::AiClient.respond_to?(:register_session_vendor)
20
+ Collavre::AiClient.register_session_vendor("openclaw")
21
+ end
22
+ if Collavre::AiClient.respond_to?(:register_vendor_option)
23
+ Collavre::AiClient.register_vendor_option("OpenClaw", "openclaw")
24
+ end
14
25
  end
15
26
  end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ # An OpenClaw gateway error banner marks a task result the agent never actually
4
+ # produced, so the trigger loop must retry it without consuming an iteration.
5
+ # Register the OpenClaw-specific signature into the core trigger-loop infra-error
6
+ # registry so core keeps only vendor-neutral patterns. Runs on boot and every
7
+ # reload; registration is idempotent.
8
+ Rails.application.config.to_prepare do
9
+ if defined?(Collavre::TriggerLoopCheckJob)
10
+ Collavre::TriggerLoopCheckJob.register_infrastructure_error_pattern(/OpenClaw Error/i)
11
+ end
12
+ end
@@ -1,3 +1,3 @@
1
1
  module CollavreOpenclaw
2
- VERSION = "0.6.4"
2
+ VERSION = "0.6.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: collavre_openclaw
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Collavre
@@ -92,6 +92,7 @@ files:
92
92
  - config/initializers/ai_client_extension.rb
93
93
  - config/initializers/integration_settings.rb
94
94
  - config/initializers/session_abort.rb
95
+ - config/initializers/trigger_loop_patterns.rb
95
96
  - config/locales/en.yml
96
97
  - config/locales/ko.yml
97
98
  - config/routes.rb