Skip to content

Commit 95a51d8

Browse files
Regenerate Java codegen output
Auto-committed by java-codegen-check workflow.
1 parent c0779fa commit 95a51d8

7 files changed

Lines changed: 67 additions & 13 deletions

File tree

java/sdk/src/generated/java/com/github/copilot/generated/SubagentCompletedEvent.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ public record SubagentCompletedEventData(
4747
/** Total tokens (input + output) consumed by the sub-agent */
4848
@JsonProperty("totalTokens") Long totalTokens,
4949
/** Wall-clock duration of the sub-agent execution in milliseconds */
50-
@JsonProperty("durationMs") Long durationMs
50+
@JsonProperty("durationMs") Long durationMs,
51+
/** Whether the sub-agent was torn down by cancellation - its own abort, or an ancestor being killed - instead of finishing its work. Cancellation is not a failure, so the run still reports completion; this distinguishes a torn-down sub-agent from one that ran to the end. */
52+
@JsonProperty("cancelled") Boolean cancelled
5153
) {
5254
}
5355
}

java/sdk/src/generated/java/com/github/copilot/generated/rpc/FactoryAgentOptions.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ public record FactoryAgentOptions(
2626
/** Optional JSON Schema for structured agent output. */
2727
@JsonProperty("schema") Object schema,
2828
/** Optional model identifier for the subagent. */
29-
@JsonProperty("model") String model
29+
@JsonProperty("model") String model,
30+
/** Optional reasoning effort for the subagent. This field is accepted but not yet honored. */
31+
@JsonProperty("reasoningEffort") String reasoningEffort,
32+
/** Optional context tier for the subagent. This field is accepted but not yet honored. */
33+
@JsonProperty("contextTier") ContextTier contextTier,
34+
/** Optional custom agent name for the subagent. This field is accepted but not yet honored. */
35+
@JsonProperty("agent") String agent
3036
) {
3137
}

