You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 69fda8a
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CHANGELOG.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,17 @@
2
2
3
3
## [Unreleased]
4
4
5
+
## [0.5.0]
6
+
7
+
### Added
8
+
9
+
- Add typed Forward `ManagedToolConfig.schedule` and `ScheduleToolConfig.accessScope` for Identity- or Template-scoped Schedule management tools. Preserve unknown fields and omitted/null schedule configuration; Template managed-capability updates remain whole-object replacements.
10
+
- Add offline contracts and packaged-consumer checks for Schedule tool scope and direct Managed SA Key Bearer authentication, including rejection without PAT fallback.
11
+
12
+
### Documentation
13
+
14
+
- Document Managed SA Key direct calls separately from optional SAT exchange and Forward authentication, and reconcile Forward coverage to 147 HTTP operations including A2A Agent Card discovery.
Copy file name to clipboardExpand all lines: README.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
The Qoder Cloud Agents Java SDK provides typed synchronous and asynchronous clients, with shared authentication, timeouts, retries, pagination, streaming and error handling.
6
6
7
-
Version **0.4.0** supports both the **Forward API** and the **[Managed API](docs/managed.md)** in one package. Use `ForwardClient` / `AsyncForwardClient` for Forward and `ManagedClient` / `AsyncManagedClient` for Managed.
7
+
Version **0.5.0** supports both the **Forward API** and the **[Managed API](docs/managed.md)** in one package. Use `ForwardClient` / `AsyncForwardClient` for Forward and `ManagedClient` / `AsyncManagedClient` for Managed.
8
8
9
9
-[Installation](#installation)
10
10
-[Quick start](#quick-start)
@@ -20,13 +20,13 @@ Version **0.4.0** supports both the **Forward API** and the **[Managed API](docs
20
20
21
21
## Installation
22
22
23
-
Add the Maven dependency; published versions require no local SDK build or additional repository configuration.
23
+
Add the Maven dependency; published versions require no local SDK build or additional repository configuration. Version 0.5.0 is prepared in this checkout but is not yet published; install the local SDK for development, or use a version listed in [Releases](https://github.com/QoderAI/qoder-cloud-agents-sdk-java/releases).
24
24
25
25
```xml
26
26
<dependency>
27
27
<groupId>com.qoder.sdk</groupId>
28
28
<artifactId>qoder-cloud-agents-sdk</artifactId>
29
-
<version>0.4.0</version>
29
+
<version>0.5.0</version>
30
30
</dependency>
31
31
```
32
32
@@ -76,6 +76,7 @@ PAT and SA are parallel authentication modes:
76
76
| PAT |`.pat(token)`| Managed by your application |
77
77
| SA Key |`.credential(ServiceAccountCredential)`| SDK exchanges, caches and refreshes the SAT on demand |
78
78
| Existing SAT |`.authMode(AuthMode.SA).accessToken(token)`| Managed by your application |
79
+
| Direct SA Key (Managed only) |`.authMode(AuthMode.SA).accessToken(saKey)`| No SAT exchange or renewal; rotate the Key in your application |
79
80
80
81
With no explicit credentials, PAT mode reads `QODER_ACCESS_TOKEN`, then `QODER_PAT`. An explicit token or credential takes precedence over environment tokens; configure only one explicit source. The SDK does not load `.env` files or enable SA merely because `QODER_SA_KEY` is set.
Business requests use the SAT; the SA Key is sent only to the exchange service. For CN, use both `Region.CN` and the CN BaseURL. Keep a shared credential open until all clients using it are closed. Failed SA authentication does not fall back to PAT.
100
+
With `ServiceAccountCredential`, business requests use the SAT; the SA Key is sent only to the exchange service. For CN, use both `Region.CN` and the CN BaseURL. Keep a shared credential open until all clients using it are closed. Failed SA authentication does not fall back to PAT.
101
+
102
+
Managed APIs also accept the full SA Key directly as a Bearer credential through the existing `accessToken(...)` builder. Explicitly read it from your secrets manager or `QODER_SA_KEY`; the SDK does not infer this mode. See [Managed authentication](docs/managed.md#client-and-authentication) for a complete example. Direct SA Key authentication does not apply to Forward business APIs, which require PAT or SAT.
100
103
101
104
Forward also provides explicit administrator/Identity SAT issuance and revocation through `serviceAccountTokens()` and `identities().serviceAccountTokens()`. These methods take a per-call SA Key and do not retry automatically. See [SAT management](docs/usage-sat-drive.md) and [authentication configuration](docs/client-configuration.md).
Copy file name to clipboardExpand all lines: docs/client-configuration.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,8 @@ Forward SAT management uses explicit per-call SA Keys through `serviceAccountTok
56
56
57
57
Close the client after use. A static SAT is not automatically renewed. SA mode does not fall back to `QODER_PAT`. For application-managed rotation, implement `Credential.getToken()` returning a `CompletableFuture<String>`; it is called before each attempt and must be thread-safe and return promptly. Cancelling a request does not cancel a shared credential future.
58
58
59
+
For Managed-only integrations, the full SA Key can instead be passed directly with `ManagedClient.builder().authMode(AuthMode.SA).accessToken(saKey)`. This sends the Key as Bearer without exchange or SAT renewal; do not use this path for Forward business requests. No `QODER_SA_KEY` lookup is automatic. See [Managed authentication](managed.md#client-and-authentication) and [the official credential rules](https://docs.qoder.com/cloud-agents/api/conventions/authentication).
Copy file name to clipboardExpand all lines: docs/maintaining.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Java SDK maintenance
2
2
3
-
SDK 0.4.0 covers Forward and Managed and targets Java 8. Use JDK 17 or later for maintenance tools; the runtime compatibility matrix remains Java 8, 11, 17, 21 and 25.
3
+
SDK 0.5.0 covers Forward and Managed and targets Java 8. Use JDK 17 or later for maintenance tools; the runtime compatibility matrix remains Java 8, 11, 17, 21 and 25.
4
4
5
5
## Local checks and pull requests
6
6
@@ -36,10 +36,10 @@ The SDK's embedded version is filtered from `${project.version}`; do not replace
The release version in this checkout is `0.4.0`. Also update the README dependency and version-specific maintenance examples. Acceptance records must include the resolved version, source SHA and JAR digest. Release versions must not be overwritten; a successful test of an older build is not evidence for a newer one.
42
+
The release version in this checkout is `0.5.0`. Also update the README dependency and version-specific maintenance examples. Acceptance records must include the resolved version, source SHA and JAR digest. Release versions must not be overwritten; a successful test of an older build is not evidence for a newer one.
The base URL is resolved from `.baseUrl(...)`, then `QODER_BASE_URL`, then Global `https://api.qoder.com/api/v1/cloud`. CN uses `https://api.qoder.com.cn/api/v1/cloud`. PAT and static SAT use the same configuration rules as Forward; `ServiceAccountCredential` exchanges an SA Key for a platform SAT with `qca.access`. The examples' `ManagedExampleClient` handles PAT, SA Key and static SAT selection. Managed does not expose Forward's Identity query selector.
29
+
The base URL is resolved from `.baseUrl(...)`, then `QODER_BASE_URL`, then Global `https://api.qoder.com/api/v1/cloud`. CN uses `https://api.qoder.com.cn/api/v1/cloud`. PAT and static SAT use the same configuration rules as Forward. Managed does not expose Forward's Identity query selector.
30
+
31
+
Managed APIs accept the **full SA Key directly** as a Bearer credential; no SAT exchange or renewal is required. Use the existing builder explicitly:
For an independently owned async client, use the same builder with `.buildAsync()` and close it after requests finish. The SDK does not automatically read `QODER_SA_KEY`, exchange a directly configured Key, validate JWT structure or fall back to PAT on rejection. Keep the Key in a secrets manager, rotate it in your application, and select the credential's region and workspace binding; the service enforces access.
47
+
48
+
SAT exchange remains optional: `ServiceAccountCredential` obtains, caches and refreshes a platform SAT with `qca.access`; request both `qca.access` and `forward.access` if that SAT will also call Forward. Forward business APIs accept PAT/SAT, **not direct SA Keys**. `ManagedExampleClient` retains its existing automatic-exchange behavior when `QODER_SA_KEY` is supplied. For direct calls with that helper, set `QODER_AUTH_MODE=sa` and put the Key in `QODER_ACCESS_TOKEN`, leaving `QODER_SA_KEY` unset in the helper's environment.
49
+
50
+
Source: [official authentication](https://docs.qoder.com/cloud-agents/api/conventions/authentication), checked on 2026-12-03. `ManagedContractsTest` and `ManagedConsumerTest` validate direct Bearer wire placement without contacting the service; real account access remains a separate opt-in verification.
30
51
31
52
`client.async()` shares the parent's transport; closing that view is a no-op. `ManagedClient.builder().buildAsync()` owns its transport. `withOptions(...)` creates an independently closeable client. Ordinary HTTP methods also offer `withResponse()` for status, headers and request ID. SSE streams expose handshake metadata through `response()` and must be closed.
Copy file name to clipboardExpand all lines: docs/releasing.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Java SDK release setup
2
2
3
-
The release version in this checkout is `com.qoder.sdk:qoder-cloud-agents-sdk:0.4.0`. The manual [Release workflow](../.github/workflows/release.yml) publishes using repository Actions secrets. Dispatching it from `main` authorizes publication after all automated checks pass; there is no separate environment approval. The Central account, namespace, signing key and repository settings below must be configured first. The GitHub repository and internal Maven access do not grant Maven Central publishing access.
3
+
The release version in this checkout is `com.qoder.sdk:qoder-cloud-agents-sdk:0.5.0`. The manual [Release workflow](../.github/workflows/release.yml) publishes using repository Actions secrets. Dispatching it from `main` authorizes publication after all automated checks pass; there is no separate environment approval. The Central account, namespace, signing key and repository settings below must be configured first. The GitHub repository and internal Maven access do not grant Maven Central publishing access.
4
4
5
5
`0.1.0-rc.1` was published to Maven Central on 2026-10-21; see its [Release](https://github.com/QoderAI/qoder-cloud-agents-sdk-java/releases/tag/v0.1.0-rc.1) and [successful publication workflow](https://github.com/QoderAI/qoder-cloud-agents-sdk-java/actions/runs/39572349619). A version committed to a POM is not yet a published package: check the workflow's public verification and matching GitHub Release for each version.
6
6
@@ -70,13 +70,13 @@ The namespace variable is a maintainer's setup confirmation, not an automatic ow
70
70
71
71
Prepare a PR that updates the root POM, the example project's version and SDK dependency, plus the changelog version section. Keep an empty `Unreleased` section. Review any version-specific install examples. Merge only after `quality` and all five Java checks succeed. The workflow does not bump versions or merge the PR.
72
72
73
-
For the Forward and Managed contract-alignment `0.4.0` release, run internal integration tests and accept a QA package built from the merged version commit. Record both API surfaces, the Java runtime, cleanup warnings and untested scenarios. Earlier development-package results do not replace this check. Use the merged `0.4.0` main SHA and a new batch ID; leave recovery inputs empty for the first publication.
73
+
For the Forward and Managed contract-alignment `0.5.0` release, run internal integration tests and accept a QA package built from the merged version commit. Record both API surfaces, the Java runtime, cleanup warnings and untested scenarios. Earlier development-package results do not replace this check. Use the merged `0.5.0` main SHA and a new batch ID; leave recovery inputs empty for the first publication.
74
74
75
75
Open **Actions → Release → Run workflow**, select **main**, and verify the following inputs before dispatch. Successful preflight automatically proceeds to signing and publication; it does not pause for an additional approval.
76
76
77
77
| Input | First publication |
78
78
| --- | --- |
79
-
|`version`| The reviewed version without `v` or `SNAPSHOT`, for example `0.4.0`|
79
+
|`version`| The reviewed version without `v` or `SNAPSHOT`, for example `0.5.0`|
80
80
|`commit_sha`| Full 40-character lowercase SHA of the current GitHub main |
81
81
|`batch_id`| 1–64 letters/digits/dots/underscores/hyphens, starting with a letter or digit |
0 commit comments