Skip to content

Tags: github/copilot-sdk

Tags

v0.1.18

Toggle v0.1.18's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: Infinite Sessions (#76)

* feat(nodejs): add infinite sessions configuration

- Add InfiniteSessionConfig type with thresholds
- Add infiniteSessions option to SessionConfig
- Expose workspacePath on CopilotSession
- Pass config to server and capture workspace path in create/resume

* feat(python): add infinite sessions configuration

- Add InfiniteSessionConfig TypedDict with thresholds
- Add infinite_sessions option to SessionConfig
- Expose workspace_path property on CopilotSession
- Convert snake_case to camelCase for wire format

* feat(go): add infinite sessions configuration

- Add InfiniteSessionConfig struct with pointer fields for optional values
- Add InfiniteSessions field to SessionConfig
- Add WorkspacePath() method to Session
- Pass config in CreateSession and capture path in create/resume

* feat(dotnet): add infinite sessions configuration

- Add InfiniteSessionConfig class with threshold properties
- Add InfiniteSessions property to SessionConfig
- Add WorkspacePath property to CopilotSession
- Pass config in CreateSessionAsync and capture path in create/resume

* docs: document infinite sessions feature in all SDKs

- Add InfiniteSessionConfig documentation to SessionConfig options
- Document workspacePath property on CopilotSession
- Add Infinite Sessions section with examples for each SDK
- Document compaction events

* docs: fix missing copilot. prefix in Go README example

* fix: wrap long line in Python docstring

* chore: remove accidentally committed node_modules, add .gitignore

* test(nodejs): add e2e tests for compaction and usage events

- Test compaction triggers with low thresholds (0.5%/1%)
- Test session.usage_info events show token limits
- Test assistant.usage events
- Test no compaction events when infinite sessions disabled

* test: skip compaction trigger test in CI

The compaction trigger test requires real API calls to get realistic
token counts. The replay proxy doesn't provide the token usage data
needed for the CLI to trigger compaction.

* fix(dotnet): fix syntax errors from merge conflict resolution

* test: remove usage event tests (not part of this PR)

* test: enable compaction test in CI

* fix(dotnet): change records to internal for JSON serializer

* test: skip compaction trigger test in CI until CLI is released

The test requires a CLI build with infinite sessions support.
Run locally with COPILOT_CLI_PATH pointing to a local CLI build.

* test: revert skip - will update after CLI release

* test: add compaction e2e tests for all SDK flavors

Add e2e tests for context compaction to Go, Python, and .NET SDKs:
- Test that compaction triggers with low thresholds and emits events
- Test that no compaction events occur when infinite sessions disabled
- Verify session still works after compaction (context preserved via summary)

These tests mirror the existing Node.js compaction tests.

* fix: use %v format for float64 tokensRemoved in Go test

* chore: update @github/copilot CLI to 0.0.394

Updates CLI dependency for Node.js SDK and shared test harness
to support protocol version 2 (infinite sessions).

* style: format compaction tests for all SDKs

* fix: use dict instead of Dict in Python SDK

* fix: correct SessionEventType import in Python compaction test

* feat(go): add Float64 helper function for pointer values

* test: skip .NET compaction tests due to Windows CI proxy timing issues

The compaction tests require the shared test harness proxy, which has
timing issues on Windows CI causing TimeoutException during fixture
initialization. Tests pass on macOS and Ubuntu.

* test: remove .NET compaction tests causing Windows CI fixture issues

The CompactionTests class was causing the E2ETestFixture to fail
initialization on Windows, which cascaded to other test classes.
Removing the tests to unblock CI - the compaction feature is still
tested via Node.js, Go, and Python SDKs.

* Revert "test: remove .NET compaction tests causing Windows CI fixture issues"

This reverts commit bc261a3.

* test: enable .NET compaction tests (remove Skip attributes)

Tests pass locally on macOS and the proxy timeout issue appears to be
unrelated to these specific tests. The ToolsTests fixture timeout
that was seen in CI is a pre-existing flaky issue on Windows.

* fix: increase proxy timeout to 30s on Windows

