Repository navigation
GitHub Copilot SDK for Java 1.0.9-preview.3
Pre-releaseInstallation
vMaj.Min.Micro. For example v0.1.32. The corresponding maven version for the release will be Maj.Min.Micro-java.N, where Maj, Min and Micro are the corresponding numbers for the reference implementation release, and N is a monotonically increasing sequence number starting with 0 for each release. See the corresponding architectural decision record for more information in the docs/adr directory of the source code.
📦 [View on Maven Central]((central.sonatype.com/redacted)
📖 [Documentation]((github.github.io/redacted) · [Javadoc]((github.github.io/redacted)
Maven
<dependency>
<groupId>com.github</groupId>
<artifactId>copilot-sdk-java</artifactId>
<version>1.0.9-preview.3</version>
</dependency>Gradle (Kotlin DSL)
implementation("com.github:copilot-sdk-java:1.0.9-preview.3")Gradle (Groovy DSL)
implementation 'com.github:copilot-sdk-java:1.0.9-preview.3'Feature: managed approval requirement on permission requests
Permission handlers can now inspect request.getManagedApprovalRequired() to determine when a human decision is required. PermissionHandler.APPROVE_ALL now completes exceptionally when managed settings are enabled, preventing auto-approval of requests that require explicit human review. (#2080)
PermissionHandler handler = (request, invocation) -> {
if (Boolean.TRUE.equals(request.getManagedApprovalRequired())) {
return requestHumanApproval(request);
}
return CompletableFuture.completedFuture(
new PermissionRequestResult().setKind(PermissionRequestResultKind.APPROVED));
};Feature: GitHub MCP tool configuration
SessionConfig and ResumeSessionConfig now expose a GitHubMcpToolConfig option to configure the built-in GitHub MCP server, including selectively enabling tools and disabling form deferral. (#2112)
var config = new SessionConfig()
.setGitHubMcpToolConfig(new GitHubMcpToolConfig()
.setDisableFormDeferral(true));Feature: additional directories in session configuration
Sessions can now be granted access to directories beyond the working directory via setAdditionalDirectories(...) on SessionConfig and ResumeSessionConfig. (#2180)
var config = new SessionConfig()
.setWorkingDirectory("/repo")
.setAdditionalDirectories(List.of("/shared/libs", "/data"));Other changes
- feature: add
enableExperimentalModetoSessionConfig/ResumeSessionConfigwith mode-aware defaults (#1600)
New contributors
@joshspicermade their first contribution in #2080
Generated by Release Changelog Generator · sonnet46 59.6 AIC · ⌖ 6.15 AIC · ⊞ 8.6K