@github/copilot-sdk 1.0.15 → 1.0.16
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/README.md +136 -0
- package/dist/cjs/cliVersion.js +1 -1
- package/dist/cjs/client.js +319 -8
- package/dist/cjs/generated/rpc.js +116 -2
- package/dist/cjs/host.js +61 -0
- package/dist/cjs/index.js +3 -0
- package/dist/cliVersion.d.ts +1 -1
- package/dist/cliVersion.js +1 -1
- package/dist/client.d.ts +27 -1
- package/dist/client.js +316 -5
- package/dist/generated/rpc.d.ts +997 -14
- package/dist/generated/rpc.js +116 -2
- package/dist/generated/session-events.d.ts +81 -1
- package/dist/host.d.ts +86 -0
- package/dist/host.js +37 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +4 -0
- package/dist/types.d.ts +3 -0
- package/package.json +11 -10
package/dist/generated/rpc.d.ts
CHANGED
|
@@ -1743,6 +1743,24 @@ export type EntraTokenAcquireResult = {
|
|
|
1743
1743
|
*/
|
|
1744
1744
|
status: "interaction-required";
|
|
1745
1745
|
};
|
|
1746
|
+
/**
|
|
1747
|
+
* GitHub Mission Control compute kind.
|
|
1748
|
+
*
|
|
1749
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
1750
|
+
* via the `definition` "EnvironmentKind".
|
|
1751
|
+
*/
|
|
1752
|
+
/** @experimental */
|
|
1753
|
+
export type EnvironmentKind =
|
|
1754
|
+
/** A user-managed environment on a local machine. */
|
|
1755
|
+
"user-local"
|
|
1756
|
+
/** A user-managed environment in a GitHub Codespace. */
|
|
1757
|
+
| "user-codespace"
|
|
1758
|
+
/** A GitHub-managed environment backed by GitHub Actions. */
|
|
1759
|
+
| "managed-actions"
|
|
1760
|
+
/** A GitHub-managed sandbox environment. */
|
|
1761
|
+
| "managed-sandbox"
|
|
1762
|
+
/** A GitHub-managed cloud coding agent environment. */
|
|
1763
|
+
| "managed-cca";
|
|
1746
1764
|
/**
|
|
1747
1765
|
* Either '*' to receive all event types, or a non-empty list of event types to receive
|
|
1748
1766
|
*
|
|
@@ -2022,6 +2040,16 @@ export type HistoryRewindOutcome =
|
|
|
2022
2040
|
| "checkpoint-cleanup-failed"
|
|
2023
2041
|
/** Files and conversation were rewound, but obsolete file snapshots could not be removed; only conversation-and-files rewinds produce this. */
|
|
2024
2042
|
| "snapshot-prune-failed";
|
|
2043
|
+
/** @experimental */
|
|
2044
|
+
export type HostExitReason =
|
|
2045
|
+
/** The owner requested disposal. */
|
|
2046
|
+
"disposed"
|
|
2047
|
+
/** The hosting task or its SDK transport exited; this does not mean the runtime process exited. */
|
|
2048
|
+
| "exited"
|
|
2049
|
+
/** The owning SDK connection disconnected. */
|
|
2050
|
+
| "ownerDisconnected"
|
|
2051
|
+
/** The runtime is shutting down. */
|
|
2052
|
+
| "runtimeShutdown";
|
|
2025
2053
|
/**
|
|
2026
2054
|
* Only resource kinds with an implemented installation engine have a review variant.
|
|
2027
2055
|
*
|
|
@@ -3648,7 +3676,7 @@ export type OptionsUpdateToolFilterPrecedence =
|
|
|
3648
3676
|
* via the `definition` "PermissionDecision".
|
|
3649
3677
|
*/
|
|
3650
3678
|
/** @experimental */
|
|
3651
|
-
export type PermissionDecision = PermissionDecisionApproveOnce | PermissionDecisionApproveForSession | PermissionDecisionApproveForLocation | PermissionDecisionApprovePermanently | PermissionDecisionReject | PermissionDecisionUserNotAvailable | PermissionDecisionApproved | PermissionDecisionApprovedForSession | PermissionDecisionApprovedForLocation | PermissionDecisionCancelled | PermissionDecisionDeniedByRules | PermissionDecisionDeniedNoApprovalRuleAndCouldNotRequestFromUser | PermissionDecisionDeniedInteractivelyByUser | PermissionDecisionDeniedByContentExclusionPolicy | PermissionDecisionDeniedByPermissionRequestHook;
|
|
3679
|
+
export type PermissionDecision = PermissionDecisionApproveOnce | PermissionDecisionApproveForSession | PermissionDecisionApproveReadOnlyForSession | PermissionDecisionApproveForLocation | PermissionDecisionApprovePermanently | PermissionDecisionReject | PermissionDecisionUserNotAvailable | PermissionDecisionApproved | PermissionDecisionApprovedForSession | PermissionDecisionApprovedForLocation | PermissionDecisionCancelled | PermissionDecisionDeniedByRules | PermissionDecisionDeniedNoApprovalRuleAndCouldNotRequestFromUser | PermissionDecisionDeniedInteractivelyByUser | PermissionDecisionDeniedByContentExclusionPolicy | PermissionDecisionDeniedByPermissionRequestHook;
|
|
3652
3680
|
/**
|
|
3653
3681
|
* Session-scoped approval to remember (tool prompts only; omitted for path/url prompts)
|
|
3654
3682
|
*
|
|
@@ -4060,7 +4088,7 @@ export type ResponseFormat = {
|
|
|
4060
4088
|
type: "json_schema";
|
|
4061
4089
|
};
|
|
4062
4090
|
/**
|
|
4063
|
-
* Origin of the sandbox choice supplied by the host.
|
|
4091
|
+
* Origin of the sandbox choice supplied by the host. This value describes preference or session intent; it does not authorize bypassing managed policy.
|
|
4064
4092
|
*
|
|
4065
4093
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
4066
4094
|
* via the `definition` "SandboxConfigSource".
|
|
@@ -4073,7 +4101,7 @@ export type SandboxConfigSource =
|
|
|
4073
4101
|
| "user_enabled"
|
|
4074
4102
|
/** The user's persisted settings disabled the sandbox. */
|
|
4075
4103
|
| "user_disabled"
|
|
4076
|
-
/**
|
|
4104
|
+
/** An explicit session-scoped choice selected the sandbox state, such as a command-line flag. */
|
|
4077
4105
|
| "session_flag"
|
|
4078
4106
|
/** The user disabled the sandbox for the current session. */
|
|
4079
4107
|
| "session_disabled"
|
|
@@ -9866,6 +9894,148 @@ export interface EntraTokenAcquireRequest {
|
|
|
9866
9894
|
*/
|
|
9867
9895
|
accessTokenToRenew?: string;
|
|
9868
9896
|
}
|
|
9897
|
+
/**
|
|
9898
|
+
* Hosting capabilities and session capacity advertised by an environment.
|
|
9899
|
+
*
|
|
9900
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
9901
|
+
* via the `definition` "EnvironmentCapabilities".
|
|
9902
|
+
*/
|
|
9903
|
+
/** @experimental */
|
|
9904
|
+
export interface EnvironmentCapabilities {
|
|
9905
|
+
/**
|
|
9906
|
+
* Advertised Agent Host Protocol version.
|
|
9907
|
+
*/
|
|
9908
|
+
ahpVersion?: string;
|
|
9909
|
+
/**
|
|
9910
|
+
* Feature identifiers advertised by the environment.
|
|
9911
|
+
*/
|
|
9912
|
+
features: string[];
|
|
9913
|
+
/**
|
|
9914
|
+
* Maximum session capacity, when advertised.
|
|
9915
|
+
*/
|
|
9916
|
+
maxSessions?: number;
|
|
9917
|
+
/**
|
|
9918
|
+
* Current session count, when advertised.
|
|
9919
|
+
*/
|
|
9920
|
+
currentSessions?: number;
|
|
9921
|
+
}
|
|
9922
|
+
/**
|
|
9923
|
+
* Identify a user-managed Mission Control environment to delete.
|
|
9924
|
+
*
|
|
9925
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
9926
|
+
* via the `definition` "EnvironmentsDeleteRequest".
|
|
9927
|
+
*/
|
|
9928
|
+
/** @experimental */
|
|
9929
|
+
export interface EnvironmentsDeleteRequest {
|
|
9930
|
+
/**
|
|
9931
|
+
* User-managed environment to delete. GitHub-managed environments cannot be deleted.
|
|
9932
|
+
*/
|
|
9933
|
+
environmentId: string;
|
|
9934
|
+
}
|
|
9935
|
+
/**
|
|
9936
|
+
* Acknowledgement that the requested environment was deleted.
|
|
9937
|
+
*
|
|
9938
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
9939
|
+
* via the `definition` "EnvironmentsDeleteResult".
|
|
9940
|
+
*/
|
|
9941
|
+
/** @experimental */
|
|
9942
|
+
export interface EnvironmentsDeleteResult {
|
|
9943
|
+
}
|
|
9944
|
+
/**
|
|
9945
|
+
* Identify a Mission Control environment to retrieve.
|
|
9946
|
+
*
|
|
9947
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
9948
|
+
* via the `definition` "EnvironmentsGetRequest".
|
|
9949
|
+
*/
|
|
9950
|
+
/** @experimental */
|
|
9951
|
+
export interface EnvironmentsGetRequest {
|
|
9952
|
+
/**
|
|
9953
|
+
* Identifier assigned by Mission Control.
|
|
9954
|
+
*/
|
|
9955
|
+
environmentId: string;
|
|
9956
|
+
}
|
|
9957
|
+
/**
|
|
9958
|
+
* Safe discovery information for the requested environment.
|
|
9959
|
+
*
|
|
9960
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
9961
|
+
* via the `definition` "EnvironmentsGetResult".
|
|
9962
|
+
*/
|
|
9963
|
+
/** @experimental */
|
|
9964
|
+
export interface EnvironmentsGetResult {
|
|
9965
|
+
environment: GitHubEnvironment;
|
|
9966
|
+
}
|
|
9967
|
+
/**
|
|
9968
|
+
* Safe discovery information. Host-side relay bootstrap credentials are never included.
|
|
9969
|
+
*
|
|
9970
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
9971
|
+
* via the `definition` "GitHubEnvironment".
|
|
9972
|
+
*/
|
|
9973
|
+
/** @experimental */
|
|
9974
|
+
export interface GitHubEnvironment {
|
|
9975
|
+
/**
|
|
9976
|
+
* Identifier assigned by Mission Control.
|
|
9977
|
+
*/
|
|
9978
|
+
id: string;
|
|
9979
|
+
/**
|
|
9980
|
+
* Human-readable environment name.
|
|
9981
|
+
*/
|
|
9982
|
+
name: string;
|
|
9983
|
+
kind: EnvironmentKind;
|
|
9984
|
+
/**
|
|
9985
|
+
* Open-ended operational status vocabulary.
|
|
9986
|
+
*/
|
|
9987
|
+
status: string;
|
|
9988
|
+
capabilities?: EnvironmentCapabilities;
|
|
9989
|
+
/**
|
|
9990
|
+
* Identifier of the environment owner.
|
|
9991
|
+
*/
|
|
9992
|
+
ownerId?: string;
|
|
9993
|
+
/**
|
|
9994
|
+
* Owner category reported by Mission Control.
|
|
9995
|
+
*/
|
|
9996
|
+
ownerType?: string;
|
|
9997
|
+
/**
|
|
9998
|
+
* Organization identifier, when the environment belongs to an organization.
|
|
9999
|
+
*/
|
|
10000
|
+
orgId?: string;
|
|
10001
|
+
/**
|
|
10002
|
+
* Discovery labels attached to the environment.
|
|
10003
|
+
*/
|
|
10004
|
+
labels?: {
|
|
10005
|
+
[k: string]: string | undefined;
|
|
10006
|
+
};
|
|
10007
|
+
/**
|
|
10008
|
+
* Timestamp of the last heartbeat received by Mission Control.
|
|
10009
|
+
*/
|
|
10010
|
+
lastHeartbeatAt?: string;
|
|
10011
|
+
}
|
|
10012
|
+
/**
|
|
10013
|
+
* Optional discovery filters supported by GitHub Mission Control.
|
|
10014
|
+
*
|
|
10015
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
10016
|
+
* via the `definition` "EnvironmentsListRequest".
|
|
10017
|
+
*/
|
|
10018
|
+
/** @experimental */
|
|
10019
|
+
export interface EnvironmentsListRequest {
|
|
10020
|
+
kind?: EnvironmentKind;
|
|
10021
|
+
/**
|
|
10022
|
+
* Operational status, such as online, offline, degraded, waking, or draining.
|
|
10023
|
+
*/
|
|
10024
|
+
status?: string;
|
|
10025
|
+
}
|
|
10026
|
+
/**
|
|
10027
|
+
* Environments visible to the authenticated caller and matching the supplied filters.
|
|
10028
|
+
*
|
|
10029
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
10030
|
+
* via the `definition` "EnvironmentsListResult".
|
|
10031
|
+
*/
|
|
10032
|
+
/** @experimental */
|
|
10033
|
+
export interface EnvironmentsListResult {
|
|
10034
|
+
/**
|
|
10035
|
+
* Safe discovery records without relay bootstrap credentials.
|
|
10036
|
+
*/
|
|
10037
|
+
environments: GitHubEnvironment[];
|
|
10038
|
+
}
|
|
9869
10039
|
/**
|
|
9870
10040
|
* Cursor, batch size, and optional long-poll/filter parameters for reading session events.
|
|
9871
10041
|
*
|
|
@@ -11008,6 +11178,394 @@ export interface HooksDiscoverResult {
|
|
|
11008
11178
|
*/
|
|
11009
11179
|
errors: string[];
|
|
11010
11180
|
}
|
|
11181
|
+
/**
|
|
11182
|
+
* Normalized listener settings delivered only to the supervised hosting participant.
|
|
11183
|
+
*
|
|
11184
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11185
|
+
* via the `definition` "HostConfiguration".
|
|
11186
|
+
*/
|
|
11187
|
+
/** @experimental */
|
|
11188
|
+
export interface HostConfiguration {
|
|
11189
|
+
localServer?: HostLocalServerConfiguration;
|
|
11190
|
+
githubEnvironment?: HostGitHubEnvironmentOptions;
|
|
11191
|
+
/**
|
|
11192
|
+
* Whether session materialization is delegated to the owning application.
|
|
11193
|
+
*/
|
|
11194
|
+
sessionFactory: boolean;
|
|
11195
|
+
/**
|
|
11196
|
+
* Whether app-owned durable sessions are resumed by the owning application.
|
|
11197
|
+
*/
|
|
11198
|
+
resumeFactory: boolean;
|
|
11199
|
+
}
|
|
11200
|
+
/**
|
|
11201
|
+
* Normalized local WebSocket listener settings.
|
|
11202
|
+
*
|
|
11203
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11204
|
+
* via the `definition` "HostLocalServerConfiguration".
|
|
11205
|
+
*/
|
|
11206
|
+
/** @experimental */
|
|
11207
|
+
export interface HostLocalServerConfiguration {
|
|
11208
|
+
/**
|
|
11209
|
+
* Hostname or IP address to bind.
|
|
11210
|
+
*/
|
|
11211
|
+
hostname: string;
|
|
11212
|
+
/**
|
|
11213
|
+
* Port to bind, with zero requesting OS allocation.
|
|
11214
|
+
*/
|
|
11215
|
+
port: number;
|
|
11216
|
+
/**
|
|
11217
|
+
* Secret connection token, absent when authentication is disabled.
|
|
11218
|
+
*/
|
|
11219
|
+
token?: string;
|
|
11220
|
+
/**
|
|
11221
|
+
* Whether the listener requires token authentication.
|
|
11222
|
+
*/
|
|
11223
|
+
requireConnectionToken: boolean;
|
|
11224
|
+
}
|
|
11225
|
+
/**
|
|
11226
|
+
* GitHub Mission Control registration options. The compute ID is application-owned and stable.
|
|
11227
|
+
*
|
|
11228
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11229
|
+
* via the `definition` "HostGitHubEnvironmentOptions".
|
|
11230
|
+
*/
|
|
11231
|
+
/** @experimental */
|
|
11232
|
+
export interface HostGitHubEnvironmentOptions {
|
|
11233
|
+
/**
|
|
11234
|
+
* Human-readable environment display name.
|
|
11235
|
+
*/
|
|
11236
|
+
name: string;
|
|
11237
|
+
/**
|
|
11238
|
+
* Stable application installation identity, reused across host restarts.
|
|
11239
|
+
*/
|
|
11240
|
+
computeId: string;
|
|
11241
|
+
}
|
|
11242
|
+
/**
|
|
11243
|
+
* Stops a connection-owned listener and joins its teardown.
|
|
11244
|
+
*
|
|
11245
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11246
|
+
* via the `definition` "HostDisposeRequest".
|
|
11247
|
+
*/
|
|
11248
|
+
/** @experimental */
|
|
11249
|
+
export interface HostDisposeRequest {
|
|
11250
|
+
/**
|
|
11251
|
+
* Listener UUID. Unknown or successfully stopped IDs are harmless.
|
|
11252
|
+
*/
|
|
11253
|
+
hostId: string;
|
|
11254
|
+
}
|
|
11255
|
+
/**
|
|
11256
|
+
* Empty acknowledgement for a completed host lifecycle operation.
|
|
11257
|
+
*
|
|
11258
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11259
|
+
* via the `definition` "HostEmptyResult".
|
|
11260
|
+
*/
|
|
11261
|
+
/** @experimental */
|
|
11262
|
+
export interface HostEmptyResult {
|
|
11263
|
+
}
|
|
11264
|
+
/**
|
|
11265
|
+
* Private credentials delivered only to a runtime-owned Mission Control hosting participant.
|
|
11266
|
+
*
|
|
11267
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11268
|
+
* via the `definition` "HostEnvironmentCredentials".
|
|
11269
|
+
*/
|
|
11270
|
+
/** @experimental */
|
|
11271
|
+
export interface HostEnvironmentCredentials {
|
|
11272
|
+
/**
|
|
11273
|
+
* Current bearer token for the authenticated GitHub identity.
|
|
11274
|
+
*/
|
|
11275
|
+
token: string;
|
|
11276
|
+
/**
|
|
11277
|
+
* Hostname of the authenticated GitHub service.
|
|
11278
|
+
*/
|
|
11279
|
+
githubHost: string;
|
|
11280
|
+
/**
|
|
11281
|
+
* GitHub API base URL for the authenticated service.
|
|
11282
|
+
*/
|
|
11283
|
+
githubApiUrl: string;
|
|
11284
|
+
/**
|
|
11285
|
+
* Mission Control API origin for environment registration and management.
|
|
11286
|
+
*/
|
|
11287
|
+
missionControlUrl: string;
|
|
11288
|
+
}
|
|
11289
|
+
/**
|
|
11290
|
+
* Reports a supervised listener's hosting-task termination and cleanup outcome.
|
|
11291
|
+
*
|
|
11292
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11293
|
+
* via the `definition` "HostExitedNotification".
|
|
11294
|
+
*/
|
|
11295
|
+
/** @experimental */
|
|
11296
|
+
export interface HostExitedNotification {
|
|
11297
|
+
/**
|
|
11298
|
+
* Listener UUID.
|
|
11299
|
+
*/
|
|
11300
|
+
hostId: string;
|
|
11301
|
+
reason: HostExitReason;
|
|
11302
|
+
/**
|
|
11303
|
+
* Process exit status when available; absent for in-process listener tasks.
|
|
11304
|
+
*/
|
|
11305
|
+
exitCode?: number | null;
|
|
11306
|
+
/**
|
|
11307
|
+
* Explicit startup or teardown failure, when present.
|
|
11308
|
+
*/
|
|
11309
|
+
error?: string | null;
|
|
11310
|
+
}
|
|
11311
|
+
/**
|
|
11312
|
+
* Local WebSocket transport options.
|
|
11313
|
+
*
|
|
11314
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11315
|
+
* via the `definition` "HostLocalServerOptions".
|
|
11316
|
+
*/
|
|
11317
|
+
/** @experimental */
|
|
11318
|
+
export interface HostLocalServerOptions {
|
|
11319
|
+
/**
|
|
11320
|
+
* Listener hostname. Defaults to 127.0.0.1; explicit non-loopback binds are allowed.
|
|
11321
|
+
*/
|
|
11322
|
+
hostname?: string;
|
|
11323
|
+
/**
|
|
11324
|
+
* Listener port. Omitted or zero requests an OS-allocated port.
|
|
11325
|
+
*/
|
|
11326
|
+
port?: number;
|
|
11327
|
+
/**
|
|
11328
|
+
* Nonempty connection token. Generated randomly when required and omitted.
|
|
11329
|
+
*/
|
|
11330
|
+
token?: string;
|
|
11331
|
+
/**
|
|
11332
|
+
* Require token authentication (default true). Cannot be false with a token.
|
|
11333
|
+
*/
|
|
11334
|
+
requireConnectionToken?: boolean;
|
|
11335
|
+
}
|
|
11336
|
+
/**
|
|
11337
|
+
* Publishes a resident session attached to the listener's owning connection.
|
|
11338
|
+
*
|
|
11339
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11340
|
+
* via the `definition` "HostPublishSessionRequest".
|
|
11341
|
+
*/
|
|
11342
|
+
/** @experimental */
|
|
11343
|
+
export interface HostPublishSessionRequest {
|
|
11344
|
+
/**
|
|
11345
|
+
* Listener UUID returned by host.start.
|
|
11346
|
+
*/
|
|
11347
|
+
hostId: string;
|
|
11348
|
+
/**
|
|
11349
|
+
* Canonical runtime session ID attached to the listener's owning connection.
|
|
11350
|
+
*/
|
|
11351
|
+
sessionId: string;
|
|
11352
|
+
}
|
|
11353
|
+
/**
|
|
11354
|
+
* The existing runtime identity and its resource on the listener.
|
|
11355
|
+
*
|
|
11356
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11357
|
+
* via the `definition` "HostPublishSessionResult".
|
|
11358
|
+
*/
|
|
11359
|
+
/** @experimental */
|
|
11360
|
+
export interface HostPublishSessionResult {
|
|
11361
|
+
/**
|
|
11362
|
+
* Canonical runtime ID of the published session.
|
|
11363
|
+
*/
|
|
11364
|
+
sessionId: string;
|
|
11365
|
+
/**
|
|
11366
|
+
* AHP resource URI for the session on this listener.
|
|
11367
|
+
*/
|
|
11368
|
+
sessionUri: string;
|
|
11369
|
+
}
|
|
11370
|
+
/**
|
|
11371
|
+
* Readiness reported by the supervised hosting participant on its own SDK connection.
|
|
11372
|
+
*
|
|
11373
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11374
|
+
* via the `definition` "HostReadyRequest".
|
|
11375
|
+
*/
|
|
11376
|
+
/** @experimental */
|
|
11377
|
+
export interface HostReadyRequest {
|
|
11378
|
+
/**
|
|
11379
|
+
* Actual bound WebSocket URL.
|
|
11380
|
+
*/
|
|
11381
|
+
address?: string;
|
|
11382
|
+
/**
|
|
11383
|
+
* Configured secret token, absent when authentication is disabled.
|
|
11384
|
+
*/
|
|
11385
|
+
token?: string;
|
|
11386
|
+
/**
|
|
11387
|
+
* Registered environment ID, reported only once the relay transport is connected.
|
|
11388
|
+
*/
|
|
11389
|
+
environmentId?: string;
|
|
11390
|
+
}
|
|
11391
|
+
/**
|
|
11392
|
+
* Listener-scoped registration, not a copy or durable adoption of a session.
|
|
11393
|
+
*
|
|
11394
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11395
|
+
* via the `definition` "HostRegisterSessionRequest".
|
|
11396
|
+
*/
|
|
11397
|
+
/** @experimental */
|
|
11398
|
+
export interface HostRegisterSessionRequest {
|
|
11399
|
+
/**
|
|
11400
|
+
* Canonical ID of the existing resident runtime session.
|
|
11401
|
+
*/
|
|
11402
|
+
sessionId: string;
|
|
11403
|
+
/**
|
|
11404
|
+
* Absolute working directory of the resident session.
|
|
11405
|
+
*/
|
|
11406
|
+
workingDirectory: string;
|
|
11407
|
+
/**
|
|
11408
|
+
* Additional directories already granted to the resident session.
|
|
11409
|
+
*/
|
|
11410
|
+
additionalDirectories?: string[];
|
|
11411
|
+
/**
|
|
11412
|
+
* Current display title of the resident session, when available.
|
|
11413
|
+
*/
|
|
11414
|
+
title?: string;
|
|
11415
|
+
/**
|
|
11416
|
+
* Session creation time in milliseconds since the Unix epoch, when available.
|
|
11417
|
+
*/
|
|
11418
|
+
createdAtUnixMs?: number;
|
|
11419
|
+
/**
|
|
11420
|
+
* Last session modification time in milliseconds since the Unix epoch, when available.
|
|
11421
|
+
*/
|
|
11422
|
+
modifiedAtUnixMs?: number;
|
|
11423
|
+
}
|
|
11424
|
+
/**
|
|
11425
|
+
* Application callback routed over its existing SDK connection.
|
|
11426
|
+
*
|
|
11427
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11428
|
+
* via the `definition` "HostSessionCreateCallback".
|
|
11429
|
+
*/
|
|
11430
|
+
/** @experimental */
|
|
11431
|
+
export interface HostSessionCreateCallback {
|
|
11432
|
+
/**
|
|
11433
|
+
* Listener UUID identifying the owning application's host.
|
|
11434
|
+
*/
|
|
11435
|
+
hostId: string;
|
|
11436
|
+
/**
|
|
11437
|
+
* Unique identity of the session participation being requested.
|
|
11438
|
+
*/
|
|
11439
|
+
handoffId: string;
|
|
11440
|
+
/**
|
|
11441
|
+
* Resume an app-owned durable session instead of creating a new session.
|
|
11442
|
+
*/
|
|
11443
|
+
resume?: boolean;
|
|
11444
|
+
/**
|
|
11445
|
+
* Host-selected SDK creation or resume settings, without executable callbacks or tools.
|
|
11446
|
+
*/
|
|
11447
|
+
config: {
|
|
11448
|
+
[k: string]: unknown | undefined;
|
|
11449
|
+
};
|
|
11450
|
+
}
|
|
11451
|
+
/**
|
|
11452
|
+
* One application-owned session handoff, requested by the supervised hosting participant.
|
|
11453
|
+
*
|
|
11454
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11455
|
+
* via the `definition` "HostSessionCreateRequest".
|
|
11456
|
+
*/
|
|
11457
|
+
/** @experimental */
|
|
11458
|
+
export interface HostSessionCreateRequest {
|
|
11459
|
+
/**
|
|
11460
|
+
* Unique identity for this participation, independent of the session lifetime.
|
|
11461
|
+
*/
|
|
11462
|
+
handoffId: string;
|
|
11463
|
+
/**
|
|
11464
|
+
* Resume an app-owned durable session instead of creating a new session.
|
|
11465
|
+
*/
|
|
11466
|
+
resume?: boolean;
|
|
11467
|
+
/**
|
|
11468
|
+
* Host-selected SDK creation or resume settings, without executable callbacks or tools.
|
|
11469
|
+
*/
|
|
11470
|
+
config: {
|
|
11471
|
+
[k: string]: unknown | undefined;
|
|
11472
|
+
};
|
|
11473
|
+
}
|
|
11474
|
+
/**
|
|
11475
|
+
* The resident session the application has materialized on its own connection.
|
|
11476
|
+
*
|
|
11477
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11478
|
+
* via the `definition` "HostSessionCreateResult".
|
|
11479
|
+
*/
|
|
11480
|
+
/** @experimental */
|
|
11481
|
+
export interface HostSessionCreateResult {
|
|
11482
|
+
/**
|
|
11483
|
+
* Runtime session UUID materialized on the application's SDK connection.
|
|
11484
|
+
*/
|
|
11485
|
+
sessionId: string;
|
|
11486
|
+
}
|
|
11487
|
+
/**
|
|
11488
|
+
* Releases the original application session object retained for one handoff.
|
|
11489
|
+
*
|
|
11490
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11491
|
+
* via the `definition` "HostSessionReleasedNotification".
|
|
11492
|
+
*/
|
|
11493
|
+
/** @experimental */
|
|
11494
|
+
export interface HostSessionReleasedNotification {
|
|
11495
|
+
/**
|
|
11496
|
+
* Listener UUID whose application session participation ended.
|
|
11497
|
+
*/
|
|
11498
|
+
hostId: string;
|
|
11499
|
+
/**
|
|
11500
|
+
* Identity of the handoff retaining the original application session object.
|
|
11501
|
+
*/
|
|
11502
|
+
handoffId: string;
|
|
11503
|
+
}
|
|
11504
|
+
/**
|
|
11505
|
+
* Ends one participation, not the application's session lifetime.
|
|
11506
|
+
*
|
|
11507
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11508
|
+
* via the `definition` "HostSessionReleaseRequest".
|
|
11509
|
+
*/
|
|
11510
|
+
/** @experimental */
|
|
11511
|
+
export interface HostSessionReleaseRequest {
|
|
11512
|
+
/**
|
|
11513
|
+
* Identity of the participation to release without destroying the session.
|
|
11514
|
+
*/
|
|
11515
|
+
handoffId: string;
|
|
11516
|
+
}
|
|
11517
|
+
/**
|
|
11518
|
+
* Starts a supervised AHP host with at least one explicitly selected transport.
|
|
11519
|
+
*
|
|
11520
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11521
|
+
* via the `definition` "HostStartRequest".
|
|
11522
|
+
*/
|
|
11523
|
+
/** @experimental */
|
|
11524
|
+
export interface HostStartRequest {
|
|
11525
|
+
/**
|
|
11526
|
+
* Caller-generated UUID identifying this connection-owned listener.
|
|
11527
|
+
*/
|
|
11528
|
+
hostId: string;
|
|
11529
|
+
localServer?: HostLocalServerOptions;
|
|
11530
|
+
githubEnvironment?: HostGitHubEnvironmentOptions;
|
|
11531
|
+
/**
|
|
11532
|
+
* Ask the owning SDK application to materialize AHP sessions.
|
|
11533
|
+
*/
|
|
11534
|
+
sessionFactory?: boolean;
|
|
11535
|
+
/**
|
|
11536
|
+
* Ask the owning application to resume its durable AHP sessions.
|
|
11537
|
+
*/
|
|
11538
|
+
resumeFactory?: boolean;
|
|
11539
|
+
}
|
|
11540
|
+
/**
|
|
11541
|
+
* Listener readiness, returned only after binding and the supervised participant's SDK handshake.
|
|
11542
|
+
*
|
|
11543
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11544
|
+
* via the `definition` "HostStartResult".
|
|
11545
|
+
*/
|
|
11546
|
+
/** @experimental */
|
|
11547
|
+
export interface HostStartResult {
|
|
11548
|
+
/**
|
|
11549
|
+
* Caller-generated listener UUID.
|
|
11550
|
+
*/
|
|
11551
|
+
hostId: string;
|
|
11552
|
+
/**
|
|
11553
|
+
* Actual bound WebSocket URL, including the allocated port.
|
|
11554
|
+
*/
|
|
11555
|
+
url?: string;
|
|
11556
|
+
/**
|
|
11557
|
+
* Secret connection token, absent when authentication is disabled.
|
|
11558
|
+
*/
|
|
11559
|
+
token?: string;
|
|
11560
|
+
/**
|
|
11561
|
+
* GitHub Mission Control environment ID, present when its relay transport is ready.
|
|
11562
|
+
*/
|
|
11563
|
+
environmentId?: string;
|
|
11564
|
+
/**
|
|
11565
|
+
* Separate host process ID, when provided by a legacy runtime. Absent for in-process listeners.
|
|
11566
|
+
*/
|
|
11567
|
+
pid?: number;
|
|
11568
|
+
}
|
|
11011
11569
|
/**
|
|
11012
11570
|
* Catalogue identity retained from a bound candidate or plan at installation time.
|
|
11013
11571
|
*
|
|
@@ -15940,21 +16498,40 @@ export interface PermissionDecisionApproveForSessionApprovalExtensionPermissionA
|
|
|
15940
16498
|
* via the `definition` "PermissionDecisionApproveForSessionApprovalExtensionEnvAccess".
|
|
15941
16499
|
*/
|
|
15942
16500
|
/** @experimental */
|
|
15943
|
-
export interface PermissionDecisionApproveForSessionApprovalExtensionEnvAccess {
|
|
15944
|
-
/**
|
|
15945
|
-
* Approval covering an extension's request to read sensitive environment variables.
|
|
15946
|
-
*/
|
|
15947
|
-
kind: "extension-env-access";
|
|
16501
|
+
export interface PermissionDecisionApproveForSessionApprovalExtensionEnvAccess {
|
|
16502
|
+
/**
|
|
16503
|
+
* Approval covering an extension's request to read sensitive environment variables.
|
|
16504
|
+
*/
|
|
16505
|
+
kind: "extension-env-access";
|
|
16506
|
+
/**
|
|
16507
|
+
* Extension name.
|
|
16508
|
+
*/
|
|
16509
|
+
extensionName: string;
|
|
16510
|
+
/**
|
|
16511
|
+
* Names of the sensitive environment variables this approval covers. Values are never persisted.
|
|
16512
|
+
*
|
|
16513
|
+
* @minItems 1
|
|
16514
|
+
*/
|
|
16515
|
+
environmentVariables: [string, ...string[]];
|
|
16516
|
+
}
|
|
16517
|
+
/**
|
|
16518
|
+
* Approve file-tool read access to specific directories for this logical session, including continuation or resume.
|
|
16519
|
+
*
|
|
16520
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
16521
|
+
* via the `definition` "PermissionDecisionApproveReadOnlyForSession".
|
|
16522
|
+
*/
|
|
16523
|
+
/** @experimental */
|
|
16524
|
+
export interface PermissionDecisionApproveReadOnlyForSession {
|
|
15948
16525
|
/**
|
|
15949
|
-
*
|
|
16526
|
+
* Approve read-only file-tool directory access for this session
|
|
15950
16527
|
*/
|
|
15951
|
-
|
|
16528
|
+
kind: "approve-read-only-for-session";
|
|
15952
16529
|
/**
|
|
15953
|
-
*
|
|
16530
|
+
* Canonical directories covered by the read-only grant
|
|
15954
16531
|
*
|
|
15955
16532
|
* @minItems 1
|
|
15956
16533
|
*/
|
|
15957
|
-
|
|
16534
|
+
directories: [string, ...string[]];
|
|
15958
16535
|
}
|
|
15959
16536
|
/**
|
|
15960
16537
|
* Permission-decision request variant to approve and persist a permission for a project location, with approval details and location key.
|
|
@@ -18032,6 +18609,40 @@ export interface ProviderTokenAcquireResult {
|
|
|
18032
18609
|
*/
|
|
18033
18610
|
token: string;
|
|
18034
18611
|
}
|
|
18612
|
+
/**
|
|
18613
|
+
* Host-managed model selection ids to withdraw from the session's BYOK registry.
|
|
18614
|
+
*
|
|
18615
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
18616
|
+
* via the `definition` "ProviderWithdrawRequest".
|
|
18617
|
+
*/
|
|
18618
|
+
/** @experimental */
|
|
18619
|
+
export interface ProviderWithdrawRequest {
|
|
18620
|
+
/**
|
|
18621
|
+
* Provider-qualified selection ids to withdraw. Ids that are not registered are ignored, so withdrawal is idempotent. A provider left with no models referencing it is removed too.
|
|
18622
|
+
*/
|
|
18623
|
+
models: string[];
|
|
18624
|
+
}
|
|
18625
|
+
/**
|
|
18626
|
+
* What the withdrawal actually removed from the registry.
|
|
18627
|
+
*
|
|
18628
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
18629
|
+
* via the `definition` "ProviderWithdrawResult".
|
|
18630
|
+
*/
|
|
18631
|
+
/** @experimental */
|
|
18632
|
+
export interface ProviderWithdrawResult {
|
|
18633
|
+
/**
|
|
18634
|
+
* Selection ids that were registered and are now withdrawn. Excludes requested ids that were not present.
|
|
18635
|
+
*/
|
|
18636
|
+
withdrawn: string[];
|
|
18637
|
+
/**
|
|
18638
|
+
* Providers removed because one of the withdrawn models was the last entry referencing them. A provider that merely has no models is not removed.
|
|
18639
|
+
*/
|
|
18640
|
+
providersRemoved: string[];
|
|
18641
|
+
/**
|
|
18642
|
+
* True when withdrawal removed the selected host-managed model, leaving the session with no explicit selection, so ordinary model resolution picks the session default. Withdrawal never promotes a surviving model in its place: the choice of which model to use stays with the user.
|
|
18643
|
+
*/
|
|
18644
|
+
modelDeselected?: boolean;
|
|
18645
|
+
}
|
|
18035
18646
|
/**
|
|
18036
18647
|
* File attachment
|
|
18037
18648
|
*
|
|
@@ -19392,6 +20003,7 @@ export interface SandboxConfig {
|
|
|
19392
20003
|
*/
|
|
19393
20004
|
allowBypass?: boolean;
|
|
19394
20005
|
auth?: SandboxConfigAuth;
|
|
20006
|
+
credentials?: SandboxCredentialsConfig;
|
|
19395
20007
|
/**
|
|
19396
20008
|
* Whether to auto-grant read access to tool directories discovered on PATH and in toolchain environment variables (GOROOT, JAVA_HOME, VIRTUAL_ENV, and similar), and to common developer-tool caches, config, and toolchains. Writable grants cover scratch caches, the Unix GitHub CLI cache, and Cargo's registry, git store, and lock/tracker files. A relocated CARGO_HOME gets the same narrow split: registry and git are read-write; bin is read-only; the home root, config.toml, and credentials.toml stay ungranted. Set to false to disable every grant listed above; user-installed toolchains and caches then need explicit userPolicy.filesystem readonlyPaths and readwritePaths entries. The working directory (see addCurrentWorkingDirectory), temporary storage, session log paths, and system locations follow their own rules and stay granted. Default: true (enabled by default; set to false to opt out).
|
|
19397
20009
|
*/
|
|
@@ -19527,14 +20139,42 @@ export interface SandboxConfigUserPolicyExperimentalSeatbelt {
|
|
|
19527
20139
|
/** @experimental */
|
|
19528
20140
|
export interface SandboxConfigAuth {
|
|
19529
20141
|
/**
|
|
19530
|
-
* Whether to
|
|
20142
|
+
* Whether to authenticate sandboxed HTTPS git through the local masking proxy. The child receives a fake `http.<url>.extraheader`; the real Authorization header is substituted only at its original HTTPS host, port, and repository path scope. github.com uses the Copilot token; other forges use credentials resolved from the user's own helper on the host. Default: false (opt-in).
|
|
19531
20143
|
*/
|
|
19532
20144
|
git?: boolean;
|
|
19533
20145
|
/**
|
|
19534
|
-
* Whether to
|
|
20146
|
+
* Whether to authenticate sandboxed gh through the local masking proxy. The child receives a fake GH_TOKEN; its real value is substituted only at github.com, api.github.com and uploads.github.com (github.com because gh repo clone authenticates git through gh auth git-credential). The repository's GitHub account takes precedence over the Copilot login. Default: false (opt-in).
|
|
19535
20147
|
*/
|
|
19536
20148
|
gh?: boolean;
|
|
19537
20149
|
}
|
|
20150
|
+
/**
|
|
20151
|
+
* Whole-value environment credential masking for sandboxed children.
|
|
20152
|
+
*
|
|
20153
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
20154
|
+
* via the `definition` "SandboxCredentialsConfig".
|
|
20155
|
+
*/
|
|
20156
|
+
/** @experimental */
|
|
20157
|
+
export interface SandboxCredentialsConfig {
|
|
20158
|
+
/**
|
|
20159
|
+
* Environment variable names and their HTTPS injection destinations. Absent variables stay absent. No real values or sentinels are stored in this map.
|
|
20160
|
+
*/
|
|
20161
|
+
envVars: {
|
|
20162
|
+
[k: string]: SandboxMaskedEnvVar | undefined;
|
|
20163
|
+
};
|
|
20164
|
+
}
|
|
20165
|
+
/**
|
|
20166
|
+
* Destinations authorized to receive one masked environment credential.
|
|
20167
|
+
*
|
|
20168
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
20169
|
+
* via the `definition` "SandboxMaskedEnvVar".
|
|
20170
|
+
*/
|
|
20171
|
+
/** @experimental */
|
|
20172
|
+
export interface SandboxMaskedEnvVar {
|
|
20173
|
+
/**
|
|
20174
|
+
* Nonempty list of HTTPS injection hostnames or *.example.com patterns. Bare * is not accepted. These grants never override the sandbox network policy. Values in plaintext HTTP requests, URLs, bodies, encoded credentials, and signed requests are not substituted.
|
|
20175
|
+
*/
|
|
20176
|
+
injectHosts: string[];
|
|
20177
|
+
}
|
|
19538
20178
|
/**
|
|
19539
20179
|
* Request to disable sandboxing for the current session while resolving an active sandbox-bypass permission prompt.
|
|
19540
20180
|
*
|
|
@@ -19587,6 +20227,33 @@ export interface SandboxEnforcementStatus {
|
|
|
19587
20227
|
*/
|
|
19588
20228
|
reason?: string;
|
|
19589
20229
|
}
|
|
20230
|
+
/**
|
|
20231
|
+
* Request to accept the sandbox path grant offered on an active sandbox escalation permission prompt.
|
|
20232
|
+
*
|
|
20233
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
20234
|
+
* via the `definition` "SandboxGrantPathForRequestRequest".
|
|
20235
|
+
*/
|
|
20236
|
+
/** @experimental */
|
|
20237
|
+
export interface SandboxGrantPathForRequestRequest {
|
|
20238
|
+
/**
|
|
20239
|
+
* Identifier of the exact pending sandbox escalation permission request whose sandboxPathGrant to accept.
|
|
20240
|
+
*/
|
|
20241
|
+
requestId: string;
|
|
20242
|
+
decisionContext?: PermissionDecisionContext;
|
|
20243
|
+
}
|
|
20244
|
+
/**
|
|
20245
|
+
* Result of accepting a sandbox path grant.
|
|
20246
|
+
*
|
|
20247
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
20248
|
+
* via the `definition` "SandboxGrantPathForRequestResult".
|
|
20249
|
+
*/
|
|
20250
|
+
/** @experimental */
|
|
20251
|
+
export interface SandboxGrantPathForRequestResult {
|
|
20252
|
+
/**
|
|
20253
|
+
* Whether this call resolved the pending request and added the path to the session's sandbox policy.
|
|
20254
|
+
*/
|
|
20255
|
+
success: boolean;
|
|
20256
|
+
}
|
|
19590
20257
|
/**
|
|
19591
20258
|
* Whether this host can run one sandbox policy feature. A session whose effective policy uses an unsupported feature fails each sandboxed command with `reason`.
|
|
19592
20259
|
*
|
|
@@ -21277,6 +21944,11 @@ export interface SessionOpenOptions {
|
|
|
21277
21944
|
*/
|
|
21278
21945
|
shellProcessFlags?: string[];
|
|
21279
21946
|
sandboxConfig?: SandboxConfig;
|
|
21947
|
+
/**
|
|
21948
|
+
* Origin of the sandbox choice. Settings-derived origins (never_configured, user_enabled, user_disabled, repository_policy) let managed policy floor a host preference; explicit below-floor changes remain policy conflicts unless a session opt-out is authorized. Also used for telemetry provenance.
|
|
21949
|
+
*
|
|
21950
|
+
* @experimental
|
|
21951
|
+
*/
|
|
21280
21952
|
sandboxConfigSource?: SandboxConfigSource;
|
|
21281
21953
|
/**
|
|
21282
21954
|
* Whether interactive shell sessions are logged.
|
|
@@ -22774,6 +23446,11 @@ export interface SessionUpdateOptionsParams {
|
|
|
22774
23446
|
*/
|
|
22775
23447
|
shellProcessFlags?: string[];
|
|
22776
23448
|
sandboxConfig?: SandboxConfig;
|
|
23449
|
+
/**
|
|
23450
|
+
* Origin of the sandbox choice. Settings-derived origins (never_configured, user_enabled, user_disabled, repository_policy) let managed policy floor a host preference; explicit below-floor changes remain policy conflicts unless a session opt-out is authorized. Also used for telemetry provenance.
|
|
23451
|
+
*
|
|
23452
|
+
* @experimental
|
|
23453
|
+
*/
|
|
22777
23454
|
sandboxConfigSource?: SandboxConfigSource;
|
|
22778
23455
|
/**
|
|
22779
23456
|
* Whether interactive shell sessions are logged.
|
|
@@ -27265,6 +27942,126 @@ export interface WorkspacesWriteAutopilotObjectiveResult {
|
|
|
27265
27942
|
*/
|
|
27266
27943
|
operation: string;
|
|
27267
27944
|
}
|
|
27945
|
+
/**
|
|
27946
|
+
* The resident session the application has materialized on its own connection.
|
|
27947
|
+
*
|
|
27948
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
27949
|
+
* via the `definition` "HostCreateSessionResult".
|
|
27950
|
+
*/
|
|
27951
|
+
/** @experimental */
|
|
27952
|
+
export interface HostCreateSessionResult {
|
|
27953
|
+
/**
|
|
27954
|
+
* Runtime session UUID materialized on the application's SDK connection.
|
|
27955
|
+
*/
|
|
27956
|
+
sessionId: string;
|
|
27957
|
+
}
|
|
27958
|
+
/**
|
|
27959
|
+
* One application-owned session handoff, requested by the supervised hosting participant.
|
|
27960
|
+
*
|
|
27961
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
27962
|
+
* via the `definition` "HostCreateSessionRequest".
|
|
27963
|
+
*/
|
|
27964
|
+
/** @experimental */
|
|
27965
|
+
export interface HostCreateSessionRequest {
|
|
27966
|
+
/**
|
|
27967
|
+
* Unique identity for this participation, independent of the session lifetime.
|
|
27968
|
+
*/
|
|
27969
|
+
handoffId: string;
|
|
27970
|
+
/**
|
|
27971
|
+
* Resume an app-owned durable session instead of creating a new session.
|
|
27972
|
+
*/
|
|
27973
|
+
resume?: boolean;
|
|
27974
|
+
/**
|
|
27975
|
+
* Host-selected SDK creation or resume settings, without executable callbacks or tools.
|
|
27976
|
+
*/
|
|
27977
|
+
config: {
|
|
27978
|
+
[k: string]: unknown | undefined;
|
|
27979
|
+
};
|
|
27980
|
+
}
|
|
27981
|
+
/**
|
|
27982
|
+
* Empty acknowledgement for a completed host lifecycle operation.
|
|
27983
|
+
*
|
|
27984
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
27985
|
+
* via the `definition` "HostReleaseSessionResult".
|
|
27986
|
+
*/
|
|
27987
|
+
/** @experimental */
|
|
27988
|
+
export interface HostReleaseSessionResult {
|
|
27989
|
+
}
|
|
27990
|
+
/**
|
|
27991
|
+
* Ends one participation, not the application's session lifetime.
|
|
27992
|
+
*
|
|
27993
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
27994
|
+
* via the `definition` "HostReleaseSessionRequest".
|
|
27995
|
+
*/
|
|
27996
|
+
/** @experimental */
|
|
27997
|
+
export interface HostReleaseSessionRequest {
|
|
27998
|
+
/**
|
|
27999
|
+
* Identity of the participation to release without destroying the session.
|
|
28000
|
+
*/
|
|
28001
|
+
handoffId: string;
|
|
28002
|
+
}
|
|
28003
|
+
/**
|
|
28004
|
+
* Empty acknowledgement for a completed host lifecycle operation.
|
|
28005
|
+
*
|
|
28006
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28007
|
+
* via the `definition` "HostDisposeResult".
|
|
28008
|
+
*/
|
|
28009
|
+
/** @experimental */
|
|
28010
|
+
export interface HostDisposeResult {
|
|
28011
|
+
}
|
|
28012
|
+
/**
|
|
28013
|
+
* Private credentials delivered only to a runtime-owned Mission Control hosting participant.
|
|
28014
|
+
*
|
|
28015
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28016
|
+
* via the `definition` "HostGetEnvironmentCredentialsResult".
|
|
28017
|
+
*/
|
|
28018
|
+
/** @experimental */
|
|
28019
|
+
export interface HostGetEnvironmentCredentialsResult {
|
|
28020
|
+
/**
|
|
28021
|
+
* Current bearer token for the authenticated GitHub identity.
|
|
28022
|
+
*/
|
|
28023
|
+
token: string;
|
|
28024
|
+
/**
|
|
28025
|
+
* Hostname of the authenticated GitHub service.
|
|
28026
|
+
*/
|
|
28027
|
+
githubHost: string;
|
|
28028
|
+
/**
|
|
28029
|
+
* GitHub API base URL for the authenticated service.
|
|
28030
|
+
*/
|
|
28031
|
+
githubApiUrl: string;
|
|
28032
|
+
/**
|
|
28033
|
+
* Mission Control API origin for environment registration and management.
|
|
28034
|
+
*/
|
|
28035
|
+
missionControlUrl: string;
|
|
28036
|
+
}
|
|
28037
|
+
/**
|
|
28038
|
+
* Normalized listener settings delivered only to the supervised hosting participant.
|
|
28039
|
+
*
|
|
28040
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28041
|
+
* via the `definition` "HostGetConfigurationResult".
|
|
28042
|
+
*/
|
|
28043
|
+
/** @experimental */
|
|
28044
|
+
export interface HostGetConfigurationResult {
|
|
28045
|
+
localServer?: HostLocalServerConfiguration;
|
|
28046
|
+
githubEnvironment?: HostGitHubEnvironmentOptions;
|
|
28047
|
+
/**
|
|
28048
|
+
* Whether session materialization is delegated to the owning application.
|
|
28049
|
+
*/
|
|
28050
|
+
sessionFactory: boolean;
|
|
28051
|
+
/**
|
|
28052
|
+
* Whether app-owned durable sessions are resumed by the owning application.
|
|
28053
|
+
*/
|
|
28054
|
+
resumeFactory: boolean;
|
|
28055
|
+
}
|
|
28056
|
+
/**
|
|
28057
|
+
* Empty acknowledgement for a completed host lifecycle operation.
|
|
28058
|
+
*
|
|
28059
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28060
|
+
* via the `definition` "HostReadyResult".
|
|
28061
|
+
*/
|
|
28062
|
+
/** @experimental */
|
|
28063
|
+
export interface HostReadyResult {
|
|
28064
|
+
}
|
|
27268
28065
|
/** @experimental */
|
|
27269
28066
|
export interface SessionWorkflowPauseAtCheckpointResult {
|
|
27270
28067
|
action: WorkflowPauseCheckpointAction;
|
|
@@ -27476,6 +28273,111 @@ export interface SessionFsSqliteExistsRequest {
|
|
|
27476
28273
|
*/
|
|
27477
28274
|
sessionId: string;
|
|
27478
28275
|
}
|
|
28276
|
+
/**
|
|
28277
|
+
* The existing runtime identity and its resource on the listener.
|
|
28278
|
+
*
|
|
28279
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28280
|
+
* via the `definition` "HostRegisterSessionResult".
|
|
28281
|
+
*/
|
|
28282
|
+
/** @experimental */
|
|
28283
|
+
export interface HostRegisterSessionResult {
|
|
28284
|
+
/**
|
|
28285
|
+
* Canonical runtime ID of the published session.
|
|
28286
|
+
*/
|
|
28287
|
+
sessionId: string;
|
|
28288
|
+
/**
|
|
28289
|
+
* AHP resource URI for the session on this listener.
|
|
28290
|
+
*/
|
|
28291
|
+
sessionUri: string;
|
|
28292
|
+
}
|
|
28293
|
+
/**
|
|
28294
|
+
* The resident session the application has materialized on its own connection.
|
|
28295
|
+
*
|
|
28296
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28297
|
+
* via the `definition` "HostMaterializeSessionResult".
|
|
28298
|
+
*/
|
|
28299
|
+
/** @experimental */
|
|
28300
|
+
export interface HostMaterializeSessionResult {
|
|
28301
|
+
/**
|
|
28302
|
+
* Runtime session UUID materialized on the application's SDK connection.
|
|
28303
|
+
*/
|
|
28304
|
+
sessionId: string;
|
|
28305
|
+
}
|
|
28306
|
+
/**
|
|
28307
|
+
* Application callback routed over its existing SDK connection.
|
|
28308
|
+
*
|
|
28309
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28310
|
+
* via the `definition` "HostMaterializeSessionRequest".
|
|
28311
|
+
*/
|
|
28312
|
+
/** @experimental */
|
|
28313
|
+
export interface HostMaterializeSessionRequest {
|
|
28314
|
+
/**
|
|
28315
|
+
* Listener UUID identifying the owning application's host.
|
|
28316
|
+
*/
|
|
28317
|
+
hostId: string;
|
|
28318
|
+
/**
|
|
28319
|
+
* Unique identity of the session participation being requested.
|
|
28320
|
+
*/
|
|
28321
|
+
handoffId: string;
|
|
28322
|
+
/**
|
|
28323
|
+
* Resume an app-owned durable session instead of creating a new session.
|
|
28324
|
+
*/
|
|
28325
|
+
resume?: boolean;
|
|
28326
|
+
/**
|
|
28327
|
+
* Host-selected SDK creation or resume settings, without executable callbacks or tools.
|
|
28328
|
+
*/
|
|
28329
|
+
config: {
|
|
28330
|
+
[k: string]: unknown | undefined;
|
|
28331
|
+
};
|
|
28332
|
+
}
|
|
28333
|
+
/**
|
|
28334
|
+
* Releases the original application session object retained for one handoff.
|
|
28335
|
+
*
|
|
28336
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28337
|
+
* via the `definition` "HostSessionReleasedRequest".
|
|
28338
|
+
*/
|
|
28339
|
+
/** @experimental */
|
|
28340
|
+
export interface HostSessionReleasedRequest {
|
|
28341
|
+
/**
|
|
28342
|
+
* Listener UUID whose application session participation ended.
|
|
28343
|
+
*/
|
|
28344
|
+
hostId: string;
|
|
28345
|
+
/**
|
|
28346
|
+
* Identity of the handoff retaining the original application session object.
|
|
28347
|
+
*/
|
|
28348
|
+
handoffId: string;
|
|
28349
|
+
}
|
|
28350
|
+
/**
|
|
28351
|
+
* Empty acknowledgement for a completed host lifecycle operation.
|
|
28352
|
+
*
|
|
28353
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28354
|
+
* via the `definition` "HostShutdownResult".
|
|
28355
|
+
*/
|
|
28356
|
+
/** @experimental */
|
|
28357
|
+
export interface HostShutdownResult {
|
|
28358
|
+
}
|
|
28359
|
+
/**
|
|
28360
|
+
* Reports a supervised listener's hosting-task termination and cleanup outcome.
|
|
28361
|
+
*
|
|
28362
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
28363
|
+
* via the `definition` "HostExitedRequest".
|
|
28364
|
+
*/
|
|
28365
|
+
/** @experimental */
|
|
28366
|
+
export interface HostExitedRequest {
|
|
28367
|
+
/**
|
|
28368
|
+
* Listener UUID.
|
|
28369
|
+
*/
|
|
28370
|
+
hostId: string;
|
|
28371
|
+
reason: HostExitReason;
|
|
28372
|
+
/**
|
|
28373
|
+
* Process exit status when available; absent for in-process listener tasks.
|
|
28374
|
+
*/
|
|
28375
|
+
exitCode?: number | null;
|
|
28376
|
+
/**
|
|
28377
|
+
* Explicit startup or teardown failure, when present.
|
|
28378
|
+
*/
|
|
28379
|
+
error?: string | null;
|
|
28380
|
+
}
|
|
27479
28381
|
/**
|
|
27480
28382
|
* A response is meaningful only on the connection and request that issued its challenge.
|
|
27481
28383
|
*
|
|
@@ -27527,6 +28429,60 @@ export interface InstallationsConfirmRequest {
|
|
|
27527
28429
|
}
|
|
27528
28430
|
/** Create typed server-scoped RPC methods (no session required). */
|
|
27529
28431
|
export declare function createServerRpc(connection: MessageConnection): {
|
|
28432
|
+
/** @experimental */
|
|
28433
|
+
environments: {
|
|
28434
|
+
/**
|
|
28435
|
+
* Lists GitHub Mission Control environments visible to the authenticated identity. Does not require a running host and excludes host relay credentials.
|
|
28436
|
+
*
|
|
28437
|
+
* @param params Optional discovery filters supported by GitHub Mission Control.
|
|
28438
|
+
*
|
|
28439
|
+
* @returns Environments visible to the authenticated caller and matching the supplied filters.
|
|
28440
|
+
*/
|
|
28441
|
+
list: (params: EnvironmentsListRequest) => Promise<EnvironmentsListResult>;
|
|
28442
|
+
/**
|
|
28443
|
+
* Gets safe discovery information for a GitHub Mission Control environment without requiring a running host.
|
|
28444
|
+
*
|
|
28445
|
+
* @param params Identify a Mission Control environment to retrieve.
|
|
28446
|
+
*
|
|
28447
|
+
* @returns Safe discovery information for the requested environment.
|
|
28448
|
+
*/
|
|
28449
|
+
get: (params: EnvironmentsGetRequest) => Promise<EnvironmentsGetResult>;
|
|
28450
|
+
/**
|
|
28451
|
+
* Deletes a user-managed GitHub Mission Control environment. GitHub-managed environments cannot be deleted. Does not stop a running host, which may register again.
|
|
28452
|
+
*
|
|
28453
|
+
* @param params Identify a user-managed Mission Control environment to delete.
|
|
28454
|
+
*
|
|
28455
|
+
* @returns Acknowledgement that the requested environment was deleted.
|
|
28456
|
+
*/
|
|
28457
|
+
delete: (params: EnvironmentsDeleteRequest) => Promise<EnvironmentsDeleteResult>;
|
|
28458
|
+
};
|
|
28459
|
+
/** @experimental */
|
|
28460
|
+
host: {
|
|
28461
|
+
/**
|
|
28462
|
+
* Publishes an attached resident session for this listener's lifetime without copying it.
|
|
28463
|
+
*
|
|
28464
|
+
* @param params Publishes a resident session attached to the listener's owning connection.
|
|
28465
|
+
*
|
|
28466
|
+
* @returns The existing runtime identity and its resource on the listener.
|
|
28467
|
+
*/
|
|
28468
|
+
publishSession: (params: HostPublishSessionRequest) => Promise<HostPublishSessionResult>;
|
|
28469
|
+
/**
|
|
28470
|
+
* Starts a connection-owned AHP host with explicit localServer and/or githubEnvironment transports as a supervised SDK participant.
|
|
28471
|
+
*
|
|
28472
|
+
* @param params Starts a supervised AHP host with at least one explicitly selected transport.
|
|
28473
|
+
*
|
|
28474
|
+
* @returns Listener readiness, returned only after binding and the supervised participant's SDK handshake.
|
|
28475
|
+
*/
|
|
28476
|
+
start: (params: HostStartRequest) => Promise<HostStartResult>;
|
|
28477
|
+
/**
|
|
28478
|
+
* Stops a listener owned by this SDK connection and joins its cleanup without deleting sessions.
|
|
28479
|
+
*
|
|
28480
|
+
* @param params Stops a connection-owned listener and joins its teardown.
|
|
28481
|
+
*
|
|
28482
|
+
* @returns Empty acknowledgement for a completed host lifecycle operation.
|
|
28483
|
+
*/
|
|
28484
|
+
dispose: (params: HostDisposeRequest) => Promise<HostDisposeResult>;
|
|
28485
|
+
};
|
|
27530
28486
|
/**
|
|
27531
28487
|
* Checks server responsiveness and returns protocol information.
|
|
27532
28488
|
*
|
|
@@ -28400,6 +29356,14 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
28400
29356
|
* @returns Result of attempting to disable sandboxing for the current session.
|
|
28401
29357
|
*/
|
|
28402
29358
|
disableForSession: (params: SandboxDisableForSessionRequest) => Promise<SandboxDisableForSessionResult>;
|
|
29359
|
+
/**
|
|
29360
|
+
* Adds the path offered by a pending sandbox escalation permission request's sandboxPathGrant to the session's sandbox policy and approves the request, so the blocked operation re-runs inside the sandbox rather than outside it. The request is rejected unless the exact request is still pending, carries a sandboxPathGrant, and the grant still takes effect under the current managed policy. Does not persist the path; hosts that store sandbox settings save it themselves.
|
|
29361
|
+
*
|
|
29362
|
+
* @param params Request to accept the sandbox path grant offered on an active sandbox escalation permission prompt.
|
|
29363
|
+
*
|
|
29364
|
+
* @returns Result of accepting a sandbox path grant.
|
|
29365
|
+
*/
|
|
29366
|
+
grantPathForRequest: (params: SandboxGrantPathForRequestRequest) => Promise<SandboxGrantPathForRequestResult>;
|
|
28403
29367
|
};
|
|
28404
29368
|
/**
|
|
28405
29369
|
* Aborts the current agent turn.
|
|
@@ -29608,6 +30572,14 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
29608
30572
|
* @returns The selectable model entries and selection ids synthesized for the synchronized BYOK models.
|
|
29609
30573
|
*/
|
|
29610
30574
|
sync: (params: ProviderSyncRequest) => Promise<ProviderSyncResult>;
|
|
30575
|
+
/**
|
|
30576
|
+
* Withdraws named host-managed models from the session's BYOK registry, leaving every other entry untouched. The scoped counterpart to `provider.sync`: a snapshot can only describe entries the caller knows about, so using it to remove one model silently withdraws rows registered by another source, such as a plugin calling `provider.add` at runtime. Naming what to remove leaves unrelated entries alone. Selection ids that are not registered are ignored, so withdrawal is idempotent. A provider is removed only when one of the withdrawn models was the last entry referencing it; a provider that simply has no models, which is the normal state while its rows are supplied by catalog discovery, is left in place.
|
|
30577
|
+
*
|
|
30578
|
+
* @param params Host-managed model selection ids to withdraw from the session's BYOK registry.
|
|
30579
|
+
*
|
|
30580
|
+
* @returns What the withdrawal actually removed from the registry.
|
|
30581
|
+
*/
|
|
30582
|
+
withdraw: (params: ProviderWithdrawRequest) => Promise<ProviderWithdrawResult>;
|
|
29611
30583
|
};
|
|
29612
30584
|
/** @experimental */
|
|
29613
30585
|
options: {
|
|
@@ -30644,6 +31616,16 @@ export interface ClientSessionApiHandlers {
|
|
|
30644
31616
|
* function uses `getHandlers` to resolve the session's handlers.
|
|
30645
31617
|
*/
|
|
30646
31618
|
export declare function registerClientSessionApiHandlers(connection: MessageConnection, getHandlers: (sessionId: string) => ClientSessionApiHandlers): void;
|
|
31619
|
+
/** Handler for `host` client global API methods. */
|
|
31620
|
+
/** @experimental */
|
|
31621
|
+
export interface HostHandler {
|
|
31622
|
+
/**
|
|
31623
|
+
* Reports termination of a connection-owned host listener.
|
|
31624
|
+
*
|
|
31625
|
+
* @param params Reports a supervised listener's hosting-task termination and cleanup outcome.
|
|
31626
|
+
*/
|
|
31627
|
+
exited(params: HostExitedRequest): Promise<void>;
|
|
31628
|
+
}
|
|
30647
31629
|
/** Handler for `extensionLaunchProvider` client global API methods. */
|
|
30648
31630
|
/** @experimental */
|
|
30649
31631
|
export interface ExtensionLaunchProviderHandler {
|
|
@@ -30712,6 +31694,7 @@ export interface InstallationsHandler {
|
|
|
30712
31694
|
}
|
|
30713
31695
|
/** All client global API handler groups. */
|
|
30714
31696
|
export interface ClientGlobalApiHandlers {
|
|
31697
|
+
host?: HostHandler;
|
|
30715
31698
|
extensionLaunchProvider?: ExtensionLaunchProviderHandler;
|
|
30716
31699
|
llmInference?: LlmInferenceHandler;
|
|
30717
31700
|
gitHubTelemetry?: GitHubTelemetryHandler;
|