Windows CI has slower process startup times, especially when multiple
test classes initialize their fixtures in parallel. Increase the proxy
startup timeout from 10s to 30s on Windows to reduce flakiness.

go/v0.1.18

Toggle go/v0.1.18's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: Infinite Sessions (#76)

* feat(nodejs): add infinite sessions configuration

- Add InfiniteSessionConfig type with thresholds
- Add infiniteSessions option to SessionConfig
- Expose workspacePath on CopilotSession
- Pass config to server and capture workspace path in create/resume

* feat(python): add infinite sessions configuration

- Add InfiniteSessionConfig TypedDict with thresholds
- Add infinite_sessions option to SessionConfig
- Expose workspace_path property on CopilotSession
- Convert snake_case to camelCase for wire format

* feat(go): add infinite sessions configuration

- Add InfiniteSessionConfig struct with pointer fields for optional values
- Add InfiniteSessions field to SessionConfig
- Add WorkspacePath() method to Session
- Pass config in CreateSession and capture path in create/resume

* feat(dotnet): add infinite sessions configuration

- Add InfiniteSessionConfig class with threshold properties
- Add InfiniteSessions property to SessionConfig
- Add WorkspacePath property to CopilotSession
- Pass config in CreateSessionAsync and capture path in create/resume

* docs: document infinite sessions feature in all SDKs

- Add InfiniteSessionConfig documentation to SessionConfig options
- Document workspacePath property on CopilotSession
- Add Infinite Sessions section with examples for each SDK
- Document compaction events

* docs: fix missing copilot. prefix in Go README example

* fix: wrap long line in Python docstring

* chore: remove accidentally committed node_modules, add .gitignore

* test(nodejs): add e2e tests for compaction and usage events

- Test compaction triggers with low thresholds (0.5%/1%)
- Test session.usage_info events show token limits
- Test assistant.usage events
- Test no compaction events when infinite sessions disabled

* test: skip compaction trigger test in CI

The compaction trigger test requires real API calls to get realistic
token counts. The replay proxy doesn't provide the token usage data
needed for the CLI to trigger compaction.

* fix(dotnet): fix syntax errors from merge conflict resolution

* test: remove usage event tests (not part of this PR)

* test: enable compaction test in CI

* fix(dotnet): change records to internal for JSON serializer

* test: skip compaction trigger test in CI until CLI is released

The test requires a CLI build with infinite sessions support.
Run locally with COPILOT_CLI_PATH pointing to a local CLI build.

* test: revert skip - will update after CLI release

* test: add compaction e2e tests for all SDK flavors

Add e2e tests for context compaction to Go, Python, and .NET SDKs:
- Test that compaction triggers with low thresholds and emits events
- Test that no compaction events occur when infinite sessions disabled
- Verify session still works after compaction (context preserved via summary)

These tests mirror the existing Node.js compaction tests.

* fix: use %v format for float64 tokensRemoved in Go test

* chore: update @github/copilot CLI to 0.0.394

Updates CLI dependency for Node.js SDK and shared test harness
to support protocol version 2 (infinite sessions).

* style: format compaction tests for all SDKs

* fix: use dict instead of Dict in Python SDK

* fix: correct SessionEventType import in Python compaction test

* feat(go): add Float64 helper function for pointer values

* test: skip .NET compaction tests due to Windows CI proxy timing issues

The compaction tests require the shared test harness proxy, which has
timing issues on Windows CI causing TimeoutException during fixture
initialization. Tests pass on macOS and Ubuntu.

* test: remove .NET compaction tests causing Windows CI fixture issues

The CompactionTests class was causing the E2ETestFixture to fail
initialization on Windows, which cascaded to other test classes.
Removing the tests to unblock CI - the compaction feature is still
tested via Node.js, Go, and Python SDKs.

* Revert "test: remove .NET compaction tests causing Windows CI fixture issues"

This reverts commit bc261a3.

* test: enable .NET compaction tests (remove Skip attributes)

Tests pass locally on macOS and the proxy timeout issue appears to be
unrelated to these specific tests. The ToolsTests fixture timeout
that was seen in CI is a pre-existing flaky issue on Windows.