java/sdk/src/generated/java/com/github/copilot/generated/rpc/SandboxConfig.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ public record SandboxConfig(
2727
@JsonProperty("userPolicy") SandboxConfigUserPolicy userPolicy,
2828
/** Whether to auto-add the current working directory to readwritePaths. Default: true. */
2929
@JsonProperty("addCurrentWorkingDirectory") Boolean addCurrentWorkingDirectory,
30-
/** Whether to inject the Copilot GitHub token as an `http.<host>.extraheader` so authenticated HTTPS git works inside the sandbox without the shell-based credential helper the sandbox blocks. Default: false (opt-in). */
31-
@JsonProperty("gitAuth") Boolean gitAuth,
32-
/** Whether to export `GH_TOKEN` so the `gh` CLI authenticates inside the sandbox without the OS keyring the sandbox blocks. Default: false (opt-in). */
33-
@JsonProperty("ghAuth") Boolean ghAuth,
30+
/** Credential-injection capability flags. */
31+
@JsonProperty("auth") SandboxConfigAuth auth,
3432
/** Whether to auto-grant read access to common developer-tool caches, registries, and toolchains in their default home locations (cargo, go, npm, Maven, and more), plus read-write access to (and, on Unix, up-front creation of) the scratch caches builds write on every run (go-build, ccache, sccache, Gradle caches, Cargo lock/tracker files), so builds work without extra configuration; a relocated CARGO_HOME additionally gets its Cargo lock files granted read-write. Default: true (enabled by default; set to false to opt out). */
3533
@JsonProperty("allowDevToolAccess") Boolean allowDevToolAccess
3634
) {
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*---------------------------------------------------------------------------------------------
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
*--------------------------------------------------------------------------------------------*/
4+
5+
// AUTO-GENERATED FILE - DO NOT EDIT
6+
// Generated from: api.schema.json
7+
8+
package com.github.copilot.generated.rpc;
9+
10+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
11+
import com.fasterxml.jackson.annotation.JsonInclude;
12+
import com.fasterxml.jackson.annotation.JsonProperty;
13+
import javax.annotation.processing.Generated;
14+
15+
/**
16+
* Credential-injection capability flags applied while the sandbox is enabled.
17+
*
18+
* @since 1.0.0
19+
*/
20+
@javax.annotation.processing.Generated("copilot-sdk-codegen")
21+
@JsonInclude(JsonInclude.Include.NON_NULL)
22+
@JsonIgnoreProperties(ignoreUnknown = true)
23+
public record SandboxConfigAuth(
24+
/** Whether to inject git credentials as an `http.<url>.extraheader` so authenticated HTTPS git works inside the sandbox without the shell-based credential helper the sandbox blocks. github.com is served by the Copilot token; every other forge (Azure DevOps, GitHub Enterprise Server, GitLab, ...) by a credential the host resolves from the user's own helper before the sandbox is applied. Default: false (opt-in). */
25+
@JsonProperty("git") Boolean git,
26+
/** Whether to export `GH_TOKEN` so the `gh` CLI authenticates inside the sandbox without the OS keyring the sandbox blocks. Default: false (opt-in). */
27+
@JsonProperty("gh") Boolean gh
28+
) {
29+
}

java/sdk/src/generated/java/com/github/copilot/generated/rpc/SessionFactoryApi.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,19 @@ public CompletableFuture<SessionFactoryGetRunResult> getRun(SessionFactoryGetRun
8383
}
8484

8585
/**
86-
* Empty parameters for listing factory runs.
86+
* Parameters for paging factory runs.
87+
* <p>
88+
* Note: the {@code sessionId} field in the params record is overridden
89+
* by the session-scoped wrapper; any value provided is ignored.
8790
*
8891
* @apiNote This method is experimental and may change in a future version.
8992
* @since 1.0.0
9093
*/
9194
@CopilotExperimental
92-
public CompletableFuture<SessionFactoryListRunsResult> listRuns() {
93-
return caller.invoke("session.factory.listRuns", java.util.Map.of("sessionId", this.sessionId), SessionFactoryListRunsResult.class);
95+
public CompletableFuture<SessionFactoryListRunsResult> listRuns(SessionFactoryListRunsParams params) {
96+
com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params);
97+
_p.put("sessionId", this.sessionId);
98+
return caller.invoke("session.factory.listRuns", _p, SessionFactoryListRunsResult.class);
9499
}
95100

96101
/**

java/sdk/src/generated/java/com/github/copilot/generated/rpc/SessionFactoryListRunsParams.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import javax.annotation.processing.Generated;
1515

1616
/**
17-
* Empty parameters for listing factory runs.
17+
* Parameters for paging factory runs.
1818
*
1919
* @apiNote This method is experimental and may change in a future version.
2020
* @since 1.0.0
@@ -25,6 +25,12 @@
2525
@JsonIgnoreProperties(ignoreUnknown = true)
2626
public record SessionFactoryListRunsParams(
2727
/** Target session identifier */
28-
@JsonProperty("sessionId") String sessionId
28+
@JsonProperty("sessionId") String sessionId,
29+
/** Exclusive forward cursor. */
30+
@JsonProperty("afterSeq") Long afterSeq,
31+
/** Exclusive backward cursor. */
32+
@JsonProperty("beforeSeq") Long beforeSeq,
33+
/** Maximum terminal runs to return. Defaults to 200 and is capped at 500. */
34+
@JsonProperty("limit") Long limit
2935
) {
3036
}

java/sdk/src/generated/java/com/github/copilot/generated/rpc/SessionFactoryListRunsResult.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import javax.annotation.processing.Generated;
1616

1717
/**
18-
* Factory runs in durable creation order.
18+
* A page of factory runs in durable creation order.
1919
*
2020
* @apiNote This method is experimental and may change in a future version.
2121
* @since 1.0.0
@@ -25,6 +25,14 @@
2525
@JsonInclude(JsonInclude.Include.NON_NULL)
2626
@JsonIgnoreProperties(ignoreUnknown = true)
2727
public record SessionFactoryListRunsResult(
28-
@JsonProperty("runs") List<FactoryRunSummary> runs
28+
@JsonProperty("runs") List<FactoryRunSummary> runs,
29+
/** Oldest terminal-run cursor in this page, or null when the terminal window is empty. */
30+
@JsonProperty("oldestSeq") Long oldestSeq,
31+
/** Newest terminal-run cursor in this page, or null when the terminal window is empty. */
32+
@JsonProperty("newestSeq") Long newestSeq,
33+
/** Whether terminal runs newer than this page exist. */
34+
@JsonProperty("hasMoreNewer") Boolean hasMoreNewer,
35+
/** Number of terminal runs older than this page. */
36+
@JsonProperty("omittedOlder") Long omittedOlder
2937
) {
3038
}

0 commit comments

Comments
 (0)