Bump GitHub.Copilot.SDK from 0.2.0 to 0.2.1#91
Open
dependabot[bot] wants to merge 1 commit intomainfrom
Open
Conversation
--- updated-dependencies: - dependency-name: GitHub.Copilot.SDK dependency-version: 0.2.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Contributor
Author
LabelsThe following labels could not be found: Please fix the above issues or remove invalid values from |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updated GitHub.Copilot.SDK from 0.2.0 to 0.2.1.
Release notes
Sourced from GitHub.Copilot.SDK's releases.
0.2.1
Feature: commands and UI elicitation across all four SDKs
Register slash commands that CLI users can invoke and drive interactive input dialogs from any SDK language. This feature was previously Node.js-only; it now ships in Python, Go, and .NET as well. (#906, #908, #960)
Feature:
session.getMetadataacross all SDKsEfficiently fetch metadata for a single session by ID without listing all sessions. Returns
undefined/null(not an error) when the session is not found. (#899)const meta = await client.getSessionMetadata(sessionId);var meta = await client.GetSessionMetadataAsync(sessionId);meta = await client.get_session_metadata(session_id)meta, err := client.GetSessionMetadata(ctx, sessionID)Feature:
sessionFsfor virtualizing per-session storage (Node SDK)... (truncated)
0.2.1-preview.2
Feature:
onElicitationRequestcallback for elicitation provider support[Node] SDK clients can now act as elicitation providers by registering an
onElicitationRequestcallback inSessionConfig. The SDK negotiates therequestElicitationcapability with the runtime, listens for broadcastelicitation.requestedevents, invokes the handler, and responds automatically. (#908)Feature:
getSessionMetadataAPI across all SDKsAll SDKs now expose an efficient O(1) lookup of a single session's metadata by ID — no need to call
listSessionsand filter client-side. (#899)await client.getSessionMetadata(sessionId)— returnsSessionMetadata | undefinedawait client.GetSessionMetadataAsync(sessionId)— returnsSessionMetadata?await client.get_session_metadata(session_id)— returnsSessionMetadata | Noneclient.GetSessionMetadata(ctx, sessionID)— returns(*SessionMetadata, error)Feature: async context manager support for Python client and session
[Python]
CopilotClientandCopilotSessionnow implement the async context manager protocol for automatic resource cleanup. (#475)Other changes
ToolResultObjectvalues were stringified before RPC, causingtoolTelemetryandresultTypeto be silently lost on the server side (#970)postToolUsehooks (#978)New contributors
@Sumanth007made their first contribution in #475@Morabbinmade their first contribution in #9700.2.1-preview.1
Change: ephemeral events no longer included in
getMessages()Following a runtime update to 1.0.12, events like
session.idleare now truly ephemeral — they are only observable via live event listeners and are not returned bysession.getMessages()/get_messages(). This makes session resume behave consistently whether the session was previously active in-process or is being resumed from disk. (#927)If your code calls
getMessages()and checks for asession.idleevent to determine whether a turn is complete, switch to using a live event listener instead:Other changes
COPILOT_CLI_PATHenv var is now read from the effective environment configured on the client (e.g. viaoptions.env), not just the process environment — consistent across all SDKs (#925)0.2.1-preview.0
Feature: commands and UI elicitation support for Node.js
The Node.js SDK now supports registering slash commands and prompting users with interactive dialogs. Pass
commandsin session config to handle CLI slash commands; usesession.uito show confirm, select, or text-input prompts. The feature was already available in other SDKs. (#906)Feature: custom model listing for BYOK mode
All four SDKs now accept an
onListModelscallback in client options. When provided,client.listModels()calls your handler instead of querying the CLI — useful for BYOK setups where you want to expose your provider's available models. (#730)on_list_models=lambda: [ModelInfo(id="gpt-4o", display_name="GPT-4o")]OnListModels: func(ctx context.Context) ([]copilot.ModelInfo, error) { ... }Feature: blob attachments for inline image data
A new
blobattachment type lets you send base64-encoded content directly to a session without writing it to disk first — useful when images are already in memory (screenshots, API responses, generated images). (#731)