agent-harness 0.18.2 → 0.19.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 35805e09786006c623325c10d579dc95c8be7863536ae52b0440332403f108da
|
|
4
|
+
data.tar.gz: 162638a405a7b1cfadbd5d03396cd898142ecf4fa57a9d811726644c0329e485
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b624b8380ae5d7e0759be8ef02b1affafff2180773172e4cd7d9d715678570d6e04d1090ffad50461c5d9a8500f756191a0c7705df042603d02d359dc45ac8e6
|
|
7
|
+
data.tar.gz: 8c8de046b361f532a701d5121550fe41ce47b4f9bab3799b5754dfb7db01803a42e3f898782af8dfdf2e7b5d783f9981e42ddd95db7d3ccf3775a70e74272cf6
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.19.0](https://github.com/viamin/agent-harness/compare/agent-harness/v0.18.2...agent-harness/v0.19.0) (2026-05-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* opencode-ai install contract should support postinstall (native binary download) ([b3eed97](https://github.com/viamin/agent-harness/commit/b3eed971b9bc46ce2bb2976b70dfd65b15ae5e9b))
|
|
9
|
+
* **opencode:** add requires_postinstall and postinstall_command to install contract ([d6808fd](https://github.com/viamin/agent-harness/commit/d6808fd62476289b199202b0c20c65fc4966bfcc)), closes [#223](https://github.com/viamin/agent-harness/issues/223)
|
|
10
|
+
|
|
3
11
|
## [0.18.2](https://github.com/viamin/agent-harness/compare/agent-harness/v0.18.1...agent-harness/v0.18.2) (2026-05-17)
|
|
4
12
|
|
|
5
13
|
|
|
@@ -22,7 +22,7 @@ module AgentHarness
|
|
|
22
22
|
source = contract[:source]
|
|
23
23
|
install_command = contract[:install_command]&.dup
|
|
24
24
|
|
|
25
|
-
{
|
|
25
|
+
normalized = {
|
|
26
26
|
provider: provider_name.to_sym,
|
|
27
27
|
source_type: normalize_metadata_source_type(contract[:source_type] || source),
|
|
28
28
|
package_name: metadata_package_name(contract, source),
|
|
@@ -35,6 +35,11 @@ module AgentHarness
|
|
|
35
35
|
install_command: install_command,
|
|
36
36
|
install_command_string: contract[:install_command_string] || install_command&.join(" ")
|
|
37
37
|
}
|
|
38
|
+
|
|
39
|
+
normalized[:requires_postinstall] = contract[:requires_postinstall] if contract.key?(:requires_postinstall)
|
|
40
|
+
normalized[:postinstall_command] = contract[:postinstall_command] if contract.key?(:postinstall_command)
|
|
41
|
+
|
|
42
|
+
normalized
|
|
38
43
|
end
|
|
39
44
|
|
|
40
45
|
def self.normalize_metadata_source_type(source)
|
|
@@ -14,6 +14,7 @@ module AgentHarness
|
|
|
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
16
|
SUPPORTED_CLI_VERSIONS = [SUPPORTED_CLI_VERSION].freeze
|
|
17
|
+
POSTINSTALL_COMMAND = "node $(npm root -g)/opencode-ai/postinstall.mjs"
|
|
17
18
|
VERSION_REQUIREMENT_STRINGS = SUPPORTED_CLI_REQUIREMENT.requirements
|
|
18
19
|
.map { |op, ver| "#{op} #{ver}".freeze }
|
|
19
20
|
.freeze
|
|
@@ -89,6 +90,8 @@ module AgentHarness
|
|
|
89
90
|
binary_name: binary_name,
|
|
90
91
|
install_command_prefix: INSTALL_COMMAND_PREFIX,
|
|
91
92
|
install_command: install_command,
|
|
93
|
+
requires_postinstall: true,
|
|
94
|
+
postinstall_command: POSTINSTALL_COMMAND,
|
|
92
95
|
supported_versions: SUPPORTED_CLI_VERSIONS
|
|
93
96
|
}
|
|
94
97
|
|
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.
|
|
4
|
+
version: 0.19.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bart Agapinan
|
|
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
169
169
|
- !ruby/object:Gem::Version
|
|
170
170
|
version: '0'
|
|
171
171
|
requirements: []
|
|
172
|
-
rubygems_version: 4.0.
|
|
172
|
+
rubygems_version: 4.0.10
|
|
173
173
|
specification_version: 4
|
|
174
174
|
summary: Unified interface for CLI-based AI coding agents
|
|
175
175
|
test_files: []
|