* fix: increase proxy timeout to 30s on Windows

Windows CI has slower process startup times, especially when multiple
test classes initialize their fixtures in parallel. Increase the proxy
startup timeout from 10s to 30s on Windows to reduce flakiness.

v0.1.17

Toggle v0.1.17's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add uv sync as alternative installation option (#146)

* Add uv sync as alternative installation option

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Adrien Friggeri <adrien@friggeri.net>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

v0.1.16

Toggle v0.1.16's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: remove temporary README.md replacement step from publish workflow (

#108)

go/v0.1.17

Toggle go/v0.1.17's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add uv sync as alternative installation option (#146)

* Add uv sync as alternative installation option

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Adrien Friggeri <adrien@friggeri.net>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

go/v0.1.16

Toggle go/v0.1.16's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: remove temporary README.md replacement step from publish workflow (

#108)

v0.1.16-preview.0

Toggle v0.1.16-preview.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix .NET SDK prerequisites in CONTRIBUTING.md (#87)

* Initial plan

* Update CONTRIBUTING.md: clarify .NET SDK prerequisites

- Mark 'just' as optional since commands can be run directly
- Add Node.js and TypeScript as requirements for .NET SDK (needed for test harness)
- Add npm install instructions for ./nodejs and ./test/harness directories
- Update "Running tests and linters" section to clarify 'just' is optional

Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com>

* Fix: Remove unnecessary TypeScript installation step

TypeScript and tsx are included as npm dependencies and don't need separate installation

Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com>

* Fix: Use consistent path navigation from repository root

Changed from relative path (cd ../test/harness) to absolute path from repo root (cd test/harness) for consistency

Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com>

* Clarify commands are run from repository root

Added "(from the repository root)" to npm install step for clarity

Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com>

v0.1.15

Toggle v0.1.15's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: add status, auth, and models metadata APIs to all SDKs (#77)

* feat: add status, auth, and models metadata APIs to all SDKs

Add three new methods to query CLI metadata:
- getStatus/get_status/GetStatus/GetStatusAsync - CLI version and protocol info
- getAuthStatus/get_auth_status/GetAuthStatus/GetAuthStatusAsync - Auth state
- listModels/list_models/ListModels/ListModelsAsync - Available models with metadata

Implements #61

Bump protocol version to 2 to match copilot-agent-runtime.

* bump dependency on cli

* Update protocol version, add tests, synchronize session events

* call test.sh properly

go/v0.1.16-preview.0

Toggle go/v0.1.16-preview.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix .NET SDK prerequisites in CONTRIBUTING.md (#87)

* Initial plan

* Update CONTRIBUTING.md: clarify .NET SDK prerequisites

- Mark 'just' as optional since commands can be run directly
- Add Node.js and TypeScript as requirements for .NET SDK (needed for test harness)
- Add npm install instructions for ./nodejs and ./test/harness directories
- Update "Running tests and linters" section to clarify 'just' is optional

Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com>

* Fix: Remove unnecessary TypeScript installation step

TypeScript and tsx are included as npm dependencies and don't need separate installation

Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com>

* Fix: Use consistent path navigation from repository root

Changed from relative path (cd ../test/harness) to absolute path from repo root (cd test/harness) for consistency

Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com>

* Clarify commands are run from repository root

Added "(from the repository root)" to npm install step for clarity

Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com>

go/v0.1.15

Toggle go/v0.1.15's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: add status, auth, and models metadata APIs to all SDKs (#77)

* feat: add status, auth, and models metadata APIs to all SDKs

Add three new methods to query CLI metadata:
- getStatus/get_status/GetStatus/GetStatusAsync - CLI version and protocol info
- getAuthStatus/get_auth_status/GetAuthStatus/GetAuthStatusAsync - Auth state
- listModels/list_models/ListModels/ListModelsAsync - Available models with metadata

Implements #61

Bump protocol version to 2 to match copilot-agent-runtime.

* bump dependency on cli

* Update protocol version, add tests, synchronize session events

* call test.sh properly