@github/copilot-sdk 1.0.13 → 1.0.14-preview.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/dist/cjs/cliVersion.js +1 -1
- package/dist/cjs/client.js +19 -3
- package/dist/cjs/factory.js +1 -0
- package/dist/cjs/ffiRuntimeHost.js +140 -55
- package/dist/cjs/generated/rpc.js +59 -7
- package/dist/cjs/session.js +56 -8
- package/dist/cliVersion.d.ts +1 -1
- package/dist/cliVersion.js +1 -1
- package/dist/client.d.ts +3 -0
- package/dist/client.js +19 -3
- package/dist/factory.d.ts +42 -16
- package/dist/factory.js +1 -0
- package/dist/ffiRuntimeHost.d.ts +8 -2
- package/dist/ffiRuntimeHost.js +140 -55
- package/dist/generated/rpc.d.ts +706 -45
- package/dist/generated/rpc.js +59 -7
- package/dist/generated/session-events.d.ts +461 -17
- package/dist/index.d.ts +2 -2
- package/dist/session.d.ts +1 -0
- package/dist/session.js +57 -9
- package/dist/types.d.ts +18 -1
- package/docs/factories.md +36 -19
- package/package.json +12 -11
package/dist/generated/rpc.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Generated from: api.schema.json
|
|
4
4
|
*/
|
|
5
5
|
import type { MessageConnection } from "vscode-jsonrpc/node.js";
|
|
6
|
-
import type { AbortReason, AgentModelPolicy, Attachment, AutoTier, ContextTier, EmbeddedBlobResourceContents, EmbeddedTextResourceContents, McpOauthHttpResponse, McpOauthWWWAuthenticateParams, McpServerMetadata, McpServerSource, McpServerStatus, ModelChangeSource, PermissionMode, PermissionPromptRequest, PermissionRule, ReasoningSummary, RemediationAction, SessionEvent, SessionLimitsConfig, SessionMode, ShutdownType, SkillSource, TaskCompleteData, TaskCompletionOutcome, UserToolSessionApproval, Verbosity } from "./session-events.js";
|
|
6
|
+
import type { AbortReason, AgentModelPolicy, Attachment, AutoTier, ContextTier, EmbeddedBlobResourceContents, EmbeddedTextResourceContents, McpOauthHttpResponse, McpOauthWWWAuthenticateParams, McpServerMetadata, McpServerSource, McpServerStatus, ModelChangeSource, PermissionDecisionSource, PermissionMode, PermissionPromptRequest, PermissionRule, ReasoningSummary, RemediationAction, SessionEvent, SessionLimitsConfig, SessionMode, ShutdownType, SkillSource, TaskCompleteData, TaskCompletionOutcome, UserToolSessionApproval, Verbosity } from "./session-events.js";
|
|
7
7
|
/** A value that can be represented losslessly on the SDK JSON wire. */
|
|
8
8
|
export type JsonValue = null | boolean | number | string | JsonValue[] | {
|
|
9
9
|
[key: string]: JsonValue;
|
|
@@ -331,6 +331,124 @@ export type CardDigestValue = string;
|
|
|
331
331
|
*/
|
|
332
332
|
/** @experimental */
|
|
333
333
|
export type CatalogCandidateSource = CatalogCandidateSourceUrl | CatalogCandidateSourceEmbedded;
|
|
334
|
+
/**
|
|
335
|
+
* A versioned, bounded trust observation carried unchanged with a catalog candidate and its private handle context. Current observations require a recognised T1/T2 tier; every non-current state structurally forbids a tier. Eligibility remains `unknown` while Agent Finder supplies no exposure decision, and states absent from its current wire are never inferred from age, relevance, popularity, or a tier transition.
|
|
336
|
+
*
|
|
337
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
338
|
+
* via the `definition` "CatalogTrustSnapshot".
|
|
339
|
+
*/
|
|
340
|
+
/** @experimental */
|
|
341
|
+
export type CatalogTrustSnapshot = CatalogTrustSnapshotCurrent | CatalogTrustSnapshotAbsent | CatalogTrustSnapshotStale | CatalogTrustSnapshotDowngraded | CatalogTrustSnapshotRevoked | CatalogTrustSnapshotUnsupported | CatalogTrustSnapshotMalformed;
|
|
342
|
+
/**
|
|
343
|
+
* Schema version of the catalogue trust snapshot envelope
|
|
344
|
+
*
|
|
345
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
346
|
+
* via the `definition` "CatalogTrustSnapshotSchemaVersion".
|
|
347
|
+
*/
|
|
348
|
+
/** @experimental */
|
|
349
|
+
export type CatalogTrustSnapshotSchemaVersion =
|
|
350
|
+
/** Initial envelope carrying one bounded service tier or one explicit unavailable state. */
|
|
351
|
+
"v1";
|
|
352
|
+
/**
|
|
353
|
+
* A recognised T1 or T2 service tier was observed.
|
|
354
|
+
*
|
|
355
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
356
|
+
* via the `definition` "CatalogTrustSnapshotCurrentStatus".
|
|
357
|
+
*/
|
|
358
|
+
/** @experimental */
|
|
359
|
+
export type CatalogTrustSnapshotCurrentStatus = "current";
|
|
360
|
+
/**
|
|
361
|
+
* Service-computed trust tier currently emitted by Agent Finder. It is independent of search score, popularity, and client-side ranking.
|
|
362
|
+
*
|
|
363
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
364
|
+
* via the `definition` "CatalogTrustTier".
|
|
365
|
+
*/
|
|
366
|
+
/** @experimental */
|
|
367
|
+
export type CatalogTrustTier =
|
|
368
|
+
/** Tier one as assigned by the catalogue authority. */
|
|
369
|
+
"T1"
|
|
370
|
+
/** Tier two as assigned by the catalogue authority. */
|
|
371
|
+
| "T2";
|
|
372
|
+
/**
|
|
373
|
+
* Authority-computed exposure eligibility, kept separate from tier. The current tier-only Agent Finder response maps to `unknown`, never to a locally inferred eligibility.
|
|
374
|
+
*
|
|
375
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
376
|
+
* via the `definition` "CatalogTrustEligibility".
|
|
377
|
+
*/
|
|
378
|
+
/** @experimental */
|
|
379
|
+
export type CatalogTrustEligibility =
|
|
380
|
+
/** Eligible for default catalogue exposure. */
|
|
381
|
+
"default"
|
|
382
|
+
/** Eligible only when expanded or community results are requested. */
|
|
383
|
+
| "expanded"
|
|
384
|
+
/** Not eligible for normal catalogue exposure. */
|
|
385
|
+
| "hidden"
|
|
386
|
+
/** The authority did not supply an eligibility decision. */
|
|
387
|
+
| "unknown";
|
|
388
|
+
/**
|
|
389
|
+
* Bounded authority that supplied a catalogue trust observation
|
|
390
|
+
*
|
|
391
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
392
|
+
* via the `definition` "CatalogTrustSource".
|
|
393
|
+
*/
|
|
394
|
+
/** @experimental */
|
|
395
|
+
export type CatalogTrustSource =
|
|
396
|
+
/** GitHub Agent Finder supplied the trust field on its search result. */
|
|
397
|
+
"agent-finder";
|
|
398
|
+
/**
|
|
399
|
+
* The authority omitted trust metadata.
|
|
400
|
+
*
|
|
401
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
402
|
+
* via the `definition` "CatalogTrustSnapshotAbsentStatus".
|
|
403
|
+
*/
|
|
404
|
+
/** @experimental */
|
|
405
|
+
export type CatalogTrustSnapshotAbsentStatus = "absent";
|
|
406
|
+
/**
|
|
407
|
+
* The authority explicitly marked its assessment stale.
|
|
408
|
+
*
|
|
409
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
410
|
+
* via the `definition` "CatalogTrustSnapshotStaleStatus".
|
|
411
|
+
*/
|
|
412
|
+
/** @experimental */
|
|
413
|
+
export type CatalogTrustSnapshotStaleStatus = "stale";
|
|
414
|
+
/**
|
|
415
|
+
* The authority explicitly reported a downgraded assessment.
|
|
416
|
+
*
|
|
417
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
418
|
+
* via the `definition` "CatalogTrustSnapshotDowngradedStatus".
|
|
419
|
+
*/
|
|
420
|
+
/** @experimental */
|
|
421
|
+
export type CatalogTrustSnapshotDowngradedStatus =
|
|
422
|
+
/** The authority explicitly reported a downgraded assessment. */
|
|
423
|
+
"downgraded";
|
|
424
|
+
/**
|
|
425
|
+
* The authority explicitly revoked its assessment.
|
|
426
|
+
*
|
|
427
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
428
|
+
* via the `definition` "CatalogTrustSnapshotRevokedStatus".
|
|
429
|
+
*/
|
|
430
|
+
/** @experimental */
|
|
431
|
+
export type CatalogTrustSnapshotRevokedStatus = "revoked";
|
|
432
|
+
/**
|
|
433
|
+
* The authority supplied a bounded trust value this runtime does not understand.
|
|
434
|
+
*
|
|
435
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
436
|
+
* via the `definition` "CatalogTrustSnapshotUnsupportedStatus".
|
|
437
|
+
*/
|
|
438
|
+
/** @experimental */
|
|
439
|
+
export type CatalogTrustSnapshotUnsupportedStatus =
|
|
440
|
+
/** The authority supplied a bounded trust value this runtime does not understand. */
|
|
441
|
+
"unsupported";
|
|
442
|
+
/**
|
|
443
|
+
* The trust field was empty, unbounded, or had the wrong JSON type.
|
|
444
|
+
*
|
|
445
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
446
|
+
* via the `definition` "CatalogTrustSnapshotMalformedStatus".
|
|
447
|
+
*/
|
|
448
|
+
/** @experimental */
|
|
449
|
+
export type CatalogTrustSnapshotMalformedStatus =
|
|
450
|
+
/** The trust field was empty, unbounded, or had the wrong JSON type. */
|
|
451
|
+
"malformed";
|
|
334
452
|
/**
|
|
335
453
|
* Why the catalog authority did not accept the caller's identity
|
|
336
454
|
*
|
|
@@ -406,7 +524,9 @@ export type CatalogCapability =
|
|
|
406
524
|
/** Understands side-effect-free MCP install-plan requests, results, and plan handles; `planning-unavailable` separately reports that planning is not enabled. */
|
|
407
525
|
| "mcp-install-planning"
|
|
408
526
|
/** Understands plans that enumerate every eligible transport rather than a single preferred one. */
|
|
409
|
-
| "multiple-transport-choice"
|
|
527
|
+
| "multiple-transport-choice"
|
|
528
|
+
/** Understands versioned candidate trust snapshots. Protocol-3 callers must require this capability before the runtime adds the optional snapshot field. */
|
|
529
|
+
| "trust-snapshot";
|
|
410
530
|
/**
|
|
411
531
|
* 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.
|
|
412
532
|
*
|
|
@@ -977,16 +1097,16 @@ export type EventsReadDirection =
|
|
|
977
1097
|
/** Tail-first: return the newest events and page toward older events. */
|
|
978
1098
|
| "backward";
|
|
979
1099
|
/**
|
|
980
|
-
* Cursor status: 'ok' means the
|
|
1100
|
+
* Cursor status: 'ok' means the read succeeded against the requested history; 'expired' means the requested continuation is unavailable. Recovery is endpoint-specific: session.eventLog.read returns a boundary window of remaining active history that may overlap prior pages, while sessions.readPersistedEvents returns an empty terminal page and never switches journal generations. An expired persisted read is not successful completion; a complete persisted snapshot requires cursorStatus 'ok' and hasMore false.
|
|
981
1101
|
*
|
|
982
1102
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
983
1103
|
* via the `definition` "EventsCursorStatus".
|
|
984
1104
|
*/
|
|
985
1105
|
/** @experimental */
|
|
986
1106
|
export type EventsCursorStatus =
|
|
987
|
-
/** The
|
|
1107
|
+
/** The read succeeded against the requested history. */
|
|
988
1108
|
"ok"
|
|
989
|
-
/** The
|
|
1109
|
+
/** The requested continuation is unavailable; see the endpoint's recovery semantics. */
|
|
990
1110
|
| "expired";
|
|
991
1111
|
/**
|
|
992
1112
|
* Discovery source: project (.github/extensions/), user (~/.copilot/extensions/), plugin (installed plugin), or session (session-state/<id>/extensions/)
|
|
@@ -1114,6 +1234,8 @@ export type FactoryRunStatus =
|
|
|
1114
1234
|
| "completed"
|
|
1115
1235
|
/** The run was interrupted while resource budget remained. */
|
|
1116
1236
|
| "halted"
|
|
1237
|
+
/** The current attempt stopped intentionally and the run may be resumed. */
|
|
1238
|
+
| "paused"
|
|
1117
1239
|
/** The run was cancelled before completion. */
|
|
1118
1240
|
| "cancelled"
|
|
1119
1241
|
/** The factory body failed or reached a cumulative resource ceiling. */
|
|
@@ -1131,6 +1253,10 @@ export type FactoryRunFailure = {
|
|
|
1131
1253
|
* Approved effective ceiling that was reached.
|
|
1132
1254
|
*/
|
|
1133
1255
|
value: number;
|
|
1256
|
+
/**
|
|
1257
|
+
* Suggested larger ceiling when the runtime can derive one safely.
|
|
1258
|
+
*/
|
|
1259
|
+
suggestedValue?: number;
|
|
1134
1260
|
/**
|
|
1135
1261
|
* Factory run identifier.
|
|
1136
1262
|
*/
|
|
@@ -1203,6 +1329,28 @@ export type FactoryRunFailureKind =
|
|
|
1203
1329
|
| "timeoutSeconds"
|
|
1204
1330
|
/** The run's settled subagent model usage exceeded the approved AI-credit ceiling, or no headroom remained for another subagent. */
|
|
1205
1331
|
| "maxAiCredits";
|
|
1332
|
+
/**
|
|
1333
|
+
* Durable metadata describing who initiated a factory pause.
|
|
1334
|
+
*
|
|
1335
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
1336
|
+
* via the `definition` "FactoryPauseInfo".
|
|
1337
|
+
*/
|
|
1338
|
+
/** @experimental */
|
|
1339
|
+
export type FactoryPauseInfo = {
|
|
1340
|
+
/**
|
|
1341
|
+
* Factory pause initiator discriminator.
|
|
1342
|
+
*/
|
|
1343
|
+
type: "user";
|
|
1344
|
+
} | {
|
|
1345
|
+
/**
|
|
1346
|
+
* Stable author-defined checkpoint key that initiated the pause.
|
|
1347
|
+
*/
|
|
1348
|
+
key: string;
|
|
1349
|
+
/**
|
|
1350
|
+
* Factory pause initiator discriminator.
|
|
1351
|
+
*/
|
|
1352
|
+
type: "checkpoint";
|
|
1353
|
+
};
|
|
1206
1354
|
/**
|
|
1207
1355
|
* Kind of factory progress line.
|
|
1208
1356
|
*
|
|
@@ -1215,6 +1363,18 @@ export type FactoryLogLineKind =
|
|
|
1215
1363
|
"log"
|
|
1216
1364
|
/** A named factory phase marker. */
|
|
1217
1365
|
| "phase";
|
|
1366
|
+
/**
|
|
1367
|
+
* Action the runtime selected for a durable factory pause checkpoint.
|
|
1368
|
+
*
|
|
1369
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
1370
|
+
* via the `definition` "FactoryPauseCheckpointAction".
|
|
1371
|
+
*/
|
|
1372
|
+
/** @experimental */
|
|
1373
|
+
export type FactoryPauseCheckpointAction =
|
|
1374
|
+
/** The checkpoint was committed by a prior paused attempt, so execution may continue. */
|
|
1375
|
+
"continue"
|
|
1376
|
+
/** This attempt claimed the checkpoint and must cooperatively stop. */
|
|
1377
|
+
| "pause";
|
|
1218
1378
|
/**
|
|
1219
1379
|
* Derived lifecycle state of a factory phase.
|
|
1220
1380
|
*
|
|
@@ -2468,22 +2628,6 @@ export type PermissionDecisionOutcome =
|
|
|
2468
2628
|
| "autopilot_denied"
|
|
2469
2629
|
/** The response came from an interactive user prompt. */
|
|
2470
2630
|
| "prompted_user";
|
|
2471
|
-
/**
|
|
2472
|
-
* Controlled reason or actor responsible for a permission response.
|
|
2473
|
-
*
|
|
2474
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
2475
|
-
* via the `definition` "PermissionDecisionSource".
|
|
2476
|
-
*/
|
|
2477
|
-
/** @experimental */
|
|
2478
|
-
export type PermissionDecisionSource =
|
|
2479
|
-
/** The response followed the assisted-approval judge recommendation. */
|
|
2480
|
-
"assisted_approval"
|
|
2481
|
-
/** A human supplied the response through an interactive prompt. */
|
|
2482
|
-
| "human_response"
|
|
2483
|
-
/** The host applied a standing policy or override rather than a judge recommendation or human decision. */
|
|
2484
|
-
| "host_policy"
|
|
2485
|
-
/** The host denied the request because no interactive user response was available. */
|
|
2486
|
-
| "unattended_fallback";
|
|
2487
2631
|
/**
|
|
2488
2632
|
* Client surface that submitted a permission response.
|
|
2489
2633
|
*
|
|
@@ -3214,6 +3358,68 @@ export type SessionsOpenProgressStatus =
|
|
|
3214
3358
|
"in-progress"
|
|
3215
3359
|
/** The step has completed successfully. */
|
|
3216
3360
|
| "complete";
|
|
3361
|
+
/**
|
|
3362
|
+
* Client metadata outcome for one requested local session.
|
|
3363
|
+
*
|
|
3364
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
3365
|
+
* via the `definition` "SessionsClientMetadataEntry".
|
|
3366
|
+
*/
|
|
3367
|
+
/** @experimental */
|
|
3368
|
+
export type SessionsClientMetadataEntry = {
|
|
3369
|
+
/**
|
|
3370
|
+
* Requested session ID.
|
|
3371
|
+
*/
|
|
3372
|
+
sessionId: string;
|
|
3373
|
+
metadata: ClientMetadata;
|
|
3374
|
+
/**
|
|
3375
|
+
* Client metadata outcome discriminator.
|
|
3376
|
+
*/
|
|
3377
|
+
status: "ok";
|
|
3378
|
+
} | {
|
|
3379
|
+
/**
|
|
3380
|
+
* Requested session ID.
|
|
3381
|
+
*/
|
|
3382
|
+
sessionId: string;
|
|
3383
|
+
/**
|
|
3384
|
+
* Client metadata outcome discriminator.
|
|
3385
|
+
*/
|
|
3386
|
+
status: "notFound";
|
|
3387
|
+
} | {
|
|
3388
|
+
/**
|
|
3389
|
+
* Requested session ID.
|
|
3390
|
+
*/
|
|
3391
|
+
sessionId: string;
|
|
3392
|
+
/**
|
|
3393
|
+
* Client metadata outcome discriminator.
|
|
3394
|
+
*/
|
|
3395
|
+
status: "corrupt";
|
|
3396
|
+
} | {
|
|
3397
|
+
/**
|
|
3398
|
+
* Requested session ID.
|
|
3399
|
+
*/
|
|
3400
|
+
sessionId: string;
|
|
3401
|
+
/**
|
|
3402
|
+
* Client metadata outcome discriminator.
|
|
3403
|
+
*/
|
|
3404
|
+
status: "unsupportedVersion";
|
|
3405
|
+
} | {
|
|
3406
|
+
/**
|
|
3407
|
+
* Requested session ID.
|
|
3408
|
+
*/
|
|
3409
|
+
sessionId: string;
|
|
3410
|
+
/**
|
|
3411
|
+
* Filesystem or provider error code. Clients should not assume every provider uses operating-system error codes.
|
|
3412
|
+
*/
|
|
3413
|
+
code: string;
|
|
3414
|
+
/**
|
|
3415
|
+
* Human-readable diagnostic message. Not stable for programmatic matching.
|
|
3416
|
+
*/
|
|
3417
|
+
message: string;
|
|
3418
|
+
/**
|
|
3419
|
+
* Client metadata outcome discriminator.
|
|
3420
|
+
*/
|
|
3421
|
+
status: "unavailable";
|
|
3422
|
+
};
|
|
3217
3423
|
/**
|
|
3218
3424
|
* Authentication credentials accepted by session.gitHubAuth.setCredentials. Session-owned token-provider identities cannot be installed through this method.
|
|
3219
3425
|
*
|
|
@@ -3268,6 +3474,14 @@ export type SessionSettingsPredicateName =
|
|
|
3268
3474
|
| "trivialChangeEnabledForTool"
|
|
3269
3475
|
/** Whether trivial-change skip behavior is enabled for a specific tool. */
|
|
3270
3476
|
| "trivialChangeSkipEnabledForTool";
|
|
3477
|
+
/**
|
|
3478
|
+
* Ordered client metadata outcomes for the requested local sessions.
|
|
3479
|
+
*
|
|
3480
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
3481
|
+
* via the `definition` "SessionsGetClientMetadataResult".
|
|
3482
|
+
*/
|
|
3483
|
+
/** @experimental */
|
|
3484
|
+
export type SessionsGetClientMetadataResult = SessionsClientMetadataEntry[];
|
|
3271
3485
|
/**
|
|
3272
3486
|
* Which session sources to include. Defaults to `local` for backward compatibility.
|
|
3273
3487
|
*
|
|
@@ -3899,11 +4113,15 @@ export interface CopilotUserResponse {
|
|
|
3899
4113
|
*/
|
|
3900
4114
|
organization_login_list?: string[];
|
|
3901
4115
|
/**
|
|
3902
|
-
* Organizations the user belongs to, each with an optional login and display name.
|
|
4116
|
+
* Organizations the user belongs to, each with an optional ID, login, and display name.
|
|
3903
4117
|
*/
|
|
3904
4118
|
organization_list?: ({
|
|
3905
4119
|
[k: string]: unknown | undefined;
|
|
3906
4120
|
} | ({
|
|
4121
|
+
/**
|
|
4122
|
+
* Numeric database ID of the organization.
|
|
4123
|
+
*/
|
|
4124
|
+
id?: number;
|
|
3907
4125
|
/**
|
|
3908
4126
|
* GitHub login of the organization.
|
|
3909
4127
|
*/
|
|
@@ -4582,6 +4800,10 @@ export interface AgentInfo {
|
|
|
4582
4800
|
* Whether the agent can be selected directly by the user. Agents marked `false` are subagent-only.
|
|
4583
4801
|
*/
|
|
4584
4802
|
userInvocable?: boolean;
|
|
4803
|
+
/**
|
|
4804
|
+
* Whether model-driven invocation is disabled for this agent.
|
|
4805
|
+
*/
|
|
4806
|
+
disableModelInvocation?: boolean;
|
|
4585
4807
|
/**
|
|
4586
4808
|
* Allowed tool names for this agent. Empty array means none; omitted means inherit defaults.
|
|
4587
4809
|
*/
|
|
@@ -5591,6 +5813,7 @@ export interface CatalogAiSkillCandidate {
|
|
|
5591
5813
|
publisher?: string;
|
|
5592
5814
|
source: CatalogCandidateSource;
|
|
5593
5815
|
provenance: CatalogAiSkillCandidateProvenance;
|
|
5816
|
+
trust?: CatalogTrustSnapshot;
|
|
5594
5817
|
}
|
|
5595
5818
|
/**
|
|
5596
5819
|
* Candidate whose card is retrieved from a URL through the runtime's hardened fetch boundary.
|
|
@@ -5643,6 +5866,112 @@ export interface CatalogAiSkillCandidateProvenance {
|
|
|
5643
5866
|
*/
|
|
5644
5867
|
mediaType: "application/ai-skill";
|
|
5645
5868
|
}
|
|
5869
|
+
/**
|
|
5870
|
+
* A recognised current Agent Finder T1 or T2 trust tier.
|
|
5871
|
+
*
|
|
5872
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
5873
|
+
* via the `definition` "CatalogTrustSnapshotCurrent".
|
|
5874
|
+
*/
|
|
5875
|
+
/** @experimental */
|
|
5876
|
+
export interface CatalogTrustSnapshotCurrent {
|
|
5877
|
+
schemaVersion: CatalogTrustSnapshotSchemaVersion;
|
|
5878
|
+
status: CatalogTrustSnapshotCurrentStatus;
|
|
5879
|
+
tier: CatalogTrustTier;
|
|
5880
|
+
eligibility: CatalogTrustEligibility;
|
|
5881
|
+
provenance: CatalogTrustProvenance;
|
|
5882
|
+
}
|
|
5883
|
+
/**
|
|
5884
|
+
* Where and when the runtime observed the trust metadata. Observation time is not the authority's evaluation time and must not be used to infer staleness.
|
|
5885
|
+
*
|
|
5886
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
5887
|
+
* via the `definition` "CatalogTrustProvenance".
|
|
5888
|
+
*/
|
|
5889
|
+
/** @experimental */
|
|
5890
|
+
export interface CatalogTrustProvenance {
|
|
5891
|
+
source: CatalogTrustSource;
|
|
5892
|
+
/**
|
|
5893
|
+
* ISO 8601 timestamp with a timezone offset at which the runtime observed the search result carrying this trust field.
|
|
5894
|
+
*/
|
|
5895
|
+
observedAt: string;
|
|
5896
|
+
}
|
|
5897
|
+
/**
|
|
5898
|
+
* Discriminator: the authority omitted trust metadata.
|
|
5899
|
+
*
|
|
5900
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
5901
|
+
* via the `definition` "CatalogTrustSnapshotAbsent".
|
|
5902
|
+
*/
|
|
5903
|
+
/** @experimental */
|
|
5904
|
+
export interface CatalogTrustSnapshotAbsent {
|
|
5905
|
+
schemaVersion: CatalogTrustSnapshotSchemaVersion;
|
|
5906
|
+
status: CatalogTrustSnapshotAbsentStatus;
|
|
5907
|
+
eligibility: CatalogTrustEligibility;
|
|
5908
|
+
provenance: CatalogTrustProvenance;
|
|
5909
|
+
}
|
|
5910
|
+
/**
|
|
5911
|
+
* Discriminator: the authority explicitly marked the assessment stale.
|
|
5912
|
+
*
|
|
5913
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
5914
|
+
* via the `definition` "CatalogTrustSnapshotStale".
|
|
5915
|
+
*/
|
|
5916
|
+
/** @experimental */
|
|
5917
|
+
export interface CatalogTrustSnapshotStale {
|
|
5918
|
+
schemaVersion: CatalogTrustSnapshotSchemaVersion;
|
|
5919
|
+
status: CatalogTrustSnapshotStaleStatus;
|
|
5920
|
+
eligibility: CatalogTrustEligibility;
|
|
5921
|
+
provenance: CatalogTrustProvenance;
|
|
5922
|
+
}
|
|
5923
|
+
/**
|
|
5924
|
+
* Discriminator: the authority explicitly reported a downgraded assessment.
|
|
5925
|
+
*
|
|
5926
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
5927
|
+
* via the `definition` "CatalogTrustSnapshotDowngraded".
|
|
5928
|
+
*/
|
|
5929
|
+
/** @experimental */
|
|
5930
|
+
export interface CatalogTrustSnapshotDowngraded {
|
|
5931
|
+
schemaVersion: CatalogTrustSnapshotSchemaVersion;
|
|
5932
|
+
status: CatalogTrustSnapshotDowngradedStatus;
|
|
5933
|
+
eligibility: CatalogTrustEligibility;
|
|
5934
|
+
provenance: CatalogTrustProvenance;
|
|
5935
|
+
}
|
|
5936
|
+
/**
|
|
5937
|
+
* Discriminator: the authority explicitly revoked the assessment.
|
|
5938
|
+
*
|
|
5939
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
5940
|
+
* via the `definition` "CatalogTrustSnapshotRevoked".
|
|
5941
|
+
*/
|
|
5942
|
+
/** @experimental */
|
|
5943
|
+
export interface CatalogTrustSnapshotRevoked {
|
|
5944
|
+
schemaVersion: CatalogTrustSnapshotSchemaVersion;
|
|
5945
|
+
status: CatalogTrustSnapshotRevokedStatus;
|
|
5946
|
+
eligibility: CatalogTrustEligibility;
|
|
5947
|
+
provenance: CatalogTrustProvenance;
|
|
5948
|
+
}
|
|
5949
|
+
/**
|
|
5950
|
+
* Discriminator: the authority supplied a bounded trust value this runtime does not understand.
|
|
5951
|
+
*
|
|
5952
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
5953
|
+
* via the `definition` "CatalogTrustSnapshotUnsupported".
|
|
5954
|
+
*/
|
|
5955
|
+
/** @experimental */
|
|
5956
|
+
export interface CatalogTrustSnapshotUnsupported {
|
|
5957
|
+
schemaVersion: CatalogTrustSnapshotSchemaVersion;
|
|
5958
|
+
status: CatalogTrustSnapshotUnsupportedStatus;
|
|
5959
|
+
eligibility: CatalogTrustEligibility;
|
|
5960
|
+
provenance: CatalogTrustProvenance;
|
|
5961
|
+
}
|
|
5962
|
+
/**
|
|
5963
|
+
* Discriminator: the trust field was empty, unbounded, or had the wrong JSON type.
|
|
5964
|
+
*
|
|
5965
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
5966
|
+
* via the `definition` "CatalogTrustSnapshotMalformed".
|
|
5967
|
+
*/
|
|
5968
|
+
/** @experimental */
|
|
5969
|
+
export interface CatalogTrustSnapshotMalformed {
|
|
5970
|
+
schemaVersion: CatalogTrustSnapshotSchemaVersion;
|
|
5971
|
+
status: CatalogTrustSnapshotMalformedStatus;
|
|
5972
|
+
eligibility: CatalogTrustEligibility;
|
|
5973
|
+
provenance: CatalogTrustProvenance;
|
|
5974
|
+
}
|
|
5646
5975
|
/**
|
|
5647
5976
|
* An optional catalog authentication exchange did not establish the caller's identity. Anonymous search remains supported; this refusal is reserved for an operation that cannot continue after the attempted exchange. It is distinct from `policy-rejected` and from a network failure, and the reason identifies the recovery action.
|
|
5648
5977
|
*
|
|
@@ -5697,6 +6026,7 @@ export interface CatalogMcpServerCandidate {
|
|
|
5697
6026
|
publisher?: string;
|
|
5698
6027
|
source: CatalogCandidateSource;
|
|
5699
6028
|
provenance: CatalogMcpServerCandidateProvenance;
|
|
6029
|
+
trust?: CatalogTrustSnapshot;
|
|
5700
6030
|
}
|
|
5701
6031
|
/**
|
|
5702
6032
|
* Where and when an MCP server catalog reference was observed. Discovery provenance deliberately carries no content digest because search does not establish the exact validated content a later plan will bind.
|
|
@@ -5848,9 +6178,11 @@ export interface CatalogNegotiationRefusedError {
|
|
|
5848
6178
|
*/
|
|
5849
6179
|
minimumSupportedProtocolVersion: number;
|
|
5850
6180
|
/**
|
|
5851
|
-
*
|
|
6181
|
+
* Capabilities this runtime can safely advertise to this caller. The complete five-capability protocol-3 legacy set is always present; every capability added after that baseline appears only when the caller required it, so an older closed-enum decoder can still consume a refusal. This list does not imply that every deployment has enabled every operation.
|
|
6182
|
+
*
|
|
6183
|
+
* @maxItems 32
|
|
5852
6184
|
*/
|
|
5853
|
-
supportedCapabilities:
|
|
6185
|
+
supportedCapabilities: CatalogCapabilityId[];
|
|
5854
6186
|
/**
|
|
5855
6187
|
* The subset of the caller's bounded extensible capability identifiers this runtime cannot honour.
|
|
5856
6188
|
*
|
|
@@ -6056,6 +6388,16 @@ export interface CatalogUnavailableTransportError {
|
|
|
6056
6388
|
*/
|
|
6057
6389
|
message: string;
|
|
6058
6390
|
}
|
|
6391
|
+
/**
|
|
6392
|
+
* Client-owned, case-sensitive string metadata persisted with a local session. Clients should namespace keys by owner. Keys must be non-empty and at most 256 UTF-8 bytes; keys under `copilot/` and `github/` are reserved. Values may contain at most 16 KiB of UTF-8 data. A bag may contain at most 128 entries and its serialized sidecar may contain at most 64 KiB. The runtime stores but never interprets these values.
|
|
6393
|
+
*
|
|
6394
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
6395
|
+
* via the `definition` "ClientMetadata".
|
|
6396
|
+
*/
|
|
6397
|
+
/** @experimental */
|
|
6398
|
+
export interface ClientMetadata {
|
|
6399
|
+
[k: string]: string | undefined;
|
|
6400
|
+
}
|
|
6059
6401
|
/**
|
|
6060
6402
|
* Runtime-to-owner cancellation request for a client-owned task.
|
|
6061
6403
|
*
|
|
@@ -6882,11 +7224,73 @@ export interface DiscoveredMcpServer {
|
|
|
6882
7224
|
* Plugin version that provided this server, when source is plugin.
|
|
6883
7225
|
*/
|
|
6884
7226
|
sourcePluginVersion?: string;
|
|
7227
|
+
effectiveSource?: McpSourceRef;
|
|
6885
7228
|
/**
|
|
6886
7229
|
* Whether the server is enabled (not in the disabled list)
|
|
6887
7230
|
*/
|
|
6888
7231
|
enabled: boolean;
|
|
6889
7232
|
}
|
|
7233
|
+
/**
|
|
7234
|
+
* Canonical identity and location of the effective MCP server declaration. The declaration is uniquely addressed by this source id together with the discovered server name.
|
|
7235
|
+
*
|
|
7236
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7237
|
+
* via the `definition` "McpSourceRef".
|
|
7238
|
+
*/
|
|
7239
|
+
/** @experimental */
|
|
7240
|
+
export interface McpSourceRef {
|
|
7241
|
+
/**
|
|
7242
|
+
* Open source-kind identifier. Known values include user, workspace, invocation, plugin, builtin, and device-registry.
|
|
7243
|
+
*/
|
|
7244
|
+
kind: string;
|
|
7245
|
+
/**
|
|
7246
|
+
* Opaque stable identity for the configuration source. Clients must not parse this value.
|
|
7247
|
+
*/
|
|
7248
|
+
id: string;
|
|
7249
|
+
/**
|
|
7250
|
+
* Open semantic editability identifier. Known values are editable and read-only.
|
|
7251
|
+
*/
|
|
7252
|
+
editability: string;
|
|
7253
|
+
file?: McpSourceFile;
|
|
7254
|
+
plugin?: McpSourcePlugin;
|
|
7255
|
+
}
|
|
7256
|
+
/**
|
|
7257
|
+
* Concrete configuration file containing an MCP server declaration.
|
|
7258
|
+
*
|
|
7259
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7260
|
+
* via the `definition` "McpSourceFile".
|
|
7261
|
+
*/
|
|
7262
|
+
/** @experimental */
|
|
7263
|
+
export interface McpSourceFile {
|
|
7264
|
+
/**
|
|
7265
|
+
* Canonical file URI for the configuration document
|
|
7266
|
+
*/
|
|
7267
|
+
uri: string;
|
|
7268
|
+
/**
|
|
7269
|
+
* RFC 6901 JSON Pointer to the server declaration, when known
|
|
7270
|
+
*/
|
|
7271
|
+
jsonPointer?: string;
|
|
7272
|
+
}
|
|
7273
|
+
/**
|
|
7274
|
+
* Plugin identity associated with an MCP server declaration.
|
|
7275
|
+
*
|
|
7276
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
7277
|
+
* via the `definition` "McpSourcePlugin".
|
|
7278
|
+
*/
|
|
7279
|
+
/** @experimental */
|
|
7280
|
+
export interface McpSourcePlugin {
|
|
7281
|
+
/**
|
|
7282
|
+
* Canonical plugin identity
|
|
7283
|
+
*/
|
|
7284
|
+
id: string;
|
|
7285
|
+
/**
|
|
7286
|
+
* Human-readable plugin name, when available
|
|
7287
|
+
*/
|
|
7288
|
+
name?: string;
|
|
7289
|
+
/**
|
|
7290
|
+
* Plugin version, when available
|
|
7291
|
+
*/
|
|
7292
|
+
version?: string;
|
|
7293
|
+
}
|
|
6890
7294
|
/**
|
|
6891
7295
|
* Slash-prefixed command string to enqueue for FIFO processing.
|
|
6892
7296
|
*
|
|
@@ -6994,7 +7398,7 @@ export interface EventsReadResult {
|
|
|
6994
7398
|
*/
|
|
6995
7399
|
cursor: string;
|
|
6996
7400
|
/**
|
|
6997
|
-
* True when more events are available in the read's direction. For a
|
|
7401
|
+
* True when more events are available in the read's direction. For a backward read, true means older persisted events remain before the returned window. A persisted-event page may contain fewer than `max` events because of its byte budget while still reporting hasMore true; continue according to this flag rather than the event count.
|
|
6998
7402
|
*/
|
|
6999
7403
|
hasMore: boolean;
|
|
7000
7404
|
cursorStatus: EventsCursorStatus;
|
|
@@ -7452,6 +7856,10 @@ export interface FactoryAbortRequest {
|
|
|
7452
7856
|
* Factory run identifier.
|
|
7453
7857
|
*/
|
|
7454
7858
|
runId: string;
|
|
7859
|
+
/**
|
|
7860
|
+
* Opaque token identifying the execution attempt to abort.
|
|
7861
|
+
*/
|
|
7862
|
+
executionToken: string;
|
|
7455
7863
|
}
|
|
7456
7864
|
/**
|
|
7457
7865
|
* Acknowledgement that a factory request was accepted.
|
|
@@ -7483,12 +7891,12 @@ export interface FactoryAgentOptions {
|
|
|
7483
7891
|
*/
|
|
7484
7892
|
model?: string;
|
|
7485
7893
|
/**
|
|
7486
|
-
* Optional reasoning effort for the subagent.
|
|
7894
|
+
* Optional reasoning effort override for the subagent.
|
|
7487
7895
|
*/
|
|
7488
7896
|
reasoningEffort?: string;
|
|
7489
7897
|
contextTier?: ContextTier;
|
|
7490
7898
|
/**
|
|
7491
|
-
* Optional custom agent name
|
|
7899
|
+
* Optional built-in or custom agent name whose definition configures the subagent.
|
|
7492
7900
|
*/
|
|
7493
7901
|
agent?: string;
|
|
7494
7902
|
}
|
|
@@ -7919,6 +8327,10 @@ export interface FactoryRunSummary {
|
|
|
7919
8327
|
* Terminal run outcome, or null while nonterminal.
|
|
7920
8328
|
*/
|
|
7921
8329
|
terminal: FactoryRunTerminal | null;
|
|
8330
|
+
/**
|
|
8331
|
+
* Whether the durable run state currently passes runtime resume eligibility checks.
|
|
8332
|
+
*/
|
|
8333
|
+
canResume: boolean;
|
|
7922
8334
|
}
|
|
7923
8335
|
/**
|
|
7924
8336
|
* Durable factory resource consumption.
|
|
@@ -7962,6 +8374,10 @@ export interface FactoryRunTerminal {
|
|
|
7962
8374
|
* Prompt-safe preview of the completed result.
|
|
7963
8375
|
*/
|
|
7964
8376
|
resultPreview?: string;
|
|
8377
|
+
/**
|
|
8378
|
+
* Pause initiator metadata, or null when the run did not pause.
|
|
8379
|
+
*/
|
|
8380
|
+
pauseInfo: FactoryPauseInfo | null;
|
|
7965
8381
|
}
|
|
7966
8382
|
/**
|
|
7967
8383
|
* One ordered factory progress line.
|
|
@@ -8002,6 +8418,44 @@ export interface FactoryLogRequest {
|
|
|
8002
8418
|
*/
|
|
8003
8419
|
lines: FactoryLogLine[];
|
|
8004
8420
|
}
|
|
8421
|
+
/**
|
|
8422
|
+
* Parameters for an owned durable pause checkpoint.
|
|
8423
|
+
*
|
|
8424
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
8425
|
+
* via the `definition` "FactoryPauseCheckpointRequest".
|
|
8426
|
+
*/
|
|
8427
|
+
/** @experimental */
|
|
8428
|
+
export interface FactoryPauseCheckpointRequest {
|
|
8429
|
+
/**
|
|
8430
|
+
* Factory run identifier.
|
|
8431
|
+
*/
|
|
8432
|
+
runId: string;
|
|
8433
|
+
/**
|
|
8434
|
+
* Opaque token identifying the execution attempt that reached the checkpoint.
|
|
8435
|
+
*/
|
|
8436
|
+
executionToken: string;
|
|
8437
|
+
/**
|
|
8438
|
+
* Stable author-defined checkpoint key.
|
|
8439
|
+
*/
|
|
8440
|
+
key: string;
|
|
8441
|
+
}
|
|
8442
|
+
/** @experimental */
|
|
8443
|
+
export interface FactoryPauseCheckpointResult {
|
|
8444
|
+
action: FactoryPauseCheckpointAction;
|
|
8445
|
+
}
|
|
8446
|
+
/**
|
|
8447
|
+
* Parameters for pausing a running factory.
|
|
8448
|
+
*
|
|
8449
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
8450
|
+
* via the `definition` "FactoryPauseRequest".
|
|
8451
|
+
*/
|
|
8452
|
+
/** @experimental */
|
|
8453
|
+
export interface FactoryPauseRequest {
|
|
8454
|
+
/**
|
|
8455
|
+
* Factory run identifier.
|
|
8456
|
+
*/
|
|
8457
|
+
runId: string;
|
|
8458
|
+
}
|
|
8005
8459
|
/**
|
|
8006
8460
|
* Durable lifecycle and timing for one factory phase.
|
|
8007
8461
|
*
|
|
@@ -8156,19 +8610,19 @@ export interface FactoryRunLimits {
|
|
|
8156
8610
|
/**
|
|
8157
8611
|
* Maximum number of factory subagents that may run concurrently.
|
|
8158
8612
|
*/
|
|
8159
|
-
maxConcurrentSubagents?: number;
|
|
8613
|
+
maxConcurrentSubagents?: number | null;
|
|
8160
8614
|
/**
|
|
8161
8615
|
* Maximum total number of factory subagents that may be admitted.
|
|
8162
8616
|
*/
|
|
8163
|
-
maxTotalSubagents?: number;
|
|
8617
|
+
maxTotalSubagents?: number | null;
|
|
8164
8618
|
/**
|
|
8165
8619
|
* Maximum accumulated active-execution time in seconds. Active execution includes the entire extension body, subprocess waits, queued-agent waits, and sleeps; time between resumed attempts is not counted.
|
|
8166
8620
|
*/
|
|
8167
|
-
timeoutSeconds?: number;
|
|
8621
|
+
timeoutSeconds?: number | null;
|
|
8168
8622
|
/**
|
|
8169
8623
|
* Maximum AI credits consumed by factory subagents and their descendants. The post-paid ceiling is soft: parallel turns can settle beyond it before the run stops.
|
|
8170
8624
|
*/
|
|
8171
|
-
maxAiCredits?: number;
|
|
8625
|
+
maxAiCredits?: number | null;
|
|
8172
8626
|
}
|
|
8173
8627
|
/**
|
|
8174
8628
|
* Resolved persisted factory identity and resumed run envelope.
|
|
@@ -8218,6 +8672,7 @@ export interface FactoryRunResult {
|
|
|
8218
8672
|
* Partial journal and progress snapshot for a halted, cancelled, or errored run.
|
|
8219
8673
|
*/
|
|
8220
8674
|
snapshot?: JsonValue;
|
|
8675
|
+
pauseInfo?: FactoryPauseInfo;
|
|
8221
8676
|
}
|
|
8222
8677
|
/**
|
|
8223
8678
|
* Full factory run observability detail.
|
|
@@ -8294,6 +8749,10 @@ export interface FactoryRunDetail {
|
|
|
8294
8749
|
* Terminal run outcome, or null while nonterminal.
|
|
8295
8750
|
*/
|
|
8296
8751
|
terminal: FactoryRunTerminal | null;
|
|
8752
|
+
/**
|
|
8753
|
+
* Whether the durable run state currently passes runtime resume eligibility checks.
|
|
8754
|
+
*/
|
|
8755
|
+
canResume: boolean;
|
|
8297
8756
|
/**
|
|
8298
8757
|
* Lifecycle and timing observations for each factory phase.
|
|
8299
8758
|
*/
|
|
@@ -8345,7 +8804,7 @@ export interface RunOptions {
|
|
|
8345
8804
|
resumeFromRunId?: string;
|
|
8346
8805
|
}
|
|
8347
8806
|
/**
|
|
8348
|
-
*
|
|
8807
|
+
* Parameters for starting fleet orchestration: an optional user prompt combined with the fleet instructions, plus the send options forwarded to the resulting turn.
|
|
8349
8808
|
*
|
|
8350
8809
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
8351
8810
|
* via the `definition` "FleetStartRequest".
|
|
@@ -8356,6 +8815,14 @@ export interface FleetStartRequest {
|
|
|
8356
8815
|
* Optional user prompt to combine with fleet instructions
|
|
8357
8816
|
*/
|
|
8358
8817
|
prompt?: string;
|
|
8818
|
+
/**
|
|
8819
|
+
* Optional attachments (files, directories, selections, blobs, GitHub references) to include with the fleet request
|
|
8820
|
+
*/
|
|
8821
|
+
attachments?: Attachment[];
|
|
8822
|
+
/**
|
|
8823
|
+
* If true, await completion of the agentic loop for this fleet request before returning. Defaults to false.
|
|
8824
|
+
*/
|
|
8825
|
+
wait?: boolean;
|
|
8359
8826
|
}
|
|
8360
8827
|
/**
|
|
8361
8828
|
* Indicates whether fleet mode was successfully activated.
|
|
@@ -10404,6 +10871,10 @@ export interface McpDiscoverRequest {
|
|
|
10404
10871
|
* Working directory used as context for discovery (e.g., plugin resolution)
|
|
10405
10872
|
*/
|
|
10406
10873
|
workingDirectory?: string;
|
|
10874
|
+
/**
|
|
10875
|
+
* Whether to include canonical effectiveSource metadata for each discovered server. Callers must opt in so protocol-3 clients retain the legacy closed response shape.
|
|
10876
|
+
*/
|
|
10877
|
+
includeEffectiveSource?: boolean;
|
|
10407
10878
|
}
|
|
10408
10879
|
/**
|
|
10409
10880
|
* MCP servers discovered from user, workspace, plugin, and built-in sources.
|
|
@@ -11923,6 +12394,31 @@ export interface MetadataSnapshotRemoteMetadataRepository {
|
|
|
11923
12394
|
*/
|
|
11924
12395
|
branch: string;
|
|
11925
12396
|
}
|
|
12397
|
+
/**
|
|
12398
|
+
* Atomic patch for client-owned session metadata. Operations apply in clear, remove, then set order. The resulting bag must satisfy the ClientMetadata entry and serialized-size limits. Local storage coordinates concurrent runtime processes; custom SessionFs providers must serialize writers that access the same session from multiple processes.
|
|
12399
|
+
*
|
|
12400
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12401
|
+
* via the `definition` "MetadataUpdateClientMetadataRequest".
|
|
12402
|
+
*/
|
|
12403
|
+
/** @experimental */
|
|
12404
|
+
export interface MetadataUpdateClientMetadataRequest {
|
|
12405
|
+
/**
|
|
12406
|
+
* Remove every existing client metadata entry before applying remove and set. Defaults to false.
|
|
12407
|
+
*/
|
|
12408
|
+
clear?: boolean;
|
|
12409
|
+
/**
|
|
12410
|
+
* Case-sensitive keys to remove. Missing keys are ignored. Each key must be non-empty, at most 256 UTF-8 bytes, and outside the reserved `copilot/` and `github/` namespaces.
|
|
12411
|
+
*
|
|
12412
|
+
* @maxItems 128
|
|
12413
|
+
*/
|
|
12414
|
+
remove?: string[];
|
|
12415
|
+
/**
|
|
12416
|
+
* String entries to add or replace. Set wins when a key also appears in remove. Each key must be non-empty, at most 256 UTF-8 bytes, and outside the reserved `copilot/` and `github/` namespaces. Each value may contain at most 16 KiB of UTF-8 data.
|
|
12417
|
+
*/
|
|
12418
|
+
set?: {
|
|
12419
|
+
[k: string]: string | undefined;
|
|
12420
|
+
};
|
|
12421
|
+
}
|
|
11926
12422
|
/**
|
|
11927
12423
|
* Copilot model metadata, including identifier, display name, capabilities, policy, billing, reasoning efforts, and picker categories.
|
|
11928
12424
|
*
|
|
@@ -12259,6 +12755,10 @@ export interface ModelApplyStartupOverlayRequest {
|
|
|
12259
12755
|
* Context tier selected by repository settings, when configured.
|
|
12260
12756
|
*/
|
|
12261
12757
|
repoContextTier?: string;
|
|
12758
|
+
/**
|
|
12759
|
+
* Auto routing preference selected by repository settings, when configured. Applied only when the overlay selects the Auto model; beside a concrete model it stays dormant.
|
|
12760
|
+
*/
|
|
12761
|
+
repoAutoTier?: string;
|
|
12262
12762
|
/**
|
|
12263
12763
|
* Model explicitly selected by the CLI, when provided.
|
|
12264
12764
|
*/
|
|
@@ -12386,6 +12886,44 @@ export interface ModelPickerSettingsContext {
|
|
|
12386
12886
|
*/
|
|
12387
12887
|
environment: {};
|
|
12388
12888
|
}
|
|
12889
|
+
/**
|
|
12890
|
+
* Host-supplied exact model selection IDs to allow for this running session. CAPI IDs are intersected with repository `.github/allowed_models.txt` policy; provider-qualified IDs remain exempt from repository-only policy but are restricted by this host list. Omit or pass null to clear the host restriction; an explicit empty or disjoint list is rejected. Validation and pre-selection fallback failures preserve the previous restriction. Failures after a fallback selection commits retain the new restriction and selected model; callers should inspect current session state after such an error.
|
|
12891
|
+
*
|
|
12892
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12893
|
+
* via the `definition` "ModelSetAllowedModelsRequest".
|
|
12894
|
+
*/
|
|
12895
|
+
/** @experimental */
|
|
12896
|
+
export interface ModelSetAllowedModelsRequest {
|
|
12897
|
+
/**
|
|
12898
|
+
* Exact model IDs to permit, or null to clear the host restriction.
|
|
12899
|
+
*/
|
|
12900
|
+
allowedModels?: string[] | null;
|
|
12901
|
+
}
|
|
12902
|
+
/**
|
|
12903
|
+
* The applied host allowlist and effective session model policy after intersection.
|
|
12904
|
+
*
|
|
12905
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12906
|
+
* via the `definition` "ModelSetAllowedModelsResult".
|
|
12907
|
+
*/
|
|
12908
|
+
/** @experimental */
|
|
12909
|
+
export interface ModelSetAllowedModelsResult {
|
|
12910
|
+
/**
|
|
12911
|
+
* Normalized host allowlist. Omitted when the host restriction was cleared, or when a relay client does not return the host policy.
|
|
12912
|
+
*/
|
|
12913
|
+
allowedModels?: string[];
|
|
12914
|
+
/**
|
|
12915
|
+
* Effective exact IDs or repository policy patterns after applying the host restriction. Omitted by relay clients that do not return the host policy.
|
|
12916
|
+
*/
|
|
12917
|
+
effectiveAllowedModels?: string[];
|
|
12918
|
+
/**
|
|
12919
|
+
* Effective deterministic fallback model, when the policy defines one.
|
|
12920
|
+
*/
|
|
12921
|
+
fallbackModel?: string;
|
|
12922
|
+
/**
|
|
12923
|
+
* Selected session model after reconciling a now-disallowed concrete selection.
|
|
12924
|
+
*/
|
|
12925
|
+
modelId?: string;
|
|
12926
|
+
}
|
|
12389
12927
|
/**
|
|
12390
12928
|
* Reasoning effort level to apply to the currently selected model.
|
|
12391
12929
|
*
|
|
@@ -12574,6 +13112,7 @@ export interface ModelSwitchToResult {
|
|
|
12574
13112
|
/** @experimental */
|
|
12575
13113
|
export interface ModeSetRequest {
|
|
12576
13114
|
mode: SessionMode;
|
|
13115
|
+
expectedMode?: SessionMode;
|
|
12577
13116
|
/**
|
|
12578
13117
|
* Session whose plan-mode base state should be inherited.
|
|
12579
13118
|
*/
|
|
@@ -12628,6 +13167,10 @@ export interface ModeSetResult {
|
|
|
12628
13167
|
* Whether applying the mode changed the active model.
|
|
12629
13168
|
*/
|
|
12630
13169
|
modelChanged: boolean;
|
|
13170
|
+
/**
|
|
13171
|
+
* Whether the requested mode was applied to the session. False only when an 'expectedMode' precondition did not hold, in which case any model change reported alongside it was still applied.
|
|
13172
|
+
*/
|
|
13173
|
+
modeApplied?: boolean;
|
|
12631
13174
|
confirmation?: ModelSwitchConfirmation;
|
|
12632
13175
|
/**
|
|
12633
13176
|
* User-facing warning produced while applying the mode change.
|
|
@@ -14552,7 +15095,7 @@ export interface PluginsBuiltinSetRequest {
|
|
|
14552
15095
|
paths: string[];
|
|
14553
15096
|
}
|
|
14554
15097
|
/**
|
|
14555
|
-
* Plugin names (or specs) to disable.
|
|
15098
|
+
* Plugin names (or specs) to disable, plus the optional working directory the repository-controlled guard is evaluated against.
|
|
14556
15099
|
*
|
|
14557
15100
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
14558
15101
|
* via the `definition` "PluginsDisableRequest".
|
|
@@ -14563,9 +15106,13 @@ export interface PluginsDisableRequest {
|
|
|
14563
15106
|
* Plugin names or "plugin@marketplace" specs to disable. Unknown names are ignored. Non-marketplace direct installs cannot be disabled via this API; uninstall them instead. Plugin-owned MCP servers are stopped in active sessions immediately; other plugin contributions remain available until each session reloads plugins.
|
|
14564
15107
|
*/
|
|
14565
15108
|
names: string[];
|
|
15109
|
+
/**
|
|
15110
|
+
* Working directory whose repository `enabledPlugins` overlay decides whether this mutation is repository-controlled. Hosts that serve sessions across several repositories (the SDK server) should pass the session's directory; otherwise the guard is evaluated against the server process's own working directory, which may belong to a different repository. Defaults to the server's current working directory.
|
|
15111
|
+
*/
|
|
15112
|
+
workingDirectory?: string;
|
|
14566
15113
|
}
|
|
14567
15114
|
/**
|
|
14568
|
-
* Plugin names (or specs) to enable.
|
|
15115
|
+
* Plugin names (or specs) to enable, plus the optional working directory the repository-controlled guard is evaluated against.
|
|
14569
15116
|
*
|
|
14570
15117
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
14571
15118
|
* via the `definition` "PluginsEnableRequest".
|
|
@@ -14576,6 +15123,10 @@ export interface PluginsEnableRequest {
|
|
|
14576
15123
|
* Plugin names or "plugin@marketplace" specs to enable. Unknown names are ignored. Non-marketplace direct installs are always enabled and cannot be toggled via this API.
|
|
14577
15124
|
*/
|
|
14578
15125
|
names: string[];
|
|
15126
|
+
/**
|
|
15127
|
+
* Working directory whose repository `enabledPlugins` overlay decides whether this mutation is repository-controlled. Hosts that serve sessions across several repositories (the SDK server) should pass the session's directory; otherwise the guard is evaluated against the server process's own working directory, which may belong to a different repository. Defaults to the server's current working directory.
|
|
15128
|
+
*/
|
|
15129
|
+
workingDirectory?: string;
|
|
14579
15130
|
}
|
|
14580
15131
|
/**
|
|
14581
15132
|
* Plugin source and optional working directory for relative-path resolution.
|
|
@@ -16437,6 +16988,37 @@ export interface SandboxConfigAuth {
|
|
|
16437
16988
|
*/
|
|
16438
16989
|
gh?: boolean;
|
|
16439
16990
|
}
|
|
16991
|
+
/**
|
|
16992
|
+
* Request to disable sandboxing for the current session while resolving an active sandbox-bypass permission prompt.
|
|
16993
|
+
*
|
|
16994
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
16995
|
+
* via the `definition` "SandboxDisableForSessionRequest".
|
|
16996
|
+
*/
|
|
16997
|
+
/** @experimental */
|
|
16998
|
+
export interface SandboxDisableForSessionRequest {
|
|
16999
|
+
/**
|
|
17000
|
+
* Identifier of the exact pending sandbox-bypass permission request that authorized the session opt-out.
|
|
17001
|
+
*/
|
|
17002
|
+
requestId: string;
|
|
17003
|
+
decisionContext?: PermissionDecisionContext;
|
|
17004
|
+
}
|
|
17005
|
+
/**
|
|
17006
|
+
* Result of attempting to disable sandboxing for the current session.
|
|
17007
|
+
*
|
|
17008
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
17009
|
+
* via the `definition` "SandboxDisableForSessionResult".
|
|
17010
|
+
*/
|
|
17011
|
+
/** @experimental */
|
|
17012
|
+
export interface SandboxDisableForSessionResult {
|
|
17013
|
+
/**
|
|
17014
|
+
* Whether this call resolved the pending request and applied the session opt-out.
|
|
17015
|
+
*/
|
|
17016
|
+
success: boolean;
|
|
17017
|
+
/**
|
|
17018
|
+
* The authoritative sandbox enabled state after the operation.
|
|
17019
|
+
*/
|
|
17020
|
+
enabled: boolean;
|
|
17021
|
+
}
|
|
16440
17022
|
/**
|
|
16441
17023
|
* Managed sandbox enforcement state for a session.
|
|
16442
17024
|
*
|
|
@@ -17098,7 +17680,7 @@ export interface SessionEnrichMetadataResult {
|
|
|
17098
17680
|
sessions: LocalSessionMetadataValue[];
|
|
17099
17681
|
}
|
|
17100
17682
|
/**
|
|
17101
|
-
* File path, content to append, and optional mode for the client-provided session filesystem.
|
|
17683
|
+
* File path, content to append, and optional mode for the client-provided session filesystem. Implementations create parent directories as needed.
|
|
17102
17684
|
*
|
|
17103
17685
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
17104
17686
|
* via the `definition` "SessionFsAppendFileRequest".
|
|
@@ -18143,6 +18725,10 @@ export interface SessionOpenOptions {
|
|
|
18143
18725
|
* Whether to skip custom instruction sources.
|
|
18144
18726
|
*/
|
|
18145
18727
|
skipCustomInstructions?: boolean;
|
|
18728
|
+
/**
|
|
18729
|
+
* Whether to invalidate cached custom-instruction discovery before constructing the session. Use when instruction files may have changed earlier in the same runtime process.
|
|
18730
|
+
*/
|
|
18731
|
+
refreshCustomInstructions?: boolean;
|
|
18146
18732
|
/**
|
|
18147
18733
|
* Instruction source IDs disabled for this session.
|
|
18148
18734
|
*/
|
|
@@ -19061,6 +19647,27 @@ export interface SessionsGetBoardEntryCountResult {
|
|
|
19061
19647
|
*/
|
|
19062
19648
|
count?: number;
|
|
19063
19649
|
}
|
|
19650
|
+
/**
|
|
19651
|
+
* Bounded batch request for client-owned metadata from persisted local sessions.
|
|
19652
|
+
*
|
|
19653
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
19654
|
+
* via the `definition` "SessionsGetClientMetadataRequest".
|
|
19655
|
+
*/
|
|
19656
|
+
/** @experimental */
|
|
19657
|
+
export interface SessionsGetClientMetadataRequest {
|
|
19658
|
+
/**
|
|
19659
|
+
* Session IDs to inspect. Results preserve this order.
|
|
19660
|
+
*
|
|
19661
|
+
* @maxItems 1000
|
|
19662
|
+
*/
|
|
19663
|
+
sessionIds: string[];
|
|
19664
|
+
/**
|
|
19665
|
+
* Case-sensitive keys to project from each valid bag. Each key must be non-empty, at most 256 UTF-8 bytes, and outside the reserved `copilot/` and `github/` namespaces. Omit to return every entry.
|
|
19666
|
+
*
|
|
19667
|
+
* @maxItems 128
|
|
19668
|
+
*/
|
|
19669
|
+
keys?: string[];
|
|
19670
|
+
}
|
|
19064
19671
|
/**
|
|
19065
19672
|
* Session ID whose event-log file path to compute.
|
|
19066
19673
|
*
|
|
@@ -19274,11 +19881,11 @@ export interface SessionsReadPersistedEventsRequest {
|
|
|
19274
19881
|
*/
|
|
19275
19882
|
sessionId: string;
|
|
19276
19883
|
/**
|
|
19277
|
-
* Opaque cursor returned by
|
|
19884
|
+
* Opaque, process-local, single-use cursor returned by the previous persisted-event read. Omit on the first call and issue continuations sequentially; reusing the same cursor returns an expired terminal page.
|
|
19278
19885
|
*/
|
|
19279
19886
|
cursor?: string;
|
|
19280
19887
|
/**
|
|
19281
|
-
* Maximum number of events to return in this batch (1–1000, default 200).
|
|
19888
|
+
* Maximum number of events to return in this batch (1–1000, default 200). Pages may contain fewer events to keep the serialized event array within a soft 1 MiB budget including resolved binary assets; one oversized event is returned alone to guarantee progress.
|
|
19282
19889
|
*/
|
|
19283
19890
|
max?: number;
|
|
19284
19891
|
direction?: EventsReadDirection;
|
|
@@ -20306,7 +20913,7 @@ export interface SlashCommandSetPlanModelResult {
|
|
|
20306
20913
|
runtimeSettingsChanged?: boolean;
|
|
20307
20914
|
}
|
|
20308
20915
|
/**
|
|
20309
|
-
* Subagent model, reasoning effort,
|
|
20916
|
+
* Subagent model, reasoning effort, context tier, and auto-invocation settings
|
|
20310
20917
|
*
|
|
20311
20918
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
20312
20919
|
* via the `definition` "SubagentSettingsEntry".
|
|
@@ -20323,6 +20930,10 @@ export interface SubagentSettingsEntry {
|
|
|
20323
20930
|
*/
|
|
20324
20931
|
effortLevel?: string;
|
|
20325
20932
|
contextTier?: SubagentSettingsEntryContextTier;
|
|
20933
|
+
/**
|
|
20934
|
+
* Whether this agent's runtime-defined proactive invocation prompting is enabled, if supported. Currently consumed by the built-in rubber-duck agent.
|
|
20935
|
+
*/
|
|
20936
|
+
autoInvoke?: boolean;
|
|
20326
20937
|
}
|
|
20327
20938
|
/**
|
|
20328
20939
|
* Tracked background agent task metadata, including IDs, status, timing, agent type, prompt, model, result, and latest response.
|
|
@@ -22758,6 +23369,10 @@ export interface WorkspacesWriteAutopilotObjectiveResult {
|
|
|
22758
23369
|
operation: string;
|
|
22759
23370
|
}
|
|
22760
23371
|
/** @experimental */
|
|
23372
|
+
export interface SessionFactoryPauseAtCheckpointResult {
|
|
23373
|
+
action: FactoryPauseCheckpointAction;
|
|
23374
|
+
}
|
|
23375
|
+
/** @experimental */
|
|
22761
23376
|
export interface SessionModelListRequest {
|
|
22762
23377
|
/**
|
|
22763
23378
|
* If true, bypasses the per-session model list cache and re-fetches from CAPI.
|
|
@@ -23121,13 +23736,13 @@ export declare function createServerRpc(connection: MessageConnection): {
|
|
|
23121
23736
|
/**
|
|
23122
23737
|
* Enables installed plugins for new sessions.
|
|
23123
23738
|
*
|
|
23124
|
-
* @param params Plugin names (or specs) to enable.
|
|
23739
|
+
* @param params Plugin names (or specs) to enable, plus the optional working directory the repository-controlled guard is evaluated against.
|
|
23125
23740
|
*/
|
|
23126
23741
|
enable: (params: PluginsEnableRequest) => Promise<void>;
|
|
23127
23742
|
/**
|
|
23128
23743
|
* Disables installed plugins for new sessions.
|
|
23129
23744
|
*
|
|
23130
|
-
* @param params Plugin names (or specs) to disable.
|
|
23745
|
+
* @param params Plugin names (or specs) to disable, plus the optional working directory the repository-controlled guard is evaluated against.
|
|
23131
23746
|
*/
|
|
23132
23747
|
disable: (params: PluginsDisableRequest) => Promise<void>;
|
|
23133
23748
|
/** @experimental */
|
|
@@ -23377,7 +23992,15 @@ export declare function createServerRpc(connection: MessageConnection): {
|
|
|
23377
23992
|
*/
|
|
23378
23993
|
list: (params: SessionsListRequest) => Promise<SessionList>;
|
|
23379
23994
|
/**
|
|
23380
|
-
* Reads
|
|
23995
|
+
* Reads client-owned metadata for multiple persisted local sessions without opening them. Results preserve request order and report missing, corrupt, unsupported, or temporarily unavailable sessions independently.
|
|
23996
|
+
*
|
|
23997
|
+
* @param params Bounded batch request for client-owned metadata from persisted local sessions.
|
|
23998
|
+
*
|
|
23999
|
+
* @returns Ordered client metadata outcomes for the requested local sessions.
|
|
24000
|
+
*/
|
|
24001
|
+
getClientMetadata: (params: SessionsGetClientMetadataRequest) => Promise<SessionsGetClientMetadataResult>;
|
|
24002
|
+
/**
|
|
24003
|
+
* Reads a page of durable events directly from a local session's persisted journal without creating, resuming, or activating the session. The first read pins the currently opened journal generation and its byte-length boundary; opaque cursor continuations remain on that generation across runtime-owned compaction, truncation, and rewrite operations, which replace the live path atomically, and events appended after the boundary are excluded. For cold hydration, await the first successful page before activation and establish lossless live-event buffering before resume; merge subsequent live events by ID, preserving persisted order and letting live payloads win. Continuations are process-local, single-use capabilities bound to the originating session and storage context and must be paged sequentially; concurrent or repeated use of the same cursor expires that duplicate read rather than reading the generation twice. A complete snapshot has cursorStatus 'ok' and hasMore false. Snapshots expire after five idle minutes, with at most eight retained per process and idle-only eviction under pressure; completion and cancelled-worker exit release their handles. No transcript copy is created, but retained handles may keep replaced files' disk blocks alive until release. Pages have a soft 1 MiB serialized event-array budget including resolved binary assets; one oversized event is returned alone to guarantee progress. Working memory also includes a record/lookahead and asset resolution; resolving the first binary reference may scan the full pinned generation to build a bounded offset index. If the snapshot expires, is evicted, is cancelled before a continuation is established, or becomes unreadable after an observable unsupported in-place shortening, the continuation returns cursorStatus 'expired' with an empty terminal page and never falls back to a different generation. A missing or initially unreadable journal is an RPC error. Persisted history excludes ephemeral events and may omit payloads that are reconstructed only for an active session; use the active session event stream for post-resume live events.
|
|
23381
24004
|
*
|
|
23382
24005
|
* @param params Pagination options for reading an inactive or active local session's persisted event journal.
|
|
23383
24006
|
*
|
|
@@ -23581,6 +24204,14 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
23581
24204
|
* @returns Managed sandbox enforcement state for a session.
|
|
23582
24205
|
*/
|
|
23583
24206
|
getEnforcementStatus: () => Promise<SandboxEnforcementStatus>;
|
|
24207
|
+
/**
|
|
24208
|
+
* Disables sandboxing for the remainder of the current session and approves the referenced pending sandbox-bypass permission request. The request is rejected unless the exact request is still pending and the effective sandbox policy permits bypass.
|
|
24209
|
+
*
|
|
24210
|
+
* @param params Request to disable sandboxing for the current session while resolving an active sandbox-bypass permission prompt.
|
|
24211
|
+
*
|
|
24212
|
+
* @returns Result of attempting to disable sandboxing for the current session.
|
|
24213
|
+
*/
|
|
24214
|
+
disableForSession: (params: SandboxDisableForSessionRequest) => Promise<SandboxDisableForSessionResult>;
|
|
23584
24215
|
};
|
|
23585
24216
|
/**
|
|
23586
24217
|
* Aborts the current agent turn.
|
|
@@ -23744,6 +24375,14 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
23744
24375
|
* @returns Complete current or terminal factory run envelope.
|
|
23745
24376
|
*/
|
|
23746
24377
|
cancel: (params: FactoryCancelRequest) => Promise<FactoryRunResult>;
|
|
24378
|
+
/**
|
|
24379
|
+
* Pauses a running factory and returns its settled run envelope.
|
|
24380
|
+
*
|
|
24381
|
+
* @param params Parameters for pausing a running factory.
|
|
24382
|
+
*
|
|
24383
|
+
* @returns Complete current or terminal factory run envelope.
|
|
24384
|
+
*/
|
|
24385
|
+
pause: (params: FactoryPauseRequest) => Promise<FactoryRunResult>;
|
|
23747
24386
|
/**
|
|
23748
24387
|
* Records a batch of ordered factory progress lines.
|
|
23749
24388
|
*
|
|
@@ -23804,6 +24443,14 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
23804
24443
|
* @returns Immediate acknowledgement and Auto preference snapshot after a switch request. This result never implies that a pending preference committed.
|
|
23805
24444
|
*/
|
|
23806
24445
|
switchAutoTier: (params: ModelSwitchAutoTierRequest) => Promise<ModelSwitchAutoTierResult>;
|
|
24446
|
+
/**
|
|
24447
|
+
* Replaces or clears the host-supplied model allowlist for a running session.
|
|
24448
|
+
*
|
|
24449
|
+
* @param params Host-supplied exact model selection IDs to allow for this running session. CAPI IDs are intersected with repository `.github/allowed_models.txt` policy; provider-qualified IDs remain exempt from repository-only policy but are restricted by this host list. Omit or pass null to clear the host restriction; an explicit empty or disjoint list is rejected. Validation and pre-selection fallback failures preserve the previous restriction. Failures after a fallback selection commits retain the new restriction and selected model; callers should inspect current session state after such an error.
|
|
24450
|
+
*
|
|
24451
|
+
* @returns The applied host allowlist and effective session model policy after intersection.
|
|
24452
|
+
*/
|
|
24453
|
+
setAllowedModels: (params: ModelSetAllowedModelsRequest) => Promise<ModelSetAllowedModelsResult>;
|
|
23807
24454
|
/**
|
|
23808
24455
|
* Updates the session's reasoning effort without changing the selected model.
|
|
23809
24456
|
*
|
|
@@ -24049,7 +24696,7 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
24049
24696
|
/**
|
|
24050
24697
|
* Starts fleet mode by submitting the fleet orchestration prompt to the session.
|
|
24051
24698
|
*
|
|
24052
|
-
* @param params
|
|
24699
|
+
* @param params Parameters for starting fleet orchestration: an optional user prompt combined with the fleet instructions, plus the send options forwarded to the resulting turn.
|
|
24053
24700
|
*
|
|
24054
24701
|
* @returns Indicates whether fleet mode was successfully activated.
|
|
24055
24702
|
*/
|
|
@@ -24591,7 +25238,7 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
24591
25238
|
*/
|
|
24592
25239
|
set: (params: ToolsSetRequest) => Promise<ToolsSetResult>;
|
|
24593
25240
|
/**
|
|
24594
|
-
*
|
|
25241
|
+
* Sets the current session's live subagent settings override, which takes precedence over persisted user settings until cleared. Persisted user settings remain the source of truth for future sessions.
|
|
24595
25242
|
*
|
|
24596
25243
|
* @param params Subagent settings to apply to the current session
|
|
24597
25244
|
*
|
|
@@ -24941,6 +25588,20 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
24941
25588
|
* @returns Point-in-time snapshot of slow-changing session identifier and state fields
|
|
24942
25589
|
*/
|
|
24943
25590
|
snapshot: () => Promise<SessionMetadataSnapshot>;
|
|
25591
|
+
/**
|
|
25592
|
+
* Returns the client-owned string metadata persisted with this local session. The metadata is not included in model context, events, telemetry, snapshots, or remote exports.
|
|
25593
|
+
*
|
|
25594
|
+
* @returns Client-owned, case-sensitive string metadata persisted with a local session. Clients should namespace keys by owner. Keys must be non-empty and at most 256 UTF-8 bytes; keys under `copilot/` and `github/` are reserved. Values may contain at most 16 KiB of UTF-8 data. A bag may contain at most 128 entries and its serialized sidecar may contain at most 64 KiB. The runtime stores but never interprets these values.
|
|
25595
|
+
*/
|
|
25596
|
+
getClientMetadata: () => Promise<ClientMetadata>;
|
|
25597
|
+
/**
|
|
25598
|
+
* Atomically patches the client-owned string metadata persisted with this local session and returns the committed bag.
|
|
25599
|
+
*
|
|
25600
|
+
* @param params Atomic patch for client-owned session metadata. Operations apply in clear, remove, then set order. The resulting bag must satisfy the ClientMetadata entry and serialized-size limits. Local storage coordinates concurrent runtime processes; custom SessionFs providers must serialize writers that access the same session from multiple processes.
|
|
25601
|
+
*
|
|
25602
|
+
* @returns Client-owned, case-sensitive string metadata persisted with a local session. Clients should namespace keys by owner. Keys must be non-empty and at most 256 UTF-8 bytes; keys under `copilot/` and `github/` are reserved. Values may contain at most 16 KiB of UTF-8 data. A bag may contain at most 128 entries and its serialized sidecar may contain at most 64 KiB. The runtime stores but never interprets these values.
|
|
25603
|
+
*/
|
|
25604
|
+
updateClientMetadata: (params: MetadataUpdateClientMetadataRequest) => Promise<ClientMetadata>;
|
|
24944
25605
|
/**
|
|
24945
25606
|
* Reports whether the local session is currently processing user/agent messages.
|
|
24946
25607
|
*
|
|
@@ -25361,9 +26022,9 @@ export interface SessionFsHandler {
|
|
|
25361
26022
|
*/
|
|
25362
26023
|
writeFile(params: SessionFsWriteFileRequest): Promise<SessionFsError | undefined>;
|
|
25363
26024
|
/**
|
|
25364
|
-
* Appends content to a file in the client-provided session filesystem.
|
|
26025
|
+
* Appends content to a file in the client-provided session filesystem, creating parent directories as needed.
|
|
25365
26026
|
*
|
|
25366
|
-
* @param params File path, content to append, and optional mode for the client-provided session filesystem.
|
|
26027
|
+
* @param params File path, content to append, and optional mode for the client-provided session filesystem. Implementations create parent directories as needed.
|
|
25367
26028
|
*
|
|
25368
26029
|
* @returns Describes a filesystem error.
|
|
25369
26030
|
*/
|