@github/copilot-sdk 1.0.19-preview.2 → 1.0.19-unstable.38345923974.g3754b70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/cliVersion.js +1 -1
- package/dist/cjs/client.js +0 -2
- package/dist/cjs/extension.js +0 -2
- package/dist/cjs/generated/rpc.js +1 -9
- package/dist/cliVersion.d.ts +1 -1
- package/dist/cliVersion.js +1 -1
- package/dist/client.js +0 -2
- package/dist/extension.d.ts +1 -1
- package/dist/extension.js +0 -2
- package/dist/generated/rpc.d.ts +0 -66
- package/dist/generated/rpc.js +1 -9
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +0 -19
- package/package.json +12 -12
package/dist/cjs/cliVersion.js
CHANGED
|
@@ -22,7 +22,7 @@ __export(cliVersion_exports, {
|
|
|
22
22
|
COPILOT_CLI_VERSION: () => COPILOT_CLI_VERSION
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(cliVersion_exports);
|
|
25
|
-
const COPILOT_CLI_VERSION = "1.0.95-
|
|
25
|
+
const COPILOT_CLI_VERSION = "1.0.95-0.unstable.r38345923974.g3754b70";
|
|
26
26
|
const COPILOT_CLI_USE_NPM_PACKAGE = false;
|
|
27
27
|
// Annotate the CommonJS export names for ESM import in node:
|
|
28
28
|
0 && (module.exports = {
|
package/dist/cjs/client.js
CHANGED
|
@@ -1315,7 +1315,6 @@ class CopilotClient {
|
|
|
1315
1315
|
isTerminal: tool.isTerminal
|
|
1316
1316
|
})),
|
|
1317
1317
|
toolSearch: config.toolSearch,
|
|
1318
|
-
imageGeneration: config.imageGeneration,
|
|
1319
1318
|
canvases: config.canvases?.map((canvas) => canvas.declaration),
|
|
1320
1319
|
requestCanvasRenderer: config.requestCanvasRenderer,
|
|
1321
1320
|
requestExtensions: config.requestExtensions,
|
|
@@ -1592,7 +1591,6 @@ class CopilotClient {
|
|
|
1592
1591
|
isTerminal: tool.isTerminal
|
|
1593
1592
|
})),
|
|
1594
1593
|
toolSearch: config.toolSearch,
|
|
1595
|
-
imageGeneration: config.imageGeneration,
|
|
1596
1594
|
canvases: config.canvases?.map((canvas) => canvas.declaration),
|
|
1597
1595
|
workflows: workflows?.map((workflow) => workflow.meta),
|
|
1598
1596
|
requestCanvasRenderer: config.requestCanvasRenderer,
|
package/dist/cjs/extension.js
CHANGED
|
@@ -42,14 +42,12 @@ async function joinSession(config = {}) {
|
|
|
42
42
|
const {
|
|
43
43
|
extensionSdkPath: _stripped,
|
|
44
44
|
skillProvider: _strippedSkillProvider,
|
|
45
|
-
imageGeneration: _strippedImageGeneration,
|
|
46
45
|
workflows,
|
|
47
46
|
requestedEnvironmentVariables,
|
|
48
47
|
...rest
|
|
49
48
|
} = config;
|
|
50
49
|
void _stripped;
|
|
51
50
|
void _strippedSkillProvider;
|
|
52
|
-
void _strippedImageGeneration;
|
|
53
51
|
return client.resumeSessionForExtension(
|
|
54
52
|
sessionId,
|
|
55
53
|
{
|
|
@@ -2590,15 +2590,7 @@ function createSessionRpc(connection, sessionId) {
|
|
|
2590
2590
|
*
|
|
2591
2591
|
* @param params Optional flags controlling which side effects the reload performs.
|
|
2592
2592
|
*/
|
|
2593
|
-
reload: async (params) => connection.sendRequest("session.plugins.reload", { ...params, sessionId })
|
|
2594
|
-
/**
|
|
2595
|
-
* Installs or updates the plugins the session's managed settings require now, without waiting for the next automatic attempt after a failure, then reloads plugins. Reports progress and failures with the same `session.info` and `session.warning` events as automatic preparation. Fails when the runtime does not prepare managed plugins for the session.
|
|
2596
|
-
*
|
|
2597
|
-
* @param params Plugins required by the session's managed settings to install or update again.
|
|
2598
|
-
*
|
|
2599
|
-
* @returns Per-plugin outcomes of retrying the plugins required by the session's managed settings.
|
|
2600
|
-
*/
|
|
2601
|
-
retryManaged: async (params) => connection.sendRequest("session.plugins.retryManaged", { ...params, sessionId })
|
|
2593
|
+
reload: async (params) => connection.sendRequest("session.plugins.reload", { ...params, sessionId })
|
|
2602
2594
|
},
|
|
2603
2595
|
/** @experimental */
|
|
2604
2596
|
provider: {
|
package/dist/cliVersion.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const COPILOT_CLI_VERSION = "1.0.95-
|
|
1
|
+
export declare const COPILOT_CLI_VERSION = "1.0.95-0.unstable.r38345923974.g3754b70";
|
|
2
2
|
export declare const COPILOT_CLI_USE_NPM_PACKAGE = false;
|
package/dist/cliVersion.js
CHANGED
package/dist/client.js
CHANGED
|
@@ -1295,7 +1295,6 @@ class CopilotClient {
|
|
|
1295
1295
|
isTerminal: tool.isTerminal
|
|
1296
1296
|
})),
|
|
1297
1297
|
toolSearch: config.toolSearch,
|
|
1298
|
-
imageGeneration: config.imageGeneration,
|
|
1299
1298
|
canvases: config.canvases?.map((canvas) => canvas.declaration),
|
|
1300
1299
|
requestCanvasRenderer: config.requestCanvasRenderer,
|
|
1301
1300
|
requestExtensions: config.requestExtensions,
|
|
@@ -1572,7 +1571,6 @@ class CopilotClient {
|
|
|
1572
1571
|
isTerminal: tool.isTerminal
|
|
1573
1572
|
})),
|
|
1574
1573
|
toolSearch: config.toolSearch,
|
|
1575
|
-
imageGeneration: config.imageGeneration,
|
|
1576
1574
|
canvases: config.canvases?.map((canvas) => canvas.declaration),
|
|
1577
1575
|
workflows: workflows?.map((workflow) => workflow.meta),
|
|
1578
1576
|
requestCanvasRenderer: config.requestCanvasRenderer,
|
package/dist/extension.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { CopilotSession } from "./session.js";
|
|
|
2
2
|
import { type PermissionHandler, type ResumeSessionConfig } from "./types.js";
|
|
3
3
|
import type { WorkflowHandle } from "./workflow.js";
|
|
4
4
|
export { Canvas, CanvasError, createCanvas, type CanvasAction, type CanvasDeclaration, type CanvasHostContext, type CanvasJsonSchema, type CanvasOptions, } from "./canvas.js";
|
|
5
|
-
export type JoinSessionConfig = Omit<ResumeSessionConfig, "onPermissionRequest" | "extensionSdkPath" | "skillProvider"
|
|
5
|
+
export type JoinSessionConfig = Omit<ResumeSessionConfig, "onPermissionRequest" | "extensionSdkPath" | "skillProvider"> & {
|
|
6
6
|
onPermissionRequest?: PermissionHandler;
|
|
7
7
|
/**
|
|
8
8
|
* Names of sensitive environment variables this extension needs, such as
|
package/dist/extension.js
CHANGED
|
@@ -23,14 +23,12 @@ async function joinSession(config = {}) {
|
|
|
23
23
|
const {
|
|
24
24
|
extensionSdkPath: _stripped,
|
|
25
25
|
skillProvider: _strippedSkillProvider,
|
|
26
|
-
imageGeneration: _strippedImageGeneration,
|
|
27
26
|
workflows,
|
|
28
27
|
requestedEnvironmentVariables,
|
|
29
28
|
...rest
|
|
30
29
|
} = config;
|
|
31
30
|
void _stripped;
|
|
32
31
|
void _strippedSkillProvider;
|
|
33
|
-
void _strippedImageGeneration;
|
|
34
32
|
return client.resumeSessionForExtension(
|
|
35
33
|
sessionId,
|
|
36
34
|
{
|
package/dist/generated/rpc.d.ts
CHANGED
|
@@ -2569,26 +2569,6 @@ export type SessionLogLevel =
|
|
|
2569
2569
|
| "warning"
|
|
2570
2570
|
/** Error message describing a failure. */
|
|
2571
2571
|
| "error";
|
|
2572
|
-
/**
|
|
2573
|
-
* What retrying did for one plugin required by managed settings.
|
|
2574
|
-
*
|
|
2575
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
2576
|
-
* via the `definition` "ManagedPluginRetryStatus".
|
|
2577
|
-
*/
|
|
2578
|
-
/** @experimental */
|
|
2579
|
-
export type ManagedPluginRetryStatus =
|
|
2580
|
-
/** The plugin was missing and is now installed. */
|
|
2581
|
-
"installed"
|
|
2582
|
-
/** An update was available and is now installed. */
|
|
2583
|
-
| "updated"
|
|
2584
|
-
/** The plugin was already installed and current, so nothing was done. */
|
|
2585
|
-
| "already_present"
|
|
2586
|
-
/** Checking, installing, or updating the plugin failed. See `error`. */
|
|
2587
|
-
| "failed"
|
|
2588
|
-
/** The plugin was not prepared because another session was changing plugins or the managed settings changed during the retry. It is prepared again before a later message. */
|
|
2589
|
-
| "deferred"
|
|
2590
|
-
/** The session's managed settings do not require this plugin, so nothing was done. */
|
|
2591
|
-
| "not_required";
|
|
2592
2572
|
/**
|
|
2593
2573
|
* A channel accepted by managedSettings.compose.
|
|
2594
2574
|
*
|
|
@@ -13666,24 +13646,6 @@ export interface ManagedMcpServerConfig {
|
|
|
13666
13646
|
*/
|
|
13667
13647
|
headersRefreshTtlMs?: number;
|
|
13668
13648
|
}
|
|
13669
|
-
/**
|
|
13670
|
-
* Retry outcome for one plugin required by managed settings.
|
|
13671
|
-
*
|
|
13672
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
13673
|
-
* via the `definition` "ManagedPluginRetryEntry".
|
|
13674
|
-
*/
|
|
13675
|
-
/** @experimental */
|
|
13676
|
-
export interface ManagedPluginRetryEntry {
|
|
13677
|
-
/**
|
|
13678
|
-
* Plugin spec in "plugin@marketplace" form.
|
|
13679
|
-
*/
|
|
13680
|
-
spec: string;
|
|
13681
|
-
status: ManagedPluginRetryStatus;
|
|
13682
|
-
/**
|
|
13683
|
-
* Why the plugin was not prepared. Present when `status` is `failed` or `deferred`.
|
|
13684
|
-
*/
|
|
13685
|
-
error?: string;
|
|
13686
|
-
}
|
|
13687
13649
|
/**
|
|
13688
13650
|
* Lock state and provenance of one managed setting.
|
|
13689
13651
|
*
|
|
@@ -24267,26 +24229,6 @@ export interface SessionPluginsInstallRequest {
|
|
|
24267
24229
|
*/
|
|
24268
24230
|
source: string;
|
|
24269
24231
|
}
|
|
24270
|
-
/** @experimental */
|
|
24271
|
-
export interface SessionPluginsRetryManagedRequest {
|
|
24272
|
-
/**
|
|
24273
|
-
* "plugin@marketplace" specs to retry. Omit to retry every plugin the session's managed settings require.
|
|
24274
|
-
*/
|
|
24275
|
-
plugins?: string[];
|
|
24276
|
-
}
|
|
24277
|
-
/**
|
|
24278
|
-
* Per-plugin outcomes of retrying the plugins required by the session's managed settings.
|
|
24279
|
-
*
|
|
24280
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
24281
|
-
* via the `definition` "SessionPluginsRetryManagedResult".
|
|
24282
|
-
*/
|
|
24283
|
-
/** @experimental */
|
|
24284
|
-
export interface SessionPluginsRetryManagedResult {
|
|
24285
|
-
/**
|
|
24286
|
-
* One entry per requested plugin, in request order. When no plugins were requested, one entry per plugin the managed settings require.
|
|
24287
|
-
*/
|
|
24288
|
-
plugins: ManagedPluginRetryEntry[];
|
|
24289
|
-
}
|
|
24290
24232
|
/**
|
|
24291
24233
|
* Outcome of the prune operation: deleted IDs, dry-run candidates, skipped IDs, total bytes freed, and the dry-run flag.
|
|
24292
24234
|
*
|
|
@@ -32808,14 +32750,6 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
32808
32750
|
* @param params Optional flags controlling which side effects the reload performs.
|
|
32809
32751
|
*/
|
|
32810
32752
|
reload: (params?: SessionPluginsReloadRequest) => Promise<void>;
|
|
32811
|
-
/**
|
|
32812
|
-
* Installs or updates the plugins the session's managed settings require now, without waiting for the next automatic attempt after a failure, then reloads plugins. Reports progress and failures with the same `session.info` and `session.warning` events as automatic preparation. Fails when the runtime does not prepare managed plugins for the session.
|
|
32813
|
-
*
|
|
32814
|
-
* @param params Plugins required by the session's managed settings to install or update again.
|
|
32815
|
-
*
|
|
32816
|
-
* @returns Per-plugin outcomes of retrying the plugins required by the session's managed settings.
|
|
32817
|
-
*/
|
|
32818
|
-
retryManaged: (params?: SessionPluginsRetryManagedRequest) => Promise<SessionPluginsRetryManagedResult>;
|
|
32819
32753
|
};
|
|
32820
32754
|
/** @experimental */
|
|
32821
32755
|
provider: {
|
package/dist/generated/rpc.js
CHANGED
|
@@ -2562,15 +2562,7 @@ function createSessionRpc(connection, sessionId) {
|
|
|
2562
2562
|
*
|
|
2563
2563
|
* @param params Optional flags controlling which side effects the reload performs.
|
|
2564
2564
|
*/
|
|
2565
|
-
reload: async (params) => connection.sendRequest("session.plugins.reload", { ...params, sessionId })
|
|
2566
|
-
/**
|
|
2567
|
-
* Installs or updates the plugins the session's managed settings require now, without waiting for the next automatic attempt after a failure, then reloads plugins. Reports progress and failures with the same `session.info` and `session.warning` events as automatic preparation. Fails when the runtime does not prepare managed plugins for the session.
|
|
2568
|
-
*
|
|
2569
|
-
* @param params Plugins required by the session's managed settings to install or update again.
|
|
2570
|
-
*
|
|
2571
|
-
* @returns Per-plugin outcomes of retrying the plugins required by the session's managed settings.
|
|
2572
|
-
*/
|
|
2573
|
-
retryManaged: async (params) => connection.sendRequest("session.plugins.retryManaged", { ...params, sessionId })
|
|
2565
|
+
reload: async (params) => connection.sendRequest("session.plugins.reload", { ...params, sessionId })
|
|
2574
2566
|
},
|
|
2575
2567
|
/** @experimental */
|
|
2576
2568
|
provider: {
|
package/dist/index.d.ts
CHANGED
|
@@ -13,5 +13,5 @@ export { defineWorkflow, WorkflowResumeError, isWorkflowRunTerminal } from "./wo
|
|
|
13
13
|
export { Canvas, CanvasError, createCanvas, type CanvasAction, type CanvasDeclaration, type CanvasHostContext, type CanvasHostContextCapabilities, type CanvasJsonSchema, type CanvasOptions, } from "./canvas.js";
|
|
14
14
|
export { defineTool, approveAll, createAttributedPermissionResult, convertMcpCallToolResult, createSessionFsAdapter, CopilotRequestHandler, CopilotWebSocketHandler, CopilotWebSocketCloseStatus, CopilotWebSocketForwarder, SessionFsSqliteTransactionFailure, SessionFsWriteFailure, SYSTEM_MESSAGE_SECTIONS, } from "./types.js";
|
|
15
15
|
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, 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, 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, SessionEvent, SessionEventHandler, SessionEventPayload, SessionEventType, SessionLifecycleEvent, SessionLifecycleEventMetadata, SessionLifecycleEventType, SessionLifecycleHandler, SessionHooks, SessionCreatedEvent, SessionDeletedEvent, SessionUpdatedEvent, SessionForegroundEvent, SessionBackgroundEvent, SessionContext, SessionListFilter, SessionMetadata, SessionUiApi, SessionFsConfig, SessionFsProvider, SessionFsFileInfo, SessionFsSqliteQueryResult, SessionFsSqliteQueryType, SessionFsSqliteProvider, SessionFsSqliteStatement, SessionFsSqliteTransactionErrorClass, SkillProvider, SkillProviderCallOptions, SkillProviderDescriptor, CopilotRequestContext, SystemMessageAppendConfig, SystemMessageConfig, SystemMessageCustomizeConfig, SystemMessageReplaceConfig, SystemMessageSection, TelemetryConfig, TraceContext, TraceContextProvider, Tool, ToolHandler, ToolInvocation, CurrentToolMetadata, ToolTelemetry, ToolResultObject, ToolSearchConfig,
|
|
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, 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, 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, SessionEvent, SessionEventHandler, SessionEventPayload, SessionEventType, SessionLifecycleEvent, SessionLifecycleEventMetadata, SessionLifecycleEventType, SessionLifecycleHandler, SessionHooks, SessionCreatedEvent, SessionDeletedEvent, SessionUpdatedEvent, SessionForegroundEvent, SessionBackgroundEvent, SessionContext, SessionListFilter, SessionMetadata, SessionUiApi, SessionFsConfig, SessionFsProvider, SessionFsFileInfo, SessionFsSqliteQueryResult, SessionFsSqliteQueryType, SessionFsSqliteProvider, SessionFsSqliteStatement, SessionFsSqliteTransactionErrorClass, SkillProvider, SkillProviderCallOptions, SkillProviderDescriptor, CopilotRequestContext, SystemMessageAppendConfig, SystemMessageConfig, SystemMessageCustomizeConfig, SystemMessageReplaceConfig, SystemMessageSection, TelemetryConfig, TraceContext, TraceContextProvider, Tool, ToolHandler, ToolInvocation, CurrentToolMetadata, ToolTelemetry, ToolResultObject, ToolSearchConfig, TypedSessionEventHandler, TypedSessionLifecycleHandler, ZodSchema, } from "./types.js";
|
|
17
17
|
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, WorkflowAgentSummary, } from "./workflow.js";
|
package/dist/types.d.ts
CHANGED
|
@@ -623,20 +623,6 @@ export declare function defineTool<T = unknown>(name: string, config: {
|
|
|
623
623
|
metadata?: Record<string, unknown>;
|
|
624
624
|
isTerminal?: boolean;
|
|
625
625
|
}): Tool<T>;
|
|
626
|
-
/**
|
|
627
|
-
* Non-persisted opt-in to image generation.
|
|
628
|
-
* @experimental This API may change or be removed in a future release.
|
|
629
|
-
*/
|
|
630
|
-
export interface ImageGenerationConfig {
|
|
631
|
-
/**
|
|
632
|
-
* Opt in to image generation through an authorized Copilot image model.
|
|
633
|
-
* False disables it; omission defaults to disabled on create/cold resume and
|
|
634
|
-
* preserves the setting on resident resume. Not persisted: re-supply after
|
|
635
|
-
* runtime restart. Policy, permissions, offline mode, and tool filters still
|
|
636
|
-
* apply. BYOK image generation is not supported.
|
|
637
|
-
*/
|
|
638
|
-
enabled?: boolean;
|
|
639
|
-
}
|
|
640
626
|
/**
|
|
641
627
|
* SDK-supplied override for the runtime's built-in tool-search behavior.
|
|
642
628
|
*
|
|
@@ -2131,11 +2117,6 @@ export interface SessionConfigBase {
|
|
|
2131
2117
|
* {@link SessionConfigBase.tools}.
|
|
2132
2118
|
*/
|
|
2133
2119
|
toolSearch?: ToolSearchConfig;
|
|
2134
|
-
/**
|
|
2135
|
-
* Image generation opt-in. Re-supply after runtime restart.
|
|
2136
|
-
* @experimental This API may change or be removed in a future release.
|
|
2137
|
-
*/
|
|
2138
|
-
imageGeneration?: ImageGenerationConfig;
|
|
2139
2120
|
/**
|
|
2140
2121
|
* List of tool names to allow. When specified, only these tools will be available.
|
|
2141
2122
|
*
|
package/package.json
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"url": "https://github.com/github/copilot-agent-runtime.git",
|
|
6
6
|
"directory": "src/sdk/nodejs"
|
|
7
7
|
},
|
|
8
|
-
"version": "1.0.19-
|
|
9
|
-
"copilotCliVersion": "1.0.95-
|
|
8
|
+
"version": "1.0.19-unstable.38345923974.g3754b70",
|
|
9
|
+
"copilotCliVersion": "1.0.95-0.unstable.r38345923974.g3754b70",
|
|
10
10
|
"description": "TypeScript SDK for programmatic control of GitHub Copilot CLI via JSON-RPC",
|
|
11
11
|
"main": "./dist/cjs/index.js",
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
@@ -104,18 +104,18 @@
|
|
|
104
104
|
"README.md"
|
|
105
105
|
],
|
|
106
106
|
"copilotRuntime": {
|
|
107
|
-
"sourceSha": "
|
|
108
|
-
"version": "1.0.95-
|
|
107
|
+
"sourceSha": "3754b70d619ba4bdb07120cf4c2f6cce0eea4500",
|
|
108
|
+
"version": "1.0.95-0.unstable.r38345923974.g3754b70",
|
|
109
109
|
"visibility": "public"
|
|
110
110
|
},
|
|
111
111
|
"optionalDependencies": {
|
|
112
|
-
"@github/copilot-sdk-darwin-arm64": "1.0.19-
|
|
113
|
-
"@github/copilot-sdk-darwin-x64": "1.0.19-
|
|
114
|
-
"@github/copilot-sdk-linux-arm64": "1.0.19-
|
|
115
|
-
"@github/copilot-sdk-linux-x64": "1.0.19-
|
|
116
|
-
"@github/copilot-sdk-linuxmusl-arm64": "1.0.19-
|
|
117
|
-
"@github/copilot-sdk-linuxmusl-x64": "1.0.19-
|
|
118
|
-
"@github/copilot-sdk-win32-arm64": "1.0.19-
|
|
119
|
-
"@github/copilot-sdk-win32-x64": "1.0.19-
|
|
112
|
+
"@github/copilot-sdk-darwin-arm64": "1.0.19-unstable.38345923974.g3754b70",
|
|
113
|
+
"@github/copilot-sdk-darwin-x64": "1.0.19-unstable.38345923974.g3754b70",
|
|
114
|
+
"@github/copilot-sdk-linux-arm64": "1.0.19-unstable.38345923974.g3754b70",
|
|
115
|
+
"@github/copilot-sdk-linux-x64": "1.0.19-unstable.38345923974.g3754b70",
|
|
116
|
+
"@github/copilot-sdk-linuxmusl-arm64": "1.0.19-unstable.38345923974.g3754b70",
|
|
117
|
+
"@github/copilot-sdk-linuxmusl-x64": "1.0.19-unstable.38345923974.g3754b70",
|
|
118
|
+
"@github/copilot-sdk-win32-arm64": "1.0.19-unstable.38345923974.g3754b70",
|
|
119
|
+
"@github/copilot-sdk-win32-x64": "1.0.19-unstable.38345923974.g3754b70"
|
|
120
120
|
}
|
|
121
121
|
}
|