Skip to content

Commit 499ce16

Browse files
authored
Merge branch 'main' into edburns/80-java-monorepo-phase-06-iterating-seeking-review
2 parents ccff2e9 + 23f0951 commit 499ce16

143 files changed

Lines changed: 5044 additions & 119 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

java/.lastmerge

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f4d22d70016c377881d86e4c77f8a3f93746ffae
1+
60104052cd914949ddf8c7a31e1856cd6db0a57c

java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
reference-impl-sync workflow and deal with the subsequent
9595
PR.
9696
-->
97-
<readonly-copilot-sdk-ref-impl-version-from-lastmerge-file-updated-by-reference-impl-sync>^1.0.52-1</readonly-copilot-sdk-ref-impl-version-from-lastmerge-file-updated-by-reference-impl-sync>
97+
<readonly-copilot-sdk-ref-impl-version-from-lastmerge-file-updated-by-reference-impl-sync>^1.0.55-5</readonly-copilot-sdk-ref-impl-version-from-lastmerge-file-updated-by-reference-impl-sync>
9898

9999
</properties>
100100

java/scripts/codegen/package-lock.json

Lines changed: 36 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

java/scripts/codegen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"generate:java": "tsx java.ts"
88
},
99
"dependencies": {
10-
"@github/copilot": "^1.0.52-1",
10+
"@github/copilot": "^1.0.55-5",
1111
"json-schema": "^0.4.0",
1212
"tsx": "^4.20.6"
1313
}

