@github/copilot-sdk 1.0.19-preview.0 → 1.0.19-preview.2

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.
@@ -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-0";
25
+ const COPILOT_CLI_VERSION = "1.0.95-2";
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 = {
@@ -1315,6 +1315,7 @@ class CopilotClient {
1315
1315
  isTerminal: tool.isTerminal
1316
1316
  })),
1317
1317
  toolSearch: config.toolSearch,
1318
+ imageGeneration: config.imageGeneration,
1318
1319
  canvases: config.canvases?.map((canvas) => canvas.declaration),
1319
1320
  requestCanvasRenderer: config.requestCanvasRenderer,
1320
1321
  requestExtensions: config.requestExtensions,
@@ -1591,6 +1592,7 @@ class CopilotClient {
1591
1592
  isTerminal: tool.isTerminal
1592
1593
  })),
1593
1594
  toolSearch: config.toolSearch,
1595
+ imageGeneration: config.imageGeneration,
1594
1596
  canvases: config.canvases?.map((canvas) => canvas.declaration),
1595
1597
  workflows: workflows?.map((workflow) => workflow.meta),
1596
1598
  requestCanvasRenderer: config.requestCanvasRenderer,
@@ -42,12 +42,14 @@ async function joinSession(config = {}) {
42
42
  const {
43
43
  extensionSdkPath: _stripped,
44
44
  skillProvider: _strippedSkillProvider,
45
+ imageGeneration: _strippedImageGeneration,
45
46
  workflows,
46
47
  requestedEnvironmentVariables,
47
48
  ...rest
48
49
  } = config;
49
50
  void _stripped;
50
51
  void _strippedSkillProvider;
52
+ void _strippedImageGeneration;
51
53
  return client.resumeSessionForExtension(
52
54
  sessionId,
53
55
  {
@@ -2590,7 +2590,15 @@ 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 })
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 })
2594
2602
  },
2595
2603
  /** @experimental */
2596
2604
  provider: {
@@ -1,2 +1,2 @@
1
- export declare const COPILOT_CLI_VERSION = "1.0.95-0";
1
+ export declare const COPILOT_CLI_VERSION = "1.0.95-2";
2
2
  export declare const COPILOT_CLI_USE_NPM_PACKAGE = false;
@@ -1,4 +1,4 @@
1
- const COPILOT_CLI_VERSION = "1.0.95-0";
1
+ const COPILOT_CLI_VERSION = "1.0.95-2";
2
2
  const COPILOT_CLI_USE_NPM_PACKAGE = false;
3
3
  export {
4
4
  COPILOT_CLI_USE_NPM_PACKAGE,
package/dist/client.js CHANGED
@@ -1295,6 +1295,7 @@ class CopilotClient {
1295
1295
  isTerminal: tool.isTerminal
1296
1296
  })),
1297
1297
  toolSearch: config.toolSearch,
1298
+ imageGeneration: config.imageGeneration,
1298
1299
  canvases: config.canvases?.map((canvas) => canvas.declaration),
1299
1300
  requestCanvasRenderer: config.requestCanvasRenderer,
1300
1301
  requestExtensions: config.requestExtensions,
@@ -1571,6 +1572,7 @@ class CopilotClient {
1571
1572
  isTerminal: tool.isTerminal
1572
1573
  })),
1573
1574
  toolSearch: config.toolSearch,
1575
+ imageGeneration: config.imageGeneration,
1574
1576
  canvases: config.canvases?.map((canvas) => canvas.declaration),
1575
1577
  workflows: workflows?.map((workflow) => workflow.meta),
1576
1578
  requestCanvasRenderer: config.requestCanvasRenderer,
@@ -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" | "imageGeneration"> & {
6
6
  onPermissionRequest?: PermissionHandler;
