copilot-sdk
copilot-sdk copied to clipboard
Update @github/copilot to 1.0.57
Automated update of @github/copilot to version 1.0.57.
Changes
- Updated
@github/copilotinnodejs/package.jsonandtest/harness/package.json - Re-ran all code generators (
scripts/codegen) - Formatted generated output
- Updated Java codegen dependency,
.lastmerge, POM property, and regenerated Java types
Java Handwritten Code Adaptation Plan
If java-sdk-tests CI fails on this PR, follow these steps:
- Identify failures: Run
mvn verifyfromjava/locally or check thejava-sdk-testsworkflow run logs. - Categorize errors:
- Constructor signature changes (new fields added to generated records)
- Enum value additions/renames in generated types
- New event types requiring handler registration
- Removed or renamed generated types
- Fix handwritten source (
java/src/main/java/com/github/copilot/sdk/):- Update call sites passing positional constructor args to include new fields (typically
nullfor optional new fields). - Update switch/if-else over enum values to handle new cases.
- Register handlers for new event types in
CopilotSession.javaif applicable.
- Update call sites passing positional constructor args to include new fields (typically
- Fix handwritten tests (
java/src/test/java/com/github/copilot/sdk/):- Same constructor/enum fixes as above.
- Add new test methods for new functionality if the change adds user-facing API surface.
- Validate:
cd java && mvn clean test-compile jar:jar && mvn verify -Dskip.test.harness=true - Format:
cd java && mvn spotless:apply - Push fixes to this PR branch.
To automate this, trigger the
java-adapt-handwritten-code-to-accept-upgrade-changesagentic workflow instead.
Next steps
When ready, click Ready for review to trigger CI checks.
Created by the Update @github/copilot Dependency workflow.