Skip to content

Releases: github/copilot-sdk

rust/v1.0.6

Choose a tag to compare

@github-actions github-actions released this 08 Jul 16:02
7e29004

What's Changed

  • Edburns/1810 java tool ergonomics tool as lambda seeking review by @edburns in #1895
  • test(java): add arity 0 and arity 2 coverage to ErgonomicToolDefinitionIT by @edburns in #1897
  • Update @github/copilot to 1.0.69-1 by @github-actions[bot] in #1908
  • Fix telemetry forwarding handshake CI failures by @stephentoub in #1909
  • Improve E2E coverage across SDKs by @stephentoub in #1906
  • dotnet: in-process FFI runtime hosting (InProcess transport) by @SteveSandersonMS in #1901
  • Update @github/copilot to 1.0.69-2 by @github-actions[bot] in #1914
  • Remove P2 installation, use simple retry instead by @edburns in #1916
  • Restrict block-remove-before-merge check to PRs targeting main by @edburns in #1898
  • docs(java): add ADR-007 native runtime bundling strategy by @edburns in #1923
  • Honor inprocess transport in C# E2E harness and fix in-process auth by @SteveSandersonMS in #1920
  • Simplify in-process env isolation to snapshot/restore by @SteveSandersonMS in #1929
  • fix(python): preserve original JSON keys in Data shim round-trips by @syf2211 in #1900
  • C#: make per-client Environment coherent per transport by @SteveSandersonMS in #1930
  • Make .NET CopilotClient.DisposeAsync graceful by @SteveSandersonMS in #1932
  • Update @github/copilot to 1.0.69-3 by @github-actions[bot] in #1940
  • Surface Pydantic ValidationError to LLM in tool arg validation by @idryzhov in #1862
  • Update @github/copilot to 1.0.69 by @github-actions[bot] in #1941

New Contributors

Full Changelog: rust/v1.0.6-preview.1...rust/v1.0.6

GitHub Copilot SDK for Java 1.0.6

Choose a tag to compare

@github-actions github-actions released this 08 Jul 16:06

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.6</version>
</dependency>

Gradle (Kotlin DSL)

implementation("com.github:copilot-sdk-java:1.0.6")

Gradle (Groovy DSL)

implementation 'com.github:copilot-sdk-java:1.0.6'

Feature: inline lambda tool definitions

