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 +4 -4
- data/CHANGELOG.md +18 -0
- data/lib/composable_agents/cline/agent.rb +15 -2
- data/lib/composable_agents/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6b82cf2e2c4224e28888344a4b352dcbd74433103d15123361c1e88e8717708a
|
|
4
|
+
data.tar.gz: bda57cd1244fb916d68557aea692c52657db06a7d26ad6e578dcb1893923b7a7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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]
|
|
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:
|
|
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
|
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.
|
|
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.
|
|
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.
|
|
39
|
+
version: '2.1'
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: commonmarker
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|