agent-harness 0.22.0 → 0.22.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e913f16d4377e9cc016dc2cee6018201358532fe61af764a5d860ef94e67711
4
- data.tar.gz: 2b3ab503acfc2cc7493b33f8dfb7d5969e01e9980b0eb08181c2eb420b7dcecb
3
+ metadata.gz: 6298d7951ead9e503ee4df5a3552cbe1dc91920314d7fa290cf35916f4401037
4
+ data.tar.gz: f19ae532aaa6d24d8c40386007d371c34a236b7328d60e92080f645f6ae25df0
5
5
  SHA512:
6
- metadata.gz: ae9b5863d6d7edb3036abdb9217996f66479cf3fec35473aa16443879b11d096ccc9869920264ecf39255245c65fc062c5bcfd671e153ae679d50c7ebe4e85d1
7
- data.tar.gz: 157f5c0ebad4cc73a7a1d8224506de837a0b84ef5a66d4c8795131340eb6e2a40ca6f5f8a9293c1a4fa7625bbeda9cad52e38f294ec74633ccbfb6e2ce1274b6
6
+ metadata.gz: 0c26c93fa4f22bdbf2daa107364b2d2545ea4962a7ba56ee06da63a88b915e0222594c74969fddaa964627f9ebd91131d4b6e9d890d30982a730b3edf8370102
7
+ data.tar.gz: 05bbbcd3b80e59dda8a862c94e64ca599ef0b0ba687ff6a57cad1663c41281682d99a5275e96e52371f97c595cdf234adcf0d43f0bdd14084c7eae0199d14df5
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.22.0"
2
+ ".": "0.22.1"
3
3
  }
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.22.1](https://github.com/viamin/agent-harness/compare/agent-harness/v0.22.0...agent-harness/v0.22.1) (2026-06-10)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Rate-limit reset parser fabricates far-future resets (year over-bump in parse_resets_date_time) ([6c7a34e](https://github.com/viamin/agent-harness/commit/6c7a34e7fb6b7b3080707e752e778423d6c26238))
9
+
3
10
  ## [0.22.0](https://github.com/viamin/agent-harness/compare/agent-harness/v0.21.0...agent-harness/v0.22.0) (2026-06-10)
4
11
 
5
12
 
@@ -87,10 +87,15 @@ module AgentHarness
87
87
  meridiem = match[5].downcase
88
88
  hour = to_24h(hour, meridiem)
89
89
 
90
- year = Time.now.utc.year
91
- year += 1 if month < Time.now.utc.month
90
+ now = Time.now.utc
91
+ candidate = Time.utc(now.year, month, day, hour, minute)
92
+ candidate = Time.utc(now.year + 1, month, day, hour, minute) if candidate < now - 7200
93
+
94
+ return nil if candidate >= now + 8 * 86_400
92
95
 
93
- Time.utc(year, month, day, hour, minute)
96
+ candidate
97
+ rescue ArgumentError
98
+ nil
94
99
  end
95
100
 
96
101
  def to_24h(hour, meridiem)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AgentHarness
4
- VERSION = "0.22.0"
4
+ VERSION = "0.22.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agent-harness
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.0
4
+ version: 0.22.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bart Agapinan