@github/copilot-sdk 1.0.25-unstable.39668197943.gc332e3b → 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.
@@ -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
  *
@@ -3884,6 +3950,18 @@ export type OptionsUpdateToolFilterPrecedence =
3884
3950
  "available"
3885
3951
  /** A tool is enabled if and only if it matches the allowlist (or the allowlist is unset) AND it does not match the denylist. Makes 'all except X' expressible by combining the two lists. */
3886
3952
  | "excluded";
3953
+ /**
3954
+ * Memory injection mode. Defaults to system-prompt.
3955
+ *
3956
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
3957
+ * via the `definition` "MemoryMode".
3958
+ */
3959
+ /** @experimental */
3960
+ export type MemoryMode =
3961
+ /** Include memories in the system prompt (default). */
3962
+ "system-prompt"
3963
+ /** Include memories in user messages. */
3964
+ | "user-prompt";
3887
3965
  /**
3888
3966
  * Per-source context-window attribution, or null if the session has not yet been initialized (no system prompt or tool metadata cached).
3889
3967
  *
@@ -5950,32 +6028,13 @@ export type StaffUpdateChannelMigrationStatus =
5950
6028
  /** The account is on the experimental channel, which the migration deliberately leaves alone, and the migration is recorded as done. */
5951
6029
  | "excluded-experimental";
5952
6030
  /**
5953
- * Subagent settings to apply, or null to clear the live session override
6031
+ * Configured subagent settings, or null when absent
5954
6032
  *
5955
6033
  * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
5956
6034
  * via the `definition` "SubagentSettings".
5957
6035
  */
5958
6036
  /** @experimental */
5959
- export type SubagentSettings = {
5960
- /**
5961
- * Per-agent settings keyed by subagent agent_type
5962
- */
5963
- agents?: {
5964
- [k: string]: SubagentSettingsEntry | undefined;
5965
- };
5966
- /**
5967
- * Names of subagents the user has turned off; they cannot be dispatched
5968
- */
5969
- disabledSubagents?: string[];
5970
- /**
5971
- * Maximum number of subagents that can run concurrently; applies to usage-based billing users only
5972
- */
5973
- maxConcurrency?: number;
5974
- /**
5975
- * Maximum subagent nesting depth; applies to usage-based billing users only
5976
- */
5977
- maxDepth?: number;
5978
- } | null;
6037
+ export type SubagentSettings = SubagentSettingsConfig | null;
5979
6038
  /**
5980
6039
  * Context tier override for matching subagents
5981
6040
  *
@@ -11766,6 +11825,19 @@ export interface ConnectRemoteSessionParams {
11766
11825
  */
11767
11826
  sessionId: string;
11768
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
+ }
11769
11841
  /**
11770
11842
  * Local file system absolute paths within the session working directory to check against its content-exclusion policy.
11771
11843
  *
@@ -14110,6 +14182,70 @@ export interface HooksDiscoverResult {
14110
14182
  */
14111
14183
  errors: string[];
14112
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
+ }
14113
14249
  /**
14114
14250
  * Normalized listener settings delivered only to the supervised hosting participant.
14115
14251
  *
@@ -14118,6 +14254,7 @@ export interface HooksDiscoverResult {
14118
14254
  */
14119
14255
  /** @experimental */
14120
14256
  export interface HostConfiguration {
14257
+ authentication?: HostAuthentication;
14121
14258
  localServer?: HostLocalServerConfiguration;
14122
14259
  githubEnvironment?: HostGitHubEnvironmentOptions;
14123
14260
  /**
@@ -14128,6 +14265,10 @@ export interface HostConfiguration {
14128
14265
  * Whether app-owned durable sessions are resumed by the owning application.
14129
14266
  */
14130
14267
  resumeFactory: boolean;
14268
+ /**
14269
+ * Initial remote creation policy, independent of application session factories. Defaults to denied when omitted.
14270
+ */
14271
+ allowCreatingNewSessions?: boolean;
14131
14272
  }
14132
14273
  /**
14133
14274
  * Normalized local WebSocket listener settings.
@@ -14425,6 +14566,7 @@ export interface HostRegisterSessionRequest {
14425
14566
  */
14426
14567
  /** @experimental */
14427
14568
  export interface HostSessionCreateCallback {
14569
+ authentication?: HostSessionAuthentication;
14428
14570
  /**
14429
14571
  * Listener UUID identifying the owning application's host.
14430
14572
  */
@@ -14452,6 +14594,7 @@ export interface HostSessionCreateCallback {
14452
14594
  */
14453
14595
  /** @experimental */
14454
14596
  export interface HostSessionCreateRequest {
14597
+ authentication?: HostSessionAuthentication;
14455
14598
  /**
14456
14599
  * Unique identity for this participation, independent of the session lifetime.
14457
14600
  */
@@ -14515,6 +14658,23 @@ export interface HostSessionReleaseRequest {
14515
14658
  */
14516
14659
  handoffId: string;
14517
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
+ }
14518
14678
  /**
14519
14679
  * Starts a supervised AHP host with at least one explicitly selected transport.
14520
14680
  *
@@ -14527,6 +14687,7 @@ export interface HostStartRequest {
14527
14687
  * Caller-generated UUID identifying this connection-owned listener.
14528
14688
  */
14529
14689
  hostId: string;
14690
+ authentication?: HostAuthentication;
14530
14691
  /**
14531
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.
14532
14693
  */
@@ -14541,6 +14702,10 @@ export interface HostStartRequest {
14541
14702
  * Ask the owning application to resume its durable AHP sessions.
14542
14703
  */
14543
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;
14544
14709
  }
14545
14710
  /**
14546
14711
  * Listener readiness, returned only after binding and the supervised participant's SDK handshake.
@@ -14614,6 +14779,27 @@ export interface HostUnregisterSessionRequest {
14614
14779
  */
14615
14780
  sessionId: string;
14616
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
+ }
14617
14803
  /**
14618
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.
14619
14805
  *
@@ -18447,6 +18633,12 @@ export interface MemoryConfiguration {
18447
18633
  * Whether memory is enabled for the session.
18448
18634
  */
18449
18635
  enabled: boolean;
18636
+ /**
18637
+ * Memory injection mode: system-prompt (default) includes memories in the system prompt; user-prompt includes them in user messages.
18638
+ *
18639
+ * @experimental
18640
+ */
18641
+ mode?: MemoryMode;
18450
18642
  }
18451
18643
  /**
18452
18644
  * Per-source attribution breakdown for the session's current context window, or null if uninitialized.
@@ -22343,6 +22535,20 @@ export interface ProtocolImageGenerationOptions {
22343
22535
  * @experimental
22344
22536
  */
22345
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;
22346
22552
  }
