Add classical code generation workflow for Java SDK and migrate to generated event types#70
Add classical code generation workflow for Java SDK and migrate to generated event types#70
Conversation
- Add scripts/codegen/java.ts - Java code generator from session-events and api schemas - Add scripts/codegen/package.json with @github/copilot dependency - Add scripts/codegen/package-lock.json - Generate src/generated/java/com/github/copilot/sdk/generated/ - 76 session event files - Generate src/generated/java/com/github/copilot/sdk/generated/rpc/ - 111 RPC type files - Update pom.xml: add build-helper-maven-plugin, exclude generated from Spotless - Update config/checkstyle/checkstyle.xml: exclude generated packages - Update .gitattributes: mark src/generated/java/** as generated - Add .github/workflows/codegen-check.yml - CI check workflow - Add .github/workflows/update-copilot-dependency.yml - update workflow - Update docs/WORKFLOWS.md with new workflow documentation - Update .gitignore to exclude scripts/codegen/node_modules/" Agent-Logs-Url: https://github.com/github/copilot-sdk-java/sessions/aee4deda-40d4-4ecd-a831-2af9cb9461e7 Co-authored-by: edburns <75821+edburns@users.noreply.github.com>
| - name: Update @github/copilot in scripts/codegen | ||
| env: | ||
| VERSION: ${{ inputs.version }} | ||
| working-directory: ./scripts/codegen |
There was a problem hiding this comment.
@copilot add a comment explaining the necessity of the unusual step of running npm install before npm ci
There was a problem hiding this comment.
Added a comment in 6e3c50c explaining the two-step approach: npm install updates package.json and package-lock.json to pin the new version, then npm ci does a clean reproducible install from the updated lock file. Running npm ci alone would fail because it cannot change a pinned version, and npm install alone leaves behind stale packages.
Agent-Logs-Url: https://github.com/github/copilot-sdk-java/sessions/153bf73a-7c73-4f85-99be-ea7df4e5a2b6 Co-authored-by: edburns <75821+edburns@users.noreply.github.com>
edburns
left a comment
There was a problem hiding this comment.
Epic #69: Improve Quality of Java Code Generator
Context
The file scripts/codegen/java.ts is a TypeScript code generator that reads JSON Schema files from the @github/copilot npm dependency and emits Java source files under src/generated/java/. Its purpose is to replace hand-written Java classes in src/main/java/com/github/copilot/sdk/events/ and src/main/java/com/github/copilot/sdk/json/ with auto-generated equivalents.
The current generator produces Java code that is significantly less idiomatic than the hand-written classes it is meant to replace. This prompt describes the required improvements.
Reference files
Before making any changes, read and understand these files:
scripts/codegen/java.ts— the generator to modifysrc/main/java/com/github/copilot/sdk/events/AbstractSessionEvent.java— the hand-written sealed event hierarchy (the gold standard)src/main/java/com/github/copilot/sdk/events/AssistantMessageEvent.java— example of record-based data payload inside a final event classsrc/main/java/com/github/copilot/sdk/events/SessionIdleEvent.java— minimal event with empty record datasrc/main/java/com/github/copilot/sdk/events/UnknownSessionEvent.java— forward-compatibility fallbacksrc/main/java/com/github/copilot/sdk/events/SessionEventParser.java— manual type-map-based deserializationsrc/main/java/com/github/copilot/sdk/json/ToolDefinition.java— top-level record DTOsrc/main/java/com/github/copilot/sdk/json/Attachment.java— top-level record DTOsrc/main/java/com/github/copilot/sdk/json/SessionConfig.java— mutable config class with fluent setterssrc/main/java/com/github/copilot/sdk/json/ModelInfo.java— mutable bean with fluent setterssrc/main/java/com/github/copilot/sdk/json/PermissionRequestResultKind.java— extensible enum pattern (string-backed value type with static constants and@JsonCreator)src/main/java/com/github/copilot/sdk/json/ElicitationResultAction.java— classic enum with string backing value
Also read .github/copilot-instructions.md for project conventions.
Requirements
1. Use sealed class for the session event hierarchy
The generated SessionEvent.java base class must be declared as:
public abstract sealed class SessionEvent permits
AssistantMessageEvent, SessionIdleEvent, ...
UnknownSessionEvent {The generator must collect all variant class names and emit them in the permits clause. UnknownSessionEvent must always be the last entry.
The hand-written AbstractSessionEvent.java is the reference for this pattern.
2. Use record types for event data payloads
Every event variant's inner Data class must be generated as a Java record, not a mutable bean. For example, ToolExecutionStartEvent should contain:
@JsonIgnoreProperties(ignoreUnknown = true)
public record ToolExecutionStartData(
@JsonProperty("toolCallId") String toolCallId,
@JsonProperty("toolName") String toolName,
@JsonProperty("arguments") Object arguments
) {}Not:
public static class ToolExecutionStartData {
private String toolCallId;
public String getToolCallId() { return toolCallId; }
public void setToolCallId(String toolCallId) { this.toolCallId = toolCallId; }
// ...
}Records are appropriate here because event data payloads are immutable value types deserialized from JSON — they are never constructed by SDK users or mutated after creation.
3. Use record types for RPC params and result classes
The RPC ...Params and ...Result classes generated from api.schema.json should also be records. These are request/response DTOs that are deserialized from JSON and not mutated.
4. Distinguish integer from number in type mapping
The current generator maps both "integer" and "number" to Double. This is incorrect.
- JSON Schema
"integer"→ JavaLong(orIntegerif the schema constrains the range, but default toLong) - JSON Schema
"number"→ JavaDouble
Using floating point for integer values is dangerous and unacceptable. Fix schemaTypeToJava() to distinguish these cases.
5. Use primitive types for required fields, boxed types for optional
The required parameter is already computed in schemaTypeToJava() but not used to inform the Java type. Change this:
- Required
booleanfield →boolean(primitive) - Optional
booleanfield →Boolean(boxed, nullable) - Required
integerfield →long(primitive) - Optional
integerfield →Long(boxed, nullable) - Required
numberfield →double(primitive) - Optional
numberfield →Double(boxed, nullable)
Note: this applies to mutable bean classes only. Records always use boxed types because record components are nullable by default and there is no way to distinguish "field absent from JSON" vs "field present with default value" with primitives.
6. Make event subclasses final
Every generated event variant class must be declared public final class ...Event extends SessionEvent. This cooperates with the sealed hierarchy and prevents accidental subclassing.
7. Reduce fallback to Object
The current generator falls back to Object for:
- Multi-type
anyOfunions with more than one non-null branch - Unrecognized schema patterns
- Untyped schemas
For each fallback site, add a console.warn() logging the schema path and context so that silent type erasure is visible during generation. Do not silently swallow schema information.
Additionally, for anyOf unions of exactly two concrete types where one is string, prefer String over Object — strings are the most common wire-level fallback.
8. Remove dead code
The function generateDataClass (around line 215) appears to be unused — it is not called from generateSessionEvents, generateRpcTypes, or main. Verify this claim:
- Search for all call sites of
generateDataClassinjava.tsand any other files inscripts/codegen/. - If truly dead, remove it entirely.
- If it is used, fix its return type (currently returns an object but is typed as returning
string, cast viaas any).
9. Improve enum generation
Current enums use @JsonValue on a getValue() method but lack @JsonCreator for deserialization. Add a static @JsonCreator factory method to each generated enum:
@JsonCreator
public static MyEnum fromValue(String value) {
for (MyEnum v : values()) {
if (v.value.equals(value)) return v;
}
throw new IllegalArgumentException("Unknown value: " + value);
}10. Generate Javadoc
- Each generated class must have a Javadoc comment. If the schema provides a
description, use it. Otherwise, generate a sensible default (e.g.,/** The {@code session.idle} session event. */). - Each record component or field with a schema
descriptionmust have a Javadoc comment. - Add
@sincetags based on the current SDK version.
11. Add @JsonInclude(NON_NULL) consistently
The hand-written records use @JsonInclude(JsonInclude.Include.NON_NULL) at the class level. The generated code should do the same on all generated types.
Constraints
- Do not modify any hand-written files in
src/main/java/. This task is only about improving the generator. - Do not change the output directory (
src/generated/java/com/github/copilot/sdk/generated/). - Do not change the package name (
com.github.copilot.sdk.generated). - After making changes, run the generator and verify the output compiles:
cd scripts/codegen && npm ci && npx tsx java.ts && cd ../.. && mvn compile -pl . - Run
mvn spotless:applybefore committing. - The generated code must be compatible with Java 17 (the project baseline).
- Jackson 2.x must be able to deserialize the generated records and sealed class hierarchy correctly. Test this by running
mvn verify.
Verification checklist
After completing the changes, verify:
-
SessionEvent.javaissealedwith apermitsclause listing all event classes plusUnknownSessionEvent - All event
...Datainner classes arerecordtypes - All RPC
...Paramsand...Resultclasses arerecordtypes -
"integer"schema type maps toLong,"number"maps toDouble - Required primitive fields use unboxed types in mutable classes
- All event subclasses are
public final class -
generateDataClassis removed (or fixed if actually used) - Enums have
@JsonCreatorfactory methods - No silent
Objectfallbacks — each one logs a warning during generation -
mvn verifypasses with all existing tests -
mvn spotless:applyproduces no changes after a clean generation
…ger, @JsonCreator Agent-Logs-Url: https://github.com/github/copilot-sdk-java/sessions/c76bbc9a-e73e-40cc-8dd4-7ecd223c16cd Co-authored-by: edburns <75821+edburns@users.noreply.github.com>
All eleven improvements have been implemented in commit 75e5dba:
|
… Object fallbacks The code generator (scripts/codegen/java.ts) had two gaps identified during report-card grading against the Epic #69 rubric: 1. Silent Object fallbacks: When schemaTypeToJava() fell back to List<Object> (untyped array) or Map<String, Object> (untyped object without properties or additionalProperties), it did so silently. Added console.warn() at both sites so type erasure is visible during generation, matching the existing warnings for anyOf and unrecognized schema patterns. 2. Missing @JsonInclude(NON_NULL) on outer event classes: The annotation was present on inner data records and RPC records but missing from the SessionEvent sealed base class and all outer event variant classes (e.g., AssistantMessageEvent, ToolExecutionStartEvent). Added the import and annotation to generateSessionEventBaseClass() and generateEventVariantClass(). After regenerating, all 75 session event files and 111 RPC type files were updated. mvn verify passes with 556 tests, 0 failures, 0 errors.
edburns
left a comment
There was a problem hiding this comment.
Epic #69, Chunk 1: Replace com.github.copilot.sdk.events with com.github.copilot.sdk.generated
Context
The Java SDK has two parallel sets of session event classes:
- Old (hand-written):
com.github.copilot.sdk.events— 59 files includingAbstractSessionEvent(sealed base), 57*Eventsubclasses,UnknownSessionEvent,SessionEventParser, andpackage-info.java. - New (generated):
com.github.copilot.sdk.generated— 75+ files includingSessionEvent(sealed base with@JsonTypeInfo/@JsonSubTypes), 74*Eventsubclasses, andUnknownSessionEvent.
The generated package is a strict superset of the old package. It covers all 57 old event types plus ~18 new event types from the latest schema. The generated code uses Jackson-native polymorphic deserialization (@JsonTypeInfo/@JsonSubTypes on the base class with defaultImpl = UnknownSessionEvent.class) instead of the manual SessionEventParser type-map.
This chunk migrates the SDK from the old events package to the generated events package, then deletes the old package entirely.
Scope
✅ Change all import com.github.copilot.sdk.events.* → import com.github.copilot.sdk.generated.*
✅ Rename type references: AbstractSessionEvent → SessionEvent
✅ Rename inner record type references: FooData → FooEventData (e.g. AssistantMessageData → AssistantMessageEventData)
✅ Rename nested record type references (e.g. ToolRequest → AssistantMessageEventDataToolRequestsItem)
✅ Replace SessionEventParser.parse() calls with direct Jackson ObjectMapper.readValue(json, SessionEvent.class)
✅ Delete the entire src/main/java/com/github/copilot/sdk/events/ directory
✅✅ Update existing tests and generate new tests to cover the code you are creating and/or changing.
❌ Do NOT modify the com.github.copilot.sdk.json package — it is unrelated to this chunk.
❌ Do NOT modify the com.github.copilot.sdk.generated.rpc package — it is unrelated to this chunk.
❌ Do NOT modify the generator (scripts/codegen/java.ts) — this chunk is about wiring, not generation.
❌ Do NOT add new public API methods or change method signatures beyond what is required for the type rename.
Reference files to read first
Before making any changes, MUST read and understand these files:
src/generated/java/com/github/copilot/sdk/generated/SessionEvent.java— the generated sealed base class with@JsonTypeInfo/@JsonSubTypessrc/generated/java/com/github/copilot/sdk/generated/UnknownSessionEvent.java— the generated forward-compatibility fallbacksrc/generated/java/com/github/copilot/sdk/generated/AssistantMessageEvent.java— example generated event (note inner record isAssistantMessageEventData, notAssistantMessageData)src/main/java/com/github/copilot/sdk/events/AbstractSessionEvent.java— the OLD base class being replacedsrc/main/java/com/github/copilot/sdk/events/SessionEventParser.java— the OLD manual type-map being eliminatedsrc/main/java/com/github/copilot/sdk/CopilotSession.java— primary consumer (36 event imports,Set<Consumer<AbstractSessionEvent>>,on()methods,dispatchEvent(),getMessages())src/main/java/com/github/copilot/sdk/RpcHandlerDispatcher.java— usesAbstractSessionEventandSessionEventParser.parse()src/main/java/com/github/copilot/sdk/EventErrorHandler.java— usesAbstractSessionEventsrc/main/java/com/github/copilot/sdk/json/ResumeSessionConfig.java— referencesAbstractSessionEventsrc/main/java/com/github/copilot/sdk/json/SessionConfig.java— referencesAbstractSessionEvent
Also read .github/copilot-instructions.md for project conventions.
Detailed migration steps
Step 1: Inventory all consumers
Run this to find every file that imports from the old events package:
grep -rl "import com.github.copilot.sdk.events" src/MUST process every file found. Expected consumers:
Main source (5 files):
CopilotSession.java— heaviest consumer (~36 imports)RpcHandlerDispatcher.java— usesAbstractSessionEvent,SessionEventParser.parse()EventErrorHandler.java— usesAbstractSessionEventResumeSessionConfig.java(injsonpackage) — referencesAbstractSessionEventSessionConfig.java(injsonpackage) — referencesAbstractSessionEvent
Test source (~17+ files):
SessionEventParserTest.java,CopilotSessionTest.java,SessionEventsE2ETest.java,ForwardCompatibilityTest.java,StreamingFidelityTest.java,ErrorHandlingTest.java,CompactionTest.java, and others.
Step 2: Replace base class references
In every consumer file:
| Old | New |
|---|---|
import com.github.copilot.sdk.events.AbstractSessionEvent |
import com.github.copilot.sdk.generated.SessionEvent |
AbstractSessionEvent (as a type) |
SessionEvent |
MUST update all usages including:
- Field declarations:
Set<Consumer<AbstractSessionEvent>>→Set<Consumer<SessionEvent>> - Method signatures:
Consumer<AbstractSessionEvent>→Consumer<SessionEvent> - Type parameters:
Class<T extends AbstractSessionEvent>→Class<T extends SessionEvent> - Return types:
List<AbstractSessionEvent>→List<SessionEvent> instanceofchecks- Cast expressions
Step 3: Replace event subclass imports
For each specific event class imported (e.g. AssistantMessageEvent, SessionIdleEvent):
| Old | New |
|---|---|
import com.github.copilot.sdk.events.AssistantMessageEvent |
import com.github.copilot.sdk.generated.AssistantMessageEvent |
import com.github.copilot.sdk.events.SessionIdleEvent |
import com.github.copilot.sdk.generated.SessionIdleEvent |
| (all other event classes) | (same class name, different package) |
Step 4: Rename inner record type references
The generated events use a different naming convention for inner data records:
| Old inner record name | New inner record name |
|---|---|
AssistantMessageData |
AssistantMessageEventData |
SessionIdleData |
SessionIdleEventData |
ToolExecutionStartData |
ToolExecutionStartEventData |
(pattern: FooData) |
(pattern: FooEventData) |
MUST search for all references to old inner record names and rename them. Most code uses event.getData() without naming the inner type, so the impact should be limited.
Also rename nested types:
| Old nested record name | New nested record name |
|---|---|
ToolRequest (in AssistantMessageEvent) |
AssistantMessageEventDataToolRequestsItem |
CopilotUsage (in AssistantUsageEvent) |
AssistantUsageEventDataCopilotUsage |
TokenDetails (in AssistantUsageEvent) |
AssistantUsageEventDataCopilotUsageTokenDetailsItem |
CompactionTokensUsed (in SessionCompactionCompleteEvent) |
SessionCompactionCompleteEventDataCompactionTokensUsed |
Repository (in SessionHandoffEvent) |
SessionHandoffEventDataRepository |
CodeChanges (in SessionShutdownEvent) |
SessionShutdownEventDataCodeChanges |
HookError (in HookEndEvent) |
HookEndEventDataError |
ElicitationRequestedSchema (in ElicitationRequestedEvent) |
ElicitationRequestedEventDataRequestedSchema |
CapabilitiesChangedUi (in CapabilitiesChangedEvent) |
CapabilitiesChangedEventDataUi |
PermissionCompletedResult (in PermissionCompletedEvent) |
PermissionCompletedEventDataResult |
Error (in ToolExecutionCompleteEvent) |
ToolExecutionCompleteEventDataError |
Result (in ToolExecutionCompleteEvent) |
ToolExecutionCompleteEventDataResult |
Attachment (in UserMessageEvent) |
UserMessageEventData (field within the data record) |
Selection (in UserMessageEvent) |
(check generated equivalent) |
Position (in UserMessageEvent) |
(check generated equivalent) |
Step 5: Eliminate SessionEventParser
The generated SessionEvent base class has @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type", defaultImpl = UnknownSessionEvent.class) which means Jackson handles polymorphic deserialization natively.
MUST find all call sites of SessionEventParser.parse() and replace them:
| Old code | New code |
|---|---|
SessionEventParser.parse(jsonNode) |
objectMapper.treeToValue(jsonNode, SessionEvent.class) |
The ObjectMapper MUST be configured with JavaTimeModule and FAIL_ON_UNKNOWN_PROPERTIES = false (same as the existing SessionEventParser uses internally).
Expected call sites:
CopilotSession.java— indispatchEvent()or message parsingRpcHandlerDispatcher.java— in event dispatching
MUST also remove the import of SessionEventParser from these files.
Step 6: Handle cross-package references
Two files in the json package reference the old events package:
src/main/java/com/github/copilot/sdk/json/SessionConfig.java— referencesAbstractSessionEvent(in theonEventconsumer field)src/main/java/com/github/copilot/sdk/json/ResumeSessionConfig.java— referencesAbstractSessionEvent
MUST update these to import com.github.copilot.sdk.generated.SessionEvent instead and rename the type reference.
Additionally, two old event classes reference json package types:
events.PermissionRequestedEvent→ referencesjson.PermissionRequestevents.SessionContextChangedEvent→ referencesjson.SessionContext
Since these old classes are being deleted (replaced by generated equivalents that define their own inline data records), these cross-references vanish automatically. No action needed — just verify the generated replacements don't import from json.
Step 7: Delete the old events package
After all consumers are migrated:
git rm -r src/main/java/com/github/copilot/sdk/events/MUST delete the entire directory. Every file in it is either replaced or obsolete:
AbstractSessionEvent.java→ replaced bygenerated.SessionEvent- 57
*Event.javafiles → replaced by 74 generated*Event.javafiles UnknownSessionEvent.java→ replaced bygenerated.UnknownSessionEventSessionEventParser.java→ eliminated (Jackson handles polymorphism)package-info.java→ no longer needed
Step 8: Update and create tests
✅✅ Update existing tests and generate new tests to cover the code you are creating and/or changing.
Specifically:
- MUST update
SessionEventParserTest.javato test Jackson-native deserialization viaSessionEvent.classinstead ofSessionEventParser.parse(). Rename it to something likeSessionEventDeserializationTest.java. - MUST update all test files that import from
com.github.copilot.sdk.eventsto import fromcom.github.copilot.sdk.generatedinstead. - MUST verify
UnknownSessionEventfallback works: deserializing a JSON event with an unknowntypestring MUST produce anUnknownSessionEventinstance, not throw. - MUST verify at least 5 representative event types round-trip through Jackson correctly (serialize → deserialize → assert fields match).
- MUST verify the sealed hierarchy:
SessionEventMUST besealed, each subclass MUST befinal.
Constraints
- MUST run
mvn spotless:applybefore committing. - MUST run
mvn verifyand all tests MUST pass. - MUST NOT leave any references to
com.github.copilot.sdk.eventsanywhere in the codebase after this chunk is complete. - MUST NOT change any generated files in
src/generated/java/— those are auto-generated and should not be hand-edited. - MUST NOT add any new public API methods beyond what already exists.
- The generated code targets Java 17 (the project baseline).
Verification checklist
After completing the changes, verify and mark each item:
-
grep -rl "com.github.copilot.sdk.events" src/returns zero results -
src/main/java/com/github/copilot/sdk/events/directory does not exist -
SessionEventParser.javadoes not exist anywhere -
CopilotSession.javausesSessionEvent(generated), notAbstractSessionEvent -
RpcHandlerDispatcher.javauses Jackson-native deserialization, notSessionEventParser.parse() -
SessionConfig.javareferencescom.github.copilot.sdk.generated.SessionEvent, notAbstractSessionEvent -
ResumeSessionConfig.javareferencescom.github.copilot.sdk.generated.SessionEvent, notAbstractSessionEvent - Unknown event types deserialize to
UnknownSessionEvent(test exists and passes) - At least 5 event types round-trip through Jackson correctly (tests exist and pass)
-
mvn spotless:applyproduces no changes -
mvn verifypasses — all tests green, zero failures
Replace hand-written com.github.copilot.sdk.events package with auto-generated com.github.copilot.sdk.generated types. - Replace AbstractSessionEvent with SessionEvent from generated package - Replace SessionEventParser with Jackson native polymorphic deserialization - Update all main source and test files to use generated types - Adapt ForwardCompatibilityTest to remove getOriginalType() tests - Update type assertions for renamed data records (FooData -> FooEventData) - Fix enum type comparisons in tests (elicitation mode, shutdown type, etc.) - Update site documentation to reference generated package - Delete old events package Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: edburns <75821+edburns@users.noreply.github.com>
Migration complete in commit Verification checklist:
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Resolves #69
Before the change?
com.github.copilot.sdk.eventspackage (59 files) required manual updates for every schema change, used a bespokeSessionEventParsertype-map for polymorphic deserialization, and was missing ~18 event types present in the latest schema.After the change?
Codegen script (
scripts/codegen/java.ts)session-events.schema.json→ generatescom.github.copilot.sdk.generated(75 files):SessionEventabstract sealed base class with full@JsonTypeInfo/@JsonSubTypespolymorphism, onepublic finaltyped event class per variant with@Override getType(),UnknownSessionEventfallback as lastpermitsentryapi.schema.json→ generatescom.github.copilot.sdk.generated.rpc(111 files): params/result DTOs for all RPC methodsDatainner classes and RPCParams/Resultclasses are Java records (immutable, no getters/setters)"integer"schema type maps toLong;"number"maps toDouble(previously both mapped toDouble)@JsonCreator static fromValue(String)factory for correct deserialization@since 1.0.0and@JsonInclude(JsonInclude.Include.NON_NULL)generateDataClassremoved; everyObjectfallback emits aconsole.warn()with schema pathanyOfunions of exactly two non-null types where one isstringresolve toStringinstead ofObject// AUTO-GENERATED FILE - DO NOT EDIT, schema-source comment, and@javax.annotation.processing.Generated("copilot-sdk-codegen")Migration:
com.github.copilot.sdk.events→com.github.copilot.sdk.generatedCopilotSession,RpcHandlerDispatcher,EventErrorHandler,SessionConfig,ResumeSessionConfig):AbstractSessionEvent→SessionEvent, all event imports redirected to generated packageRpcHandlerDispatchernow uses Jackson-nativeMAPPER.treeToValue(eventNode, SessionEvent.class)instead of the manualSessionEventParsertype-map — polymorphism is handled by@JsonTypeInfo/@JsonSubTypeson the generated base classSessionEventParser.javadeleted — no longer neededcom.github.copilot.sdk.generated;SessionEventParserTestrewritten asSessionEventDeserializationTestusing Jackson-native deserializationcom.github.copilot.sdk.eventspackage (59 files) deleted entirelycom.github.copilot.sdk.eventsinsrc/main/orsrc/test/Maven (
pom.xml)build-helper-maven-pluginaddssrc/generated/javaas a source rootsrc/generated/java/**Infrastructure
config/checkstyle/checkstyle.xml— excludesgeneratedandrpcpackages from Javadoc enforcement.gitattributes—src/generated/java/** eol=lf linguist-generated=true.github/workflows/codegen-check.yml— installs deps, re-runsnpm run generate, fails on any diff (runs onpush/pull_requestpaths that touch codegen or generated files).github/workflows/update-copilot-dependency.yml—workflow_dispatchwithversioninput; updates@github/copilotinscripts/codegen(vianpm installto updatepackage.jsonand lock file, thennpm cifor a clean reproducible install), regenerates, opens a PR automaticallyPull request checklist
mvn spotless:applyhas been run to format the codemvn clean verifypasses locallyDoes this introduce a breaking change?