7
7
  /**
8
8
  * Names of sensitive environment variables this extension needs, such as
package/dist/extension.js CHANGED
@@ -23,12 +23,14 @@ async function joinSession(config = {}) {
23
23
  const {
24
24
  extensionSdkPath: _stripped,
25
25
  skillProvider: _strippedSkillProvider,
26
+ imageGeneration: _strippedImageGeneration,
26
27
  workflows,
27
28
  requestedEnvironmentVariables,
28
29
  ...rest
29
30
  } = config;
30
31
  void _stripped;
31
32
  void _strippedSkillProvider;
33
+ void _strippedImageGeneration;
32
34
  return client.resumeSessionForExtension(
33
35
  sessionId,
34
36
  {
@@ -2569,6 +2569,26 @@ 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";
2572
2592
  /**
2573
2593
  * A channel accepted by managedSettings.compose.
2574
2594
  *
@@ -13646,6 +13666,24 @@ export interface ManagedMcpServerConfig {
13646
13666
  */
13647
13667
  headersRefreshTtlMs?: number;
13648
13668
  }
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
+ }
13649
13687
  /**
13650
13688
  * Lock state and provenance of one managed setting.
13651
13689
  *
@@ -24229,6 +24267,26 @@ export interface SessionPluginsInstallRequest {
24229
24267
  */
24230
24268
  source: string;
24231
24269
  }
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
+ }
24232
24290
  /**
24233
24291
  * Outcome of the prune operation: deleted IDs, dry-run candidates, skipped IDs, total bytes freed, and the dry-run flag.
24234
24292
  *
@@ -32750,6 +32808,14 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
32750
32808
  * @param params Optional flags controlling which side effects the reload performs.
32751
32809
  */
32752
32810
  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>;
32753
32819
  };
32754
32820
  /** @experimental */
32755
32821
  provider: {
@@ -2562,7 +2562,15 @@ 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 })
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 })
2566
2574
  },
2567
2575
  /** @experimental */
2568
2576
  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, TypedSessionEventHandler, TypedSessionLifecycleHandler, ZodSchema, } from "./types.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, ImageGenerationConfig, 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,6 +623,20 @@ 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
+ }
626
640
  /**
627
641
  * SDK-supplied override for the runtime's built-in tool-search behavior.
628
642
  *
@@ -2117,6 +2131,11 @@ export interface SessionConfigBase {
2117
2131
  * {@link SessionConfigBase.tools}.
2118
2132
  */
2119
2133
  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;
2120
2139
  /**
2121
2140
  * List of tool names to allow. When specified, only these tools will be available.
2122
2141
  *
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-preview.0",
9
- "copilotCliVersion": "1.0.95-0",
8
+ "version": "1.0.19-preview.2",
9
+ "copilotCliVersion": "1.0.95-2",
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": "94f375f0098b266c43f7772797bc5f7b4ea12626",
108
- "version": "1.0.95-0",
107
+ "sourceSha": "7141da9d745b01be5cab64c32e5e2ef889db5383",
108
+ "version": "1.0.95-2",
109
109
  "visibility": "public"
110
110
  },
111
111
  "optionalDependencies": {
112
- "@github/copilot-sdk-darwin-arm64": "1.0.19-preview.0",
113
- "@github/copilot-sdk-darwin-x64": "1.0.19-preview.0",
114
- "@github/copilot-sdk-linux-arm64": "1.0.19-preview.0",
115
- "@github/copilot-sdk-linux-x64": "1.0.19-preview.0",
116
- "@github/copilot-sdk-linuxmusl-arm64": "1.0.19-preview.0",
117
- "@github/copilot-sdk-linuxmusl-x64": "1.0.19-preview.0",
118
- "@github/copilot-sdk-win32-arm64": "1.0.19-preview.0",
119
- "@github/copilot-sdk-win32-x64": "1.0.19-preview.0"
112
+ "@github/copilot-sdk-darwin-arm64": "1.0.19-preview.2",
113
+ "@github/copilot-sdk-darwin-x64": "1.0.19-preview.2",
114
+ "@github/copilot-sdk-linux-arm64": "1.0.19-preview.2",
115
+ "@github/copilot-sdk-linux-x64": "1.0.19-preview.2",
116
+ "@github/copilot-sdk-linuxmusl-arm64": "1.0.19-preview.2",
117
+ "@github/copilot-sdk-linuxmusl-x64": "1.0.19-preview.2",
118
+ "@github/copilot-sdk-win32-arm64": "1.0.19-preview.2",
119
+ "@github/copilot-sdk-win32-x64": "1.0.19-preview.2"
120
120
  }
121
121
  }