@github/copilot-sdk 1.0.25 → 1.0.26-preview.0
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 +15 -23
- package/dist/cjs/cliVersion.js +1 -1
- package/dist/cjs/client.js +101 -13
- package/dist/cjs/generated/rpc.js +48 -2
- package/dist/cjs/host.js +7 -1
- package/dist/cjs/session.js +140 -14
- package/dist/cliVersion.d.ts +1 -1
- package/dist/cliVersion.js +1 -1
- package/dist/client.d.ts +2 -0
- package/dist/client.js +104 -14
- package/dist/generated/rpc.d.ts +361 -22
- package/dist/generated/rpc.js +48 -2
- package/dist/generated/session-events.d.ts +90 -1
- package/dist/host.d.ts +41 -1
- package/dist/host.js +7 -1
- package/dist/index.d.ts +2 -2
- package/dist/session.d.ts +10 -7
- package/dist/session.js +146 -15
- package/dist/types.d.ts +18 -16
- package/package.json +12 -12
package/dist/generated/rpc.d.ts
CHANGED
|
@@ -2591,6 +2591,41 @@ export type HistoryRewindOutcome =
|
|
|
2591
2591
|
| "checkpoint-cleanup-failed"
|
|
2592
2592
|
/** Files and conversation were rewound, but obsolete file snapshots could not be removed; only conversation-and-files rewinds produce this. */
|
|
2593
2593
|
| "snapshot-prune-failed";
|
|
2594
|
+
/**
|
|
2595
|
+
* Validated admission credential, or null when the application rejects it.
|
|
2596
|
+
*
|
|
2597
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
2598
|
+
* via the `definition` "HostAuthenticateResult".
|
|
2599
|
+
*/
|
|
2600
|
+
/** @experimental */
|
|
2601
|
+
export type HostAuthenticateResult = HostAuthenticationResult | null;
|
|
2602
|
+
/**
|
|
2603
|
+
* Explicit host-wide session admission policy.
|
|
2604
|
+
*
|
|
2605
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
2606
|
+
* via the `definition` "HostAuthentication".
|
|
2607
|
+
*/
|
|
2608
|
+
/** @experimental */
|
|
2609
|
+
export type HostAuthentication = {
|
|
2610
|
+
/**
|
|
2611
|
+
* Host-wide admission mode discriminator.
|
|
2612
|
+
*/
|
|
2613
|
+
mode: "github";
|
|
2614
|
+
} | {
|
|
2615
|
+
/**
|
|
2616
|
+
* Host-wide admission mode discriminator.
|
|
2617
|
+
*/
|
|
2618
|
+
mode: "none";
|
|
2619
|
+
} | {
|
|
2620
|
+
/**
|
|
2621
|
+
* Host-wide admission mode discriminator.
|
|
2622
|
+
*/
|
|
2623
|
+
mode: "custom";
|
|
2624
|
+
/**
|
|
2625
|
+
* Stable nonempty owner identity; validated identities must match exactly.
|
|
2626
|
+
*/
|
|
2627
|
+
requireIdentity: string;
|
|
2628
|
+
};
|
|
2594
2629
|
/** @experimental */
|
|
2595
2630
|
export type HostExitReason =
|
|
2596
2631
|
/** The owner requested disposal. */
|
|
@@ -2601,6 +2636,37 @@ export type HostExitReason =
|
|
|
2601
2636
|
| "ownerDisconnected"
|
|
2602
2637
|
/** The runtime is shutting down. */
|
|
2603
2638
|
| "runtimeShutdown";
|
|
2639
|
+
/**
|
|
2640
|
+
* Trusted admission context, not inference authentication or session configuration.
|
|
2641
|
+
*
|
|
2642
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
2643
|
+
* via the `definition` "HostSessionAuthentication".
|
|
2644
|
+
*/
|
|
2645
|
+
/** @experimental */
|
|
2646
|
+
export type HostSessionAuthentication = {
|
|
2647
|
+
/**
|
|
2648
|
+
* Trusted admission mode discriminator.
|
|
2649
|
+
*/
|
|
2650
|
+
mode: "github";
|
|
2651
|
+
/**
|
|
2652
|
+
* Verified host account identity.
|
|
2653
|
+
*/
|
|
2654
|
+
identity: string;
|
|
2655
|
+
} | {
|
|
2656
|
+
/**
|
|
2657
|
+
* Trusted admission mode discriminator.
|
|
2658
|
+
*/
|
|
2659
|
+
mode: "custom";
|
|
2660
|
+
/**
|
|
2661
|
+
* Verified application identity.
|
|
2662
|
+
*/
|
|
2663
|
+
identity: string;
|
|
2664
|
+
} | {
|
|
2665
|
+
/**
|
|
2666
|
+
* Trusted admission mode discriminator.
|
|
2667
|
+
*/
|
|
2668
|
+
mode: "none";
|
|
2669
|
+
};
|
|
2604
2670
|
/**
|
|
2605
2671
|
* A supported image-service operation.
|
|
2606
2672
|
*
|
|
@@ -5962,32 +6028,13 @@ export type StaffUpdateChannelMigrationStatus =
|
|
|
5962
6028
|
/** The account is on the experimental channel, which the migration deliberately leaves alone, and the migration is recorded as done. */
|
|
5963
6029
|
| "excluded-experimental";
|
|
5964
6030
|
/**
|
|
5965
|
-
*
|
|
6031
|
+
* Configured subagent settings, or null when absent
|
|
5966
6032
|
*
|
|
5967
6033
|
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
5968
6034
|
* via the `definition` "SubagentSettings".
|
|
5969
6035
|
*/
|
|
5970
6036
|
/** @experimental */
|
|
5971
|
-
export type SubagentSettings =
|
|
5972
|
-
/**
|
|
5973
|
-
* Per-agent settings keyed by subagent agent_type
|
|
5974
|
-
*/
|
|
5975
|
-
agents?: {
|
|
5976
|
-
[k: string]: SubagentSettingsEntry | undefined;
|
|
5977
|
-
};
|
|
5978
|
-
/**
|
|
5979
|
-
* Names of subagents the user has turned off; they cannot be dispatched
|
|
5980
|
-
*/
|
|
5981
|
-
disabledSubagents?: string[];
|
|
5982
|
-
/**
|
|
5983
|
-
* Maximum number of subagents that can run concurrently; applies to usage-based billing users only
|
|
5984
|
-
*/
|
|
5985
|
-
maxConcurrency?: number;
|
|
5986
|
-
/**
|
|
5987
|
-
* Maximum subagent nesting depth; applies to usage-based billing users only
|
|
5988
|
-
*/
|
|
5989
|
-
maxDepth?: number;
|
|
5990
|
-
} | null;
|
|
6037
|
+
export type SubagentSettings = SubagentSettingsConfig | null;
|
|
5991
6038
|
/**
|
|
5992
6039
|
* Context tier override for matching subagents
|
|
5993
6040
|
*
|
|
@@ -11778,6 +11825,19 @@ export interface ConnectRemoteSessionParams {
|
|
|
11778
11825
|
*/
|
|
11779
11826
|
sessionId: string;
|
|
11780
11827
|
}
|
|
11828
|
+
/**
|
|
11829
|
+
* The host application's Microsoft Entra registration, shared by its sessions. This identifies the application requesting tokens, not their target resource.
|
|
11830
|
+
*
|
|
11831
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
11832
|
+
* via the `definition` "EntraAuthConfig".
|
|
11833
|
+
*/
|
|
11834
|
+
/** @experimental */
|
|
11835
|
+
export interface EntraAuthConfig {
|
|
11836
|
+
/**
|
|
11837
|
+
* Application (client) ID of the host's Microsoft Entra registration. Must be nonblank. The runtime does not supply a default application.
|
|
11838
|
+
*/
|
|
11839
|
+
clientId: string;
|
|
11840
|
+
}
|
|
11781
11841
|
/**
|
|
11782
11842
|
* Local file system absolute paths within the session working directory to check against its content-exclusion policy.
|
|
11783
11843
|
*
|
|
@@ -14122,6 +14182,70 @@ export interface HooksDiscoverResult {
|
|
|
14122
14182
|
*/
|
|
14123
14183
|
errors: string[];
|
|
14124
14184
|
}
|
|
14185
|
+
/**
|
|
14186
|
+
* A decrypted credential presented by a supervised hosting participant.
|
|
14187
|
+
*
|
|
14188
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
14189
|
+
* via the `definition` "HostAuthenticateRequest".
|
|
14190
|
+
*/
|
|
14191
|
+
/** @experimental */
|
|
14192
|
+
export interface HostAuthenticateRequest {
|
|
14193
|
+
/**
|
|
14194
|
+
* Unique validation attempt, scoped to this host.
|
|
14195
|
+
*/
|
|
14196
|
+
requestId: string;
|
|
14197
|
+
/**
|
|
14198
|
+
* Decrypted admission token, never an inference credential.
|
|
14199
|
+
*/
|
|
14200
|
+
token: string;
|
|
14201
|
+
}
|
|
14202
|
+
/**
|
|
14203
|
+
* A validated credential with a required, future RFC3339 expiration.
|
|
14204
|
+
*
|
|
14205
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
14206
|
+
* via the `definition` "HostAuthenticationResult".
|
|
14207
|
+
*/
|
|
14208
|
+
/** @experimental */
|
|
14209
|
+
export interface HostAuthenticationResult {
|
|
14210
|
+
/**
|
|
14211
|
+
* Stable identity, required to match the configured owner exactly.
|
|
14212
|
+
*/
|
|
14213
|
+
identity: string;
|
|
14214
|
+
/**
|
|
14215
|
+
* Required future expiration in RFC3339 format.
|
|
14216
|
+
*/
|
|
14217
|
+
expiresAt: string;
|
|
14218
|
+
}
|
|
14219
|
+
/**
|
|
14220
|
+
* Notifies the owning application that validation ended.
|
|
14221
|
+
*
|
|
14222
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
14223
|
+
* via the `definition` "HostAuthenticationCancelledNotification".
|
|
14224
|
+
*/
|
|
14225
|
+
/** @experimental */
|
|
14226
|
+
export interface HostAuthenticationCancelledNotification {
|
|
14227
|
+
/**
|
|
14228
|
+
* Owning listener UUID.
|
|
14229
|
+
*/
|
|
14230
|
+
hostId: string;
|
|
14231
|
+
/**
|
|
14232
|
+
* Validation attempt whose signal must be aborted.
|
|
14233
|
+
*/
|
|
14234
|
+
requestId: string;
|
|
14235
|
+
}
|
|
14236
|
+
/**
|
|
14237
|
+
* Cancels a pending validation on the supervised participant's connection.
|
|
14238
|
+
*
|
|
14239
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
14240
|
+
* via the `definition` "HostCancelAuthenticationRequest".
|
|
14241
|
+
*/
|
|
14242
|
+
/** @experimental */
|
|
14243
|
+
export interface HostCancelAuthenticationRequest {
|
|
14244
|
+
/**
|
|
14245
|
+
* Validation attempt to cancel.
|
|
14246
|
+
*/
|
|
14247
|
+
requestId: string;
|
|
14248
|
+
}
|
|
14125
14249
|
/**
|
|
14126
14250
|
* Normalized listener settings delivered only to the supervised hosting participant.
|
|
14127
14251
|
*
|
|
@@ -14130,6 +14254,7 @@ export interface HooksDiscoverResult {
|
|
|
14130
14254
|
*/
|
|
14131
14255
|
/** @experimental */
|
|
14132
14256
|
export interface HostConfiguration {
|
|
14257
|
+
authentication?: HostAuthentication;
|
|
14133
14258
|
localServer?: HostLocalServerConfiguration;
|
|
14134
14259
|
githubEnvironment?: HostGitHubEnvironmentOptions;
|
|
14135
14260
|
/**
|
|
@@ -14140,6 +14265,10 @@ export interface HostConfiguration {
|
|
|
14140
14265
|
* Whether app-owned durable sessions are resumed by the owning application.
|
|
14141
14266
|
*/
|
|
14142
14267
|
resumeFactory: boolean;
|
|
14268
|
+
/**
|
|
14269
|
+
* Initial remote creation policy, independent of application session factories. Defaults to denied when omitted.
|
|
14270
|
+
*/
|
|
14271
|
+
allowCreatingNewSessions?: boolean;
|
|
14143
14272
|
}
|
|
14144
14273
|
/**
|
|
14145
14274
|
* Normalized local WebSocket listener settings.
|
|
@@ -14437,6 +14566,7 @@ export interface HostRegisterSessionRequest {
|
|
|
14437
14566
|
*/
|
|
14438
14567
|
/** @experimental */
|
|
14439
14568
|
export interface HostSessionCreateCallback {
|
|
14569
|
+
authentication?: HostSessionAuthentication;
|
|
14440
14570
|
/**
|
|
14441
14571
|
* Listener UUID identifying the owning application's host.
|
|
14442
14572
|
*/
|
|
@@ -14464,6 +14594,7 @@ export interface HostSessionCreateCallback {
|
|
|
14464
14594
|
*/
|
|
14465
14595
|
/** @experimental */
|
|
14466
14596
|
export interface HostSessionCreateRequest {
|
|
14597
|
+
authentication?: HostSessionAuthentication;
|
|
14467
14598
|
/**
|
|
14468
14599
|
* Unique identity for this participation, independent of the session lifetime.
|
|
14469
14600
|
*/
|
|
@@ -14527,6 +14658,23 @@ export interface HostSessionReleaseRequest {
|
|
|
14527
14658
|
*/
|
|
14528
14659
|
handoffId: string;
|
|
14529
14660
|
}
|
|
14661
|
+
/**
|
|
14662
|
+
* Changes remote session creation admission without disconnecting clients.
|
|
14663
|
+
*
|
|
14664
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
14665
|
+
* via the `definition` "HostSetSessionCreationPolicyRequest".
|
|
14666
|
+
*/
|
|
14667
|
+
/** @experimental */
|
|
14668
|
+
export interface HostSetSessionCreationPolicyRequest {
|
|
14669
|
+
/**
|
|
14670
|
+
* Listener UUID owned by the calling SDK connection.
|
|
14671
|
+
*/
|
|
14672
|
+
hostId: string;
|
|
14673
|
+
/**
|
|
14674
|
+
* After acknowledgement, subsequent remote creation admissions use this policy. Already-admitted requests may finish.
|
|
14675
|
+
*/
|
|
14676
|
+
allowCreatingNewSessions: boolean;
|
|
14677
|
+
}
|
|
14530
14678
|
/**
|
|
14531
14679
|
* Starts a supervised AHP host with at least one explicitly selected transport.
|
|
14532
14680
|
*
|
|
@@ -14539,6 +14687,7 @@ export interface HostStartRequest {
|
|
|
14539
14687
|
* Caller-generated UUID identifying this connection-owned listener.
|
|
14540
14688
|
*/
|
|
14541
14689
|
hostId: string;
|
|
14690
|
+
authentication?: HostAuthentication;
|
|
14542
14691
|
/**
|
|
14543
14692
|
* Stable application identity selecting its durable host catalog. Defaults to the persisted runtime compute GUID; must agree with githubEnvironment.computeId when both are supplied.
|
|
14544
14693
|
*/
|
|
@@ -14553,6 +14702,10 @@ export interface HostStartRequest {
|
|
|
14553
14702
|
* Ask the owning application to resume its durable AHP sessions.
|
|
14554
14703
|
*/
|
|
14555
14704
|
resumeFactory?: boolean;
|
|
14705
|
+
/**
|
|
14706
|
+
* Whether remote clients may create new sessions. Defaults to denied when omitted. Does not restrict owner work, publication, or existing sessions.
|
|
14707
|
+
*/
|
|
14708
|
+
allowCreatingNewSessions?: boolean;
|
|
14556
14709
|
}
|
|
14557
14710
|
/**
|
|
14558
14711
|
* Listener readiness, returned only after binding and the supervised participant's SDK handshake.
|
|
@@ -14626,6 +14779,27 @@ export interface HostUnregisterSessionRequest {
|
|
|
14626
14779
|
*/
|
|
14627
14780
|
sessionId: string;
|
|
14628
14781
|
}
|
|
14782
|
+
/**
|
|
14783
|
+
* Application-owned token validation callback.
|
|
14784
|
+
*
|
|
14785
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
14786
|
+
* via the `definition` "HostValidateAuthenticationRequest".
|
|
14787
|
+
*/
|
|
14788
|
+
/** @experimental */
|
|
14789
|
+
export interface HostValidateAuthenticationRequest {
|
|
14790
|
+
/**
|
|
14791
|
+
* Owning listener UUID.
|
|
14792
|
+
*/
|
|
14793
|
+
hostId: string;
|
|
14794
|
+
/**
|
|
14795
|
+
* Unique validation attempt.
|
|
14796
|
+
*/
|
|
14797
|
+
requestId: string;
|
|
14798
|
+
/**
|
|
14799
|
+
* Decrypted admission token.
|
|
14800
|
+
*/
|
|
14801
|
+
token: string;
|
|
14802
|
+
}
|
|
14629
14803
|
/**
|
|
14630
14804
|
* The runtime-selected image model and its account availability. Availability is independent of per-session image-generation enablement and does not override session policy or permissions.
|
|
14631
14805
|
*
|
|
@@ -22361,6 +22535,20 @@ export interface ProtocolImageGenerationOptions {
|
|
|
22361
22535
|
* @experimental
|
|
22362
22536
|
*/
|
|
22363
22537
|
watermark?: boolean;
|
|
22538
|
+
/**
|
|
22539
|
+
* Experimental. Save each generated or edited image under the session-state
|
|
22540
|
+
* directory's `images` folder and add a `saved_to: <path>` line per image to
|
|
22541
|
+
* the tool result the model sees. Defaults to true; set false to opt out.
|
|
22542
|
+
* Subagents follow their
|
|
22543
|
+
* parent's value unless they set their own. A failed save still returns the
|
|
22544
|
+
* image, without `saved_to`. Sessions without a local session-state
|
|
22545
|
+
* directory, such as those using a session filesystem provider, never save.
|
|
22546
|
+
* Re-supply after a cold resume. Does not enable image generation.
|
|
22547
|
+
* This option may change or be removed in a future release.
|
|
22548
|
+
*
|
|
22549
|
+
* @experimental
|
|
22550
|
+
*/
|
|
22551
|
+
saveToDisk?: boolean;
|
|
22364
22552
|
}
|
|
22365
22553
|
/**
|
|
22366
22554
|
* BYOK providers and/or models to add to the session's registry at runtime. Both fields are optional; provide providers, models, or both.
|
|
@@ -24699,6 +24887,28 @@ export interface SecretsAddFilterValuesResult {
|
|
|
24699
24887
|
*/
|
|
24700
24888
|
ok: true;
|
|
24701
24889
|
}
|
|
24890
|
+
/**
|
|
24891
|
+
* Internal request-correlated completion of one submitted message.
|
|
24892
|
+
*
|
|
24893
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
24894
|
+
* via the `definition` "SendAndWaitResult".
|
|
24895
|
+
*/
|
|
24896
|
+
/** @experimental */
|
|
24897
|
+
export interface SendAndWaitResult {
|
|
24898
|
+
/**
|
|
24899
|
+
* Identifier assigned to the submitted user message.
|
|
24900
|
+
*/
|
|
24901
|
+
messageId: string;
|
|
24902
|
+
response?: SessionEvent;
|
|
24903
|
+
/**
|
|
24904
|
+
* Whether the request was aborted or removed before completing normally.
|
|
24905
|
+
*/
|
|
24906
|
+
aborted: boolean;
|
|
24907
|
+
/**
|
|
24908
|
+
* Existing event at the completion boundary. SDK helpers drain its synchronous subscriber delivery before returning. Absent for quiet queue removal.
|
|
24909
|
+
*/
|
|
24910
|
+
completionEventId?: string;
|
|
24911
|
+
}
|
|
24702
24912
|
/**
|
|
24703
24913
|
* Parameters for session.extensions.sendAttachmentsToMessage.
|
|
24704
24914
|
*
|
|
@@ -29002,6 +29212,37 @@ export interface SlashCommandSetPlanModelResult {
|
|
|
29002
29212
|
*/
|
|
29003
29213
|
runtimeSettingsChanged?: boolean;
|
|
29004
29214
|
}
|
|
29215
|
+
/**
|
|
29216
|
+
* Configured per-agent subagent overrides
|
|
29217
|
+
*
|
|
29218
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
29219
|
+
* via the `definition` "SubagentSettingsConfig".
|
|
29220
|
+
*/
|
|
29221
|
+
/** @experimental */
|
|
29222
|
+
export interface SubagentSettingsConfig {
|
|
29223
|
+
/**
|
|
29224
|
+
* Per-agent settings keyed by subagent agent_type
|
|
29225
|
+
*/
|
|
29226
|
+
agents?: {
|
|
29227
|
+
[k: string]: SubagentSettingsEntry | undefined;
|
|
29228
|
+
};
|
|
29229
|
+
/**
|
|
29230
|
+
* Configured opt-in for subagent context management tools; applied from persisted settings when the session starts
|
|
29231
|
+
*/
|
|
29232
|
+
contextManagementTools?: boolean;
|
|
29233
|
+
/**
|
|
29234
|
+
* Names of subagents the user has turned off; they cannot be dispatched
|
|
29235
|
+
*/
|
|
29236
|
+
disabledSubagents?: string[];
|
|
29237
|
+
/**
|
|
29238
|
+
* Maximum number of subagents that can run concurrently; applies to usage-based billing users only
|
|
29239
|
+
*/
|
|
29240
|
+
maxConcurrency?: number;
|
|
29241
|
+
/**
|
|
29242
|
+
* Maximum subagent nesting depth; applies to usage-based billing users only
|
|
29243
|
+
*/
|
|
29244
|
+
maxDepth?: number;
|
|
29245
|
+
}
|
|
29005
29246
|
/**
|
|
29006
29247
|
* Subagent model, reasoning effort, context tier, and auto-invocation settings
|
|
29007
29248
|
*
|
|
@@ -29014,6 +29255,10 @@ export interface SubagentSettingsEntry {
|
|
|
29014
29255
|
* Model override for matching subagents
|
|
29015
29256
|
*/
|
|
29016
29257
|
model?: string;
|
|
29258
|
+
/**
|
|
29259
|
+
* Provider identifier for the configured model override
|
|
29260
|
+
*/
|
|
29261
|
+
providerId?: string;
|
|
29017
29262
|
modelPolicy?: AgentModelPolicy;
|
|
29018
29263
|
/**
|
|
29019
29264
|
* Reasoning effort override for matching subagents
|
|
@@ -30039,6 +30284,19 @@ export interface ToolsGetCurrentMetadataResult {
|
|
|
30039
30284
|
*/
|
|
30040
30285
|
tools: CurrentToolMetadata[] | null;
|
|
30041
30286
|
}
|
|
30287
|
+
/**
|
|
30288
|
+
* Current configured subagent settings for the session, before resolving defaults or inheritance.
|
|
30289
|
+
*
|
|
30290
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
30291
|
+
* via the `definition` "ToolsGetSubagentSettingsResult".
|
|
30292
|
+
*/
|
|
30293
|
+
/** @experimental */
|
|
30294
|
+
export interface ToolsGetSubagentSettingsResult {
|
|
30295
|
+
/**
|
|
30296
|
+
* Live subagent settings override, or current persisted settings when no override is active; null when no settings block exists
|
|
30297
|
+
*/
|
|
30298
|
+
subagents?: SubagentSettings | null;
|
|
30299
|
+
}
|
|
30042
30300
|
/**
|
|
30043
30301
|
* Resolve, build, and validate the runtime tool list for this session. Subagent sessions and consumer flows that need an initialized tool set before `send` invoke this. Default base-class implementation is a no-op for sessions that don't support tool validation.
|
|
30044
30302
|
*
|
|
@@ -32947,6 +33205,7 @@ export interface HostCreateSessionResult {
|
|
|
32947
33205
|
*/
|
|
32948
33206
|
/** @experimental */
|
|
32949
33207
|
export interface HostCreateSessionRequest {
|
|
33208
|
+
authentication?: HostSessionAuthentication;
|
|
32950
33209
|
/**
|
|
32951
33210
|
* Unique identity for this participation, independent of the session lifetime.
|
|
32952
33211
|
*/
|
|
@@ -32998,6 +33257,15 @@ export interface HostReleaseSessionRequest {
|
|
|
32998
33257
|
/** @experimental */
|
|
32999
33258
|
export interface HostDisposeResult {
|
|
33000
33259
|
}
|
|
33260
|
+
/**
|
|
33261
|
+
* Empty acknowledgement for a completed host lifecycle operation.
|
|
33262
|
+
*
|
|
33263
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
33264
|
+
* via the `definition` "HostSetSessionCreationPolicyResult".
|
|
33265
|
+
*/
|
|
33266
|
+
/** @experimental */
|
|
33267
|
+
export interface HostSetSessionCreationPolicyResult {
|
|
33268
|
+
}
|
|
33001
33269
|
/**
|
|
33002
33270
|
* Private credentials delivered only to a runtime-owned Mission Control hosting participant.
|
|
33003
33271
|
*
|
|
@@ -33031,6 +33299,7 @@ export interface HostGetEnvironmentCredentialsResult {
|
|
|
33031
33299
|
*/
|
|
33032
33300
|
/** @experimental */
|
|
33033
33301
|
export interface HostGetConfigurationResult {
|
|
33302
|
+
authentication?: HostAuthentication;
|
|
33034
33303
|
localServer?: HostLocalServerConfiguration;
|
|
33035
33304
|
githubEnvironment?: HostGitHubEnvironmentOptions;
|
|
33036
33305
|
/**
|
|
@@ -33041,6 +33310,44 @@ export interface HostGetConfigurationResult {
|
|
|
33041
33310
|
* Whether app-owned durable sessions are resumed by the owning application.
|
|
33042
33311
|
*/
|
|
33043
33312
|
resumeFactory: boolean;
|
|
33313
|
+
/**
|
|
33314
|
+
* Initial remote creation policy, independent of application session factories. Defaults to denied when omitted.
|
|
33315
|
+
*/
|
|
33316
|
+
allowCreatingNewSessions?: boolean;
|
|
33317
|
+
}
|
|
33318
|
+
/**
|
|
33319
|
+
* Private credentials delivered only to a runtime-owned Mission Control hosting participant.
|
|
33320
|
+
*
|
|
33321
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
33322
|
+
* via the `definition` "HostGetAuthenticationCredentialsResult".
|
|
33323
|
+
*/
|
|
33324
|
+
/** @experimental */
|
|
33325
|
+
export interface HostGetAuthenticationCredentialsResult {
|
|
33326
|
+
/**
|
|
33327
|
+
* Current bearer token for the authenticated GitHub identity.
|
|
33328
|
+
*/
|
|
33329
|
+
token: string;
|
|
33330
|
+
/**
|
|
33331
|
+
* Hostname of the authenticated GitHub service.
|
|
33332
|
+
*/
|
|
33333
|
+
githubHost: string;
|
|
33334
|
+
/**
|
|
33335
|
+
* GitHub API base URL for the authenticated service.
|
|
33336
|
+
*/
|
|
33337
|
+
githubApiUrl: string;
|
|
33338
|
+
/**
|
|
33339
|
+
* Mission Control API origin for environment registration and management.
|
|
33340
|
+
*/
|
|
33341
|
+
missionControlUrl: string;
|
|
33342
|
+
}
|
|
33343
|
+
/**
|
|
33344
|
+
* Empty acknowledgement for a completed host lifecycle operation.
|
|
33345
|
+
*
|
|
33346
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
33347
|
+
* via the `definition` "HostCancelAuthenticationResult".
|
|
33348
|
+
*/
|
|
33349
|
+
/** @experimental */
|
|
33350
|
+
export interface HostCancelAuthenticationResult {
|
|
33044
33351
|
}
|
|
33045
33352
|
/**
|
|
33046
33353
|
* Empty acknowledgement for a completed host lifecycle operation.
|
|
@@ -33583,6 +33890,7 @@ export interface HostMaterializeSessionResult {
|
|
|
33583
33890
|
*/
|
|
33584
33891
|
/** @experimental */
|
|
33585
33892
|
export interface HostMaterializeSessionRequest {
|
|
33893
|
+
authentication?: HostSessionAuthentication;
|
|
33586
33894
|
/**
|
|
33587
33895
|
* Listener UUID identifying the owning application's host.
|
|
33588
33896
|
*/
|
|
@@ -33619,6 +33927,23 @@ export interface HostSessionReleasedRequest {
|
|
|
33619
33927
|
*/
|
|
33620
33928
|
handoffId: string;
|
|
33621
33929
|
}
|
|
33930
|
+
/**
|
|
33931
|
+
* Notifies the owning application that validation ended.
|
|
33932
|
+
*
|
|
33933
|
+
* This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
|
|
33934
|
+
* via the `definition` "HostAuthenticationCancelledRequest".
|
|
33935
|
+
*/
|
|
33936
|
+
/** @experimental */
|
|
33937
|
+
export interface HostAuthenticationCancelledRequest {
|
|
33938
|
+
/**
|
|
33939
|
+
* Owning listener UUID.
|
|
33940
|
+
*/
|
|
33941
|
+
hostId: string;
|
|
33942
|
+
/**
|
|
33943
|
+
* Validation attempt whose signal must be aborted.
|
|
33944
|
+
*/
|
|
33945
|
+
requestId: string;
|
|
33946
|
+
}
|
|
33622
33947
|
/**
|
|
33623
33948
|
* Empty acknowledgement for a completed host lifecycle operation.
|
|
33624
33949
|
*
|
|
@@ -33906,6 +34231,14 @@ export declare function createServerRpc(connection: MessageConnection): {
|
|
|
33906
34231
|
* @returns Empty acknowledgement for a completed host lifecycle operation.
|
|
33907
34232
|
*/
|
|
33908
34233
|
dispose: (params: HostDisposeRequest) => Promise<HostDisposeResult>;
|
|
34234
|
+
/**
|
|
34235
|
+
* Changes remote creation admission on a host owned by this SDK connection without disconnecting clients. Acknowledgement means subsequent admissions use the new policy; already-admitted creation may complete.
|
|
34236
|
+
*
|
|
34237
|
+
* @param params Changes remote session creation admission without disconnecting clients.
|
|
34238
|
+
*
|
|
34239
|
+
* @returns Empty acknowledgement for a completed host lifecycle operation.
|
|
34240
|
+
*/
|
|
34241
|
+
setSessionCreationPolicy: (params: HostSetSessionCreationPolicyRequest) => Promise<HostSetSessionCreationPolicyResult>;
|
|
33909
34242
|
};
|
|
33910
34243
|
/**
|
|
33911
34244
|
* Checks server responsiveness and returns protocol information.
|
|
@@ -36355,7 +36688,13 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
|
|
|
36355
36688
|
*/
|
|
36356
36689
|
set: (params: ToolsSetRequest) => Promise<ToolsSetResult>;
|
|
36357
36690
|
/**
|
|
36358
|
-
*
|
|
36691
|
+
* Returns the session's live subagent settings override, or the current persisted user settings when no override is active. Returns null in subagents when no settings block exists; defaults, model inheritance, and billing limits are not resolved. Persisted settings are loaded strictly, including before the first turn, and loading errors are reported. Reading does not change the session or persist settings. Read-modify-write with updateSubagentSettings is not atomic; writing back creates a live override that ignores later persisted changes until cleared.
|
|
36692
|
+
*
|
|
36693
|
+
* @returns Current configured subagent settings for the session, before resolving defaults or inheritance.
|
|
36694
|
+
*/
|
|
36695
|
+
getSubagentSettings: () => Promise<ToolsGetSubagentSettingsResult>;
|
|
36696
|
+
/**
|
|
36697
|
+
* Replaces the current session's complete live subagent settings override; nested fields are not merged. The override takes precedence over persisted user settings until cleared. Persisted user settings remain the source of truth for future sessions.
|
|
36359
36698
|
*
|
|
36360
36699
|
* @param params Subagent settings to apply to the current session
|
|
36361
36700
|
*
|
package/dist/generated/rpc.js
CHANGED
|
@@ -204,7 +204,15 @@ function createServerRpc(connection) {
|
|
|
204
204
|
*
|
|
205
205
|
* @returns Empty acknowledgement for a completed host lifecycle operation.
|
|
206
206
|
*/
|
|
207
|
-
dispose: async (params) => connection.sendRequest("host.dispose", params)
|
|
207
|
+
dispose: async (params) => connection.sendRequest("host.dispose", params),
|
|
208
|
+
/**
|
|
209
|
+
* Changes remote creation admission on a host owned by this SDK connection without disconnecting clients. Acknowledgement means subsequent admissions use the new policy; already-admitted creation may complete.
|
|
210
|
+
*
|
|
211
|
+
* @param params Changes remote session creation admission without disconnecting clients.
|
|
212
|
+
*
|
|
213
|
+
* @returns Empty acknowledgement for a completed host lifecycle operation.
|
|
214
|
+
*/
|
|
215
|
+
setSessionCreationPolicy: async (params) => connection.sendRequest("host.setSessionCreationPolicy", params)
|
|
208
216
|
},
|
|
209
217
|
/**
|
|
210
218
|
* Checks server responsiveness and returns protocol information.
|
|
@@ -1674,6 +1682,28 @@ function createInternalServerRpc(connection) {
|
|
|
1674
1682
|
* @returns Normalized listener settings delivered only to the supervised hosting participant.
|
|
1675
1683
|
*/
|
|
1676
1684
|
getConfiguration: async () => connection.sendRequest("host.getConfiguration", {}),
|
|
1685
|
+
/**
|
|
1686
|
+
* Resolves the host account credential without applying Mission Control transport policy, only for its supervised GitHub hosting participant.
|
|
1687
|
+
*
|
|
1688
|
+
* @returns Private credentials delivered only to a runtime-owned Mission Control hosting participant.
|
|
1689
|
+
*/
|
|
1690
|
+
getAuthenticationCredentials: async () => connection.sendRequest("host.getAuthenticationCredentials", {}),
|
|
1691
|
+
/**
|
|
1692
|
+
* Validates a decrypted admission credential through the owning application, only for its supervised custom-authentication participant.
|
|
1693
|
+
*
|
|
1694
|
+
* @param params A decrypted credential presented by a supervised hosting participant.
|
|
1695
|
+
*
|
|
1696
|
+
* @returns Validated admission credential, or null when the application rejects it.
|
|
1697
|
+
*/
|
|
1698
|
+
authenticate: async (params) => connection.sendRequest("host.authenticate", params),
|
|
1699
|
+
/**
|
|
1700
|
+
* Cancels a supervised participant's pending admission validation.
|
|
1701
|
+
*
|
|
1702
|
+
* @param params Cancels a pending validation on the supervised participant's connection.
|
|
1703
|
+
*
|
|
1704
|
+
* @returns Empty acknowledgement for a completed host lifecycle operation.
|
|
1705
|
+
*/
|
|
1706
|
+
cancelAuthentication: async (params) => connection.sendRequest("host.cancelAuthentication", params),
|
|
1677
1707
|
/**
|
|
1678
1708
|
* Reports a supervised hosting participant's bound AHP endpoint after its SDK handshake.
|
|
1679
1709
|
*
|
|
@@ -3532,7 +3562,13 @@ function createSessionRpc(connection, sessionId) {
|
|
|
3532
3562
|
*/
|
|
3533
3563
|
set: async (params) => connection.sendRequest("session.tools.set", { ...params, sessionId }),
|
|
3534
3564
|
/**
|
|
3535
|
-
*
|
|
3565
|
+
* Returns the session's live subagent settings override, or the current persisted user settings when no override is active. Returns null in subagents when no settings block exists; defaults, model inheritance, and billing limits are not resolved. Persisted settings are loaded strictly, including before the first turn, and loading errors are reported. Reading does not change the session or persist settings. Read-modify-write with updateSubagentSettings is not atomic; writing back creates a live override that ignores later persisted changes until cleared.
|
|
3566
|
+
*
|
|
3567
|
+
* @returns Current configured subagent settings for the session, before resolving defaults or inheritance.
|
|
3568
|
+
*/
|
|
3569
|
+
getSubagentSettings: async () => connection.sendRequest("session.tools.getSubagentSettings", { sessionId }),
|
|
3570
|
+
/**
|
|
3571
|
+
* Replaces the current session's complete live subagent settings override; nested fields are not merged. The override takes precedence over persisted user settings until cleared. Persisted user settings remain the source of truth for future sessions.
|
|
3536
3572
|
*
|
|
3537
3573
|
* @param params Subagent settings to apply to the current session
|
|
3538
3574
|
*
|
|
@@ -4292,6 +4328,16 @@ function createSessionRpc(connection, sessionId) {
|
|
|
4292
4328
|
}
|
|
4293
4329
|
function createInternalSessionRpc(connection, sessionId) {
|
|
4294
4330
|
return {
|
|
4331
|
+
/**
|
|
4332
|
+
* Submits one message through normal admission and waits for its request-owned completion. Returns the exact root assistant event, or an explicit aborted/no-response outcome. Cancelling or timing out the wait does not abort agent work. Unsupported execution hosts reject the method before admitting the message.
|
|
4333
|
+
*
|
|
4334
|
+
* @param params Parameters for sending a user message to the session
|
|
4335
|
+
*
|
|
4336
|
+
* @returns Internal request-correlated completion of one submitted message.
|
|
4337
|
+
*
|
|
4338
|
+
* @experimental
|
|
4339
|
+
*/
|
|
4340
|
+
sendAndWait: async (params) => connection.sendRequest("session.sendAndWait", { ...params, sessionId }),
|
|
4295
4341
|
/**
|
|
4296
4342
|
* Queues or sends an internal system notification to the session according to its passive policy.
|
|
4297
4343
|
*
|