Skip to content

Commit bc4fbe9

Browse files
committed
feat: add rest types
1 parent f65e9dc commit bc4fbe9

File tree

15 files changed

+1015
-539
lines changed

15 files changed

+1015
-539
lines changed

.github/workflows/run-tck.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
env:
1111
# TODO once we have the TCK for 0.4.0 we will need to look at the branch to decide which TCK version to run.
1212
# Tag of the TCK
13+
# Temporary set to this commit sha because of this issue https://github.com/a2aproject/a2a-js/pull/142#issuecomment-3558892334
1314
TCK_VERSION: 601bf0d6f63baafb079c2ab23f53d73ce03e5461
1415
# Tells uv to not need a venv, and instead use system
1516
UV_SYSTEM_PYTHON: 1
@@ -102,7 +103,7 @@ jobs:
102103
id: run-tck-capabilities
103104
timeout-minutes: 5
104105
run: |
105-
./run_tck.py --sut-url ${{ env.SUT_JSONRPC_URL }} --category capabilities
106+
./run_tck.py --sut-url ${{ env.SUT_JSONRPC_URL }} --category capabilities --transports jsonrpc,rest
106107
working-directory: tck/a2a-tck
107108
- name: Stop SUT
108109
if: always()

package-lock.json

Lines changed: 18 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/server/express/a2a_express_app.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { AGENT_CARD_PATH } from '../../constants.js';
55
import { jsonErrorHandler, jsonRpcHandler } from './json_rpc_handler.js';
66
import { agentCardHandler } from './agent_card_handler.js';
77
import { UserBuilder } from './common.js';
8-
import { httpRestHandler } from './http_rest_handler.js';
98

109
export class A2AExpressApp {
1110
private requestHandler: A2ARequestHandler;
@@ -52,7 +51,6 @@ export class A2AExpressApp {
5251
})
5352
);
5453
router.use(`/${agentCardPath}`, agentCardHandler({ agentCardProvider: this.requestHandler }));
55-
router.use(httpRestHandler({ requestHandler: this.requestHandler }));
5654

5755
app.use(baseUrl, router);
5856
return app;

0 commit comments

Comments
 (0)