22347
22553
  /**
22348
22554
  * BYOK providers and/or models to add to the session's registry at runtime. Both fields are optional; provide providers, models, or both.
@@ -24681,6 +24887,28 @@ export interface SecretsAddFilterValuesResult {
24681
24887
  */
24682
24888
  ok: true;
24683
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
+ }
24684
24912
  /**
24685
24913
  * Parameters for session.extensions.sendAttachmentsToMessage.
24686
24914
  *
@@ -28984,6 +29212,37 @@ export interface SlashCommandSetPlanModelResult {
28984
29212
  */
28985
29213
  runtimeSettingsChanged?: boolean;
28986
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
+ }
28987
29246
  /**
28988
29247
  * Subagent model, reasoning effort, context tier, and auto-invocation settings
28989
29248
  *
@@ -28996,6 +29255,10 @@ export interface SubagentSettingsEntry {
28996
29255
  * Model override for matching subagents
28997
29256
  */
28998
29257
  model?: string;
29258
+ /**
29259
+ * Provider identifier for the configured model override
29260
+ */
29261
+ providerId?: string;
28999
29262
  modelPolicy?: AgentModelPolicy;
29000
29263
  /**
29001
29264
  * Reasoning effort override for matching subagents
@@ -30021,6 +30284,19 @@ export interface ToolsGetCurrentMetadataResult {
30021
30284
  */
30022
30285
  tools: CurrentToolMetadata[] | null;
30023
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
+ }
30024
30300
  /**
30025
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.
30026
30302
  *
@@ -32929,6 +33205,7 @@ export interface HostCreateSessionResult {
32929
33205
  */
32930
33206
  /** @experimental */
32931
33207
  export interface HostCreateSessionRequest {
33208
+ authentication?: HostSessionAuthentication;
32932
33209
  /**
32933
33210
  * Unique identity for this participation, independent of the session lifetime.
32934
33211
  */
@@ -32980,6 +33257,15 @@ export interface HostReleaseSessionRequest {
32980
33257
  /** @experimental */
32981
33258
  export interface HostDisposeResult {
32982
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
+ }
32983
33269
  /**
32984
33270
  * Private credentials delivered only to a runtime-owned Mission Control hosting participant.
32985
33271
  *
@@ -33013,6 +33299,7 @@ export interface HostGetEnvironmentCredentialsResult {
33013
33299
  */
33014
33300
  /** @experimental */
33015
33301
  export interface HostGetConfigurationResult {
33302
+ authentication?: HostAuthentication;
33016
33303
  localServer?: HostLocalServerConfiguration;
33017
33304
  githubEnvironment?: HostGitHubEnvironmentOptions;
33018
33305
  /**
@@ -33023,6 +33310,44 @@ export interface HostGetConfigurationResult {
33023
33310
  * Whether app-owned durable sessions are resumed by the owning application.
33024
33311
  */
33025
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 {
33026
33351
  }
33027
33352
  /**
33028
33353
  * Empty acknowledgement for a completed host lifecycle operation.
@@ -33565,6 +33890,7 @@ export interface HostMaterializeSessionResult {
33565
33890
  */
33566
33891
  /** @experimental */
33567
33892
  export interface HostMaterializeSessionRequest {
33893
+ authentication?: HostSessionAuthentication;
33568
33894
  /**
33569
33895
  * Listener UUID identifying the owning application's host.
33570
33896
  */
@@ -33601,6 +33927,23 @@ export interface HostSessionReleasedRequest {
33601
33927
  */
33602
33928
  handoffId: string;
33603
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
+ }
33604
33947
  /**
33605
33948
  * Empty acknowledgement for a completed host lifecycle operation.
33606
33949
  *
@@ -33888,6 +34231,14 @@ export declare function createServerRpc(connection: MessageConnection): {
33888
34231
  * @returns Empty acknowledgement for a completed host lifecycle operation.
33889
34232
  */
33890
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>;
33891
34242
  };
33892
34243
  /**
33893
34244
  * Checks server responsiveness and returns protocol information.
@@ -36337,7 +36688,13 @@ export declare function createSessionRpc(connection: MessageConnection, sessionI
36337
36688
  */
36338
36689
  set: (params: ToolsSetRequest) => Promise<ToolsSetResult>;
36339
36690
  /**
36340
- * 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.
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.
36341
36698
  *
36342
36699
  * @param params Subagent settings to apply to the current session
36343
36700
  *
@@ -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
- * 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.
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
  *