Expose contextual model discovery in Node.js and Rust - #2398
Conversation
Regenerate the public RPC types for the versioned pre-session models.list context and resolution acknowledgment introduced by github/copilot-agent-runtime#16938. Keep the cached listModels API unchanged so existing callers preserve legacy behavior. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Cross-SDK Consistency ReviewThis PR updates the auto-generated RPC contracts for Node.js and Rust, adding:
The following SDKs have not been updated and are now behind the Node.js/Rust contracts:
Since these are all auto-generated files driven by the same upstream schema ( Suggested action before merging: regenerate the Python, Go, .NET, and Java RPC contracts from the updated schema so all six SDKs expose the new
|
Summary
models.listcontext from github/copilot-agent-runtime#16938experimentalmodel picker category in both generated clientslistModels()APIs unchanged for backward compatibilityCompatibility
models.listrequests to new runtimessessionContextand require theresolutionacknowledgmentGitHub App integration
The coordinated app change is github/github-app#13556. It vendors compatibility commit
3b2019f05e3a8455541e3fd2778748216ed2ea24, which applies only this generated contract to the SDK revision the app already consumed. That commit is included in this PR's ancestry.This avoids coupling HydraFusion discovery to the roughly 20 newer SDK commits currently on this branch, which would otherwise force the app through an unrelated permissions/API migration. The PR's final tree still contains the current generated Node.js and Rust contract updates.
Validation
npm --prefix nodejs run typechecknpm --prefix nodejs test -- test/typescript-codegen.test.tsnpx prettier --check src/generated/rpc.tscargo check --manifest-path rust/Cargo.tomlcargo fmt --manifest-path rust/Cargo.toml -- --checkcargo test --manifest-path rust/Cargo.toml --libDependency
Draft until github/copilot-agent-runtime#16938 lands and the generated contract can be refreshed from a published runtime package.