Skip to content

Commit 7c32952

Browse files
committed
On branch edburns/dd-2785864-pre-public-non-code-changes The artifactId in jbang dependency lines like //DEPS should point to copilot-sdk-java
modified: jbang-example.java modified: src/site/markdown/cookbook/error-handling.md modified: src/site/markdown/cookbook/managing-local-files.md modified: src/site/markdown/cookbook/multiple-sessions.md modified: src/site/markdown/cookbook/persisting-sessions.md modified: src/site/markdown/cookbook/pr-visualization.md modified: src/site/markdown/getting-started.md modified: src/site/markdown/index.md @brunoborges wrote: > The artifactId in jbang dependency lines like //DEPS should point to copilot-sdk-java
1 parent 54ba35f commit 7c32952

File tree

8 files changed

+20
-20
lines changed

8 files changed

+20
-20
lines changed

jbang-example.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
2-
//DEPS com.github:copilot-sdk:0.1.32
1+
!
2+
//DEPS com.github:copilot-sdk-java:${project.version}
33
import com.github.copilot.sdk.*;
44
import com.github.copilot.sdk.events.*;
55
import com.github.copilot.sdk.json.*;

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:0.1.32
33+
//DEPS com.github:copilot-sdk-java:${project.version}
3434
import com.github.copilot.sdk.*;
3535
import com.github.copilot.sdk.events.*;
3636
import com.github.copilot.sdk.json.*;
@@ -62,7 +62,7 @@ public class BasicErrorHandling {
6262
## Handling specific error types
6363

6464
```java
65-
//DEPS com.github:copilot-sdk:0.1.32
65+
//DEPS com.github:copilot-sdk-java:${project.version}
6666
import com.github.copilot.sdk.*;
6767
import com.github.copilot.sdk.events.*;
6868
import com.github.copilot.sdk.json.*;
@@ -99,7 +99,7 @@ public class SpecificErrorHandling {
9999
## Timeout handling
100100

101101
```java
102-
//DEPS com.github:copilot-sdk:0.1.32
102+
//DEPS com.github:copilot-sdk-java:${project.version}
103103
import com.github.copilot.sdk.*;
104104
import com.github.copilot.sdk.events.*;
105105
import com.github.copilot.sdk.json.*;
@@ -130,7 +130,7 @@ public class TimeoutHandling {
130130
## Aborting a request
131131

132132
```java
133-
//DEPS com.github:copilot-sdk:0.1.32
133+
//DEPS com.github:copilot-sdk-java:${project.version}
134134
import com.github.copilot.sdk.*;
135135
import com.github.copilot.sdk.events.*;
136136
import com.github.copilot.sdk.json.*;
@@ -163,7 +163,7 @@ public class AbortRequest {
163163
## Graceful shutdown
164164

165165
```java
166-
//DEPS com.github:copilot-sdk:0.1.32
166+
//DEPS com.github:copilot-sdk-java:${project.version}
167167
import com.github.copilot.sdk.*;
168168
import com.github.copilot.sdk.events.*;
169169
import com.github.copilot.sdk.json.*;
@@ -195,7 +195,7 @@ public class GracefulShutdown {
195195
## Try-with-resources pattern
196196

197197
```java
198-
//DEPS com.github:copilot-sdk:0.1.32
198+
//DEPS com.github:copilot-sdk-java:${project.version}
199199
import com.github.copilot.sdk.*;
200200
import com.github.copilot.sdk.events.*;
201201
import com.github.copilot.sdk.json.*;
@@ -225,7 +225,7 @@ public class TryWithResources {
225225
## Handling tool errors
226226

227227
```java
228-
//DEPS com.github:copilot-sdk:0.1.32
228+
//DEPS com.github:copilot-sdk-java:${project.version}
229229
import com.github.copilot.sdk.*;
230230
import com.github.copilot.sdk.events.*;
231231
import com.github.copilot.sdk.json.*;

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:0.1.32
37+
//DEPS com.github:copilot-sdk-java:${project.version}
3838
import com.github.copilot.sdk.*;
3939
import com.github.copilot.sdk.events.*;
4040
import com.github.copilot.sdk.json.*;
@@ -156,7 +156,7 @@ session.send(new MessageOptions().setPrompt(prompt));
156156
## Interactive file organization
157157

158158
```java
159-
//DEPS com.github:copilot-sdk:0.1.32
159+
//DEPS com.github:copilot-sdk-java:${project.version}
160160
import java.io.BufferedReader;
161161
import java.io.InputStreamReader;
162162

src/site/markdown/cookbook/multiple-sessions.md

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

3131
**Code:**
3232
```java
33-
//DEPS com.github:copilot-sdk:0.1.32
33+
//DEPS com.github:copilot-sdk-java:${project.version}
3434
import com.github.copilot.sdk.*;
3535
import com.github.copilot.sdk.events.*;
3636
import com.github.copilot.sdk.json.*;
@@ -121,7 +121,7 @@ try {
121121
## Managing session lifecycle with CompletableFuture
122122

123123
```java
124-
//DEPS com.github:copilot-sdk:0.1.32
124+
//DEPS com.github:copilot-sdk-java:${project.version}
125125
import java.util.concurrent.CompletableFuture;
126126
import java.util.List;
127127

src/site/markdown/cookbook/persisting-sessions.md

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

3131
**Code:**
3232
```java
33-
//DEPS com.github:copilot-sdk:0.1.32
33+
//DEPS com.github:copilot-sdk-java:${project.version}
3434
import com.github.copilot.sdk.*;
3535
import com.github.copilot.sdk.events.*;
3636
import com.github.copilot.sdk.json.*;
@@ -125,7 +125,7 @@ public class DeleteSession {
125125
## Getting session history
126126

127127
```java
128-
//DEPS com.github:copilot-sdk:0.1.32
128+
//DEPS com.github:copilot-sdk-java:${project.version}
129129
import com.github.copilot.sdk.*;
130130
import com.github.copilot.sdk.events.*;
131131
import com.github.copilot.sdk.json.*;
@@ -158,7 +158,7 @@ public class SessionHistory {
158158
## Complete example with session management
159159

160160
```java
161-
//DEPS com.github:copilot-sdk:0.1.32
161+
//DEPS com.github:copilot-sdk-java:${project.version}
162162
import java.util.Scanner;
163163

164164
public class SessionManager {

src/site/markdown/cookbook/pr-visualization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jbang PRVisualization.java github/copilot-sdk
3434
## Full example: PRVisualization.java
3535

3636
```java
37-
//DEPS com.github:copilot-sdk:0.1.32
37+
//DEPS com.github:copilot-sdk-java:${project.version}
3838
import com.github.copilot.sdk.*;
3939
import com.github.copilot.sdk.events.*;
4040
import com.github.copilot.sdk.json.*;

src/site/markdown/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Build Your First Copilot-Powered App
1+
!# Build Your First Copilot-Powered App
22

33
In this tutorial, you'll use the Copilot SDK for Java to build a command-line assistant. You'll start with the basics, add streaming responses, then add custom tools - giving Copilot the ability to call your code.
44

@@ -56,7 +56,7 @@ implementation 'com.github:copilot-sdk:${project.version}'
5656
For the fastest way to try the SDK without setting up a project, use [JBang](https://www.jbang.dev/). Create a file named `HelloCopilot.java` with the following header, and then proceed to Step 2 by appending the proposed content into this same file.
5757

5858
```bash
59-
//DEPS com.github:copilot-sdk:${project.version}
59+
//DEPS com.github:copilot-sdk-java:${project.version}
6060
```
6161

6262
## Step 2: Send Your First Message

src/site/markdown/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ You can quickly try the SDK without setting up a full project using [JBang](http
8383

8484
# Create a simple script
8585
cat > hello-copilot.java << 'EOF'
86-
//DEPS com.github:copilot-sdk:${project.version}
86+
//DEPS com.github:copilot-sdk-java:${project.version}
8787
import com.github.copilot.sdk.*;
8888
import com.github.copilot.sdk.events.*;
8989
import com.github.copilot.sdk.json.*;

0 commit comments

Comments
 (0)