@github/copilot-sdk 1.0.24-preview.0 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/cliVersion.js +1 -1
- package/dist/cjs/client.js +2 -0
- package/dist/cliVersion.d.ts +1 -1
- package/dist/cliVersion.js +1 -1
- package/dist/client.js +2 -0
- package/dist/generated/rpc.d.ts +19 -11
- package/dist/generated/session-events.d.ts +18 -0
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +10 -2
- package/package.json +12 -12
package/dist/cjs/cliVersion.js
CHANGED
|
@@ -22,7 +22,7 @@ __export(cliVersion_exports, {
|
|
|
22
22
|
COPILOT_CLI_VERSION: () => COPILOT_CLI_VERSION
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(cliVersion_exports);
|
|
25
|
-
const COPILOT_CLI_VERSION = "1.0.101
|
|
25
|
+
const COPILOT_CLI_VERSION = "1.0.101";
|
|
26
26
|
const COPILOT_CLI_USE_NPM_PACKAGE = false;
|
|
27
27
|
// Annotate the CommonJS export names for ESM import in node:
|
|
28
28
|
0 && (module.exports = {
|
package/dist/cjs/client.js
CHANGED
|
@@ -1403,6 +1403,7 @@ class CopilotClient {
|
|
|
1403
1403
|
instructionDirectories: config.instructionDirectories,
|
|
1404
1404
|
disabledSkills: config.disabledSkills,
|
|
1405
1405
|
disabledMcpServers: config.disabledMcpServers,
|
|
1406
|
+
sandboxConfig: config.sandboxConfig,
|
|
1406
1407
|
infiniteSessions: config.infiniteSessions,
|
|
1407
1408
|
memory: config.memory,
|
|
1408
1409
|
gitHubToken: config.gitHubToken,
|
|
@@ -1675,6 +1676,7 @@ class CopilotClient {
|
|
|
1675
1676
|
instructionDirectories: config.instructionDirectories,
|
|
1676
1677
|
disabledSkills: config.disabledSkills,
|
|
1677
1678
|
disabledMcpServers: config.disabledMcpServers,
|
|
1679
|
+
sandboxConfig: config.sandboxConfig,
|
|
1678
1680
|
infiniteSessions: config.infiniteSessions,
|
|
1679
1681
|
memory: config.memory,
|
|
1680
1682
|
disableResume: config.suppressResumeEvent,
|
package/dist/cliVersion.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const COPILOT_CLI_VERSION = "1.0.101
|
|
1
|
+
export declare const COPILOT_CLI_VERSION = "1.0.101";
|
|
2
2
|
export declare const COPILOT_CLI_USE_NPM_PACKAGE = false;
|
package/dist/cliVersion.js
CHANGED
package/dist/client.js
CHANGED
|
@@ -1383,6 +1383,7 @@ class CopilotClient {
|
|
|
1383
1383
|
instructionDirectories: config.instructionDirectories,
|
|
1384
1384
|
disabledSkills: config.disabledSkills,
|
|
1385
1385
|
disabledMcpServers: config.disabledMcpServers,
|
|
1386
|
+
sandboxConfig: config.sandboxConfig,
|
|
1386
1387
|
infiniteSessions: config.infiniteSessions,
|
|
1387
1388
|
memory: config.memory,
|
|
1388
1389
|
gitHubToken: config.gitHubToken,
|
|
@@ -1655,6 +1656,7 @@ class CopilotClient {
|
|
|
1655
1656
|
instructionDirectories: config.instructionDirectories,
|
|
1656
1657
|
disabledSkills: config.disabledSkills,
|
|
1657
1658
|
disabledMcpServers: config.disabledMcpServers,
|
|
1659
|
+
sandboxConfig: config.sandboxConfig,
|
|
1658
1660
|
infiniteSessions: config.infiniteSessions,
|
|
1659
1661
|
memory: config.memory,
|
|
1660
1662
|
disableResume: config.suppressResumeEvent,
|
package/dist/generated/rpc.d.ts
CHANGED
|
@@ -2994,18 +2994,18 @@ export type SessionLogLevel =
|
|
|
2994
2994
|
/** Error message describing a failure. */
|
|
2995
2995
|
| "error";
|
|
2996
2996
|
/**
|
|
2997
|
-
* Administrator-configured
|
|
2997
|
+
* Administrator-configured Fusion preference, independent of execution support.
|
|
2998
2998
|
*
|
|
2999
2999
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
3000
|
-
* via the `definition` "
|
|
3000
|
+
* via the `definition` "ManagedFusionTier".
|
|
3001
3001
|
*/
|
|
3002
3002
|
/** @experimental */
|
|
3003
|
-
export type
|
|
3004
|
-
/** Balance
|
|
3005
|
-
"
|
|
3006
|
-
/**
|
|
3003
|
+
export type ManagedFusionTier =
|
|
3004
|
+
/** Use Auto Balance to balance capability, speed, and cost. */
|
|
3005
|
+
"standard"
|
|
3006
|
+
/** Use HydraFusion, falling back to Auto Intelligence when unavailable. */
|
|
3007
3007
|
| "high"
|
|
3008
|
-
/**
|
|
3008
|
+
/** Use HydraFusion Max to prioritize quality. */
|
|
3009
3009
|
| "max"
|
|
3010
3010
|
/** Leave tier selection unmanaged without falling back to legacy Auto policy. */
|
|
3011
3011
|
| "unmanaged";
|
|
@@ -8308,9 +8308,13 @@ export interface AutoTierDescriptor {
|
|
|
8308
8308
|
*/
|
|
8309
8309
|
description: string;
|
|
8310
8310
|
/**
|
|
8311
|
-
* Execution kind;
|
|
8311
|
+
* Execution kind; supported preferences use `auto` or the runtime's `fusion` modes.
|
|
8312
8312
|
*/
|
|
8313
8313
|
type: string;
|
|
8314
|
+
/**
|
|
8315
|
+
* Runtime-owned managed Fusion tier represented by this execution descriptor, if any.
|
|
8316
|
+
*/
|
|
8317
|
+
fusionTier?: string;
|
|
8314
8318
|
status: AutoTierStatus;
|
|
8315
8319
|
billing?: AutoTierBilling;
|
|
8316
8320
|
}
|
|
@@ -15772,7 +15776,7 @@ export interface ManagedSettingsValues {
|
|
|
15772
15776
|
*/
|
|
15773
15777
|
model?: string;
|
|
15774
15778
|
autoTier?: AutoTier;
|
|
15775
|
-
|
|
15779
|
+
fusionTier?: ManagedFusionTier;
|
|
15776
15780
|
/**
|
|
15777
15781
|
* Managed reasoning-effort default for the managed concrete model. The runtime clamps it to an entitled effort when model availability is known.
|
|
15778
15782
|
*/
|
|
@@ -15789,7 +15793,7 @@ export interface ManagedSettingsValues {
|
|
|
15789
15793
|
export interface ManagedSettingsMeta {
|
|
15790
15794
|
model?: ManagedSettingMeta;
|
|
15791
15795
|
autoTier?: ManagedSettingMeta;
|
|
15792
|
-
|
|
15796
|
+
fusionTier?: ManagedSettingMeta;
|
|
15793
15797
|
effortLevel?: ManagedSettingMeta;
|
|
15794
15798
|
contextTier?: ManagedSettingMeta;
|
|
15795
15799
|
}
|
|
@@ -19778,7 +19782,7 @@ export interface ModelSwitchToRequest {
|
|
|
19778
19782
|
*/
|
|
19779
19783
|
compactionDecision?: string;
|
|
19780
19784
|
/**
|
|
19781
|
-
* When true, evaluate context-window compaction policy before applying the switch.
|
|
19785
|
+
* When true, evaluate context-window compaction policy before applying the switch, including effort-only and unchanged selections while idle. An effort-only change applies immediately without compaction when a turn is active, including when the turn starts during preflight; an explicit `compactionDecision: "cancel"` still cancels the change. Other switches retain preflight and may be deferred until the active turn ends.
|
|
19782
19786
|
*/
|
|
19783
19787
|
runCompactionPreflight?: boolean;
|
|
19784
19788
|
/**
|
|
@@ -20814,6 +20818,10 @@ export interface PermissionDecisionContext {
|
|
|
20814
20818
|
source: PermissionDecisionSource;
|
|
20815
20819
|
surface: PermissionDecisionSurface;
|
|
20816
20820
|
responseCapability?: PermissionResponseCapability;
|
|
20821
|
+
/**
|
|
20822
|
+
* Optional user-authored explanation of this decision, independent of approval scope. Collected only in restricted telemetry for accepted human responses to Assisted Permissions prompts. Never persisted in session history, sent to the agent or judge, or used to create approval rules. Existing rejection feedback is separate.
|
|
20823
|
+
*/
|
|
20824
|
+
userFeedback?: string;
|
|
20817
20825
|
}
|
|
20818
20826
|
/**
|
|
20819
20827
|
* Pending permission request ID and the decision to apply (approve/reject and scope).
|
|
@@ -4766,6 +4766,12 @@ export interface FusionCompletedEvent {
|
|
|
4766
4766
|
*/
|
|
4767
4767
|
/** @experimental */
|
|
4768
4768
|
export interface FusionCompletedData {
|
|
4769
|
+
/**
|
|
4770
|
+
* True when the committed first pass ended with background work outstanding, so that work's completion notifications continue the conversation; absent otherwise.
|
|
4771
|
+
*
|
|
4772
|
+
* @experimental
|
|
4773
|
+
*/
|
|
4774
|
+
awaitingBackgroundWork?: boolean;
|
|
4769
4775
|
/**
|
|
4770
4776
|
* Total cached input tokens reported across all phases.
|
|
4771
4777
|
*/
|
|
@@ -5679,6 +5685,12 @@ export interface FusionPhaseCompletedData {
|
|
|
5679
5685
|
* Elapsed execution time for the phase in milliseconds.
|
|
5680
5686
|
*/
|
|
5681
5687
|
durationMs: number;
|
|
5688
|
+
/**
|
|
5689
|
+
* True when a first pass (Cascade primary or Critique draft) ended with background work outstanding, whether or not the turn then committed it without review; absent otherwise.
|
|
5690
|
+
*
|
|
5691
|
+
* @experimental
|
|
5692
|
+
*/
|
|
5693
|
+
endedWithBackgroundWork?: boolean;
|
|
5682
5694
|
/**
|
|
5683
5695
|
* Identifier of the HydraFusion turn containing the phase.
|
|
5684
5696
|
*/
|
|
@@ -9753,6 +9765,10 @@ export interface PermissionRequestMemory {
|
|
|
9753
9765
|
/** @experimental */
|
|
9754
9766
|
export interface PermissionAssistedApproval {
|
|
9755
9767
|
evaluation?: PermissionApprovalEvaluation;
|
|
9768
|
+
/**
|
|
9769
|
+
* Runtime-generated correlation ID for the original judge invocation. Cached recommendations retain it. Absent when review was skipped or the event predates correlation support; never part of the judge prompt.
|
|
9770
|
+
*/
|
|
9771
|
+
evaluationId?: string;
|
|
9756
9772
|
failureReason?: AssistedApprovalJudgeFailureReason;
|
|
9757
9773
|
/**
|
|
9758
9774
|
* Model id that produced the recommendation, when the judge was consulted and reported one. Absent for `excluded` (the judge was not consulted) and for failures that occurred before a model was selected.
|
|
@@ -9810,6 +9826,8 @@ export interface PermissionApprovalEvaluation {
|
|
|
9810
9826
|
| "authorization-history-incomplete"
|
|
9811
9827
|
/** Managed policy required a human decision. */
|
|
9812
9828
|
| "managed-approval-required"
|
|
9829
|
+
/** An extension capability grant required explicit user consent. */
|
|
9830
|
+
| "extension-permission-access"
|
|
9813
9831
|
/** The request asked to bypass sandbox restrictions. */
|
|
9814
9832
|
| "sandbox-bypass"
|
|
9815
9833
|
/** An action field exceeded the judge input limit. */
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* JSON-RPC based SDK for programmatic control of GitHub Copilot CLI
|
|
5
5
|
*/
|
|
6
6
|
export { CopilotClient } from "./client.js";
|
|
7
|
-
export type { HostLocalServerOptions, HostGitHubEnvironmentOptions, ModelGetReasoningSummariesRequest, ModelGetReasoningSummariesResult, } from "./generated/rpc.js";
|
|
7
|
+
export type { HostLocalServerOptions, HostGitHubEnvironmentOptions, ModelGetReasoningSummariesRequest, ModelGetReasoningSummariesResult, SandboxConfig, } from "./generated/rpc.js";
|
|
8
8
|
export { AhpHost, type AhpHostExit, type AhpHostOptions, type AhpSessionCreateRequest, type AhpSessionResumeRequest, } from "./host.js";
|
|
9
9
|
export { DisableBypassPermissionsModes, RuntimeConnection } from "./types.js";
|
|
10
10
|
export { BuiltInTools, ToolSet } from "./toolSet.js";
|
package/dist/types.d.ts
CHANGED
|
@@ -9,11 +9,11 @@ export type { InstallationConfirmationHandler } from "./installationConfirmation
|
|
|
9
9
|
import type { AgentModelPolicy, AttachmentExtensionContext as GeneratedExtensionContextAttachment, AutoTier, PermissionRequest as GeneratedPermissionRequest, PermissionRequestedData as GeneratedPermissionRequestedData, PermissionRequestedEvent as GeneratedPermissionRequestedEvent, ReasoningSummary, SessionLimitsConfig, SessionEvent as GeneratedSessionEvent } from "./generated/session-events.js";
|
|
10
10
|
import type { CopilotSession } from "./session.js";
|
|
11
11
|
import type { JsonValue } from "./workflow.js";
|
|
12
|
-
import type { ExtensionLaunchProviderHandler as GeneratedExtensionLaunchProvider, GitHubTokenAcquireRequest, GitHubTokenAcquireResult, GitHubTelemetryNotification, ModelBillingTokenPrices, DiagnosticsConfiguration, OpenCanvasInstance, ProtocolExternalToolNamespace, RemoteSessionMode, CurrentToolMetadata } from "./generated/rpc.js";
|
|
12
|
+
import type { ExtensionLaunchProviderHandler as GeneratedExtensionLaunchProvider, GitHubTokenAcquireRequest, GitHubTokenAcquireResult, GitHubTelemetryNotification, ModelBillingTokenPrices, DiagnosticsConfiguration, OpenCanvasInstance, ProtocolExternalToolNamespace, RemoteSessionMode, CurrentToolMetadata, SandboxConfig } from "./generated/rpc.js";
|
|
13
13
|
import type { ToolSet } from "./toolSet.js";
|
|
14
14
|
export type { RemoteSessionMode } from "./generated/rpc.js";
|
|
15
15
|
export type { CurrentToolMetadata } from "./generated/rpc.js";
|
|
16
|
-
export type { SandboxConfigSource } from "./generated/rpc.js";
|
|
16
|
+
export type { SandboxConfig, SandboxConfigSource } from "./generated/rpc.js";
|
|
17
17
|
export type { AuthIdentityMetadata, AuthInfoType, ConnectorAccountRequest, ConnectorAvailability, ConnectorCapabilities, ConnectorCatalogEntry, ConnectorCatalogResult, ConnectorCatalogStatus, ConnectorConnectRequest, ConnectorConnectResult, ConnectorContinueRequest, ConnectorDisconnectResult, ConnectorMcpStatus, ConnectorReconcileRequest, ConnectorRuntimeStatus, ConnectorSessionAccount, ConnectorSessionAccountResult, ConnectorStatus, ExtensionLaunchProfile, ExtensionLaunchProviderResolveRequest, ExtensionLaunchProviderResolveResult, GitHubTokenAcquireReason, GitHubTokenAcquireResult, GitHubTelemetryNotification, GitHubTelemetryEvent, GitHubTelemetryClientInfo, InstallationConfirmationRequest, InstallationConfirmationResponse, InstallationDecision, InstallationReview, McpInstallationReview, } from "./generated/rpc.js";
|
|
18
18
|
/**
|
|
19
19
|
* Arguments passed to a session's {@link GitHubTokenProvider}.
|
|
@@ -2561,6 +2561,14 @@ export interface SessionConfigBase {
|
|
|
2561
2561
|
* this on a resident resume cannot stop servers that are already running.
|
|
2562
2562
|
*/
|
|
2563
2563
|
disabledMcpServers?: string[];
|
|
2564
|
+
/**
|
|
2565
|
+
* Sandbox configuration applied before MCP servers or session tools start.
|
|
2566
|
+
* Uses the same direct-host semantics and managed-policy validation as
|
|
2567
|
+
* `session.rpc.options.update({ sandboxConfig })`. A policy conflict fails
|
|
2568
|
+
* create or resume; an identical later update does not restart MCP servers.
|
|
2569
|
+
* Re-supply on cold resume. Requires runtime-version support.
|
|
2570
|
+
*/
|
|
2571
|
+
sandboxConfig?: SandboxConfig;
|
|
2564
2572
|
/**
|
|
2565
2573
|
* Infinite session configuration for persistent workspaces and automatic compaction.
|
|
2566
2574
|
* When enabled (default), sessions automatically manage context limits and persist state.
|
package/package.json
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"url": "https://github.com/github/copilot-agent-runtime.git",
|
|
6
6
|
"directory": "src/sdk/nodejs"
|
|
7
7
|
},
|
|
8
|
-
"version": "1.0.24
|
|
9
|
-
"copilotCliVersion": "1.0.101
|
|
8
|
+
"version": "1.0.24",
|
|
9
|
+
"copilotCliVersion": "1.0.101",
|
|
10
10
|
"description": "TypeScript SDK for programmatic control of GitHub Copilot CLI via JSON-RPC",
|
|
11
11
|
"main": "./dist/cjs/index.js",
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
@@ -114,18 +114,18 @@
|
|
|
114
114
|
"README.md"
|
|
115
115
|
],
|
|
116
116
|
"copilotRuntime": {
|
|
117
|
-
"sourceSha": "
|
|
118
|
-
"version": "1.0.101
|
|
117
|
+
"sourceSha": "01c5befcd0b26b1b4b0a7fce219cf441b8ae2ae1",
|
|
118
|
+
"version": "1.0.101",
|
|
119
119
|
"visibility": "public"
|
|
120
120
|
},
|
|
121
121
|
"optionalDependencies": {
|
|
122
|
-
"@github/copilot-sdk-darwin-arm64": "1.0.24
|
|
123
|
-
"@github/copilot-sdk-darwin-x64": "1.0.24
|
|
124
|
-
"@github/copilot-sdk-linux-arm64": "1.0.24
|
|
125
|
-
"@github/copilot-sdk-linux-x64": "1.0.24
|
|
126
|
-
"@github/copilot-sdk-linuxmusl-arm64": "1.0.24
|
|
127
|
-
"@github/copilot-sdk-linuxmusl-x64": "1.0.24
|
|
128
|
-
"@github/copilot-sdk-win32-arm64": "1.0.24
|
|
129
|
-
"@github/copilot-sdk-win32-x64": "1.0.24
|
|
122
|
+
"@github/copilot-sdk-darwin-arm64": "1.0.24",
|
|
123
|
+
"@github/copilot-sdk-darwin-x64": "1.0.24",
|
|
124
|
+
"@github/copilot-sdk-linux-arm64": "1.0.24",
|
|
125
|
+
"@github/copilot-sdk-linux-x64": "1.0.24",
|
|
126
|
+
"@github/copilot-sdk-linuxmusl-arm64": "1.0.24",
|
|
127
|
+
"@github/copilot-sdk-linuxmusl-x64": "1.0.24",
|
|
128
|
+
"@github/copilot-sdk-win32-arm64": "1.0.24",
|
|
129
|
+
"@github/copilot-sdk-win32-x64": "1.0.24"
|
|
130
130
|
}
|
|
131
131
|
}
|