Update @github/copilot to 1.0.78-2 - #2193
Conversation
- Updated nodejs and test harness dependencies - Re-ran code generators - Formatted generated code
There was a problem hiding this comment.
Pull request overview
Updates @github/copilot to 1.0.78-2 and regenerates SDK protocol bindings.
Changes:
- Updates npm dependencies and lockfiles.
- Regenerates RPC and session-event types across SDKs.
- Adds extension, factory, event-log, agent-prompt, and MCP OAuth protocol surfaces.
Show a summary per file
| File | Description |
|---|---|
test/harness/package.json |
Updates harness dependency. |
test/harness/package-lock.json |
Locks updated runtime packages. |
rust/src/generated/session_events.rs |
Regenerates event types. |
rust/src/generated/rpc.rs |
Adds generated RPC methods. |
rust/src/generated/api_types.rs |
Adds RPC types and constants. |
python/copilot/generated/session_events.py |
Regenerates Python event models. |
nodejs/src/generated/session-events.ts |
Regenerates TypeScript event types. |
nodejs/src/generated/rpc.ts |
Regenerates TypeScript RPC APIs. |
nodejs/samples/package-lock.json |
Updates sample dependency metadata. |
nodejs/package.json |
Updates runtime dependency. |
nodejs/package-lock.json |
Locks updated platform packages. |
java/src/generated/java/com/github/copilot/generated/SessionStartEvent.java |
Adds GitHub MCP event data. |
java/src/generated/java/com/github/copilot/generated/rpc/SessionPermissionsSetAllowAllParams.java |
Updates model documentation. |
java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthAuthenticationStateChangedParams.java |
Adds OAuth notification parameters. |
java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthApi.java |
Adds OAuth notification RPC. |
java/src/generated/java/com/github/copilot/generated/rpc/SessionEventLogReadResult.java |
Updates pagination semantics. |
java/src/generated/java/com/github/copilot/generated/rpc/SessionEventLogReadParams.java |
Adds event filters and direction. |
java/src/generated/java/com/github/copilot/generated/rpc/SessionAgentSetPromptParams.java |
Adds agent prompt parameters. |
java/src/generated/java/com/github/copilot/generated/rpc/SessionAgentApi.java |
Adds prompt override RPC. |
java/src/generated/java/com/github/copilot/generated/rpc/ServerRpc.java |
Exposes extensions API. |
java/src/generated/java/com/github/copilot/generated/rpc/ServerExtensionsApi.java |
Adds extension-management RPCs. |
java/src/generated/java/com/github/copilot/generated/rpc/SandboxConfig.java |
Adds developer-cache configuration. |
java/src/generated/java/com/github/copilot/generated/rpc/ExtensionsEnableParams.java |
Adds extension enable parameters. |
java/src/generated/java/com/github/copilot/generated/rpc/ExtensionsDiscoverResult.java |
Adds extension discovery result. |
java/src/generated/java/com/github/copilot/generated/rpc/ExtensionsDisableParams.java |
Adds extension disable parameters. |
java/src/generated/java/com/github/copilot/generated/rpc/EventsReadDirection.java |
Adds pagination direction enum. |
java/src/generated/java/com/github/copilot/generated/rpc/EventsCursorStatus.java |
Updates cursor documentation. |
java/src/generated/java/com/github/copilot/generated/rpc/DiscoveredExtensionSource.java |
Adds extension source enum. |
java/src/generated/java/com/github/copilot/generated/rpc/DiscoveredExtensionPlugin.java |
Adds plugin metadata. |
java/src/generated/java/com/github/copilot/generated/rpc/DiscoveredExtensionMode.java |
Adds extension mode enum. |
java/src/generated/java/com/github/copilot/generated/rpc/DiscoveredExtension.java |
Adds extension metadata. |
java/src/generated/java/com/github/copilot/generated/GitHubMcpToolConfig.java |
Adds GitHub MCP configuration. |
java/src/generated/java/com/github/copilot/generated/AssistantMessageEvent.java |
Adds message chunk metadata. |
java/scripts/codegen/package.json |
Updates codegen dependency. |
java/scripts/codegen/package-lock.json |
Locks updated codegen packages. |
java/pom.xml |
Updates reference implementation version. |
go/zsession_events.go |
Exports new event types. |
go/rpc/zsession_events.go |
Regenerates Go event models. |
go/rpc/zsession_encoding.go |
Adds union serialization support. |
go/rpc/zrpc.go |
Regenerates Go RPC APIs. |
go/rpc/zrpc_encoding.go |
Adds approval serialization support. |
dotnet/src/Generated/SessionEvents.cs |
Regenerates .NET event models. |
Review details
Files not reviewed (9)
- go/rpc/zrpc.go: Generated file
- go/rpc/zrpc_encoding.go: Generated file
- go/rpc/zsession_encoding.go: Generated file
- go/rpc/zsession_events.go: Generated file
- go/zsession_events.go: Generated file
- java/scripts/codegen/package-lock.json: Generated file
- nodejs/package-lock.json: Generated file
- nodejs/samples/package-lock.json: Generated file
- test/harness/package-lock.json: Generated file
- Files reviewed: 4/44 changed files
- Comments generated: 0
- Review effort level: Balanced
The dependency bump regenerated types but left hand-written code and tests behind, breaking every language job. Five independent fixes: - Go: the CLI added a `factory` permission-request kind, so `PermissionRequestFactory` needed a `RequiresManagedApproval()` impl. Added it, and registered the new variant in the codegen shim (`PERMISSION_REQUEST_DEFINITION_NAMES`) so Go/Python/Rust all carry the `managedApprovalRequired` field consistently. - .NET: `session.start` gained `githubMcpToolConfig`, so codegen emitted a `GitHubMcpToolConfig` class colliding with the hand-written one in `dotnet/src/Types.cs` (15 CS0260/CS0102 errors). Taught the C# generator to skip nested classes whose names already exist hand-written under `dotnet/src`, mirroring the existing behavior in the Go generator. The `[JsonSerializable]` registrations are preserved. - Java: `SessionEventHandlingTest` calls generated record constructors positionally; `SessionStartEventData` gained `githubMcpToolConfig` and `AssistantMessageEventData` gained `chunkIndex`/`chunkCount`. Padded the three call sites. This also unblocks CodeQL's java-kotlin analysis. - Rust: `EventLogReadRequest` gained `agent_ids` and `direction`; added them to the three exhaustive struct literals in `tests/e2e/rpc_event_log.rs`. - Node.js: the CLI can now answer `session.factory.run`/`resume` before the run settles, so the e2e test saw `status: "running"`. `SessionFactoryApi` documents these as resolving with a terminal envelope, so both now route through a `settleFactoryRun` helper that waits for terminal state when the initial envelope is non-terminal. Correct under both old and new CLI behavior. Validated locally: go build/vet, dotnet build (src + test), mvn test-compile + spotless:check + SessionEventHandlingTest (29/29), cargo check --tests + cargo fmt --check, npm run typecheck/lint, and the full Node unit suite (363 tests). Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 820d6939-ba01-4044-8ee3-c5f5b4d3f443
Cross-SDK Consistency Review ✅This PR is an automated codegen update ( Hand-written changes
The new This change is correctly scoped to Node.js only. The other SDKs (Python, Go, .NET, Rust) do not expose a high-level wrapper around
No cross-SDK consistency issues found.
|
Automated update of
@github/copilotto version1.0.78-2.Changes
@github/copilotinnodejs/package.jsonandtest/harness/package.jsonscripts/codegen)Java Handwritten Code Adaptation Plan
If
java-sdk-testsCI fails on this PR, follow these steps:mvn clean,mvn verifyfromjava/locally or check thejava-sdk-testsworkflow run logs.java/src/main/java/com/github/copilot/sdk/):nullfor optional new fields).CopilotSession.javaif applicable.java/src/test/java/com/github/copilot/sdk/):cd java && mvn clean test-compile jar:jar && mvn verify -Dskip.test.harness=truecd java && mvn spotless:applyNext steps
When ready, click Ready for review to trigger CI checks.