Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
646 changes: 348 additions & 298 deletions dotnet/src/Generated/Rpc.cs

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion dotnet/src/Generated/SessionEvents.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 63 additions & 5 deletions go/rpc/zrpc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions go/rpc/zsession_events.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions go/zsession_events.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import javax.annotation.processing.Generated;

/**
* Routing preference used when the session model is `auto`.
* Routing preference used when the session model is `auto`. `fast` is an integrator-only latency preset and is not a first-party GitHub Copilot product preference.
*
* @since 1.0.0
*/
Expand All @@ -21,7 +21,9 @@ public enum AutoTier {
/** The {@code balance} variant. */
BALANCE("balance"),
/** The {@code intelligence} variant. */
INTELLIGENCE("intelligence");
INTELLIGENCE("intelligence"),
/** The {@code fast} variant. */
FAST("fast");

private final String value;
AutoTier(String value) { this.value = value; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public record CustomAgentsUpdatedAgent(
@JsonProperty("tools") List<String> tools,
/** Whether the agent can be selected by the user */
@JsonProperty("userInvocable") Boolean userInvocable,
/** Whether model-driven invocation is disabled for this agent. */
@JsonProperty("disableModelInvocation") Boolean disableModelInvocation,
/** Model override for this agent, if set */
@JsonProperty("model") String model,
/** Authored model ids in priority order, if configured */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public record AgentInfo(
@JsonProperty("source") AgentInfoSource source,
/** Whether the agent can be selected directly by the user. Agents marked `false` are subagent-only. */
@JsonProperty("userInvocable") Boolean userInvocable,
/** Whether model-driven invocation is disabled for this agent. */
@JsonProperty("disableModelInvocation") Boolean disableModelInvocation,
/** Allowed tool names for this agent. Empty array means none; omitted means inherit defaults. */
@JsonProperty("tools") List<String> tools,
/** Authored preferred model id for this agent. Runtime model selection may choose a different model; omitted means no authored preference. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import javax.annotation.processing.Generated;

/**
* Routing preference used when the session model is `auto`.
* Routing preference used when the session model is `auto`. `fast` is an integrator-only latency preset and is not a first-party GitHub Copilot product preference.
*
* @since 1.0.0
*/
Expand All @@ -21,7 +21,9 @@ public enum AutoTier {
/** The {@code balance} variant. */
BALANCE("balance"),
/** The {@code intelligence} variant. */
INTELLIGENCE("intelligence");
INTELLIGENCE("intelligence"),
/** The {@code fast} variant. */
FAST("fast");

private final String value;
AutoTier(String value) { this.value = value; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public record CapiSessionOptions(
/** Routing preference for sessions whose model is `auto`. On create or cold resume, this establishes the preference sent as `tier` on CAPI `/auto` requests; when omitted on cold resume, the runtime restores the last committed preference. On resident resume, a different value requests a safe switch after resume succeeds and cannot change an in-flight turn. Successful switches are persisted for later cold resume. When no preference is supplied or restored, CAPI default routing is used. */
/** Routing preference for sessions whose model is `auto`. On create or cold resume, this establishes the preference sent as `tier` on CAPI `/auto` requests; when omitted on cold resume, the runtime restores the last committed preference. On resident resume, a different value requests a safe switch after resume succeeds and cannot change an in-flight turn. Successful switches are persisted for later cold resume. When no preference is supplied or restored, CAPI default routing is used. `fast` is an integrator-only latency preset, not a first-party GitHub Copilot product preference. */
@JsonProperty("autoTier") AutoTier autoTier,
/** Whether to use WebSocket transport for the CAPI Responses API. Enabled by default when the model advertises `ws:/responses` support; set to `false` to force the HTTP Responses transport in environments where WebSockets are blocked (e.g. behind a proxy). Setting this to `false` is equivalent to the `COPILOT_CLI_DISABLE_WEBSOCKET_RESPONSES` environment variable. */
@JsonProperty("enableWebSocketResponses") Boolean enableWebSocketResponses
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ public record FactoryAgentOptions(
@JsonProperty("schema") Object schema,
/** Optional model identifier for the subagent. */
@JsonProperty("model") String model,
/** Optional reasoning effort for the subagent. This field is accepted but not yet honored. */
/** Optional reasoning effort override for the subagent. */
@JsonProperty("reasoningEffort") String reasoningEffort,
/** Optional context tier for the subagent. This field is accepted but not yet honored. */
/** Optional context tier override for the subagent. */
@JsonProperty("contextTier") ContextTier contextTier,
/** Optional custom agent name for the subagent. This field is accepted but not yet honored. */
/** Optional built-in or custom agent name whose definition configures the subagent. */
@JsonProperty("agent") String agent
) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
@javax.annotation.processing.Generated("copilot-sdk-codegen")
public final class SessionSandboxApi {

private static final com.fasterxml.jackson.databind.ObjectMapper MAPPER = RpcMapper.INSTANCE;

private final RpcCaller caller;
private final String sessionId;

Expand All @@ -39,4 +41,20 @@ public CompletableFuture<SessionSandboxGetEnforcementStatusResult> getEnforcemen
return caller.invoke("session.sandbox.getEnforcementStatus", java.util.Map.of("sessionId", this.sessionId), SessionSandboxGetEnforcementStatusResult.class);
}

/**
* Request to disable sandboxing for the current session while resolving an active sandbox-bypass permission prompt.
* <p>
* 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
*/
@CopilotExperimental
public CompletableFuture<SessionSandboxDisableForSessionResult> disableForSession(SessionSandboxDisableForSessionParams params) {
com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params);
_p.put("sessionId", this.sessionId);
return caller.invoke("session.sandbox.disableForSession", _p, SessionSandboxDisableForSessionResult.class);
}

}
Original file line number Diff line number Diff line change
@@ -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.generated.rpc;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.copilot.CopilotExperimental;
import javax.annotation.processing.Generated;

/**
* Request to disable sandboxing for the current session while resolving an active sandbox-bypass permission prompt.
*
* @apiNote This method is experimental and may change in a future version.
* @since 1.0.0
*/
@CopilotExperimental
@javax.annotation.processing.Generated("copilot-sdk-codegen")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public record SessionSandboxDisableForSessionParams(
/** Target session identifier */
@JsonProperty("sessionId") String sessionId,
/** Identifier of the exact pending sandbox-bypass permission request that authorized the session opt-out. */
@JsonProperty("requestId") String requestId,
/** Optional attribution for the permission decision. */
@JsonProperty("decisionContext") PermissionDecisionContext decisionContext
) {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------------------------------------------*/

// AUTO-GENERATED FILE - DO NOT EDIT
// Generated from: api.schema.json

package com.github.copilot.generated.rpc;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.copilot.CopilotExperimental;
import javax.annotation.processing.Generated;

/**
* Result of attempting to disable sandboxing for the current session.
*
* @apiNote This method is experimental and may change in a future version.
* @since 1.0.0
*/
@CopilotExperimental
@javax.annotation.processing.Generated("copilot-sdk-codegen")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public record SessionSandboxDisableForSessionResult(
/** Whether this call resolved the pending request and applied the session opt-out. */
@JsonProperty("success") Boolean success,
/** The authoritative sandbox enabled state after the operation. */
@JsonProperty("enabled") Boolean enabled
) {
}
2 changes: 1 addition & 1 deletion nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"url": "https://github.com/github/copilot-sdk.git"
},
"version": "0.0.0-dev",
"copilotCliVersion": "1.0.83",
"copilotCliVersion": "1.0.84-1",
"description": "TypeScript SDK for programmatic control of GitHub Copilot CLI via JSON-RPC",
"main": "./dist/cjs/index.js",
"types": "./dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion nodejs/src/cliVersion.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const COPILOT_CLI_VERSION = "1.0.83";
export const COPILOT_CLI_VERSION = "1.0.84-1";

export const COPILOT_CLI_USE_NPM_PACKAGE = false;
Loading
Loading