@github/copilot-sdk 1.0.14-unstable.35049111350.g7f86a90 → 1.0.14

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/README.md CHANGED
@@ -151,7 +151,7 @@ Create a new conversation session.
151
151
 
152
152
  - `sessionId?: string` - Custom session ID.
153
153
  - `model?: string` - Model to use ("gpt-5", "claude-sonnet-4.5", etc.). **Required when using custom provider.**
154
- - `capi?: CapiSessionOptions` - Copilot API options. With `model: "auto"`, set `autoTier` to `"efficiency"`, `"balance"`, or `"intelligence"` to choose a routing preference. Requires a runtime with Auto tier support and V2 Auto routing. Omission preserves default behavior. See [Auto tier persistence](../docs/features/session-persistence.md#auto-tier-persistence) for resume semantics.
154
+ - `capi?: CapiSessionOptions` - Copilot API options. With `model: "auto"`, set `autoTier` to `"efficiency"`, `"balance"`, `"intelligence"`, or `"fast"` to choose a routing preference. `"fast"` is an integrator-only latency preset, not a first-party GitHub Copilot product preference. Requires a runtime with Auto tier support and V2 Auto routing. Omission preserves default behavior. See [Auto tier persistence](../docs/features/session-persistence.md#auto-tier-persistence) for resume semantics.
155
155
  - `reasoningEffort?: "low" | "medium" | "high" | "xhigh" | "max"` - Reasoning effort level for models that support it. Use `listModels()` to check which models support this option.
156
156
  - `tools?: Tool[]` - Custom tools exposed to the CLI. Tools without `handler` are declaration-only and must be resolved via pending tool-call RPCs.
157
157
  - `systemMessage?: SystemMessageConfig` - System message customization (see below)
@@ -354,7 +354,7 @@ Change the Auto routing preference without changing the selected model. Pass `nu
354
354
 
355
355
  The runtime does not apply the preference immediately. It records the request and commits it only when a later user turn using the `auto` model successfully obtains a usable model from the provider, so a `pending` status confirms acceptance rather than effect. Only the most recent request survives.
356
356
 
357
- Watch for the outcome through the `session.model_change` event on success or the ephemeral `session.auto_tier_switch_failed` event on failure, and read the authoritative state at any time with `session.rpc.model.getCurrent()`.
357
+ Watch for the outcome through the `session.model_change` event on success or the ephemeral `session.auto_tier_switch_failed` event on failure. A failed activation leaves the incumbent effective tier unchanged. Read the authoritative state at any time with `session.rpc.model.getCurrent()`.
358
358
 
359
359
  ```typescript
360
360
  const result = await session.setAutoTier("intelligence");
@@ -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.84-9.unstable.r35045926061.g4848e94";
25
+ const COPILOT_CLI_VERSION = "1.0.85";
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 = {
@@ -1,2 +1,2 @@
1
- export declare const COPILOT_CLI_VERSION = "1.0.84-9.unstable.r35045926061.g4848e94";
1
+ export declare const COPILOT_CLI_VERSION = "1.0.85";
2
2
  export declare const COPILOT_CLI_USE_NPM_PACKAGE = false;
@@ -1,4 +1,4 @@
1
- const COPILOT_CLI_VERSION = "1.0.84-9.unstable.r35045926061.g4848e94";
1
+ const COPILOT_CLI_VERSION = "1.0.85";
2
2
  const COPILOT_CLI_USE_NPM_PACKAGE = false;
3
3
  export {
4
4
  COPILOT_CLI_USE_NPM_PACKAGE,
@@ -9,7 +9,7 @@ export type JsonValue = null | boolean | number | string | JsonValue[] | {
9
9
  /**
10
10
  * Union of all session event variants emitted by the Copilot CLI runtime.
11
11
  */
12
- export type SessionEvent = StartEvent | ResumeEvent | RemoteSteerableChangedEvent | ErrorEvent | IdleEvent | TitleChangedEvent | ScheduleCreatedEvent | ScheduleCancelledEvent | ScheduleRearmedEvent | AutopilotObjectiveChangedEvent | InfoEvent | WarningEvent | ModelChangeEvent | AutoTierRecommendationEvent | AutoTierSwitchFailedEvent | ModeChangedEvent | ModeNoticeDeliveredEvent | SessionLimitsChangedEvent | PermissionsChangedEvent | PlanChangedEvent | TodosChangedEvent | WorkspaceFileChangedEvent | HandoffEvent | TruncationEvent | SnapshotRewindEvent | ShutdownEvent | UsageCheckpointEvent | ContextChangedEvent | UsageInfoEvent | ContextClearedEvent | CompactionStartEvent | CompactionCompleteEvent | TaskCompleteEvent | CompletionReceiptEvent | FusionRouteStartedEvent | FusionRouteFailedEvent | FusionResolvedEvent | FusionCompletedEvent | UserMessageEvent | PendingMessagesModifiedEvent | AssistantTurnStartEvent | AssistantIntentEvent | AssistantFusionPhaseStartedEvent | AssistantFusionPhaseActivityEvent | AssistantFusionPhaseCompletedEvent | AssistantFusionPhaseFailedEvent | AssistantServerToolProgressEvent | AssistantReasoningEvent | AssistantReasoningDeltaEvent | AssistantToolCallDeltaEvent | AssistantStreamingDeltaEvent | AssistantMessageEvent | AssistantMessageStartEvent | AssistantMessageDeltaEvent | AssistantTurnEndEvent | AssistantIdleEvent | AssistantUsageEvent | ModelCallFailureEvent | ModelCallFinishedEvent | AbortEvent | ToolUserRequestedEvent | ToolExecutionStartEvent | ToolExecutionPartialResultEvent | ToolExecutionProgressEvent | ToolExecutionCompleteEvent | ToolSearchActivatedEvent | SkillInvokedEvent | SubagentStartedEvent | SubagentConfiguredEvent | SubagentCompletedEvent | SubagentFailedEvent | SubagentSelectedEvent | SubagentDeselectedEvent | HookStartEvent | HookEndEvent | HookProgressEvent | BinaryAssetEvent | SystemMessageEvent | SystemNotificationEvent | PermissionRequestedEvent | PermissionCompletedEvent | PermissionCarriedForwardEvent | PermissionMessageAuthorizationEvent | PermissionMessageAuthorizationReadEvent | PermissionMessageAuthorizationDegradedEvent | UserInputRequestedEvent | UserInputCompletedEvent | ElicitationRequestedEvent | ElicitationCompletedEvent | SamplingRequestedEvent | SamplingCompletedEvent | McpOauthRequiredEvent | McpOauthCompletedEvent | McpHeadersRefreshRequiredEvent | McpHeadersRefreshCompletedEvent | CustomNotificationEvent | UIEphemeralQueryEvent | ExternalToolRequestedEvent | ExternalToolCompletedEvent | CommandQueuedEvent | CommandExecuteEvent | CommandCompletedEvent | AutoModeSwitchRequestedEvent | AutoModeSwitchCompletedEvent | SessionLimitsExhaustedRequestedEvent | SessionLimitsExhaustedCompletedEvent | AutoModeResolvedEvent | ManagedSettingsResolvedEvent | ManagedSettingsEnforcedEvent | CommandsChangedEvent | CapabilitiesChangedEvent | ExitPlanModeRequestedEvent | ExitPlanModeCompletedEvent | ToolsUpdatedEvent | BackgroundTasksChangedEvent | FactoryRunUpdatedEvent | FactoryRunStartedEvent | FactoryRunSettledEvent | SkillsLoadedEvent | CustomAgentsUpdatedEvent | McpServersLoadedEvent | McpServerStatusChangedEvent | McpServerRemovedEvent | McpServerNeedsReconnectEvent | McpToolsListChangedEvent | McpResourcesListChangedEvent | McpPromptsListChangedEvent | ExtensionsLoadedEvent | CanvasOpenedEvent | CanvasRegistryChangedEvent | CanvasClosedEvent | CanvasUnavailableEvent | CanvasRecordedEvent | CanvasRemovedEvent | ExtensionsAttachmentsPushedEvent | McpAppToolCallCompleteEvent;
12
+ export type SessionEvent = StartEvent | ResumeEvent | RemoteSteerableChangedEvent | ErrorEvent | IdleEvent | TitleChangedEvent | ScheduleCreatedEvent | ScheduleCancelledEvent | ScheduleRearmedEvent | AutopilotObjectiveChangedEvent | InfoEvent | WarningEvent | ModelChangeEvent | AutoTierRecommendationEvent | AutoTierSwitchFailedEvent | ModeChangedEvent | ModeNoticeDeliveredEvent | SessionLimitsChangedEvent | PermissionsChangedEvent | PlanChangedEvent | TodosChangedEvent | WorkspaceFileChangedEvent | HandoffEvent | TruncationEvent | SnapshotRewindEvent | ShutdownEvent | UsageCheckpointEvent | ContextChangedEvent | UsageInfoEvent | ContextClearedEvent | CompactionStartEvent | CompactionCompleteEvent | TaskCompleteEvent | CompletionReceiptEvent | FusionRouteStartedEvent | FusionRouteFailedEvent | FusionResolvedEvent | FusionCompletedEvent | UserMessageEvent | PendingMessagesModifiedEvent | AssistantTurnStartEvent | AssistantIntentEvent | AssistantFusionPhaseStartedEvent | AssistantFusionPhaseActivityEvent | AssistantFusionPhaseCompletedEvent | AssistantFusionPhaseFailedEvent | AssistantServerToolProgressEvent | AssistantReasoningEvent | AssistantReasoningDeltaEvent | AssistantToolCallDeltaEvent | AssistantStreamingDeltaEvent | AssistantMessageEvent | AssistantMessageStartEvent | AssistantMessageDeltaEvent | AssistantTurnEndEvent | AssistantIdleEvent | AssistantUsageEvent | ModelCallFailureEvent | ModelCallFinishedEvent | AbortEvent | ToolUserRequestedEvent | ToolExecutionStartEvent | ToolExecutionPartialResultEvent | ToolExecutionProgressEvent | ToolExecutionCompleteEvent | ToolSearchActivatedEvent | SkillInvokedEvent | SubagentStartedEvent | SubagentConfiguredEvent | SubagentCompletedEvent | SubagentFailedEvent | SubagentSelectedEvent | SubagentDeselectedEvent | HookStartEvent | HookEndEvent | HookProgressEvent | BinaryAssetEvent | SystemMessageEvent | SystemNotificationEvent | PermissionRequestedEvent | PermissionCompletedEvent | PermissionCarriedForwardEvent | PermissionMessageAuthorizationEvent | PermissionMessageAuthorizationReadEvent | PermissionMessageAuthorizationDegradedEvent | PermissionAssentDetectedEvent | PermissionContextualAuthorizationEvent | UserInputRequestedEvent | UserInputCompletedEvent | ElicitationRequestedEvent | ElicitationCompletedEvent | SamplingRequestedEvent | SamplingCompletedEvent | McpOauthRequiredEvent | McpOauthCompletedEvent | McpHeadersRefreshRequiredEvent | McpHeadersRefreshCompletedEvent | CustomNotificationEvent | UIEphemeralQueryEvent | ExternalToolRequestedEvent | ExternalToolCompletedEvent | CommandQueuedEvent | CommandExecuteEvent | CommandCompletedEvent | AutoModeSwitchRequestedEvent | AutoModeSwitchCompletedEvent | SessionLimitsExhaustedRequestedEvent | SessionLimitsExhaustedCompletedEvent | AutoModeResolvedEvent | ManagedSettingsResolvedEvent | ManagedSettingsEnforcedEvent | CommandsChangedEvent | CapabilitiesChangedEvent | ExitPlanModeRequestedEvent | ExitPlanModeCompletedEvent | ToolsUpdatedEvent | BackgroundTasksChangedEvent | FactoryRunUpdatedEvent | FactoryRunStartedEvent | FactoryRunSettledEvent | SkillsLoadedEvent | CustomAgentsUpdatedEvent | McpServersLoadedEvent | McpServerStatusChangedEvent | McpServerRemovedEvent | McpServerNeedsReconnectEvent | McpToolsListChangedEvent | McpResourcesListChangedEvent | McpPromptsListChangedEvent | ExtensionsLoadedEvent | CanvasOpenedEvent | CanvasRegistryChangedEvent | CanvasClosedEvent | CanvasUnavailableEvent | CanvasRecordedEvent | CanvasRemovedEvent | ExtensionsAttachmentsPushedEvent | McpAppToolCallCompleteEvent;
13
13
  /**
14
14
  * 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.
15
15
  */
@@ -9169,7 +9169,7 @@ export interface PermissionMessageAuthorizationData {
9169
9169
  world?: JsonValue;
9170
9170
  }
9171
9171
  /**
9172
- * Session event "permission.messageAuthorizationRead". Records that one human turn has been read by the blinded authorization proposer, whether or not it minted anything, so a resumed session does not re-run the extraction model on a turn the live session already read. Persisted purely to avoid wasted model calls across resume; it is never a correctness mechanism.
9172
+ * Session event "permission.messageAuthorizationRead". Records that one human turn has been read by the blinded authorization proposer, whether or not it minted anything, so a resumed session does not re-run the extraction model on a turn the live session already read. Also records whether that pass activates ongoing extraction; contextual-assent-only passes do not, so unrelated future messages remain outside extraction.
9173
9173
  */
9174
9174
  /** @experimental */
9175
9175
  export interface PermissionMessageAuthorizationReadEvent {
@@ -9200,10 +9200,16 @@ export interface PermissionMessageAuthorizationReadEvent {
9200
9200
  type: "permission.messageAuthorizationRead";
9201
9201
  }
9202
9202
  /**
9203
- * Records that one human turn has been read by the blinded authorization proposer, whether or not it minted anything, so a resumed session does not re-run the extraction model on a turn the live session already read. Persisted purely to avoid wasted model calls across resume; it is never a correctness mechanism.
9203
+ * Records that one human turn has been read by the blinded authorization proposer, whether or not it minted anything, so a resumed session does not re-run the extraction model on a turn the live session already read. Also records whether that pass activates ongoing extraction; contextual-assent-only passes do not, so unrelated future messages remain outside extraction.
9204
9204
  */
9205
9205
  /** @experimental */
9206
9206
  export interface PermissionMessageAuthorizationReadData {
9207
+ /**
9208
+ * Whether this read activates ongoing message-backed extraction. False for a contextual-assent-only pass while auto-approval is off, so unrelated future messages remain outside extraction.
9209
+ *
9210
+ * @experimental
9211
+ */
9212
+ activatesExtraction?: boolean;
9207
9213
  /**
9208
9214
  * The human turn that was read by the proposer.
9209
9215
  *
@@ -9254,6 +9260,128 @@ export interface PermissionMessageAuthorizationDegradedData {
9254
9260
  */
9255
9261
  turnIndex: number;
9256
9262
  }
9263
+ /**
9264
+ * Session event "permission.assentDetected". Records that deterministic text recognition found likely assent in the human turn immediately following a root Autopilot permission request that was blocked because no interactive response was available. This event grants no authority; its model-facing projection only suggests retrying the unchanged operation.
9265
+ */
9266
+ /** @experimental */
9267
+ export interface PermissionAssentDetectedEvent {
9268
+ /**
9269
+ * Sub-agent instance identifier. Absent for events from the root/main agent and session-level events.
9270
+ */
9271
+ agentId?: string;
9272
+ data: PermissionAssentDetectedData;
9273
+ /**
9274
+ * When true, the event is transient and not persisted to the session event log on disk
9275
+ */
9276
+ ephemeral?: boolean;
9277
+ /**
9278
+ * Unique event identifier (UUID v4), generated when the event is emitted
9279
+ */
9280
+ id: string;
9281
+ /**
9282
+ * ID of the chronologically preceding event in the session, forming a linked chain. Null for the first event.
9283
+ */
9284
+ parentId: string | null;
9285
+ /**
9286
+ * ISO 8601 timestamp when the event was created
9287
+ */
9288
+ timestamp: string;
9289
+ /**
9290
+ * Type discriminator. Always "permission.assentDetected".
9291
+ */
9292
+ type: "permission.assentDetected";
9293
+ }
9294
+ /**
9295
+ * Records that deterministic text recognition found likely assent in the human turn immediately following a root Autopilot permission request that was blocked because no interactive response was available. This event grants no authority; its model-facing projection only suggests retrying the unchanged operation.
9296
+ */
9297
+ /** @experimental */
9298
+ export interface PermissionAssentDetectedData {
9299
+ /**
9300
+ * Permission request the likely assent may refer to. The runtime derives this from the preceding durable blocker; the human message and extraction model do not choose it.
9301
+ *
9302
+ * @experimental
9303
+ */
9304
+ requestId: string;
9305
+ /**
9306
+ * Human turn whose text triggered the deterministic assent recognizer.
9307
+ *
9308
+ * @experimental
9309
+ */
9310
+ turnIndex: number;
9311
+ }
9312
+ /**
9313
+ * Session event "permission.contextualAuthorization". Freezes a blinded contextual authorization proposal whose verbatim human span was deterministically bound to the immediately preceding blocked permission request. The event carries no action fields; replay re-derives the exact action from the earlier permission request and mints a one-shot message grant only when the binding and span still verify.
9314
+ */
9315
+ /** @experimental */
9316
+ export interface PermissionContextualAuthorizationEvent {
9317
+ /**
9318
+ * Sub-agent instance identifier. Absent for events from the root/main agent and session-level events.
9319
+ */
9320
+ agentId?: string;
9321
+ data: PermissionContextualAuthorizationData;
9322
+ /**
9323
+ * When true, the event is transient and not persisted to the session event log on disk
9324
+ */
9325
+ ephemeral?: boolean;
9326
+ /**
9327
+ * Unique event identifier (UUID v4), generated when the event is emitted
9328
+ */
9329
+ id: string;
9330
+ /**
9331
+ * ID of the chronologically preceding event in the session, forming a linked chain. Null for the first event.
9332
+ */
9333
+ parentId: string | null;
9334
+ /**
9335
+ * ISO 8601 timestamp when the event was created
9336
+ */
9337
+ timestamp: string;
9338
+ /**
9339
+ * Type discriminator. Always "permission.contextualAuthorization".
9340
+ */
9341
+ type: "permission.contextualAuthorization";
9342
+ }
9343
+ /**
9344
+ * Freezes a blinded contextual authorization proposal whose verbatim human span was deterministically bound to the immediately preceding blocked permission request. The event carries no action fields; replay re-derives the exact action from the earlier permission request and mints a one-shot message grant only when the binding and span still verify.
9345
+ */
9346
+ /** @experimental */
9347
+ export interface PermissionContextualAuthorizationData {
9348
+ /**
9349
+ * Whether the contextual human span granted or denied authority.
9350
+ *
9351
+ * @experimental
9352
+ */
9353
+ polarity: PermissionMessageAuthorizationPolarity;
9354
+ /**
9355
+ * Deterministic identity of the contextual message grant.
9356
+ *
9357
+ * @experimental
9358
+ */
9359
+ recordId: string;
9360
+ /**
9361
+ * Original blocked permission request selected by deterministic event ordering, never by the extraction model.
9362
+ *
9363
+ * @experimental
9364
+ */
9365
+ requestId: string;
9366
+ /**
9367
+ * End byte offset of the contextual decision span within the turn.
9368
+ *
9369
+ * @experimental
9370
+ */
9371
+ spanEnd: number;
9372
+ /**
9373
+ * Start byte offset of the contextual decision span within the turn.
9374
+ *
9375
+ * @experimental
9376
+ */
9377
+ spanStart: number;
9378
+ /**
9379
+ * Human turn containing the contextual decision.
9380
+ *
9381
+ * @experimental
9382
+ */
9383
+ turnIndex: number;
9384
+ }
9257
9385
  /**
9258
9386
  * Session event "user_input.requested". User input request notification with question and optional predefined choices
9259
9387
  */
package/package.json CHANGED
@@ -4,8 +4,8 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/github/copilot-sdk.git"
6
6
  },
7
- "version": "1.0.14-unstable.35049111350.g7f86a90",
8
- "copilotCliVersion": "1.0.84-9.unstable.r35045926061.g4848e94",
7
+ "version": "1.0.14",
8
+ "copilotCliVersion": "1.0.85",
9
9
  "description": "TypeScript SDK for programmatic control of GitHub Copilot CLI via JSON-RPC",
10
10
  "main": "./dist/cjs/index.js",
11
11
  "types": "./dist/index.d.ts",
@@ -98,13 +98,13 @@
98
98
  "README.md"
99
99
  ],
100
100
  "optionalDependencies": {
101
- "@github/copilot-sdk-darwin-arm64": "1.0.14-unstable.35049111350.g7f86a90",
102
- "@github/copilot-sdk-darwin-x64": "1.0.14-unstable.35049111350.g7f86a90",
103
- "@github/copilot-sdk-linux-arm64": "1.0.14-unstable.35049111350.g7f86a90",
104
- "@github/copilot-sdk-linux-x64": "1.0.14-unstable.35049111350.g7f86a90",
105
- "@github/copilot-sdk-linuxmusl-arm64": "1.0.14-unstable.35049111350.g7f86a90",
106
- "@github/copilot-sdk-linuxmusl-x64": "1.0.14-unstable.35049111350.g7f86a90",
107
- "@github/copilot-sdk-win32-arm64": "1.0.14-unstable.35049111350.g7f86a90",
108
- "@github/copilot-sdk-win32-x64": "1.0.14-unstable.35049111350.g7f86a90"
101
+ "@github/copilot-sdk-darwin-arm64": "1.0.14",
102
+ "@github/copilot-sdk-darwin-x64": "1.0.14",
103
+ "@github/copilot-sdk-linux-arm64": "1.0.14",
104
+ "@github/copilot-sdk-linux-x64": "1.0.14",
105
+ "@github/copilot-sdk-linuxmusl-arm64": "1.0.14",
106
+ "@github/copilot-sdk-linuxmusl-x64": "1.0.14",
107
+ "@github/copilot-sdk-win32-arm64": "1.0.14",
108
+ "@github/copilot-sdk-win32-x64": "1.0.14"
109
109
  }
110
110
  }