Skip to content

Commit 24e9638

Browse files
Update SDK snapshot for Copilot CLI 1.0.96-0
1 parent 24f386a commit 24e9638

94 files changed

Lines changed: 5865 additions & 355 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.

‎.github/workflows/java-publish-snapshot.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ jobs:
370370
build-darwin-classifier:
371371
name: Build Darwin snapshot classifier
372372
needs: resolve-source
373-
runs-on: macos-26
373+
runs-on: macos-26-agent-runtime
374374
permissions:
375375
contents: read
376376
outputs:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ jobs:
9999
retention-days: 7
100100

101101
dotnet-darwin-arm64:
102-
name: ".NET (macos-26-xlarge, default, CAPI)"
102+
name: ".NET (macos-26-xlarge-agent-runtime, default, CAPI)"
103103
if: inputs.platform == 'all' || inputs.platform == 'darwin-arm64'
104-
runs-on: macos-26-xlarge
104+
runs-on: macos-26-xlarge-agent-runtime
105105
timeout-minutes: 30
106106
defaults:
107107
run:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
fail-fast: false
3232
matrix:
33-
os: ${{ fromJSON(inputs.platform == 'linux-x64' && '["ubuntu-latest"]' || inputs.platform == 'darwin-arm64' && '["macos-26"]' || inputs.platform == 'win32-x64' && '["windows-latest"]' || '["ubuntu-latest","macos-26","windows-latest"]') }}
33+
os: ${{ fromJSON(inputs.platform == 'linux-x64' && '["ubuntu-latest"]' || inputs.platform == 'darwin-arm64' && '["macos-26-agent-runtime"]' || inputs.platform == 'win32-x64' && '["windows-latest"]' || '["ubuntu-latest","macos-26-agent-runtime","windows-latest"]') }}
3434
runs-on: ${{ matrix.os }}
3535
defaults:
3636
run:

‎.github/workflows/sdk-java.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
os: ${{ fromJSON(inputs.platform == 'linux-x64' && '["ubuntu-latest"]' || inputs.platform == 'darwin-arm64' && '["macos-26"]' || inputs.platform == 'win32-x64' && '["windows-latest"]' || '["ubuntu-latest","macos-26","windows-latest"]') }}
32+
os: ${{ fromJSON(inputs.platform == 'linux-x64' && '["ubuntu-latest"]' || inputs.platform == 'darwin-arm64' && '["macos-26-agent-runtime"]' || inputs.platform == 'win32-x64' && '["windows-latest"]' || '["ubuntu-latest","macos-26-agent-runtime","windows-latest"]') }}
3333
test-jdk: ["25", "17"]
3434
exclude:
35-
- os: macos-26
35+
- os: macos-26-agent-runtime
3636
test-jdk: "17"
3737
- os: windows-latest
3838
test-jdk: "17"

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
strategy:
3636
fail-fast: false
3737
matrix:
38-
os: ${{ fromJSON(inputs.platform == 'linux-x64' && '["ubuntu-latest"]' || inputs.platform == 'darwin-arm64' && '["macos-26"]' || inputs.platform == 'win32-x64' && '["windows-latest"]' || '["ubuntu-latest","macos-26","windows-latest"]') }}
38+
os: ${{ fromJSON(inputs.platform == 'linux-x64' && '["ubuntu-latest"]' || inputs.platform == 'darwin-arm64' && '["macos-26-agent-runtime"]' || inputs.platform == 'win32-x64' && '["windows-latest"]' || '["ubuntu-latest","macos-26-agent-runtime","windows-latest"]') }}
3939
runs-on: ${{ matrix.os }}
4040
defaults:
4141
run:
@@ -94,17 +94,17 @@ jobs:
9494
env:
9595
COPILOT_HMAC_KEY: ${{ secrets.COPILOT_DEVELOPER_CLI_INTEGRATION_HMAC_KEY }}
9696
run: |
97-
if [ "$GITHUB_EVENT_NAME" = "merge_group" ] || [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then
97+
if [ "$GITHUB_EVENT_NAME" = "merge_group" ] || [ "$GITHUB_EVENT_NAME" = "pull_request" ] || [ "$GITHUB_EVENT_NAME" = "push" ]; then
9898
npm test -- --reporter=default --reporter=json --outputFile="$RUNNER_TEMP/sdk-nodejs-results.json"
9999
else
100100
npm test
101101
fi
102102
- name: Upload Flake Finder Node.js test results
103-
if: always() && (github.event_name == 'merge_group' || github.event_name == 'pull_request') && runner.os == 'Linux'
103+
if: always() && (github.event_name == 'merge_group' || github.event_name == 'pull_request' || github.event_name == 'push')
104104
continue-on-error: true
105105
uses: actions/upload-artifact@v7
106106
with:
107-
name: suspected-flakes-sdk-nodejs-${{ github.run_attempt }}-linux
107+
name: suspected-flakes-sdk-nodejs-${{ github.run_attempt }}-${{ runner.os == 'macOS' && 'macos' || runner.os == 'Windows' && 'windows' || 'linux' }}
108108
path: ${{ runner.temp }}/sdk-nodejs-results.json
109109
if-no-files-found: warn
110110
retention-days: 7

‎.github/workflows/sdk-python.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
fail-fast: false
3232
matrix:
33-
os: ${{ fromJSON(inputs.platform == 'linux-x64' && '["ubuntu-latest"]' || inputs.platform == 'darwin-arm64' && '["macos-26"]' || inputs.platform == 'win32-x64' && '["windows-latest"]' || '["ubuntu-latest","macos-26","windows-latest"]') }}
33+
os: ${{ fromJSON(inputs.platform == 'linux-x64' && '["ubuntu-latest"]' || inputs.platform == 'darwin-arm64' && '["macos-26-agent-runtime"]' || inputs.platform == 'win32-x64' && '["windows-latest"]' || '["ubuntu-latest","macos-26-agent-runtime","windows-latest"]') }}
3434
runs-on: ${{ matrix.os }}
3535
timeout-minutes: 20
3636
defaults:

‎.github/workflows/sdk-rust.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
strategy:
3232
fail-fast: false
3333
matrix:
34-
os: ${{ fromJSON(inputs.platform == 'linux-x64' && '["ubuntu-latest"]' || inputs.platform == 'darwin-arm64' && '["macos-26-xlarge"]' || inputs.platform == 'win32-x64' && '["windows-latest"]' || '["ubuntu-latest","macos-26-xlarge","windows-latest"]') }}
34+
os: ${{ fromJSON(inputs.platform == 'linux-x64' && '["ubuntu-latest"]' || inputs.platform == 'darwin-arm64' && '["macos-26-xlarge-agent-runtime"]' || inputs.platform == 'win32-x64' && '["windows-latest"]' || '["ubuntu-latest","macos-26-xlarge-agent-runtime","windows-latest"]') }}
3535
runs-on: ${{ matrix.os }}
3636
defaults:
3737
run:

‎.github/workflows/sdk.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ jobs:
408408
with:
409409
runtime-source: ${{ needs.detect-layout.outputs.runtime-source }}
410410
sdk-home: ${{ needs.detect-layout.outputs.sdk-home }}
411-
os: macos-26-xlarge
411+
os: macos-26-xlarge-agent-runtime
412412
target: darwin-arm64
413413
artifact: macOS-ARM64
414414
bazel-config: e2e-no-lto

‎dotnet/src/Client.cs‎

Lines changed: 35 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -403,29 +403,7 @@ async Task<Connection> StartCoreAsync(CancellationToken ct)
403403
ffiEnvironment["COPILOT_DISABLE_KEYTAR"] = "1";
404404
}
405405

