Skip to content

Commit 14b0ed9

Browse files
committed
Merge remote-tracking branch 'origin/main' into copilot/copilot-pr-60
2 parents e10745e + db56504 commit 14b0ed9

File tree

17 files changed

+81
-47
lines changed

17 files changed

+81
-47
lines changed

.github/templates/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ <h2 class="section-title">Available Versions</h2>
6565
</div>
6666
</div>
6767

68-
<div class="alert alert-warning">
69-
⚠️ <strong>Disclaimer:</strong> This is the official Java SDK for GitHub Copilot. This repository treats the official .NET and nodejs SDKs for GitHub Copilot as reference implementations. These SDKS are all officially supported as GitHub open source projects. The Java implementation follows the backward compatibility guarantees offered by the reference implementations. As such this implementation may introduce breaking changes, according to the policy declared by the reference implementations. Use at your own risk.
68+
<div class="alert alert-info">
69+
ℹ️ <strong>Public Preview:</strong> This is the official Java SDK for GitHub Copilot. This repository treats the official .NET and Node.js SDKs for GitHub Copilot as reference implementations. These SDKs are all officially supported as GitHub open source projects. The Java implementation follows the backward compatibility guarantees offered by the reference implementations. While in public preview, minor breaking changes may still occur between releases.
7070
</div>
7171

7272
<div class="alert alert-warning">

.github/workflows/notes.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Installation
22

3-
⚠️ **Disclaimer:** This is the official Java SDK for GitHub Copilot. This repository treats the official .NET and nodejs SDKs for GitHub Copilot as reference implementations. These SDKS are all officially supported as GitHub open source projects. The Java implementation follows the backward compatibility guarantees offered by the reference implementations. As such this implementation may introduce breaking changes, according to the policy declared by the reference implementations. Use at your own risk.
3+
ℹ️ **Public Preview:** This is the official Java SDK for GitHub Copilot. This repository treats the official .NET and Node.js SDKs for GitHub Copilot as reference implementations. These SDKs are all officially supported as GitHub open source projects. The Java implementation follows the backward compatibility guarantees offered by the reference implementations. While in public preview, minor breaking changes may still occur between releases.
44

55
⚠️ **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 relase 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 impementation release, and `N` is a monotonically increasing sequence number starting with 0 for each release. See the corrseponding architectural decision record for more information in the `docs/adr` directory of the source code.
66

.github/workflows/publish-maven.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,13 @@ jobs:
121121
sed -i "s|<version>[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\(-java\.[0-9][0-9]*\)\{0,1\}</version>|<version>${VERSION}</version>|g" README.md
122122
sed -i "s|copilot-sdk-java:[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\(-java\.[0-9][0-9]*\)\{0,1\}|copilot-sdk-java:${VERSION}|g" README.md
123123
124+
# Update snapshot version in README.md
125+
DEV_VERSION="${{ steps.versions.outputs.dev_version }}"
126+
sed -i "s|<version>[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\(-java\.[0-9][0-9]*\)\{0,1\}-SNAPSHOT</version>|<version>${DEV_VERSION}</version>|g" README.md
127+
124128
# Update version in jbang-example.java
125129
sed -i "s|copilot-sdk-java:[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\(-java\.[0-9][0-9]*\)\{0,1\}|copilot-sdk-java:${VERSION}|g" jbang-example.java
130+
sed -i 's|copilot-sdk-java:${project\.version}|copilot-sdk-java:'"${VERSION}"'|g' jbang-example.java
126131
127132
# Update version in cookbook files (hardcoded for direct GitHub browsing and JBang usage)
128133
find src/site/markdown/cookbook -name "*.md" -type f -exec \
@@ -206,7 +211,7 @@ jobs:
206211
207212
# Build the gh release command
208213
GH_ARGS=("${CURRENT_TAG}")
209-
GH_ARGS+=("--title" "Copilot Java SDK ${VERSION}")
214+
GH_ARGS+=("--title" "GitHub Copilot SDK for Java ${VERSION}")
210215
GH_ARGS+=("--notes" "${RELEASE_NOTES}")
211216
GH_ARGS+=("--generate-notes")
212217

