agent-harness 0.27.1 → 0.28.0

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: cae5c20bd0047cb01bf085ab6e95c45d28babe8677b8d856278ee70b77dfc25e
4
- data.tar.gz: 22b995dddfcc08113d8b166b3c4da29c3905b4a85181471b04de47d250117a11
3
+ metadata.gz: 364b92c9ed4ab4f3b1bb7414d8272030587282ddb5a333ef6bab44ef898b8012
4
+ data.tar.gz: 07c7b8036efd8f1d5711429ce618ed4ed273d34651b6592ab3ff6c220fdcc657
5
5
  SHA512:
6
- metadata.gz: 1a78a7660c05a7c7834ae2886e8fb9da56be91ef63df184ab6e194707e318d9fd42dcb9465dc3cad7d2592b80d8a69800cbd28db230e588376ecdae3730f00b9
7
- data.tar.gz: c17db980977b5f6a00a8ad23c34df259503721ec93f7c03425930f0b6b896f55bd91bf1e36e01c5e6b889eaf4e5a35a7dc92a44b6e0db9f277ae70099fa30100
6
+ metadata.gz: f7e6a6ca4e672810c62e0fd33e7cd2e597f696bec48e65e486ee0a9958ea7a512e2188331441abb80da2bcfd1114f7484710adca1d607760558c59ef64652475
7
+ data.tar.gz: eecbd525f8d1dac9a89679c99bbad0b206b164238a506baf68f0cc0fddc3501b884fccc73a3cec3d1639edadca4ecac02efe7fa4c49c405e8afdcf8ad4501e75
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.27.1"
2
+ ".": "0.28.0"
3
3
  }
data/CHANGELOG.md CHANGED
@@ -6,6 +6,13 @@
6
6
  * **auth:** add provider-owned PKCE code-exchange API for Claude OAuth (`AgentHarness::Authentication.exchange_code`). Takes an authorization code plus PKCE verifier (and `redirect_uri`/`client_id`), posts an `authorization_code` grant to the Claude token endpoint, and persists the resulting access/refresh tokens in the native `claudeAiOauth` shape. Adds `exchange_code_supported?` and a `code_exchange` key to `auth_capabilities` ([#266](https://github.com/viamin/agent-harness/issues/266)).
7
7
 
8
8
 
9
+ ## [0.28.0](https://github.com/viamin/agent-harness/compare/agent-harness/v0.27.1...agent-harness/v0.28.0) (2026-07-08)
10
+
11
+
12
+ ### Features
13
+
14
+ * allow OpenCode tmp scratch access ([#278](https://github.com/viamin/agent-harness/issues/278)) ([886437f](https://github.com/viamin/agent-harness/commit/886437f6d8429a487d043eb2242cb3f60ab604f6))
15
+
9
16
  ## [0.27.1](https://github.com/viamin/agent-harness/compare/agent-harness/v0.27.0...agent-harness/v0.27.1) (2026-07-07)
10
17
 
11
18
 
@@ -13,6 +13,11 @@ module AgentHarness
13
13
  SUPPORTED_CLI_VERSION = "1.3.2"
14
14
  SUPPORTED_CLI_REQUIREMENT = Gem::Requirement.new(">= #{SUPPORTED_CLI_VERSION}", "< 1.4.0").freeze
15
15
  INSTALL_COMMAND_PREFIX = ["npm", "install", "-g", "--ignore-scripts"].freeze
16
+ DEFAULT_PERMISSION_CONFIG = {
17
+ "external_directory" => {
18
+ "/tmp/**" => "allow"
19
+ }
20
+ }.freeze
16
21
  SUPPORTED_CLI_VERSIONS = [SUPPORTED_CLI_VERSION].freeze
17
22
  POSTINSTALL_COMMAND = "node $(npm root -g)/opencode-ai/postinstall.mjs"
18
23
  VERSION_REQUIREMENT_STRINGS = SUPPORTED_CLI_REQUIREMENT.requirements
@@ -256,6 +261,7 @@ module AgentHarness
256
261
  end
257
262
 
258
263
  payload = stringify_keys(config_extras)
264
+ payload["permission"] ||= DEFAULT_PERMISSION_CONFIG
259
265
  payload["model"] = runtime.model if runtime.model
260
266
  payload["provider"] = runtime.api_provider if runtime.api_provider
261
267
  payload["baseURL"] = runtime.base_url if runtime.base_url
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AgentHarness
4
- VERSION = "0.27.1"
4
+ VERSION = "0.28.0"
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.27.1
4
+ version: 0.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bart Agapinan