agent-harness 0.20.0 → 0.20.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: f7d3dd9864119fc75abc2a4c7eebf2f2d6bf9239b6d02313fd63d15712074d5c
4
- data.tar.gz: 9c8ac795a33027da1981fe170334a7456685c8f1f494d42680cc1e8c29f5cce9
3
+ metadata.gz: 7794b96e000b44164e63bbe2e8ee57acdc1a20044f47e56a623b866410371acf
4
+ data.tar.gz: 89f2f661af0a621c005cabfa1784c7b7419d06ad9a9b303654ea6e1d03977831
5
5
  SHA512:
6
- metadata.gz: 446d1544846e9047c1cdd06f1d08ce50d4567fed6436efbdd4b3fcbfd6404c8203acdf508db2f3e2be3f04feb2cc6f54ff55c90f51f10edb27f413812c8a5c04
7
- data.tar.gz: 0a0aed2a47548fce2007cca6aa351c2f675581d7340bb25853b3b306d622575a722be294c9e51be2c15e22b3d545d4106d179c562d98a61ad94a8d840fc4b9f5
6
+ metadata.gz: 2c5bd53d4fe6eb1093b2c248a88b5e1556f706a1fb35564b11a3507f34eec271085fc5a0a4fc14ccc7dd25b7f709e01f04288a79ac5dc71e40aa9440043b574a
7
+ data.tar.gz: 1ebcbfe97039d0945066d35fcd080048c7d661b7992c6b43117c9eb13e54f1aff154253e4b960dba93a3679b432b79bafcb5a293c740e0e01750570dee642748
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.20.0"
2
+ ".": "0.20.1"
3
3
  }
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.20.1](https://github.com/viamin/agent-harness/compare/agent-harness/v0.20.0...agent-harness/v0.20.1) (2026-06-09)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **anthropic:** --mcp-config space-form swallows the positional prompt (variadic flag) ([e52d38f](https://github.com/viamin/agent-harness/commit/e52d38fe97cdcc093860f4fda1de9e10c08f54c7))
9
+ * **anthropic:** use equals form for mcp config ([481d734](https://github.com/viamin/agent-harness/commit/481d734e389e66056bfc82d4dfeb31ba76ba1128))
10
+
3
11
  ## [0.20.0](https://github.com/viamin/agent-harness/compare/agent-harness/v0.19.0...agent-harness/v0.20.0) (2026-05-30)
4
12
 
5
13
 
@@ -421,7 +421,7 @@ module AgentHarness
421
421
 
422
422
  def build_mcp_flags(mcp_servers, working_dir: nil)
423
423
  config_path = write_mcp_config_file(mcp_servers, working_dir: working_dir)
424
- ["--mcp-config", config_path]
424
+ ["--mcp-config=#{config_path}"]
425
425
  end
426
426
 
427
427
  def supports_tool_control?
@@ -586,9 +586,16 @@ module AgentHarness
586
586
 
587
587
  cmd += ["--print", "--output-format=json"]
588
588
 
589
- # Add model if specified
590
- if @config.model && !@config.model.empty?
591
- cmd += ["--model", @config.model]
589
+ # Add model if specified — prefer config, fall back to runtime override
590
+ runtime = options[:provider_runtime]
591
+ runtime = ProviderRuntime.wrap(runtime) if runtime.is_a?(Hash)
592
+ model = if @config.model && !@config.model.empty?
593
+ @config.model
594
+ else
595
+ runtime&.model
596
+ end
597
+ if model && !model.empty?
598
+ cmd += ["--model", model]
592
599
  end
593
600
 
594
601
  # Add permission mode for tool-disabled requests (belt-and-suspenders)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AgentHarness
4
- VERSION = "0.20.0"
4
+ VERSION = "0.20.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.20.0
4
+ version: 0.20.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bart Agapinan