8000 feat: add status, auth, and models metadata APIs to all SDKs by friggeri · Pull Request #77 · github/copilot-sdk · GitHub 8000
[go: up one dir, main page]

Skip to content

Conversation

@friggeri
Copy link
Collaborator

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.


This requires us to update the deps to point to a new pre-release of the CLI, will update this PR when done

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.
@friggeri friggeri requested a review from a team as a code owner January 21, 2026 22:31
Copilot AI review requested due to automatic review settings January 21, 2026 22:31
Copy link
Contributor
Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds three new metadata query APIs to all SDKs (Python, Node.js, Go, and .NET) for retrieving CLI status, authentication state, and available models information. The protocol version is bumped from 1 to 2 to maintain compatibility with the copilot-agent-runtime.

Changes:

  • Added getStatus/get_status/GetStatus/GetStatusAsync method to retrieve CLI version and protocol version
  • Added getAuthStatus/get_auth_status/GetAuthStatus/GetAuthStatusAsync method to query authentication state
  • Added listModels/list_models/ListModels/ListModelsAsync method to retrieve available models with metadata
  • Updated protocol version from 1 to 2 in sdk-protocol-version.json
  • Updated test snapshots to reflect minor changes in assistant responses

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
sdk-protocol-version.json Bumps protocol version from 1 to 2 to match agent runtime
test/snapshots/session/should_abort_a_session.yaml Updates test snapshots with minor response text changes
python/copilot/types.py Adds type definitions for status, auth, and model metadata responses
python/copilot/client.py Implements three new async methods for metadata queries
python/copilot/init.py Exports new public types for external use
nodejs/src/types.ts Adds TypeScript interface definitions for new API responses
nodejs/src/client.ts Implements three new async methods for metadata queries
nodejs/src/index.ts Exports new public types for external use
go/types.go Adds Go struct definitions for new API responses
go/client.go Implements three new methods with proper error handling
dotnet/src/Types.cs Adds C# class definitions with JSON serialization attributes
dotnet/src/Client.cs Implements three new async methods with cancellation token support

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

0