From de69c21a48524986a08b35b54f1671dbcc316c2b Mon Sep 17 00:00:00 2001 From: Yu Tsuno Date: Thu, 18 Sep 2025 13:34:07 +0100 Subject: [PATCH 1/2] update agent-card for a2a protocol --- dist/well-known.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/dist/well-known.js b/dist/well-known.js index f19ce20..062fda5 100644 --- a/dist/well-known.js +++ b/dist/well-known.js @@ -311,6 +311,29 @@ return Promise.all([ url: r.url }); }), + // A2A Agent Card (required + strongly recommended fields) + parseResponse('/.well-known/agent-card.json', r => { + return r.text().then(text => { + let result = { + url: null, + preferredTransport: null, + protocolVersion: null, + name: null, + description: null + }; + try { + let data = JSON.parse(text); + result.url = data.url || null; + result.preferredTransport = data.preferredTransport || null; + result.protocolVersion = data.protocolVersion || null; + result.name = data.name || null; + result.description = data.description || null; + } catch (e) { + // Failed to parse JSON + } + return result; + }); + }), parseResponseWithRedirects('/.well-known/resource-that-should-not-exist-whose-status-code-should-not-be-200/', r => { return Promise.resolve({ status: r.status, From 2592b90e59685e991bc97b81db0f8420db8943be Mon Sep 17 00:00:00 2001 From: Yu Tsuno Date: Thu, 18 Sep 2025 21:12:58 +0100 Subject: [PATCH 2/2] test a2a url