@github/copilot-sdk 1.0.23-preview.2 → 1.0.23-preview.4
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 +17 -0
- package/dist/cjs/cliVersion.js +1 -1
- package/dist/cjs/generated/rpc.js +77 -2
- package/dist/cjs/session.js +1 -1
- package/dist/cliVersion.d.ts +1 -1
- package/dist/cliVersion.js +1 -1
- package/dist/generated/rpc.d.ts +653 -5
- package/dist/generated/rpc.js +77 -2
- package/dist/generated/session-events.d.ts +122 -1
- package/dist/session.js +1 -1
- package/dist/types.d.ts +6 -1
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -1207,6 +1207,23 @@ const session = await client.createSession({
|
|
|
1207
1207
|
|
|
1208
1208
|
See [Custom skills](../docs/features/skills.md#skill-providers-experimental) for limits and details.
|
|
1209
1209
|
|
|
1210
|
+
#### Supporting files (experimental)
|
|
1211
|
+
|
|
1212
|
+
To give a provider skill supporting files, such as scripts, references,
|
|
1213
|
+
templates, and assets, set its descriptor's `directory` to the absolute path of
|
|
1214
|
+
the folder that holds them:
|
|
1215
|
+
|
|
1216
|
+
```typescript
|
|
1217
|
+
{
|
|
1218
|
+
name: "release-notes",
|
|
1219
|
+
description: "Writes release notes in the team's format.",
|
|
1220
|
+
directory: "/srv/skills/release-notes",
|
|
1221
|
+
}
|
|
1222
|
+
```
|
|
1223
|
+
|
|
1224
|
+
When the skill is activated, the runtime lists the folder's files for the model.
|
|
1225
|
+
See [Supporting files](../docs/features/skills.md#supporting-files-experimental) for details.
|
|
1226
|
+
|
|
1210
1227
|
### Multiple Sessions
|
|
1211
1228
|
|
|
1212
1229
|
```typescript
|
package/dist/cjs/cliVersion.js
CHANGED
|
@@ -22,7 +22,7 @@ __export(cliVersion_exports, {
|
|
|
22
22
|
COPILOT_CLI_VERSION: () => COPILOT_CLI_VERSION
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(cliVersion_exports);
|
|
25
|
-
const COPILOT_CLI_VERSION = "1.0.
|
|
25
|
+
const COPILOT_CLI_VERSION = "1.0.100-0";
|
|
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 = {
|
|
@@ -281,6 +281,81 @@ function createServerRpc(connection) {
|
|
|
281
281
|
listTokenPriceUnits: async (params) => connection.sendRequest("models.listTokenPriceUnits", params)
|
|
282
282
|
},
|
|
283
283
|
/** @experimental */
|
|
284
|
+
azureMl: {
|
|
285
|
+
/**
|
|
286
|
+
* Lists eligible Azure ML local models and redacted warnings before a chat session exists.
|
|
287
|
+
*
|
|
288
|
+
* @param params Lists models eligible for local use before a chat session exists.
|
|
289
|
+
*
|
|
290
|
+
* @returns Eligible models and redacted validation warnings.
|
|
291
|
+
*/
|
|
292
|
+
catalog: async (params) => connection.sendRequest("azureMl.catalog", params),
|
|
293
|
+
/**
|
|
294
|
+
* Revalidates the newest eligible version of one Azure ML model family.
|
|
295
|
+
*
|
|
296
|
+
* @param params Selects an Azure ML model family.
|
|
297
|
+
*
|
|
298
|
+
* @returns Eligible Azure ML model version and its provider metadata.
|
|
299
|
+
*/
|
|
300
|
+
latest: async (params) => connection.sendRequest("azureMl.latest", params),
|
|
301
|
+
/**
|
|
302
|
+
* Resolves immutable artifact facts without returning signed access URLs.
|
|
303
|
+
*
|
|
304
|
+
* @param params Selects an immutable model version.
|
|
305
|
+
*
|
|
306
|
+
* @returns Resolved artifact facts without signed download URLs.
|
|
307
|
+
*/
|
|
308
|
+
resolve: async (params) => connection.sendRequest("azureMl.resolve", params),
|
|
309
|
+
/**
|
|
310
|
+
* Downloads and verifies a connection-owned model version, returning only after placement and manifest publication.
|
|
311
|
+
*
|
|
312
|
+
* @param params Downloads a model version to its configured local library.
|
|
313
|
+
*
|
|
314
|
+
* @returns Completed and verified Azure ML model files.
|
|
315
|
+
*/
|
|
316
|
+
download: async (params) => connection.sendRequest("azureMl.download", params),
|
|
317
|
+
/**
|
|
318
|
+
* Acquires a connection-owned model-family mutation lease across transfer, activation, registration, and cleanup.
|
|
319
|
+
*
|
|
320
|
+
* @param params Identifies a family in the server's Azure ML model library.
|
|
321
|
+
*
|
|
322
|
+
* @returns Opaque handle to a connection-owned family mutation interval.
|
|
323
|
+
*/
|
|
324
|
+
acquireFamily: async (params) => connection.sendRequest("azureMl.acquireFamily", params),
|
|
325
|
+
/**
|
|
326
|
+
* Releases a connection-owned family lease after its active download and cleanup operations complete.
|
|
327
|
+
*
|
|
328
|
+
* @param params Releases a family mutation interval owned by this SDK connection.
|
|
329
|
+
*
|
|
330
|
+
* @returns Empty acknowledgement for a completed host lifecycle operation.
|
|
331
|
+
*/
|
|
332
|
+
releaseFamily: async (params) => connection.sendRequest("azureMl.releaseFamily", params),
|
|
333
|
+
/**
|
|
334
|
+
* Returns progress for an active download owned by this connection, or null after completion.
|
|
335
|
+
*
|
|
336
|
+
* @param params Selects an active connection-owned download.
|
|
337
|
+
*
|
|
338
|
+
* @returns Active Azure ML download progress or null.
|
|
339
|
+
*/
|
|
340
|
+
status: async (params) => connection.sendRequest("azureMl.status", params),
|
|
341
|
+
/**
|
|
342
|
+
* Cancels a connection-owned download; the download call reports terminal cleanup separately.
|
|
343
|
+
*
|
|
344
|
+
* @param params Selects an active connection-owned download.
|
|
345
|
+
*
|
|
346
|
+
* @returns Whether an active connection-owned transfer accepted cancellation.
|
|
347
|
+
*/
|
|
348
|
+
cancel: async (params) => connection.sendRequest("azureMl.cancel", params),
|
|
349
|
+
/**
|
|
350
|
+
* Discards an inactive model version under the server-owned Azure ML library.
|
|
351
|
+
*
|
|
352
|
+
* @param params Selects an inactive Azure ML version for cleanup.
|
|
353
|
+
*
|
|
354
|
+
* @returns Empty acknowledgement for a completed host lifecycle operation.
|
|
355
|
+
*/
|
|
356
|
+
discard: async (params) => connection.sendRequest("azureMl.discard", params)
|
|
357
|
+
},
|
|
358
|
+
/** @experimental */
|
|
284
359
|
contentExclusion: {
|
|
285
360
|
/**
|
|
286
361
|
* Validates candidate content-exclusion policies and returns them normalized, without starting a session. This runs the same parser the runtime's own policy enforcement uses, so a host cannot accept a policy set the runtime would later reject, nor reject one it would have honored. Call it when policies arrive from outside the runtime — a command-line flag, a configuration file, a host's own settings — and must be checked before a session exists to apply them to. A malformed document fails with a message prefixed `Invalid JSON: `; a well-formed document that violates the policy schema fails with the offending field paths.
|
|
@@ -2964,9 +3039,9 @@ function createSessionRpc(connection, sessionId) {
|
|
|
2964
3039
|
/** @experimental */
|
|
2965
3040
|
oauth: {
|
|
2966
3041
|
/**
|
|
2967
|
-
* Resolves a pending MCP OAuth request with a host-provided token or
|
|
3042
|
+
* Resolves a pending MCP OAuth request with a host-provided token, cancellation, or a noninteractive runtime refresh handoff when the request advertises runtimeRefreshSupported. Acceptance resolves the host response, not credential installation, reconnect, or the original tool invocation.
|
|
2968
3043
|
*
|
|
2969
|
-
* @param params Pending MCP OAuth request ID and host
|
|
3044
|
+
* @param params Pending MCP OAuth request ID and host token, cancellation, or advertised runtime refresh response.
|
|
2970
3045
|
*
|
|
2971
3046
|
* @returns Indicates whether the pending MCP OAuth response was accepted.
|
|
2972
3047
|
*/
|
package/dist/cjs/session.js
CHANGED
|
@@ -1057,7 +1057,7 @@ class CopilotSession {
|
|
|
1057
1057
|
async _executeMcpAuthAndRespond(request) {
|
|
1058
1058
|
try {
|
|
1059
1059
|
const result = await this.mcpAuthHandler(request, { sessionId: this.sessionId });
|
|
1060
|
-
const response = result && "accessToken" in result ? { kind: "token"
|
|
1060
|
+
const response = result && "kind" in result && result.kind === "cancelled" ? { kind: "cancelled" } : result && "accessToken" in result && typeof result.accessToken === "string" && result.accessToken.length > 0 ? { ...result, kind: "token" } : result && "kind" in result && result.kind === "runtimeRefresh" && request.runtimeRefreshSupported === true ? { kind: "runtimeRefresh" } : { kind: "cancelled" };
|
|
1061
1061
|
await this.rpc.mcp.oauth.handlePendingRequest({
|
|
1062
1062
|
requestId: request.requestId,
|
|
1063
1063
|
result: response
|
package/dist/cliVersion.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const COPILOT_CLI_VERSION = "1.0.
|
|
1
|
+
export declare const COPILOT_CLI_VERSION = "1.0.100-0";
|
|
2
2
|
export declare const COPILOT_CLI_USE_NPM_PACKAGE = false;
|
package/dist/cliVersion.js
CHANGED
package/dist/generated/rpc.d.ts
CHANGED
|
@@ -541,6 +541,46 @@ export type AutopilotObjectiveStatus =
|
|
|
541
541
|
| "paused"
|
|
542
542
|
/** The objective completed. */
|
|
543
543
|
| "completed";
|
|
544
|
+
/**
|
|
545
|
+
* Whether an active connection-owned transfer accepted cancellation.
|
|
546
|
+
*
|
|
547
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
548
|
+
* via the `definition` "AzureMlCancelResult".
|
|
549
|
+
*/
|
|
550
|
+
/** @experimental */
|
|
551
|
+
export type AzureMlCancelResult = boolean;
|
|
552
|
+
/**
|
|
553
|
+
* How catalog discovery handles a recent sign-in failure.
|
|
554
|
+
*
|
|
555
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
556
|
+
* via the `definition` "AzureMlCatalogRetryMode".
|
|
557
|
+
*/
|
|
558
|
+
/** @experimental */
|
|
559
|
+
export type AzureMlCatalogRetryMode =
|
|
560
|
+
/** Reuse a recent failure for automatic background discovery. */
|
|
561
|
+
"background"
|
|
562
|
+
/** Retry sign-in after an explicit refresh. */
|
|
563
|
+
| "explicit";
|
|
564
|
+
/**
|
|
565
|
+
* Registry that owns an Azure ML model version.
|
|
566
|
+
*
|
|
567
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
568
|
+
* via the `definition` "AzureMlRegistry".
|
|
569
|
+
*/
|
|
570
|
+
/** @experimental */
|
|
571
|
+
export type AzureMlRegistry =
|
|
572
|
+
/** Public Azure ML model registry. */
|
|
573
|
+
"azureml"
|
|
574
|
+
/** Microsoft staff development registry. */
|
|
575
|
+
| "azureml-dev";
|
|
576
|
+
/**
|
|
577
|
+
* Active Azure ML download progress or null.
|
|
578
|
+
*
|
|
579
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
580
|
+
* via the `definition` "AzureMlStatusResult".
|
|
581
|
+
*/
|
|
582
|
+
/** @experimental */
|
|
583
|
+
export type AzureMlStatusResult = AzureMlDownloadStatus | null;
|
|
544
584
|
/**
|
|
545
585
|
* Root JSON Schema type for a built-in tool input.
|
|
546
586
|
*
|
|
@@ -994,7 +1034,9 @@ export type CatalogCapability =
|
|
|
994
1034
|
/** Understands catalog.planInstallFromReference, which plans installing whatever resource an Agent Finder materialisation reference pins. It plans only kinds whose installation capability the caller also requires: skill-confirmed-installation for Skills, agent-plugin-confirmed-installation for Agent Plugins. Advertised only by runtimes with the Skill installation engine linked. */
|
|
995
1035
|
| "catalog-reference-installation"
|
|
996
1036
|
/** Understands catalog.getSavedFeed and catalog.getGeneratedFeed, which retrieve a saved or generated feed with entries projected exactly like catalog.search candidates. Requires catalog-search-credential-required; add catalog-search-session-bound to bind the retrieval to a selected session. */
|
|
997
|
-
| "catalog-feeds"
|
|
1037
|
+
| "catalog-feeds"
|
|
1038
|
+
/** Understands the optional `categories` filter on catalog.search, which the runtime forwards to the catalog authority. Required to send the filter, so an older runtime refuses the request instead of silently returning unfiltered results. */
|
|
1039
|
+
| "catalog-search-categories";
|
|
998
1040
|
/**
|
|
999
1041
|
* Bounded extensible wire-feature identifier. Known values are described by `CatalogCapability`; newer callers may send future identifiers so an older runtime can return a typed negotiation refusal instead of failing schema validation. Capability negotiation establishes contract understanding, while each operation's result separately reports runtime availability.
|
|
1000
1042
|
*
|
|
@@ -1134,7 +1176,9 @@ export type CatalogInvalidRequestField =
|
|
|
1134
1176
|
/** The saved feed ID, or the generated feed strategy or key, was missing or malformed. */
|
|
1135
1177
|
| "feed"
|
|
1136
1178
|
/** The trust tier filter was empty, repeated a tier or named an unknown tier. */
|
|
1137
|
-
| "trustTiers"
|
|
1179
|
+
| "trustTiers"
|
|
1180
|
+
/** The category filter was empty, too long, repeated a category or contained a value that is not a lowercase slug. */
|
|
1181
|
+
| "categories";
|
|
1138
1182
|
/**
|
|
1139
1183
|
* How a card failed validation
|
|
1140
1184
|
*
|
|
@@ -3644,6 +3688,11 @@ export type McpOauthPendingRequestResponse = {
|
|
|
3644
3688
|
* OAuth response variant discriminator.
|
|
3645
3689
|
*/
|
|
3646
3690
|
kind: "cancelled";
|
|
3691
|
+
} | {
|
|
3692
|
+
/**
|
|
3693
|
+
* OAuth response variant discriminator.
|
|
3694
|
+
*/
|
|
3695
|
+
kind: "runtimeRefresh";
|
|
3647
3696
|
};
|
|
3648
3697
|
/**
|
|
3649
3698
|
* OAuth grant type override for this login.
|
|
@@ -8265,6 +8314,399 @@ export interface AutoTierMetadata {
|
|
|
8265
8314
|
*/
|
|
8266
8315
|
providerId?: string;
|
|
8267
8316
|
}
|
|
8317
|
+
/**
|
|
8318
|
+
* Lists models eligible for local use before a chat session exists.
|
|
8319
|
+
*
|
|
8320
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
8321
|
+
* via the `definition` "AzureMlCatalogRequest".
|
|
8322
|
+
*/
|
|
8323
|
+
/** @experimental */
|
|
8324
|
+
export interface AzureMlCatalogRequest {
|
|
8325
|
+
/**
|
|
8326
|
+
* Ask for the staff registry; the server also verifies its own authenticated identity.
|
|
8327
|
+
*/
|
|
8328
|
+
includeDev: boolean;
|
|
8329
|
+
/**
|
|
8330
|
+
* An explicit user refresh retries a cached sign-in failure.
|
|
8331
|
+
*/
|
|
8332
|
+
retryMode?: AzureMlCatalogRetryMode | null;
|
|
8333
|
+
}
|
|
8334
|
+
/**
|
|
8335
|
+
* Eligible models and redacted validation warnings.
|
|
8336
|
+
*
|
|
8337
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
8338
|
+
* via the `definition` "AzureMlCatalogResult".
|
|
8339
|
+
*/
|
|
8340
|
+
/** @experimental */
|
|
8341
|
+
export interface AzureMlCatalogResult {
|
|
8342
|
+
/**
|
|
8343
|
+
* Model versions suitable for local use.
|
|
8344
|
+
*/
|
|
8345
|
+
models: AzureMlModel[];
|
|
8346
|
+
/**
|
|
8347
|
+
* Skipped model and catalog errors without sensitive access details.
|
|
8348
|
+
*/
|
|
8349
|
+
warnings: AzureMlCatalogWarning[];
|
|
8350
|
+
}
|
|
8351
|
+
/**
|
|
8352
|
+
* Eligible Azure ML model version and its provider metadata.
|
|
8353
|
+
*
|
|
8354
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
8355
|
+
* via the `definition` "AzureMlModel".
|
|
8356
|
+
*/
|
|
8357
|
+
/** @experimental */
|
|
8358
|
+
export interface AzureMlModel {
|
|
8359
|
+
registry: AzureMlRegistry;
|
|
8360
|
+
/**
|
|
8361
|
+
* Stable model-family name.
|
|
8362
|
+
*/
|
|
8363
|
+
name: string;
|
|
8364
|
+
/**
|
|
8365
|
+
* Exact published model version.
|
|
8366
|
+
*/
|
|
8367
|
+
version: string;
|
|
8368
|
+
profile: AzureMlProfile;
|
|
8369
|
+
/**
|
|
8370
|
+
* Provider metadata retained for registration.
|
|
8371
|
+
*/
|
|
8372
|
+
metadata: JsonValue;
|
|
8373
|
+
}
|
|
8374
|
+
/**
|
|
8375
|
+
* Validated local runtime requirements for an Azure ML model.
|
|
8376
|
+
*
|
|
8377
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
8378
|
+
* via the `definition` "AzureMlProfile".
|
|
8379
|
+
*/
|
|
8380
|
+
/** @experimental */
|
|
8381
|
+
export interface AzureMlProfile {
|
|
8382
|
+
/**
|
|
8383
|
+
* Sanitized model-picker display label.
|
|
8384
|
+
*/
|
|
8385
|
+
displayName: string;
|
|
8386
|
+
/**
|
|
8387
|
+
* Published download size, when available.
|
|
8388
|
+
*/
|
|
8389
|
+
downloadBytes?: number | null;
|
|
8390
|
+
/**
|
|
8391
|
+
* Peak disk use during installation, when available.
|
|
8392
|
+
*/
|
|
8393
|
+
peakDiskBytes?: number | null;
|
|
8394
|
+
/**
|
|
8395
|
+
* Recommended graphics memory, when available.
|
|
8396
|
+
*/
|
|
8397
|
+
recommendedVramBytes?: number | null;
|
|
8398
|
+
/**
|
|
8399
|
+
* Maximum input tokens accepted by the model.
|
|
8400
|
+
*/
|
|
8401
|
+
maxPromptTokens: number;
|
|
8402
|
+
/**
|
|
8403
|
+
* Maximum context window accepted by the model.
|
|
8404
|
+
*/
|
|
8405
|
+
maxContextWindowTokens: number;
|
|
8406
|
+
/**
|
|
8407
|
+
* Maximum output tokens produced by the model.
|
|
8408
|
+
*/
|
|
8409
|
+
maxOutputTokens: number;
|
|
8410
|
+
/**
|
|
8411
|
+
* Whether the model supports tool calls.
|
|
8412
|
+
*/
|
|
8413
|
+
supportsToolCalls: boolean;
|
|
8414
|
+
/**
|
|
8415
|
+
* Validated local runtime configuration.
|
|
8416
|
+
*/
|
|
8417
|
+
serveOptions: JsonValue;
|
|
8418
|
+
/**
|
|
8419
|
+
* Published license, when available.
|
|
8420
|
+
*/
|
|
8421
|
+
license?: AzureMlLicense | null;
|
|
8422
|
+
}
|
|
8423
|
+
/**
|
|
8424
|
+
* License published with an eligible Azure ML model.
|
|
8425
|
+
*
|
|
8426
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
8427
|
+
* via the `definition` "AzureMlLicense".
|
|
8428
|
+
*/
|
|
8429
|
+
/** @experimental */
|
|
8430
|
+
export interface AzureMlLicense {
|
|
8431
|
+
/**
|
|
8432
|
+
* Bounded display label for the model license.
|
|
8433
|
+
*/
|
|
8434
|
+
name: string;
|
|
8435
|
+
}
|
|
8436
|
+
/**
|
|
8437
|
+
* Redacted warning for a skipped model or registry.
|
|
8438
|
+
*
|
|
8439
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
8440
|
+
* via the `definition` "AzureMlCatalogWarning".
|
|
8441
|
+
*/
|
|
8442
|
+
/** @experimental */
|
|
8443
|
+
export interface AzureMlCatalogWarning {
|
|
8444
|
+
registry: AzureMlRegistry;
|
|
8445
|
+
/**
|
|
8446
|
+
* Model family, or `catalog` for registry-wide errors.
|
|
8447
|
+
*/
|
|
8448
|
+
modelName: string;
|
|
8449
|
+
/**
|
|
8450
|
+
* Version, if one was available.
|
|
8451
|
+
*/
|
|
8452
|
+
version?: string | null;
|
|
8453
|
+
/**
|
|
8454
|
+
* Safe reason without signed access details.
|
|
8455
|
+
*/
|
|
8456
|
+
kind: string;
|
|
8457
|
+
}
|
|
8458
|
+
/**
|
|
8459
|
+
* Selects an inactive Azure ML version for cleanup.
|
|
8460
|
+
*
|
|
8461
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
8462
|
+
* via the `definition` "AzureMlDiscardRequest".
|
|
8463
|
+
*/
|
|
8464
|
+
/** @experimental */
|
|
8465
|
+
export interface AzureMlDiscardRequest {
|
|
8466
|
+
/**
|
|
8467
|
+
* Version directory under this server's Azure ML library.
|
|
8468
|
+
*/
|
|
8469
|
+
destination: string;
|
|
8470
|
+
/**
|
|
8471
|
+
* Optional connection-owned lease that spans the caller's complete family mutation.
|
|
8472
|
+
*/
|
|
8473
|
+
leaseId?: string | null;
|
|
8474
|
+
}
|
|
8475
|
+
/**
|
|
8476
|
+
* Selects an active connection-owned download.
|
|
8477
|
+
*
|
|
8478
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
8479
|
+
* via the `definition` "AzureMlDownloadIdRequest".
|
|
8480
|
+
*/
|
|
8481
|
+
/** @experimental */
|
|
8482
|
+
export interface AzureMlDownloadIdRequest {
|
|
8483
|
+
/**
|
|
8484
|
+
* Identifier supplied when this connection started the download.
|
|
8485
|
+
*/
|
|
8486
|
+
requestId: string;
|
|
8487
|
+
}
|
|
8488
|
+
/**
|
|
8489
|
+
* Downloads a model version to its configured local library.
|
|
8490
|
+
*
|
|
8491
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
8492
|
+
* via the `definition` "AzureMlDownloadRequest".
|
|
8493
|
+
*/
|
|
8494
|
+
/** @experimental */
|
|
8495
|
+
export interface AzureMlDownloadRequest {
|
|
8496
|
+
/**
|
|
8497
|
+
* Unique request identifier for progress and explicit cancellation.
|
|
8498
|
+
*/
|
|
8499
|
+
requestId: string;
|
|
8500
|
+
registry: AzureMlRegistry;
|
|
8501
|
+
/**
|
|
8502
|
+
* Exact model-family name.
|
|
8503
|
+
*/
|
|
8504
|
+
name: string;
|
|
8505
|
+
/**
|
|
8506
|
+
* Exact published version.
|
|
8507
|
+
*/
|
|
8508
|
+
version: string;
|
|
8509
|
+
/**
|
|
8510
|
+
* Version directory under this server's Azure ML library.
|
|
8511
|
+
*/
|
|
8512
|
+
destination: string;
|
|
8513
|
+
/**
|
|
8514
|
+
* Optional connection-owned lease that spans the caller's complete family mutation.
|
|
8515
|
+
*/
|
|
8516
|
+
leaseId?: string | null;
|
|
8517
|
+
}
|
|
8518
|
+
/**
|
|
8519
|
+
* Completed and verified Azure ML model files.
|
|
8520
|
+
*
|
|
8521
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
8522
|
+
* via the `definition` "AzureMlDownloadResult".
|
|
8523
|
+
*/
|
|
8524
|
+
/** @experimental */
|
|
8525
|
+
export interface AzureMlDownloadResult {
|
|
8526
|
+
/**
|
|
8527
|
+
* Installed GGUF path.
|
|
8528
|
+
*/
|
|
8529
|
+
primaryPath: string;
|
|
8530
|
+
/**
|
|
8531
|
+
* Published manifest path.
|
|
8532
|
+
*/
|
|
8533
|
+
manifestPath: string;
|
|
8534
|
+
/**
|
|
8535
|
+
* Exact bytes across the model version.
|
|
8536
|
+
*/
|
|
8537
|
+
totalBytes: number;
|
|
8538
|
+
/**
|
|
8539
|
+
* Whether all prior verified files were reused.
|
|
8540
|
+
*/
|
|
8541
|
+
reused: boolean;
|
|
8542
|
+
/**
|
|
8543
|
+
* Validated local runtime settings.
|
|
8544
|
+
*/
|
|
8545
|
+
serveOptions: JsonValue;
|
|
8546
|
+
/**
|
|
8547
|
+
* Maximum supported local concurrency.
|
|
8548
|
+
*/
|
|
8549
|
+
maxConcurrent: number;
|
|
8550
|
+
/**
|
|
8551
|
+
* Installed companion file paths.
|
|
8552
|
+
*/
|
|
8553
|
+
extraFiles: string[];
|
|
8554
|
+
/**
|
|
8555
|
+
* Transient transfer failures retried during this run.
|
|
8556
|
+
*/
|
|
8557
|
+
totalFailures?: number | null;
|
|
8558
|
+
/**
|
|
8559
|
+
* Bytes received over the network during this run, including discarded bytes.
|
|
8560
|
+
*/
|
|
8561
|
+
receivedBytes?: number | null;
|
|
8562
|
+
/**
|
|
8563
|
+
* Whether a partial from a prior run continued after the server accepted its range.
|
|
8564
|
+
*/
|
|
8565
|
+
resumed?: boolean | null;
|
|
8566
|
+
}
|
|
8567
|
+
/**
|
|
8568
|
+
* Progress and retry facts for one active download.
|
|
8569
|
+
*
|
|
8570
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
8571
|
+
* via the `definition` "AzureMlDownloadStatus".
|
|
8572
|
+
*/
|
|
8573
|
+
/** @experimental */
|
|
8574
|
+
export interface AzureMlDownloadStatus {
|
|
8575
|
+
/**
|
|
8576
|
+
* Current transfer phase.
|
|
8577
|
+
*/
|
|
8578
|
+
phase: string;
|
|
8579
|
+
/**
|
|
8580
|
+
* Bytes completed across all files.
|
|
8581
|
+
*/
|
|
8582
|
+
completedBytes: number;
|
|
8583
|
+
/**
|
|
8584
|
+
* Exact bytes expected across all files.
|
|
8585
|
+
*/
|
|
8586
|
+
totalBytes: number;
|
|
8587
|
+
/**
|
|
8588
|
+
* Next retry attempt, if the transfer is retrying.
|
|
8589
|
+
*/
|
|
8590
|
+
retryAttempt?: number | null;
|
|
8591
|
+
/**
|
|
8592
|
+
* Configured retry limit, if the transfer is retrying.
|
|
8593
|
+
*/
|
|
8594
|
+
maxAttempts?: number | null;
|
|
8595
|
+
/**
|
|
8596
|
+
* Redacted failure reason, if the transfer is retrying.
|
|
8597
|
+
*/
|
|
8598
|
+
retryReason?: string | null;
|
|
8599
|
+
/**
|
|
8600
|
+
* Planned delay before retry, if the transfer is retrying.
|
|
8601
|
+
*/
|
|
8602
|
+
retryDelayMs?: number | null;
|
|
8603
|
+
}
|
|
8604
|
+
/**
|
|
8605
|
+
* Opaque handle to a connection-owned family mutation interval.
|
|
8606
|
+
*
|
|
8607
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
8608
|
+
* via the `definition` "AzureMlFamilyLeaseResult".
|
|
8609
|
+
*/
|
|
8610
|
+
/** @experimental */
|
|
8611
|
+
export interface AzureMlFamilyLeaseResult {
|
|
8612
|
+
/**
|
|
8613
|
+
* Server-generated handle, valid only on the originating SDK connection.
|
|
8614
|
+
*/
|
|
8615
|
+
leaseId: string;
|
|
8616
|
+
}
|
|
8617
|
+
/**
|
|
8618
|
+
* Releases a family mutation interval owned by this SDK connection.
|
|
8619
|
+
*
|
|
8620
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
8621
|
+
* via the `definition` "AzureMlFamilyReleaseRequest".
|
|
8622
|
+
*/
|
|
8623
|
+
/** @experimental */
|
|
8624
|
+
export interface AzureMlFamilyReleaseRequest {
|
|
8625
|
+
/**
|
|
8626
|
+
* Server-generated handle from `azureMl.acquireFamily`.
|
|
8627
|
+
*/
|
|
8628
|
+
leaseId: string;
|
|
8629
|
+
registry: AzureMlRegistry;
|
|
8630
|
+
/**
|
|
8631
|
+
* Exact model-family name.
|
|
8632
|
+
*/
|
|
8633
|
+
name: string;
|
|
8634
|
+
}
|
|
8635
|
+
/**
|
|
8636
|
+
* Identifies a family in the server's Azure ML model library.
|
|
8637
|
+
*
|
|
8638
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
8639
|
+
* via the `definition` "AzureMlFamilyRequest".
|
|
8640
|
+
*/
|
|
8641
|
+
/** @experimental */
|
|
8642
|
+
export interface AzureMlFamilyRequest {
|
|
8643
|
+
registry: AzureMlRegistry;
|
|
8644
|
+
/**
|
|
8645
|
+
* Exact model-family name.
|
|
8646
|
+
*/
|
|
8647
|
+
name: string;
|
|
8648
|
+
}
|
|
8649
|
+
/**
|
|
8650
|
+
* Selects an Azure ML model family.
|
|
8651
|
+
*
|
|
8652
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
8653
|
+
* via the `definition` "AzureMlLatestRequest".
|
|
8654
|
+
*/
|
|
8655
|
+
/** @experimental */
|
|
8656
|
+
export interface AzureMlLatestRequest {
|
|
8657
|
+
registry: AzureMlRegistry;
|
|
8658
|
+
/**
|
|
8659
|
+
* Exact model-family name.
|
|
8660
|
+
*/
|
|
8661
|
+
name: string;
|
|
8662
|
+
}
|
|
8663
|
+
/**
|
|
8664
|
+
* Selects an immutable model version.
|
|
8665
|
+
*
|
|
8666
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
8667
|
+
* via the `definition` "AzureMlResolveRequest".
|
|
8668
|
+
*/
|
|
8669
|
+
/** @experimental */
|
|
8670
|
+
export interface AzureMlResolveRequest {
|
|
8671
|
+
registry: AzureMlRegistry;
|
|
8672
|
+
/**
|
|
8673
|
+
* Exact model-family name.
|
|
8674
|
+
*/
|
|
8675
|
+
name: string;
|
|
8676
|
+
/**
|
|
8677
|
+
* Exact published version.
|
|
8678
|
+
*/
|
|
8679
|
+
version: string;
|
|
8680
|
+
}
|
|
8681
|
+
/**
|
|
8682
|
+
* Resolved artifact facts without signed download URLs.
|
|
8683
|
+
*
|
|
8684
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
8685
|
+
* via the `definition` "AzureMlResolveResult".
|
|
8686
|
+
*/
|
|
8687
|
+
/** @experimental */
|
|
8688
|
+
export interface AzureMlResolveResult {
|
|
8689
|
+
/**
|
|
8690
|
+
* Exact bytes across all files in this version.
|
|
8691
|
+
*/
|
|
8692
|
+
totalBytes: number;
|
|
8693
|
+
/**
|
|
8694
|
+
* GGUF path relative to the version directory.
|
|
8695
|
+
*/
|
|
8696
|
+
primaryPath: string;
|
|
8697
|
+
/**
|
|
8698
|
+
* Other paths relative to the version directory.
|
|
8699
|
+
*/
|
|
8700
|
+
extraFiles: string[];
|
|
8701
|
+
/**
|
|
8702
|
+
* Validated local runtime settings.
|
|
8703
|
+
*/
|
|
8704
|
+
serveOptions: JsonValue;
|
|
8705
|
+
/**
|
|
8706
|
+
* Maximum supported local concurrency.
|
|
8707
|
+
*/
|
|
8708
|
+
maxConcurrent: number;
|
|
8709
|
+
}
|
|
8268
8710
|
/**
|
|
8269
8711
|
* The running runtime's complete catalog of well-known built-in model IDs, including supported models and additional IDs with built-in metadata.
|
|
8270
8712
|
*
|
|
@@ -10172,6 +10614,13 @@ export interface CatalogSearchRequest {
|
|
|
10172
10614
|
* @maxItems 3
|
|
10173
10615
|
*/
|
|
10174
10616
|
kinds?: [CatalogCandidateKind] | [CatalogCandidateKind, CatalogCandidateKind] | [CatalogCandidateKind, CatalogCandidateKind, CatalogCandidateKind];
|
|
10617
|
+
/**
|
|
10618
|
+
* Restrict results to resources in at least one of these server-defined workflow categories, such as `design` or `test`. Requires the `catalog-search-categories` capability. Each value is a lowercase slug; the known set is not exhaustive, and a category the server does not recognise matches nothing. Omit to search every category.
|
|
10619
|
+
*
|
|
10620
|
+
* @minItems 1
|
|
10621
|
+
* @maxItems 10
|
|
10622
|
+
*/
|
|
10623
|
+
categories?: [string] | [string, string] | [string, string, string] | [string, string, string, string] | [string, string, string, string, string] | [string, string, string, string, string, string] | [string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string];
|
|
10175
10624
|
page?: CatalogSearchPage;
|
|
10176
10625
|
}
|
|
10177
10626
|
/**
|
|
@@ -16285,6 +16734,10 @@ export interface McpConfiguredServerState {
|
|
|
16285
16734
|
* Observed connection error, when the materialized server failed.
|
|
16286
16735
|
*/
|
|
16287
16736
|
error?: string;
|
|
16737
|
+
/**
|
|
16738
|
+
* Whether the server's current connection has loaded its tool list (from tools/list or a cached snapshot). A connected server without loaded tools is still loading them; the change is signalled by session.mcp_server_tools_loaded. Absent when the runtime does not report it.
|
|
16739
|
+
*/
|
|
16740
|
+
toolsLoaded?: boolean;
|
|
16288
16741
|
}
|
|
16289
16742
|
/**
|
|
16290
16743
|
* Effective MCP configuration with optional live observations from matching already materialized servers.
|
|
@@ -16876,7 +17329,7 @@ export interface McpOauthCompleteRequest {
|
|
|
16876
17329
|
callbackUrl: string;
|
|
16877
17330
|
}
|
|
16878
17331
|
/**
|
|
16879
|
-
* Pending MCP OAuth request ID and host
|
|
17332
|
+
* Pending MCP OAuth request ID and host token, cancellation, or advertised runtime refresh response.
|
|
16880
17333
|
*
|
|
16881
17334
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
16882
17335
|
* via the `definition` "McpOauthHandlePendingRequest".
|
|
@@ -25779,6 +26232,10 @@ export interface SessionOpenOptions {
|
|
|
25779
26232
|
* @experimental
|
|
25780
26233
|
*/
|
|
25781
26234
|
additionalContentExclusionPolicies?: SessionOpenOptionsAdditionalContentExclusionPolicy[];
|
|
26235
|
+
/**
|
|
26236
|
+
* Live gate for repository-origin file hooks, including the primary repository, trusted repository-configured roots, and accepted startup additional directories (including CLI --add-dir). False suppresses these hooks; explicit hookDirectories and SDK callbacks are independent. Additional-root eligibility and the DISABLE_ADDITIONAL_DIRECTORY_HOOKS escape hatch are captured at create/cold resume, not expanded by later grants or feature-flag changes. Discovery uses containing Git roots, so supply only trusted repositories: commands and prompts need no further approval. Policy, hook-disable settings, and sandbox rules still apply. Provider-backed sessions skip repository hooks with a warning on omission, skip silently on false, and reject explicit true.
|
|
26237
|
+
*/
|
|
26238
|
+
enableFileHooks?: boolean;
|
|
25782
26239
|
memory?: MemoryConfiguration;
|
|
25783
26240
|
/**
|
|
25784
26241
|
* Capabilities enabled for this session.
|
|
@@ -27970,6 +28427,10 @@ export interface SkillProviderDescriptor {
|
|
|
27970
28427
|
* Optional freeform argument hint used by slash-command catalogs.
|
|
27971
28428
|
*/
|
|
27972
28429
|
argumentHint?: string;
|
|
28430
|
+
/**
|
|
28431
|
+
* Absolute path to the folder that holds the skill's supporting files (scripts, references, templates, assets), in the session's path conventions: the host OS for local disk, or the registered SessionFs conventions. When the skill is activated the runtime lists the folder's files for the model through the session's filesystem, with the same rules as a file-based skill's folder; it never reads or copies them. On local disk the folder becomes a read-only skill root, like a configured skill directory. It is not shown in skill catalogs.
|
|
28432
|
+
*/
|
|
28433
|
+
directory?: string;
|
|
27973
28434
|
}
|
|
27974
28435
|
/**
|
|
27975
28436
|
* Skill names to mark as disabled in global configuration, replacing any previous list.
|
|
@@ -32459,6 +32920,118 @@ export interface ModelsListTokenPriceUnitsRequest {
|
|
|
32459
32920
|
*/
|
|
32460
32921
|
gitHubToken?: string;
|
|
32461
32922
|
}
|
|
32923
|
+
/**
|
|
32924
|
+
* Eligible Azure ML model version and its provider metadata.
|
|
32925
|
+
*
|
|
32926
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
32927
|
+
* via the `definition` "AzureMlLatestResult".
|
|
32928
|
+
*/
|
|
32929
|
+
/** @experimental */
|
|
32930
|
+
export interface AzureMlLatestResult {
|
|
32931
|
+
registry: AzureMlRegistry;
|
|
32932
|
+
/**
|
|
32933
|
+
* Stable model-family name.
|
|
32934
|
+
*/
|
|
32935
|
+
name: string;
|
|
32936
|
+
/**
|
|
32937
|
+
* Exact published model version.
|
|
32938
|
+
*/
|
|
32939
|
+
version: string;
|
|
32940
|
+
profile: AzureMlProfile;
|
|
32941
|
+
/**
|
|
32942
|
+
* Provider metadata retained for registration.
|
|
32943
|
+
*/
|
|
32944
|
+
metadata: JsonValue;
|
|
32945
|
+
}
|
|
32946
|
+
/**
|
|
32947
|
+
* Opaque handle to a connection-owned family mutation interval.
|
|
32948
|
+
*
|
|
32949
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
32950
|
+
* via the `definition` "AzureMlAcquireFamilyResult".
|
|
32951
|
+
*/
|
|
32952
|
+
/** @experimental */
|
|
32953
|
+
export interface AzureMlAcquireFamilyResult {
|
|
32954
|
+
/**
|
|
32955
|
+
* Server-generated handle, valid only on the originating SDK connection.
|
|
32956
|
+
*/
|
|
32957
|
+
leaseId: string;
|
|
32958
|
+
}
|
|
32959
|
+
/**
|
|
32960
|
+
* Identifies a family in the server's Azure ML model library.
|
|
32961
|
+
*
|
|
32962
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
32963
|
+
* via the `definition` "AzureMlAcquireFamilyRequest".
|
|
32964
|
+
*/
|
|
32965
|
+
/** @experimental */
|
|
32966
|
+
export interface AzureMlAcquireFamilyRequest {
|
|
32967
|
+
registry: AzureMlRegistry;
|
|
32968
|
+
/**
|
|
32969
|
+
* Exact model-family name.
|
|
32970
|
+
*/
|
|
32971
|
+
name: string;
|
|
32972
|
+
}
|
|
32973
|
+
/**
|
|
32974
|
+
* Empty acknowledgement for a completed host lifecycle operation.
|
|
32975
|
+
*
|
|
32976
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
32977
|
+
* via the `definition` "AzureMlReleaseFamilyResult".
|
|
32978
|
+
*/
|
|
32979
|
+
/** @experimental */
|
|
32980
|
+
export interface AzureMlReleaseFamilyResult {
|
|
32981
|
+
}
|
|
32982
|
+
/**
|
|
32983
|
+
* Releases a family mutation interval owned by this SDK connection.
|
|
32984
|
+
*
|
|
32985
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
32986
|
+
* via the `definition` "AzureMlReleaseFamilyRequest".
|
|
32987
|
+
*/
|
|
32988
|
+
/** @experimental */
|
|
32989
|
+
export interface AzureMlReleaseFamilyRequest {
|
|
32990
|
+
/**
|
|
32991
|
+
* Server-generated handle from `azureMl.acquireFamily`.
|
|
32992
|
+
*/
|
|
32993
|
+
leaseId: string;
|
|
32994
|
+
registry: AzureMlRegistry;
|
|
32995
|
+
/**
|
|
32996
|
+
* Exact model-family name.
|
|
32997
|
+
*/
|
|
32998
|
+
name: string;
|
|
32999
|
+
}
|
|
33000
|
+
/**
|
|
33001
|
+
* Selects an active connection-owned download.
|
|
33002
|
+
*
|
|
33003
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
33004
|
+
* via the `definition` "AzureMlStatusRequest".
|
|
33005
|
+
*/
|
|
33006
|
+
/** @experimental */
|
|
33007
|
+
export interface AzureMlStatusRequest {
|
|
33008
|
+
/**
|
|
33009
|
+
* Identifier supplied when this connection started the download.
|
|
33010
|
+
*/
|
|
33011
|
+
requestId: string;
|
|
33012
|
+
}
|
|
33013
|
+
/**
|
|
33014
|
+
* Selects an active connection-owned download.
|
|
33015
|
+
*
|
|
33016
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
33017
|
+
* via the `definition` "AzureMlCancelRequest".
|
|
33018
|
+
*/
|
|
33019
|
+
/** @experimental */
|
|
33020
|
+
export interface AzureMlCancelRequest {
|
|
33021
|
+
/**
|
|
33022
|
+
* Identifier supplied when this connection started the download.
|
|
33023
|
+
*/
|
|
33024
|
+
requestId: string;
|
|
33025
|
+
}
|
|
33026
|
+
/**
|
|
33027
|
+
* Empty acknowledgement for a completed host lifecycle operation.
|
|
33028
|
+
*
|
|
33029
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
33030
|
+
* via the `definition` "AzureMlDiscardResult".
|
|
33031
|
+
*/
|
|
33032
|
+
/** @experimental */
|
|
33033
|
+
export interface AzureMlDiscardResult {
|
|
33034
|
+
}
|
|
32462
33035
|
/** @experimental */
|
|
32463
33036
|
export interface SessionWorkflowPauseAtCheckpointResult {
|
|
32464
33037
|
action: WorkflowPauseCheckpointAction;
|
|
@@ -33239,6 +33812,81 @@ export declare function createServerRpc(connection: MessageConnection): {
|
|
|
33239
33812
|
listTokenPriceUnits: (params?: ModelsListTokenPriceUnitsRequest) => Promise<ModelTokenPriceUnitList>;
|
|
33240
33813
|
};
|
|
33241
33814
|
/** @experimental */
|
|
33815
|
+
azureMl: {
|
|
33816
|
+
/**
|
|
33817
|
+
* Lists eligible Azure ML local models and redacted warnings before a chat session exists.
|
|
33818
|
+
*
|
|
33819
|
+
* @param params Lists models eligible for local use before a chat session exists.
|
|
33820
|
+
*
|
|
33821
|
+
* @returns Eligible models and redacted validation warnings.
|
|
33822
|
+
*/
|
|
33823
|
+
catalog: (params: AzureMlCatalogRequest) => Promise<AzureMlCatalogResult>;
|
|
33824
|
+
/**
|
|
33825
|
+
* Revalidates the newest eligible version of one Azure ML model family.
|
|
33826
|
+
*
|
|
33827
|
+
* @param params Selects an Azure ML model family.
|
|
33828
|
+
*
|
|
33829
|
+
* @returns Eligible Azure ML model version and its provider metadata.
|
|
33830
|
+
*/
|
|
33831
|
+
latest: (params: AzureMlLatestRequest) => Promise<AzureMlLatestResult>;
|
|
33832
|
+
/**
|
|
33833
|
+
* Resolves immutable artifact facts without returning signed access URLs.
|
|
33834
|
+
*
|
|
33835
|
+
* @param params Selects an immutable model version.
|
|
33836
|
+
*
|
|
33837
|
+
* @returns Resolved artifact facts without signed download URLs.
|
|
33838
|
+
*/
|
|
33839
|
+
resolve: (params: AzureMlResolveRequest) => Promise<AzureMlResolveResult>;
|
|
33840
|
+
/**
|
|
33841
|
+
* Downloads and verifies a connection-owned model version, returning only after placement and manifest publication.
|
|
33842
|
+
*
|
|
33843
|
+
* @param params Downloads a model version to its configured local library.
|
|
33844
|
+
*
|
|
33845
|
+
* @returns Completed and verified Azure ML model files.
|
|
33846
|
+
*/
|
|
33847
|
+
download: (params: AzureMlDownloadRequest) => Promise<AzureMlDownloadResult>;
|
|
33848
|
+
/**
|
|
33849
|
+
* Acquires a connection-owned model-family mutation lease across transfer, activation, registration, and cleanup.
|
|
33850
|
+
*
|
|
33851
|
+
* @param params Identifies a family in the server's Azure ML model library.
|
|
33852
|
+
*
|
|
33853
|
+
* @returns Opaque handle to a connection-owned family mutation interval.
|
|
33854
|
+
*/
|
|
33855
|
+
acquireFamily: (params: AzureMlAcquireFamilyRequest) => Promise<AzureMlAcquireFamilyResult>;
|
|
33856
|
+
/**
|
|
33857
|
+
* Releases a connection-owned family lease after its active download and cleanup operations complete.
|
|
33858
|
+
*
|
|
33859
|
+
* @param params Releases a family mutation interval owned by this SDK connection.
|
|
33860
|
+
*
|
|
33861
|
+
* @returns Empty acknowledgement for a completed host lifecycle operation.
|
|
33862
|
+
*/
|
|
33863
|
+
releaseFamily: (params: AzureMlReleaseFamilyRequest) => Promise<AzureMlReleaseFamilyResult>;
|
|
33864
|
+
/**
|
|
33865
|
+
* Returns progress for an active download owned by this connection, or null after completion.
|
|
33866
|
+
*
|
|
33867
|
+
* @param params Selects an active connection-owned download.
|
|
33868
|
+
*
|
|
33869
|
+
* @returns Active Azure ML download progress or null.
|
|
33870
|
+
*/
|
|
33871
|
+
status: (params: AzureMlStatusRequest) => Promise<AzureMlStatusResult>;
|
|
33872
|
+
/**
|
|
33873
|
+
* Cancels a connection-owned download; the download call reports terminal cleanup separately.
|
|
33874
|
+
*
|
|
33875
|
+
* @param params Selects an active connection-owned download.
|
|
33876
|
+
*
|
|
33877
|
+
* @returns Whether an active connection-owned transfer accepted cancellation.
|
|
33878
|
+
*/
|
|
33879
|
+
cancel: (params: AzureMlCancelRequest) => Promise<AzureMlCancelResult>;
|
|
33880
|
+
/**
|
|
33881
|
+
* Discards an inactive model version under the server-owned Azure ML library.
|
|
33882
|
+
*
|
|
33883
|
+
* @param params Selects an inactive Azure ML version for cleanup.
|
|
33884
|
+
*
|
|
33885
|
+
* @returns Empty acknowledgement for a completed host lifecycle operation.
|
|
33886
|
+
*/
|
|
33887
|
+
discard: (params: AzureMlDiscardRequest) => Promise<AzureMlDiscardResult>;
|
|
33888
|
+
};
|
|
33889
|
+
/** @experimental */
|
|
33242
33890
|
contentExclusion: {
|
|
33243
33891
|
/**
|
|
33244
33892
|
* Validates candidate content-exclusion policies and returns them normalized, without starting a session. This runs the same parser the runtime's own policy enforcement uses, so a host cannot accept a policy set the runtime would later reject, nor reject one it would have honored. Call it when policies arrive from outside the runtime — a command-line flag, a configuration file, a host's own settings — and must be checked before a session exists to apply them to. A malformed document fails with a message prefixed `Invalid JSON: `; a well-formed document that violates the policy schema fails with the offending field paths.
|
|
@@ -35044,9 +35692,9 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
35044
35692
|
/** @experimental */
|
|
35045
35693
|
oauth: {
|
|
35046
35694
|
/**
|
|
35047
|
-
* Resolves a pending MCP OAuth request with a host-provided token or
|
|
35695
|
+
* Resolves a pending MCP OAuth request with a host-provided token, cancellation, or a noninteractive runtime refresh handoff when the request advertises runtimeRefreshSupported. Acceptance resolves the host response, not credential installation, reconnect, or the original tool invocation.
|
|
35048
35696
|
*
|
|
35049
|
-
* @param params Pending MCP OAuth request ID and host
|
|
35697
|
+
* @param params Pending MCP OAuth request ID and host token, cancellation, or advertised runtime refresh response.
|
|
35050
35698
|
*
|
|
35051
35699
|
* @returns Indicates whether the pending MCP OAuth response was accepted.
|
|
35052
35700
|
*/
|
package/dist/generated/rpc.js
CHANGED
|
@@ -253,6 +253,81 @@ function createServerRpc(connection) {
|
|
|
253
253
|
listTokenPriceUnits: async (params) => connection.sendRequest("models.listTokenPriceUnits", params)
|
|
254
254
|
},
|
|
255
255
|
/** @experimental */
|
|
256
|
+
azureMl: {
|
|
257
|
+
/**
|
|
258
|
+
* Lists eligible Azure ML local models and redacted warnings before a chat session exists.
|
|
259
|
+
*
|
|
260
|
+
* @param params Lists models eligible for local use before a chat session exists.
|
|
261
|
+
*
|
|
262
|
+
* @returns Eligible models and redacted validation warnings.
|
|
263
|
+
*/
|
|
264
|
+
catalog: async (params) => connection.sendRequest("azureMl.catalog", params),
|
|
265
|
+
/**
|
|
266
|
+
* Revalidates the newest eligible version of one Azure ML model family.
|
|
267
|
+
*
|
|
268
|
+
* @param params Selects an Azure ML model family.
|
|
269
|
+
*
|
|
270
|
+
* @returns Eligible Azure ML model version and its provider metadata.
|
|
271
|
+
*/
|
|
272
|
+
latest: async (params) => connection.sendRequest("azureMl.latest", params),
|
|
273
|
+
/**
|
|
274
|
+
* Resolves immutable artifact facts without returning signed access URLs.
|
|
275
|
+
*
|
|
276
|
+
* @param params Selects an immutable model version.
|
|
277
|
+
*
|
|
278
|
+
* @returns Resolved artifact facts without signed download URLs.
|
|
279
|
+
*/
|
|
280
|
+
resolve: async (params) => connection.sendRequest("azureMl.resolve", params),
|
|
281
|
+
/**
|
|
282
|
+
* Downloads and verifies a connection-owned model version, returning only after placement and manifest publication.
|
|
283
|
+
*
|
|
284
|
+
* @param params Downloads a model version to its configured local library.
|
|
285
|
+
*
|
|
286
|
+
* @returns Completed and verified Azure ML model files.
|
|
287
|
+
*/
|
|
288
|
+
download: async (params) => connection.sendRequest("azureMl.download", params),
|
|
289
|
+
/**
|
|
290
|
+
* Acquires a connection-owned model-family mutation lease across transfer, activation, registration, and cleanup.
|
|
291
|
+
*
|
|
292
|
+
* @param params Identifies a family in the server's Azure ML model library.
|
|
293
|
+
*
|
|
294
|
+
* @returns Opaque handle to a connection-owned family mutation interval.
|
|
295
|
+
*/
|
|
296
|
+
acquireFamily: async (params) => connection.sendRequest("azureMl.acquireFamily", params),
|
|
297
|
+
/**
|
|
298
|
+
* Releases a connection-owned family lease after its active download and cleanup operations complete.
|
|
299
|
+
*
|
|
300
|
+
* @param params Releases a family mutation interval owned by this SDK connection.
|
|
301
|
+
*
|
|
302
|
+
* @returns Empty acknowledgement for a completed host lifecycle operation.
|
|
303
|
+
*/
|
|
304
|
+
releaseFamily: async (params) => connection.sendRequest("azureMl.releaseFamily", params),
|
|
305
|
+
/**
|
|
306
|
+
* Returns progress for an active download owned by this connection, or null after completion.
|
|
307
|
+
*
|
|
308
|
+
* @param params Selects an active connection-owned download.
|
|
309
|
+
*
|
|
310
|
+
* @returns Active Azure ML download progress or null.
|
|
311
|
+
*/
|
|
312
|
+
status: async (params) => connection.sendRequest("azureMl.status", params),
|
|
313
|
+
/**
|
|
314
|
+
* Cancels a connection-owned download; the download call reports terminal cleanup separately.
|
|
315
|
+
*
|
|
316
|
+
* @param params Selects an active connection-owned download.
|
|
317
|
+
*
|
|
318
|
+
* @returns Whether an active connection-owned transfer accepted cancellation.
|
|
319
|
+
*/
|
|
320
|
+
cancel: async (params) => connection.sendRequest("azureMl.cancel", params),
|
|
321
|
+
/**
|
|
322
|
+
* Discards an inactive model version under the server-owned Azure ML library.
|
|
323
|
+
*
|
|
324
|
+
* @param params Selects an inactive Azure ML version for cleanup.
|
|
325
|
+
*
|
|
326
|
+
* @returns Empty acknowledgement for a completed host lifecycle operation.
|
|
327
|
+
*/
|
|
328
|
+
discard: async (params) => connection.sendRequest("azureMl.discard", params)
|
|
329
|
+
},
|
|
330
|
+
/** @experimental */
|
|
256
331
|
contentExclusion: {
|
|
257
332
|
/**
|
|
258
333
|
* Validates candidate content-exclusion policies and returns them normalized, without starting a session. This runs the same parser the runtime's own policy enforcement uses, so a host cannot accept a policy set the runtime would later reject, nor reject one it would have honored. Call it when policies arrive from outside the runtime — a command-line flag, a configuration file, a host's own settings — and must be checked before a session exists to apply them to. A malformed document fails with a message prefixed `Invalid JSON: `; a well-formed document that violates the policy schema fails with the offending field paths.
|
|
@@ -2936,9 +3011,9 @@ function createSessionRpc(connection, sessionId) {
|
|
|
2936
3011
|
/** @experimental */
|
|
2937
3012
|
oauth: {
|
|
2938
3013
|
/**
|
|
2939
|
-
* Resolves a pending MCP OAuth request with a host-provided token or
|
|
3014
|
+
* Resolves a pending MCP OAuth request with a host-provided token, cancellation, or a noninteractive runtime refresh handoff when the request advertises runtimeRefreshSupported. Acceptance resolves the host response, not credential installation, reconnect, or the original tool invocation.
|
|
2940
3015
|
*
|
|
2941
|
-
* @param params Pending MCP OAuth request ID and host
|
|
3016
|
+
* @param params Pending MCP OAuth request ID and host token, cancellation, or advertised runtime refresh response.
|
|
2942
3017
|
*
|
|
2943
3018
|
* @returns Indicates whether the pending MCP OAuth response was accepted.
|
|
2944
3019
|
*/
|
|
@@ -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 | IndexedSearchEvent | WarningEvent | ModelChangeEvent | ModelDeselectedEvent | AutoTierRecommendationEvent | AutoTierSwitchFailedEvent | ModeChangedEvent | ModeNoticeDeliveredEvent | SessionLimitsChangedEvent | PermissionsChangedEvent | PlanChangedEvent | TodosChangedEvent | WorkspaceFileChangedEvent | HandoffEvent | TruncationEvent | SnapshotRewindEvent | ShutdownEvent | UsageCheckpointEvent | ProviderQuotaObservationEvent | ContextChangedEvent | UsageInfoEvent | ContextClearedEvent | CompactionStartEvent | CompactionCompleteEvent | TaskCompleteEvent | CompletionReceiptEvent | FusionRouteStartedEvent | FusionRouteFailedEvent | FusionResolvedEvent | FusionCompletedEvent | PermissionRecoveryEvent | UserMessageEvent | PendingMessagesModifiedEvent | AssistantTurnStartEvent | AssistantIntentEvent | AssistantFusionPhaseStartedEvent | AssistantFusionPhaseActivityEvent | AssistantFusionPhaseCompletedEvent | AssistantFusionPhaseFailedEvent | AssistantServerToolProgressEvent | AssistantReasoningEvent | AssistantReasoningDeltaEvent | AssistantToolCallDeltaEvent | AssistantStreamingDeltaEvent | AssistantMessageEvent | AssistantMessageStartEvent | AssistantMessageDeltaEvent | AssistantTurnEndEvent | AssistantIdleEvent | AssistantUsageEvent | ModelCallFailureEvent | ModelCallFinishedEvent | AbortEvent | ToolUserRequestedEvent | ToolExecutionStartEvent | ToolExecutionPartialResultEvent | ToolShellOutputEvent | ToolExecutionProgressEvent | ToolExecutionCompleteEvent | ToolSearchActivatedEvent | SkillInvokedEvent | SubagentStartedEvent | SubagentConfiguredEvent | SubagentCompletedEvent | SubagentFailedEvent | SubagentSelectedEvent | SubagentDeselectedEvent | HookStartEvent | HookEndEvent | HookProgressEvent | BinaryAssetEvent | SystemMessageEvent | SystemNotificationEvent | PermissionRequestedEvent | PermissionCompletedEvent | PermissionCarriedForwardEvent | PermissionMessageAuthorizationEvent | PermissionMessageAuthorizationReadEvent | PermissionMessageAuthorizationDegradedEvent | PermissionAssentDetectedEvent | PermissionContextualAuthorizationEvent | UserInputRequestedEvent | UserInputCompletedEvent | ElicitationRequestedEvent | ElicitationCompletedEvent | SamplingRequestedEvent | SamplingCompletedEvent | McpOauthRequiredEvent | McpOauthCompletedEvent | McpHeadersRefreshRequiredEvent | McpHeadersRefreshCompletedEvent | CustomNotificationEvent | UIEphemeralQueryEvent | ExternalToolRequestedEvent | ExternalToolCompletedEvent | CommandQueuedEvent | CommandExecuteEvent | CommandCompletedEvent | AutoModeSwitchRequestedEvent | AutoModeSwitchCompletedEvent | SessionLimitsExhaustedRequestedEvent | SessionLimitsExhaustedCompletedEvent | AutoModeResolvedEvent | ManagedPluginProgressEvent | ManagedSettingsResolvedEvent | ManagedSettingsEnforcedEvent | CommandsChangedEvent | CapabilitiesChangedEvent | ExitPlanModeRequestedEvent | ExitPlanModeCompletedEvent | HumanResponseRecordedEvent | ToolsUpdatedEvent | BackgroundTasksChangedEvent | WorkflowRunUpdatedEvent | WorkflowRunStartedEvent | WorkflowRunSettledEvent | SkillsLoadedEvent | CustomAgentsUpdatedEvent | McpServersLoadedEvent | McpServerStatusChangedEvent | McpServerRemovedEvent | McpServerNeedsReconnectEvent | McpToolsListChangedEvent | McpResourcesListChangedEvent | McpPromptsListChangedEvent | ExtensionsLoadedEvent | CanvasOpenedEvent | CanvasRegistryChangedEvent | CanvasClosedEvent | CanvasUnavailableEvent | CanvasRecordedEvent | CanvasRemovedEvent | ExtensionsAttachmentsPushedEvent | McpAppToolCallCompleteEvent;
|
|
12
|
+
export type SessionEvent = StartEvent | ResumeEvent | RemoteSteerableChangedEvent | ErrorEvent | IdleEvent | TitleChangedEvent | ScheduleCreatedEvent | ScheduleCancelledEvent | ScheduleRearmedEvent | AutopilotObjectiveChangedEvent | InfoEvent | IndexedSearchEvent | WarningEvent | ModelChangeEvent | ModelDeselectedEvent | AutoTierRecommendationEvent | AutoTierSwitchFailedEvent | ModeChangedEvent | ModeNoticeDeliveredEvent | SessionLimitsChangedEvent | PermissionsChangedEvent | PlanChangedEvent | TodosChangedEvent | WorkspaceFileChangedEvent | HandoffEvent | TruncationEvent | SnapshotRewindEvent | ShutdownEvent | UsageCheckpointEvent | ProviderQuotaObservationEvent | ContextChangedEvent | UsageInfoEvent | ContextClearedEvent | CompactionStartEvent | CompactionCompleteEvent | TaskCompleteEvent | CompletionReceiptEvent | FusionRouteStartedEvent | FusionRouteFailedEvent | FusionResolvedEvent | FusionCompletedEvent | PermissionRecoveryEvent | UserMessageEvent | PendingMessagesModifiedEvent | AssistantTurnStartEvent | AssistantIntentEvent | AssistantFusionPhaseStartedEvent | AssistantFusionPhaseActivityEvent | AssistantFusionPhaseCompletedEvent | AssistantFusionPhaseFailedEvent | AssistantServerToolProgressEvent | AssistantReasoningEvent | AssistantReasoningDeltaEvent | AssistantToolCallDeltaEvent | AssistantStreamingDeltaEvent | AssistantMessageEvent | AssistantMessageStartEvent | AssistantMessageDeltaEvent | AssistantTurnEndEvent | AssistantIdleEvent | AssistantUsageEvent | ModelCallFailureEvent | ModelCallFinishedEvent | AbortEvent | ToolUserRequestedEvent | ToolExecutionStartEvent | ToolExecutionPartialResultEvent | ToolShellOutputEvent | ToolExecutionProgressEvent | ToolExecutionCompleteEvent | ToolSearchActivatedEvent | SkillInvokedEvent | SubagentStartedEvent | SubagentConfiguredEvent | SubagentCompletedEvent | SubagentFailedEvent | SubagentSelectedEvent | SubagentDeselectedEvent | HookStartEvent | HookEndEvent | HookProgressEvent | BinaryAssetEvent | SystemMessageEvent | SystemNotificationEvent | PermissionRequestedEvent | PermissionCompletedEvent | PermissionCarriedForwardEvent | PermissionMessageAuthorizationEvent | PermissionMessageAuthorizationReadEvent | PermissionMessageAuthorizationDegradedEvent | PermissionAssentDetectedEvent | PermissionContextualAuthorizationEvent | UserInputRequestedEvent | UserInputCompletedEvent | ElicitationRequestedEvent | ElicitationCompletedEvent | SamplingRequestedEvent | SamplingCompletedEvent | McpOauthRequiredEvent | McpOauthCompletedEvent | McpOauthRecoveryCompletedEvent | McpHeadersRefreshRequiredEvent | McpHeadersRefreshCompletedEvent | CustomNotificationEvent | UIEphemeralQueryEvent | ExternalToolRequestedEvent | ExternalToolCompletedEvent | CommandQueuedEvent | CommandExecuteEvent | CommandCompletedEvent | AutoModeSwitchRequestedEvent | AutoModeSwitchCompletedEvent | SessionLimitsExhaustedRequestedEvent | SessionLimitsExhaustedCompletedEvent | AutoModeResolvedEvent | ManagedPluginProgressEvent | ManagedSettingsResolvedEvent | ManagedSettingsEnforcedEvent | CommandsChangedEvent | CapabilitiesChangedEvent | ExitPlanModeRequestedEvent | ExitPlanModeCompletedEvent | HumanResponseRecordedEvent | ToolsUpdatedEvent | BackgroundTasksChangedEvent | WorkflowRunUpdatedEvent | WorkflowRunStartedEvent | WorkflowRunSettledEvent | SkillsLoadedEvent | CustomAgentsUpdatedEvent | McpServersLoadedEvent | McpServerStatusChangedEvent | McpServerToolsLoadedEvent | McpServerRemovedEvent | McpServerNeedsReconnectEvent | McpToolsListChangedEvent | McpResourcesListChangedEvent | McpPromptsListChangedEvent | ExtensionsLoadedEvent | CanvasOpenedEvent | CanvasRegistryChangedEvent | CanvasClosedEvent | CanvasUnavailableEvent | CanvasRecordedEvent | CanvasRemovedEvent | ExtensionsAttachmentsPushedEvent | McpAppToolCallCompleteEvent;
|
|
13
13
|
/**
|
|
14
14
|
* Extensible routing preference for the virtual `auto` model. New identifiers must be advertised and enabled by the provider. `fast` is an integrator-only latency preset.
|
|
15
15
|
*/
|
|
@@ -786,6 +786,14 @@ export type AssistantUsageApiEndpoint =
|
|
|
786
786
|
| "/responses"
|
|
787
787
|
/** WebSocket Responses API endpoint. */
|
|
788
788
|
| "ws:/responses";
|
|
789
|
+
/**
|
|
790
|
+
* How the runtime fell back to an uncompressed request body after a compressed body was rejected
|
|
791
|
+
*/
|
|
792
|
+
export type ModelCallRequestBodyCompressionFallback =
|
|
793
|
+
/** A compressed body was rejected with HTTP 400 or 415 and this outcome comes from the single uncompressed resend. */
|
|
794
|
+
"retried"
|
|
795
|
+
/** Request body compression was already turned off for the session by an earlier rejection, so the body was sent uncompressed. */
|
|
796
|
+
| "disabled";
|
|
789
797
|
/**
|
|
790
798
|
* Content-Encoding applied to the request body sent on the wire
|
|
791
799
|
*/
|
|
@@ -1280,6 +1288,16 @@ export type McpOauthCompletionOutcome =
|
|
|
1280
1288
|
"token"
|
|
1281
1289
|
/** The request completed without an OAuth provider. */
|
|
1282
1290
|
| "cancelled";
|
|
1291
|
+
/**
|
|
1292
|
+
* Terminal outcome of the original authorization reservation, including reconnect
|
|
1293
|
+
*/
|
|
1294
|
+
export type McpOauthRecoveryCompletedOutcome =
|
|
1295
|
+
/** Credentials were renewed and the server reconnected. */
|
|
1296
|
+
"succeeded"
|
|
1297
|
+
/** The recovery was cancelled before it completed. */
|
|
1298
|
+
| "cancelled"
|
|
1299
|
+
/** Credential renewal or reconnect failed, or the server was dropped. */
|
|
1300
|
+
| "failed";
|
|
1283
1301
|
/**
|
|
1284
1302
|
* Why dynamic headers are being requested.
|
|
1285
1303
|
*/
|
|
@@ -6777,6 +6795,12 @@ export interface AssistantUsageData {
|
|
|
6777
6795
|
* Serialized (uncompressed) byte length of the request body, before any Content-Encoding. A content-free size signal.
|
|
6778
6796
|
*/
|
|
6779
6797
|
requestBodyBytes?: number;
|
|
6798
|
+
requestBodyCompressionFallback?: ModelCallRequestBodyCompressionFallback;
|
|
6799
|
+
requestBodyCompressionFallbackFrom?: ModelCallRequestBodyEncoding;
|
|
6800
|
+
/**
|
|
6801
|
+
* HTTP status that rejected the compressed body before the uncompressed resend; present only when requestBodyCompressionFallback is retried
|
|
6802
|
+
*/
|
|
6803
|
+
requestBodyCompressionRejectedStatus?: number;
|
|
6780
6804
|
requestBodyEncoding?: ModelCallRequestBodyEncoding;
|
|
6781
6805
|
/**
|
|
6782
6806
|
* Byte length of the request body actually sent on the wire for the attempt that produced this outcome, after any Content-Encoding. Equals requestBodyBytes when the body was not compressed.
|
|
@@ -6988,6 +7012,12 @@ export interface ModelCallFailureData {
|
|
|
6988
7012
|
* Serialized (uncompressed) byte length of the failed request body, before any Content-Encoding. A content-free size signal.
|
|
6989
7013
|
*/
|
|
6990
7014
|
requestBodyBytes?: number;
|
|
7015
|
+
requestBodyCompressionFallback?: ModelCallRequestBodyCompressionFallback;
|
|
7016
|
+
requestBodyCompressionFallbackFrom?: ModelCallRequestBodyEncoding;
|
|
7017
|
+
/**
|
|
7018
|
+
* HTTP status that rejected the compressed body before the uncompressed resend; present only when requestBodyCompressionFallback is retried
|
|
7019
|
+
*/
|
|
7020
|
+
requestBodyCompressionRejectedStatus?: number;
|
|
6991
7021
|
requestBodyEncoding?: ModelCallRequestBodyEncoding;
|
|
6992
7022
|
/**
|
|
6993
7023
|
* Byte length of the failed request body actually sent on the wire, after any Content-Encoding. Equals requestBodyBytes when the body was not compressed.
|
|
@@ -11618,6 +11648,10 @@ export interface McpOauthRequiredData {
|
|
|
11618
11648
|
* Raw OAuth protected-resource metadata document fetched for the MCP server, if available
|
|
11619
11649
|
*/
|
|
11620
11650
|
resourceMetadata?: string;
|
|
11651
|
+
/**
|
|
11652
|
+
* Whether this Refresh request accepts kind runtimeRefresh to continue noninteractive grant renewal within its original authorization reservation. Missing or false means unsupported; the host must retain its legacy response behavior.
|
|
11653
|
+
*/
|
|
11654
|
+
runtimeRefreshSupported?: boolean;
|
|
11621
11655
|
/**
|
|
11622
11656
|
* Display name of the MCP server that requires OAuth
|
|
11623
11657
|
*/
|
|
@@ -11741,6 +11775,50 @@ export interface McpOauthCompletedData {
|
|
|
11741
11775
|
*/
|
|
11742
11776
|
requestId: string;
|
|
11743
11777
|
}
|
|
11778
|
+
/**
|
|
11779
|
+
* Session event "mcp.oauth_recovery_completed". Terminal outcome of a runtime-owned MCP OAuth recovery accepted through a runtimeRefresh handoff
|
|
11780
|
+
*/
|
|
11781
|
+
export interface McpOauthRecoveryCompletedEvent {
|
|
11782
|
+
/**
|
|
11783
|
+
* Sub-agent instance identifier. Absent for events from the root/main agent and session-level events.
|
|
11784
|
+
*/
|
|
11785
|
+
agentId?: string;
|
|
11786
|
+
data: McpOauthRecoveryCompletedData;
|
|
11787
|
+
/**
|
|
11788
|
+
* When true, the event is transient and not persisted to the session event log on disk
|
|
11789
|
+
*/
|
|
11790
|
+
ephemeral?: boolean;
|
|
11791
|
+
/**
|
|
11792
|
+
* Unique event identifier (UUID v4), generated when the event is emitted
|
|
11793
|
+
*/
|
|
11794
|
+
id: string;
|
|
11795
|
+
/**
|
|
11796
|
+
* ID of the chronologically preceding event in the session, forming a linked chain. Null for the first event.
|
|
11797
|
+
*/
|
|
11798
|
+
parentId: string | null;
|
|
11799
|
+
/**
|
|
11800
|
+
* ISO 8601 timestamp when the event was created
|
|
11801
|
+
*/
|
|
11802
|
+
timestamp: string;
|
|
11803
|
+
/**
|
|
11804
|
+
* Type discriminator. Always "mcp.oauth_recovery_completed".
|
|
11805
|
+
*/
|
|
11806
|
+
type: "mcp.oauth_recovery_completed";
|
|
11807
|
+
}
|
|
11808
|
+
/**
|
|
11809
|
+
* Terminal outcome of a runtime-owned MCP OAuth recovery accepted through a runtimeRefresh handoff
|
|
11810
|
+
*/
|
|
11811
|
+
export interface McpOauthRecoveryCompletedData {
|
|
11812
|
+
outcome: McpOauthRecoveryCompletedOutcome;
|
|
11813
|
+
/**
|
|
11814
|
+
* Request ID of the MCP OAuth request whose runtimeRefresh handoff was accepted
|
|
11815
|
+
*/
|
|
11816
|
+
requestId: string;
|
|
11817
|
+
/**
|
|
11818
|
+
* Name of the MCP server whose authorization recovery completed
|
|
11819
|
+
*/
|
|
11820
|
+
serverName: string;
|
|
11821
|
+
}
|
|
11744
11822
|
/**
|
|
11745
11823
|
* Session event "mcp.headers_refresh_required". Dynamic headers refresh request for a remote MCP server
|
|
11746
11824
|
*/
|
|
@@ -13433,6 +13511,49 @@ export interface McpServerStatusChangedData {
|
|
|
13433
13511
|
serverName: string;
|
|
13434
13512
|
status: McpServerStatus;
|
|
13435
13513
|
}
|
|
13514
|
+
/**
|
|
13515
|
+
* Session event "session.mcp_server_tools_loaded". Payload of `session.mcp_server_tools_loaded`, emitted once per connection when an MCP server's tools first become available from tools/list or a cached snapshot. A connected server is still loading tools if this event has not fired since the server last left connected; it can precede connected when the tools come from a cached snapshot.
|
|
13516
|
+
*/
|
|
13517
|
+
export interface McpServerToolsLoadedEvent {
|
|
13518
|
+
/**
|
|
13519
|
+
* Sub-agent instance identifier. Absent for events from the root/main agent and session-level events.
|
|
13520
|
+
*/
|
|
13521
|
+
agentId?: string;
|
|
13522
|
+
data: McpServerToolsLoadedData;
|
|
13523
|
+
/**
|
|
13524
|
+
* Always true for events that are transient and not persisted to the session event log on disk.
|
|
13525
|
+
*/
|
|
13526
|
+
ephemeral: true;
|
|
13527
|
+
/**
|
|
13528
|
+
* Unique event identifier (UUID v4), generated when the event is emitted
|
|
13529
|
+
*/
|
|
13530
|
+
id: string;
|
|
13531
|
+
/**
|
|
13532
|
+
* ID of the chronologically preceding event in the session, forming a linked chain. Null for the first event.
|
|
13533
|
+
*/
|
|
13534
|
+
parentId: string | null;
|
|
13535
|
+
/**
|
|
13536
|
+
* ISO 8601 timestamp when the event was created
|
|
13537
|
+
*/
|
|
13538
|
+
timestamp: string;
|
|
13539
|
+
/**
|
|
13540
|
+
* Type discriminator. Always "session.mcp_server_tools_loaded".
|
|
13541
|
+
*/
|
|
13542
|
+
type: "session.mcp_server_tools_loaded";
|
|
13543
|
+
}
|
|
13544
|
+
/**
|
|
13545
|
+
* Payload of `session.mcp_server_tools_loaded`, emitted once per connection when an MCP server's tools first become available from tools/list or a cached snapshot. A connected server is still loading tools if this event has not fired since the server last left connected; it can precede connected when the tools come from a cached snapshot.
|
|
13546
|
+
*/
|
|
13547
|
+
export interface McpServerToolsLoadedData {
|
|
13548
|
+
/**
|
|
13549
|
+
* Name of the MCP server whose tools loaded
|
|
13550
|
+
*/
|
|
13551
|
+
serverName: string;
|
|
13552
|
+
/**
|
|
13553
|
+
* Number of tools the server listed
|
|
13554
|
+
*/
|
|
13555
|
+
toolCount: number;
|
|
13556
|
+
}
|
|
13436
13557
|
/**
|
|
13437
13558
|
* Session event "session.mcp_server_removed". Payload of `session.mcp_server_removed` identifying an MCP server the graph no longer runs.
|
|
13438
13559
|
*/
|
package/dist/session.js
CHANGED
|
@@ -1039,7 +1039,7 @@ class CopilotSession {
|
|
|
1039
1039
|
async _executeMcpAuthAndRespond(request) {
|
|
1040
1040
|
try {
|
|
1041
1041
|
const result = await this.mcpAuthHandler(request, { sessionId: this.sessionId });
|
|
1042
|
-
const response = result && "accessToken" in result ? { kind: "token"
|
|
1042
|
+
const response = result && "kind" in result && result.kind === "cancelled" ? { kind: "cancelled" } : result && "accessToken" in result && typeof result.accessToken === "string" && result.accessToken.length > 0 ? { ...result, kind: "token" } : result && "kind" in result && result.kind === "runtimeRefresh" && request.runtimeRefreshSupported === true ? { kind: "runtimeRefresh" } : { kind: "cancelled" };
|
|
1043
1043
|
await this.rpc.mcp.oauth.handlePendingRequest({
|
|
1044
1044
|
requestId: request.requestId,
|
|
1045
1045
|
result: response
|
package/dist/types.d.ts
CHANGED
|
@@ -1767,6 +1767,8 @@ export interface McpAuthRequest {
|
|
|
1767
1767
|
serverUrl: string;
|
|
1768
1768
|
/** Why the runtime is requesting host-provided OAuth credentials. */
|
|
1769
1769
|
reason: "initial" | "refresh" | "reauth" | "upscope";
|
|
1770
|
+
/** Whether this Refresh request supports noninteractive runtime handoff. Missing means false. */
|
|
1771
|
+
runtimeRefreshSupported?: boolean;
|
|
1770
1772
|
/** Parsed WWW-Authenticate parameters from the MCP server. */
|
|
1771
1773
|
wwwAuthenticateParams?: McpAuthWwwAuthenticateParams;
|
|
1772
1774
|
/** Raw RFC 9728 protected-resource metadata JSON fetched by the runtime, if available. */
|
|
@@ -1788,12 +1790,15 @@ export interface McpAuthToken {
|
|
|
1788
1790
|
*
|
|
1789
1791
|
* Return `null`/`undefined` or `{ kind: "cancelled" }` to cancel the pending
|
|
1790
1792
|
* OAuth request. Return `{ kind: "token", ... }` to provide host-acquired
|
|
1791
|
-
* OAuth token data.
|
|
1793
|
+
* OAuth token data. Return `{ kind: "runtimeRefresh" }` only for a Refresh
|
|
1794
|
+
* request advertising `runtimeRefreshSupported`; acceptance is not reconnect completion.
|
|
1792
1795
|
*/
|
|
1793
1796
|
export type McpAuthResult = ({
|
|
1794
1797
|
kind: "token";
|
|
1795
1798
|
} & McpAuthToken) | {
|
|
1796
1799
|
kind: "cancelled";
|
|
1800
|
+
} | {
|
|
1801
|
+
kind: "runtimeRefresh";
|
|
1797
1802
|
};
|
|
1798
1803
|
/** Callback invoked when an MCP server requires OAuth and the SDK host opted in. */
|
|
1799
1804
|
export type McpAuthHandler = (request: McpAuthRequest, context: {
|
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.23-preview.
|
|
9
|
-
"copilotCliVersion": "1.0.
|
|
8
|
+
"version": "1.0.23-preview.4",
|
|
9
|
+
"copilotCliVersion": "1.0.100-0",
|
|
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",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"zod": "4.3.6"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
+
"@hpke/core": "^1.9.0",
|
|
76
77
|
"@microsoft/agent-host-protocol-v09": "npm:@microsoft/agent-host-protocol@0.9.0",
|
|
77
78
|
"@platformatic/vfs": "^0.3.0",
|
|
78
79
|
"@types/node": "^25.2.0",
|
|
@@ -84,7 +85,6 @@
|
|
|
84
85
|
"eslint": "^9.0.0",
|
|
85
86
|
"file-entry-cache": "file:./scripts/eslint-file-cache",
|
|
86
87
|
"glob": "^13.0.1",
|
|
87
|
-
"hpke-js": "^1.8.0",
|
|
88
88
|
"json-schema": "^0.4.0",
|
|
89
89
|
"json-schema-to-typescript": "^15.0.4",
|
|
90
90
|
"prettier": "file:../../../third_party/build-tools/prettier-3.8.1",
|
|
@@ -112,18 +112,18 @@
|
|
|
112
112
|
"README.md"
|
|
113
113
|
],
|
|
114
114
|
"copilotRuntime": {
|
|
115
|
-
"sourceSha": "
|
|
116
|
-
"version": "1.0.
|
|
115
|
+
"sourceSha": "f6f1d8977c6f1177d86b58a963a8f59c5238101d",
|
|
116
|
+
"version": "1.0.100-0",
|
|
117
117
|
"visibility": "public"
|
|
118
118
|
},
|
|
119
119
|
"optionalDependencies": {
|
|
120
|
-
"@github/copilot-sdk-darwin-arm64": "1.0.23-preview.
|
|
121
|
-
"@github/copilot-sdk-darwin-x64": "1.0.23-preview.
|
|
122
|
-
"@github/copilot-sdk-linux-arm64": "1.0.23-preview.
|
|
123
|
-
"@github/copilot-sdk-linux-x64": "1.0.23-preview.
|
|
124
|
-
"@github/copilot-sdk-linuxmusl-arm64": "1.0.23-preview.
|
|
125
|
-
"@github/copilot-sdk-linuxmusl-x64": "1.0.23-preview.
|
|
126
|
-
"@github/copilot-sdk-win32-arm64": "1.0.23-preview.
|
|
127
|
-
"@github/copilot-sdk-win32-x64": "1.0.23-preview.
|
|
120
|
+
"@github/copilot-sdk-darwin-arm64": "1.0.23-preview.4",
|
|
121
|
+
"@github/copilot-sdk-darwin-x64": "1.0.23-preview.4",
|
|
122
|
+
"@github/copilot-sdk-linux-arm64": "1.0.23-preview.4",
|
|
123
|
+
"@github/copilot-sdk-linux-x64": "1.0.23-preview.4",
|
|
124
|
+
"@github/copilot-sdk-linuxmusl-arm64": "1.0.23-preview.4",
|
|
125
|
+
"@github/copilot-sdk-linuxmusl-x64": "1.0.23-preview.4",
|
|
126
|
+
"@github/copilot-sdk-win32-arm64": "1.0.23-preview.4",
|
|
127
|
+
"@github/copilot-sdk-win32-x64": "1.0.23-preview.4"
|
|
128
128
|
}
|
|
129
129
|
}
|