agent-harness 0.22.0 → 0.22.2

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: d7620f78305a8d50861a19c801b6d51f06eae2ed3a80bdbff8c7b1036462019f
4
+ data.tar.gz: b4d7de3dd04fe4c75e7729ae676acc680265b5ec36dac58c13b64eaf2dddfa3d
5
5
  SHA512:
6
- metadata.gz: ae9b5863d6d7edb3036abdb9217996f66479cf3fec35473aa16443879b11d096ccc9869920264ecf39255245c65fc062c5bcfd671e153ae679d50c7ebe4e85d1
7
- data.tar.gz: 157f5c0ebad4cc73a7a1d8224506de837a0b84ef5a66d4c8795131340eb6e2a40ca6f5f8a9293c1a4fa7625bbeda9cad52e38f294ec74633ccbfb6e2ce1274b6
6
+ metadata.gz: b4931c88ecb4a3d7b9ff617d15c081b24f46f2ed682e0e48da4b66c6bbe77d31fddf1948f6407ae1922958d198abb737152a400e515e0bbade7456eacf3a2ff7
7
+ data.tar.gz: 77dbe59a71d30b48f51059fe36458b9cd34fa0c089c5048f0a44f1558437371a759656d908ee95b078926f9152ba3584036c157eb4cfc9e4b17b41a4219706fa
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.22.0"
2
+ ".": "0.22.2"
3
3
  }
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.22.2](https://github.com/viamin/agent-harness/compare/agent-harness/v0.22.1...agent-harness/v0.22.2) (2026-06-11)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * apply test_command_overrides in Codex build_command for smoke tests ([#243](https://github.com/viamin/agent-harness/issues/243)) ([7810fad](https://github.com/viamin/agent-harness/commit/7810fadd2e81db442294999fce3f504f16239dab))
9
+
10
+ ## [0.22.1](https://github.com/viamin/agent-harness/compare/agent-harness/v0.22.0...agent-harness/v0.22.1) (2026-06-10)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * 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))
16
+
3
17
  ## [0.22.0](https://github.com/viamin/agent-harness/compare/agent-harness/v0.21.0...agent-harness/v0.22.0) (2026-06-10)
4
18
 
5
19
 
@@ -719,6 +719,8 @@ module AgentHarness
719
719
  cmd += runtime_flags unless runtime_flags.empty?
720
720
  end
721
721
 
722
+ cmd += test_command_overrides if options[:smoke_test]
723
+
722
724
  cmd << prompt
723
725
 
724
726
  cmd
@@ -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.2"
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.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bart Agapinan