Developers can now define tools directly at the call site using ToolDefinition.from(...) with typed lambda handlers and Param.of(...) parameter metadata — no separate annotated class required. Async variants (fromAsync) and ToolInvocation context injection (fromWithToolInvocation) are also available. (#1895)

ToolDefinition greet = ToolDefinition.from(
    "greet", "Greets a user by name",
    Param.of(String.class, "name", "The user's name"),
    name -> "Hello, " + name + "!");

Other changes

  • bugfix: [Java] preserve explicit null map values in JSON-RPC params so user setting clears reach the CLI (#1906)
  • feature: [Java] add experimental onGitHubTelemetry callback on CopilotClientOptions for receiving forwarded GitHub telemetry events (#1835)

Generated by Release Changelog Generator · sonnet46 2.5M

v1.0.6-preview.1

v1.0.6-preview.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 02 Jul 15:31
b0c7706

Feature: experimental context attribution APIs

Two new experimental methods on session.metadata provide per-source token attribution for the session's context window. (#1886)

getContextAttribution() returns a flat list of attribution entries — skills, subagents, MCP servers, tools, plugins — each with a token count and hierarchical nesting via parentId. getContextHeaviestMessages() returns the largest individual messages currently in context, most-expensive first.

const attr = await session.metadata.getContextAttribution();
// attr.contextAttribution.entries → [{ kind: 'skill', id: 'skill:tmux', tokens: 1234, ... }, ...]
const heavy = await session.metadata.getContextHeaviestMessages({ limit: 10 });
var attr = await session.Metadata.GetContextAttributionAsync();
var heavy = await session.Metadata.GetContextHeaviestMessagesAsync(limit: 10);

Other changes

  • feature: SlashCommandInput now supports an optional choices field, allowing slash commands to declare selectable literal options with human-facing descriptions (#1886)
  • feature: ExternalToolTextResultForLlm now supports toolReferences for returning deferred tool names to the model from a tool-search override (#1886)

Generated by Release Changelog Generator · claude-sonnet-4.6

Generated by Release Changelog Generator · sonnet46 1.8M

rust/v1.0.6-preview.1

rust/v1.0.6-preview.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 02 Jul 15:31
b0c7706

What's Changed

  • Update @github/copilot to 1.0.68 by @github-actions[bot] in #1886
  • Update Java JaCoCo coverage badge by @github-actions[bot] in #1833
  • Remove Java JaCoCo badge auto-update pipeline by @brunoborges with @Copilot in #1826
  • Update @github/copilot to 1.0.69-0 by @github-actions[bot] in #1892

Full Changelog: rust/v1.0.6-preview.0...rust/v1.0.6-preview.1

GitHub Copilot SDK for Java 1.0.6-preview.1

Choose a tag to compare

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.6-preview.1</version>
</dependency>

Gradle (Kotlin DSL)

implementation("com.github:copilot-sdk-java:1.0.6-preview.1")

Gradle (Groovy DSL)

implementation 'com.github:copilot-sdk-java:1.0.6-preview.1'

Feature: experimental GitHub telemetry forwarding

The Java SDK now supports forwarding per-session GitHub telemetry events to your application. Set onGitHubTelemetry on CopilotClientOptions to receive gitHubTelemetry.event notifications from the runtime; the client automatically opts every session it creates or resumes into telemetry forwarding when the handler is present. (#1835)

CopilotClientOptions options = new CopilotClientOptions()
    .setOnGitHubTelemetry(notification -> {
        // process per-session GitHub telemetry event
        return CompletableFuture.completedFuture(null);
    });

Note: This is an experimental feature (@CopilotExperimental) and may change or be removed without notice.

Generated by Release Changelog Generator · sonnet46 977.2K

v1.0.6-preview.0

v1.0.6-preview.0 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 01 Jul 22:41
02f2604

Feature: experimental GitHub telemetry redirection

All SDKs now support an optional onGitHubTelemetry callback in ClientOptions that lets hosts receive per-session GitHub telemetry events forwarded by the runtime. When a handler is registered, the client automatically opts sessions in via enableGitHubTelemetryRedirection and dispatches each incoming gitHubTelemetry.event notification to the callback. This feature is experimental, intentionally hidden from public IDE completion in C# ([EditorBrowsable(Never)]) and Rust (#[doc(hidden)]). (#1835)

const client = new CopilotClient({
  onGitHubTelemetry: (notification) => { /* handle telemetry event */ },
});
var client = new CopilotClient(new CopilotClientOptions
{
    OnGitHubTelemetry = (notification) => { /* handle telemetry event */ return Task.CompletedTask; },
});

Generated by Release Changelog Generator · sonnet46 1.2M

v1.0.5

Choose a tag to compare

@github-actions github-actions released this 01 Jul 15:13
62ffcfe

Feature: MCP OAuth host token handlers

SDK applications can now handle OAuth challenges from MCP servers that require host-provided authentication. Register an onMcpAuthRequest callback on the session config and the SDK will invoke it whenever an MCP server responds with a 401 WWW-Authenticate challenge; return an access token (or cancel the request). Supports initial auth, refresh, reauth, and upscope flows across all SDKs. (#1669)

const session = await client.createSession({
    onMcpAuthRequest: async (request) => ({
        accessToken: await myIdentityProvider.getToken(request.serverUrl),
    }),
});
var session = await client.CreateSessionAsync(new SessionConfig
{
    OnMcpAuthRequest = async ctx =>
        McpAuthResult.FromToken(new McpAuthToken
        {
            AccessToken = await myIdentityProvider.GetTokenAsync(ctx.ServerUrl)
        }),
});

Feature: session options for citations, excluded agents, and spending limits

Three additional session configuration options are now available across all SDKs. (#1865)

const session = await client.createSession({
    enableCitations: true,
    excludedBuiltinAgents: ["github-search"],
    sessionLimits: { maxAiCredits: 10 },
});
var session = await client.CreateSessionAsync(new SessionConfig
{
    EnableCitations = true,
    ExcludedBuiltInAgents = ["github-search"],
    SessionLimits = new SessionLimitsConfig { MaxAiCredits = 10 },
});

Other changes

  • improvement: [All SDKs] rename BYOK callback field getBearerTokenbearerTokenProvider; add sessionId to ProviderTokenArgs for per-session token scoping (#1796)
  • bugfix: [Node] fix MCP OAuth registerInterest sent before session.resume, causing "Session not found" errors when resuming a session with onMcpAuthRequest (#1861)
  • feature: [Java] @CopilotTool and @CopilotToolParam annotations with compile-time annotation processor for ergonomic tool registration via ToolDefinition.fromObject() (#1792, #1838)
  • feature: [Java] ToolInvocation parameter injection in @CopilotTool methods for accessing session context without exposing it to the LLM schema (#1832)
  • feature: [Rust] add 9 GitHub-anchored variants to Attachment enum (GitHubCommit, GitHubRelease, GitHubActionsJob, GitHubRepository, GitHubFileDiff, GitHubTreeComparison, GitHubUrl, GitHubFile, GitHubSnippet) (#1823)

New contributors

  • @pallaviraiturkar0 made their first contribution in #1823
  • @roji made their first contribution in #1827
  • @coleflennikenmsft made their first contribution in #1854
  • @szabta89 made their first contribution in #1856

Full Changelog: v1.0.4...v1.0.5

Generated by Release Changelog Generator · sonnet46 2.6M

rust/v1.0.5

Choose a tag to compare

@github-actions github-actions released this 01 Jul 15:14
62ffcfe

What's Changed

  • Update @github/copilot to 1.0.66 by @github-actions[bot] in #1859
  • Update @github/copilot to 1.0.67 by @github-actions[bot] in #1860
  • Expose new session options across SDKs by @stephentoub in #1865
  • Fix MCP OAuth resume order in Node.js SDK by @MackinnonBuck in #1861
  • docs: update billing information for GitHub Copilot SDK usage by @coleflennikenmsft in #1854
  • docs: add session limits guidance by @szabta89 in #1856

New Contributors

Full Changelog: rust/v1.0.5-preview.1...rust/v1.0.5

GitHub Copilot SDK for Java 1.0.5-01

Choose a tag to compare

@github-actions github-actions released this 01 Jul 16:24

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.5-01</version>
</dependency>

Gradle (Kotlin DSL)

implementation("com.github:copilot-sdk-java:1.0.5-01")

Gradle (Groovy DSL)

implementation 'com.github:copilot-sdk-java:1.0.5-01'

Feature: new session options — citations, agent exclusions, and credit limits

Three new options are available on SessionConfig and ResumeSessionConfig. enableCitations (experimental) enables native model citations for supported providers; excludedBuiltInAgents hides named built-in agents from discovery; and sessionLimits sets a per-session AI-credit budget. (#1865)

SessionConfig config = new SessionConfig()
    .setEnableCitations(true)
    .setExcludedBuiltInAgents(List.of("copilot"))
    .setSessionLimits(new SessionLimitsConfig(100.0));

New contributors

  • @coleflennikenmsft made their first contribution in #1854
  • @szabta89 made their first contribution in #1856

Generated by Release Changelog Generator · sonnet46 1.7M

rust/v1.0.6-preview.0

rust/v1.0.6-preview.0 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 01 Jul 22:41
02f2604

What's Changed

  • Update @github/copilot to 1.0.66 by @github-actions[bot] in #1859
  • Update @github/copilot to 1.0.67 by @github-actions[bot] in #1860
  • Expose new session options across SDKs by @stephentoub in #1865
  • Fix MCP OAuth resume order in Node.js SDK by @MackinnonBuck in #1861
  • docs: update billing information for GitHub Copilot SDK usage by @coleflennikenmsft in #1854
  • docs: add session limits guidance by @szabta89 in #1856
  • Stream Anthropic /messages responses in E2E fake handlers by @stephentoub in #1868
  • [changelog] Add changelog for java/v1.0.5-01 by @github-actions[bot] in #1871
  • [changelog] Add changelog for v1.0.5 by @github-actions[bot] in #1869
  • Add experimental GitHub telemetry redirection across all SDKs by @MackinnonBuck in #1835

New Contributors

Full Changelog: rust/v1.0.5-preview.1...rust/v1.0.6-preview.0