Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .oss-ai-helper-rules/project-guidelines.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Project Guidelines

This file documents the branching strategy, commit conventions, and PR policies for the a2a-java project.

- Fix branch naming pattern: `issue-<ISSUE_NUMBER>`
- Feature branch naming pattern: `issue-<ISSUE_NUMBER>-<short-slug>`
- Bugfix branch naming pattern: `issue-<ISSUE_NUMBER>`
- Quick-fix branch naming pattern: `quick-fix/<short-slug>`
- SonarCloud branch naming pattern: _(n/a — no SonarCloud)_
- CI-fix branch naming pattern: `ci-issue/<short-slug>`
- Commit format (fix): Conventional Commits — `<type>(<scope>): <description>\n\nFixes #<ISSUE_NUMBER>`
- Commit format (quick-fix): `chore: <brief description>`
- Commit format (ci-fix): `ci: <brief description>`
- PR creation policy: always
- Find-task source: GitHub labels
- Find-task beginner label: `good first issue`
- Find-task intermediate label: _(none)_
- Find-task experienced label: `help wanted`
- Scope-too-large redirect: break into smaller issues and PRs; squash commits into one logical commit per PR unless multiple meaningful commits are warranted

## Notes

- PRs must be reviewed by at least one a2a-java committer before merging.
- Link the issue in both the PR description and the commit message (e.g. `Fixes #<NUMBER>`).
- PRs should include tests and documentation for new functionality.
- Prefer squashing all commits into a single commit for small changes.

## Version

788c6a703f406b4196cdcb5b30173bd971e1b6e0
19 changes: 19 additions & 0 deletions .oss-ai-helper-rules/project-info.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Project Information

This file provides repository metadata used by AI agents to understand the project's structure, issue tracker, and related resources.

- Remote pattern: `a2aproject/a2a-java`
- GitHub repo: `a2aproject/a2a-java`
- Issue tracker type: GitHub
- Issue tracker URL: https://github.com/a2aproject/a2a-java/issues
- Issue ID format: numeric
- SonarCloud component key: _(none)_
- Documentation URL: https://a2a-protocol.org/
- Related repositories:
- `a2aproject/a2a` — A2A protocol specification
- `a2aproject/a2a-python` — Python SDK
- Create-issue supported: yes

## Version

788c6a703f406b4196cdcb5b30173bd971e1b6e0
26 changes: 26 additions & 0 deletions .oss-ai-helper-rules/project-standards.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Project Standards

This file documents the build tools, commands, and code style conventions for the a2a-java project.

- Build tool: Maven
- Build command: `mvn clean install`
- Test command: `mvn test`
- Test with coverage command: `mvn verify`
- Format command: _(none — checkstyle enforced at build time)_
- Module-specific build: yes (`mvn clean install -pl <module>`)
- Parallelized Maven: no
- Code style restrictions:
- Java 17+ required
- Import statements must be sorted; no star imports
- Use `@Nullable` from `org.jspecify.annotations` for optional fields
- NullAway + JSpecify enforced via Error Prone
- Use Java `record` for immutable data types
- Use `Assert.checkNotNullParam()` in compact constructors for required fields
- Use `List.copyOf()` and `Map.copyOf()` for defensive copying
- Apply Builder pattern for records with many fields
- Do not split Java packages across Maven modules in production code
- Serialization: Gson

## Version

788c6a703f406b4196cdcb5b30173bd971e1b6e0
2 changes: 1 addition & 1 deletion boms/extras/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion boms/reference/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion boms/sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion boms/test-utils/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion client/base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>a2a-java-sdk-client</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion client/transport/grpc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>a2a-java-sdk-client-transport-grpc</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion client/transport/jsonrpc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>a2a-java-sdk-client-transport-jsonrpc</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion client/transport/rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>a2a-java-sdk-client-transport-rest</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion client/transport/spi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>a2a-java-sdk-client-transport-spi</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
</parent>
<artifactId>a2a-java-sdk-common</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion compat-0.3/client/base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-compat-0.3-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>../..</relativePath>
</parent>
<artifactId>a2a-java-sdk-compat-0.3-client</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion compat-0.3/client/transport/grpc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-compat-0.3-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>../../..</relativePath>
</parent>
<artifactId>a2a-java-sdk-compat-0.3-client-transport-grpc</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion compat-0.3/client/transport/jsonrpc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-compat-0.3-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>../../..</relativePath>
</parent>
<artifactId>a2a-java-sdk-compat-0.3-client-transport-jsonrpc</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion compat-0.3/client/transport/rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-compat-0.3-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>../../..</relativePath>
</parent>
<artifactId>a2a-java-sdk-compat-0.3-client-transport-rest</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion compat-0.3/client/transport/spi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-compat-0.3-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>../../..</relativePath>
</parent>
<artifactId>a2a-java-sdk-compat-0.3-client-transport-spi</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion compat-0.3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
</parent>

