@github/copilot-sdk 1.0.29 → 1.0.30-preview.0

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.
@@ -261,6 +261,17 @@ function createServerRpc(connection) {
261
261
  listTokenPriceUnits: async (params) => connection.sendRequest("models.listTokenPriceUnits", params)
262
262
  },
263
263
  /** @experimental */
264
+ decisions: {
265
+ /**
266
+ * Asks a decision model yes/no, pick-one, or rating questions about shared context and returns normalized probabilities. Sessionless, so a host can classify or route a request before any session exists. Requires the `DECISIONS_API` feature flag. A failed request is a JSON-RPC error whose `data` is a `DecisionErrorData`.
267
+ *
268
+ * @param params One request to a decision model: shared context plus the questions to answer about it.
269
+ *
270
+ * @returns The decision model's answers.
271
+ */
272
+ ask: async (params) => connection.sendRequest("decisions.ask", params)
273
+ },
274
+ /** @experimental */
264
275
  azureMl: {
265
276
  /**
266
277
  * Lists eligible Azure ML local models and redacted warnings before a chat session exists.
@@ -929,13 +940,13 @@ function createServerRpc(connection) {
929
940
  httpResponseChunk: async (params) => connection.sendRequest("llmInference.httpResponseChunk", params)
930
941
  },
931
942
  /** @experimental */
932
- kerberosAuth: {
943
+ network: {
933
944
  /**
934
- * Registers the calling SDK client's Kerberos callback. The callback authenticates requests made for the client's sessions and, with `runtime` scope, the runtime's shared background traffic; only one connection may hold `runtime` scope. The registration ends when the connection closes.
945
+ * Registers the calling SDK client's network callbacks, replacing any previous registration. With `resolveProxy`, the client decides the proxies for every request the runtime would otherwise route by ambient proxy settings (proxy environment variables, `NO_PROXY` and operating-system settings), or leaves a request to that routing; requests with an explicitly configured proxy and loopback targets never consult it. With `authenticateNegotiate`, the client supplies the Kerberos tokens for Negotiate proxy challenges instead of native credential lookup. The callbacks serve requests made for the client's sessions and, with `runtime` scope, the runtime's shared traffic, which includes background requests and remote MCP server connections; only one connection may hold `runtime` scope. The registration ends when the connection closes.
935
946
  *
936
- * @param params Registers the calling SDK connection's Kerberos credential provider.
947
+ * @param params Registers the calling SDK connection's network callbacks, replacing any previous registration.
937
948
  */
938
- setProvider: async (params) => connection.sendRequest("kerberosAuth.setProvider", params)
949
+ setProvider: async (params) => connection.sendRequest("network.setProvider", params)
939
950
  },
940
951
  /** @experimental */
941
952
  sessions: {
@@ -1177,6 +1188,17 @@ function createServerRpc(connection) {
1177
1188
  * @returns Entries for the selected account.
1178
1189
  */
1179
1190
  refresh: async (params) => connection.sendRequest("connectors.refresh", params)
1191
+ },
1192
+ /** @experimental */
1193
+ lsp: {
1194
+ /**
1195
+ * Reads the process-wide language-server inventory for a working directory without starting servers. Uses the host configuration home and persisted workspace trust.
1196
+ *
1197
+ * @param params Parameters for a process-wide, read-only language-server inventory.
1198
+ *
1199
+ * @returns Runtime-owned configuration inventory and configuration diagnostics.
1200
+ */
1201
+ list: async (params) => connection.sendRequest("lsp.list", params)
1180
1202
  }
1181
1203
  };
1182
1204
  }
@@ -1478,6 +1500,12 @@ function createInternalServerRpc(connection) {
1478
1500
  * @returns Outcome of validating and writing one top-level setting subtree.
1479
1501
  */
1480
1502
  applyTopKey: async (params) => connection.sendRequest("user.settings.applyTopKey", params),
1503
+ /**
1504
+ * Writes or removes one raw user setting under the settings transaction and file locks. Preserves unrelated keys and legacy spellings, and records explicit mutations so startup cleanup cannot delete the user's choice. Unlike applyTopKey, this operation does not validate or canonicalize settings. Invalid or unreadable files are replaced by default, matching the existing raw writer; set refuseOnReadFailure=true to reject instead. Deletion requires delete=true; otherwise value must be present.
1505
+ *
1506
+ * @param params A raw top-level setting edit with explicit read-failure behavior.
1507
+ */
1508
+ writeKey: async (params) => connection.sendRequest("user.settings.writeKey", params),
1481
1509
  /**
1482
1510
  * Replaces the user settings file's entire content in one write. A key absent from `settings` is removed, which is what distinguishes this from `user.settings.set`: that one merges, so it can never clear a key the caller has dropped. For a caller saving the result of a raw edit, a merge would silently resurrect every key the user deleted. Records the same one-time mutation marks a per-key write records, so a setting the user has now chosen explicitly stops being migrated for them.
1483
1511
  *
@@ -2784,6 +2812,14 @@ function createSessionRpc(connection, sessionId) {
2784
2812
  * @returns The session's authoritative model snapshot. Auto preference fields are configuration for the virtual `auto` model and do not change the selected model identifier. The context tier reflects `Session.getContextTier()`, restored from the session journal on resume.
2785
2813
  */
2786
2814
  getCurrent: async () => connection.sendRequest("session.model.getCurrent", { sessionId }),
2815
+ /**
2816
+ * Reads the session's cached startup model state without fetching a catalog or resolving credentials. An interactive host can claim the one-time enablement prompt after applying its startup configuration. Claims remain shared with the owning host and are scoped to this session's lifetime.
2817
+ *
2818
+ * @param params Options for a host's startup model admission check.
2819
+ *
2820
+ * @returns A cached startup model snapshot and an optional one-time enablement prompt. This check never resolves credentials or fetches a catalog.
2821
+ */
2822
+ startupAdmission: async (params) => connection.sendRequest("session.model.startupAdmission", { ...params, sessionId }),
2787
2823
  /**
2788
2824
  * Switches the session to a model and optional reasoning configuration.
2789
2825
  *
@@ -2813,7 +2849,7 @@ function createSessionRpc(connection, sessionId) {
2813
2849
  *
2814
2850
  * @param params Reasoning effort level to apply to the currently selected model.
2815
2851
  *
2816
- * @returns Update the session's reasoning effort without changing the selected model. Use `switchTo` instead when you also need to change the model. The runtime stores the effort on the session and applies it to subsequent turns.
2852
+ * @returns Update the session's reasoning effort without changing the selected model. Use `switchTo` instead when you also need to change the model. The runtime applies the effort to the next new model request, including tool continuations, without changing retries of an already-started request.
2817
2853
  */
2818
2854
  setReasoningEffort: async (params) => connection.sendRequest("session.model.setReasoningEffort", { ...params, sessionId }),
2819
2855
  /**
@@ -3759,6 +3795,12 @@ function createSessionRpc(connection, sessionId) {
3759
3795
  */
3760
3796
  refresh: async (params) => connection.sendRequest("session.plugins.marketplaces.refresh", { ...params, sessionId })
3761
3797
  },
3798
+ /**
3799
+ * Reads Team and managed soft plugin defaults for the live session. Does not install plugins or persist user preferences.
3800
+ *
3801
+ * @returns Soft plugin defaults for this session, without persistent user preferences or hard policy.
3802
+ */
3803
+ getDefaults: async () => connection.sendRequest("session.plugins.getDefaults", { sessionId }),
3762
3804
  /**
3763
3805
  * Reloads the session's plugin set, refreshing MCP servers, custom agents, hooks, and skills cache so SDK-driven changes via `server.plugins.*` take effect immediately.
3764
3806
  *
@@ -3833,7 +3875,41 @@ function createSessionRpc(connection, sessionId) {
3833
3875
  *
3834
3876
  * @param params Parameters for (re)loading the merged LSP configuration set.
3835
3877
  */
3836
- initialize: async (params) => connection.sendRequest("session.lsp.initialize", { ...params, sessionId })
3878
+ initialize: async (params) => connection.sendRequest("session.lsp.initialize", { ...params, sessionId }),
3879
+ /**
3880
+ * Reads language-server configuration and diagnostics using the session's settings and active plugins. Explicit force reloads the files from disk.
3881
+ *
3882
+ * @param params Parameters for (re)loading the merged LSP configuration set.
3883
+ *
3884
+ * @returns Runtime-owned configuration inventory and configuration diagnostics.
3885
+ */
3886
+ list: async (params) => connection.sendRequest("session.lsp.list", { ...params, sessionId }),
3887
+ /**
3888
+ * Initializes and retains configured language servers under the session's effective LSP sandbox policy. The runtime owns client leases, callbacks, and process lifetime.
3889
+ *
3890
+ * @param params Parameters for (re)loading the merged LSP configuration set.
3891
+ *
3892
+ * @returns The servers retained by the session after warmup.
3893
+ */
3894
+ start: async (params) => connection.sendRequest("session.lsp.start", { ...params, sessionId }),
3895
+ /**
3896
+ * Stops the session's language-server clients without changing another session or the process-wide inventory.
3897
+ */
3898
+ stop: async () => connection.sendRequest("session.lsp.stop", { sessionId }),
3899
+ /**
3900
+ * Probes one configured language-server process under the session's effective LSP sandbox policy, then terminates the probe process.
3901
+ *
3902
+ * @param params A server selected for a startup probe.
3903
+ *
3904
+ * @returns Result of a language-server startup probe.
3905
+ */
3906
+ diagnose: async (params) => connection.sendRequest("session.lsp.diagnose", { ...params, sessionId }),
3907
+ /**
3908
+ * Persists a user-level language-server enable override in the session's configuration home. Reload configuration to apply it.
3909
+ *
3910
+ * @param params A persistent user-level server toggle.
3911
+ */
3912
+ set: async (params) => connection.sendRequest("session.lsp.set", { ...params, sessionId })
3837
3913
  },
