Skip to content

Commit 03ba6d9

Browse files
committed
Merge branch '1.0-a2a_proto_refactor' into 1.0-dev-merge-proto-refactor
2 parents 5d42015 + 3358305 commit 03ba6d9

File tree

137 files changed

+7757
-13028
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+7757
-13028
lines changed

.git-blame-ignore-revs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Template taken from https://github.com/v8/v8/blob/master/.git-blame-ignore-revs.
1+
# Template taken from https://github.com/v8/v8/blob/main/.git-blame-ignore-revs.
22
#
33
# This file contains a list of git hashes of revisions to be ignored by git blame. These
44
# revisions are considered "unimportant" in that they are unlikely to be what you are

.github/actions/spelling/allow.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1+
a2a
2+
A2A
3+
A2AFastAPI
14
AAgent
25
ACard
36
AClient
47
ACMRTUXB
58
aconnect
69
adk
710
AError
11+
AException
812
AFast
913
agentic
1014
AGrpc
1115
aio
1216
aiomysql
17+
alg
1318
amannn
1419
aproject
1520
ARequest
@@ -21,6 +26,9 @@ AStarlette
2126
AUser
2227
autouse
2328
backticks
29+
base64url
30+
buf
31+
bufbuild
2432
cla
2533
cls
2634
coc
@@ -31,9 +39,11 @@ deepwiki
3139
drivername
3240
DSNs
3341
dunders
42+
ES256
3443
euo
3544
EUR
3645
excinfo
46+
FastAPI
3747
fernet
3848
fetchrow
3949
fetchval
@@ -42,13 +52,20 @@ genai
4252
getkwargs
4353
gle
4454
GVsb
55+
hazmat
56+
HS256
57+
HS384
4558
ietf
59+
importlib
4660
initdb
4761
inmemory
4862
INR
4963
isready
64+
jcs
5065
jku
66+
JOSE
5167
JPY
68+
JSONRPC
5269
JSONRPCt
5370
jwk
5471
jwks
@@ -61,36 +78,52 @@ lifecycles
6178
linting
6279
Llm
6380
lstrips
81+
middleware
6482
mikeas
6583
mockurl
6684
mysqladmin
6785
notif
86+
npx
6887
oauthoidc
6988
oidc
89+
OpenAPI
90+
openapiv
91+
openapiv2
7092
opensource
7193
otherurl
94+
pb2
7295
postgres
7396
POSTGRES
7497
postgresql
7598
proot
99+
proto
100+
protobuf
101+
Protobuf
76102
protoc
103+
pydantic
77104
pyi
78105
pypistats
79106
pyupgrade
80107
pyversions
81108
redef
82109
respx
83110
resub
111+
RS256
84112
RUF
113+
SECP256R1
85114
SLF
86115
socio
87116
sse
117+
starlette
118+
Starlette
88119
sut
89120
SUT
121+
swagger
90122
tagwords
91123
taskupdate
92124
testuuid
93125
Tful
94126
tiangolo
127+
typ
95128
typeerror
96129
vulnz

.github/actions/spelling/excludes.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,7 @@
8787
^\.github/workflows/
8888
CHANGELOG.md
8989
^src/a2a/grpc/
90+
^src/a2a/types/
9091
^tests/
9192
.pre-commit-config.yaml
93+
(?:^|/)a2a\.json$

.github/workflows/linter.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
- name: Add uv to PATH
2323
run: |
2424
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
25+
- name: Install Buf
26+
uses: bufbuild/buf-setup-action@v1
2527
- name: Install dependencies
2628
run: uv sync --locked
2729

@@ -60,8 +62,7 @@ jobs:
6062
if [[ "${{ steps.ruff-lint.outcome }}" == "failure" || \
6163
"${{ steps.ruff-format.outcome }}" == "failure" || \
6264
"${{ steps.mypy.outcome }}" == "failure" || \
63-
"${{ steps.pyright.outcome }}" == "failure" || \
64-
"${{ steps.jscpd.outcome }}" == "failure" ]]; then
65+
"${{ steps.pyright.outcome }}" == "failure"]]; then
6566
echo "One or more linting/checking steps failed."
6667
exit 1
6768
fi

.github/workflows/unit-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ jobs:
5252
- name: Add uv to PATH
5353
run: |
5454
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
55+
- name: Install Buf
56+
uses: bufbuild/buf-setup-action@v1
5557
- name: Install dependencies
5658
run: uv sync --locked
5759
- name: Run tests and check coverage

.github/workflows/update-a2a-types.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,18 @@ jobs:
2222
uses: astral-sh/setup-uv@v7
2323
- name: Configure uv shell
2424
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
25-
- name: Install dependencies (datamodel-code-generator)
26-
run: uv sync --locked
2725
- name: Define output file variable
2826
id: vars
2927
run: |
30-
GENERATED_FILE="./src/a2a/types.py"
28+
GENERATED_FILE="./src/a2a/types"
3129
echo "GENERATED_FILE=$GENERATED_FILE" >> "$GITHUB_OUTPUT"
32-
- name: Generate types from schema
33-
run: |
34-
chmod +x scripts/generate_types.sh
35-
./scripts/generate_types.sh "${{ steps.vars.outputs.GENERATED_FILE }}"
3630
- name: Install Buf
3731
uses: bufbuild/buf-setup-action@v1
3832
- name: Run buf generate
3933
run: |
4034
set -euo pipefail # Exit immediately if a command exits with a non-zero status
4135
echo "Running buf generate..."
4236
buf generate
43-
uv run scripts/grpc_gen_post_processor.py
4437
echo "Buf generate finished."
4538
- name: Create Pull Request with Updates
4639
uses: peter-evans/create-pull-request@v8

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ test_venv/
1010
coverage.xml
1111
.nox
1212
spec.json
13+
src/a2a/types/a2a.json
14+
docker-compose.yaml

.pre-commit-config.yaml

Lines changed: 0 additions & 82 deletions
This file was deleted.

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ available at
9393
https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
9494

9595
Note: A version of this file is also available in the
96-
[New Project repository](https://github.com/google/new-project/blob/master/docs/code-of-conduct.md).
96+
[New Project repository](https://github.com/google/new-project/blob/main/docs/code-of-conduct.md).

buf.gen.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: v2
33
inputs:
44
- git_repo: https://github.com/a2aproject/A2A.git
55
ref: main
6-
subdir: specification/grpc
6+
subdir: specification
77
managed:
88
enabled: true
99
# Python Generation
@@ -21,11 +21,15 @@ plugins:
2121
# Generate python protobuf related code
2222
# Generates *_pb2.py files, one for each .proto
2323
- remote: buf.build/protocolbuffers/python:v29.3
24-
out: src/a2a/grpc
24+
out: src/a2a/types
2525
# Generate python service code.
2626
# Generates *_pb2_grpc.py
2727
- remote: buf.build/grpc/python
28-
out: src/a2a/grpc
28+
out: src/a2a/types
2929
# Generates *_pb2.pyi files.
3030
- remote: buf.build/protocolbuffers/pyi
31-
out: src/a2a/grpc
31+
out: src/a2a/types
32+
# Generates a2a.swagger.json (OpenAPI v2)
33+
- remote: buf.build/grpc-ecosystem/openapiv2
34+
out: src/a2a/types
35+
opt: json_names_for_fields=true

0 commit comments

Comments
 (0)