406-
var ffiArgs = new List<string>();
407-
if (_options.LogLevel is { } logLevel && !string.IsNullOrEmpty(logLevel.Value))
408-
{
409-
ffiArgs.AddRange(["--log-level", logLevel.Value]);
410-
}
411-
if (!string.IsNullOrEmpty(_options.GitHubToken))
412-
{
413-
ffiArgs.AddRange(["--auth-token-env", "COPILOT_SDK_AUTH_TOKEN"]);
414-
}
415-
var useLoggedInUser = _options.UseLoggedInUser ?? string.IsNullOrEmpty(_options.GitHubToken);
416-
if (!useLoggedInUser)
417-
{
418-
ffiArgs.Add("--no-auto-login");
419-
}
420-
if (_options.SessionIdleTimeoutSeconds is > 0)
421-
{
422-
ffiArgs.AddRange(["--session-idle-timeout", _options.SessionIdleTimeoutSeconds.Value.ToString(CultureInfo.InvariantCulture)]);
423-
}
424-
if (_options.EnableRemoteSessions)
425-
{
426-
ffiArgs.Add("--remote");
427-
}
428-
406+
var ffiArgs = BuildInProcessRuntimeArguments(_options);
429407
var explicitCliPath = System.Environment.GetEnvironmentVariable("COPILOT_CLI_PATH");
430408
if (string.IsNullOrEmpty(explicitCliPath))
431409
{
@@ -2581,6 +2559,40 @@ private static void ApplyTelemetryEnvironment(IDictionary<string, string?> envir
25812559
return GetBundledNativePath(OperatingSystem.IsWindows() ? "copilot.exe" : "copilot", out searchedPath);
25822560
}
25832561

2562+
private static List<string> BuildInProcessRuntimeArguments(CopilotClientOptions options)
2563+
{
2564+
var args = new List<string>();
2565+
if (options.LogLevel is { } logLevel && !string.IsNullOrEmpty(logLevel.Value))
2566+
{
2567+
args.AddRange(["--log-level", logLevel.Value]);
2568+
}
2569+
if (!string.IsNullOrEmpty(options.GitHubToken))
2570+
{
2571+
args.AddRange(["--auth-token-env", "COPILOT_SDK_AUTH_TOKEN"]);
2572+
}
2573+
var useLoggedInUser = options.UseLoggedInUser ?? string.IsNullOrEmpty(options.GitHubToken);
2574+
if (!useLoggedInUser)
2575+
{
2576+
args.Add("--no-auto-login");
2577+
}
2578+
if (options.SessionIdleTimeoutSeconds is > 0)
2579+
{
2580+
args.AddRange(["--session-idle-timeout", options.SessionIdleTimeoutSeconds.Value.ToString(CultureInfo.InvariantCulture)]);
2581+
}
2582+
if (options.EnableRemoteSessions)
2583+
{
2584+
args.Add("--remote");
2585+
}
2586+
2587+
var cliLoginSyncIntegrationId =
2588+
System.Environment.GetEnvironmentVariable("GITHUB_COPILOT_INTEGRATION_ID")?.Trim();
2589+
if (!string.IsNullOrEmpty(cliLoginSyncIntegrationId))
2590+
{
2591+
args.Add($"--cli-login-sync-integration-id={cliLoginSyncIntegrationId}");
2592+
}
2593+
return args;
2594+
}
2595+
25842596
private static string? GetBundledNativePath(string binaryName, out string searchedPath)
25852597
{
25862598
// Always use portable RID (e.g., linux-x64) to match the build-time placement,

0 commit comments

Comments
 (0)