agent-harness 0.13.0 → 0.14.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 +4 -4
- data/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +14 -0
- data/lib/agent-harness.rb +3 -0
- data/lib/agent_harness/version.rb +1 -1
- data/lib/agent_harness.rb +27 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ffc18c8e54d6a675c551c68e9d3aa3a39352995be92f33bf3aee01cf9dad3134
|
|
4
|
+
data.tar.gz: 884049b284c3ced78ecbe22fbf744aa6d6307da57f3b913b732d313e2fba5d75
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9792c3e83b4b6cd2672a9863c3eca7a0c1a9502cd5d42334caf1d7c52cb3e13c1d3764e72189c80fed65d67fd620c8a8b7f181a944d8fb6dafe9c9dd9e347def
|
|
7
|
+
data.tar.gz: 37d1825a1361ae4bd3d625f535a1ec52d53dd70eca7e0ec1d40434fd8e53a00cd7ad08efc94d8c866b7835fafda24f204592ce5d3357d56e04d904292af0700f
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.14.0](https://github.com/viamin/agent-harness/compare/agent-harness/v0.13.1...agent-harness/v0.14.0) (2026-05-03)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* expose public provider registry and config factory methods ([#193](https://github.com/viamin/agent-harness/issues/193)) ([11158ef](https://github.com/viamin/agent-harness/commit/11158efde6d77c885e7be1a03465d915efa0ee40)), closes [#175](https://github.com/viamin/agent-harness/issues/175)
|
|
9
|
+
|
|
10
|
+
## [0.13.1](https://github.com/viamin/agent-harness/compare/agent-harness/v0.13.0...agent-harness/v0.13.1) (2026-05-03)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* Gem name (agent-harness) and require file (agent_harness) naming mismatch ([#189](https://github.com/viamin/agent-harness/issues/189)) ([4f19ba6](https://github.com/viamin/agent-harness/commit/4f19ba61d31a7815100fc602b73230b369770961))
|
|
16
|
+
|
|
3
17
|
## [0.13.0](https://github.com/viamin/agent-harness/compare/agent-harness/v0.12.0...agent-harness/v0.13.0) (2026-05-03)
|
|
4
18
|
|
|
5
19
|
|
data/lib/agent_harness.rb
CHANGED
|
@@ -142,6 +142,33 @@ module AgentHarness
|
|
|
142
142
|
conductor.provider_manager.get_provider(name)
|
|
143
143
|
end
|
|
144
144
|
|
|
145
|
+
# List all registered provider names
|
|
146
|
+
#
|
|
147
|
+
# @return [Array<Symbol>] canonical provider names
|
|
148
|
+
def providers
|
|
149
|
+
Providers::Registry.instance.all
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# Look up the provider class for a given name or alias
|
|
153
|
+
#
|
|
154
|
+
# @param name [Symbol, String] the provider name or alias
|
|
155
|
+
# @return [Class] the provider class
|
|
156
|
+
# @raise [ConfigurationError] if provider not found
|
|
157
|
+
def provider_class(name)
|
|
158
|
+
Providers::Registry.instance.get(name)
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Build a new ProviderConfig with defaults for the given provider
|
|
162
|
+
#
|
|
163
|
+
# @param name [Symbol, String] the provider name
|
|
164
|
+
# @param options [Hash] optional attribute overrides to merge
|
|
165
|
+
# @return [ProviderConfig] a new config instance
|
|
166
|
+
def build_config(name, **options)
|
|
167
|
+
config = ProviderConfig.new(name)
|
|
168
|
+
config.merge!(options) unless options.empty?
|
|
169
|
+
config
|
|
170
|
+
end
|
|
171
|
+
|
|
145
172
|
# Get install contract metadata for a provider
|
|
146
173
|
# @param name [Symbol, String] the provider name
|
|
147
174
|
# @return [Hash] install contract metadata
|
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.14.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bart Agapinan
|
|
@@ -98,6 +98,7 @@ files:
|
|
|
98
98
|
- bin/console
|
|
99
99
|
- bin/setup
|
|
100
100
|
- json-2.18.1.gem
|
|
101
|
+
- lib/agent-harness.rb
|
|
101
102
|
- lib/agent_harness.rb
|
|
102
103
|
- lib/agent_harness/authentication.rb
|
|
103
104
|
- lib/agent_harness/command_executor.rb
|