@github/copilot-sdk 1.0.7-preview.3 → 1.0.8-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.
- package/dist/cjs/client.js +7 -6
- package/dist/cjs/generated/rpc.js +80 -3
- package/dist/client.js +7 -6
- package/dist/generated/rpc.d.ts +579 -7
- package/dist/generated/rpc.js +80 -3
- package/dist/generated/session-events.d.ts +344 -5
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +51 -0
- package/package.json +2 -2
package/dist/generated/rpc.js
CHANGED
|
@@ -734,6 +734,68 @@ function createSessionRpc(connection, sessionId) {
|
|
|
734
734
|
}
|
|
735
735
|
},
|
|
736
736
|
/** @experimental */
|
|
737
|
+
factory: {
|
|
738
|
+
/**
|
|
739
|
+
* Runs a registered factory by name at the top level.
|
|
740
|
+
*
|
|
741
|
+
* @param params Parameters for invoking a registered factory.
|
|
742
|
+
*
|
|
743
|
+
* @returns Complete current or terminal factory run envelope.
|
|
744
|
+
*/
|
|
745
|
+
run: async (params) => connection.sendRequest("session.factory.run", { sessionId, ...params }),
|
|
746
|
+
/**
|
|
747
|
+
* Gets the current or settled envelope for a factory run.
|
|
748
|
+
*
|
|
749
|
+
* @param params Parameters for retrieving a factory run.
|
|
750
|
+
*
|
|
751
|
+
* @returns Complete current or terminal factory run envelope.
|
|
752
|
+
*/
|
|
753
|
+
getRun: async (params) => connection.sendRequest("session.factory.getRun", { sessionId, ...params }),
|
|
754
|
+
/**
|
|
755
|
+
* Requests cancellation of a factory run and returns its run envelope.
|
|
756
|
+
*
|
|
757
|
+
* @param params Parameters for cancelling a factory run.
|
|
758
|
+
*
|
|
759
|
+
* @returns Complete current or terminal factory run envelope.
|
|
760
|
+
*/
|
|
761
|
+
cancel: async (params) => connection.sendRequest("session.factory.cancel", { sessionId, ...params }),
|
|
762
|
+
/**
|
|
763
|
+
* Records a batch of ordered factory progress lines.
|
|
764
|
+
*
|
|
765
|
+
* @param params Parameters for recording factory progress.
|
|
766
|
+
*
|
|
767
|
+
* @returns Acknowledgement that a factory request was accepted.
|
|
768
|
+
*/
|
|
769
|
+
log: async (params) => connection.sendRequest("session.factory.log", { sessionId, ...params }),
|
|
770
|
+
/**
|
|
771
|
+
* Runs one factory-scoped subagent and returns its result.
|
|
772
|
+
*
|
|
773
|
+
* @param params Parameters for one factory-scoped subagent call.
|
|
774
|
+
*
|
|
775
|
+
* @returns Result of one factory-scoped subagent call.
|
|
776
|
+
*/
|
|
777
|
+
agent: async (params) => connection.sendRequest("session.factory.agent", { sessionId, ...params }),
|
|
778
|
+
/** @experimental */
|
|
779
|
+
journal: {
|
|
780
|
+
/**
|
|
781
|
+
* Reads a memoized factory journal entry.
|
|
782
|
+
*
|
|
783
|
+
* @param params Parameters for reading a factory journal entry.
|
|
784
|
+
*
|
|
785
|
+
* @returns Result of reading a factory journal entry.
|
|
786
|
+
*/
|
|
787
|
+
get: async (params) => connection.sendRequest("session.factory.journal.get", { sessionId, ...params }),
|
|
788
|
+
/**
|
|
789
|
+
* Stores a memoized factory journal entry.
|
|
790
|
+
*
|
|
791
|
+
* @param params Parameters for storing a factory journal entry.
|
|
792
|
+
*
|
|
793
|
+
* @returns Acknowledgement that a factory request was accepted.
|
|
794
|
+
*/
|
|
795
|
+
put: async (params) => connection.sendRequest("session.factory.journal.put", { sessionId, ...params })
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
/** @experimental */
|
|
737
799
|
model: {
|
|
738
800
|
/**
|
|
739
801
|
* Gets the currently selected model for the session.
|
|
@@ -1091,7 +1153,7 @@ function createSessionRpc(connection, sessionId) {
|
|
|
1091
1153
|
*/
|
|
1092
1154
|
list: async () => connection.sendRequest("session.mcp.list", { sessionId }),
|
|
1093
1155
|
/**
|
|
1094
|
-
* Lists the tools exposed by a connected MCP server on this session's host.
|
|
1156
|
+
* Lists the tools exposed by a connected MCP server on this session's host. This performs a live `tools/list` request. Tool UI metadata is returned independently of whether MCP Apps rendering is enabled for the session.
|
|
1095
1157
|
*
|
|
1096
1158
|
* @param params Server name whose tool list should be returned.
|
|
1097
1159
|
*
|
|
@@ -1766,11 +1828,11 @@ function createSessionRpc(connection, sessionId) {
|
|
|
1766
1828
|
*/
|
|
1767
1829
|
getContextHeaviestMessages: async (params) => connection.sendRequest("session.metadata.getContextHeaviestMessages", { sessionId, ...params }),
|
|
1768
1830
|
/**
|
|
1769
|
-
* Records a working-directory/git context change and emits a `session.context_changed` event.
|
|
1831
|
+
* Records a working-directory/git context change and emits a `session.context_changed` event. For a local session, a report whose `cwd` diverges from the session's current working directory is ignored (the call still succeeds but records nothing and emits no event): a local session's working directory is authoritative and is moved via `metadata.setWorkingDirectory` (or an SDK `session.resume` that supplies a `workingDirectory`), not by this method.
|
|
1770
1832
|
*
|
|
1771
1833
|
* @param params Updated working-directory/git context to record on the session.
|
|
1772
1834
|
*
|
|
1773
|
-
* @returns Notify the session that its working directory context has changed. Emits a `session.context_changed` event so consumers (telemetry, OTel tracker, ACP, the timeline UI) can react. Use this when the host has detected a cwd/branch/repo change outside the session's normal lifecycle (e.g., after a shell command in interactive mode).
|
|
1835
|
+
* @returns Notify the session that its working directory context has changed. Emits a `session.context_changed` event so consumers (telemetry, OTel tracker, ACP, the timeline UI) can react. Use this when the host has detected a cwd/branch/repo change outside the session's normal lifecycle (e.g., after a shell command in interactive mode). For a local session, a report whose `cwd` diverges from the session's current working directory is ignored (the call still succeeds but records nothing and emits no event); move a local session's working directory via `metadata.setWorkingDirectory` instead.
|
|
1774
1836
|
*/
|
|
1775
1837
|
recordContextChange: async (params) => connection.sendRequest("session.metadata.recordContextChange", { sessionId, ...params }),
|
|
1776
1838
|
/**
|
|
@@ -2040,6 +2102,16 @@ function registerClientSessionApiHandlers(connection, getHandlers) {
|
|
|
2040
2102
|
if (!handler) throw new Error(`No providerToken handler registered for session: ${params.sessionId}`);
|
|
2041
2103
|
return handler.getToken(params);
|
|
2042
2104
|
});
|
|
2105
|
+
connection.onRequest("factory.execute", async (params) => {
|
|
2106
|
+
const handler = getHandlers(params.sessionId).factory;
|
|
2107
|
+
if (!handler) throw new Error(`No factory handler registered for session: ${params.sessionId}`);
|
|
2108
|
+
return handler.execute(params);
|
|
2109
|
+
});
|
|
2110
|
+
connection.onRequest("factory.abort", async (params) => {
|
|
2111
|
+
const handler = getHandlers(params.sessionId).factory;
|
|
2112
|
+
if (!handler) throw new Error(`No factory handler registered for session: ${params.sessionId}`);
|
|
2113
|
+
return handler.abort(params);
|
|
2114
|
+
});
|
|
2043
2115
|
connection.onRequest("sessionFs.readFile", async (params) => {
|
|
2044
2116
|
const handler = getHandlers(params.sessionId).sessionFs;
|
|
2045
2117
|
if (!handler) throw new Error(`No sessionFs handler registered for session: ${params.sessionId}`);
|
|
@@ -2117,6 +2189,11 @@ function registerClientSessionApiHandlers(connection, getHandlers) {
|
|
|
2117
2189
|
});
|
|
2118
2190
|
}
|
|
2119
2191
|
function registerClientGlobalApiHandlers(connection, handlers) {
|
|
2192
|
+
connection.onRequest("hooks.invoke", async (params) => {
|
|
2193
|
+
const handler = handlers.hooks;
|
|
2194
|
+
if (!handler) throw new Error("No hooks client-global handler registered");
|
|
2195
|
+
return handler.invoke(params);
|
|
2196
|
+
});
|
|
2120
2197
|
connection.onRequest("llmInference.httpRequestStart", async (params) => {
|
|
2121
2198
|
const handler = handlers.llmInference;
|
|
2122
2199
|
if (!handler) throw new Error("No llmInference client-global handler registered");
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* Union of all session event variants emitted by the Copilot CLI runtime.
|
|
7
7
|
*/
|
|
8
|
-
export type SessionEvent = StartEvent | ResumeEvent | RemoteSteerableChangedEvent | ErrorEvent | IdleEvent | TitleChangedEvent | ScheduleCreatedEvent | ScheduleCancelledEvent | ScheduleRearmedEvent | AutopilotObjectiveChangedEvent | InfoEvent | WarningEvent | ModelChangeEvent | ModeChangedEvent | SessionLimitsChangedEvent | PermissionsChangedEvent | PlanChangedEvent | TodosChangedEvent | WorkspaceFileChangedEvent | HandoffEvent | TruncationEvent | SnapshotRewindEvent | ShutdownEvent | UsageCheckpointEvent | ContextChangedEvent | UsageInfoEvent | CompactionStartEvent | CompactionCompleteEvent | TaskCompleteEvent | UserMessageEvent | PendingMessagesModifiedEvent | AssistantTurnStartEvent | AssistantIntentEvent | AssistantReasoningEvent | AssistantReasoningDeltaEvent | AssistantToolCallDeltaEvent | AssistantStreamingDeltaEvent | AssistantMessageEvent | AssistantMessageStartEvent | AssistantMessageDeltaEvent | AssistantTurnEndEvent | AssistantIdleEvent | AssistantUsageEvent | ModelCallFailureEvent | AbortEvent | ToolUserRequestedEvent | ToolExecutionStartEvent | ToolExecutionPartialResultEvent | ToolExecutionProgressEvent | ToolExecutionCompleteEvent | SkillInvokedEvent | SubagentStartedEvent | SubagentCompletedEvent | SubagentFailedEvent | SubagentSelectedEvent | SubagentDeselectedEvent | HookStartEvent | HookEndEvent | HookProgressEvent | BinaryAssetEvent | SystemMessageEvent | SystemNotificationEvent | PermissionRequestedEvent | PermissionCompletedEvent | UserInputRequestedEvent | UserInputCompletedEvent | ElicitationRequestedEvent | ElicitationCompletedEvent | SamplingRequestedEvent | SamplingCompletedEvent | McpOauthRequiredEvent | McpOauthCompletedEvent | McpHeadersRefreshRequiredEvent | McpHeadersRefreshCompletedEvent | CustomNotificationEvent | ExternalToolRequestedEvent | ExternalToolCompletedEvent | CommandQueuedEvent | CommandExecuteEvent | CommandCompletedEvent | AutoModeSwitchRequestedEvent | AutoModeSwitchCompletedEvent | SessionLimitsExhaustedRequestedEvent | SessionLimitsExhaustedCompletedEvent | AutoModeResolvedEvent | CommandsChangedEvent | CapabilitiesChangedEvent | ExitPlanModeRequestedEvent | ExitPlanModeCompletedEvent | ToolsUpdatedEvent | BackgroundTasksChangedEvent | SkillsLoadedEvent | CustomAgentsUpdatedEvent | McpServersLoadedEvent | McpServerStatusChangedEvent | McpToolsListChangedEvent | McpResourcesListChangedEvent | McpPromptsListChangedEvent | ExtensionsLoadedEvent | CanvasOpenedEvent | CanvasRegistryChangedEvent | CanvasClosedEvent | CanvasUnavailableEvent | CanvasRecordedEvent | CanvasRemovedEvent | ExtensionsAttachmentsPushedEvent | McpAppToolCallCompleteEvent;
|
|
8
|
+
export type SessionEvent = StartEvent | ResumeEvent | RemoteSteerableChangedEvent | ErrorEvent | IdleEvent | TitleChangedEvent | ScheduleCreatedEvent | ScheduleCancelledEvent | ScheduleRearmedEvent | AutopilotObjectiveChangedEvent | InfoEvent | WarningEvent | ModelChangeEvent | ModeChangedEvent | SessionLimitsChangedEvent | PermissionsChangedEvent | PlanChangedEvent | TodosChangedEvent | WorkspaceFileChangedEvent | HandoffEvent | TruncationEvent | SnapshotRewindEvent | ShutdownEvent | UsageCheckpointEvent | ContextChangedEvent | UsageInfoEvent | CompactionStartEvent | CompactionCompleteEvent | TaskCompleteEvent | UserMessageEvent | PendingMessagesModifiedEvent | AssistantTurnStartEvent | AssistantTurnRetryEvent | AssistantIntentEvent | AssistantServerToolProgressEvent | AssistantReasoningEvent | AssistantReasoningDeltaEvent | AssistantToolCallDeltaEvent | AssistantStreamingDeltaEvent | AssistantMessageEvent | AssistantMessageStartEvent | AssistantMessageDeltaEvent | AssistantTurnEndEvent | AssistantIdleEvent | AssistantUsageEvent | ModelCallFailureEvent | ModelCallStartEvent | AbortEvent | ToolUserRequestedEvent | ToolExecutionStartEvent | ToolExecutionPartialResultEvent | ToolExecutionProgressEvent | ToolExecutionCompleteEvent | ToolSearchActivatedEvent | SkillInvokedEvent | SubagentStartedEvent | SubagentCompletedEvent | SubagentFailedEvent | SubagentSelectedEvent | SubagentDeselectedEvent | HookStartEvent | HookEndEvent | HookProgressEvent | BinaryAssetEvent | SystemMessageEvent | SystemNotificationEvent | PermissionRequestedEvent | PermissionCompletedEvent | UserInputRequestedEvent | UserInputCompletedEvent | ElicitationRequestedEvent | ElicitationCompletedEvent | SamplingRequestedEvent | SamplingCompletedEvent | McpOauthRequiredEvent | McpOauthCompletedEvent | McpHeadersRefreshRequiredEvent | McpHeadersRefreshCompletedEvent | CustomNotificationEvent | ExternalToolRequestedEvent | ExternalToolCompletedEvent | CommandQueuedEvent | CommandExecuteEvent | CommandCompletedEvent | AutoModeSwitchRequestedEvent | AutoModeSwitchCompletedEvent | SessionLimitsExhaustedRequestedEvent | SessionLimitsExhaustedCompletedEvent | AutoModeResolvedEvent | ManagedSettingsResolvedEvent | ManagedSettingsEnforcedEvent | CommandsChangedEvent | CapabilitiesChangedEvent | ExitPlanModeRequestedEvent | ExitPlanModeCompletedEvent | ToolsUpdatedEvent | BackgroundTasksChangedEvent | SkillsLoadedEvent | CustomAgentsUpdatedEvent | McpServersLoadedEvent | McpServerStatusChangedEvent | McpToolsListChangedEvent | McpResourcesListChangedEvent | McpPromptsListChangedEvent | ExtensionsLoadedEvent | CanvasOpenedEvent | CanvasRegistryChangedEvent | CanvasClosedEvent | CanvasUnavailableEvent | CanvasRecordedEvent | CanvasRemovedEvent | ExtensionsAttachmentsPushedEvent | McpAppToolCallCompleteEvent;
|
|
9
9
|
/**
|
|
10
10
|
* Hosting platform type of the repository (github or ado)
|
|
11
11
|
*/
|
|
@@ -207,6 +207,14 @@ export type ModelCallFailureBadRequestKind =
|
|
|
207
207
|
"bodyless"
|
|
208
208
|
/** The 400 response carried a structured CAPI error envelope (deterministic validation failure). */
|
|
209
209
|
| "structured_error";
|
|
210
|
+
/**
|
|
211
|
+
* Boundary that produced a model call failure
|
|
212
|
+
*/
|
|
213
|
+
export type ModelCallFailureKind =
|
|
214
|
+
/** The provider returned an API error response. */
|
|
215
|
+
"api"
|
|
216
|
+
/** The request transport failed before a usable API response completed. */
|
|
217
|
+
| "transport";
|
|
210
218
|
/**
|
|
211
219
|
* Where the failed model call originated
|
|
212
220
|
*/
|
|
@@ -217,6 +225,14 @@ export type ModelCallFailureSource =
|
|
|
217
225
|
| "subagent"
|
|
218
226
|
/** Model call from MCP sampling. */
|
|
219
227
|
| "mcp_sampling";
|
|
228
|
+
/**
|
|
229
|
+
* Transport used for a failed model call
|
|
230
|
+
*/
|
|
231
|
+
export type ModelCallFailureTransport =
|
|
232
|
+
/** HTTP transport, including SSE streams. */
|
|
233
|
+
"http"
|
|
234
|
+
/** WebSocket transport. */
|
|
235
|
+
| "websocket";
|
|
220
236
|
/**
|
|
221
237
|
* Finite reason code describing why the current turn was aborted
|
|
222
238
|
*/
|
|
@@ -471,6 +487,36 @@ export type AutoModeResolvedReasoningBucket =
|
|
|
471
487
|
| "medium"
|
|
472
488
|
/** The request looks high-reasoning; a stronger model is appropriate. */
|
|
473
489
|
| "high";
|
|
490
|
+
/**
|
|
491
|
+
* Which channel supplied the effective enterprise managed settings (highest-authority present layer wins wholesale)
|
|
492
|
+
*/
|
|
493
|
+
export type ManagedSettingsResolvedSource =
|
|
494
|
+
/** Account/org policy self-fetched from the GitHub managed-settings endpoint (higher authority). */
|
|
495
|
+
"server"
|
|
496
|
+
/** Device-level MDM policy discovered from plist/registry/file (lower authority). */
|
|
497
|
+
| "device"
|
|
498
|
+
/** No managed policy is in force (no layer contributed). */
|
|
499
|
+
| "none";
|
|
500
|
+
/**
|
|
501
|
+
* The category of runtime action that enterprise managed settings governed (blocked or capped)
|
|
502
|
+
*/
|
|
503
|
+
export type ManagedSettingsEnforcedAction =
|
|
504
|
+
/** An attempt to turn on a bypass-permissions ("yolo") escalation was refused or capped because policy disables bypass-permissions mode. */
|
|
505
|
+
"bypass_permissions_blocked";
|
|
506
|
+
/**
|
|
507
|
+
* For a `bypass_permissions_blocked` action, which permission-escalation primitive was refused
|
|
508
|
+
*/
|
|
509
|
+
export type ManagedSettingsEnforcedEscalation =
|
|
510
|
+
/** Full allow-all ("/allow-all on") permissions — auto-approving tools, paths, and URLs. */
|
|
511
|
+
"allow_all"
|
|
512
|
+
/** Auto-approval of all tool permission requests. */
|
|
513
|
+
| "approve_all"
|
|
514
|
+
/** Advisory auto-approval ("/allow-all auto") mode — keeps normal prompt paths and adds LLM-advised approval, distinct from full allow-all. */
|
|
515
|
+
| "auto_approval"
|
|
516
|
+
/** Unrestricted filesystem access outside the session's allowed directories. */
|
|
517
|
+
| "unrestricted_paths"
|
|
518
|
+
/** Unrestricted URL fetch access. */
|
|
519
|
+
| "unrestricted_urls";
|
|
474
520
|
/**
|
|
475
521
|
* Exit plan mode action
|
|
476
522
|
*/
|
|
@@ -2904,6 +2950,23 @@ export interface AssistantTurnStartData {
|
|
|
2904
2950
|
*/
|
|
2905
2951
|
turnId: string;
|
|
2906
2952
|
}
|
|
2953
|
+
/**
|
|
2954
|
+
* Metadata for an additional model inference attempt within an existing assistant turn
|
|
2955
|
+
*/
|
|
2956
|
+
export interface AssistantTurnRetryData {
|
|
2957
|
+
/**
|
|
2958
|
+
* Model identifier used for this retry, when known
|
|
2959
|
+
*/
|
|
2960
|
+
model?: string;
|
|
2961
|
+
/**
|
|
2962
|
+
* Provider or runtime classification that caused the retry, when known
|
|
2963
|
+
*/
|
|
2964
|
+
reason?: string;
|
|
2965
|
+
/**
|
|
2966
|
+
* Identifier of the turn whose model inference is being retried
|
|
2967
|
+
*/
|
|
2968
|
+
turnId: string;
|
|
2969
|
+
}
|
|
2907
2970
|
/**
|
|
2908
2971
|
* Session event "assistant.intent". Agent intent description for current activity or plan
|
|
2909
2972
|
*/
|
|
@@ -2943,6 +3006,53 @@ export interface AssistantIntentData {
|
|
|
2943
3006
|
*/
|
|
2944
3007
|
intent: string;
|
|
2945
3008
|
}
|
|
3009
|
+
/**
|
|
3010
|
+
* Session event "assistant.server_tool_progress". Live progress signal for a provider-hosted server tool (e.g. hosted web search) while it runs, before the finalized serverTools envelope lands on the terminal assistant.message
|
|
3011
|
+
*/
|
|
3012
|
+
export interface AssistantServerToolProgressEvent {
|
|
3013
|
+
/**
|
|
3014
|
+
* Sub-agent instance identifier. Absent for events from the root/main agent and session-level events.
|
|
3015
|
+
*/
|
|
3016
|
+
agentId?: string;
|
|
3017
|
+
data: AssistantServerToolProgressData;
|
|
3018
|
+
/**
|
|
3019
|
+
* Always true for events that are transient and not persisted to the session event log on disk.
|
|
3020
|
+
*/
|
|
3021
|
+
ephemeral: true;
|
|
3022
|
+
/**
|
|
3023
|
+
* Unique event identifier (UUID v4), generated when the event is emitted
|
|
3024
|
+
*/
|
|
3025
|
+
id: string;
|
|
3026
|
+
/**
|
|
3027
|
+
* ID of the chronologically preceding event in the session, forming a linked chain. Null for the first event.
|
|
3028
|
+
*/
|
|
3029
|
+
parentId: string | null;
|
|
3030
|
+
/**
|
|
3031
|
+
* ISO 8601 timestamp when the event was created
|
|
3032
|
+
*/
|
|
3033
|
+
timestamp: string;
|
|
3034
|
+
/**
|
|
3035
|
+
* Type discriminator. Always "assistant.server_tool_progress".
|
|
3036
|
+
*/
|
|
3037
|
+
type: "assistant.server_tool_progress";
|
|
3038
|
+
}
|
|
3039
|
+
/**
|
|
3040
|
+
* Live progress signal for a provider-hosted server tool (e.g. hosted web search) while it runs, before the finalized serverTools envelope lands on the terminal assistant.message
|
|
3041
|
+
*/
|
|
3042
|
+
export interface AssistantServerToolProgressData {
|
|
3043
|
+
/**
|
|
3044
|
+
* Kind of hosted server tool that is running. Only `web_search` is emitted today.
|
|
3045
|
+
*/
|
|
3046
|
+
kind: string;
|
|
3047
|
+
/**
|
|
3048
|
+
* Position of the hosted tool call in the response output. Stable across the call's lifecycle events (unlike the provider's per-event item id, which CAPI rotates), so the host keys the live in-progress row on it.
|
|
3049
|
+
*/
|
|
3050
|
+
outputIndex: number;
|
|
3051
|
+
/**
|
|
3052
|
+
* Lifecycle status of the hosted call: `in_progress`, `searching`, or `completed`.
|
|
3053
|
+
*/
|
|
3054
|
+
status: string;
|
|
3055
|
+
}
|
|
2946
3056
|
/**
|
|
2947
3057
|
* Session event "assistant.reasoning". Assistant reasoning content for timeline display with complete thinking text
|
|
2948
3058
|
*/
|
|
@@ -3618,6 +3728,10 @@ export interface AssistantUsageData {
|
|
|
3618
3728
|
*/
|
|
3619
3729
|
apiCallId?: string;
|
|
3620
3730
|
apiEndpoint?: AssistantUsageApiEndpoint;
|
|
3731
|
+
/**
|
|
3732
|
+
* Updated prompt-cache expiration for this model call. Present only when the call establishes or refreshes known cache state.
|
|
3733
|
+
*/
|
|
3734
|
+
cacheExpiresAt?: string;
|
|
3621
3735
|
/**
|
|
3622
3736
|
* Number of tokens read from prompt cache
|
|
3623
3737
|
*/
|
|
@@ -3759,6 +3873,7 @@ export interface ModelCallFailureData {
|
|
|
3759
3873
|
* Completion ID from the model provider (e.g., chatcmpl-abc123)
|
|
3760
3874
|
*/
|
|
3761
3875
|
apiCallId?: string;
|
|
3876
|
+
apiEndpoint?: AssistantUsageApiEndpoint;
|
|
3762
3877
|
badRequestKind?: ModelCallFailureBadRequestKind;
|
|
3763
3878
|
/**
|
|
3764
3879
|
* Duration of the failed API call in milliseconds
|
|
@@ -3776,10 +3891,27 @@ export interface ModelCallFailureData {
|
|
|
3776
3891
|
* For HTTP 400 failures only: the `type` from the CAPI error envelope (e.g. 'websocket_error'), a coarser companion to errorCode for envelopes that carry no code. Raw server-controlled string, emitted only through restricted telemetry. Absent for bodyless or non-400 failures.
|
|
3777
3892
|
*/
|
|
3778
3893
|
errorType?: string;
|
|
3894
|
+
failureKind?: ModelCallFailureKind;
|
|
3779
3895
|
/**
|
|
3780
3896
|
* What initiated this API call (e.g., "sub-agent", "mcp-sampling"); absent for user-initiated calls
|
|
3781
3897
|
*/
|
|
3782
3898
|
initiator?: string;
|
|
3899
|
+
/**
|
|
3900
|
+
* Whether the session selected Auto mode for the failed call
|
|
3901
|
+
*/
|
|
3902
|
+
isAuto?: boolean;
|
|
3903
|
+
/**
|
|
3904
|
+
* Whether the failed call used a bring-your-own-key provider
|
|
3905
|
+
*/
|
|
3906
|
+
isByok?: boolean;
|
|
3907
|
+
/**
|
|
3908
|
+
* Effective maximum output-token limit for the failed call
|
|
3909
|
+
*/
|
|
3910
|
+
maxOutputTokens?: number;
|
|
3911
|
+
/**
|
|
3912
|
+
* Effective maximum prompt-token limit for the failed call
|
|
3913
|
+
*/
|
|
3914
|
+
maxPromptTokens?: number;
|
|
3783
3915
|
/**
|
|
3784
3916
|
* Model identifier used for the failed API call
|
|
3785
3917
|
*/
|
|
@@ -3788,6 +3920,10 @@ export interface ModelCallFailureData {
|
|
|
3788
3920
|
* GitHub request tracing ID (x-github-request-id header) for server-side log correlation
|
|
3789
3921
|
*/
|
|
3790
3922
|
providerCallId?: string;
|
|
3923
|
+
/**
|
|
3924
|
+
* Reasoning effort level used for the failed model call, if applicable
|
|
3925
|
+
*/
|
|
3926
|
+
reasoningEffort?: string;
|
|
3791
3927
|
requestFingerprint?: ModelCallFailureRequestFingerprint;
|
|
3792
3928
|
/**
|
|
3793
3929
|
* Copilot service request ID (x-copilot-service-request-id header) for CAPI log correlation
|
|
@@ -3798,6 +3934,7 @@ export interface ModelCallFailureData {
|
|
|
3798
3934
|
* HTTP status code from the failed request
|
|
3799
3935
|
*/
|
|
3800
3936
|
statusCode?: number;
|
|
3937
|
+
transport?: ModelCallFailureTransport;
|
|
3801
3938
|
}
|
|
3802
3939
|
/**
|
|
3803
3940
|
* Content-free structural summary of the failing request for diagnosing malformed 4xx calls
|
|
@@ -3832,6 +3969,19 @@ export interface ModelCallFailureRequestFingerprint {
|
|
|
3832
3969
|
*/
|
|
3833
3970
|
toolResultMessageCount: number;
|
|
3834
3971
|
}
|
|
3972
|
+
/**
|
|
3973
|
+
* Model API dispatch metadata for internal telemetry
|
|
3974
|
+
*/
|
|
3975
|
+
export interface ModelCallStartData {
|
|
3976
|
+
/**
|
|
3977
|
+
* Model identifier used for this API call, when known
|
|
3978
|
+
*/
|
|
3979
|
+
model?: string;
|
|
3980
|
+
/**
|
|
3981
|
+
* Identifier of the assistant turn that initiated the model call
|
|
3982
|
+
*/
|
|
3983
|
+
turnId: string;
|
|
3984
|
+
}
|
|
3835
3985
|
/**
|
|
3836
3986
|
* Session event "abort". Turn abort information including the reason for termination
|
|
3837
3987
|
*/
|
|
@@ -4677,6 +4827,49 @@ export interface ToolExecutionCompleteToolDescriptionMetaUI {
|
|
|
4677
4827
|
*/
|
|
4678
4828
|
visibility?: ToolExecutionCompleteToolDescriptionMetaUIVisibility[];
|
|
4679
4829
|
}
|
|
4830
|
+
/**
|
|
4831
|
+
* Session event "tool_search.activated". Persisted generic client-side tool activations restored when a session resumes.
|
|
4832
|
+
*/
|
|
4833
|
+
export interface ToolSearchActivatedEvent {
|
|
4834
|
+
/**
|
|
4835
|
+
* Sub-agent instance identifier. Absent for events from the root/main agent and session-level events.
|
|
4836
|
+
*/
|
|
4837
|
+
agentId?: string;
|
|
4838
|
+
data: ToolSearchActivatedData;
|
|
4839
|
+
/**
|
|
4840
|
+
* When true, the event is transient and not persisted to the session event log on disk
|
|
4841
|
+
*/
|
|
4842
|
+
ephemeral?: boolean;
|
|
4843
|
+
/**
|
|
4844
|
+
* Unique event identifier (UUID v4), generated when the event is emitted
|
|
4845
|
+
*/
|
|
4846
|
+
id: string;
|
|
4847
|
+
/**
|
|
4848
|
+
* ID of the chronologically preceding event in the session, forming a linked chain. Null for the first event.
|
|
4849
|
+
*/
|
|
4850
|
+
parentId: string | null;
|
|
4851
|
+
/**
|
|
4852
|
+
* ISO 8601 timestamp when the event was created
|
|
4853
|
+
*/
|
|
4854
|
+
timestamp: string;
|
|
4855
|
+
/**
|
|
4856
|
+
* Type discriminator. Always "tool_search.activated".
|
|
4857
|
+
*/
|
|
4858
|
+
type: "tool_search.activated";
|
|
4859
|
+
}
|
|
4860
|
+
/**
|
|
4861
|
+
* Persisted generic client-side tool activations restored when a session resumes.
|
|
4862
|
+
*/
|
|
4863
|
+
export interface ToolSearchActivatedData {
|
|
4864
|
+
/**
|
|
4865
|
+
* Tool-search strategy that activated the definitions.
|
|
4866
|
+
*/
|
|
4867
|
+
strategy: string;
|
|
4868
|
+
/**
|
|
4869
|
+
* Names of tool definitions activated by this search invocation.
|
|
4870
|
+
*/
|
|
4871
|
+
toolNames: string[];
|
|
4872
|
+
}
|
|
4680
4873
|
/**
|
|
4681
4874
|
* Session event "skill.invoked". Skill invocation details including content, allowed tools, and plugin metadata
|
|
4682
4875
|
*/
|
|
@@ -6851,6 +7044,7 @@ export interface McpOauthRequiredEvent {
|
|
|
6851
7044
|
* OAuth authentication request for an MCP server
|
|
6852
7045
|
*/
|
|
6853
7046
|
export interface McpOauthRequiredData {
|
|
7047
|
+
httpResponse?: McpOauthHttpResponse;
|
|
6854
7048
|
reason: McpOauthRequestReason;
|
|
6855
7049
|
/**
|
|
6856
7050
|
* Unique identifier for this OAuth request; used to respond via session.mcp.oauth.handlePendingRequest
|
|
@@ -6871,6 +7065,36 @@ export interface McpOauthRequiredData {
|
|
|
6871
7065
|
staticClientConfig?: McpOauthRequiredStaticClientConfig;
|
|
6872
7066
|
wwwAuthenticateParams?: McpOauthWWWAuthenticateParams;
|
|
6873
7067
|
}
|
|
7068
|
+
/**
|
|
7069
|
+
* Raw HTTP response details from the OAuth auth challenge, as observed by the runtime.
|
|
7070
|
+
*/
|
|
7071
|
+
export interface McpOauthHttpResponse {
|
|
7072
|
+
/**
|
|
7073
|
+
* Complete UTF-8 response body for host-specific challenge handling, including an empty string for an empty body. Omitted when the complete body is not valid UTF-8; body read failures fail the HTTP operation rather than exposing a partial response.
|
|
7074
|
+
*/
|
|
7075
|
+
body?: string;
|
|
7076
|
+
/**
|
|
7077
|
+
* HTTP response headers as observed by the runtime. Order and casing are transport-dependent, and duplicate header names may appear multiple times.
|
|
7078
|
+
*/
|
|
7079
|
+
headers: HeaderEntry[];
|
|
7080
|
+
/**
|
|
7081
|
+
* HTTP status code returned with the auth challenge.
|
|
7082
|
+
*/
|
|
7083
|
+
statusCode: number;
|
|
7084
|
+
}
|
|
7085
|
+
/**
|
|
7086
|
+
* Single HTTP header entry as a name/value pair.
|
|
7087
|
+
*/
|
|
7088
|
+
export interface HeaderEntry {
|
|
7089
|
+
/**
|
|
7090
|
+
* HTTP response header name as observed by the runtime.
|
|
7091
|
+
*/
|
|
7092
|
+
name: string;
|
|
7093
|
+
/**
|
|
7094
|
+
* HTTP response header value as observed by the runtime.
|
|
7095
|
+
*/
|
|
7096
|
+
value: string;
|
|
7097
|
+
}
|
|
6874
7098
|
/**
|
|
6875
7099
|
* Static OAuth client configuration, if the server specifies one
|
|
6876
7100
|
*/
|
|
@@ -7587,6 +7811,121 @@ export interface AutoModeResolvedData {
|
|
|
7587
7811
|
predictedLabel?: string;
|
|
7588
7812
|
reasoningBucket?: AutoModeResolvedReasoningBucket;
|
|
7589
7813
|
}
|
|
7814
|
+
/**
|
|
7815
|
+
* Session event "session.managed_settings_resolved". Enterprise managed-settings resolution: the effective managed settings the session applied and where they came from, so SDK clients can show users what is enterprise-managed and by which authority. Fires whenever managed policy is (re)applied — at session start, on resume, and on account switch. This is an ephemeral live snapshot (delivered to subscribers but not persisted to the session event log), because at session start it resolves before `session.start` is emitted; for a session-independent pull, use the SDK `getManagedSettings()` API, which returns the identical payload. Managed settings have a single authoritative source, so the highest-authority present layer (server > device) wins wholesale; `bypassPermissionsDisabled` is deny-wins across layers. Marked experimental while the managed-settings surface stabilizes.
|
|
7816
|
+
*/
|
|
7817
|
+
/** @experimental */
|
|
7818
|
+
export interface ManagedSettingsResolvedEvent {
|
|
7819
|
+
/**
|
|
7820
|
+
* Sub-agent instance identifier. Absent for events from the root/main agent and session-level events.
|
|
7821
|
+
*/
|
|
7822
|
+
agentId?: string;
|
|
7823
|
+
data: ManagedSettingsResolvedData;
|
|
7824
|
+
/**
|
|
7825
|
+
* Always true for events that are transient and not persisted to the session event log on disk.
|
|
7826
|
+
*/
|
|
7827
|
+
ephemeral: true;
|
|
7828
|
+
/**
|
|
7829
|
+
* Unique event identifier (UUID v4), generated when the event is emitted
|
|
7830
|
+
*/
|
|
7831
|
+
id: string;
|
|
7832
|
+
/**
|
|
7833
|
+
* ID of the chronologically preceding event in the session, forming a linked chain. Null for the first event.
|
|
7834
|
+
*/
|
|
7835
|
+
parentId: string | null;
|
|
7836
|
+
/**
|
|
7837
|
+
* ISO 8601 timestamp when the event was created
|
|
7838
|
+
*/
|
|
7839
|
+
timestamp: string;
|
|
7840
|
+
/**
|
|
7841
|
+
* Type discriminator. Always "session.managed_settings_resolved".
|
|
7842
|
+
*/
|
|
7843
|
+
type: "session.managed_settings_resolved";
|
|
7844
|
+
}
|
|
7845
|
+
/**
|
|
7846
|
+
* Enterprise managed-settings resolution: the effective managed settings the session applied and where they came from, so SDK clients can show users what is enterprise-managed and by which authority. Fires whenever managed policy is (re)applied — at session start, on resume, and on account switch. This is an ephemeral live snapshot (delivered to subscribers but not persisted to the session event log), because at session start it resolves before `session.start` is emitted; for a session-independent pull, use the SDK `getManagedSettings()` API, which returns the identical payload. Managed settings have a single authoritative source, so the highest-authority present layer (server > device) wins wholesale; `bypassPermissionsDisabled` is deny-wins across layers. Marked experimental while the managed-settings surface stabilizes.
|
|
7847
|
+
*/
|
|
7848
|
+
/** @experimental */
|
|
7849
|
+
export interface ManagedSettingsResolvedData {
|
|
7850
|
+
/**
|
|
7851
|
+
* Whether enterprise policy disables bypass-permissions ("yolo") mode for this session. Deny-wins across layers, and forced on when `failClosed` is true.
|
|
7852
|
+
*/
|
|
7853
|
+
bypassPermissionsDisabled: boolean;
|
|
7854
|
+
/**
|
|
7855
|
+
* Whether the device (MDM/plist/registry/file) managed-settings layer was present
|
|
7856
|
+
*/
|
|
7857
|
+
deviceManaged: boolean;
|
|
7858
|
+
/**
|
|
7859
|
+
* Whether managed policy could not be determined (e.g. a failed server fetch) and the session fell back to the fail-closed restriction. When true, restrictions such as disabling bypass-permissions are enforced even though `settings` may be absent.
|
|
7860
|
+
*/
|
|
7861
|
+
failClosed: boolean;
|
|
7862
|
+
/**
|
|
7863
|
+
* The setting keys under enterprise management in the effective managed settings (e.g. `model`, `enabledPlugins`, `permissions`). Empty when no managed settings are in force.
|
|
7864
|
+
*/
|
|
7865
|
+
managedKeys: string[];
|
|
7866
|
+
/**
|
|
7867
|
+
* Whether the server (account/org) managed-settings layer was present
|
|
7868
|
+
*/
|
|
7869
|
+
serverManaged: boolean;
|
|
7870
|
+
/**
|
|
7871
|
+
* The effective (resolved) managed settings values, so clients can render exactly what is enforced. Absent when no managed policy is in force.
|
|
7872
|
+
*/
|
|
7873
|
+
settings?: {
|
|
7874
|
+
[k: string]: unknown | undefined;
|
|
7875
|
+
};
|
|
7876
|
+
source: ManagedSettingsResolvedSource;
|
|
7877
|
+
}
|
|
7878
|
+
/**
|
|
7879
|
+
* Session event "session.managed_settings_enforced". Runtime enforcement of enterprise managed settings: fires when the session blocks or caps a runtime action because enterprise policy governs it, so SDK clients can explain *why* an action was governed. Unlike `session.managed_settings_resolved` (which reports *what* is managed), this reports a concrete governed action — e.g. a user or host tried to turn on a bypass-permissions escalation while policy disables it. Emitted live (not persisted to the session event log) on user/host-initiated attempts only, never for silent policy application. Marked experimental while the managed-settings surface stabilizes.
|
|
7880
|
+
*/
|
|
7881
|
+
/** @experimental */
|
|
7882
|
+
export interface ManagedSettingsEnforcedEvent {
|
|
7883
|
+
/**
|
|
7884
|
+
* Sub-agent instance identifier. Absent for events from the root/main agent and session-level events.
|
|
7885
|
+
*/
|
|
7886
|
+
agentId?: string;
|
|
7887
|
+
data: ManagedSettingsEnforcedData;
|
|
7888
|
+
/**
|
|
7889
|
+
* Always true for events that are transient and not persisted to the session event log on disk.
|
|
7890
|
+
*/
|
|
7891
|
+
ephemeral: true;
|
|
7892
|
+
/**
|
|
7893
|
+
* Unique event identifier (UUID v4), generated when the event is emitted
|
|
7894
|
+
*/
|
|
7895
|
+
id: string;
|
|
7896
|
+
/**
|
|
7897
|
+
* ID of the chronologically preceding event in the session, forming a linked chain. Null for the first event.
|
|
7898
|
+
*/
|
|
7899
|
+
parentId: string | null;
|
|
7900
|
+
/**
|
|
7901
|
+
* ISO 8601 timestamp when the event was created
|
|
7902
|
+
*/
|
|
7903
|
+
timestamp: string;
|
|
7904
|
+
/**
|
|
7905
|
+
* Type discriminator. Always "session.managed_settings_enforced".
|
|
7906
|
+
*/
|
|
7907
|
+
type: "session.managed_settings_enforced";
|
|
7908
|
+
}
|
|
7909
|
+
/**
|
|
7910
|
+
* Runtime enforcement of enterprise managed settings: fires when the session blocks or caps a runtime action because enterprise policy governs it, so SDK clients can explain *why* an action was governed. Unlike `session.managed_settings_resolved` (which reports *what* is managed), this reports a concrete governed action — e.g. a user or host tried to turn on a bypass-permissions escalation while policy disables it. Emitted live (not persisted to the session event log) on user/host-initiated attempts only, never for silent policy application. Marked experimental while the managed-settings surface stabilizes.
|
|
7911
|
+
*/
|
|
7912
|
+
/** @experimental */
|
|
7913
|
+
export interface ManagedSettingsEnforcedData {
|
|
7914
|
+
action: ManagedSettingsEnforcedAction;
|
|
7915
|
+
escalation?: ManagedSettingsEnforcedEscalation;
|
|
7916
|
+
/**
|
|
7917
|
+
* Whether the enforcement was forced by fail-closed handling (managed policy could not be determined) rather than an explicit managed setting. When true, `setting` still names the restriction that was applied.
|
|
7918
|
+
*/
|
|
7919
|
+
failClosed: boolean;
|
|
7920
|
+
/**
|
|
7921
|
+
* A human-readable explanation of why the action was governed, suitable for surfacing to the user.
|
|
7922
|
+
*/
|
|
7923
|
+
message: string;
|
|
7924
|
+
/**
|
|
7925
|
+
* The managed setting key responsible for the enforcement (e.g. `permissions.disableBypassPermissionsMode`).
|
|
7926
|
+
*/
|
|
7927
|
+
setting: string;
|
|
7928
|
+
}
|
|
7590
7929
|
/**
|
|
7591
7930
|
* Session event "commands.changed". SDK command registration change notification
|
|
7592
7931
|
*/
|
|
@@ -8131,7 +8470,7 @@ export interface McpServerStatusChangedData {
|
|
|
8131
8470
|
status: McpServerStatus;
|
|
8132
8471
|
}
|
|
8133
8472
|
/**
|
|
8134
|
-
* Session event "mcp.tools.list_changed". Payload
|
|
8473
|
+
* Session event "mcp.tools.list_changed". Payload identifying the MCP server associated with a list change.
|
|
8135
8474
|
*/
|
|
8136
8475
|
export interface McpToolsListChangedEvent {
|
|
8137
8476
|
/**
|
|
@@ -8161,7 +8500,7 @@ export interface McpToolsListChangedEvent {
|
|
|
8161
8500
|
type: "mcp.tools.list_changed";
|
|
8162
8501
|
}
|
|
8163
8502
|
/**
|
|
8164
|
-
* Payload
|
|
8503
|
+
* Payload identifying the MCP server associated with a list change.
|
|
8165
8504
|
*/
|
|
8166
8505
|
export interface McpListChangedData {
|
|
8167
8506
|
/**
|
|
@@ -8170,7 +8509,7 @@ export interface McpListChangedData {
|
|
|
8170
8509
|
serverName: string;
|
|
8171
8510
|
}
|
|
8172
8511
|
/**
|
|
8173
|
-
* Session event "mcp.resources.list_changed". Payload
|
|
8512
|
+
* Session event "mcp.resources.list_changed". Payload identifying the MCP server associated with a list change.
|
|
8174
8513
|
*/
|
|
8175
8514
|
export interface McpResourcesListChangedEvent {
|
|
8176
8515
|
/**
|
|
@@ -8200,7 +8539,7 @@ export interface McpResourcesListChangedEvent {
|
|
|
8200
8539
|
type: "mcp.resources.list_changed";
|
|
8201
8540
|
}
|
|
8202
8541
|
/**
|
|
8203
|
-
* Session event "mcp.prompts.list_changed". Payload
|
|
8542
|
+
* Session event "mcp.prompts.list_changed". Payload identifying the MCP server associated with a list change.
|
|
8204
8543
|
*/
|
|
8205
8544
|
export interface McpPromptsListChangedEvent {
|
|
8206
8545
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -10,4 +10,4 @@ export { CopilotSession, type AssistantMessageEvent } from "./session.js";
|
|
|
10
10
|
export { Canvas, CanvasError, createCanvas, type CanvasAction, type CanvasDeclaration, type CanvasHostContext, type CanvasHostContextCapabilities, type CanvasJsonSchema, type CanvasOptions, } from "./canvas.js";
|
|
11
11
|
export { defineTool, approveAll, convertMcpCallToolResult, createSessionFsAdapter, CopilotRequestHandler, CopilotWebSocketHandler, CopilotWebSocketCloseStatus, CopilotWebSocketForwarder, SYSTEM_MESSAGE_SECTIONS, } from "./types.js";
|
|
12
12
|
export type * from "./generated/session-events.js";
|
|
13
|
-
export type { CommandContext, CommandDefinition, CommandHandler, CanvasProviderIdentity, CloudSessionOptions, CloudSessionRepository, AutoModeSwitchHandler, AutoModeSwitchRequest, AutoModeSwitchResponse, CopilotClientMode, CopilotClientOptions, StdioRuntimeConnection, InProcessRuntimeConnection, TcpRuntimeConnection, UriRuntimeConnection, ChildProcessRuntimeConnection, CustomAgentConfig, ElicitationFieldValue, ElicitationHandler, ElicitationParams, ElicitationContext, ElicitationResult, ElicitationSchema, ElicitationSchemaField, ExitPlanModeHandler, ExitPlanModeRequest, ExitPlanModeResult, ExtensionInfo, ForegroundSessionInfo, GetAuthStatusResponse, GetStatusResponse, GitHubTelemetryNotification, GitHubTelemetryEvent, GitHubTelemetryClientInfo, InfiniteSessionConfig, LargeToolOutputConfig, MemoryConfiguration, UiInputOptions, MCPStdioServerConfig, MCPHTTPServerConfig, MCPServerConfig, DefaultAgentConfig, BearerTokenProvider, MessageOptions, ModelBilling, ModelBillingTokenPrices, ModelBillingTokenPricesLongContext, CapiSessionOptions, ModelCapabilities, ModelCapabilitiesOverride, ModelInfo, ModelPolicy, NamedProviderConfig, PermissionHandler, PermissionRequest, PermissionRequestResult, ProviderConfig, ProviderModelConfig, ProviderTokenArgs, RemoteSessionMode, ResumeSessionConfig, SectionOverride, SectionOverrideAction, SectionTransformFn, SessionCapabilities, SessionConfig, SessionConfigBase, SessionEvent, SessionEventHandler, SessionEventPayload, SessionEventType, SessionLifecycleEvent, SessionLifecycleEventMetadata, SessionLifecycleEventType, SessionLifecycleHandler, SessionCreatedEvent, SessionDeletedEvent, SessionUpdatedEvent, SessionForegroundEvent, SessionBackgroundEvent, SessionContext, SessionListFilter, SessionMetadata, SessionUiApi, SessionFsConfig, SessionFsProvider, SessionFsFileInfo, SessionFsSqliteQueryResult, SessionFsSqliteQueryType, SessionFsSqliteProvider, CopilotRequestContext, SystemMessageAppendConfig, SystemMessageConfig, SystemMessageCustomizeConfig, SystemMessageReplaceConfig, SystemMessageSection, TelemetryConfig, TraceContext, TraceContextProvider, Tool, ToolHandler, ToolInvocation, CurrentToolMetadata, ToolTelemetry, ToolResultObject, ToolSearchConfig, TypedSessionEventHandler, TypedSessionLifecycleHandler, ZodSchema, } from "./types.js";
|
|
13
|
+
export type { CommandContext, CommandDefinition, CommandHandler, CanvasProviderIdentity, CloudSessionOptions, CloudSessionRepository, AutoModeSwitchHandler, AutoModeSwitchRequest, AutoModeSwitchResponse, CopilotClientMode, CopilotClientOptions, CopilotExpAssignmentResponse, StdioRuntimeConnection, InProcessRuntimeConnection, TcpRuntimeConnection, UriRuntimeConnection, ChildProcessRuntimeConnection, CustomAgentConfig, ElicitationFieldValue, ElicitationHandler, ElicitationParams, ElicitationContext, ElicitationResult, ElicitationSchema, ElicitationSchemaField, ExpConfigEntry, ExpFlagValue, ExitPlanModeHandler, ExitPlanModeRequest, ExitPlanModeResult, ExtensionInfo, ForegroundSessionInfo, GetAuthStatusResponse, GetStatusResponse, GitHubTelemetryNotification, GitHubTelemetryEvent, GitHubTelemetryClientInfo, InfiniteSessionConfig, LargeToolOutputConfig, MemoryConfiguration, UiInputOptions, MCPStdioServerConfig, MCPHTTPServerConfig, MCPServerConfig, DefaultAgentConfig, BearerTokenProvider, MessageOptions, ModelBilling, ModelBillingTokenPrices, ModelBillingTokenPricesLongContext, CapiSessionOptions, ModelCapabilities, ModelCapabilitiesOverride, ModelInfo, ModelPolicy, NamedProviderConfig, PermissionHandler, PermissionRequest, PermissionRequestResult, ProviderConfig, ProviderModelConfig, ProviderTokenArgs, RemoteSessionMode, ResumeSessionConfig, SectionOverride, SectionOverrideAction, SectionTransformFn, SessionCapabilities, SessionConfig, SessionConfigBase, SessionEvent, SessionEventHandler, SessionEventPayload, SessionEventType, SessionLifecycleEvent, SessionLifecycleEventMetadata, SessionLifecycleEventType, SessionLifecycleHandler, SessionCreatedEvent, SessionDeletedEvent, SessionUpdatedEvent, SessionForegroundEvent, SessionBackgroundEvent, SessionContext, SessionListFilter, SessionMetadata, SessionUiApi, SessionFsConfig, SessionFsProvider, SessionFsFileInfo, SessionFsSqliteQueryResult, SessionFsSqliteQueryType, SessionFsSqliteProvider, CopilotRequestContext, SystemMessageAppendConfig, SystemMessageConfig, SystemMessageCustomizeConfig, SystemMessageReplaceConfig, SystemMessageSection, TelemetryConfig, TraceContext, TraceContextProvider, Tool, ToolHandler, ToolInvocation, CurrentToolMetadata, ToolTelemetry, ToolResultObject, ToolSearchConfig, TypedSessionEventHandler, TypedSessionLifecycleHandler, ZodSchema, } from "./types.js";
|