composable_agents 2.1.1 → 2.1.3

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: b7299ba56e92c4bf0581d534cb3a44e855e2cd20d1439aafc1122ed9af730e3c
4
- data.tar.gz: e2dd1933a97bc67dd1b7e413925a01f0ec21501d5cc4bbb2d199134f2811b4a0
3
+ metadata.gz: 6b82cf2e2c4224e28888344a4b352dcbd74433103d15123361c1e88e8717708a
4
+ data.tar.gz: bda57cd1244fb916d68557aea692c52657db06a7d26ad6e578dcb1893923b7a7
5
5
  SHA512:
6
- metadata.gz: f83059ab2ff52e8045cb0a0d48600f01fdb97cba04412430ffe2cc2f87ccbc0d7701475a1dc060e6d09b54515b09758f71d0beb8f9c0104be6c40c22bd0e5755
7
- data.tar.gz: 3edc0016dea4f430e4842b6752882138885adf6c86a67f1a37a17a6f18f38488327be0dacbe04c8412d482cbaac4967f9b5fc27f1cd7d41b825d8516348816ce
6
+ metadata.gz: 07c251a27221c7a59785f9c5ab442b97c3c6679ece82bca14057112e70021b3a8878c23b6aa8cf36adda474a158a64491e75d4c78228c6ce98886f3fafba8327
7
+ data.tar.gz: 8a758b5c34330e777253e19598e72b15705d3c81445df788fba73d79edcb3354693e3b5aa6ce85ff794056493128943510afb095d7b6ed725e403af0241e91e8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
1
+ # [v2.1.3](https://github.com/Muriel-Salvan/composable_agents/compare/v2.1.2...v2.1.3) (2026-10-27 13:52:46)
2
+
3
+ ### Patches
4
+
5
+ * [compose: serialize agent options to plain array for JSON persistence](https://github.com/Muriel-Salvan/composable_agents/commit/d460d3b3eb8d8150258326dab169d24e045488fb)
6
+
7
+ # [v2.1.2](https://github.com/Muriel-Salvan/composable_agents/compare/v2.1.1...v2.1.2) (2026-10-27 13:29:45)
8
+
9
+ ## Global changes
10
+ ### Patches
11
+
12
+ * [fix(composable_agents): extract error message from Cline logs and update cline-rb dependency to 2.1](https://github.com/Muriel-Salvan/composable_agents/commit/5e1ef24265772a1580c75f9889442b576c665edd)
13
+
14
+ ## Changes for composable_agents
15
+ ### Patches
16
+
17
+ * [fix(composable_agents): extract error message from Cline logs and update cline-rb dependency to 2.1](https://github.com/Muriel-Salvan/composable_agents/commit/5e1ef24265772a1580c75f9889442b576c665edd)
18
+
1
19
  # [v2.1.1](https://github.com/Muriel-Salvan/composable_agents/compare/v2.1.0...v2.1.1) (2026-10-22 15:07:09)
2
20
 
3
21
  ## Global changes
@@ -100,6 +100,18 @@ module ComposableAgents
100
100
 
101
101
  private
102
102
 
103
+ # Extract the error message from a Cline log.
104
+ #
105
+ # @param error_log [Cline::Log] The error log object
106
+ # @return [String] The error message
107
+ def extract_error_message(error_log)
108
+ error_log.err&.message ||
109
+ error_log.error_message ||
110
+ error_log.error_name ||
111
+ error_log.msg ||
112
+ error_log.to_s.strip
113
+ end
114
+
103
115
  # Process a user prompt.
104
116
  #
105
117
  # @param user_prompt [String] The rendered user prompt
@@ -158,7 +170,7 @@ module ComposableAgents
158
170
  end,
159
171
  **@cli_options
160
172
  )
161
- raise "Error: #{result[:error].err.message}".strip if result[:error]
173
+ raise "Error: #{extract_error_message(result[:error])}".strip if result[:error]
162
174
 
163
175
  # Keep the context in case we need to resume it
164
176
  if cline_cli.session&.messages
@@ -181,7 +193,8 @@ module ComposableAgents
181
193
  if content.input
182
194
  {
183
195
  question: content.input.question,
184
- options: content.input.options
196
+ # The options are a Shale collection that JSON can't serialize: keep them as a plain Array
197
+ options: content.input.options&.to_a
185
198
  }.compact
186
199
  end,
187
200
  content: content.content
@@ -2,5 +2,5 @@ module ComposableAgents
2
2
  # @!group Public API
3
3
 
4
4
  # Gem version
5
- VERSION = '2.1.1'
5
+ VERSION = '2.1.3'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: composable_agents
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Muriel Salvan
@@ -29,14 +29,14 @@ dependencies:
29
29
  requirements:
30
30
  - - "~>"
31
31
  - !ruby/object:Gem::Version
32
- version: '2.0'
32
+ version: '2.1'
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '2.0'
39
+ version: '2.1'
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: commonmarker
42
42
  requirement: !ruby/object:Gem::Requirement