java/src/generated/java/com/github/copilot/generated/AssistantMessageEvent.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ public record AssistantMessageEventData(
5858
@JsonProperty("interactionId") String interactionId,
5959
/** GitHub request tracing ID (x-github-request-id header) for correlating with server-side logs */
6060
@JsonProperty("requestId") String requestId,
61+
/** Copilot service request ID (x-copilot-service-request-id header) for CAPI log correlation */
62+
@JsonProperty("serviceRequestId") String serviceRequestId,
6163
/** Raw Anthropic content array with advisor blocks (server_tool_use, advisor_tool_result) for verbatim round-tripping */
6264
@JsonProperty("anthropicAdvisorBlocks") List<Object> anthropicAdvisorBlocks,
6365
/** Anthropic advisor model ID used for this response, for timeline display on replay */

java/src/generated/java/com/github/copilot/generated/AssistantUsageEvent.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ public record AssistantUsageEventData(
6262
@JsonProperty("apiCallId") String apiCallId,
6363
/** GitHub request tracing ID (x-github-request-id header) for server-side log correlation */
6464
@JsonProperty("providerCallId") String providerCallId,
65+
/** Copilot service request ID (x-copilot-service-request-id header) for CAPI log correlation */
66+
@JsonProperty("serviceRequestId") String serviceRequestId,
6567
/** API endpoint used for this model call, matching CAPI supported_endpoints vocabulary */
6668
@JsonProperty("apiEndpoint") AssistantUsageApiEndpoint apiEndpoint,
6769
/** Parent tool call ID when this usage originates from a sub-agent */
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*---------------------------------------------------------------------------------------------
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
*--------------------------------------------------------------------------------------------*/
4+
5+
// AUTO-GENERATED FILE - DO NOT EDIT
6+
// Generated from: session-events.schema.json
7+
8+
package com.github.copilot.generated;
9+
10+
import javax.annotation.processing.Generated;
11+
12+
/**
13+
* The type of operation performed on the autopilot objective state file
14+
*
15+
* @since 1.0.0
16+
*/
17+
@javax.annotation.processing.Generated("copilot-sdk-codegen")
18+
public enum AutopilotObjectiveChangedOperation {
19+
/** The {@code create} variant. */
20+
CREATE("create"),
21+
/** The {@code update} variant. */
22+
UPDATE("update"),
23+
/** The {@code delete} variant. */
24+
DELETE("delete");
25+
26+
private final String value;
27+
AutopilotObjectiveChangedOperation(String value) { this.value = value; }
28+
@com.fasterxml.jackson.annotation.JsonValue
29+
public String getValue() { return value; }
30+
@com.fasterxml.jackson.annotation.JsonCreator
31+
public static AutopilotObjectiveChangedOperation fromValue(String value) {
32+
for (AutopilotObjectiveChangedOperation v : values()) {
33+
if (v.value.equals(value)) return v;
34+
}
35+
throw new IllegalArgumentException("Unknown AutopilotObjectiveChangedOperation value: " + value);
36+
}
37+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*---------------------------------------------------------------------------------------------
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
*--------------------------------------------------------------------------------------------*/
4+
5+
// AUTO-GENERATED FILE - DO NOT EDIT
6+
// Generated from: session-events.schema.json
7+
8+
package com.github.copilot.generated;
9+
10+
import javax.annotation.processing.Generated;
11+
12+
/**
13+
* Current autopilot objective status, if one exists
14+
*
15+
* @since 1.0.0
16+
*/
17+
@javax.annotation.processing.Generated("copilot-sdk-codegen")
18+
public enum AutopilotObjectiveChangedStatus {
19+
/** The {@code active} variant. */
20+
ACTIVE("active"),
21+
/** The {@code paused} variant. */
22+
PAUSED("paused"),
23+
/** The {@code cap_reached} variant. */
24+
CAP_REACHED("cap_reached"),
25+
/** The {@code completed} variant. */
26+
COMPLETED("completed");
27+
28+
private final String value;
29+
AutopilotObjectiveChangedStatus(String value) { this.value = value; }
30+
@com.fasterxml.jackson.annotation.JsonValue
31+
public String getValue() { return value; }
32+
@com.fasterxml.jackson.annotation.JsonCreator
33+
public static AutopilotObjectiveChangedStatus fromValue(String value) {
34+
for (AutopilotObjectiveChangedStatus v : values()) {
35+
if (v.value.equals(value)) return v;
36+
}
37+
throw new IllegalArgumentException("Unknown AutopilotObjectiveChangedStatus value: " + value);
38+
}
39+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*---------------------------------------------------------------------------------------------
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
*--------------------------------------------------------------------------------------------*/
4+
5+
// AUTO-GENERATED FILE - DO NOT EDIT
6+
// Generated from: session-events.schema.json
7+
8+
package com.github.copilot.generated;
9+
10+
import javax.annotation.processing.Generated;
11+
12+
/**
13+
* Runtime-controlled routing state for the instance. "ready" when the provider connection is live; "stale" when the provider has gone away and the instance is awaiting rebinding.
14+
*
15+
* @since 1.0.0
16+
*/
17+
@javax.annotation.processing.Generated("copilot-sdk-codegen")
18+
public enum CanvasOpenedAvailability {
19+
/** The {@code ready} variant. */
20+
READY("ready"),
21+
/** The {@code stale} variant. */
22+
STALE("stale");
23+
24+
private final String value;
25+
CanvasOpenedAvailability(String value) { this.value = value; }
26+
@com.fasterxml.jackson.annotation.JsonValue
27+
public String getValue() { return value; }
28+
@com.fasterxml.jackson.annotation.JsonCreator
29+
public static CanvasOpenedAvailability fromValue(String value) {
30+
for (CanvasOpenedAvailability v : values()) {
31+
if (v.value.equals(value)) return v;
32+
}
33+
throw new IllegalArgumentException("Unknown CanvasOpenedAvailability value: " + value);
34+
}
35+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*---------------------------------------------------------------------------------------------
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
*--------------------------------------------------------------------------------------------*/
4+
5+
// AUTO-GENERATED FILE - DO NOT EDIT
6+
// Generated from: session-events.schema.json
7+
8+
package com.github.copilot.generated;
9+
10+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
11+
import com.fasterxml.jackson.annotation.JsonInclude;
12+
import com.fasterxml.jackson.annotation.JsonProperty;
13+
import java.util.List;
14+
import java.util.Map;
15+
import javax.annotation.processing.Generated;
16+
17+
/**
18+
* Schema for the `CanvasRegistryChangedCanvas` type.
19+
*
20+
* @since 1.0.0
21+
*/
22+
@javax.annotation.processing.Generated("copilot-sdk-codegen")
23+
@JsonInclude(JsonInclude.Include.NON_NULL)
24+
@JsonIgnoreProperties(ignoreUnknown = true)
25+
public record CanvasRegistryChangedCanvas(
26+
/** Owning provider identifier */
27+
@JsonProperty("extensionId") String extensionId,
28+
/** Owning extension display name, when available */
29+
@JsonProperty("extensionName") String extensionName,
30+
/** Provider-local canvas identifier */
31+
@JsonProperty("canvasId") String canvasId,
32+
/** Human-readable canvas name */
33+
@JsonProperty("displayName") String displayName,
34+
/** Short, single-sentence description shown to the agent in canvas catalogs. */
35+
@JsonProperty("description") String description,
36+
/** JSON Schema for canvas open input */
37+
@JsonProperty("inputSchema") Map<String, Object> inputSchema,
38+
/** Actions the agent or host may invoke */
39+
@JsonProperty("actions") List<CanvasRegistryChangedCanvasAction> actions
40+
) {
41+
}

0 commit comments

Comments
 (0)