@github/copilot-sdk 1.0.10-preview.0 → 1.0.11-preview.2
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/dist/cjs/client.js +2 -0
- package/dist/cjs/factory.js +10 -0
- package/dist/cjs/generated/rpc.js +4 -2
- package/dist/cjs/session.js +40 -16
- package/dist/client.js +2 -0
- package/dist/factory.d.ts +24 -34
- package/dist/factory.js +9 -0
- package/dist/generated/rpc.d.ts +141 -132
- package/dist/generated/rpc.js +4 -2
- package/dist/generated/session-events.d.ts +53 -101
- package/dist/session.js +41 -16
- package/dist/types.d.ts +9 -1
- package/docs/factories.md +4 -4
- package/package.json +2 -2
package/dist/generated/rpc.d.ts
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import type { MessageConnection } from "vscode-jsonrpc/node.js";
|
|
6
6
|
import type { AbortReason, Attachment, ContextTier, EmbeddedBlobResourceContents, EmbeddedTextResourceContents, McpServerSource, McpServerStatus, PermissionPromptRequest, PermissionRule, ReasoningSummary, SessionEvent, SessionLimitsConfig, SessionMode, ShutdownType, SkillSource, UserToolSessionApproval, Verbosity } from "./session-events.js";
|
|
7
|
+
/** A value that can be represented losslessly on the SDK JSON wire. */
|
|
8
|
+
export type JsonValue = null | boolean | number | string | JsonValue[] | {
|
|
9
|
+
[key: string]: JsonValue;
|
|
10
|
+
};
|
|
7
11
|
/**
|
|
8
12
|
* Initial authentication info for the session.
|
|
9
13
|
*
|
|
@@ -243,6 +247,22 @@ export type AuthInfoType =
|
|
|
243
247
|
| "token"
|
|
244
248
|
/** Authentication from a Copilot API token. */
|
|
245
249
|
| "copilot-api-token";
|
|
250
|
+
/**
|
|
251
|
+
* JSON Schema for canvas open input
|
|
252
|
+
*
|
|
253
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
254
|
+
* via the `definition` "CanvasJsonSchema".
|
|
255
|
+
*/
|
|
256
|
+
/** @experimental */
|
|
257
|
+
export type CanvasJsonSchema = JsonValue;
|
|
258
|
+
/**
|
|
259
|
+
* Provider-supplied action result.
|
|
260
|
+
*
|
|
261
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
262
|
+
* via the `definition` "CanvasActionInvokeResult".
|
|
263
|
+
*/
|
|
264
|
+
/** @experimental */
|
|
265
|
+
export type CanvasActionInvokeResult = JsonValue;
|
|
246
266
|
/**
|
|
247
267
|
* Coarse command category for grouping and behavior: runtime built-in, skill-backed command, or SDK/client-owned command
|
|
248
268
|
*
|
|
@@ -653,6 +673,16 @@ export type FactoryRunFailure = {
|
|
|
653
673
|
*/
|
|
654
674
|
runId: string;
|
|
655
675
|
type: "factory_durable_failure";
|
|
676
|
+
} | {
|
|
677
|
+
/**
|
|
678
|
+
* Factory run identifier.
|
|
679
|
+
*/
|
|
680
|
+
runId: string;
|
|
681
|
+
/**
|
|
682
|
+
* Confirmed usage in nano-AIU, representing the floor of what the run spent.
|
|
683
|
+
*/
|
|
684
|
+
drainedNanoAiu: number;
|
|
685
|
+
type: "factory_accounting_incomplete";
|
|
656
686
|
};
|
|
657
687
|
/**
|
|
658
688
|
* Cumulative resource ceiling that stopped a factory run.
|
|
@@ -3377,7 +3407,7 @@ export interface AgentInfo {
|
|
|
3377
3407
|
* @experimental
|
|
3378
3408
|
*/
|
|
3379
3409
|
mcpServers?: {
|
|
3380
|
-
[k: string]:
|
|
3410
|
+
[k: string]: JsonValue | undefined;
|
|
3381
3411
|
};
|
|
3382
3412
|
/**
|
|
3383
3413
|
* Skill names preloaded into this agent's context. Omitted means none.
|
|
@@ -3775,16 +3805,6 @@ export interface CanvasAction {
|
|
|
3775
3805
|
description?: string;
|
|
3776
3806
|
inputSchema?: CanvasJsonSchema;
|
|
3777
3807
|
}
|
|
3778
|
-
/**
|
|
3779
|
-
* JSON Schema for canvas open input
|
|
3780
|
-
*
|
|
3781
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
3782
|
-
* via the `definition` "CanvasJsonSchema".
|
|
3783
|
-
*/
|
|
3784
|
-
/** @experimental */
|
|
3785
|
-
export interface CanvasJsonSchema {
|
|
3786
|
-
[k: string]: unknown | undefined;
|
|
3787
|
-
}
|
|
3788
3808
|
/**
|
|
3789
3809
|
* Canvas action invocation parameters.
|
|
3790
3810
|
*
|
|
@@ -3804,19 +3824,7 @@ export interface CanvasActionInvokeRequest {
|
|
|
3804
3824
|
/**
|
|
3805
3825
|
* Action input
|
|
3806
3826
|
*/
|
|
3807
|
-
input?:
|
|
3808
|
-
[k: string]: unknown | undefined;
|
|
3809
|
-
};
|
|
3810
|
-
}
|
|
3811
|
-
/**
|
|
3812
|
-
* Provider-supplied action result.
|
|
3813
|
-
*
|
|
3814
|
-
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
3815
|
-
* via the `definition` "CanvasActionInvokeResult".
|
|
3816
|
-
*/
|
|
3817
|
-
/** @experimental */
|
|
3818
|
-
export interface CanvasActionInvokeResult {
|
|
3819
|
-
[k: string]: unknown | undefined;
|
|
3827
|
+
input?: JsonValue;
|
|
3820
3828
|
}
|
|
3821
3829
|
/**
|
|
3822
3830
|
* Canvas close parameters.
|
|
@@ -3961,9 +3969,7 @@ export interface OpenCanvasInstance {
|
|
|
3961
3969
|
/**
|
|
3962
3970
|
* Input supplied when the instance was opened
|
|
3963
3971
|
*/
|
|
3964
|
-
input?:
|
|
3965
|
-
[k: string]: unknown | undefined;
|
|
3966
|
-
};
|
|
3972
|
+
input?: JsonValue;
|
|
3967
3973
|
}
|
|
3968
3974
|
/**
|
|
3969
3975
|
* Canvas open parameters.
|
|
@@ -3988,9 +3994,7 @@ export interface CanvasOpenRequest {
|
|
|
3988
3994
|
/**
|
|
3989
3995
|
* Canvas open input
|
|
3990
3996
|
*/
|
|
3991
|
-
input?:
|
|
3992
|
-
[k: string]: unknown | undefined;
|
|
3993
|
-
};
|
|
3997
|
+
input?: JsonValue;
|
|
3994
3998
|
}
|
|
3995
3999
|
/**
|
|
3996
4000
|
* Canvas close parameters sent to the provider.
|
|
@@ -4063,9 +4067,7 @@ export interface CanvasProviderInvokeActionRequest {
|
|
|
4063
4067
|
/**
|
|
4064
4068
|
* Action input
|
|
4065
4069
|
*/
|
|
4066
|
-
input?:
|
|
4067
|
-
[k: string]: unknown | undefined;
|
|
4068
|
-
};
|
|
4070
|
+
input?: JsonValue;
|
|
4069
4071
|
host?: CanvasHostContext;
|
|
4070
4072
|
session?: CanvasSessionContext;
|
|
4071
4073
|
}
|
|
@@ -4096,9 +4098,7 @@ export interface CanvasProviderOpenRequest {
|
|
|
4096
4098
|
/**
|
|
4097
4099
|
* Canvas open input
|
|
4098
4100
|
*/
|
|
4099
|
-
input?:
|
|
4100
|
-
[k: string]: unknown | undefined;
|
|
4101
|
-
};
|
|
4101
|
+
input?: JsonValue;
|
|
4102
4102
|
host?: CanvasHostContext;
|
|
4103
4103
|
session?: CanvasSessionContext;
|
|
4104
4104
|
}
|
|
@@ -4606,7 +4606,7 @@ export interface CurrentToolMetadata {
|
|
|
4606
4606
|
* JSON Schema for tool input
|
|
4607
4607
|
*/
|
|
4608
4608
|
input_schema?: {
|
|
4609
|
-
[k: string]:
|
|
4609
|
+
[k: string]: JsonValue | undefined;
|
|
4610
4610
|
};
|
|
4611
4611
|
/**
|
|
4612
4612
|
* Whether the tool is loaded on demand via tool search
|
|
@@ -5036,9 +5036,7 @@ export interface ExtensionContextPushInput {
|
|
|
5036
5036
|
/**
|
|
5037
5037
|
* Caller-supplied JSON payload (required, may be null but not undefined)
|
|
5038
5038
|
*/
|
|
5039
|
-
payload:
|
|
5040
|
-
[k: string]: unknown | undefined;
|
|
5041
|
-
};
|
|
5039
|
+
payload: JsonValue;
|
|
5042
5040
|
}
|
|
5043
5041
|
/**
|
|
5044
5042
|
* Opaque integrator-owned process launch profile for one extension entrypoint.
|
|
@@ -5162,7 +5160,7 @@ export interface ExternalToolTextResultForLlm {
|
|
|
5162
5160
|
* Optional tool-specific telemetry
|
|
5163
5161
|
*/
|
|
5164
5162
|
toolTelemetry?: {
|
|
5165
|
-
[k: string]:
|
|
5163
|
+
[k: string]: JsonValue | undefined;
|
|
5166
5164
|
};
|
|
5167
5165
|
/**
|
|
5168
5166
|
* Base64-encoded binary results returned to the model
|
|
@@ -5202,7 +5200,7 @@ export interface ExternalToolTextResultForLlmBinaryResultsForLlm {
|
|
|
5202
5200
|
* Optional metadata from the producing tool.
|
|
5203
5201
|
*/
|
|
5204
5202
|
metadata?: {
|
|
5205
|
-
[k: string]:
|
|
5203
|
+
[k: string]: JsonValue | undefined;
|
|
5206
5204
|
};
|
|
5207
5205
|
}
|
|
5208
5206
|
/**
|
|
@@ -5440,13 +5438,20 @@ export interface FactoryAgentOptions {
|
|
|
5440
5438
|
/**
|
|
5441
5439
|
* Optional JSON Schema for structured agent output.
|
|
5442
5440
|
*/
|
|
5443
|
-
schema?:
|
|
5444
|
-
[k: string]: unknown | undefined;
|
|
5445
|
-
};
|
|
5441
|
+
schema?: JsonValue;
|
|
5446
5442
|
/**
|
|
5447
5443
|
* Optional model identifier for the subagent.
|
|
5448
5444
|
*/
|
|
5449
5445
|
model?: string;
|
|
5446
|
+
/**
|
|
5447
|
+
* Optional reasoning effort for the subagent. This field is accepted but not yet honored.
|
|
5448
|
+
*/
|
|
5449
|
+
reasoningEffort?: string;
|
|
5450
|
+
contextTier?: ContextTier;
|
|
5451
|
+
/**
|
|
5452
|
+
* Optional custom agent name for the subagent. This field is accepted but not yet honored.
|
|
5453
|
+
*/
|
|
5454
|
+
agent?: string;
|
|
5450
5455
|
}
|
|
5451
5456
|
/**
|
|
5452
5457
|
* Parameters for one factory-scoped subagent call.
|
|
@@ -5481,9 +5486,7 @@ export interface FactoryAgentResult {
|
|
|
5481
5486
|
/**
|
|
5482
5487
|
* Agent result, omitted when the agent produced no result.
|
|
5483
5488
|
*/
|
|
5484
|
-
result?:
|
|
5485
|
-
[k: string]: unknown | undefined;
|
|
5486
|
-
};
|
|
5489
|
+
result?: JsonValue;
|
|
5487
5490
|
}
|
|
5488
5491
|
/**
|
|
5489
5492
|
* Prompt-safe durable identity and live status for a direct factory agent.
|
|
@@ -5571,9 +5574,7 @@ export interface FactoryExecuteRequest {
|
|
|
5571
5574
|
/**
|
|
5572
5575
|
* Factory input value.
|
|
5573
5576
|
*/
|
|
5574
|
-
args:
|
|
5575
|
-
[k: string]: unknown | undefined;
|
|
5576
|
-
};
|
|
5577
|
+
args: JsonValue;
|
|
5577
5578
|
}
|
|
5578
5579
|
/**
|
|
5579
5580
|
* Result returned by an extension factory closure.
|
|
@@ -5586,9 +5587,7 @@ export interface FactoryExecuteResult {
|
|
|
5586
5587
|
/**
|
|
5587
5588
|
* Factory result value.
|
|
5588
5589
|
*/
|
|
5589
|
-
result?:
|
|
5590
|
-
[k: string]: unknown | undefined;
|
|
5591
|
-
};
|
|
5590
|
+
result?: JsonValue;
|
|
5592
5591
|
}
|
|
5593
5592
|
/**
|
|
5594
5593
|
* Parameters for paging factory progress.
|
|
@@ -5668,9 +5667,7 @@ export interface FactoryJournalGetResult {
|
|
|
5668
5667
|
/**
|
|
5669
5668
|
* Cached JSON result. The hit field distinguishes a cached JSON null from a miss.
|
|
5670
5669
|
*/
|
|
5671
|
-
resultJson?:
|
|
5672
|
-
[k: string]: unknown | undefined;
|
|
5673
|
-
};
|
|
5670
|
+
resultJson?: JsonValue;
|
|
5674
5671
|
}
|
|
5675
5672
|
/**
|
|
5676
5673
|
* Parameters for storing a factory journal entry.
|
|
@@ -5695,21 +5692,31 @@ export interface FactoryJournalPutRequest {
|
|
|
5695
5692
|
/**
|
|
5696
5693
|
* JSON result to memoize.
|
|
5697
5694
|
*/
|
|
5698
|
-
resultJson:
|
|
5699
|
-
[k: string]: unknown | undefined;
|
|
5700
|
-
};
|
|
5695
|
+
resultJson: JsonValue;
|
|
5701
5696
|
}
|
|
5702
5697
|
/**
|
|
5703
|
-
*
|
|
5698
|
+
* Parameters for paging factory runs.
|
|
5704
5699
|
*
|
|
5705
5700
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
5706
5701
|
* via the `definition` "FactoryListRunsRequest".
|
|
5707
5702
|
*/
|
|
5708
5703
|
/** @experimental */
|
|
5709
5704
|
export interface FactoryListRunsRequest {
|
|
5705
|
+
/**
|
|
5706
|
+
* Exclusive forward cursor.
|
|
5707
|
+
*/
|
|
5708
|
+
afterSeq?: number;
|
|
5709
|
+
/**
|
|
5710
|
+
* Exclusive backward cursor.
|
|
5711
|
+
*/
|
|
5712
|
+
beforeSeq?: number;
|
|
5713
|
+
/**
|
|
5714
|
+
* Maximum terminal runs to return. Defaults to 200 and is capped at 500.
|
|
5715
|
+
*/
|
|
5716
|
+
limit?: number;
|
|
5710
5717
|
}
|
|
5711
5718
|
/**
|
|
5712
|
-
*
|
|
5719
|
+
* A page of factory runs in durable creation order.
|
|
5713
5720
|
*
|
|
5714
5721
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
5715
5722
|
* via the `definition` "FactoryListRunsResult".
|
|
@@ -5717,6 +5724,22 @@ export interface FactoryListRunsRequest {
|
|
|
5717
5724
|
/** @experimental */
|
|
5718
5725
|
export interface FactoryListRunsResult {
|
|
5719
5726
|
runs: FactoryRunSummary[];
|
|
5727
|
+
/**
|
|
5728
|
+
* Oldest terminal-run cursor in this page, or null when the terminal window is empty.
|
|
5729
|
+
*/
|
|
5730
|
+
oldestSeq?: number | null;
|
|
5731
|
+
/**
|
|
5732
|
+
* Newest terminal-run cursor in this page, or null when the terminal window is empty.
|
|
5733
|
+
*/
|
|
5734
|
+
newestSeq?: number | null;
|
|
5735
|
+
/**
|
|
5736
|
+
* Whether terminal runs newer than this page exist.
|
|
5737
|
+
*/
|
|
5738
|
+
hasMoreNewer?: boolean;
|
|
5739
|
+
/**
|
|
5740
|
+
* Number of terminal runs older than this page.
|
|
5741
|
+
*/
|
|
5742
|
+
omittedOlder?: number;
|
|
5720
5743
|
}
|
|
5721
5744
|
/**
|
|
5722
5745
|
* Durable factory run summary with read-time live overlays.
|
|
@@ -5949,9 +5972,7 @@ export interface FactoryRunResult {
|
|
|
5949
5972
|
/**
|
|
5950
5973
|
* Completed factory result.
|
|
5951
5974
|
*/
|
|
5952
|
-
result?:
|
|
5953
|
-
[k: string]: unknown | undefined;
|
|
5954
|
-
};
|
|
5975
|
+
result?: JsonValue;
|
|
5955
5976
|
/**
|
|
5956
5977
|
* Error message for an errored run.
|
|
5957
5978
|
*/
|
|
@@ -5964,9 +5985,7 @@ export interface FactoryRunResult {
|
|
|
5964
5985
|
/**
|
|
5965
5986
|
* Partial journal and progress snapshot for a halted, cancelled, or errored run.
|
|
5966
5987
|
*/
|
|
5967
|
-
snapshot?:
|
|
5968
|
-
[k: string]: unknown | undefined;
|
|
5969
|
-
};
|
|
5988
|
+
snapshot?: JsonValue;
|
|
5970
5989
|
}
|
|
5971
5990
|
/**
|
|
5972
5991
|
* Full factory run observability detail.
|
|
@@ -6014,9 +6033,7 @@ export interface FactoryRunRequest {
|
|
|
6014
6033
|
/**
|
|
6015
6034
|
* Factory input value.
|
|
6016
6035
|
*/
|
|
6017
|
-
args:
|
|
6018
|
-
[k: string]: unknown | undefined;
|
|
6019
|
-
};
|
|
6036
|
+
args: JsonValue;
|
|
6020
6037
|
options?: RunOptions;
|
|
6021
6038
|
}
|
|
6022
6039
|
/**
|
|
@@ -7212,9 +7229,7 @@ export interface ManagedSettingsReadResult {
|
|
|
7212
7229
|
/**
|
|
7213
7230
|
* Validated, canonical managed-settings JSON. Omitted when no managed settings were discovered or when discovered settings failed validation.
|
|
7214
7231
|
*/
|
|
7215
|
-
settingsJson?:
|
|
7216
|
-
[k: string]: unknown | undefined;
|
|
7217
|
-
};
|
|
7232
|
+
settingsJson?: JsonValue;
|
|
7218
7233
|
/**
|
|
7219
7234
|
* Discovery or validation error text when managed settings could not be read safely.
|
|
7220
7235
|
*/
|
|
@@ -7385,7 +7400,7 @@ export interface McpAppsCallToolRequest {
|
|
|
7385
7400
|
* Tool arguments
|
|
7386
7401
|
*/
|
|
7387
7402
|
arguments?: {
|
|
7388
|
-
[k: string]:
|
|
7403
|
+
[k: string]: JsonValue | undefined;
|
|
7389
7404
|
};
|
|
7390
7405
|
/**
|
|
7391
7406
|
* **Required.** Server whose ui:// view issued the request. Per SEP-1865 ('callable by the app from this server only'), the call is rejected when this differs from `serverName`, and rejected outright when missing.
|
|
@@ -7530,7 +7545,7 @@ export interface McpAppsListToolsResult {
|
|
|
7530
7545
|
* App-callable tools from the server
|
|
7531
7546
|
*/
|
|
7532
7547
|
tools: {
|
|
7533
|
-
[k: string]:
|
|
7548
|
+
[k: string]: JsonValue | undefined;
|
|
7534
7549
|
}[];
|
|
7535
7550
|
}
|
|
7536
7551
|
/**
|
|
@@ -7591,7 +7606,7 @@ export interface McpAppsResourceContent {
|
|
|
7591
7606
|
* Resource-level metadata (CSP, permissions, etc.)
|
|
7592
7607
|
*/
|
|
7593
7608
|
_meta?: {
|
|
7594
|
-
[k: string]:
|
|
7609
|
+
[k: string]: JsonValue | undefined;
|
|
7595
7610
|
};
|
|
7596
7611
|
}
|
|
7597
7612
|
/**
|
|
@@ -7934,9 +7949,7 @@ export interface McpExecuteSamplingParams {
|
|
|
7934
7949
|
/**
|
|
7935
7950
|
* The original MCP JSON-RPC request ID (string or number). Used by the runtime to correlate the inference with the originating MCP request for telemetry; this is distinct from `requestId` (which is the schema-level cancellation handle).
|
|
7936
7951
|
*/
|
|
7937
|
-
mcpRequestId:
|
|
7938
|
-
[k: string]: unknown | undefined;
|
|
7939
|
-
};
|
|
7952
|
+
mcpRequestId: JsonValue;
|
|
7940
7953
|
request: McpExecuteSamplingRequest;
|
|
7941
7954
|
}
|
|
7942
7955
|
/**
|
|
@@ -8345,13 +8358,13 @@ export interface McpResource {
|
|
|
8345
8358
|
* Resource-level metadata
|
|
8346
8359
|
*/
|
|
8347
8360
|
_meta?: {
|
|
8348
|
-
[k: string]:
|
|
8361
|
+
[k: string]: JsonValue | undefined;
|
|
8349
8362
|
};
|
|
8350
8363
|
/**
|
|
8351
8364
|
* Server-provided non-standard descriptor fields preserved from the MCP response
|
|
8352
8365
|
*/
|
|
8353
8366
|
additionalProperties?: {
|
|
8354
|
-
[k: string]:
|
|
8367
|
+
[k: string]: JsonValue | undefined;
|
|
8355
8368
|
};
|
|
8356
8369
|
}
|
|
8357
8370
|
/**
|
|
@@ -8382,7 +8395,7 @@ export interface McpResourceIcon {
|
|
|
8382
8395
|
* Server-provided non-standard icon fields preserved from the MCP response
|
|
8383
8396
|
*/
|
|
8384
8397
|
additionalProperties?: {
|
|
8385
|
-
[k: string]:
|
|
8398
|
+
[k: string]: JsonValue | undefined;
|
|
8386
8399
|
};
|
|
8387
8400
|
}
|
|
8388
8401
|
/**
|
|
@@ -8409,7 +8422,7 @@ export interface McpResourceAnnotations {
|
|
|
8409
8422
|
* Server-provided non-standard annotation fields preserved from the MCP response
|
|
8410
8423
|
*/
|
|
8411
8424
|
additionalProperties?: {
|
|
8412
|
-
[k: string]:
|
|
8425
|
+
[k: string]: JsonValue | undefined;
|
|
8413
8426
|
};
|
|
8414
8427
|
}
|
|
8415
8428
|
/**
|
|
@@ -8440,7 +8453,7 @@ export interface McpResourceContent {
|
|
|
8440
8453
|
* Resource-level metadata (CSP, permissions, etc.)
|
|
8441
8454
|
*/
|
|
8442
8455
|
_meta?: {
|
|
8443
|
-
[k: string]:
|
|
8456
|
+
[k: string]: JsonValue | undefined;
|
|
8444
8457
|
};
|
|
8445
8458
|
}
|
|
8446
8459
|
/**
|
|
@@ -8548,13 +8561,13 @@ export interface McpResourceTemplate {
|
|
|
8548
8561
|
* Resource-template-level metadata
|
|
8549
8562
|
*/
|
|
8550
8563
|
_meta?: {
|
|
8551
|
-
[k: string]:
|
|
8564
|
+
[k: string]: JsonValue | undefined;
|
|
8552
8565
|
};
|
|
8553
8566
|
/**
|
|
8554
8567
|
* Server-provided non-standard descriptor fields preserved from the MCP response
|
|
8555
8568
|
*/
|
|
8556
8569
|
additionalProperties?: {
|
|
8557
|
-
[k: string]:
|
|
8570
|
+
[k: string]: JsonValue | undefined;
|
|
8558
8571
|
};
|
|
8559
8572
|
}
|
|
8560
8573
|
/**
|
|
@@ -9503,7 +9516,7 @@ export interface NameSetRequest {
|
|
|
9503
9516
|
/** @experimental */
|
|
9504
9517
|
export interface OptionsUpdateAdditionalContentExclusionPolicy {
|
|
9505
9518
|
rules: OptionsUpdateAdditionalContentExclusionPolicyRule[];
|
|
9506
|
-
last_updated_at:
|
|
9519
|
+
last_updated_at: JsonValue;
|
|
9507
9520
|
scope: OptionsUpdateAdditionalContentExclusionPolicyScope;
|
|
9508
9521
|
}
|
|
9509
9522
|
/**
|
|
@@ -10581,7 +10594,7 @@ export interface PermissionRulesSet {
|
|
|
10581
10594
|
/** @experimental */
|
|
10582
10595
|
export interface PermissionsConfigureAdditionalContentExclusionPolicy {
|
|
10583
10596
|
rules: PermissionsConfigureAdditionalContentExclusionPolicyRule[];
|
|
10584
|
-
last_updated_at:
|
|
10597
|
+
last_updated_at: JsonValue;
|
|
10585
10598
|
scope: PermissionsConfigureAdditionalContentExclusionPolicyScope;
|
|
10586
10599
|
}
|
|
10587
10600
|
/**
|
|
@@ -11394,7 +11407,7 @@ export interface ProviderAddResult {
|
|
|
11394
11407
|
/**
|
|
11395
11408
|
* Synthesized selectable model entries for the newly added BYOK models, each under its provider-qualified selection id (`provider/id`). Empty when only providers were added.
|
|
11396
11409
|
*/
|
|
11397
|
-
models:
|
|
11410
|
+
models: JsonValue[];
|
|
11398
11411
|
}
|
|
11399
11412
|
/**
|
|
11400
11413
|
* Custom model-provider configuration (BYOK).
|
|
@@ -12029,9 +12042,7 @@ export interface QueueConsumeSystemNotificationsRequest {
|
|
|
12029
12042
|
/**
|
|
12030
12043
|
* Opaque runtime-owned filter object.
|
|
12031
12044
|
*/
|
|
12032
|
-
filter:
|
|
12033
|
-
[k: string]: unknown | undefined;
|
|
12034
|
-
};
|
|
12045
|
+
filter: JsonValue;
|
|
12035
12046
|
}
|
|
12036
12047
|
/**
|
|
12037
12048
|
* Inputs for marking session.idle deferred in native state.
|
|
@@ -12781,14 +12792,7 @@ export interface SandboxConfig {
|
|
|
12781
12792
|
* Whether to auto-add the current working directory to readwritePaths. Default: true.
|
|
12782
12793
|
*/
|
|
12783
12794
|
addCurrentWorkingDirectory?: boolean;
|
|
12784
|
-
|
|
12785
|
-
* Whether to inject the Copilot GitHub token as an `http.<host>.extraheader` so authenticated HTTPS git works inside the sandbox without the shell-based credential helper the sandbox blocks. Default: false (opt-in).
|
|
12786
|
-
*/
|
|
12787
|
-
gitAuth?: boolean;
|
|
12788
|
-
/**
|
|
12789
|
-
* Whether to export `GH_TOKEN` so the `gh` CLI authenticates inside the sandbox without the OS keyring the sandbox blocks. Default: false (opt-in).
|
|
12790
|
-
*/
|
|
12791
|
-
ghAuth?: boolean;
|
|
12795
|
+
auth?: SandboxConfigAuth;
|
|
12792
12796
|
/**
|
|
12793
12797
|
* Whether to auto-grant read access to common developer-tool caches, registries, and toolchains in their default home locations (cargo, go, npm, Maven, and more), plus read-write access to (and, on Unix, up-front creation of) the scratch caches builds write on every run (go-build, ccache, sccache, Gradle caches, Cargo lock/tracker files), so builds work without extra configuration; a relocated CARGO_HOME additionally gets its Cargo lock files granted read-write. Default: true (enabled by default; set to false to opt out).
|
|
12794
12798
|
*/
|
|
@@ -12907,6 +12911,23 @@ export interface SandboxConfigUserPolicyExperimentalSeatbelt {
|
|
|
12907
12911
|
*/
|
|
12908
12912
|
keychainAccess?: boolean;
|
|
12909
12913
|
}
|
|
12914
|
+
/**
|
|
12915
|
+
* Credential-injection capability flags applied while the sandbox is enabled.
|
|
12916
|
+
*
|
|
12917
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
12918
|
+
* via the `definition` "SandboxConfigAuth".
|
|
12919
|
+
*/
|
|
12920
|
+
/** @experimental */
|
|
12921
|
+
export interface SandboxConfigAuth {
|
|
12922
|
+
/**
|
|
12923
|
+
* Whether to inject git credentials as an `http.<url>.extraheader` so authenticated HTTPS git works inside the sandbox without the shell-based credential helper the sandbox blocks. github.com is served by the Copilot token; every other forge (Azure DevOps, GitHub Enterprise Server, GitLab, ...) by a credential the host resolves from the user's own helper before the sandbox is applied. Default: false (opt-in).
|
|
12924
|
+
*/
|
|
12925
|
+
git?: boolean;
|
|
12926
|
+
/**
|
|
12927
|
+
* Whether to export `GH_TOKEN` so the `gh` CLI authenticates inside the sandbox without the OS keyring the sandbox blocks. Default: false (opt-in).
|
|
12928
|
+
*/
|
|
12929
|
+
gh?: boolean;
|
|
12930
|
+
}
|
|
12910
12931
|
/**
|
|
12911
12932
|
* Register an absolute-time scheduled prompt.
|
|
12912
12933
|
*
|
|
@@ -13331,15 +13352,11 @@ export interface SendSystemNotificationRequest {
|
|
|
13331
13352
|
/**
|
|
13332
13353
|
* Optional structured notification kind.
|
|
13333
13354
|
*/
|
|
13334
|
-
kind?:
|
|
13335
|
-
[k: string]: unknown | undefined;
|
|
13336
|
-
};
|
|
13355
|
+
kind?: JsonValue;
|
|
13337
13356
|
/**
|
|
13338
13357
|
* Internal delivery options, including passive policy.
|
|
13339
13358
|
*/
|
|
13340
|
-
options?:
|
|
13341
|
-
[k: string]: unknown | undefined;
|
|
13342
|
-
};
|
|
13359
|
+
options?: JsonValue;
|
|
13343
13360
|
}
|
|
13344
13361
|
/**
|
|
13345
13362
|
* Agents discovered across user, project, plugin, and remote sources.
|
|
@@ -13827,7 +13844,7 @@ export interface SessionFsSqliteQueryRequest {
|
|
|
13827
13844
|
* Optional named bind parameters
|
|
13828
13845
|
*/
|
|
13829
13846
|
params?: {
|
|
13830
|
-
[k: string]:
|
|
13847
|
+
[k: string]: JsonValue | undefined;
|
|
13831
13848
|
};
|
|
13832
13849
|
}
|
|
13833
13850
|
/**
|
|
@@ -13842,7 +13859,7 @@ export interface SessionFsSqliteQueryResult {
|
|
|
13842
13859
|
* For SELECT: array of row objects. For others: empty array.
|
|
13843
13860
|
*/
|
|
13844
13861
|
rows: {
|
|
13845
|
-
[k: string]:
|
|
13862
|
+
[k: string]: JsonValue | undefined;
|
|
13846
13863
|
}[];
|
|
13847
13864
|
/**
|
|
13848
13865
|
* Column names from the result set
|
|
@@ -13900,7 +13917,7 @@ export interface SessionFsSqliteTransactionStatement {
|
|
|
13900
13917
|
* Optional named bind parameters.
|
|
13901
13918
|
*/
|
|
13902
13919
|
params?: {
|
|
13903
|
-
[k: string]:
|
|
13920
|
+
[k: string]: JsonValue | undefined;
|
|
13904
13921
|
};
|
|
13905
13922
|
}
|
|
13906
13923
|
/**
|
|
@@ -14303,7 +14320,7 @@ export interface SessionModelList {
|
|
|
14303
14320
|
/**
|
|
14304
14321
|
* Available models, ordered with the most preferred default first. Includes both Copilot (CAPI) models and any registry BYOK models; a BYOK model appears under its provider-qualified selection id (`provider/id`).
|
|
14305
14322
|
*/
|
|
14306
|
-
list:
|
|
14323
|
+
list: JsonValue[];
|
|
14307
14324
|
/**
|
|
14308
14325
|
* Cost categories for the full CAPI catalog, including picker-disabled models that Auto may select. Metadata only; entries absent from `list` are not manually selectable.
|
|
14309
14326
|
*/
|
|
@@ -14312,7 +14329,7 @@ export interface SessionModelList {
|
|
|
14312
14329
|
* Per-quota snapshots returned alongside the model list, keyed by quota type.
|
|
14313
14330
|
*/
|
|
14314
14331
|
quotaSnapshots?: {
|
|
14315
|
-
[k: string]:
|
|
14332
|
+
[k: string]: JsonValue | undefined;
|
|
14316
14333
|
};
|
|
14317
14334
|
}
|
|
14318
14335
|
/**
|
|
@@ -14622,7 +14639,7 @@ export interface ShellInitScript {
|
|
|
14622
14639
|
/** @experimental */
|
|
14623
14640
|
export interface SessionOpenOptionsAdditionalContentExclusionPolicy {
|
|
14624
14641
|
rules: SessionOpenOptionsAdditionalContentExclusionPolicyRule[];
|
|
14625
|
-
last_updated_at:
|
|
14642
|
+
last_updated_at: JsonValue;
|
|
14626
14643
|
scope: SessionOpenOptionsAdditionalContentExclusionPolicyScope;
|
|
14627
14644
|
}
|
|
14628
14645
|
/**
|
|
@@ -16744,7 +16761,7 @@ export interface Tool {
|
|
|
16744
16761
|
* JSON Schema for the tool's input parameters
|
|
16745
16762
|
*/
|
|
16746
16763
|
parameters?: {
|
|
16747
|
-
[k: string]:
|
|
16764
|
+
[k: string]: JsonValue | undefined;
|
|
16748
16765
|
};
|
|
16749
16766
|
/**
|
|
16750
16767
|
* Optional instructions for how to use this tool effectively
|
|
@@ -17624,15 +17641,11 @@ export interface UserSettingMetadata {
|
|
|
17624
17641
|
/**
|
|
17625
17642
|
* The effective value: the user's value if set, otherwise the default.
|
|
17626
17643
|
*/
|
|
17627
|
-
value:
|
|
17628
|
-
[k: string]: unknown | undefined;
|
|
17629
|
-
};
|
|
17644
|
+
value: JsonValue;
|
|
17630
17645
|
/**
|
|
17631
17646
|
* The centrally-known default for this setting (null when no default is registered).
|
|
17632
17647
|
*/
|
|
17633
|
-
default:
|
|
17634
|
-
[k: string]: unknown | undefined;
|
|
17635
|
-
};
|
|
17648
|
+
default: JsonValue;
|
|
17636
17649
|
/**
|
|
17637
17650
|
* True when the user has not set an explicit value for this setting (i.e. it is left at its default). Reflects whether the user has overridden the key, not whether the effective value happens to equal the default — a key explicitly set to a value identical to the default still reports false.
|
|
17638
17651
|
*/
|
|
@@ -17664,9 +17677,7 @@ export interface UserSettingsSetRequest {
|
|
|
17664
17677
|
/**
|
|
17665
17678
|
* Partial user settings to write, as a free-form object keyed by setting name
|
|
17666
17679
|
*/
|
|
17667
|
-
settings:
|
|
17668
|
-
[k: string]: unknown | undefined;
|
|
17669
|
-
};
|
|
17680
|
+
settings: JsonValue;
|
|
17670
17681
|
}
|
|
17671
17682
|
/**
|
|
17672
17683
|
* Outcome of writing user settings.
|
|
@@ -17895,9 +17906,7 @@ export interface WorkspacesEnsureRequest {
|
|
|
17895
17906
|
/**
|
|
17896
17907
|
* Opaque workspace context supplied by the session host.
|
|
17897
17908
|
*/
|
|
17898
|
-
context?:
|
|
17899
|
-
[k: string]: unknown | undefined;
|
|
17900
|
-
};
|
|
17909
|
+
context?: JsonValue;
|
|
17901
17910
|
}
|
|
17902
17911
|
/**
|
|
17903
17912
|
* Current workspace metadata for the session, including its absolute filesystem path when available.
|
|
@@ -18088,9 +18097,7 @@ export interface WorkspacesUpdateMetadataRequest {
|
|
|
18088
18097
|
/**
|
|
18089
18098
|
* Opaque workspace context supplied by the session host.
|
|
18090
18099
|
*/
|
|
18091
|
-
context?:
|
|
18092
|
-
[k: string]: unknown | undefined;
|
|
18093
|
-
};
|
|
18100
|
+
context?: JsonValue;
|
|
18094
18101
|
/**
|
|
18095
18102
|
* Optional workspace display name override.
|
|
18096
18103
|
*/
|
|
@@ -18148,7 +18155,7 @@ export interface SessionAgentListRequest {
|
|
|
18148
18155
|
*/
|
|
18149
18156
|
/** @experimental */
|
|
18150
18157
|
export interface SessionMcpAppsCallToolResult {
|
|
18151
|
-
[k: string]:
|
|
18158
|
+
[k: string]: JsonValue | undefined;
|
|
18152
18159
|
}
|
|
18153
18160
|
/** @experimental */
|
|
18154
18161
|
export interface SessionPluginsReloadRequest {
|
|
@@ -19001,9 +19008,11 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
19001
19008
|
/**
|
|
19002
19009
|
* Lists durable factory runs for this session in creation order.
|
|
19003
19010
|
*
|
|
19004
|
-
* @
|
|
19011
|
+
* @param params Parameters for paging factory runs.
|
|
19012
|
+
*
|
|
19013
|
+
* @returns A page of factory runs in durable creation order.
|
|
19005
19014
|
*/
|
|
19006
|
-
listRuns: () => Promise<FactoryListRunsResult>;
|
|
19015
|
+
listRuns: (params: FactoryListRunsRequest) => Promise<FactoryListRunsResult>;
|
|
19007
19016
|
/**
|
|
19008
19017
|
* Gets durable and live observability detail for one factory run.
|
|
19009
19018
|
*
|
package/dist/generated/rpc.js
CHANGED
|
@@ -844,9 +844,11 @@ function createSessionRpc(connection, sessionId) {
|
|
|
844
844
|
/**
|
|
845
845
|
* Lists durable factory runs for this session in creation order.
|
|
846
846
|
*
|
|
847
|
-
* @
|
|
847
|
+
* @param params Parameters for paging factory runs.
|
|
848
|
+
*
|
|
849
|
+
* @returns A page of factory runs in durable creation order.
|
|
848
850
|
*/
|
|
849
|
-
listRuns: async () => connection.sendRequest("session.factory.listRuns", { sessionId }),
|
|
851
|
+
listRuns: async (params) => connection.sendRequest("session.factory.listRuns", { sessionId, ...params }),
|
|
850
852
|
/**
|
|
851
853
|
* Gets durable and live observability detail for one factory run.
|
|
852
854
|
*
|