ai-agents 0.2.0 → 0.2.1
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/.claude/commands/bump-version.md +1 -1
- data/CHANGELOG.md +7 -0
- data/lib/agents/runner.rb +1 -1
- data/lib/agents/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: cc7df032400d2c2965b0f3ec7c43baf614805ab4cca2b8d2db5b58db6c2cd6c9
|
4
|
+
data.tar.gz: 37150c6bea03d3b339adef7c4e1dc9eb0827e3eb1f24074b6311784f069a7b91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ede27e9751fb4790a555c29aa675e0cae4612e0e566ad7d164bf8929045b41696881855b77bc18454feb52ae8ce0e148bcec6f12d4ae86a427a1648b1e2e69e7
|
7
|
+
data.tar.gz: bfa2e55a7082729492066f75d535df3235da2a4478d47dc042983a3772a902c4b3ba8f7f761717057605f1bf40aded3651414ba1ec48b3bb766a266ab0c74b18
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## [0.2.1] - 2025-07-08
|
9
|
+
|
10
|
+
### Fixed
|
11
|
+
- Fixed string role handling in conversation history restoration
|
12
|
+
- `msg[:role]` is now converted to symbol before checking inclusion in restore_conversation_history
|
13
|
+
- Prevents string roles like "user" from being skipped during history restoration
|
14
|
+
|
8
15
|
## [0.2.0] - 2025-07-08
|
9
16
|
|
10
17
|
### Added
|
data/lib/agents/runner.rb
CHANGED
@@ -199,7 +199,7 @@ module Agents
|
|
199
199
|
|
200
200
|
history.each do |msg|
|
201
201
|
# Only restore user and assistant messages with content
|
202
|
-
next unless %i[user assistant].include?(msg[:role])
|
202
|
+
next unless %i[user assistant].include?(msg[:role].to_sym)
|
203
203
|
next unless msg[:content] && !msg[:content].strip.empty?
|
204
204
|
|
205
205
|
chat.add_message(
|
data/lib/agents/version.rb
CHANGED