CHANGELOG.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
88
99
## [Unreleased]
1010

11-
> **Upstream sync:** [`github/copilot-sdk@f7fd757`](https://github.com/github/copilot-sdk/commit/f7fd7577109d64e261456b16c49baa56258eae4e)
11+
> **Upstream sync:** [`github/copilot-sdk@c3fa6cb`](https://github.com/github/copilot-sdk/commit/c3fa6cbfb83d4a20b7912b1a17013d48f5a277a1)
1212
13+
## [0.2.2-java.1] - 2026-04-07
14+
15+
> **Upstream sync:** [`github/copilot-sdk@c3fa6cb`](https://github.com/github/copilot-sdk/commit/c3fa6cbfb83d4a20b7912b1a17013d48f5a277a1)
1316
### Added
1417

1518
- Slash commands — register `/command` handlers invoked from the CLI TUI via `SessionConfig.setCommands()` (upstream: [`f7fd757`](https://github.com/github/copilot-sdk/commit/f7fd757))
@@ -485,16 +488,22 @@ New types: `GetForegroundSessionResponse`, `SetForegroundSessionResponse`
485488
- Pre-commit hook for Spotless code formatting
486489
- Comprehensive API documentation
487490

488-
[Unreleased]: https://github.com/github/copilot-sdk-java/compare/v0.2.1-java.1...HEAD
491+
[Unreleased]: https://github.com/github/copilot-sdk-java/compare/v0.2.2-java.1...HEAD
492+
[0.2.2-java.1]: https://github.com/github/copilot-sdk-java/compare/v0.2.1-java.1...v0.2.2-java.1
493+
[Unreleased]: https://github.com/github/copilot-sdk-java/compare/v0.2.2-java.1...HEAD
494+
[0.2.2-java.1]: https://github.com/github/copilot-sdk-java/compare/v0.2.1-java.1...v0.2.2-java.1
489495
[0.2.1-java.1]: https://github.com/github/copilot-sdk-java/compare/v0.2.1-java.0...v0.2.1-java.1
490-
[Unreleased]: https://github.com/github/copilot-sdk-java/compare/v0.2.1-java.1...HEAD
496+
[Unreleased]: https://github.com/github/copilot-sdk-java/compare/v0.2.2-java.1...HEAD
497+
[0.2.2-java.1]: https://github.com/github/copilot-sdk-java/compare/v0.2.1-java.1...v0.2.2-java.1
491498
[0.2.1-java.1]: https://github.com/github/copilot-sdk-java/compare/v0.2.1-java.0...v0.2.1-java.1
492499
[0.2.1-java.0]: https://github.com/github/copilot-sdk-java/compare/v0.1.32-java.0...v0.2.1-java.0
493-
[Unreleased]: https://github.com/github/copilot-sdk-java/compare/v0.2.1-java.1...HEAD
500+
[Unreleased]: https://github.com/github/copilot-sdk-java/compare/v0.2.2-java.1...HEAD
501+
[0.2.2-java.1]: https://github.com/github/copilot-sdk-java/compare/v0.2.1-java.1...v0.2.2-java.1
494502
[0.2.1-java.1]: https://github.com/github/copilot-sdk-java/compare/v0.2.1-java.0...v0.2.1-java.1
495503
[0.2.1-java.0]: https://github.com/github/copilot-sdk-java/compare/v0.1.32-java.0...v0.2.1-java.0
496504
[0.1.32-java.0]: https://github.com/github/copilot-sdk-java/compare/v1.0.11...v0.1.32-java.0
497-
[Unreleased]: https://github.com/github/copilot-sdk-java/compare/v0.2.1-java.1...HEAD
505+
[Unreleased]: https://github.com/github/copilot-sdk-java/compare/v0.2.2-java.1...HEAD
506+
[0.2.2-java.1]: https://github.com/github/copilot-sdk-java/compare/v0.2.1-java.1...v0.2.2-java.1
498507
[0.2.1-java.1]: https://github.com/github/copilot-sdk-java/compare/v0.2.1-java.0...v0.2.1-java.1
499508
[0.2.1-java.0]: https://github.com/github/copilot-sdk-java/compare/v0.1.32-java.0...v0.2.1-java.0
500509
[0.1.32-java.0]: https://github.com/github/copilot-sdk-java/compare/v1.0.11...v0.1.32-java.0

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
## Background
1818

19-
> ⚠️ **Disclaimer:** This SDK tracks the pre-GA [GitHub Copilot SDKs](https://github.com/github/copilot-sdk) for [.NET](https://github.com/github/copilot-sdk/tree/main/dotnet) and [nodejs](https://github.com/github/copilot-sdk/tree/main/nodejs). This SDK may change in breaking ways. Use at your own risk.
19+
> ℹ️ **Public Preview:** This SDK tracks the [GitHub Copilot SDKs](https://github.com/github/copilot-sdk) for [.NET](https://github.com/github/copilot-sdk/tree/main/dotnet) and [Node.js](https://github.com/github/copilot-sdk/tree/main/nodejs). While in public preview, minor breaking changes may still occur between releases.
2020
2121
Java SDK for programmatic control of GitHub Copilot CLI, enabling you to build AI-powered applications and agentic workflows.
2222

@@ -33,7 +33,7 @@ Java SDK for programmatic control of GitHub Copilot CLI, enabling you to build A
3333
<dependency>
3434
<groupId>com.github</groupId>
3535
<artifactId>copilot-sdk-java</artifactId>
36-
<version>0.2.1-java.1</version>
36+
<version>0.2.2-java.1</version>
3737
</dependency>
3838
```
3939

@@ -53,14 +53,14 @@ Snapshot builds of the next development version are published to Maven Central S
5353
<dependency>
5454
<groupId>com.github</groupId>
5555
<artifactId>copilot-sdk-java</artifactId>
56-
<version>0.2.1-java.0-SNAPSHOT</version>
56+
<version>0.2.3-java.1-SNAPSHOT</version>
5757
</dependency>
5858
```
5959

6060
### Gradle
6161

6262
```groovy
63-
implementation 'com.github:copilot-sdk-java:0.2.1-java.1'
63+
implementation 'com.github:copilot-sdk-java:0.2.2-java.1'
6464
```
6565

6666
## Quick Start

instructions/copilot-sdk-java.instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: 'GitHub Copilot SDK Java Instructions'
66

77
## Core Principles
88

9-
- The SDK is in technical preview and may have breaking changes
9+
- The SDK is in public preview and may have breaking changes
1010
- Requires Java 17 or later
1111
- Requires GitHub Copilot CLI installed and in PATH
1212
- Uses `CompletableFuture` for all async operations

jbang-example.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
!
2-
//DEPS com.github:copilot-sdk-java:${project.version}
2+
//DEPS com.github:copilot-sdk-java:0.2.2-java.1
33
import com.github.copilot.sdk.CopilotClient;
44
import com.github.copilot.sdk.events.AssistantMessageEvent;
55
import com.github.copilot.sdk.events.SessionUsageInfoEvent;

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<groupId>com.github</groupId>
99
<artifactId>copilot-sdk-java</artifactId>
10-
<version>0.2.2-java.1-SNAPSHOT</version>
10+
<version>0.2.3-java.1-SNAPSHOT</version>
1111
<packaging>jar</packaging>
1212

1313
<name>GitHub Copilot SDK :: Java</name>

src/site/markdown/cookbook/error-handling.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jbang BasicErrorHandling.java
3030

3131
**Code:**
3232
```java
33-
//DEPS com.github:copilot-sdk-java:0.2.1-java.1
33+
//DEPS com.github:copilot-sdk-java:0.2.2-java.1
3434
import com.github.copilot.sdk.CopilotClient;
3535
import com.github.copilot.sdk.events.AssistantMessageEvent;
3636
import com.github.copilot.sdk.json.MessageOptions;
@@ -64,7 +64,7 @@ public class BasicErrorHandling {
6464
## Handling specific error types
6565

6666
```java
67-
//DEPS com.github:copilot-sdk-java:0.2.1-java.1
67+
//DEPS com.github:copilot-sdk-java:0.2.2-java.1
6868
import com.github.copilot.sdk.CopilotClient;
6969
import java.util.concurrent.ExecutionException;
7070

@@ -99,7 +99,7 @@ public class SpecificErrorHandling {
9999
## Timeout handling
100100

101101
```java
102-
//DEPS com.github:copilot-sdk-java:0.2.1-java.1
102+
//DEPS com.github:copilot-sdk-java:0.2.2-java.1
103103
import com.github.copilot.sdk.CopilotSession;
104104
import com.github.copilot.sdk.events.AssistantMessageEvent;
105105
import com.github.copilot.sdk.json.MessageOptions;
@@ -130,7 +130,7 @@ public class TimeoutHandling {
130130
## Aborting a request
131131

132132
```java
133-
//DEPS com.github:copilot-sdk-java:0.2.1-java.1
133+
//DEPS com.github:copilot-sdk-java:0.2.2-java.1
134134
import com.github.copilot.sdk.CopilotSession;
135135
import com.github.copilot.sdk.json.MessageOptions;
136136
import java.util.concurrent.Executors;
@@ -162,7 +162,7 @@ public class AbortRequest {
162162
## Graceful shutdown
163163

164164
```java
165-
//DEPS com.github:copilot-sdk-java:0.2.1-java.1
165+
//DEPS com.github:copilot-sdk-java:0.2.2-java.1
166166
import com.github.copilot.sdk.CopilotClient;
167167

168168
public class GracefulShutdown {
@@ -192,7 +192,7 @@ public class GracefulShutdown {
192192
## Try-with-resources pattern
193193

194194
```java
195-
//DEPS com.github:copilot-sdk-java:0.2.1-java.1
195+
//DEPS com.github:copilot-sdk-java:0.2.2-java.1
196196
import com.github.copilot.sdk.CopilotClient;
197197
import com.github.copilot.sdk.events.AssistantMessageEvent;
198198
import com.github.copilot.sdk.json.MessageOptions;
@@ -224,7 +224,7 @@ public class TryWithResources {
224224
## Handling tool errors
225225

226226
```java
227-
//DEPS com.github:copilot-sdk-java:0.2.1-java.1
227+
//DEPS com.github:copilot-sdk-java:0.2.2-java.1
228228
import com.github.copilot.sdk.CopilotClient;
229229
import com.github.copilot.sdk.events.AssistantMessageEvent;
230230
import com.github.copilot.sdk.json.MessageOptions;

src/site/markdown/cookbook/managing-local-files.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jbang ManagingLocalFiles.java
3434

3535
**Code:**
3636
```java
37-
//DEPS com.github:copilot-sdk-java:0.2.1-java.1
37+
//DEPS com.github:copilot-sdk-java:0.2.2-java.1
3838
import com.github.copilot.sdk.CopilotClient;
3939
import com.github.copilot.sdk.events.AssistantMessageEvent;
4040
import com.github.copilot.sdk.events.SessionIdleEvent;
@@ -161,7 +161,7 @@ session.send(new MessageOptions().setPrompt(prompt));
161161
## Interactive file organization
162162

163163
```java
164-
//DEPS com.github:copilot-sdk-java:0.2.1-java.1
164+
//DEPS com.github:copilot-sdk-java:0.2.2-java.1
165165
import java.io.BufferedReader;
166166
import java.io.InputStreamReader;
167167

0 commit comments

Comments
 (0)