Visitar URL original
Release GitHub Copilot SDK for Java 1.0.9-preview.3 · github/copilot-sdk · GitHub
Skip to content

GitHub Copilot SDK for Java 1.0.9-preview.3

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 04 Aug 01:54
· 295 commits to main since this release

Installation

⚠️ Artifact versioning plan: Releases of this implementation track releases of the reference implementation. For each release of the reference implementation, there may follow a corresponding release of this implementation with the same number as the reference implementation. Release identifiers of the reference implementation are in the form 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 enableExperimentalMode to SessionConfig/ResumeSessionConfig with mode-aware defaults (#1600)

New contributors

  • @joshspicer made their first contribution in #2080

Generated by Release Changelog Generator · sonnet46 59.6 AIC · ⌖ 6.15 AIC · ⊞ 8.6K