<artifactId>a2a-java-sdk-compat-0.3-parent</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion compat-0.3/reference/grpc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-compat-0.3-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion compat-0.3/reference/jsonrpc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-compat-0.3-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>a2a-java-sdk-compat-0.3-reference-jsonrpc</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion compat-0.3/reference/rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-compat-0.3-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>a2a-java-sdk-compat-0.3-reference-rest</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion compat-0.3/server-conversion/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-compat-0.3-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>..</relativePath>
</parent>
<artifactId>a2a-java-sdk-compat-0.3-server-conversion</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion compat-0.3/spec-grpc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-compat-0.3-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>..</relativePath>
</parent>
<artifactId>a2a-java-sdk-compat-0.3-spec-grpc</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion compat-0.3/spec/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-compat-0.3-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>..</relativePath>
</parent>
<artifactId>a2a-java-sdk-compat-0.3-spec</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion compat-0.3/tck/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-compat-0.3-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion compat-0.3/tests/server-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-compat-0.3-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>a2a-java-sdk-compat-0.3-tests-server-common</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion compat-0.3/transport/grpc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-compat-0.3-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>../..</relativePath>
</parent>
<artifactId>a2a-java-sdk-compat-0.3-transport-grpc</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion compat-0.3/transport/jsonrpc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-compat-0.3-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>../..</relativePath>
</parent>
<artifactId>a2a-java-sdk-compat-0.3-transport-jsonrpc</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion compat-0.3/transport/rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-compat-0.3-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>../..</relativePath>
</parent>
<artifactId>a2a-java-sdk-compat-0.3-transport-rest</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion docs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion examples/cloud-deployment/server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>../../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion examples/helloworld/client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-examples-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
</parent>

<artifactId>a2a-java-sdk-examples-client</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

///usr/bin/env jbang "$0" "$@" ; exit $?

//DEPS org.a2aproject.sdk:a2a-java-sdk-client:1.3.3.Final-SNAPSHOT
//DEPS org.a2aproject.sdk:a2a-java-sdk-client-transport-jsonrpc:1.3.3.Final-SNAPSHOT
//DEPS org.a2aproject.sdk:a2a-java-sdk-client-transport-grpc:1.3.3.Final-SNAPSHOT
//DEPS org.a2aproject.sdk:a2a-java-sdk-client-transport-rest:1.3.3.Final-SNAPSHOT
//DEPS org.a2aproject.sdk:a2a-java-sdk-opentelemetry-client:1.3.3.Final-SNAPSHOT
//DEPS org.a2aproject.sdk:a2a-java-sdk-opentelemetry-client-propagation:1.3.3.Final-SNAPSHOT
//DEPS org.a2aproject.sdk:a2a-java-sdk-client:1.4.0.Final
//DEPS org.a2aproject.sdk:a2a-java-sdk-client-transport-jsonrpc:1.4.0.Final
//DEPS org.a2aproject.sdk:a2a-java-sdk-client-transport-grpc:1.4.0.Final
//DEPS org.a2aproject.sdk:a2a-java-sdk-client-transport-rest:1.4.0.Final
//DEPS org.a2aproject.sdk:a2a-java-sdk-opentelemetry-client:1.4.0.Final
//DEPS org.a2aproject.sdk:a2a-java-sdk-opentelemetry-client-propagation:1.4.0.Final
//DEPS io.opentelemetry:opentelemetry-sdk:1.60.1
//DEPS io.opentelemetry:opentelemetry-exporter-otlp:1.60.1
//DEPS io.opentelemetry:opentelemetry-exporter-logging:1.60.1
Expand Down
2 changes: 1 addition & 1 deletion examples/helloworld/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion examples/helloworld/server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-examples-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
</parent>

<artifactId>a2a-java-sdk-examples-server</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion examples/stream-lifecycle/client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.a2aproject.sdk</groupId>
<artifactId>a2a-java-sdk-examples-stream-lifecycle-parent</artifactId>
<version>1.3.3.Final-SNAPSHOT</version>
<version>1.4.0.Final</version>
</parent>

<artifactId>a2a-java-sdk-examples-stream-lifecycle-client</artifactId>
Expand Down
Loading
Loading