3838
3914
  /** @experimental */
3839
3915
  extensions: {
@@ -4086,11 +4162,13 @@ function createSessionRpc(connection, sessionId) {
4086
4162
  */
4087
4163
  handlePendingExitPlanMode: async (params) => connection.sendRequest("session.ui.handlePendingExitPlanMode", { ...params, sessionId }),
4088
4164
  /**
4089
- * Registers an in-process handler for auto-mode-switch requests so the server bridge skips dispatch.
4165
+ * Registers an in-process handler for auto-mode-switch requests so the server bridge skips dispatch. Set `autoModeRecovery` to also handle Auto recovery consent offers.
4166
+ *
4167
+ * @param params Optional recovery-aware enrollment for an in-process Auto-switch handler.
4090
4168
  *
4091
- * @returns Register an in-process handler for `auto_mode_switch.requested` events. The caller still attaches the actual listener via the standard event-subscription mechanism; this registration solely tells the server bridge to skip its own dispatch (so a remote client doesn't race the in-process handler for the same requestId).
4169
+ * @returns Registers an in-process Auto-switch responder and suppresses server-bridge dispatch to avoid competing responders for the same requestId. When requested, also enrolls the responder for active-request Auto recovery and acknowledges support. Attach the actual listener separately through standard event subscriptions before starting a turn, and release the handle when the responder is removed.
4092
4170
  */
4093
- registerDirectAutoModeSwitchHandler: async () => connection.sendRequest("session.ui.registerDirectAutoModeSwitchHandler", { sessionId }),
4171
+ registerDirectAutoModeSwitchHandler: async (params) => connection.sendRequest("session.ui.registerDirectAutoModeSwitchHandler", { ...params, sessionId }),
4094
4172
  /**
4095
4173
  * Unregisters a previously-registered in-process auto-mode-switch handler by its opaque handle.
4096
4174
  *
@@ -4907,7 +4985,74 @@ function createInternalSessionRpc(connection, sessionId) {
4907
4985
  *
4908
4986
  * @param params Server name identifying the external client to remove.
4909
4987
  */
4910
- unregisterExternalClient: async (params) => connection.sendRequest("session.mcp.unregisterExternalClient", { ...params, sessionId })
4988
+ unregisterExternalClient: async (params) => connection.sendRequest("session.mcp.unregisterExternalClient", { ...params, sessionId }),
4989
+ /** @experimental */
4990
+ oauth: {
4991
+ /**
4992
+ * Reserves a host-driven OAuth flow identity before authentication or cancellation.
4993
+ *
4994
+ * @param params Correlation identity reserved before an effectful authentication request.
4995
+ */
4996
+ prepareFlow: async (params) => connection.sendRequest("session.mcp.oauth.prepareFlow", { ...params, sessionId }),
4997
+ /**
4998
+ * Cancels an exact host-driven OAuth flow on its original session requester.
4999
+ *
5000
+ * @param params Correlation identity reserved before an effectful authentication request.
5001
+ */
5002
+ cancelFlow: async (params) => connection.sendRequest("session.mcp.oauth.cancelFlow", { ...params, sessionId }),
5003
+ /**
5004
+ * Authenticates an arbitrary MCP URL through the original session credential owner, with correlated host progress and authorization callbacks.
5005
+ *
5006
+ * @param params Full host-driven authentication for an arbitrary, possibly unsaved, MCP URL.
5007
+ *
5008
+ * @returns Token projection for the existing host-delegated provider.
5009
+ */
5010
+ authenticate: async (params) => connection.sendRequest("session.mcp.oauth.authenticate", { ...params, sessionId }),
5011
+ /**
5012
+ * Checks whether the selected MCP credential owner has a valid access token.
5013
+ *
5014
+ * @param params A narrow token-validity query against the chosen credential owner.
5015
+ *
5016
+ * @returns Whether the credential operation succeeded.
5017
+ */
5018
+ hasValidTokens: async (params) => connection.sendRequest("session.mcp.oauth.hasValidTokens", { ...params, sessionId }),
5019
+ /**
5020
+ * Attempts silent MCP token refresh without opening a browser.
5021
+ *
5022
+ * @param params A narrow token-validity query against the chosen credential owner.
5023
+ *
5024
+ * @returns Whether the credential operation succeeded.
5025
+ */
5026
+ tryRefreshTokens: async (params) => connection.sendRequest("session.mcp.oauth.tryRefreshTokens", { ...params, sessionId }),
5027
+ /**
5028
+ * Stores a confidential MCP client's static secret in its selected credential owner.
5029
+ *
5030
+ * @param params Persist a confidential client's static secret without exposing token-store CRUD.
5031
+ */
5032
+ saveStaticClientSecret: async (params) => connection.sendRequest("session.mcp.oauth.saveStaticClientSecret", { ...params, sessionId }),
5033
+ /**
5034
+ * Releases an explicit host-owned MCP OAuth store on its original session requester.
5035
+ *
5036
+ * @param params Dispose an explicit host store without altering the session authorizer's owner.
5037
+ */
5038
+ disposeStore: async (params) => connection.sendRequest("session.mcp.oauth.disposeStore", { ...params, sessionId }),
5039
+ /**
5040
+ * Completes a tokenless initialize handshake for an unsaved remote MCP URL, preserving session egress and the refusing authentication challenge.
5041
+ *
5042
+ * @param params Tokenless initialize handshake for a possibly unsaved remote MCP server.
5043
+ *
5044
+ * @returns Outcome of the tokenless handshake, with the original challenge when available.
5045
+ */
5046
+ testConnection: async (params) => connection.sendRequest("session.mcp.oauth.testConnection", { ...params, sessionId }),
5047
+ /**
5048
+ * Derives an MCP credential key through the selected session account and store owner.
5049
+ *
5050
+ * @param params Derive a credential key through the selected account and store owner.
5051
+ *
5052
+ * @returns The selected owner's OAuth credential key.
5053
+ */
5054
+ storeKey: async (params) => connection.sendRequest("session.mcp.oauth.storeKey", { ...params, sessionId })
5055
+ }
4911
5056
  },
4912
5057
  /** @experimental */
4913
5058
  diagnostics: {
@@ -5262,10 +5407,15 @@ function registerClientGlobalApiHandlers(connection, handlers) {
5262
5407
  if (!handler) throw new Error("No extensionLaunchProvider client-global handler registered");
5263
5408
  return handler.resolve(params);
5264
5409
  });
5265
- connection.onRequest("kerberosAuth.acquire", async (params) => {
5266
- const handler = handlers.kerberosAuth;
5267
- if (!handler) throw new Error("No kerberosAuth client-global handler registered");
5268
- return handler.acquire(params);
5410
+ connection.onRequest("network.resolveProxy", async (params) => {
5411
+ const handler = handlers.network;
5412
+ if (!handler) throw new Error("No network client-global handler registered");
5413
+ return handler.resolveProxy(params);
5414
+ });
5415
+ connection.onRequest("network.authenticateNegotiate", async (params) => {
5416
+ const handler = handlers.network;
5417
+ if (!handler) throw new Error("No network client-global handler registered");
5418
+ return handler.authenticateNegotiate(params);
5269
5419
  });
5270
5420
  connection.onRequest("llmInference.httpRequestStart", async (params) => {
5271
5421
  const handler = handlers.llmInference;
@@ -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 = JournalLinkEvent | StartEvent | ResumeEvent | RemoteSteerableChangedEvent | ErrorEvent | IdleEvent | AutopilotStoppedEvent | TitleChangedEvent | ScheduleCreatedEvent | ScheduleCancelledEvent | ScheduleRearmedEvent | AutopilotObjectiveChangedEvent | InfoEvent | IndexedSearchEvent | WarningEvent | ModelChangeEvent | ModelDeselectedEvent | AutoTierRecommendationEvent | AutoTierSwitchFailedEvent | ModeChangedEvent | ModeNoticeDeliveredEvent | SessionLimitsChangedEvent | PermissionsChangedEvent | PlanChangedEvent | TodosChangedEvent | WorkspaceFileChangedEvent | HandoffEvent | TruncationEvent | SnapshotRewindEvent | ShutdownEvent | UsageCheckpointEvent | ProviderQuotaObservationEvent | ContextChangedEvent | UsageInfoEvent | ContextClearedEvent | CompactionStartEvent | CompactionCompleteEvent | TaskCompleteEvent | CompletionReceiptEvent | FusionRouteStartedEvent | FusionRouteFailedEvent | FusionResolvedEvent | FusionCompletedEvent | PermissionRecoveryEvent | 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 | ToolShellOutputEvent | ToolExecutionProgressEvent | ToolExecutionCompleteEvent | ToolSearchActivatedEvent | SkillInvokedEvent | SubagentStartedEvent | SubagentConfiguredEvent | SubagentCompletedEvent | SubagentFailedEvent | SubagentSelectedEvent | SubagentDeselectedEvent | HookStartEvent | HookEndEvent | HookProgressEvent | BinaryAssetEvent | SystemMessageEvent | InstructionUpdateEvent | SystemNotificationEvent | PermissionRequestedEvent | PermissionCompletedEvent | PermissionCarriedForwardEvent | PermissionMessageAuthorizationEvent | PermissionMessageAuthorizationReadEvent | PermissionMessageAuthorizationDegradedEvent | PermissionAssentDetectedEvent | PermissionContextualAuthorizationEvent | UserInputRequestedEvent | UserInputCompletedEvent | ElicitationRequestedEvent | ElicitationCompletedEvent | SamplingRequestedEvent | SamplingCompletedEvent | McpOauthRequiredEvent | McpOauthCompletedEvent | McpOauthRecoveryCompletedEvent | McpHeadersRefreshRequiredEvent | McpHeadersRefreshCompletedEvent | CustomNotificationEvent | UIEphemeralQueryEvent | ExternalToolRequestedEvent | ExternalToolCompletedEvent | CommandQueuedEvent | CommandExecuteEvent | CommandCompletedEvent | AutoModeSwitchRequestedEvent | AutoModeSwitchCompletedEvent | SessionLimitsExhaustedRequestedEvent | SessionLimitsExhaustedCompletedEvent | AutoModeResolvedEvent | ManagedPluginProgressEvent | ManagedSettingsResolvedEvent | ManagedSettingsEnforcedEvent | CommandsChangedEvent | CapabilitiesChangedEvent | ExitPlanModeRequestedEvent | ExitPlanModeCompletedEvent | HumanResponseRecordedEvent | ToolsUpdatedEvent | BackgroundTasksChangedEvent | WorkflowRunUpdatedEvent | WorkflowRunStartedEvent | WorkflowRunSettledEvent | SkillsLoadedEvent | CustomAgentsUpdatedEvent | McpServersLoadedEvent | McpServerStatusChangedEvent | McpServerToolsLoadedEvent | McpServerRemovedEvent | McpServerNeedsReconnectEvent | McpToolsListChangedEvent | McpResourcesListChangedEvent | McpPromptsListChangedEvent | ExtensionsLoadedEvent | CanvasOpenedEvent | CanvasRegistryChangedEvent | CanvasClosedEvent | CanvasUnavailableEvent | CanvasRecordedEvent | CanvasRemovedEvent | ExtensionsAttachmentsPushedEvent | McpAppToolCallCompleteEvent;
12
+ export type SessionEvent = JournalLinkEvent | StartEvent | ResumeEvent | RemoteSteerableChangedEvent | ErrorEvent | IdleEvent | AutopilotStoppedEvent | TitleChangedEvent | ScheduleCreatedEvent | ScheduleCancelledEvent | ScheduleRearmedEvent | AutopilotObjectiveChangedEvent | InfoEvent | IndexedSearchEvent | WarningEvent | ModelChangeEvent | ModelDeselectedEvent | AutoTierRecommendationEvent | AutoTierSwitchFailedEvent | ModeChangedEvent | ModeNoticeDeliveredEvent | SessionLimitsChangedEvent | PermissionsChangedEvent | PlanChangedEvent | TodosChangedEvent | WorkspaceFileChangedEvent | HandoffEvent | TruncationEvent | SnapshotRewindEvent | ShutdownEvent | UsageCheckpointEvent | ProviderQuotaObservationEvent | ContextChangedEvent | UsageInfoEvent | ContextClearedEvent | CompactionStartEvent | CompactionCompleteEvent | TaskCompleteEvent | CompletionReceiptEvent | FusionRouteStartedEvent | FusionRouteFailedEvent | FusionResolvedEvent | FusionCompletedEvent | PermissionRecoveryEvent | 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 | ToolShellOutputEvent | ToolExecutionProgressEvent | ToolExecutionCompleteEvent | ToolSearchActivatedEvent | SkillInvokedEvent | SubagentStartedEvent | SubagentConfiguredEvent | SubagentCompletedEvent | SubagentFailedEvent | SubagentSelectedEvent | SubagentDeselectedEvent | HookStartEvent | HookEndEvent | HookProgressEvent | BinaryAssetEvent | SystemMessageEvent | InstructionUpdateEvent | SystemNotificationEvent | PermissionRequestedEvent | PermissionCompletedEvent | PermissionCarriedForwardEvent | PermissionMessageAuthorizationEvent | PermissionMessageAuthorizationReadEvent | PermissionMessageAuthorizationDegradedEvent | PermissionAssentDetectedEvent | PermissionContextualAuthorizationEvent | UserInputRequestedEvent | UserInputCompletedEvent | ElicitationRequestedEvent | ElicitationCompletedEvent | SamplingRequestedEvent | SamplingCompletedEvent | McpOauthRequiredEvent | McpOauthCompletedEvent | McpOauthRecoveryCompletedEvent | McpHeadersRefreshRequiredEvent | McpHeadersRefreshCompletedEvent | CustomNotificationEvent | UIEphemeralQueryEvent | ExternalToolRequestedEvent | ExternalToolCompletedEvent | CommandQueuedEvent | CommandExecuteEvent | CommandCompletedEvent | AutoModeSwitchRequestedEvent | AutoModeSwitchCompletedEvent | AutoModeRecoveryConsentRequestedEvent | AutoModeRecoveryConsentCompletedEvent | AutoModeRecoveryOutcomeEvent | SessionLimitsExhaustedRequestedEvent | SessionLimitsExhaustedCompletedEvent | AutoModeResolvedEvent | ManagedPluginProgressEvent | ManagedSettingsResolvedEvent | ManagedSettingsEnforcedEvent | CommandsChangedEvent | CapabilitiesChangedEvent | ExitPlanModeRequestedEvent | ExitPlanModeCompletedEvent | HumanResponseRecordedEvent | ToolsUpdatedEvent | BackgroundTasksChangedEvent | WorkflowRunUpdatedEvent | WorkflowRunStartedEvent | WorkflowRunSettledEvent | SkillsLoadedEvent | CustomAgentsUpdatedEvent | McpServersLoadedEvent | McpServerStatusChangedEvent | McpServerToolsLoadedEvent | McpServerRemovedEvent | McpServerNeedsReconnectEvent | McpToolsListChangedEvent | McpResourcesListChangedEvent | McpPromptsListChangedEvent | ExtensionsLoadedEvent | CanvasOpenedEvent | CanvasRegistryChangedEvent | CanvasClosedEvent | CanvasUnavailableEvent | CanvasRecordedEvent | CanvasRemovedEvent | ExtensionsAttachmentsPushedEvent | McpAppToolCallCompleteEvent;
13
13
  /**
14
14
  * Extensible routing preference for the virtual `auto` model. New identifiers must be advertised and enabled by the provider. `fast` is an integrator-only latency preset.
15
15
  */
@@ -2704,6 +2704,23 @@ export interface InfoData {
2704
2704
  */
2705
2705
  url?: string;
2706
2706
  }
2707
+ /**
2708
+ * Original request-level and effective conversation reasoning effort for a provider history boundary; the historical type name is retained for compatibility
2709
+ */
2710
+ export interface ResponsesReasoning {
2711
+ /**
2712
+ * Effective effort selected before this message, independent of the response-level reasoning field
2713
+ */
2714
+ effort: string;
2715
+ /**
2716
+ * Original request-level effort, retained while replaying this conversation prefix
2717
+ */
2718
+ initialEffort: string;
2719
+ /**
2720
+ * Provider model whose reasoning settings this boundary records
2721
+ */
2722
+ model: string;
2723
+ }
2707
2724
  /**
2708
2725
  * Session event "session.indexed_search". Transient indexed-search status and diagnostics from the live runtime service. Never persisted or used to infer activation from session history.
2709
2726
  */
@@ -2853,7 +2870,7 @@ export interface ModelChangeData {
2853
2870
  */
2854
2871
  autoTierManaged?: boolean;
2855
2872
  /**
2856
- * Reason the change happened, when not user-initiated. `"rate_limit_auto_switch"` for changes triggered by the auto-mode-switch rate-limit recovery path, or `"refusal_fallback"` when the active model declined a request (content refusal) and the runtime switched to the configured refusal-fallback model. UI clients can use this to render contextual copy.
2873
+ * Reason the change happened, when not user-initiated. `"rate_limit_auto_switch"` for changes triggered by the auto-mode-switch rate-limit recovery path, `"auto_mode_recovery"` when a prepared Auto route commits and a recovered inference is allowed to proceed before provider dispatch, or `"refusal_fallback"` when the active model declined a request (content refusal) and the runtime switched to the configured refusal-fallback model. UI clients can use this to render contextual copy.
2857
2874
  */
2858
2875
  cause?: string;
2859
2876
  /**
@@ -4889,23 +4906,6 @@ export interface CompactionCompleteCompactionTokensUsedCopilotUsageTokenDetail {
4889
4906
  */
4890
4907
  tokenType: string;
4891
4908
  }
4892
- /**
4893
- * Original request-level and effective conversation reasoning effort for a provider history boundary; the historical type name is retained for compatibility
4894
- */
4895
- export interface ResponsesReasoning {
4896
- /**
4897
- * Effective effort selected before this message, independent of the response-level reasoning field
4898
- */
4899
- effort: string;
4900
- /**
4901
- * Original request-level effort, retained while replaying this conversation prefix
4902
- */
4903
- initialEffort: string;
4904
- /**
4905
- * Provider model whose reasoning settings this boundary records
4906
- */
4907
- model: string;
4908
- }
4909
4909
  /**
4910
4910
  * Session event "session.task_complete". Task completion notification with summary from the agent
4911
4911
  */
@@ -5814,6 +5814,10 @@ export interface UserMessageData {
5814
5814
  * IDs of accepted assistant messages that caused this delivered inter-agent prompt, referring to assistant.message.data.messageId across the agent tree. Captured when sending and retained through queued or immediate delivery. An empty list means no model-produced dependency; absence means provenance is unavailable.
5815
5815
  */
5816
5816
  causalDependencies?: string[];
5817
+ /**
5818
+ * Opaque clientTurnId the caller supplied on the send that delivered this message, echoed when the message is consumed, whether it started a turn, drained from the queue or was consumed as steering. Absent when that send supplied none.
5819
+ */
5820
+ clientTurnId?: string;
5817
5821
  /**
5818
5822
  * The user's message text as displayed in the timeline
5819
5823
  */
@@ -14423,6 +14427,192 @@ export interface AutoModeSwitchCompletedData {
14423
14427
  */
14424
14428
  response: AutoModeSwitchResponse;
14425
14429
  }
14430
+ /**
14431
+ * Session event "auto_mode_recovery_consent.requested". Recovery consent for a still-active request. Respond using session.ui.handlePendingAutoModeSwitch. The offer has no timer. Entering Autopilot before recovery admission withdraws it. Dismiss it on auto_mode_recovery_consent.completed or on session resume, rebuild, or disconnect; resume can invalidate it without a completed event.
14432
+ */
14433
+ export interface AutoModeRecoveryConsentRequestedEvent {
14434
+ /**
14435
+ * Sub-agent instance identifier. Absent for events from the root/main agent and session-level events.
14436
+ */
14437
+ agentId?: string;
14438
+ /**
14439
+ * Whether this physical journal record belongs to a replay checkpoint rather than original session history.
14440
+ */
14441
+ checkpoint?: boolean;
14442
+ /**
14443
+ * Recovery consent for a still-active request. Respond using session.ui.handlePendingAutoModeSwitch. The offer has no timer. Entering Autopilot before recovery admission withdraws it. Dismiss it on auto_mode_recovery_consent.completed or on session resume, rebuild, or disconnect; resume can invalidate it without a completed event.
14444
+ */
14445
+ data: AutoModeRecoveryConsentRequestedData;
14446
+ /**
14447
+ * Always true for events that are transient and not persisted to the session event log on disk.
14448
+ */
14449
+ ephemeral: true;
14450
+ /**
14451
+ * Unique event identifier (UUID v4), generated when the event is emitted
14452
+ */
14453
+ id: string;
14454
+ /**
14455
+ * ID of the chronologically preceding event in the session, forming a linked chain. Null for the first event.
14456
+ */
14457
+ parentId: string | null;
14458
+ /**
14459
+ * ISO 8601 timestamp when the event was created
14460
+ */
14461
+ timestamp: string;
14462
+ /**
14463
+ * Type discriminator. Always "auto_mode_recovery_consent.requested".
14464
+ */
14465
+ type: "auto_mode_recovery_consent.requested";
14466
+ }
14467
+ /**
14468
+ * Recovery consent for a still-active request. Respond using session.ui.handlePendingAutoModeSwitch. The offer has no timer. Entering Autopilot before recovery admission withdraws it. Dismiss it on auto_mode_recovery_consent.completed or on session resume, rebuild, or disconnect; resume can invalidate it without a completed event.
14469
+ */
14470
+ export interface AutoModeRecoveryConsentRequestedData {
14471
+ /**
14472
+ * Whether this offer permits remembering consent with yes_always. Currently true only for per-model rate limits.
14473
+ */
14474
+ allowAlways: boolean;
14475
+ /**
14476
+ * Eligible upstream failure code: model_degraded, model_overloaded, or user_model_rate_limited.
14477
+ */
14478
+ errorCode: string;
14479
+ /**
14480
+ * Original logical interaction identity, when available. Do not infer it from transcript order.
14481
+ */
14482
+ interactionId?: string;
14483
+ /**
14484
+ * Explicit model selected for the failed request before Auto recovery.
14485
+ */
14486
+ originalModel: string;
14487
+ /**
14488
+ * Initiating user-message identity, when available, distinct from later steering messages.
14489
+ */
14490
+ originatingMessageId?: string;
14491
+ /**
14492
+ * One-use offer or recovery episode identifier bound to the originating live session. It cannot be carried across resume or used to replay a settled request.
14493
+ */
14494
+ requestId: string;
14495
+ /**
14496
+ * Rate-limit reset information when supplied by the provider. This is not a consent deadline.
14497
+ */
14498
+ retryAfterSeconds?: number;
14499
+ }
14500
+ /**
14501
+ * Session event "auto_mode_recovery_consent.completed". Recovery consent offer closed; clients must dismiss its UI. Completion does not imply consent or recovery success. Events belong to the originating live session; resume can invalidate an offer without this event.
14502
+ */
14503
+ export interface AutoModeRecoveryConsentCompletedEvent {
14504
+ /**
14505
+ * Sub-agent instance identifier. Absent for events from the root/main agent and session-level events.
14506
+ */
14507
+ agentId?: string;
14508
+ /**
14509
+ * Whether this physical journal record belongs to a replay checkpoint rather than original session history.
14510
+ */
14511
+ checkpoint?: boolean;
14512
+ /**
14513
+ * Recovery consent offer closed; clients must dismiss its UI. Completion does not imply consent or recovery success. Events belong to the originating live session; resume can invalidate an offer without this event.
14514
+ */
14515
+ data: AutoModeRecoveryConsentCompletedData;
14516
+ /**
14517
+ * Always true for events that are transient and not persisted to the session event log on disk.
14518
+ */
14519
+ ephemeral: true;
14520
+ /**
14521
+ * Unique event identifier (UUID v4), generated when the event is emitted
14522
+ */
14523
+ id: string;
14524
+ /**
14525
+ * ID of the chronologically preceding event in the session, forming a linked chain. Null for the first event.
14526
+ */
14527
+ parentId: string | null;
14528
+ /**
14529
+ * ISO 8601 timestamp when the event was created
14530
+ */
14531
+ timestamp: string;
14532
+ /**
14533
+ * Type discriminator. Always "auto_mode_recovery_consent.completed".
14534
+ */
14535
+ type: "auto_mode_recovery_consent.completed";
14536
+ }
14537
+ /**
14538
+ * Recovery consent offer closed; clients must dismiss its UI. Completion does not imply consent or recovery success. Events belong to the originating live session; resume can invalidate an offer without this event.
14539
+ */
14540
+ export interface AutoModeRecoveryConsentCompletedData {
14541
+ /**
14542
+ * Settlement reason, distinguishing user acceptance/decline and saved-preference acceptance from cancellation, handler loss, supersession, and emergency disablement. mode_changed withdraws an unanswered offer when the session enters Autopilot before recovery admission.
14543
+ */
14544
+ reason: string;
14545
+ /**
14546
+ * Identifier of the settled offer; clients must dismiss the matching consent UI.
14547
+ */
14548
+ requestId: string;
14549
+ /**
14550
+ * User response when one was supplied. Absent when the runtime settled the offer without a user answer.
14551
+ */
14552
+ response?: AutoModeSwitchResponse;
14553
+ }
14554
+ /**
14555
+ * Session event "auto_mode_recovery.outcome". Authoritative final outcome of an active-request Auto recovery episode, not a retry-start notification or manual response regeneration. Normal response/error and session completion signals still settle the logical request.
14556
+ */
14557
+ export interface AutoModeRecoveryOutcomeEvent {
14558
+ /**
14559
+ * Sub-agent instance identifier. Absent for events from the root/main agent and session-level events.
14560
+ */
14561
+ agentId?: string;
14562
+ /**
14563
+ * Whether this physical journal record belongs to a replay checkpoint rather than original session history.
14564
+ */
14565
+ checkpoint?: boolean;
14566
+ /**
14567
+ * Authoritative final outcome of an active-request Auto recovery episode, not a retry-start notification or manual response regeneration. Normal response/error and session completion signals still settle the logical request.
14568
+ */
14569
+ data: AutoModeRecoveryOutcomeData;
14570
+ /**
14571
+ * Always true for events that are transient and not persisted to the session event log on disk.
14572
+ */
14573
+ ephemeral: true;
14574
+ /**
14575
+ * Unique event identifier (UUID v4), generated when the event is emitted
14576
+ */
14577
+ id: string;
14578
+ /**
14579
+ * ID of the chronologically preceding event in the session, forming a linked chain. Null for the first event.
14580
+ */
14581
+ parentId: string | null;
14582
+ /**
14583
+ * ISO 8601 timestamp when the event was created
14584
+ */
14585
+ timestamp: string;
14586
+ /**
14587
+ * Type discriminator. Always "auto_mode_recovery.outcome".
14588
+ */
14589
+ type: "auto_mode_recovery.outcome";
14590
+ }
14591
+ /**
14592
+ * Authoritative final outcome of an active-request Auto recovery episode, not a retry-start notification or manual response regeneration. Normal response/error and session completion signals still settle the logical request.
14593
+ */
14594
+ export interface AutoModeRecoveryOutcomeData {
14595
+ /**
14596
+ * Whether a recovered Auto inference was allowed to proceed, reported on the final outcome rather than as a live start notification. True does not imply success. False when consent or preparation ended without a retry.
14597
+ */
14598
+ autoModeRecoveryAdmitted: boolean;
14599
+ /**
14600
+ * Original upstream failure code that qualified the request for recovery.
14601
+ */
14602
+ errorCode: string;
14603
+ /**
14604
+ * Explicit model selected for the original failed request.
14605
+ */
14606
+ originalModel: string;
14607
+ /**
14608
+ * Recovery episode identifier, also used by its consent offer when one was displayed.
14609
+ */
14610
+ requestId: string;
14611
+ /**
14612
+ * Final recovery disposition, such as succeeded, failed, declined, cancelled, superseded, or unavailable. mode_changed means entering Autopilot stopped recovery before admission, including after consent was accepted.
14613
+ */
14614
+ status: string;
14615
+ }
14426
14616
  /**
14427
14617
  * Session event "session_limits_exhausted.requested". Session limit exhaustion notification requiring user action.
14428
14618
  */
@@ -15088,6 +15278,10 @@ export interface CapabilitiesChangedData {
15088
15278
  * UI capability changes
15089
15279
  */
15090
15280
  export interface CapabilitiesChangedUI {
15281
+ /**
15282
+ * Whether a recovery-aware Auto-switch responder is registered. This does not imply current eligibility or override model policy.
15283
+ */
15284
+ autoModeRecovery?: boolean;
15091
15285
  /**
15092
15286
  * Whether canvas rendering is now supported
15093
15287
  */
package/dist/index.d.ts CHANGED
@@ -4,7 +4,9 @@
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, Model, ModelGetReasoningSummariesRequest, ModelGetReasoningSummariesResult, SandboxConfig, AutopilotOptions, } from "./generated/rpc.js";
7
+ export { CopilotDecisions, decisionErrorData, decisionErrorKind, type DecisionCallOptions, type DecisionsAskResultWithNames, type YesNoOptions, type YesNoResult, } from "./decisions.js";
8
+ export type { DecisionAnswer, DecisionContext, DecisionErrorData, DecisionErrorKind, DecisionLevel, DecisionLevelProbability, DecisionModelInfo, DecisionModelLimits, DecisionOption, DecisionOptionProbability, DecisionQuestion, DecisionsAskRequest, DecisionsAskResult, DecisionUsage, DecisionViolation, } from "./generated/rpc.js";
9
+ export type { HostLocalServerOptions, HostGitHubEnvironmentOptions, Model, ModelGetReasoningSummariesRequest, ModelGetReasoningSummariesResult, ModelStartupAdmissionRequest, ModelStartupAdmissionResult, SandboxConfig, AutopilotOptions, LspConfigurationProblem, LspConfigurationSnapshot, LspServerSummary, LspGlobalConfigurationRequest, LspInitializeRequest, LspProbeExitStatus, LspProbeRequest, LspProbeResult, LspSetEnabledRequest, LspWarmupError, LspWarmupResult, LspListResult, LspListRequest, SessionLspListResult, SessionLspStartResult, SessionLspDiagnoseResult, SessionLspDiagnoseRequest, SessionLspSetRequest, } from "./generated/rpc.js";
8
10
  export { AhpHost, type AhpHostExit, type AhpHostOptions, type AhpHostAuthentication, type AhpSessionAuthentication, type AhpSessionCreateRequest, type AhpSessionResumeRequest, } from "./host.js";
9
11
  export { DisableBypassPermissionsModes, RuntimeConnection } from "./types.js";
10
12
  export { BuiltInTools, ToolSet } from "./toolSet.js";
@@ -13,5 +15,5 @@ export { defineWorkflow, WorkflowResumeError, isWorkflowRunTerminal } from "./wo
13
15
  export { Canvas, CanvasError, createCanvas, type CanvasAction, type CanvasDeclaration, type CanvasHostContext, type CanvasHostContextCapabilities, type CanvasJsonSchema, type CanvasOptions, } from "./canvas.js";
14
16
  export { defineTool, approveAll, createAttributedPermissionResult, convertMcpCallToolResult, createSessionFsAdapter, CopilotRequestHandler, CopilotWebSocketHandler, CopilotWebSocketCloseStatus, CopilotWebSocketForwarder, SessionFsSqliteTransactionFailure, SessionFsWriteFailure, SYSTEM_MESSAGE_SECTIONS, } from "./types.js";
15
17
  export type * from "./generated/session-events.js";
16
- export type { AskUserVariant, CommandContext, CommandDefinition, CommandHandler, CanvasProviderIdentity, CloudSessionOptions, CloudSessionRepository, AuthIdentityMetadata, AuthInfoType, ConnectorAccountRequest, ConnectorAvailability, ConnectorCapabilities, ConnectorCatalogEntry, ConnectorCatalogResult, ConnectorCatalogStatus, ConnectorConnectRequest, ConnectorConnectResult, ConnectorContinueRequest, ConnectorDisconnectResult, ConnectorMcpStatus, ConnectorReconcileRequest, ConnectorRuntimeStatus, ConnectorSessionAccount, ConnectorSessionAccountResult, ConnectorStatus, AutoModeSwitchHandler, AutoModeSwitchRequest, AutoModeSwitchResponse, AgentStopHandler, AgentStopHookInput, AgentStopHookOutput, SubagentStartHandler, SubagentStartHookInput, SubagentStartHookOutput, SubagentStopHandler, SubagentStopHookInput, SubagentStopHookOutput, UserPromptTransformedHandler, UserPromptTransformedHookInput, UserPromptTransformedHookOutput, CopilotClientInfo, CopilotClientMode, CopilotClientOptions, EntraAuthConfig, EntraAuthOptions, EntraTokenProvider, EntraTokenProviderArgs, EntraTokenProviderResult, InstallationConfirmationHandler, InstallationConfirmationRequest, InstallationConfirmationResponse, InstallationDecision, InstallationReview, McpInstallationReview, CopilotExpAssignmentResponse, StdioRuntimeConnection, InProcessRuntimeConnection, TcpRuntimeConnection, UriRuntimeConnection, ChildProcessRuntimeConnection, CustomAgentConfig, ElicitationFieldValue, ElicitationHandler, ElicitationParams, ElicitationContext, ElicitationResult, ElicitationSchema, ElicitationSchemaField, ExpConfigEntry, ExpFlagValue, ExitPlanModeHandler, ExitPlanModeRequest, ExitPlanModeResult, ExtensionLaunchProfile, ExtensionLaunchProvider, ExtensionLaunchProviderResolveRequest, ExtensionLaunchProviderResolveResult, ExtensionInfo, KerberosAuthAcquireRequest, KerberosAuthConfig, KerberosAuthMode, KerberosAuthScope, ForegroundSessionInfo, GetAuthStatusResponse, GetStatusResponse, HostDiagnostics, HostErrorReportingStatus, GitHubMcpToolConfig, GitHubTelemetryNotification, GitHubTelemetryEvent, GitHubTelemetryClientInfo, GitHubTokenAcquireReason, GitHubTokenAcquireResult, GitHubTokenProvider, GitHubTokenProviderArgs, GitHubTokenProviderResult, InfiniteSessionConfig, LargeToolOutputConfig, MemoryConfiguration, UiInputOptions, MCPStdioServerConfig, MCPHTTPServerConfig, MCPServerConfig, DefaultAgentConfig, BearerTokenProvider, ExtensionContextAttachment, MessageOptions, ResponseSchema, MessageSource, ManagedSettings, ManagedSettingsPermissions, ModelBilling, ModelBillingTokenPrices, ModelBillingTokenPricesLongContext, AutoTier, CapiSessionOptions, CurrentModel, ModelSwitchAutoTierResult, ModelSwitchAutoTierStatus, ModelCapabilities, ModelCapabilitiesOverride, ModelInfo, ModelPolicy, NamedProviderConfig, PermissionHandler, PermissionRequest, PermissionRequestedData, PermissionRequestedEvent, PermissionRequestResult, AttributedPermissionResult, PermissionDecisionContext, PermissionDecisionOutcome, PermissionDecisionSource, PermissionDecisionSurface, PermissionResponseCapability, ProviderConfig, ProviderConfigModelProvider, ProviderModelConfig, ProviderTokenArgs, RemoteSessionMode, SandboxConfigSource, ResumeSessionConfig, TranscriptRecovery, SectionOverride, SectionOverrideAction, SectionTransformFn, SessionCapabilities, SessionConfig, SessionConfigBase, WorkingDirectoryTrust, SessionEvent, SessionEventHandler, SessionEventPayload, SessionEventType, SessionLifecycleEvent, SessionLifecycleEventMetadata, SessionLifecycleEventType, SessionLifecycleHandler, SessionHooks, SessionCreatedEvent, SessionDeletedEvent, SessionUpdatedEvent, SessionForegroundEvent, SessionBackgroundEvent, SessionContext, SessionListFilter, SessionMetadata, SessionUiApi, SessionFsConfig, SessionFsProvider, SessionFsByteRange, SessionFsFileInfo, SessionFsSqliteQueryResult, SessionFsSqliteQueryType, SessionFsSqliteProvider, SessionFsSqliteStatement, SessionFsSqliteTransactionErrorClass, SkillProvider, SessionCreationHandler, ManagedSessionInfo, SessionManagementCloseRequest, SessionManagementCloseResult, SessionManagementConfigureRequest, SessionManagementCreateHostRequest, SessionManagementCreateRequest, SessionManagementCreateResult, SessionManagementListRequest, SessionManagementListResult, SessionManagementMessageRequest, SessionManagementMessageResult, SessionManagementPolicy, SessionManagementScope, SessionManagementToolOverrides, SkillProviderCallOptions, SkillProviderDescriptor, CopilotRequestContext, SystemMessageAppendConfig, SystemMessageConfig, SystemMessageCustomizeConfig, SystemMessageReplaceConfig, SystemMessageSection, TelemetryConfig, TraceContext, TraceContextProvider, Tool, ToolHandler, ToolInvocation, ToolNamespace, CurrentToolMetadata, ToolTelemetry, ToolResultObject, ToolSearchConfig, ImageGenerationConfig, TypedSessionEventHandler, TypedSessionLifecycleHandler, ZodSchema, } from "./types.js";
18
+ export type { AskUserVariant, CommandContext, CommandDefinition, CommandHandler, CanvasProviderIdentity, CloudSessionOptions, CloudSessionRepository, AuthIdentityMetadata, AuthInfoType, ConnectorAccountRequest, ConnectorAvailability, ConnectorCapabilities, ConnectorCatalogEntry, ConnectorCatalogResult, ConnectorCatalogStatus, ConnectorConnectRequest, ConnectorConnectResult, ConnectorContinueRequest, ConnectorDisconnectResult, ConnectorMcpStatus, ConnectorReconcileRequest, ConnectorRuntimeStatus, ConnectorSessionAccount, ConnectorSessionAccountResult, ConnectorStatus, AutoModeSwitchHandler, AutoModeRecoveryContext, AutoModeSwitchRequest, AutoModeSwitchResponse, AgentStopHandler, AgentStopHookInput, AgentStopHookOutput, SubagentStartHandler, SubagentStartHookInput, SubagentStartHookOutput, SubagentStopHandler, SubagentStopHookInput, SubagentStopHookOutput, UserPromptTransformedHandler, UserPromptTransformedHookInput, UserPromptTransformedHookOutput, CopilotClientInfo, CopilotClientMode, CopilotClientOptions, EntraAuthConfig, EntraAuthOptions, EntraTokenProvider, EntraTokenProviderArgs, EntraTokenProviderResult, InstallationConfirmationHandler, InstallationConfirmationRequest, InstallationConfirmationResponse, InstallationDecision, InstallationReview, McpInstallationReview, CopilotExpAssignmentResponse, StdioRuntimeConnection, InProcessRuntimeConnection, TcpRuntimeConnection, UriRuntimeConnection, ChildProcessRuntimeConnection, CustomAgentConfig, ElicitationFieldValue, ElicitationHandler, ElicitationParams, ElicitationContext, ElicitationResult, ElicitationSchema, ElicitationSchemaField, ExpConfigEntry, ExpFlagValue, ExitPlanModeHandler, ExitPlanModeRequest, ExitPlanModeResult, ExtensionLaunchProfile, ExtensionLaunchProvider, ExtensionLaunchProviderResolveRequest, ExtensionLaunchProviderResolveResult, ExtensionInfo, ForegroundSessionInfo, GetAuthStatusResponse, GetStatusResponse, HostDiagnostics, HostErrorReportingStatus, GitHubMcpToolConfig, GitHubTelemetryNotification, GitHubTelemetryEvent, GitHubTelemetryClientInfo, GitHubTokenAcquireReason, GitHubTokenAcquireResult, GitHubTokenProvider, GitHubTokenProviderArgs, GitHubTokenProviderResult, InfiniteSessionConfig, LargeToolOutputConfig, MemoryConfiguration, MemoryStoreCallOptions, StoredMemory, UiInputOptions, MCPStdioServerConfig, MCPHTTPServerConfig, MCPServerConfig, DefaultAgentConfig, BearerTokenProvider, ExtensionContextAttachment, MessageOptions, ResponseSchema, MessageSource, ManagedSettings, ManagedSettingsPermissions, ModelBilling, ModelBillingTokenPrices, ModelBillingTokenPricesLongContext, AutoTier, CapiSessionOptions, CurrentModel, ModelSwitchAutoTierResult, ModelSwitchAutoTierStatus, ModelCapabilities, ModelCapabilitiesOverride, ModelInfo, ModelPolicy, NamedProviderConfig, NetworkAuthenticateNegotiateRequest, NetworkConfig, NetworkResolveProxyRequest, NetworkScope, PermissionHandler, PermissionRequest, PermissionRequestedData, PermissionRequestedEvent, PermissionRequestResult, AttributedPermissionResult, PermissionDecisionContext, PermissionDecisionOutcome, PermissionDecisionSource, PermissionDecisionSurface, PermissionResponseCapability, ProviderConfig, ProviderConfigModelProvider, ProviderModelConfig, ProviderTokenArgs, RemoteSessionMode, SandboxConfigSource, ResumeSessionConfig, TranscriptRecovery, SectionOverride, SectionOverrideAction, SectionTransformFn, SessionCapabilities, SessionConfig, SessionConfigBase, WorkingDirectoryTrust, SessionEvent, SessionEventHandler, SessionEventPayload, SessionEventType, SessionLifecycleEvent, SessionLifecycleEventMetadata, SessionLifecycleEventType, SessionLifecycleHandler, SessionHooks, SessionCreatedEvent, SessionDeletedEvent, SessionUpdatedEvent, SessionForegroundEvent, SessionBackgroundEvent, SessionContext, SessionListFilter, SessionMetadata, SessionUiApi, SessionFsConfig, SessionFsProvider, SessionFsByteRange, SessionFsFileInfo, SessionFsSqliteQueryResult, SessionFsSqliteQueryType, SessionFsSqliteProvider, SessionFsSqliteStatement, SessionFsSqliteTransactionErrorClass, SkillProvider, SessionCreationHandler, ManagedSessionInfo, SessionManagementCloseRequest, SessionManagementCloseResult, SessionManagementConfigureRequest, SessionManagementCreateHostRequest, SessionManagementCreateRequest, SessionManagementCreateResult, SessionManagementListRequest, SessionManagementListResult, SessionManagementMessageRequest, SessionManagementMessageResult, SessionManagementPolicy, SessionManagementScope, SessionManagementToolOverrides, SkillProviderCallOptions, SkillProviderDescriptor, CopilotRequestContext, SystemMessageAppendConfig, SystemMessageConfig, SystemMessageCustomizeConfig, SystemMessageReplaceConfig, SystemMessageSection, TelemetryConfig, TraceContext, TraceContextProvider, Tool, ToolHandler, ToolInvocation, ToolNamespace, CurrentToolMetadata, ToolTelemetry, ToolResultObject, ToolSearchConfig, ImageGenerationConfig, TypedSessionEventHandler, TypedSessionLifecycleHandler, ZodSchema, } from "./types.js";
17
19
  export type { JsonValue, WorkflowRunOptions, WorkflowResumeOptions, WorkflowLimitOverrides, WorkflowResumeErrorCode, SessionWorkflowApi, WorkflowAgentOptions, WorkflowContext, WorkflowDefinition, WorkflowHandle, WorkflowJsonSchema, WorkflowLimits, WorkflowMeta, WorkflowPipelineStage, WorkflowStepOptions, WorkflowRunResult, WorkflowRunStatus, WorkflowRunSummary, WorkflowListRunsOptions, WorkflowRunsPage, WorkflowRunDetail, WorkflowProgressPage, WorkflowProgressLine, WorkflowPhaseObservation, WorkflowPhaseStatus, WorkflowAgentContextObservation, WorkflowAgentModelObservation, WorkflowAgentReasoningEffortObservation, WorkflowAgentSummary, } from "./workflow.js";
package/dist/index.js CHANGED
@@ -1,4 +1,9 @@
1
1
  import { CopilotClient } from "./client.js";
2
+ import {
3
+ CopilotDecisions,
4
+ decisionErrorData,
5
+ decisionErrorKind
6
+ } from "./decisions.js";
2
7
  import {
3
8
  AhpHost
4
9
  } from "./host.js";
@@ -31,6 +36,7 @@ export {
31
36
  Canvas,
32
37
  CanvasError,
33
38
  CopilotClient,
39
+ CopilotDecisions,
34
40
  CopilotRequestHandler,
35
41
  CopilotSession,
36
42
  CopilotWebSocketCloseStatus,
@@ -48,6 +54,8 @@ export {
48
54
  createAttributedPermissionResult,
49
55
  createCanvas,
50
56
  createSessionFsAdapter,
57
+ decisionErrorData,
58
+ decisionErrorKind,
51
59
  defineTool,
52
60
  defineWorkflow,
53
61
  isWorkflowRunTerminal