Update @github/copilot to 0.0.411-0#491
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Cross-SDK Consistency Review ✅I've reviewed this PR for consistency across all four SDK implementations (TypeScript, Python, Go, .NET). SummaryThis PR updates the
Consistency Analysis✅ Feature Parity: All four SDKs received the same set of new types and APIs ✅ API Structure: Method names follow proper language conventions:
RecommendationThe .NET implementation uses plain However, if stronger type safety is desired in .NET (similar to other languages), consider:
Overall Assessment: ✅ The PR maintains excellent cross-SDK consistency. All languages receive the same features with proper naming conventions. The Mode type difference is a minor variation in type safety approach rather than a breaking inconsistency.
|
There was a problem hiding this comment.
Pull request overview
Updates the monorepo’s pinned @github/copilot schema package to 0.0.411-0 and regenerates the language-specific SDK type surfaces (session events + typed JSON-RPC wrappers) to match the updated CLI API/schema.
Changes:
- Bumps
@github/copilotdependency to^0.0.411-0in the Node.js package (and lockfile). - Regenerates session event types to include new events (
session.mode_changed,session.plan_changed,session.workspace_file_changed) across Node/Python/Go/.NET. - Regenerates typed RPC client wrappers to include new session-scoped RPC APIs (mode/plan/workspace/fleet) across Node/Python/Go/.NET.
Reviewed changes
Copilot reviewed 3 out of 10 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| python/copilot/generated/session_events.py | Adds new session event types and new Data fields (newMode, previousMode, operation, path). |
| python/copilot/generated/rpc.py | Adds new RPC data models and session-scoped APIs (mode/plan/workspace/fleet). |
| nodejs/src/generated/session-events.ts | Adds new session event union variants for mode/plan/workspace changes. |
| nodejs/src/generated/rpc.ts | Adds new typed session RPC methods for mode/plan/workspace/fleet. |
| nodejs/package.json | Updates @github/copilot dependency version. |
| nodejs/package-lock.json | Locks @github/copilot and platform packages to 0.0.411-0 (and updates metadata). |
| go/rpc/generated_rpc.go | Adds new typed session RPC APIs and related request/response structs/enums. |
| go/generated_session_events.go | Adds new session event types and Data fields (newMode, previousMode, operation, path). |
| dotnet/src/Generated/SessionEvents.cs | Adds new derived event types + enums for new session events. |
| dotnet/src/Generated/Rpc.cs | Adds new typed session RPC APIs for mode/plan/workspace/fleet. |
Files not reviewed (1)
- nodejs/package-lock.json: Language not supported
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Cross-SDK Consistency ReviewI've reviewed this PR for consistency across all four SDK implementations (Node.js/TypeScript, Python, Go, and .NET). Here are my findings: ✅ Type Generation: Fully ConsistentAll four SDKs have successfully regenerated types for the new features introduced in New RPC APIs (all present in all SDKs):
New Session Events (all present in all SDKs):
|
- Python: remove unnecessary pass in empty dataclasses with methods - C#: properly type string|null as string? instead of object - Go: omit optional fields when nil instead of sending null Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The mode property now uses SessionModeGetResultMode enum with Interactive, Plan, and Autopilot values for compile-time validation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
991b977 to
4262a26
Compare
- Python: test_rpc.py - mode, plan, workspace tests - Go: rpc_test.go - mode, plan, workspace tests - .NET: RpcTests.cs - mode, plan, workspace tests - Fix C# codegen to use enum type for method signatures (not just request classes) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
4262a26 to
a60689a
Compare
Updates the @github/copilot package to version 0.0.411-0 and regenerates SDK types for all languages (TypeScript, C#, Python, Go).
Also add some Copilot-authored E2E tests for the new RPC features.