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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6298d7951ead9e503ee4df5a3552cbe1dc91920314d7fa290cf35916f4401037
|
|
4
|
+
data.tar.gz: f19ae532aaa6d24d8c40386007d371c34a236b7328d60e92080f645f6ae25df0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c26c93fa4f22bdbf2daa107364b2d2545ea4962a7ba56ee06da63a88b915e0222594c74969fddaa964627f9ebd91131d4b6e9d890d30982a730b3edf8370102
|
|
7
|
+
data.tar.gz: 05bbbcd3b80e59dda8a862c94e64ca599ef0b0ba687ff6a57cad1663c41281682d99a5275e96e52371f97c595cdf234adcf0d43f0bdd14084c7eae0199d14df5
|
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
|
-
|
|
91
|
-
|
|
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
|
-
|
|
96
|
+
candidate
|
|
97
|
+
rescue ArgumentError
|
|
98
|
+
nil
|
|
94
99
|
end
|
|
95
100
|
|
|
96
101
|
def to_24h(hour, meridiem)
|