@github/copilot-sdk-win32-x64 1.0.16 → 1.0.17-preview.1
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/copilot-sdk/client.d.ts +1 -0
- package/copilot-sdk/extension.js +383 -242
- package/copilot-sdk/ffiRuntimeHost.d.ts +1 -0
- package/copilot-sdk/generated/rpc.d.ts +649 -14
- package/copilot-sdk/generated/session-events.d.ts +13 -3
- package/copilot-sdk/index.d.ts +1 -1
- package/copilot-sdk/index.js +383 -242
- package/copilot-sdk/session.d.ts +4 -1
- package/copilot-sdk/types.d.ts +17 -2
- package/package.json +3 -2
- package/prebuilds/win32-x64/OneAuthInterop.dll +0 -0
- package/prebuilds/win32-x64/copilot-runtime.exe +0 -0
- package/prebuilds/win32-x64/runtime.node +2 -2
- package/ripgrep/bin/win32-x64/rg.exe +0 -0
- package/schemas/api.schema.json +1022 -21
- package/schemas/session-events.schema.json +23 -5
- package/tgrep/bin/win32-x64/tgrep.exe +0 -0
package/copilot-sdk/session.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createSessionRpc } from "./generated/rpc.js";
|
|
2
2
|
import type { ModelSwitchAutoTierResult } from "./generated/rpc.js";
|
|
3
3
|
import type { OpenCanvasInstance } from "./generated/rpc.js";
|
|
4
|
-
import type { MessageOptions, ResponseSchema, ContextTier, ReasoningEffort, ReasoningSummary, AutoTier, ModelCapabilitiesOverride, SessionCapabilities, SessionEvent, SessionEventHandler, SessionEventType, SessionUiApi, TypedSessionEventHandler } from "./types.js";
|
|
4
|
+
import type { MessageOptions, ResponseSchema, ContextTier, ReasoningEffort, ReasoningSummary, AutoTier, ModelCapabilitiesOverride, SessionCapabilities, SessionEvent, SessionEventHandler, SessionEventType, SessionUiApi, TranscriptRecovery, TypedSessionEventHandler } from "./types.js";
|
|
5
5
|
import { type SessionWorkflowApi } from "./workflow.js";
|
|
6
6
|
/** Assistant message event - the final response from the assistant. */
|
|
7
7
|
export type AssistantMessageEvent = Extract<SessionEvent, {
|
|
@@ -41,6 +41,7 @@ export declare class CopilotSession {
|
|
|
41
41
|
readonly sessionId: string;
|
|
42
42
|
private connection;
|
|
43
43
|
private _workspacePath?;
|
|
44
|
+
private _transcriptRecovery?;
|
|
44
45
|
private eventHandlers;
|
|
45
46
|
private typedEventHandlers;
|
|
46
47
|
private toolHandlers;
|
|
@@ -97,6 +98,8 @@ export declare class CopilotSession {
|
|
|
97
98
|
* Undefined if infinite sessions are disabled.
|
|
98
99
|
*/
|
|
99
100
|
get workspacePath(): string | undefined;
|
|
101
|
+
/** Recovery observed while loading this session; undefined on a clean resume. */
|
|
102
|
+
get transcriptRecovery(): TranscriptRecovery | undefined;
|
|
100
103
|
/**
|
|
101
104
|
* Host capabilities reported when the session was created or resumed.
|
|
102
105
|
* Use this to check feature support before calling capability-gated APIs.
|
package/copilot-sdk/types.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ import type { ToolSet } from "./toolSet.js";
|
|
|
14
14
|
export type { RemoteSessionMode } from "./generated/rpc.js";
|
|
15
15
|
export type { CurrentToolMetadata } from "./generated/rpc.js";
|
|
16
16
|
export type { SandboxConfigSource } from "./generated/rpc.js";
|
|
17
|
-
export type { ConnectorAccountRequest, ConnectorAvailability, ConnectorCapabilities, ConnectorCatalogEntry, ConnectorCatalogResult, ConnectorCatalogStatus, ConnectorConnectRequest, ConnectorConnectResult, ConnectorContinueRequest, ConnectorDisconnectResult, ConnectorMcpStatus, ConnectorReconcileRequest, ConnectorRuntimeStatus, ConnectorStatus, ExtensionLaunchProfile, ExtensionLaunchProviderResolveRequest, ExtensionLaunchProviderResolveResult, GitHubTokenAcquireReason, GitHubTokenAcquireResult, GitHubTelemetryNotification, GitHubTelemetryEvent, GitHubTelemetryClientInfo, InstallationConfirmationRequest, InstallationConfirmationResponse, InstallationDecision, InstallationReview, McpInstallationReview, } from "./generated/rpc.js";
|
|
17
|
+
export type { AuthIdentityMetadata, AuthInfoType, ConnectorAccountRequest, ConnectorAvailability, ConnectorCapabilities, ConnectorCatalogEntry, ConnectorCatalogResult, ConnectorCatalogStatus, ConnectorConnectRequest, ConnectorConnectResult, ConnectorContinueRequest, ConnectorDisconnectResult, ConnectorMcpStatus, ConnectorReconcileRequest, ConnectorRuntimeStatus, ConnectorSessionAccount, ConnectorSessionAccountResult, ConnectorStatus, ExtensionLaunchProfile, ExtensionLaunchProviderResolveRequest, ExtensionLaunchProviderResolveResult, GitHubTokenAcquireReason, GitHubTokenAcquireResult, GitHubTelemetryNotification, GitHubTelemetryEvent, GitHubTelemetryClientInfo, InstallationConfirmationRequest, InstallationConfirmationResponse, InstallationDecision, InstallationReview, McpInstallationReview, } from "./generated/rpc.js";
|
|
18
18
|
/**
|
|
19
19
|
* Arguments passed to a session's {@link GitHubTokenProvider}.
|
|
20
20
|
*
|
|
@@ -2444,6 +2444,11 @@ export interface SessionConfig extends SessionConfigBase {
|
|
|
2444
2444
|
* {@link CopilotClient.resumeSession}.
|
|
2445
2445
|
*/
|
|
2446
2446
|
export interface ResumeSessionConfig extends SessionConfigBase {
|
|
2447
|
+
/**
|
|
2448
|
+
* Allow the runtime to recover a damaged transcript during resume.
|
|
2449
|
+
* Defaults to true in all modes. Set false to reject recovery.
|
|
2450
|
+
*/
|
|
2451
|
+
allowTranscriptRecovery?: boolean;
|
|
2447
2452
|
/**
|
|
2448
2453
|
* When true, skips emitting the session.resume event.
|
|
2449
2454
|
* Useful for reconnecting to a session without triggering resume-related side effects.
|
|
@@ -2453,7 +2458,8 @@ export interface ResumeSessionConfig extends SessionConfigBase {
|
|
|
2453
2458
|
/**
|
|
2454
2459
|
* When true, the runtime continues any tool calls or permission prompts that were
|
|
2455
2460
|
* still pending when the session was last suspended. When false (the default), the
|
|
2456
|
-
* runtime treats pending work as interrupted on resume.
|
|
2461
|
+
* runtime treats pending work as interrupted on resume. Completed tool results
|
|
2462
|
+
* already durably recorded by the runtime are preserved.
|
|
2457
2463
|
*
|
|
2458
2464
|
* For permission requests, the runtime re-emits `permission.requested` so the
|
|
2459
2465
|
* registered `onPermissionRequest` handler can re-prompt; for external tool calls,
|
|
@@ -2469,6 +2475,15 @@ export interface ResumeSessionConfig extends SessionConfigBase {
|
|
|
2469
2475
|
*/
|
|
2470
2476
|
openCanvases?: OpenCanvasInstance[];
|
|
2471
2477
|
}
|
|
2478
|
+
/** Transcript repair proposed during the most recent resume. */
|
|
2479
|
+
export interface TranscriptRecovery {
|
|
2480
|
+
/** Planned backup path; the backup is written on the next append. */
|
|
2481
|
+
plannedBackupPath: string;
|
|
2482
|
+
/** One-based physical line numbers removed from the transcript. */
|
|
2483
|
+
invalidLineNumbers: number[];
|
|
2484
|
+
/** Whether an existing session.start event was moved to the beginning. */
|
|
2485
|
+
sessionStartMoved: boolean;
|
|
2486
|
+
}
|
|
2472
2487
|
/**
|
|
2473
2488
|
* Arguments passed to a {@link BearerTokenProvider} callback when the runtime needs a
|
|
2474
2489
|
* fresh bearer token for a BYOK provider.
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@github/copilot-sdk-win32-x64",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17-preview.1",
|
|
4
4
|
"description": "Platform runtime for @github/copilot-sdk (win32-x64)",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "https://github.com/github/copilot-
|
|
7
|
+
"url": "https://github.com/github/copilot-agent-runtime.git",
|
|
8
|
+
"directory": "src/sdk/nodejs"
|
|
8
9
|
},
|
|
9
10
|
"license": "MIT",
|
|
10
11
|
"os": [
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/prebuilds/win32-x64/runtime.node
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 105172256 bytes
|
|
4
|
+
sha256: 0aca157a568da61163a7af4239de80bdf24b8beff01596efbecdd49056bb68e0
|
|
Binary file
|