Skip to content

Commit 0ce777f

Browse files
java: bump @github/copilot pin to 1.0.69-2 and regenerate
Aligns the Java module's independently-pinned runtime with the rest of the SDK (nodejs pin). Regenerating drops the internal CLI-only session.mcp.oauth.respond API and widens assistant-usage timeToFirstTokenMs from integer to fractional milliseconds, matching the TS/C#/Python/Go/Rust codegen. Updates the POM CLI version property (normally managed by update-copilot-dependency) and the codegen lockfile. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 63dd612 commit 0ce777f

6 files changed

Lines changed: 51 additions & 89 deletions

File tree

java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
DO NOT EDIT MANUALLY. Updated by the update-copilot-dependency
8787
workflow.
8888
-->
89-
<readonly-copilot-sdk-ref-impl-version-from-lastmerge-file-updated-by-reference-impl-sync>^1.0.69-1</readonly-copilot-sdk-ref-impl-version-from-lastmerge-file-updated-by-reference-impl-sync>
89+
<readonly-copilot-sdk-ref-impl-version-from-lastmerge-file-updated-by-reference-impl-sync>^1.0.69-2</readonly-copilot-sdk-ref-impl-version-from-lastmerge-file-updated-by-reference-impl-sync>
9090

9191
</properties>
9292

java/scripts/codegen/package-lock.json

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

java/scripts/codegen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"generate:java": "tsx java.ts"
88
},
99
"dependencies": {
10-
"@github/copilot": "^1.0.69-1",
10+
"@github/copilot": "^1.0.69-2",
1111
"json-schema": "^0.4.0",
1212
"tsx": "^4.22.4"
1313
}

java/src/generated/java/com/github/copilot/generated/AssistantUsageEvent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public record AssistantUsageEventData(
5252
/** Duration of the API call in milliseconds */
5353
@JsonProperty("duration") Long duration,
5454
/** Time to first token in milliseconds. Only available for streaming requests */
55-
@JsonProperty("timeToFirstTokenMs") Long timeToFirstTokenMs,
55+
@JsonProperty("timeToFirstTokenMs") Double timeToFirstTokenMs,
5656
/** Average inter-token latency in milliseconds. Only available for streaming requests */
5757
@JsonProperty("interTokenLatencyMs") Double interTokenLatencyMs,
5858
/** What initiated this API call (e.g., "sub-agent", "mcp-sampling"); absent for user-initiated calls */

java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthApi.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,6 @@ public final class SessionMcpOauthApi {
3030
this.sessionId = sessionId;
3131
}
3232

33-
/**
34-
* MCP OAuth request id and optional provider response.
35-
* <p>
36-
* Note: the {@code sessionId} field in the params record is overridden
37-
* by the session-scoped wrapper; any value provided is ignored.
38-
*
39-
* @apiNote This method is experimental and may change in a future version.
40-
* @since 1.0.0
41-
*/
42-
@CopilotExperimental
43-
public CompletableFuture<Void> respond(SessionMcpOauthRespondParams params) {
44-
com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params);
45-
_p.put("sessionId", this.sessionId);
46-
return caller.invoke("session.mcp.oauth.respond", _p, Void.class);
47-
}
48-
4933
/**
5034
* Pending MCP OAuth request ID and host-provided token or cancellation response.
5135
* <p>

java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthRespondParams.java

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

0 commit comments

Comments
 (0)