Skip to content

Commit 62a89eb

Browse files
authored
Merge branch 'main' into provider-info
2 parents 8485409 + d8f3425 commit 62a89eb

File tree

11 files changed

+473
-105
lines changed

11 files changed

+473
-105
lines changed

.github/workflows/copilot-setup-steps.yml

Lines changed: 88 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
name: "Copilot Setup Steps"
22

3-
# This workflow configures the environment for GitHub Copilot Agent with gh-aw MCP server
3+
# This workflow configures the environment for GitHub Copilot Agent
4+
# Automatically run the setup steps when they are changed to allow for easy validation
45
on:
56
workflow_dispatch:
67
push:
78
paths:
89
- .github/workflows/copilot-setup-steps.yml
10+
pull_request:
11+
paths:
12+
- .github/workflows/copilot-setup-steps.yml
913

1014
jobs:
1115
# The job MUST be called 'copilot-setup-steps' to be recognized by GitHub Copilot Agent
@@ -18,8 +22,89 @@ jobs:
1822
contents: read
1923

2024
steps:
25+
# Checkout the repository to install dependencies
26+
- name: Checkout code
27+
uses: actions/checkout@v6.0.2
28+
29+
# Setup Node.js (for TypeScript/JavaScript SDK and tooling)
30+
- name: Set up Node.js
31+
uses: actions/setup-node@v6
32+
with:
33+
node-version: "22"
34+
cache: "npm"
35+
cache-dependency-path: |
36+
./nodejs/package-lock.json
37+
./test/harness/package-lock.json
38+
39+
# Setup Python (for Python SDK)
40+
- name: Set up Python
41+
uses: actions/setup-python@v6
42+
with:
43+
python-version: "3.12"
44+
45+
# Setup uv (Python package manager used in this repo)
46+
- name: Set up uv
47+
uses: astral-sh/setup-uv@v7
48+
with:
49+
enable-cache: true
50+
51+
# Setup Go (for Go SDK)
52+
- name: Set up Go
53+
uses: actions/setup-go@v6
54+
with:
55+
go-version: "1.23"
56+
57+
# Setup .NET (for .NET SDK)
58+
- name: Set up .NET
59+
uses: actions/setup-dotnet@v5
60+
with:
61+
dotnet-version: "8.0.x"
62+
63+
# Install just command runner
64+
- name: Install just
65+
uses: extractions/setup-just@v3
66+
67+
# Install gh-aw extension for advanced GitHub CLI features
2168
- name: Install gh-aw extension
2269
run: |
2370
curl -fsSL https://raw.githubusercontent.com/githubnext/gh-aw/refs/heads/main/install-gh-aw.sh | bash
24-
- name: Verify gh-aw installation
25-
run: gh aw version
71+
72+
# Install JavaScript dependencies
73+
- name: Install Node.js dependencies
74+
working-directory: ./nodejs
75+
run: npm ci --ignore-scripts
76+
77+
# Install Python dependencies
78+
- name: Install Python dependencies
79+
working-directory: ./python
80+
run: uv sync --locked --all-extras --dev
81+
82+
# Install Go dependencies
83+
- name: Install Go dependencies
84+
working-directory: ./go
85+
run: go mod download
86+
87+
# Restore .NET dependencies
88+
- name: Restore .NET dependencies
89+
working-directory: ./dotnet
90+
run: dotnet restore
91+
92+
# Install test harness dependencies
93+
- name: Install test harness dependencies
94+
working-directory: ./test/harness
95+
run: npm ci --ignore-scripts
96+
97+
# Verify installations
98+
- name: Verify tool installations
99+
run: |
100+
echo "=== Verifying installations ==="
101+
node --version
102+
npm --version
103+
python --version
104+
uv --version
105+
go version
106+
dotnet --version
107+
just --version
108+
gh --version
109+
gh aw version
110+
echo "✅ All tools installed successfully"

cookbook/README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,30 +49,30 @@ This cookbook collects small, focused recipes showing how to accomplish common t
4949
### .NET
5050

5151
```bash
52-
cd dotnet/cookbook/recipe
52+
cd cookbook/dotnet/recipe
5353
dotnet run <filename>.cs
5454
```
5555

5656
### Node.js
5757

5858
```bash
59-
cd nodejs/cookbook/recipe
59+
cd cookbook/nodejs/recipe
6060
npm install
6161
npx tsx <filename>.ts
6262
```
6363

6464
### Python
6565

6666
```bash
67-
cd python/cookbook/recipe
67+
cd cookbook/python/recipe
6868
pip install -r requirements.txt
6969
python <filename>.py
7070
```
7171

7272
### Go
7373

7474
```bash
75-
cd go/cookbook/recipe
75+
cd cookbook/go/recipe
7676
go run <filename>.go
7777
```
7878

@@ -83,4 +83,5 @@ go run <filename>.go
8383

8484
## Status
8585

86-
Cookbook structure is complete with 4 recipes across all 4 supported languages. Each recipe includes both markdown documentation and runnable examples.
86+
Cookbook structure is complete with 5 recipes across all 4 supported languages. Each recipe includes both markdown documentation and runnable examples.
87+

docs/getting-started.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,8 @@ using GitHub.Copilot.SDK;
10331033

10341034
using var client = new CopilotClient(new CopilotClientOptions
10351035
{
1036-
CliUrl = "localhost:4321"
1036+
CliUrl = "localhost:4321",
1037+
UseStdio = false
10371038
});
10381039

10391040
// Use the client normally

dotnet/src/Client.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public partial class CopilotClient : IDisposable, IAsyncDisposable
7070
/// var client = new CopilotClient();
7171
///
7272
/// // Connect to an existing server
73-
/// var client = new CopilotClient(new CopilotClientOptions { CliUrl = "localhost:3000" });
73+
/// var client = new CopilotClient(new CopilotClientOptions { CliUrl = "localhost:3000", UseStdio = false });
7474
///
7575
/// // Custom CLI path with specific log level
7676
/// var client = new CopilotClient(new CopilotClientOptions

go/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,6 @@ session, err := client.CreateSession(&copilot.SessionConfig{
392392
},
393393
})
394394
```
395-
396395
> **Important notes:**
397396
> - When using a custom provider, the `Model` parameter is **required**. The SDK will return an error if no model is specified.
398397
> - For Azure OpenAI endpoints (`*.openai.azure.com`), you **must** use `Type: "azure"`, not `Type: "openai"`.

python/copilot/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@
2424
PermissionHandler,
2525
PermissionRequest,
2626
PermissionRequestResult,
27+
PingResponse,
2728
ProviderConfig,
2829
ResumeSessionConfig,
2930
SessionConfig,
3031
SessionEvent,
3132
SessionMetadata,
33+
StopError,
3234
Tool,
3335
ToolHandler,
3436
ToolInvocation,
@@ -56,11 +58,13 @@
5658
"PermissionHandler",
5759
"PermissionRequest",
5860
"PermissionRequestResult",
61+
"PingResponse",
5962
"ProviderConfig",
6063
"ResumeSessionConfig",
6164
"SessionConfig",
6265
"SessionEvent",
6366
"SessionMetadata",
67+
"StopError",
6468
"Tool",
6569
"ToolHandler",
6670
"ToolInvocation",

0 commit comments

Comments
 (0)