keycardai-a2a 0.2.1 → 0.2.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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/keycardai/a2a/delegation_client.rb +9 -5
- data/lib/keycardai/a2a/service_discovery.rb +7 -4
- data/lib/keycardai/a2a/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b5ac4de70bd02d80986b1167e2c53f713eeb8a2d243cfb0bf9d0ad749db83592
|
|
4
|
+
data.tar.gz: b5d79e2c94ac789a48336320a0b0c223acf0d26aa27f2c43bf5bd9e5fde7678a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4e9ce85874e9f6a66c4321b7ffb06d5192209a5a73312e760e5aa849a3d738dcf7643a8a69dcf05a8296fe57289cf04ec3b54f0e4c12a2c8086b3c6a50b53d7f
|
|
7
|
+
data.tar.gz: 07c68cfcd0fe0b9dec18684373529bd37159268857f2066d1f2659c20ddebd2a875e0a87020f59b8859f7140203b27f49bf78bfb8cb30450ec68d89ac56d72c0
|
data/CHANGELOG.md
CHANGED
|
@@ -13,6 +13,13 @@ token exchange that keeps the user as the subject, and JSON-RPC `message/send`
|
|
|
13
13
|
invocation. Wraps no A2A SDK; hosting an agent inside a framework is out of
|
|
14
14
|
scope.
|
|
15
15
|
|
|
16
|
+
## 0.2.2-keycardai-a2a (2026-11-25)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
- fix(keycardai-a2a): let A2A agent replies exceed the 1 MiB cap (#91)
|
|
20
|
+
- Co-authored-by: devin-ai-keycard <devin-ai@keycard.ai>
|
|
21
|
+
Co-authored-by: Larry Osakwe <larry@keycard.ai>
|
|
22
|
+
|
|
16
23
|
## 0.2.1-keycardai-a2a (2026-11-24)
|
|
17
24
|
|
|
18
25
|
## 0.2.0-keycardai-a2a (2026-09-07)
|
|
@@ -21,7 +21,11 @@ module Keycardai
|
|
|
21
21
|
# @param credential [Object, nil] this agent's application credential
|
|
22
22
|
# @param client_id [String, nil] shared-secret pair alternative
|
|
23
23
|
# @param client_secret [String, nil]
|
|
24
|
-
# @param http_client [#get, #post_form, #post_json] pluggable
|
|
24
|
+
# @param http_client [#get, #post_form, #post_json, nil] pluggable
|
|
25
|
+
# transport for every request. When omitted, the token exchange uses a
|
|
26
|
+
# NetHTTPClient with the 1 MiB authorization-server response cap, and
|
|
27
|
+
# card discovery and invocation use one with no cap, since peer-agent
|
|
28
|
+
# replies are not authorization-server traffic.
|
|
25
29
|
# @param discovery [ServiceDiscovery, nil] card resolution override
|
|
26
30
|
# @param invoke_timeout [Numeric, nil] JSON-RPC call timeout
|
|
27
31
|
# @param protocol_version [String] the A2A generation to speak: PROTOCOL_VERSION
|
|
@@ -31,13 +35,13 @@ module Keycardai
|
|
|
31
35
|
# either way; the client translates it for 0.3.
|
|
32
36
|
# @raise [ArgumentError] protocol_version is neither supported generation
|
|
33
37
|
def initialize(issuer:, credential: nil, client_id: nil, client_secret: nil,
|
|
34
|
-
http_client:
|
|
38
|
+
http_client: nil, discovery: nil,
|
|
35
39
|
invoke_timeout: nil, protocol_version: PROTOCOL_VERSION)
|
|
36
40
|
@exchange = OAuth::TokenExchangeClient.new(issuer: issuer, credential: credential,
|
|
37
41
|
client_id: client_id, client_secret: client_secret,
|
|
38
|
-
http_client: http_client)
|
|
39
|
-
@
|
|
40
|
-
@
|
|
42
|
+
http_client: http_client || OAuth::HTTP::NetHTTPClient.new)
|
|
43
|
+
@http_client = http_client || OAuth::HTTP::NetHTTPClient.new(max_response_bytes: nil)
|
|
44
|
+
@discovery = discovery || ServiceDiscovery.new(http_client: @http_client)
|
|
41
45
|
@invoke_timeout = invoke_timeout
|
|
42
46
|
@wire = Wire.for(protocol_version)
|
|
43
47
|
end
|
|
@@ -6,16 +6,19 @@ module Keycardai
|
|
|
6
6
|
module A2A
|
|
7
7
|
# Resolves an agent's base URL to its agent card, fetched from
|
|
8
8
|
# /.well-known/agent-card.json and cached (default 15 minutes,
|
|
9
|
-
# refreshable). A card must carry a name to be valid.
|
|
9
|
+
# refreshable). A card must carry a name to be valid. The default
|
|
10
|
+
# transport reads cards of any size: the 1 MiB response cap applies to
|
|
11
|
+
# authorization-server traffic, not to peer agents.
|
|
10
12
|
class ServiceDiscovery
|
|
11
13
|
DEFAULT_CACHE_TTL = 900
|
|
12
14
|
|
|
13
|
-
# @param http_client [#get] pluggable transport
|
|
15
|
+
# @param http_client [#get] pluggable transport; the default reads
|
|
16
|
+
# response bodies without a size limit
|
|
14
17
|
# @param cache_ttl [Numeric] card cache lifetime in seconds
|
|
15
18
|
# @param timeout [Numeric, nil] fetch timeout
|
|
16
19
|
# @param clock [#call] returns the current Time; override in tests
|
|
17
|
-
def initialize(http_client: OAuth::HTTP::NetHTTPClient.new
|
|
18
|
-
timeout: nil, clock: -> { Time.now })
|
|
20
|
+
def initialize(http_client: OAuth::HTTP::NetHTTPClient.new(max_response_bytes: nil),
|
|
21
|
+
cache_ttl: DEFAULT_CACHE_TTL, timeout: nil, clock: -> { Time.now })
|
|
19
22
|
@http_client = http_client
|
|
20
23
|
@cache_ttl = cache_ttl
|
|
21
24
|
@timeout = timeout
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: keycardai-a2a
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Keycard
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - ">="
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 0.
|
|
18
|
+
version: 0.11.2
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - ">="
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 0.
|
|
25
|
+
version: 0.11.2
|
|
26
26
|
description: 'The A2A delegation contract: agent card discovery, per-hop RFC 8693
|
|
27
27
|
token exchange carrying the user''s identity, and JSON-RPC invocation. Framework
|
|
28
28
|
glue for hosting agents is out of scope.'
|