getCurrent() {
}
/**
- * Invokes {@code session.agent.select}.
+ * Name of the custom agent to select for subsequent turns.
*
* Note: the {@code sessionId} field in the params record is overridden
* by the session-scoped wrapper; any value provided is ignored.
@@ -65,7 +65,7 @@ public CompletableFuture select(SessionAgentSelectPara
}
/**
- * Invokes {@code session.agent.deselect}.
+ * Identifies the target session.
*
* @apiNote This method is experimental and may change in a future version.
* @since 1.0.0
@@ -75,7 +75,7 @@ public CompletableFuture deselect() {
}
/**
- * Invokes {@code session.agent.reload}.
+ * Identifies the target session.
*
* @apiNote This method is experimental and may change in a future version.
* @since 1.0.0
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentDeselectParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentDeselectParams.java
index cd101194c7..d412c83cfd 100644
--- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentDeselectParams.java
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentDeselectParams.java
@@ -13,7 +13,7 @@
import javax.annotation.processing.Generated;
/**
- * Request parameters for the {@code session.agent.deselect} RPC method.
+ * Identifies the target session.
*
* @since 1.0.0
*/
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentParams.java
index c05e5fa362..24bf532ff5 100644
--- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentParams.java
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentParams.java
@@ -13,7 +13,7 @@
import javax.annotation.processing.Generated;
/**
- * Request parameters for the {@code session.agent.getCurrent} RPC method.
+ * Identifies the target session.
*
* @since 1.0.0
*/
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentResult.java
index fea4e47b63..fec2bc94f2 100644
--- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentResult.java
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentGetCurrentResult.java
@@ -13,7 +13,7 @@
import javax.annotation.processing.Generated;
/**
- * Result for the {@code session.agent.getCurrent} RPC method.
+ * The currently selected custom agent, or null when using the default agent.
*
* @since 1.0.0
*/
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListParams.java
index e14ae40c0c..6badf614c5 100644
--- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListParams.java
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListParams.java
@@ -13,7 +13,7 @@
import javax.annotation.processing.Generated;
/**
- * Request parameters for the {@code session.agent.list} RPC method.
+ * Identifies the target session.
*
* @since 1.0.0
*/
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListResult.java
index f572bf9aed..9b618b248a 100644
--- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListResult.java
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentListResult.java
@@ -14,7 +14,7 @@
import javax.annotation.processing.Generated;
/**
- * Result for the {@code session.agent.list} RPC method.
+ * Custom agents available to the session.
*
* @since 1.0.0
*/
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadParams.java
index ea1b4050b0..5b30c866a0 100644
--- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadParams.java
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadParams.java
@@ -13,7 +13,7 @@
import javax.annotation.processing.Generated;
/**
- * Request parameters for the {@code session.agent.reload} RPC method.
+ * Identifies the target session.
*
* @since 1.0.0
*/
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadResult.java
index 32928e53a1..d058293eac 100644
--- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadResult.java
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentReloadResult.java
@@ -14,7 +14,7 @@
import javax.annotation.processing.Generated;
/**
- * Result for the {@code session.agent.reload} RPC method.
+ * Custom agents available to the session after reloading definitions from disk.
*
* @since 1.0.0
*/
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectParams.java
index 61777dde33..38532ace01 100644
--- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectParams.java
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectParams.java
@@ -13,7 +13,7 @@
import javax.annotation.processing.Generated;
/**
- * Request parameters for the {@code session.agent.select} RPC method.
+ * Name of the custom agent to select for subsequent turns.
*
* @since 1.0.0
*/
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectResult.java
index ab9637568d..ea19f56488 100644
--- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectResult.java
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAgentSelectResult.java
@@ -13,7 +13,7 @@
import javax.annotation.processing.Generated;
/**
- * Result for the {@code session.agent.select} RPC method.
+ * The newly selected custom agent.
*
* @since 1.0.0
*/
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthApi.java
index 93624213e8..5b87bf3b3e 100644
--- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthApi.java
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthApi.java
@@ -18,6 +18,8 @@
@javax.annotation.processing.Generated("copilot-sdk-codegen")
public final class SessionAuthApi {
+ private static final com.fasterxml.jackson.databind.ObjectMapper MAPPER = RpcMapper.INSTANCE;
+
private final RpcCaller caller;
private final String sessionId;
@@ -28,11 +30,28 @@ public final class SessionAuthApi {
}
/**
- * Invokes {@code session.auth.getStatus}.
+ * Identifies the target session.
+ *
+ * @apiNote This method is experimental and may change in a future version.
* @since 1.0.0
*/
public CompletableFuture getStatus() {
return caller.invoke("session.auth.getStatus", java.util.Map.of("sessionId", this.sessionId), SessionAuthGetStatusResult.class);
}
+ /**
+ * New auth credentials to install on the session. Omit to leave credentials unchanged.
+ *
+ * Note: the {@code sessionId} field in the params record is overridden
+ * by the session-scoped wrapper; any value provided is ignored.
+ *
+ * @apiNote This method is experimental and may change in a future version.
+ * @since 1.0.0
+ */
+ public CompletableFuture setCredentials(SessionAuthSetCredentialsParams params) {
+ com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params);
+ _p.put("sessionId", this.sessionId);
+ return caller.invoke("session.auth.setCredentials", _p, SessionAuthSetCredentialsResult.class);
+ }
+
}
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusParams.java
index 059833d374..4a99886682 100644
--- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusParams.java
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusParams.java
@@ -13,7 +13,7 @@
import javax.annotation.processing.Generated;
/**
- * Request parameters for the {@code session.auth.getStatus} RPC method.
+ * Identifies the target session.
*
* @since 1.0.0
*/
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusResult.java
index 737c2ae9ea..6e58fe6c7d 100644
--- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusResult.java
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthGetStatusResult.java
@@ -13,7 +13,7 @@
import javax.annotation.processing.Generated;
/**
- * Result for the {@code session.auth.getStatus} RPC method.
+ * Authentication status and account metadata for the session.
*
* @since 1.0.0
*/
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsParams.java
new file mode 100644
index 0000000000..5e5e6b5028
--- /dev/null
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsParams.java
@@ -0,0 +1,29 @@
+/*---------------------------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ *--------------------------------------------------------------------------------------------*/
+
+// AUTO-GENERATED FILE - DO NOT EDIT
+// Generated from: api.schema.json
+
+package com.github.copilot.sdk.generated.rpc;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import javax.annotation.processing.Generated;
+
+/**
+ * New auth credentials to install on the session. Omit to leave credentials unchanged.
+ *
+ * @since 1.0.0
+ */
+@javax.annotation.processing.Generated("copilot-sdk-codegen")
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public record SessionAuthSetCredentialsParams(
+ /** Target session identifier */
+ @JsonProperty("sessionId") String sessionId,
+ /** The new auth credentials to install on the session. When omitted or `undefined`, the call is a no-op and the session's existing credentials are preserved. The runtime stores the value verbatim and uses it for outbound model/API requests; it does NOT re-validate or re-fetch the associated Copilot user response. Several variants carry secret material; treat this method's params as containing secrets at rest and in transit. */
+ @JsonProperty("credentials") Object credentials
+) {
+}
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsResult.java
new file mode 100644
index 0000000000..5aef213a4f
--- /dev/null
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionAuthSetCredentialsResult.java
@@ -0,0 +1,27 @@
+/*---------------------------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ *--------------------------------------------------------------------------------------------*/
+
+// AUTO-GENERATED FILE - DO NOT EDIT
+// Generated from: api.schema.json
+
+package com.github.copilot.sdk.generated.rpc;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import javax.annotation.processing.Generated;
+
+/**
+ * Indicates whether the credential update succeeded.
+ *
+ * @since 1.0.0
+ */
+@javax.annotation.processing.Generated("copilot-sdk-codegen")
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public record SessionAuthSetCredentialsResult(
+ /** Whether the operation succeeded */
+ @JsonProperty("success") Boolean success
+) {
+}
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsApi.java
index 351a2d14cd..7a142ecf99 100644
--- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsApi.java
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsApi.java
@@ -30,10 +30,37 @@ public final class SessionCommandsApi {
}
/**
- * Invokes {@code session.commands.handlePendingCommand}.
+ * Optional filters controlling which command sources to include in the listing.
+ *
+ * @apiNote This method is experimental and may change in a future version.
+ * @since 1.0.0
+ */
+ public CompletableFuture list() {
+ return caller.invoke("session.commands.list", java.util.Map.of("sessionId", this.sessionId), SessionCommandsListResult.class);
+ }
+
+ /**
+ * Slash command name and optional raw input string to invoke.
*
* Note: the {@code sessionId} field in the params record is overridden
* by the session-scoped wrapper; any value provided is ignored.
+ *
+ * @apiNote This method is experimental and may change in a future version.
+ * @since 1.0.0
+ */
+ public CompletableFuture invoke(SessionCommandsInvokeParams params) {
+ com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params);
+ _p.put("sessionId", this.sessionId);
+ return caller.invoke("session.commands.invoke", _p, Void.class);
+ }
+
+ /**
+ * Pending command request ID and an optional error if the client handler failed.
+ *
+ * Note: the {@code sessionId} field in the params record is overridden
+ * by the session-scoped wrapper; any value provided is ignored.
+ *
+ * @apiNote This method is experimental and may change in a future version.
* @since 1.0.0
*/
public CompletableFuture handlePendingCommand(SessionCommandsHandlePendingCommandParams params) {
@@ -42,4 +69,49 @@ public CompletableFuture handlePendin
return caller.invoke("session.commands.handlePendingCommand", _p, SessionCommandsHandlePendingCommandResult.class);
}
+ /**
+ * Slash command name and argument string to execute synchronously.
+ *
+ * Note: the {@code sessionId} field in the params record is overridden
+ * by the session-scoped wrapper; any value provided is ignored.
+ *
+ * @apiNote This method is experimental and may change in a future version.
+ * @since 1.0.0
+ */
+ public CompletableFuture execute(SessionCommandsExecuteParams params) {
+ com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params);
+ _p.put("sessionId", this.sessionId);
+ return caller.invoke("session.commands.execute", _p, SessionCommandsExecuteResult.class);
+ }
+
+ /**
+ * Slash-prefixed command string to enqueue for FIFO processing.
+ *
+ * Note: the {@code sessionId} field in the params record is overridden
+ * by the session-scoped wrapper; any value provided is ignored.
+ *
+ * @apiNote This method is experimental and may change in a future version.
+ * @since 1.0.0
+ */
+ public CompletableFuture enqueue(SessionCommandsEnqueueParams params) {
+ com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params);
+ _p.put("sessionId", this.sessionId);
+ return caller.invoke("session.commands.enqueue", _p, SessionCommandsEnqueueResult.class);
+ }
+
+ /**
+ * Queued-command request ID and the result indicating whether the host executed it (and whether to stop processing further queued commands).
+ *
+ * Note: the {@code sessionId} field in the params record is overridden
+ * by the session-scoped wrapper; any value provided is ignored.
+ *
+ * @apiNote This method is experimental and may change in a future version.
+ * @since 1.0.0
+ */
+ public CompletableFuture respondToQueuedCommand(SessionCommandsRespondToQueuedCommandParams params) {
+ com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params);
+ _p.put("sessionId", this.sessionId);
+ return caller.invoke("session.commands.respondToQueuedCommand", _p, SessionCommandsRespondToQueuedCommandResult.class);
+ }
+
}
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueParams.java
new file mode 100644
index 0000000000..6ca80d2511
--- /dev/null
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueParams.java
@@ -0,0 +1,29 @@
+/*---------------------------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ *--------------------------------------------------------------------------------------------*/
+
+// AUTO-GENERATED FILE - DO NOT EDIT
+// Generated from: api.schema.json
+
+package com.github.copilot.sdk.generated.rpc;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import javax.annotation.processing.Generated;
+
+/**
+ * Slash-prefixed command string to enqueue for FIFO processing.
+ *
+ * @since 1.0.0
+ */
+@javax.annotation.processing.Generated("copilot-sdk-codegen")
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public record SessionCommandsEnqueueParams(
+ /** Target session identifier */
+ @JsonProperty("sessionId") String sessionId,
+ /** Slash-prefixed command string to enqueue, e.g. '/compact' or '/model gpt-4'. Queued FIFO with any in-flight items; if the session is idle, processing kicks off immediately. */
+ @JsonProperty("command") String command
+) {
+}
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueResult.java
new file mode 100644
index 0000000000..e968e1df86
--- /dev/null
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsEnqueueResult.java
@@ -0,0 +1,27 @@
+/*---------------------------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ *--------------------------------------------------------------------------------------------*/
+
+// AUTO-GENERATED FILE - DO NOT EDIT
+// Generated from: api.schema.json
+
+package com.github.copilot.sdk.generated.rpc;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import javax.annotation.processing.Generated;
+
+/**
+ * Indicates whether the command was accepted into the local execution queue.
+ *
+ * @since 1.0.0
+ */
+@javax.annotation.processing.Generated("copilot-sdk-codegen")
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public record SessionCommandsEnqueueResult(
+ /** True when the command was accepted into the local execution queue. False when the call targets a session that does not support local command queueing (e.g. remote sessions). */
+ @JsonProperty("queued") Boolean queued
+) {
+}
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteParams.java
new file mode 100644
index 0000000000..1f1e73acbe
--- /dev/null
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteParams.java
@@ -0,0 +1,31 @@
+/*---------------------------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ *--------------------------------------------------------------------------------------------*/
+
+// AUTO-GENERATED FILE - DO NOT EDIT
+// Generated from: api.schema.json
+
+package com.github.copilot.sdk.generated.rpc;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import javax.annotation.processing.Generated;
+
+/**
+ * Slash command name and argument string to execute synchronously.
+ *
+ * @since 1.0.0
+ */
+@javax.annotation.processing.Generated("copilot-sdk-codegen")
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public record SessionCommandsExecuteParams(
+ /** Target session identifier */
+ @JsonProperty("sessionId") String sessionId,
+ /** Name of the slash command to invoke (without the leading '/'). */
+ @JsonProperty("commandName") String commandName,
+ /** Argument string to pass to the command (empty string if none). */
+ @JsonProperty("args") String args
+) {
+}
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteResult.java
new file mode 100644
index 0000000000..a03b08c661
--- /dev/null
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsExecuteResult.java
@@ -0,0 +1,27 @@
+/*---------------------------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ *--------------------------------------------------------------------------------------------*/
+
+// AUTO-GENERATED FILE - DO NOT EDIT
+// Generated from: api.schema.json
+
+package com.github.copilot.sdk.generated.rpc;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import javax.annotation.processing.Generated;
+
+/**
+ * Error message produced while executing the command, if any.
+ *
+ * @since 1.0.0
+ */
+@javax.annotation.processing.Generated("copilot-sdk-codegen")
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public record SessionCommandsExecuteResult(
+ /** Error message produced while executing the command, if any. Omitted when the handler succeeded. */
+ @JsonProperty("error") String error
+) {
+}
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandParams.java
index e14d29486c..e036870e1b 100644
--- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandParams.java
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandParams.java
@@ -13,7 +13,7 @@
import javax.annotation.processing.Generated;
/**
- * Request parameters for the {@code session.commands.handlePendingCommand} RPC method.
+ * Pending command request ID and an optional error if the client handler failed.
*
* @since 1.0.0
*/
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandResult.java
index 8c79beaaee..101714028c 100644
--- a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandResult.java
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsHandlePendingCommandResult.java
@@ -13,7 +13,7 @@
import javax.annotation.processing.Generated;
/**
- * Result for the {@code session.commands.handlePendingCommand} RPC method.
+ * Indicates whether the pending client-handled command was completed successfully.
*
* @since 1.0.0
*/
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsInvokeParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsInvokeParams.java
new file mode 100644
index 0000000000..ec35a5bb30
--- /dev/null
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsInvokeParams.java
@@ -0,0 +1,31 @@
+/*---------------------------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ *--------------------------------------------------------------------------------------------*/
+
+// AUTO-GENERATED FILE - DO NOT EDIT
+// Generated from: api.schema.json
+
+package com.github.copilot.sdk.generated.rpc;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import javax.annotation.processing.Generated;
+
+/**
+ * Slash command name and optional raw input string to invoke.
+ *
+ * @since 1.0.0
+ */
+@javax.annotation.processing.Generated("copilot-sdk-codegen")
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public record SessionCommandsInvokeParams(
+ /** Target session identifier */
+ @JsonProperty("sessionId") String sessionId,
+ /** Command name. Leading slashes are stripped and the name is matched case-insensitively. */
+ @JsonProperty("name") String name,
+ /** Raw input after the command name */
+ @JsonProperty("input") String input
+) {
+}
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListParams.java
new file mode 100644
index 0000000000..a1fa2728b1
--- /dev/null
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListParams.java
@@ -0,0 +1,27 @@
+/*---------------------------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ *--------------------------------------------------------------------------------------------*/
+
+// AUTO-GENERATED FILE - DO NOT EDIT
+// Generated from: api.schema.json
+
+package com.github.copilot.sdk.generated.rpc;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import javax.annotation.processing.Generated;
+
+/**
+ * Optional filters controlling which command sources to include in the listing.
+ *
+ * @since 1.0.0
+ */
+@javax.annotation.processing.Generated("copilot-sdk-codegen")
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public record SessionCommandsListParams(
+ /** Target session identifier */
+ @JsonProperty("sessionId") String sessionId
+) {
+}
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListResult.java
new file mode 100644
index 0000000000..aae276f6cb
--- /dev/null
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsListResult.java
@@ -0,0 +1,28 @@
+/*---------------------------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ *--------------------------------------------------------------------------------------------*/
+
+// AUTO-GENERATED FILE - DO NOT EDIT
+// Generated from: api.schema.json
+
+package com.github.copilot.sdk.generated.rpc;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import javax.annotation.processing.Generated;
+
+/**
+ * Slash commands available in the session, after applying any include/exclude filters.
+ *
+ * @since 1.0.0
+ */
+@javax.annotation.processing.Generated("copilot-sdk-codegen")
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public record SessionCommandsListResult(
+ /** Commands available in this session */
+ @JsonProperty("commands") List commands
+) {
+}
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandParams.java
new file mode 100644
index 0000000000..8eb5d2dbc0
--- /dev/null
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandParams.java
@@ -0,0 +1,31 @@
+/*---------------------------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ *--------------------------------------------------------------------------------------------*/
+
+// AUTO-GENERATED FILE - DO NOT EDIT
+// Generated from: api.schema.json
+
+package com.github.copilot.sdk.generated.rpc;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import javax.annotation.processing.Generated;
+
+/**
+ * Queued-command request ID and the result indicating whether the host executed it (and whether to stop processing further queued commands).
+ *
+ * @since 1.0.0
+ */
+@javax.annotation.processing.Generated("copilot-sdk-codegen")
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public record SessionCommandsRespondToQueuedCommandParams(
+ /** Target session identifier */
+ @JsonProperty("sessionId") String sessionId,
+ /** Request ID from the `command.queued` event the host is responding to. */
+ @JsonProperty("requestId") String requestId,
+ /** Result of the queued command execution. */
+ @JsonProperty("result") Object result
+) {
+}
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandResult.java
new file mode 100644
index 0000000000..3cf5a6de3e
--- /dev/null
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionCommandsRespondToQueuedCommandResult.java
@@ -0,0 +1,27 @@
+/*---------------------------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ *--------------------------------------------------------------------------------------------*/
+
+// AUTO-GENERATED FILE - DO NOT EDIT
+// Generated from: api.schema.json
+
+package com.github.copilot.sdk.generated.rpc;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import javax.annotation.processing.Generated;
+
+/**
+ * Indicates whether the queued-command response was matched to a pending request.
+ *
+ * @since 1.0.0
+ */
+@javax.annotation.processing.Generated("copilot-sdk-codegen")
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public record SessionCommandsRespondToQueuedCommandResult(
+ /** Whether a pending queued command with the given request ID was found and resolved. False when the request was already resolved, cancelled, or unknown. */
+ @JsonProperty("success") Boolean success
+) {
+}
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContext.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContext.java
new file mode 100644
index 0000000000..1a8c148bd4
--- /dev/null
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContext.java
@@ -0,0 +1,35 @@
+/*---------------------------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ *--------------------------------------------------------------------------------------------*/
+
+// AUTO-GENERATED FILE - DO NOT EDIT
+// Generated from: api.schema.json
+
+package com.github.copilot.sdk.generated.rpc;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import javax.annotation.processing.Generated;
+
+/**
+ * Schema for the `SessionContext` type.
+ *
+ * @since 1.0.0
+ */
+@javax.annotation.processing.Generated("copilot-sdk-codegen")
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public record SessionContext(
+ /** Most recent working directory for this session */
+ @JsonProperty("cwd") String cwd,
+ /** Git repository root, if the cwd was inside a git repo */
+ @JsonProperty("gitRoot") String gitRoot,
+ /** Repository slug in `owner/name` form, when known */
+ @JsonProperty("repository") String repository,
+ /** Repository host type */
+ @JsonProperty("hostType") SessionContextHostType hostType,
+ /** Active git branch */
+ @JsonProperty("branch") String branch
+) {
+}
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContextHostType.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContextHostType.java
new file mode 100644
index 0000000000..db0945e314
--- /dev/null
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionContextHostType.java
@@ -0,0 +1,35 @@
+/*---------------------------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ *--------------------------------------------------------------------------------------------*/
+
+// AUTO-GENERATED FILE - DO NOT EDIT
+// Generated from: api.schema.json
+
+package com.github.copilot.sdk.generated.rpc;
+
+import javax.annotation.processing.Generated;
+
+/**
+ * Repository host type
+ *
+ * @since 1.0.0
+ */
+@javax.annotation.processing.Generated("copilot-sdk-codegen")
+public enum SessionContextHostType {
+ /** The {@code github} variant. */
+ GITHUB("github"),
+ /** The {@code ado} variant. */
+ ADO("ado");
+
+ private final String value;
+ SessionContextHostType(String value) { this.value = value; }
+ @com.fasterxml.jackson.annotation.JsonValue
+ public String getValue() { return value; }
+ @com.fasterxml.jackson.annotation.JsonCreator
+ public static SessionContextHostType fromValue(String value) {
+ for (SessionContextHostType v : values()) {
+ if (v.value.equals(value)) return v;
+ }
+ throw new IllegalArgumentException("Unknown SessionContextHostType value: " + value);
+ }
+}
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogApi.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogApi.java
new file mode 100644
index 0000000000..58351e99a6
--- /dev/null
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogApi.java
@@ -0,0 +1,87 @@
+/*---------------------------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ *--------------------------------------------------------------------------------------------*/
+
+// AUTO-GENERATED FILE - DO NOT EDIT
+// Generated from: api.schema.json
+
+package com.github.copilot.sdk.generated.rpc;
+
+import java.util.concurrent.CompletableFuture;
+import javax.annotation.processing.Generated;
+
+/**
+ * API methods for the {@code eventLog} namespace.
+ *
+ * @since 1.0.0
+ */
+@javax.annotation.processing.Generated("copilot-sdk-codegen")
+public final class SessionEventLogApi {
+
+ private static final com.fasterxml.jackson.databind.ObjectMapper MAPPER = RpcMapper.INSTANCE;
+
+ private final RpcCaller caller;
+ private final String sessionId;
+
+ /** @param caller the RPC transport function */
+ SessionEventLogApi(RpcCaller caller, String sessionId) {
+ this.caller = caller;
+ this.sessionId = sessionId;
+ }
+
+ /**
+ * Cursor, batch size, and optional long-poll/filter parameters for reading session events.
+ *
+ * Note: the {@code sessionId} field in the params record is overridden
+ * by the session-scoped wrapper; any value provided is ignored.
+ *
+ * @apiNote This method is experimental and may change in a future version.
+ * @since 1.0.0
+ */
+ public CompletableFuture read(SessionEventLogReadParams params) {
+ com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params);
+ _p.put("sessionId", this.sessionId);
+ return caller.invoke("session.eventLog.read", _p, SessionEventLogReadResult.class);
+ }
+
+ /**
+ * Identifies the target session.
+ *
+ * @apiNote This method is experimental and may change in a future version.
+ * @since 1.0.0
+ */
+ public CompletableFuture tail() {
+ return caller.invoke("session.eventLog.tail", java.util.Map.of("sessionId", this.sessionId), SessionEventLogTailResult.class);
+ }
+
+ /**
+ * Event type to register consumer interest for, used by runtime gating logic.
+ *
+ * Note: the {@code sessionId} field in the params record is overridden
+ * by the session-scoped wrapper; any value provided is ignored.
+ *
+ * @apiNote This method is experimental and may change in a future version.
+ * @since 1.0.0
+ */
+ public CompletableFuture registerInterest(SessionEventLogRegisterInterestParams params) {
+ com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params);
+ _p.put("sessionId", this.sessionId);
+ return caller.invoke("session.eventLog.registerInterest", _p, SessionEventLogRegisterInterestResult.class);
+ }
+
+ /**
+ * Opaque handle previously returned by `registerInterest` to release.
+ *
+ * Note: the {@code sessionId} field in the params record is overridden
+ * by the session-scoped wrapper; any value provided is ignored.
+ *
+ * @apiNote This method is experimental and may change in a future version.
+ * @since 1.0.0
+ */
+ public CompletableFuture releaseInterest(SessionEventLogReleaseInterestParams params) {
+ com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params);
+ _p.put("sessionId", this.sessionId);
+ return caller.invoke("session.eventLog.releaseInterest", _p, SessionEventLogReleaseInterestResult.class);
+ }
+
+}
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadParams.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadParams.java
new file mode 100644
index 0000000000..cad49d4525
--- /dev/null
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadParams.java
@@ -0,0 +1,37 @@
+/*---------------------------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ *--------------------------------------------------------------------------------------------*/
+
+// AUTO-GENERATED FILE - DO NOT EDIT
+// Generated from: api.schema.json
+
+package com.github.copilot.sdk.generated.rpc;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import javax.annotation.processing.Generated;
+
+/**
+ * Cursor, batch size, and optional long-poll/filter parameters for reading session events.
+ *
+ * @since 1.0.0
+ */
+@javax.annotation.processing.Generated("copilot-sdk-codegen")
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public record SessionEventLogReadParams(
+ /** Target session identifier */
+ @JsonProperty("sessionId") String sessionId,
+ /** Opaque cursor returned by a previous read. Omit on the first call to start from the beginning of the session's persisted history. */
+ @JsonProperty("cursor") String cursor,
+ /** Maximum number of events to return in this batch (1โ1000, default 200). */
+ @JsonProperty("max") Long max,
+ /** Milliseconds to wait for new events when the cursor is at the tail of history. 0 (default) returns immediately even if no events are available. Capped at 30000ms. Ephemeral events that arrive during the wait are delivered in this batch but are NOT replayable on a subsequent read (use a non-zero waitMs in your next call to capture future ephemerals as they happen). */
+ @JsonProperty("waitMs") Long waitMs,
+ /** Either '*' to receive all event types, or a non-empty list of event types to receive */
+ @JsonProperty("types") Object types,
+ /** Agent-scope filter: 'primary' returns only main-agent events plus events whose type starts with 'subagent.' (matching the typed-subscription default behavior); 'all' returns events from all agents (matching wildcard-subscription behavior). Default is 'all' to preserve wildcard semantics for catch-up callers. */
+ @JsonProperty("agentScope") EventsAgentScope agentScope
+) {
+}
diff --git a/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadResult.java b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadResult.java
new file mode 100644
index 0000000000..725a767926
--- /dev/null
+++ b/src/generated/java/com/github/copilot/sdk/generated/rpc/SessionEventLogReadResult.java
@@ -0,0 +1,34 @@
+/*---------------------------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ *--------------------------------------------------------------------------------------------*/
+
+// AUTO-GENERATED FILE - DO NOT EDIT
+// Generated from: api.schema.json
+
+package com.github.copilot.sdk.generated.rpc;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import javax.annotation.processing.Generated;
+
+/**
+ * Batch of session events returned by a read, with cursor and continuation metadata.
+ *
+ * @since 1.0.0
+ */
+@javax.annotation.processing.Generated("copilot-sdk-codegen")
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonIgnoreProperties(ignoreUnknown = true)
+public record SessionEventLogReadResult(
+ /** Events are delivered in two batches per read: persisted events first (in append order), then ephemeral events (in seq order). When `waitMs > 0` and the catch-up batches were empty, post-wait events follow the same two-batch ordering. Persisted and ephemeral events do not interleave within a single read. */
+ @JsonProperty("events") List