Skip to content

Commit eb8b543

Browse files
feat!: bump to v4.0.0 (#108)
* feat!: bump to v4.0.0 — remove totalSteps from CreateWorkflowRequest * fix: update install docs to reference v4.0.0 Maven and Gradle snippets in README still showed 3.2.0. * chore: complete v4.0.0 changelog with all changes since v3.8.0 Add MCP operation default context, README install version updates, CI and infrastructure changes. Set release date to 2026-03-09.
1 parent dcad46c commit eb8b543

6 files changed

Lines changed: 31 additions & 23 deletions

File tree

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,31 @@ All notable changes to the AxonFlow Java SDK will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [4.0.0] - 2026-03-09
9+
10+
### Breaking Changes
11+
12+
- **Removed `totalSteps` from `CreateWorkflowRequest`**. Requires Platform v4.5.0+ (recommended v5.0.0+).
13+
Total steps are auto-computed when the workflow reaches a terminal state.
14+
- **`mcpCheckInput()` default `operation` changed from `"query"` to `"execute"`** (#104). Callers relying on
15+
the implicit `"query"` default must now pass `operation("query")` explicitly. The check-input endpoint is
16+
used by external orchestrators managing their own MCP execution, so `"execute"` (conservative) is the
17+
correct default over `"query"` (read-only).
18+
19+
### Changed
20+
21+
- README install snippets updated from `3.2.0` to `4.0.0` for Maven and Gradle
22+
- Removed Scarf tracking pixel from README (#107)
23+
- SDK telemetry suppressed in CI workflows via `DO_NOT_TRACK=1` (#105)
24+
- Maven dependency caching enabled in CI and release workflows (#106)
25+
26+
### Note
27+
28+
`MediaAnalysisResult.getExtractedText()` was replaced by `hasExtractedText()` + `getExtractedTextLength()`
29+
in v3.5.0. This major version formally acknowledges that breaking change.
30+
31+
---
32+
833
## [3.8.0] - 2026-03-03
934

1035
### Added

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ If you're new to AxonFlow, this short video shows how the control plane and SDKs
4545
<dependency>
4646
<groupId>com.getaxonflow</groupId>
4747
<artifactId>axonflow-sdk</artifactId>
48-
<version>3.2.0</version>
48+
<version>4.0.0</version>
4949
</dependency>
5050
```
5151

5252
### Gradle
5353

5454
```groovy
55-
implementation 'com.getaxonflow:axonflow-sdk:3.2.0'
55+
implementation 'com.getaxonflow:axonflow-sdk:4.0.0'
5656
```
5757

5858
## Evaluation Tier (Free License)

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.getaxonflow</groupId>
88
<artifactId>axonflow-sdk</artifactId>
9-
<version>3.6.0</version>
9+
<version>4.0.0</version>
1010
<packaging>jar</packaging>
1111

1212
<name>AxonFlow Java SDK</name>

src/main/java/com/getaxonflow/sdk/AxonFlow.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4076,7 +4076,6 @@ public CompletableFuture<UsageSummary> getUsageSummaryAsync(String period) {
40764076
* CreateWorkflowRequest.builder()
40774077
* .workflowName("code-review-pipeline")
40784078
* .source(WorkflowSource.LANGGRAPH)
4079-
* .totalSteps(5)
40804079
* .build()
40814080
* );
40824081
* System.out.println("Workflow created: " + workflow.getWorkflowId());

src/main/java/com/getaxonflow/sdk/types/workflow/WorkflowTypes.java

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,6 @@ public static final class CreateWorkflowRequest {
225225
@JsonProperty("source")
226226
private final WorkflowSource source;
227227

228-
@JsonProperty("total_steps")
229-
private final Integer totalSteps;
230-
231228
@JsonProperty("metadata")
232229
private final Map<String, Object> metadata;
233230

@@ -238,20 +235,18 @@ public static final class CreateWorkflowRequest {
238235
* Backward-compatible constructor without traceId.
239236
*/
240237
public CreateWorkflowRequest(String workflowName, WorkflowSource source,
241-
Integer totalSteps, Map<String, Object> metadata) {
242-
this(workflowName, source, totalSteps, metadata, null);
238+
Map<String, Object> metadata) {
239+
this(workflowName, source, metadata, null);
243240
}
244241

245242
@JsonCreator
246243
public CreateWorkflowRequest(
247244
@JsonProperty("workflow_name") String workflowName,
248245
@JsonProperty("source") WorkflowSource source,
249-
@JsonProperty("total_steps") Integer totalSteps,
250246
@JsonProperty("metadata") Map<String, Object> metadata,
251247
@JsonProperty("trace_id") String traceId) {
252248
this.workflowName = Objects.requireNonNull(workflowName, "workflowName is required");
253249
this.source = source != null ? source : WorkflowSource.EXTERNAL;
254-
this.totalSteps = totalSteps;
255250
this.metadata = metadata != null ? Collections.unmodifiableMap(metadata) : Collections.emptyMap();
256251
this.traceId = traceId;
257252
}
@@ -264,10 +259,6 @@ public WorkflowSource getSource() {
264259
return source;
265260
}
266261

267-
public Integer getTotalSteps() {
268-
return totalSteps;
269-
}
270-
271262
public Map<String, Object> getMetadata() {
272263
return metadata;
273264
}
@@ -283,7 +274,6 @@ public static Builder builder() {
283274
public static final class Builder {
284275
private String workflowName;
285276
private WorkflowSource source = WorkflowSource.EXTERNAL;
286-
private Integer totalSteps;
287277
private Map<String, Object> metadata;
288278
private String traceId;
289279

@@ -297,11 +287,6 @@ public Builder source(WorkflowSource source) {
297287
return this;
298288
}
299289

300-
public Builder totalSteps(Integer totalSteps) {
301-
this.totalSteps = totalSteps;
302-
return this;
303-
}
304-
305290
public Builder metadata(Map<String, Object> metadata) {
306291
this.metadata = metadata;
307292
return this;
@@ -313,7 +298,7 @@ public Builder traceId(String traceId) {
313298
}
314299

315300
public CreateWorkflowRequest build() {
316-
return new CreateWorkflowRequest(workflowName, source, totalSteps, metadata, traceId);
301+
return new CreateWorkflowRequest(workflowName, source, metadata, traceId);
317302
}
318303
}
319304
}

src/main/java/com/getaxonflow/sdk/types/workflow/package-info.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
* CreateWorkflowRequest.builder()
3939
* .workflowName("code-review-pipeline")
4040
* .source(WorkflowSource.LANGGRAPH)
41-
* .totalSteps(5)
4241
* .build()
4342
* );
4443
*

0 commit comments

Comments
 (0)