@github/copilot-sdk 1.0.12-unstable.0 → 1.0.13-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.
|
@@ -1991,7 +1991,7 @@ function createSessionRpc(connection, sessionId) {
|
|
|
1991
1991
|
*/
|
|
1992
1992
|
list: async () => connection.sendRequest("session.permissions.paths.list", { sessionId }),
|
|
1993
1993
|
/**
|
|
1994
|
-
* Adds a directory to the session's allow-list
|
|
1994
|
+
* Adds a directory to the session's allow-list.
|
|
1995
1995
|
*
|
|
1996
1996
|
* @param params Directory path to add to the session's allowed directories.
|
|
1997
1997
|
*
|
package/dist/generated/rpc.d.ts
CHANGED
|
@@ -796,6 +796,8 @@ export type DebugCollectLogsResultKind =
|
|
|
796
796
|
"archive"
|
|
797
797
|
/** A directory containing redacted files was written. */
|
|
798
798
|
| "directory";
|
|
799
|
+
/** @experimental */
|
|
800
|
+
export type DisableBypassPermissionsMode = "disable";
|
|
799
801
|
/**
|
|
800
802
|
* Persisted extension discovery source
|
|
801
803
|
*
|
|
@@ -8366,10 +8368,6 @@ export interface InstalledPlugin {
|
|
|
8366
8368
|
* Per-plugin source fingerprint (a SHA-256 hash of the plugin's catalog source spec plus its resolved source subtree — NOT a Git commit SHA) captured at marketplace install/update time. Auto-update compares it against the freshly recomputed fingerprint to detect a content change that does not bump the version. Absent for pre-existing installs and for direct (non-marketplace) installs.
|
|
8367
8369
|
*/
|
|
8368
8370
|
source_sha?: string;
|
|
8369
|
-
/**
|
|
8370
|
-
* Absolute path of the marketplace directory a live plugin was resolved from. Present only on live, never-persisted records — those synthesized at session start for a directory/local marketplace, whose cache_path points at the real plugin directory on disk rather than a copy under the installed-plugins cache. Its presence is what marks a record as live, and no record carrying it is ever written to the persisted installedPlugins key.
|
|
8371
|
-
*/
|
|
8372
|
-
installed_from?: string;
|
|
8373
8371
|
}
|
|
8374
8372
|
/**
|
|
8375
8373
|
* Source descriptor for a direct GitHub plugin install, with `owner/repo`, optional ref or full commit SHA, and optional subpath.
|
|
@@ -8474,10 +8472,6 @@ export interface InstalledPluginInfo {
|
|
|
8474
8472
|
* Whether the plugin is currently enabled for new sessions
|
|
8475
8473
|
*/
|
|
8476
8474
|
enabled: boolean;
|
|
8477
|
-
/**
|
|
8478
|
-
* Absolute path of the marketplace directory a live plugin was resolved from. Present only on live, never-persisted records — a plugin belonging to a directory/local marketplace, which is loaded from its real directory on every pass instead of a copy under the installed-plugins cache. Its presence is what marks a listed plugin as live: such a plugin is always present on disk, so `enabled` is its only meaningful state and it is never "not installed".
|
|
8479
|
-
*/
|
|
8480
|
-
installedFrom?: string;
|
|
8481
8475
|
}
|
|
8482
8476
|
/**
|
|
8483
8477
|
* Canonical file or directory where custom instructions can be discovered or created, with location, kind, preference, and project path.
|
|
@@ -11321,15 +11315,6 @@ export interface Model {
|
|
|
11321
11315
|
supportedContextTiers?: string[];
|
|
11322
11316
|
modelPickerCategory?: ModelPickerCategory;
|
|
11323
11317
|
modelPickerPriceCategory?: ModelPickerPriceCategory;
|
|
11324
|
-
warningText?: ModelWarningText;
|
|
11325
|
-
/**
|
|
11326
|
-
* Informational notices the service published for this model, such as an upcoming change or a recommended alternative. Present only when the service published at least one notice. Hosts should surface these without implying anything is wrong with the model.
|
|
11327
|
-
*/
|
|
11328
|
-
infoMessages?: ModelMessage[];
|
|
11329
|
-
/**
|
|
11330
|
-
* Warnings the service published for this model, such as a deprecated client version. Present only when the service published at least one warning. The model remains usable; hosts should surface these as advisory rather than blocking.
|
|
11331
|
-
*/
|
|
11332
|
-
warningMessages?: ModelMessage[];
|
|
11333
11318
|
}
|
|
11334
11319
|
/**
|
|
11335
11320
|
* Model capabilities and limits
|
|
@@ -11552,36 +11537,6 @@ export interface ModelBillingPromo {
|
|
|
11552
11537
|
*/
|
|
11553
11538
|
message?: string;
|
|
11554
11539
|
}
|
|
11555
|
-
/**
|
|
11556
|
-
* Service-published warning text that hosts should display when presenting a model.
|
|
11557
|
-
*
|
|
11558
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11559
|
-
* via the `definition` "ModelWarningText".
|
|
11560
|
-
*/
|
|
11561
|
-
/** @experimental */
|
|
11562
|
-
export interface ModelWarningText {
|
|
11563
|
-
/**
|
|
11564
|
-
* Data-retention warning for the model. The text may contain Markdown links and should be rendered as Markdown when supported.
|
|
11565
|
-
*/
|
|
11566
|
-
dataRetention?: string;
|
|
11567
|
-
}
|
|
11568
|
-
/**
|
|
11569
|
-
* A service-published message about a model, carrying a stable machine-readable code alongside human-readable text.
|
|
11570
|
-
*
|
|
11571
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11572
|
-
* via the `definition` "ModelMessage".
|
|
11573
|
-
*/
|
|
11574
|
-
/** @experimental */
|
|
11575
|
-
export interface ModelMessage {
|
|
11576
|
-
/**
|
|
11577
|
-
* Stable machine-readable identifier for the message, such as `client_version_deprecated`. Hosts can key custom presentation off this; unrecognized codes should fall back to displaying `message`.
|
|
11578
|
-
*/
|
|
11579
|
-
code: string;
|
|
11580
|
-
/**
|
|
11581
|
-
* Human-readable message text intended for display to the user.
|
|
11582
|
-
*/
|
|
11583
|
-
message: string;
|
|
11584
|
-
}
|
|
11585
11540
|
/**
|
|
11586
11541
|
* Managed, repository, and CLI model overrides to overlay onto the session at startup.
|
|
11587
11542
|
*
|
|
@@ -13090,7 +13045,7 @@ export interface PermissionLocationResolveResult {
|
|
|
13090
13045
|
/** @experimental */
|
|
13091
13046
|
export interface PermissionPathsAddParams {
|
|
13092
13047
|
/**
|
|
13093
|
-
* Directory to add to the allow-list. The runtime resolves and validates the path before adding
|
|
13048
|
+
* Directory to add to the allow-list. The runtime resolves and validates the path before adding.
|
|
13094
13049
|
*/
|
|
13095
13050
|
path: string;
|
|
13096
13051
|
}
|
|
@@ -13133,7 +13088,7 @@ export interface PermissionPathsConfig {
|
|
|
13133
13088
|
*/
|
|
13134
13089
|
unrestricted?: boolean;
|
|
13135
13090
|
/**
|
|
13136
|
-
* Additional directories to allow tool access to (in addition to the session's working directory).
|
|
13091
|
+
* Additional directories to allow tool access to (in addition to the session's working directory). When `unrestricted` is true, these are still pre-populated on the UnrestrictedPathManager so they remain visible via getDirectories() (e.g. for @-mention completion).
|
|
13137
13092
|
*/
|
|
13138
13093
|
additionalDirectories?: string[];
|
|
13139
13094
|
/**
|
|
@@ -15058,10 +15013,6 @@ export interface QueuePendingItemsResult {
|
|
|
15058
15013
|
* Display text for messages currently in the immediate steering queue (interjections sent during a running turn).
|
|
15059
15014
|
*/
|
|
15060
15015
|
steeringMessages: string[];
|
|
15061
|
-
/**
|
|
15062
|
-
* How many leading entries of `steeringMessages` have already been folded into the running turn (and so have an emitted `user.message`), as opposed to still waiting for one. Absent for hosts that do not distinguish the two.
|
|
15063
|
-
*/
|
|
15064
|
-
inFlightSteeringCount?: number;
|
|
15065
15016
|
}
|
|
15066
15017
|
/**
|
|
15067
15018
|
* Parameters for removing a queued item by stable id.
|
|
@@ -15594,7 +15545,7 @@ export interface SandboxConfig {
|
|
|
15594
15545
|
addCurrentWorkingDirectory?: boolean;
|
|
15595
15546
|
auth?: SandboxConfigAuth;
|
|
15596
15547
|
/**
|
|
15597
|
-
* Whether to auto-grant read access to the tool directories discovered on PATH and in toolchain environment variables (GOROOT, CARGO_HOME, JAVA_HOME, VIRTUAL_ENV, and similar), and to common developer-tool caches, registries, and toolchains in their default home locations (cargo, go, npm, Maven, and more), plus read-write access to (and up-front creation of) the scratch caches builds write on every run (go-build, ccache, sccache, Gradle caches, Cargo lock/tracker files), so builds work without extra configuration; a relocated CARGO_HOME additionally gets its Cargo lock files granted read-write. Set to false to disable every grant listed above: user-installed toolchains (rustup, nvm, pyenv, conda, pipx) then need explicit userPolicy.filesystem entries — readonlyPaths to read them, plus readwriteFiles for a relocated CARGO_HOME's .package-cache and .global-cache, which Cargo locks on every build. Only these developer-tool grants are affected: the working directory (see addCurrentWorkingDirectory), temporary storage, session log paths, and system locations follow their own rules and stay granted, so commands still run. Default: true (enabled by default; set to false to opt out).
|
|
15548
|
+
* Whether to auto-grant read access to the tool directories discovered on PATH and in toolchain environment variables (GOROOT, CARGO_HOME, JAVA_HOME, VIRTUAL_ENV, and similar), and to common developer-tool caches, registries, and toolchains in their default home locations (cargo, go, npm, Maven, and more), plus read-write access to (and, on Unix, up-front creation of) the scratch caches builds write on every run (go-build, ccache, sccache, Gradle caches, Cargo lock/tracker files), so builds work without extra configuration; a relocated CARGO_HOME additionally gets its Cargo lock files granted read-write. Set to false to disable every grant listed above: user-installed toolchains (rustup, nvm, pyenv, conda, pipx) then need explicit userPolicy.filesystem entries — readonlyPaths to read them, plus readwriteFiles for a relocated CARGO_HOME's .package-cache and .global-cache, which Cargo locks on every build. Only these developer-tool grants are affected: the working directory (see addCurrentWorkingDirectory), temporary storage, session log paths, and system locations follow their own rules and stay granted, so commands still run. Default: true (enabled by default; set to false to opt out).
|
|
15598
15549
|
*/
|
|
15599
15550
|
allowDevToolAccess?: boolean;
|
|
15600
15551
|
}
|
|
@@ -16898,10 +16849,6 @@ export interface SessionInstalledPlugin {
|
|
|
16898
16849
|
* Per-plugin source fingerprint (a SHA-256 hash of the plugin's catalog source spec plus its resolved source subtree — NOT a Git commit SHA) captured at marketplace install/update time. Auto-update compares it against the freshly recomputed fingerprint to detect a content change that does not bump the version. Absent for pre-existing installs and for direct (non-marketplace) installs.
|
|
16899
16850
|
*/
|
|
16900
16851
|
source_sha?: string;
|
|
16901
|
-
/**
|
|
16902
|
-
* Absolute path of the marketplace directory a live plugin was resolved from. Present only on live, never-persisted records — those synthesized at session start for a directory/local marketplace, whose cache_path points at the real plugin directory on disk rather than a copy under the installed-plugins cache. Its presence is what marks a record as live, and no record carrying it is ever written to the persisted installedPlugins key.
|
|
16903
|
-
*/
|
|
16904
|
-
installed_from?: string;
|
|
16905
16852
|
}
|
|
16906
16853
|
/**
|
|
16907
16854
|
* Source descriptor for a direct GitHub plugin install, with `owner/repo`, optional ref or full commit SHA, and optional subpath.
|
|
@@ -17105,10 +17052,7 @@ export interface SessionLoadDeferredRepoHooksResult {
|
|
|
17105
17052
|
*/
|
|
17106
17053
|
/** @experimental */
|
|
17107
17054
|
export interface SessionManagedPermissions {
|
|
17108
|
-
|
|
17109
|
-
* When set to `disable`, prevents bypass/allow-all permission modes. `allow-auto-only` blocks full allow-all but permits advisory auto-approval. Any other value is accepted rather than failing the session, but is enforced as `disable`: the key is only present to restrict something, so a mode this runtime cannot interpret fails closed to the most restrictive one it knows. Omit the key entirely to impose no restriction.
|
|
17110
|
-
*/
|
|
17111
|
-
disableBypassPermissionsMode?: string;
|
|
17055
|
+
disableBypassPermissionsMode?: DisableBypassPermissionsMode;
|
|
17112
17056
|
/**
|
|
17113
17057
|
* Permission rules that block matching operations. Deny has highest precedence.
|
|
17114
17058
|
*/
|
|
@@ -17313,7 +17257,7 @@ export interface SessionOpenOptions {
|
|
|
17313
17257
|
*/
|
|
17314
17258
|
workingDirectory?: string;
|
|
17315
17259
|
/**
|
|
17316
|
-
* Additional directories the agent may access beyond the working directory. Each entry is granted to the session's file-access allow-list and surfaced to the model (system prompt context and `@`-mention completion).
|
|
17260
|
+
* Additional directories the agent may access beyond the working directory. Each entry is granted to the session's file-access allow-list and surfaced to the model (system prompt context and `@`-mention completion). Absolute paths are recommended; a relative path is resolved against the session's working directory. Nonexistent or unresolvable entries are skipped with a warning. This is applied on both session creation and resume, and is not persisted: a resumed session that omits this option does not retain previously supplied directories (re-supply them, exactly as the CLI re-passes `--add-dir`).
|
|
17317
17261
|
*/
|
|
17318
17262
|
additionalDirectories?: string[];
|
|
17319
17263
|
workingDirectoryContext?: SessionContext;
|
|
@@ -23702,7 +23646,7 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
23702
23646
|
*/
|
|
23703
23647
|
list: () => Promise<PermissionPathsList>;
|
|
23704
23648
|
/**
|
|
23705
|
-
* Adds a directory to the session's allow-list
|
|
23649
|
+
* Adds a directory to the session's allow-list.
|
|
23706
23650
|
*
|
|
23707
23651
|
* @param params Directory path to add to the session's allowed directories.
|
|
23708
23652
|
*
|
package/dist/generated/rpc.js
CHANGED
|
@@ -1963,7 +1963,7 @@ function createSessionRpc(connection, sessionId) {
|
|
|
1963
1963
|
*/
|
|
1964
1964
|
list: async () => connection.sendRequest("session.permissions.paths.list", { sessionId }),
|
|
1965
1965
|
/**
|
|
1966
|
-
* Adds a directory to the session's allow-list
|
|
1966
|
+
* Adds a directory to the session's allow-list.
|
|
1967
1967
|
*
|
|
1968
1968
|
* @param params Directory path to add to the session's allowed directories.
|
|
1969
1969
|
*
|
|
@@ -9,7 +9,7 @@ export type JsonValue = null | boolean | number | string | JsonValue[] | {
|
|
|
9
9
|
/**
|
|
10
10
|
* Union of all session event variants emitted by the Copilot CLI runtime.
|
|
11
11
|
*/
|
|
12
|
-
export type SessionEvent = StartEvent | ResumeEvent | RemoteSteerableChangedEvent | ErrorEvent | IdleEvent | TitleChangedEvent | ScheduleCreatedEvent | ScheduleCancelledEvent | ScheduleRearmedEvent | AutopilotObjectiveChangedEvent | InfoEvent | WarningEvent | ModelChangeEvent | ModeChangedEvent | SessionLimitsChangedEvent | PermissionsChangedEvent | PlanChangedEvent | TodosChangedEvent | WorkspaceFileChangedEvent | HandoffEvent | TruncationEvent | SnapshotRewindEvent | ShutdownEvent | UsageCheckpointEvent | ContextChangedEvent | UsageInfoEvent | ContextClearedEvent | CompactionStartEvent | CompactionCompleteEvent | TaskCompleteEvent | UserMessageEvent | PendingMessagesModifiedEvent | AssistantTurnStartEvent | AssistantIntentEvent | AssistantServerToolProgressEvent | AssistantReasoningEvent | AssistantReasoningDeltaEvent | AssistantToolCallDeltaEvent | AssistantStreamingDeltaEvent | AssistantMessageEvent | AssistantMessageStartEvent | AssistantMessageDeltaEvent | AssistantTurnEndEvent | AssistantIdleEvent | AssistantUsageEvent | ModelCallFailureEvent |
|
|
12
|
+
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 | ContextClearedEvent | CompactionStartEvent | CompactionCompleteEvent | TaskCompleteEvent | UserMessageEvent | PendingMessagesModifiedEvent | AssistantTurnStartEvent | AssistantIntentEvent | AssistantServerToolProgressEvent | AssistantReasoningEvent | AssistantReasoningDeltaEvent | AssistantToolCallDeltaEvent | AssistantStreamingDeltaEvent | AssistantMessageEvent | AssistantMessageStartEvent | AssistantMessageDeltaEvent | AssistantTurnEndEvent | AssistantIdleEvent | AssistantUsageEvent | ModelCallFailureEvent | 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 | UIEphemeralQueryEvent | ExternalToolRequestedEvent | ExternalToolCompletedEvent | CommandQueuedEvent | CommandExecuteEvent | CommandCompletedEvent | AutoModeSwitchRequestedEvent | AutoModeSwitchCompletedEvent | SessionLimitsExhaustedRequestedEvent | SessionLimitsExhaustedCompletedEvent | AutoModeResolvedEvent | ManagedSettingsResolvedEvent | ManagedSettingsEnforcedEvent | CommandsChangedEvent | CapabilitiesChangedEvent | ExitPlanModeRequestedEvent | ExitPlanModeCompletedEvent | ToolsUpdatedEvent | BackgroundTasksChangedEvent | FactoryRunUpdatedEvent | FactoryRunStartedEvent | FactoryRunSettledEvent | SkillsLoadedEvent | CustomAgentsUpdatedEvent | McpServersLoadedEvent | McpServerStatusChangedEvent | McpToolsListChangedEvent | McpResourcesListChangedEvent | McpPromptsListChangedEvent | ExtensionsLoadedEvent | CanvasOpenedEvent | CanvasRegistryChangedEvent | CanvasClosedEvent | CanvasUnavailableEvent | CanvasRecordedEvent | CanvasRemovedEvent | ExtensionsAttachmentsPushedEvent | McpAppToolCallCompleteEvent;
|
|
13
13
|
/**
|
|
14
14
|
* Hosting platform type of the repository (github or ado)
|
|
15
15
|
*/
|
|
@@ -303,18 +303,6 @@ export type ModelCallFailureTransport =
|
|
|
303
303
|
"http"
|
|
304
304
|
/** WebSocket transport. */
|
|
305
305
|
| "websocket";
|
|
306
|
-
/**
|
|
307
|
-
* Final outcome of one logical model dispatch after response acceptance processing
|
|
308
|
-
*/
|
|
309
|
-
export type ModelCallFinishedOutcome =
|
|
310
|
-
/** The provider response was accepted for continued agent processing. */
|
|
311
|
-
"success"
|
|
312
|
-
/** The dispatch ended with a provider or transport error. */
|
|
313
|
-
| "error"
|
|
314
|
-
/** The dispatch was cancelled before an accepted response was produced. */
|
|
315
|
-
| "cancelled"
|
|
316
|
-
/** The provider response was rejected during post-response acceptance processing. */
|
|
317
|
-
| "rejected";
|
|
318
306
|
/**
|
|
319
307
|
* Finite reason code describing why the current turn was aborted
|
|
320
308
|
*/
|
|
@@ -677,9 +665,7 @@ export type ManagedSettingsEnforcedEscalation =
|
|
|
677
665
|
/** Unrestricted filesystem access outside the session's allowed directories. */
|
|
678
666
|
| "unrestricted_paths"
|
|
679
667
|
/** Unrestricted URL fetch access. */
|
|
680
|
-
| "unrestricted_urls"
|
|
681
|
-
/** A server-wide MCP "Always Allow" (or `--allow-tool <server>`) blanket that would auto-approve every tool from an MCP server. Capped to per-tool approval; each tool still prompts. */
|
|
682
|
-
| "server_wide_mcp_approval";
|
|
668
|
+
| "unrestricted_urls";
|
|
683
669
|
/**
|
|
684
670
|
* Exit plan mode action
|
|
685
671
|
*/
|
|
@@ -4119,10 +4105,6 @@ export interface AssistantUsageData {
|
|
|
4119
4105
|
* Number of output tokens produced
|
|
4120
4106
|
*/
|
|
4121
4107
|
outputTokens?: number;
|
|
4122
|
-
/**
|
|
4123
|
-
* Time to first observable model output in milliseconds. Includes text, reasoning, and tool-call output; only available for streaming requests that produce observable output.
|
|
4124
|
-
*/
|
|
4125
|
-
outputTtftMs?: number;
|
|
4126
4108
|
/**
|
|
4127
4109
|
* @deprecated
|
|
4128
4110
|
* Parent tool call ID when this usage originates from a sub-agent
|
|
@@ -4331,62 +4313,6 @@ export interface ModelCallFailureRequestFingerprint {
|
|
|
4331
4313
|
*/
|
|
4332
4314
|
toolResultMessageCount: number;
|
|
4333
4315
|
}
|
|
4334
|
-
/**
|
|
4335
|
-
* Session event "model.call_finished". Final lifecycle outcome for one logical model dispatch. A logical dispatch may include internal reconnect or fallback work, so event count is not provider HTTP-request count.
|
|
4336
|
-
*/
|
|
4337
|
-
export interface ModelCallFinishedEvent {
|
|
4338
|
-
/**
|
|
4339
|
-
* Sub-agent instance identifier. Absent for events from the root/main agent and session-level events.
|
|
4340
|
-
*/
|
|
4341
|
-
agentId?: string;
|
|
4342
|
-
data: ModelCallFinishedData;
|
|
4343
|
-
/**
|
|
4344
|
-
* Always true for events that are transient and not persisted to the session event log on disk.
|
|
4345
|
-
*/
|
|
4346
|
-
ephemeral: true;
|
|
4347
|
-
/**
|
|
4348
|
-
* Unique event identifier (UUID v4), generated when the event is emitted
|
|
4349
|
-
*/
|
|
4350
|
-
id: string;
|
|
4351
|
-
/**
|
|
4352
|
-
* ID of the chronologically preceding event in the session, forming a linked chain. Null for the first event.
|
|
4353
|
-
*/
|
|
4354
|
-
parentId: string | null;
|
|
4355
|
-
/**
|
|
4356
|
-
* ISO 8601 timestamp when the event was created
|
|
4357
|
-
*/
|
|
4358
|
-
timestamp: string;
|
|
4359
|
-
/**
|
|
4360
|
-
* Type discriminator. Always "model.call_finished".
|
|
4361
|
-
*/
|
|
4362
|
-
type: "model.call_finished";
|
|
4363
|
-
}
|
|
4364
|
-
/**
|
|
4365
|
-
* Final lifecycle outcome for one logical model dispatch. A logical dispatch may include internal reconnect or fallback work, so event count is not provider HTTP-request count.
|
|
4366
|
-
*/
|
|
4367
|
-
export interface ModelCallFinishedData {
|
|
4368
|
-
/**
|
|
4369
|
-
* Whether an accepted successful response requested the exact name and command semantics of a built-in file edit tool, including an external tool explicitly replacing that built-in name. Absent when the logical dispatch did not produce an accepted response.
|
|
4370
|
-
*/
|
|
4371
|
-
containsBuiltInFileEditRequest?: boolean;
|
|
4372
|
-
/**
|
|
4373
|
-
* Monotonic elapsed time spent in the logical model dispatch, including any internal transport reconnect or fallback and excluding orchestrator retry backoff, tool execution, confirmations, and post-response processing
|
|
4374
|
-
*/
|
|
4375
|
-
dispatchDurationMs: number;
|
|
4376
|
-
/**
|
|
4377
|
-
* Version of the built-in file-edit semantic classifier used for this event
|
|
4378
|
-
*/
|
|
4379
|
-
editClassifierVersion: number;
|
|
4380
|
-
/**
|
|
4381
|
-
* Identifier of the user interaction that owns the model dispatch, matching assistant.turn_start.interactionId when available
|
|
4382
|
-
*/
|
|
4383
|
-
interactionId?: string;
|
|
4384
|
-
outcome: ModelCallFinishedOutcome;
|
|
4385
|
-
/**
|
|
4386
|
-
* Agent-loop iteration within the interaction that initiated the model dispatch
|
|
4387
|
-
*/
|
|
4388
|
-
turnId: string;
|
|
4389
|
-
}
|
|
4390
4316
|
/**
|
|
4391
4317
|
* Session event "abort". Turn abort information including the reason for termination
|
|
4392
4318
|
*/
|
|
@@ -6858,10 +6784,6 @@ export interface PermissionPromptRequestMcp {
|
|
|
6858
6784
|
* @experimental
|
|
6859
6785
|
*/
|
|
6860
6786
|
assistedApproval?: PermissionAssistedApproval;
|
|
6861
|
-
/**
|
|
6862
|
-
* Whether the host may offer a server-wide "approve all tools from this server" blanket. Absent is treated as true; the runtime sends false when managed policy disables bypass-permissions mode, which forbids the server-wide escalation while still allowing per-tool approval.
|
|
6863
|
-
*/
|
|
6864
|
-
canOfferServerWideApproval?: boolean;
|
|
6865
6787
|
/**
|
|
6866
6788
|
* Prompt kind discriminator
|
|
6867
6789
|
*/
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "https://github.com/github/copilot-sdk.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.0.
|
|
7
|
+
"version": "1.0.13-preview.0",
|
|
8
8
|
"description": "TypeScript SDK for programmatic control of GitHub Copilot CLI via JSON-RPC",
|
|
9
9
|
"main": "./dist/cjs/index.js",
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"author": "GitHub",
|
|
57
57
|
"license": "MIT",
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@github/copilot": "^1.0.81-
|
|
59
|
+
"@github/copilot": "^1.0.81-6",
|
|
60
60
|
"koffi": "^3.1.0",
|
|
61
61
|
"vscode-jsonrpc": "^8.2.1",
|
|
62
62
|
"zod": "^4.3.6"
|