Skip to content

Commit cb3fedd

Browse files
authored
Merge branch 'main' into fix-copilot-client-dotnet
2 parents 4a291f5 + 62fabf6 commit cb3fedd

369 files changed

Lines changed: 48369 additions & 8639 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitattributes

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@
44
nodejs/src/generated/* eol=lf linguist-generated=true
55
dotnet/src/Generated/* eol=lf linguist-generated=true
66
python/copilot/generated/* eol=lf linguist-generated=true
7-
go/generated_session_events.go eol=lf linguist-generated=true
8-
go/rpc/generated_rpc.go eol=lf linguist-generated=true
7+
go/zsession_events.go eol=lf linguist-generated=true
8+
go/zsession_encoding.go eol=lf linguist-generated=true
9+
go/rpc/zrpc.go eol=lf linguist-generated=true
10+
go/rpc/zrpc_encoding.go eol=lf linguist-generated=true

.github/actions/setup-copilot/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@ runs:
88
using: "composite"
99
steps:
1010
- uses: actions/setup-node@v6
11+
if: runner.os != 'Windows'
1112
with:
1213
cache: "npm"
1314
cache-dependency-path: "./nodejs/package-lock.json"
1415
node-version: 22
16+
- uses: actions/setup-node@v6
17+
if: runner.os == 'Windows'
18+
with:
19+
node-version: 22
1520
- name: Install dependencies
1621
run: npm --prefix "$(pwd)/nodejs" ci --ignore-scripts
1722
shell: bash

.github/copilot-instructions.md

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

3636
## Project-specific conventions & patterns ✅
3737

38-
- Tools: each SDK has helper APIs to expose functions as tools; prefer the language's `DefineTool`/`@define_tool`/`AIFunctionFactory.Create` patterns (see language READMEs).
38+
- Tools: each SDK has helper APIs to expose functions as tools; prefer the language's `DefineTool`/`@define_tool`/`CopilotTool.DefineTool` patterns (see language READMEs).
3939
- Infinite sessions are enabled by default and persist workspace state to `~/.copilot/session-state/{sessionId}`; compaction events are emitted (`session.compaction_start`, `session.compaction_complete`). See language READMEs for usage.
4040
- Streaming: when `streaming`/`Streaming=true` you receive delta events (`assistant.message_delta`, `assistant.reasoning_delta`) and final events (`assistant.message`, `assistant.reasoning`) — tests expect this behavior.
4141
- Type generation is centralized in `nodejs/scripts/generate-session-types.ts` and requires the `@github/copilot` schema to be present (often via `npm link` or installed package).

.github/workflows/codegen-check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ permissions:
2323
jobs:
2424
check:
2525
name: "Verify generated files are up-to-date"
26+
if: github.event.repository.fork == false
2627
runs-on: ubuntu-latest
2728
steps:
2829
- uses: actions/checkout@v4

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414
jobs:
1515
# The job MUST be called 'copilot-setup-steps' to be recognized by GitHub Copilot Agent
1616
copilot-setup-steps:
17+
if: github.event.repository.fork == false
1718
runs-on: ubuntu-latest
1819

1920
# Set minimal permissions for setup steps

.github/workflows/corrections-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ permissions:
1616
jobs:
1717
test:
1818
runs-on: ubuntu-latest
19+
if: github.event.repository.fork == false
1920
steps:
2021
- uses: actions/checkout@v4
2122
- uses: actions/setup-node@v4

.github/workflows/docs-validation.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ permissions:
2020
jobs:
2121
validate-typescript:
2222
name: "Validate TypeScript"
23+
if: github.event.repository.fork == false
2324
runs-on: ubuntu-latest
2425
steps:
2526
- uses: actions/checkout@v6
@@ -44,6 +45,7 @@ jobs:
4445

4546
validate-python:
4647
name: "Validate Python"
48+
if: github.event.repository.fork == false
4749
runs-on: ubuntu-latest
4850
steps:
4951
- uses: actions/checkout@v6
@@ -76,6 +78,7 @@ jobs:
7678

7779
validate-go:
7880
name: "Validate Go"
81+
if: github.event.repository.fork == false
7982
runs-on: ubuntu-latest
8083
steps:
8184
- uses: actions/checkout@v6
@@ -99,6 +102,7 @@ jobs:
99102

100103
validate-csharp:
101104
name: "Validate C#"
105+
if: github.event.repository.fork == false
102106
runs-on: ubuntu-latest
103107
steps:
104108
- uses: actions/checkout@v6

.github/workflows/dotnet-sdk-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ permissions:
2929
jobs:
3030
test:
3131
name: ".NET SDK Tests"
32+
if: github.event.repository.fork == false
3233
env:
3334
POWERSHELL_UPDATECHECK: Off
3435
strategy:

.github/workflows/go-sdk-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ permissions:
3030
jobs:
3131
test:
3232
name: "Go SDK Tests"
33+
if: github.event.repository.fork == false
3334
env:
3435
POWERSHELL_UPDATECHECK: Off
3536
strategy:

.github/workflows/nodejs-sdk-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ permissions:
3232
jobs:
3333
test:
3434
name: "Node.js SDK Tests"
35+
if: github.event.repository.fork == false
3536
env:
3637
POWERSHELL_UPDATECHECK: Off
3738
strategy:

0 commit comments

Comments
 (0)