@get-bb/plugin-sdk 0.4.9 → 0.4.10

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.
@@ -6,7 +6,7 @@
6
6
  // and read the real source: https://github.com/get-bb/bb
7
7
 
8
8
  import * as react from 'react';
9
- import { ComponentType, ReactNode } from 'react';
9
+ import { ComponentType, ComponentPropsWithoutRef, ReactNode } from 'react';
10
10
  import * as z from 'zod';
11
11
  import { z as z$1 } from 'zod';
12
12
  import Database from 'better-sqlite3';
@@ -25,6 +25,7 @@ declare const appSettingsSchema: z$1.ZodObject<{
25
25
  showKeyboardHints: z$1.ZodBoolean;
26
26
  showUnhandledProviderEvents: z$1.ZodBoolean;
27
27
  steerActiveThreadOnEnter: z$1.ZodBoolean;
28
+ streamerMode: z$1.ZodBoolean;
28
29
  }, z$1.core.$strict>;
29
30
  type AppSettings = z$1.infer<typeof appSettingsSchema>;
30
31
 
@@ -256,6 +257,7 @@ declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
256
257
  editMessages: "editMessages";
257
258
  mobileApp: "mobileApp";
258
259
  providerSessionReaping: "providerSessionReaping";
260
+ timelineWindowing: "timelineWindowing";
259
261
  }>, z$1.ZodBoolean>;
260
262
  type Experiments = z$1.infer<typeof experimentsSchema>;
261
263
 
@@ -2075,6 +2077,9 @@ declare const providerInfoSchema: z$1.ZodObject<{
2075
2077
  kind: z$1.ZodLiteral<"goal">;
2076
2078
  }, z$1.core.$strip>], "kind">>;
2077
2079
  displayName: z$1.ZodString;
2080
+ experimental_providerHealth: z$1.ZodBoolean;
2081
+ experimental_providerInstallation: z$1.ZodBoolean;
2082
+ experimental_providerUsage: z$1.ZodBoolean;
2078
2083
  id: z$1.ZodString;
2079
2084
  logoUrl: z$1.ZodNullable<z$1.ZodString>;
2080
2085
  }, z$1.core.$strip>;
@@ -3565,83 +3570,32 @@ declare const environmentDiffPatchRequestSchema: z$1.ZodObject<{
3565
3570
  type EnvironmentDiffPatchRequest = z$1.infer<typeof environmentDiffPatchRequestSchema>;
3566
3571
  type EnvironmentStatusResponse = z$1.infer<typeof environmentStatusResponseSchema>;
3567
3572
 
3568
- declare const providerUsageResponseSchema: z$1.ZodObject<{
3569
- claudeCode: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3570
- accountEmail: z$1.ZodNullable<z$1.ZodString>;
3571
- planLabel: z$1.ZodNullable<z$1.ZodString>;
3572
- status: z$1.ZodLiteral<"ok">;
3573
- windows: z$1.ZodArray<z$1.ZodObject<{
3574
- cost: z$1.ZodOptional<z$1.ZodObject<{
3575
- limitUsdCents: z$1.ZodNumber;
3576
- usedUsdCents: z$1.ZodNumber;
3577
- }, z$1.core.$strip>>;
3578
- label: z$1.ZodString;
3579
- resetsAt: z$1.ZodNullable<z$1.ZodString>;
3580
- usedPercent: z$1.ZodNumber;
3581
- }, z$1.core.$strip>>;
3582
- }, z$1.core.$strip>, z$1.ZodObject<{
3583
- status: z$1.ZodLiteral<"not_installed">;
3584
- }, z$1.core.$strip>, z$1.ZodObject<{
3585
- status: z$1.ZodLiteral<"unauthenticated">;
3586
- }, z$1.core.$strip>, z$1.ZodObject<{
3587
- status: z$1.ZodLiteral<"expired">;
3588
- }, z$1.core.$strip>, z$1.ZodObject<{
3589
- accountEmail: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
3590
- message: z$1.ZodString;
3591
- planLabel: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
3592
- status: z$1.ZodLiteral<"error">;
3593
- }, z$1.core.$strip>], "status">;
3594
- codex: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3595
- accountEmail: z$1.ZodNullable<z$1.ZodString>;
3596
- planLabel: z$1.ZodNullable<z$1.ZodString>;
3597
- status: z$1.ZodLiteral<"ok">;
3598
- windows: z$1.ZodArray<z$1.ZodObject<{
3599
- cost: z$1.ZodOptional<z$1.ZodObject<{
3600
- limitUsdCents: z$1.ZodNumber;
3601
- usedUsdCents: z$1.ZodNumber;
3602
- }, z$1.core.$strip>>;
3603
- label: z$1.ZodString;
3604
- resetsAt: z$1.ZodNullable<z$1.ZodString>;
3605
- usedPercent: z$1.ZodNumber;
3573
+ /** Provider-id keyed usage returned by the public server aggregation route. */
3574
+ declare const providerUsageResponseSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3575
+ accountEmail: z$1.ZodNullable<z$1.ZodString>;
3576
+ planLabel: z$1.ZodNullable<z$1.ZodString>;
3577
+ status: z$1.ZodLiteral<"ok">;
3578
+ windows: z$1.ZodArray<z$1.ZodObject<{
3579
+ cost: z$1.ZodOptional<z$1.ZodObject<{
3580
+ limitUsdCents: z$1.ZodNumber;
3581
+ usedUsdCents: z$1.ZodNumber;
3606
3582
  }, z$1.core.$strip>>;
3607
- }, z$1.core.$strip>, z$1.ZodObject<{
3608
- status: z$1.ZodLiteral<"not_installed">;
3609
- }, z$1.core.$strip>, z$1.ZodObject<{
3610
- status: z$1.ZodLiteral<"unauthenticated">;
3611
- }, z$1.core.$strip>, z$1.ZodObject<{
3612
- status: z$1.ZodLiteral<"expired">;
3613
- }, z$1.core.$strip>, z$1.ZodObject<{
3614
- accountEmail: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
3615
- message: z$1.ZodString;
3616
- planLabel: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
3617
- status: z$1.ZodLiteral<"error">;
3618
- }, z$1.core.$strip>], "status">;
3619
- cursor: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3620
- accountEmail: z$1.ZodNullable<z$1.ZodString>;
3621
- planLabel: z$1.ZodNullable<z$1.ZodString>;
3622
- status: z$1.ZodLiteral<"ok">;
3623
- windows: z$1.ZodArray<z$1.ZodObject<{
3624
- cost: z$1.ZodOptional<z$1.ZodObject<{
3625
- limitUsdCents: z$1.ZodNumber;
3626
- usedUsdCents: z$1.ZodNumber;
3627
- }, z$1.core.$strip>>;
3628
- label: z$1.ZodString;
3629
- resetsAt: z$1.ZodNullable<z$1.ZodString>;
3630
- usedPercent: z$1.ZodNumber;
3631
- }, z$1.core.$strip>>;
3632
- }, z$1.core.$strip>, z$1.ZodObject<{
3633
- status: z$1.ZodLiteral<"not_installed">;
3634
- }, z$1.core.$strip>, z$1.ZodObject<{
3635
- status: z$1.ZodLiteral<"unauthenticated">;
3636
- }, z$1.core.$strip>, z$1.ZodObject<{
3637
- status: z$1.ZodLiteral<"expired">;
3638
- }, z$1.core.$strip>, z$1.ZodObject<{
3639
- accountEmail: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
3640
- message: z$1.ZodString;
3641
- planLabel: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
3642
- status: z$1.ZodLiteral<"error">;
3643
- }, z$1.core.$strip>], "status">;
3644
- }, z$1.core.$strip>;
3583
+ label: z$1.ZodString;
3584
+ resetsAt: z$1.ZodNullable<z$1.ZodString>;
3585
+ usedPercent: z$1.ZodNumber;
3586
+ }, z$1.core.$loose>>;
3587
+ }, z$1.core.$loose>, z$1.ZodObject<{
3588
+ status: z$1.ZodLiteral<"not_installed">;
3589
+ }, z$1.core.$loose>, z$1.ZodObject<{
3590
+ status: z$1.ZodLiteral<"unauthenticated">;
3591
+ }, z$1.core.$loose>, z$1.ZodObject<{
3592
+ status: z$1.ZodLiteral<"expired">;
3593
+ }, z$1.core.$loose>, z$1.ZodObject<{
3594
+ accountEmail: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
3595
+ message: z$1.ZodString;
3596
+ planLabel: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
3597
+ status: z$1.ZodLiteral<"error">;
3598
+ }, z$1.core.$loose>], "status">>;
3645
3599
  type ProviderUsageResponse = z$1.infer<typeof providerUsageResponseSchema>;
3646
3600
  type HostDaemonCommandTransport = "onlineRpc" | "settled";
3647
3601
  type HostDaemonCommandEnvironmentLane = "read" | "write";
@@ -3761,6 +3715,7 @@ declare const hostDaemonCommandRegistry: {
3761
3715
  }, z$1.core.$strict>>;
3762
3716
  bridgeLaunch: z$1.ZodObject<{
3763
3717
  capabilities: z$1.ZodObject<{
3718
+ experimental_providerInstallation: z$1.ZodBoolean;
3764
3719
  fork: z$1.ZodEnum<{
3765
3720
  checkpoint: "checkpoint";
3766
3721
  none: "none";
@@ -3776,6 +3731,7 @@ declare const hostDaemonCommandRegistry: {
3776
3731
  supportsThreadRename: z$1.ZodBoolean;
3777
3732
  }, z$1.core.$strict>;
3778
3733
  pluginId: z$1.ZodString;
3734
+ providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
3779
3735
  source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3780
3736
  byteLength: z$1.ZodNumber;
3781
3737
  digest: z$1.ZodString;
@@ -3984,6 +3940,7 @@ declare const hostDaemonCommandRegistry: {
3984
3940
  }, z$1.core.$strict>>;
3985
3941
  bridgeLaunch: z$1.ZodObject<{
3986
3942
  capabilities: z$1.ZodObject<{
3943
+ experimental_providerInstallation: z$1.ZodBoolean;
3987
3944
  fork: z$1.ZodEnum<{
3988
3945
  checkpoint: "checkpoint";
3989
3946
  none: "none";
@@ -3999,6 +3956,7 @@ declare const hostDaemonCommandRegistry: {
3999
3956
  supportsThreadRename: z$1.ZodBoolean;
4000
3957
  }, z$1.core.$strict>;
4001
3958
  pluginId: z$1.ZodString;
3959
+ providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
4002
3960
  source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4003
3961
  byteLength: z$1.ZodNumber;
4004
3962
  digest: z$1.ZodString;
@@ -4371,6 +4329,7 @@ declare const hostDaemonCommandRegistry: {
4371
4329
  }, z$1.core.$strict>>;
4372
4330
  bridgeLaunch: z$1.ZodObject<{
4373
4331
  capabilities: z$1.ZodObject<{
4332
+ experimental_providerInstallation: z$1.ZodBoolean;
4374
4333
  fork: z$1.ZodEnum<{
4375
4334
  checkpoint: "checkpoint";
4376
4335
  none: "none";
@@ -4386,6 +4345,7 @@ declare const hostDaemonCommandRegistry: {
4386
4345
  supportsThreadRename: z$1.ZodBoolean;
4387
4346
  }, z$1.core.$strict>;
4388
4347
  pluginId: z$1.ZodString;
4348
+ providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
4389
4349
  source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4390
4350
  byteLength: z$1.ZodNumber;
4391
4351
  digest: z$1.ZodString;
@@ -4700,6 +4660,7 @@ declare const hostDaemonCommandRegistry: {
4700
4660
  }, z$1.core.$strict>>;
4701
4661
  bridgeLaunch: z$1.ZodObject<{
4702
4662
  capabilities: z$1.ZodObject<{
4663
+ experimental_providerInstallation: z$1.ZodBoolean;
4703
4664
  fork: z$1.ZodEnum<{
4704
4665
  checkpoint: "checkpoint";
4705
4666
  none: "none";
@@ -4715,6 +4676,7 @@ declare const hostDaemonCommandRegistry: {
4715
4676
  supportsThreadRename: z$1.ZodBoolean;
4716
4677
  }, z$1.core.$strict>;
4717
4678
  pluginId: z$1.ZodString;
4679
+ providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
4718
4680
  source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4719
4681
  byteLength: z$1.ZodNumber;
4720
4682
  digest: z$1.ZodString;
@@ -4902,6 +4864,7 @@ declare const hostDaemonCommandRegistry: {
4902
4864
  }, z$1.core.$strict>>;
4903
4865
  bridgeLaunch: z$1.ZodObject<{
4904
4866
  capabilities: z$1.ZodObject<{
4867
+ experimental_providerInstallation: z$1.ZodBoolean;
4905
4868
  fork: z$1.ZodEnum<{
4906
4869
  checkpoint: "checkpoint";
4907
4870
  none: "none";
@@ -4917,6 +4880,7 @@ declare const hostDaemonCommandRegistry: {
4917
4880
  supportsThreadRename: z$1.ZodBoolean;
4918
4881
  }, z$1.core.$strict>;
4919
4882
  pluginId: z$1.ZodString;
4883
+ providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
4920
4884
  source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4921
4885
  byteLength: z$1.ZodNumber;
4922
4886
  digest: z$1.ZodString;
@@ -5068,6 +5032,7 @@ declare const hostDaemonCommandRegistry: {
5068
5032
  }, z$1.core.$strict>>;
5069
5033
  bridgeLaunch: z$1.ZodObject<{
5070
5034
  capabilities: z$1.ZodObject<{
5035
+ experimental_providerInstallation: z$1.ZodBoolean;
5071
5036
  fork: z$1.ZodEnum<{
5072
5037
  checkpoint: "checkpoint";
5073
5038
  none: "none";
@@ -5083,6 +5048,7 @@ declare const hostDaemonCommandRegistry: {
5083
5048
  supportsThreadRename: z$1.ZodBoolean;
5084
5049
  }, z$1.core.$strict>;
5085
5050
  pluginId: z$1.ZodString;
5051
+ providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
5086
5052
  source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5087
5053
  byteLength: z$1.ZodNumber;
5088
5054
  digest: z$1.ZodString;
@@ -5165,6 +5131,7 @@ declare const hostDaemonCommandRegistry: {
5165
5131
  "thread.archive": HostDaemonCommandDescriptor<"thread.archive", z$1.ZodObject<{
5166
5132
  bridgeLaunch: z$1.ZodObject<{
5167
5133
  capabilities: z$1.ZodObject<{
5134
+ experimental_providerInstallation: z$1.ZodBoolean;
5168
5135
  fork: z$1.ZodEnum<{
5169
5136
  checkpoint: "checkpoint";
5170
5137
  none: "none";
@@ -5180,6 +5147,7 @@ declare const hostDaemonCommandRegistry: {
5180
5147
  supportsThreadRename: z$1.ZodBoolean;
5181
5148
  }, z$1.core.$strict>;
5182
5149
  pluginId: z$1.ZodString;
5150
+ providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
5183
5151
  source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5184
5152
  byteLength: z$1.ZodNumber;
5185
5153
  digest: z$1.ZodString;
@@ -5206,6 +5174,7 @@ declare const hostDaemonCommandRegistry: {
5206
5174
  "thread.unarchive": HostDaemonCommandDescriptor<"thread.unarchive", z$1.ZodObject<{
5207
5175
  bridgeLaunch: z$1.ZodObject<{
5208
5176
  capabilities: z$1.ZodObject<{
5177
+ experimental_providerInstallation: z$1.ZodBoolean;
5209
5178
  fork: z$1.ZodEnum<{
5210
5179
  checkpoint: "checkpoint";
5211
5180
  none: "none";
@@ -5221,6 +5190,7 @@ declare const hostDaemonCommandRegistry: {
5221
5190
  supportsThreadRename: z$1.ZodBoolean;
5222
5191
  }, z$1.core.$strict>;
5223
5192
  pluginId: z$1.ZodString;
5193
+ providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
5224
5194
  source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5225
5195
  byteLength: z$1.ZodNumber;
5226
5196
  digest: z$1.ZodString;
@@ -5764,6 +5734,30 @@ declare const hostDaemonCommandRegistry: {
5764
5734
  name: z$1.ZodString;
5765
5735
  }, z$1.core.$strip>>;
5766
5736
  }, z$1.core.$strip>, "onlineRpc", true>;
5737
+ "host.list_branch_options": HostDaemonCommandDescriptor<"host.list_branch_options", z$1.ZodObject<{
5738
+ limit: z$1.ZodNumber;
5739
+ path: z$1.ZodString;
5740
+ query: z$1.ZodOptional<z$1.ZodString>;
5741
+ remoteRefresh: z$1.ZodEnum<{
5742
+ background: "background";
5743
+ none: "none";
5744
+ }>;
5745
+ selectedBranch: z$1.ZodOptional<z$1.ZodString>;
5746
+ type: z$1.ZodLiteral<"host.list_branch_options">;
5747
+ }, z$1.core.$strict>, z$1.ZodObject<{
5748
+ branches: z$1.ZodArray<z$1.ZodString>;
5749
+ branchesTruncated: z$1.ZodBoolean;
5750
+ remoteBranches: z$1.ZodArray<z$1.ZodString>;
5751
+ remoteBranchesTruncated: z$1.ZodBoolean;
5752
+ selectedBranch: z$1.ZodNullable<z$1.ZodObject<{
5753
+ kind: z$1.ZodEnum<{
5754
+ local: "local";
5755
+ missing: "missing";
5756
+ remote: "remote";
5757
+ }>;
5758
+ name: z$1.ZodString;
5759
+ }, z$1.core.$strip>>;
5760
+ }, z$1.core.$strip>, "onlineRpc", true>;
5767
5761
  "host.file_metadata": HostDaemonCommandDescriptor<"host.file_metadata", z$1.ZodObject<{
5768
5762
  path: z$1.ZodString;
5769
5763
  rootPath: z$1.ZodOptional<z$1.ZodString>;
@@ -5929,6 +5923,7 @@ declare const hostDaemonCommandRegistry: {
5929
5923
  }, z$1.core.$strict>>;
5930
5924
  bridgeLaunch: z$1.ZodObject<{
5931
5925
  capabilities: z$1.ZodObject<{
5926
+ experimental_providerInstallation: z$1.ZodBoolean;
5932
5927
  fork: z$1.ZodEnum<{
5933
5928
  checkpoint: "checkpoint";
5934
5929
  none: "none";
@@ -5944,6 +5939,7 @@ declare const hostDaemonCommandRegistry: {
5944
5939
  supportsThreadRename: z$1.ZodBoolean;
5945
5940
  }, z$1.core.$strict>;
5946
5941
  pluginId: z$1.ZodString;
5942
+ providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
5947
5943
  source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5948
5944
  byteLength: z$1.ZodNumber;
5949
5945
  digest: z$1.ZodString;
@@ -5985,29 +5981,592 @@ declare const hostDaemonCommandRegistry: {
5985
5981
  ultra: "ultra";
5986
5982
  ultracode: "ultracode";
5987
5983
  xhigh: "xhigh";
5988
- }>;
5989
- }, z$1.core.$strip>>;
5990
- }, z$1.core.$strip>>;
5991
- selectedOnlyModels: z$1.ZodArray<z$1.ZodObject<{
5992
- defaultReasoningEffort: z$1.ZodEnum<{
5993
- high: "high";
5994
- low: "low";
5995
- max: "max";
5996
- medium: "medium";
5997
- none: "none";
5998
- ultra: "ultra";
5999
- ultracode: "ultracode";
6000
- xhigh: "xhigh";
6001
- }>;
6002
- description: z$1.ZodString;
6003
- displayName: z$1.ZodString;
6004
- id: z$1.ZodString;
6005
- isDefault: z$1.ZodBoolean;
6006
- model: z$1.ZodString;
6007
- routeProviderId: z$1.ZodOptional<z$1.ZodString>;
6008
- supportedReasoningEfforts: z$1.ZodArray<z$1.ZodObject<{
6009
- description: z$1.ZodString;
6010
- reasoningEffort: z$1.ZodEnum<{
5984
+ }>;
5985
+ }, z$1.core.$strip>>;
5986
+ }, z$1.core.$strip>>;
5987
+ selectedOnlyModels: z$1.ZodArray<z$1.ZodObject<{
5988
+ defaultReasoningEffort: z$1.ZodEnum<{
5989
+ high: "high";
5990
+ low: "low";
5991
+ max: "max";
5992
+ medium: "medium";
5993
+ none: "none";
5994
+ ultra: "ultra";
5995
+ ultracode: "ultracode";
5996
+ xhigh: "xhigh";
5997
+ }>;
5998
+ description: z$1.ZodString;
5999
+ displayName: z$1.ZodString;
6000
+ id: z$1.ZodString;
6001
+ isDefault: z$1.ZodBoolean;
6002
+ model: z$1.ZodString;
6003
+ routeProviderId: z$1.ZodOptional<z$1.ZodString>;
6004
+ supportedReasoningEfforts: z$1.ZodArray<z$1.ZodObject<{
6005
+ description: z$1.ZodString;
6006
+ reasoningEffort: z$1.ZodEnum<{
6007
+ high: "high";
6008
+ low: "low";
6009
+ max: "max";
6010
+ medium: "medium";
6011
+ none: "none";
6012
+ ultra: "ultra";
6013
+ ultracode: "ultracode";
6014
+ xhigh: "xhigh";
6015
+ }>;
6016
+ }, z$1.core.$strip>>;
6017
+ }, z$1.core.$strip>>;
6018
+ }, z$1.core.$strip>, "onlineRpc", true>;
6019
+ "provider.health": HostDaemonCommandDescriptor<"provider.health", z$1.ZodObject<{
6020
+ acpLaunchSpec: z$1.ZodOptional<z$1.ZodObject<{
6021
+ args: z$1.ZodArray<z$1.ZodString>;
6022
+ command: z$1.ZodString;
6023
+ cwd: z$1.ZodOptional<z$1.ZodString>;
6024
+ displayName: z$1.ZodString;
6025
+ env: z$1.ZodRecord<z$1.ZodString, z$1.ZodString>;
6026
+ modelCli: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodObject<{
6027
+ listArgs: z$1.ZodArray<z$1.ZodString>;
6028
+ primaryModels: z$1.ZodArray<z$1.ZodString>;
6029
+ selectFlag: z$1.ZodOptional<z$1.ZodString>;
6030
+ }, z$1.core.$strict>, z$1.ZodTransform<{
6031
+ listArgs: string[];
6032
+ primaryModels: string[];
6033
+ selectFlag?: string | undefined;
6034
+ } | undefined, {
6035
+ listArgs: string[];
6036
+ primaryModels: string[];
6037
+ selectFlag?: string | undefined;
6038
+ }>>>;
6039
+ nativeReasoning: z$1.ZodOptional<z$1.ZodObject<{
6040
+ configId: z$1.ZodString;
6041
+ defaultLevel: z$1.ZodOptional<z$1.ZodEnum<{
6042
+ high: "high";
6043
+ low: "low";
6044
+ max: "max";
6045
+ medium: "medium";
6046
+ none: "none";
6047
+ ultra: "ultra";
6048
+ ultracode: "ultracode";
6049
+ xhigh: "xhigh";
6050
+ }>>;
6051
+ levelValues: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodEnum<{
6052
+ high: "high";
6053
+ low: "low";
6054
+ max: "max";
6055
+ medium: "medium";
6056
+ none: "none";
6057
+ ultra: "ultra";
6058
+ ultracode: "ultracode";
6059
+ xhigh: "xhigh";
6060
+ }> & z$1.core.$partial, z$1.ZodString>>;
6061
+ supportedLevels: z$1.ZodArray<z$1.ZodEnum<{
6062
+ high: "high";
6063
+ low: "low";
6064
+ max: "max";
6065
+ medium: "medium";
6066
+ none: "none";
6067
+ ultra: "ultra";
6068
+ ultracode: "ultracode";
6069
+ xhigh: "xhigh";
6070
+ }>>;
6071
+ }, z$1.core.$strict>>;
6072
+ nativeSkillRoots: z$1.ZodOptional<z$1.ZodObject<{
6073
+ project: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
6074
+ user: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
6075
+ }, z$1.core.$strict>>;
6076
+ permissionCli: z$1.ZodOptional<z$1.ZodObject<{
6077
+ full: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
6078
+ insertAfterArgs: z$1.ZodOptional<z$1.ZodNumber>;
6079
+ readonly: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
6080
+ workspaceWrite: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
6081
+ }, z$1.core.$strict>>;
6082
+ reasoningCli: z$1.ZodOptional<z$1.ZodObject<{
6083
+ defaultLevel: z$1.ZodOptional<z$1.ZodEnum<{
6084
+ high: "high";
6085
+ low: "low";
6086
+ max: "max";
6087
+ medium: "medium";
6088
+ none: "none";
6089
+ ultra: "ultra";
6090
+ ultracode: "ultracode";
6091
+ xhigh: "xhigh";
6092
+ }>>;
6093
+ flag: z$1.ZodString;
6094
+ levelValues: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodEnum<{
6095
+ high: "high";
6096
+ low: "low";
6097
+ max: "max";
6098
+ medium: "medium";
6099
+ none: "none";
6100
+ ultra: "ultra";
6101
+ ultracode: "ultracode";
6102
+ xhigh: "xhigh";
6103
+ }> & z$1.core.$partial, z$1.ZodString>>;
6104
+ supportedLevels: z$1.ZodArray<z$1.ZodEnum<{
6105
+ high: "high";
6106
+ low: "low";
6107
+ max: "max";
6108
+ medium: "medium";
6109
+ none: "none";
6110
+ ultra: "ultra";
6111
+ ultracode: "ultracode";
6112
+ xhigh: "xhigh";
6113
+ }>>;
6114
+ }, z$1.core.$strict>>;
6115
+ }, z$1.core.$strict>>;
6116
+ bridgeLaunch: z$1.ZodObject<{
6117
+ capabilities: z$1.ZodObject<{
6118
+ experimental_providerInstallation: z$1.ZodBoolean;
6119
+ fork: z$1.ZodEnum<{
6120
+ checkpoint: "checkpoint";
6121
+ none: "none";
6122
+ tip: "tip";
6123
+ }>;
6124
+ permissionModes: z$1.ZodArray<z$1.ZodEnum<{
6125
+ "accept-edits": "accept-edits";
6126
+ auto: "auto";
6127
+ full: "full";
6128
+ }>>;
6129
+ supportsServiceTier: z$1.ZodBoolean;
6130
+ supportsThreadArchive: z$1.ZodBoolean;
6131
+ supportsThreadRename: z$1.ZodBoolean;
6132
+ }, z$1.core.$strict>;
6133
+ pluginId: z$1.ZodString;
6134
+ providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
6135
+ source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6136
+ byteLength: z$1.ZodNumber;
6137
+ digest: z$1.ZodString;
6138
+ kind: z$1.ZodLiteral<"artifact">;
6139
+ }, z$1.core.$strict>, z$1.ZodObject<{
6140
+ id: z$1.ZodString;
6141
+ kind: z$1.ZodLiteral<"daemon-bundled">;
6142
+ }, z$1.core.$strict>], "kind">;
6143
+ }, z$1.core.$strict>;
6144
+ cwd: z$1.ZodOptional<z$1.ZodString>;
6145
+ providerId: z$1.ZodString;
6146
+ type: z$1.ZodLiteral<"provider.health">;
6147
+ }, z$1.core.$strict>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6148
+ supported: z$1.ZodLiteral<false>;
6149
+ }, z$1.core.$loose>, z$1.ZodObject<{
6150
+ health: z$1.ZodObject<{
6151
+ accountEmail: z$1.ZodNullable<z$1.ZodString>;
6152
+ canInstall: z$1.ZodBoolean;
6153
+ canUpdate: z$1.ZodBoolean;
6154
+ installedVersion: z$1.ZodNullable<z$1.ZodString>;
6155
+ loginCommand: z$1.ZodNullable<z$1.ZodString>;
6156
+ minimumSupportedVersion: z$1.ZodNullable<z$1.ZodString>;
6157
+ planLabel: z$1.ZodNullable<z$1.ZodString>;
6158
+ status: z$1.ZodEnum<{
6159
+ expired: "expired";
6160
+ not_installed: "not_installed";
6161
+ ready: "ready";
6162
+ unauthenticated: "unauthenticated";
6163
+ unknown: "unknown";
6164
+ unsupported_version: "unsupported_version";
6165
+ }>;
6166
+ statusMessage: z$1.ZodNullable<z$1.ZodString>;
6167
+ }, z$1.core.$loose>;
6168
+ supported: z$1.ZodLiteral<true>;
6169
+ }, z$1.core.$loose>], "supported">, "onlineRpc", true>;
6170
+ "provider.installation.status": HostDaemonCommandDescriptor<"provider.installation.status", z$1.ZodObject<{
6171
+ acpLaunchSpec: z$1.ZodOptional<z$1.ZodObject<{
6172
+ args: z$1.ZodArray<z$1.ZodString>;
6173
+ command: z$1.ZodString;
6174
+ cwd: z$1.ZodOptional<z$1.ZodString>;
6175
+ displayName: z$1.ZodString;
6176
+ env: z$1.ZodRecord<z$1.ZodString, z$1.ZodString>;
6177
+ modelCli: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodObject<{
6178
+ listArgs: z$1.ZodArray<z$1.ZodString>;
6179
+ primaryModels: z$1.ZodArray<z$1.ZodString>;
6180
+ selectFlag: z$1.ZodOptional<z$1.ZodString>;
6181
+ }, z$1.core.$strict>, z$1.ZodTransform<{
6182
+ listArgs: string[];
6183
+ primaryModels: string[];
6184
+ selectFlag?: string | undefined;
6185
+ } | undefined, {
6186
+ listArgs: string[];
6187
+ primaryModels: string[];
6188
+ selectFlag?: string | undefined;
6189
+ }>>>;
6190
+ nativeReasoning: z$1.ZodOptional<z$1.ZodObject<{
6191
+ configId: z$1.ZodString;
6192
+ defaultLevel: z$1.ZodOptional<z$1.ZodEnum<{
6193
+ high: "high";
6194
+ low: "low";
6195
+ max: "max";
6196
+ medium: "medium";
6197
+ none: "none";
6198
+ ultra: "ultra";
6199
+ ultracode: "ultracode";
6200
+ xhigh: "xhigh";
6201
+ }>>;
6202
+ levelValues: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodEnum<{
6203
+ high: "high";
6204
+ low: "low";
6205
+ max: "max";
6206
+ medium: "medium";
6207
+ none: "none";
6208
+ ultra: "ultra";
6209
+ ultracode: "ultracode";
6210
+ xhigh: "xhigh";
6211
+ }> & z$1.core.$partial, z$1.ZodString>>;
6212
+ supportedLevels: z$1.ZodArray<z$1.ZodEnum<{
6213
+ high: "high";
6214
+ low: "low";
6215
+ max: "max";
6216
+ medium: "medium";
6217
+ none: "none";
6218
+ ultra: "ultra";
6219
+ ultracode: "ultracode";
6220
+ xhigh: "xhigh";
6221
+ }>>;
6222
+ }, z$1.core.$strict>>;
6223
+ nativeSkillRoots: z$1.ZodOptional<z$1.ZodObject<{
6224
+ project: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
6225
+ user: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
6226
+ }, z$1.core.$strict>>;
6227
+ permissionCli: z$1.ZodOptional<z$1.ZodObject<{
6228
+ full: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
6229
+ insertAfterArgs: z$1.ZodOptional<z$1.ZodNumber>;
6230
+ readonly: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
6231
+ workspaceWrite: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
6232
+ }, z$1.core.$strict>>;
6233
+ reasoningCli: z$1.ZodOptional<z$1.ZodObject<{
6234
+ defaultLevel: z$1.ZodOptional<z$1.ZodEnum<{
6235
+ high: "high";
6236
+ low: "low";
6237
+ max: "max";
6238
+ medium: "medium";
6239
+ none: "none";
6240
+ ultra: "ultra";
6241
+ ultracode: "ultracode";
6242
+ xhigh: "xhigh";
6243
+ }>>;
6244
+ flag: z$1.ZodString;
6245
+ levelValues: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodEnum<{
6246
+ high: "high";
6247
+ low: "low";
6248
+ max: "max";
6249
+ medium: "medium";
6250
+ none: "none";
6251
+ ultra: "ultra";
6252
+ ultracode: "ultracode";
6253
+ xhigh: "xhigh";
6254
+ }> & z$1.core.$partial, z$1.ZodString>>;
6255
+ supportedLevels: z$1.ZodArray<z$1.ZodEnum<{
6256
+ high: "high";
6257
+ low: "low";
6258
+ max: "max";
6259
+ medium: "medium";
6260
+ none: "none";
6261
+ ultra: "ultra";
6262
+ ultracode: "ultracode";
6263
+ xhigh: "xhigh";
6264
+ }>>;
6265
+ }, z$1.core.$strict>>;
6266
+ }, z$1.core.$strict>>;
6267
+ bridgeLaunch: z$1.ZodObject<{
6268
+ capabilities: z$1.ZodObject<{
6269
+ experimental_providerInstallation: z$1.ZodBoolean;
6270
+ fork: z$1.ZodEnum<{
6271
+ checkpoint: "checkpoint";
6272
+ none: "none";
6273
+ tip: "tip";
6274
+ }>;
6275
+ permissionModes: z$1.ZodArray<z$1.ZodEnum<{
6276
+ "accept-edits": "accept-edits";
6277
+ auto: "auto";
6278
+ full: "full";
6279
+ }>>;
6280
+ supportsServiceTier: z$1.ZodBoolean;
6281
+ supportsThreadArchive: z$1.ZodBoolean;
6282
+ supportsThreadRename: z$1.ZodBoolean;
6283
+ }, z$1.core.$strict>;
6284
+ pluginId: z$1.ZodString;
6285
+ providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
6286
+ source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6287
+ byteLength: z$1.ZodNumber;
6288
+ digest: z$1.ZodString;
6289
+ kind: z$1.ZodLiteral<"artifact">;
6290
+ }, z$1.core.$strict>, z$1.ZodObject<{
6291
+ id: z$1.ZodString;
6292
+ kind: z$1.ZodLiteral<"daemon-bundled">;
6293
+ }, z$1.core.$strict>], "kind">;
6294
+ }, z$1.core.$strict>;
6295
+ cwd: z$1.ZodOptional<z$1.ZodString>;
6296
+ providerId: z$1.ZodString;
6297
+ requirement: z$1.ZodOptional<z$1.ZodLiteral<"thread_rewind">>;
6298
+ type: z$1.ZodLiteral<"provider.installation.status">;
6299
+ }, z$1.core.$strict>, z$1.ZodObject<{
6300
+ currentVersion: z$1.ZodNullable<z$1.ZodString>;
6301
+ executableName: z$1.ZodString;
6302
+ executablePath: z$1.ZodNullable<z$1.ZodString>;
6303
+ installAction: z$1.ZodNullable<z$1.ZodObject<{
6304
+ command: z$1.ZodString;
6305
+ kind: z$1.ZodEnum<{
6306
+ install: "install";
6307
+ update: "update";
6308
+ }>;
6309
+ label: z$1.ZodEnum<{
6310
+ Install: "Install";
6311
+ Update: "Update";
6312
+ }>;
6313
+ }, z$1.core.$loose>>;
6314
+ installSource: z$1.ZodEnum<{
6315
+ external: "external";
6316
+ notInstalled: "notInstalled";
6317
+ npmGlobal: "npmGlobal";
6318
+ }>;
6319
+ installed: z$1.ZodBoolean;
6320
+ latestVersion: z$1.ZodNullable<z$1.ZodString>;
6321
+ minimumSupportedVersion: z$1.ZodNullable<z$1.ZodString>;
6322
+ needsUpdate: z$1.ZodBoolean;
6323
+ npmGlobalPackageVersion: z$1.ZodNullable<z$1.ZodString>;
6324
+ npmPackageName: z$1.ZodNullable<z$1.ZodString>;
6325
+ versionUnsupported: z$1.ZodBoolean;
6326
+ }, z$1.core.$loose>, "onlineRpc", true>;
6327
+ "provider.installation.run": HostDaemonCommandDescriptor<"provider.installation.run", z$1.ZodObject<{
6328
+ acpLaunchSpec: z$1.ZodOptional<z$1.ZodObject<{
6329
+ args: z$1.ZodArray<z$1.ZodString>;
6330
+ command: z$1.ZodString;
6331
+ cwd: z$1.ZodOptional<z$1.ZodString>;
6332
+ displayName: z$1.ZodString;
6333
+ env: z$1.ZodRecord<z$1.ZodString, z$1.ZodString>;
6334
+ modelCli: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodObject<{
6335
+ listArgs: z$1.ZodArray<z$1.ZodString>;
6336
+ primaryModels: z$1.ZodArray<z$1.ZodString>;
6337
+ selectFlag: z$1.ZodOptional<z$1.ZodString>;
6338
+ }, z$1.core.$strict>, z$1.ZodTransform<{
6339
+ listArgs: string[];
6340
+ primaryModels: string[];
6341
+ selectFlag?: string | undefined;
6342
+ } | undefined, {
6343
+ listArgs: string[];
6344
+ primaryModels: string[];
6345
+ selectFlag?: string | undefined;
6346
+ }>>>;
6347
+ nativeReasoning: z$1.ZodOptional<z$1.ZodObject<{
6348
+ configId: z$1.ZodString;
6349
+ defaultLevel: z$1.ZodOptional<z$1.ZodEnum<{
6350
+ high: "high";
6351
+ low: "low";
6352
+ max: "max";
6353
+ medium: "medium";
6354
+ none: "none";
6355
+ ultra: "ultra";
6356
+ ultracode: "ultracode";
6357
+ xhigh: "xhigh";
6358
+ }>>;
6359
+ levelValues: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodEnum<{
6360
+ high: "high";
6361
+ low: "low";
6362
+ max: "max";
6363
+ medium: "medium";
6364
+ none: "none";
6365
+ ultra: "ultra";
6366
+ ultracode: "ultracode";
6367
+ xhigh: "xhigh";
6368
+ }> & z$1.core.$partial, z$1.ZodString>>;
6369
+ supportedLevels: z$1.ZodArray<z$1.ZodEnum<{
6370
+ high: "high";
6371
+ low: "low";
6372
+ max: "max";
6373
+ medium: "medium";
6374
+ none: "none";
6375
+ ultra: "ultra";
6376
+ ultracode: "ultracode";
6377
+ xhigh: "xhigh";
6378
+ }>>;
6379
+ }, z$1.core.$strict>>;
6380
+ nativeSkillRoots: z$1.ZodOptional<z$1.ZodObject<{
6381
+ project: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
6382
+ user: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
6383
+ }, z$1.core.$strict>>;
6384
+ permissionCli: z$1.ZodOptional<z$1.ZodObject<{
6385
+ full: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
6386
+ insertAfterArgs: z$1.ZodOptional<z$1.ZodNumber>;
6387
+ readonly: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
6388
+ workspaceWrite: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
6389
+ }, z$1.core.$strict>>;
6390
+ reasoningCli: z$1.ZodOptional<z$1.ZodObject<{
6391
+ defaultLevel: z$1.ZodOptional<z$1.ZodEnum<{
6392
+ high: "high";
6393
+ low: "low";
6394
+ max: "max";
6395
+ medium: "medium";
6396
+ none: "none";
6397
+ ultra: "ultra";
6398
+ ultracode: "ultracode";
6399
+ xhigh: "xhigh";
6400
+ }>>;
6401
+ flag: z$1.ZodString;
6402
+ levelValues: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodEnum<{
6403
+ high: "high";
6404
+ low: "low";
6405
+ max: "max";
6406
+ medium: "medium";
6407
+ none: "none";
6408
+ ultra: "ultra";
6409
+ ultracode: "ultracode";
6410
+ xhigh: "xhigh";
6411
+ }> & z$1.core.$partial, z$1.ZodString>>;
6412
+ supportedLevels: z$1.ZodArray<z$1.ZodEnum<{
6413
+ high: "high";
6414
+ low: "low";
6415
+ max: "max";
6416
+ medium: "medium";
6417
+ none: "none";
6418
+ ultra: "ultra";
6419
+ ultracode: "ultracode";
6420
+ xhigh: "xhigh";
6421
+ }>>;
6422
+ }, z$1.core.$strict>>;
6423
+ }, z$1.core.$strict>>;
6424
+ action: z$1.ZodEnum<{
6425
+ install: "install";
6426
+ update: "update";
6427
+ }>;
6428
+ bridgeLaunch: z$1.ZodObject<{
6429
+ capabilities: z$1.ZodObject<{
6430
+ experimental_providerInstallation: z$1.ZodBoolean;
6431
+ fork: z$1.ZodEnum<{
6432
+ checkpoint: "checkpoint";
6433
+ none: "none";
6434
+ tip: "tip";
6435
+ }>;
6436
+ permissionModes: z$1.ZodArray<z$1.ZodEnum<{
6437
+ "accept-edits": "accept-edits";
6438
+ auto: "auto";
6439
+ full: "full";
6440
+ }>>;
6441
+ supportsServiceTier: z$1.ZodBoolean;
6442
+ supportsThreadArchive: z$1.ZodBoolean;
6443
+ supportsThreadRename: z$1.ZodBoolean;
6444
+ }, z$1.core.$strict>;
6445
+ pluginId: z$1.ZodString;
6446
+ providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
6447
+ source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6448
+ byteLength: z$1.ZodNumber;
6449
+ digest: z$1.ZodString;
6450
+ kind: z$1.ZodLiteral<"artifact">;
6451
+ }, z$1.core.$strict>, z$1.ZodObject<{
6452
+ id: z$1.ZodString;
6453
+ kind: z$1.ZodLiteral<"daemon-bundled">;
6454
+ }, z$1.core.$strict>], "kind">;
6455
+ }, z$1.core.$strict>;
6456
+ cwd: z$1.ZodOptional<z$1.ZodString>;
6457
+ providerId: z$1.ZodString;
6458
+ type: z$1.ZodLiteral<"provider.installation.run">;
6459
+ }, z$1.core.$strict>, z$1.ZodObject<{
6460
+ events: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6461
+ command: z$1.ZodString;
6462
+ provider: z$1.ZodString;
6463
+ type: z$1.ZodLiteral<"started">;
6464
+ }, z$1.core.$strip>, z$1.ZodObject<{
6465
+ provider: z$1.ZodString;
6466
+ stream: z$1.ZodEnum<{
6467
+ stderr: "stderr";
6468
+ stdout: "stdout";
6469
+ }>;
6470
+ text: z$1.ZodString;
6471
+ type: z$1.ZodLiteral<"output">;
6472
+ }, z$1.core.$strip>, z$1.ZodObject<{
6473
+ exitCode: z$1.ZodNullable<z$1.ZodNumber>;
6474
+ provider: z$1.ZodString;
6475
+ signal: z$1.ZodNullable<z$1.ZodString>;
6476
+ success: z$1.ZodBoolean;
6477
+ type: z$1.ZodLiteral<"completed">;
6478
+ }, z$1.core.$strip>, z$1.ZodObject<{
6479
+ message: z$1.ZodString;
6480
+ provider: z$1.ZodString;
6481
+ type: z$1.ZodLiteral<"error">;
6482
+ }, z$1.core.$strip>], "type">>;
6483
+ }, z$1.core.$strict>, "onlineRpc", false>;
6484
+ "provider.usage": HostDaemonCommandDescriptor<"provider.usage", z$1.ZodObject<{
6485
+ acpLaunchSpec: z$1.ZodOptional<z$1.ZodObject<{
6486
+ args: z$1.ZodArray<z$1.ZodString>;
6487
+ command: z$1.ZodString;
6488
+ cwd: z$1.ZodOptional<z$1.ZodString>;
6489
+ displayName: z$1.ZodString;
6490
+ env: z$1.ZodRecord<z$1.ZodString, z$1.ZodString>;
6491
+ modelCli: z$1.ZodOptional<z$1.ZodPipe<z$1.ZodObject<{
6492
+ listArgs: z$1.ZodArray<z$1.ZodString>;
6493
+ primaryModels: z$1.ZodArray<z$1.ZodString>;
6494
+ selectFlag: z$1.ZodOptional<z$1.ZodString>;
6495
+ }, z$1.core.$strict>, z$1.ZodTransform<{
6496
+ listArgs: string[];
6497
+ primaryModels: string[];
6498
+ selectFlag?: string | undefined;
6499
+ } | undefined, {
6500
+ listArgs: string[];
6501
+ primaryModels: string[];
6502
+ selectFlag?: string | undefined;
6503
+ }>>>;
6504
+ nativeReasoning: z$1.ZodOptional<z$1.ZodObject<{
6505
+ configId: z$1.ZodString;
6506
+ defaultLevel: z$1.ZodOptional<z$1.ZodEnum<{
6507
+ high: "high";
6508
+ low: "low";
6509
+ max: "max";
6510
+ medium: "medium";
6511
+ none: "none";
6512
+ ultra: "ultra";
6513
+ ultracode: "ultracode";
6514
+ xhigh: "xhigh";
6515
+ }>>;
6516
+ levelValues: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodEnum<{
6517
+ high: "high";
6518
+ low: "low";
6519
+ max: "max";
6520
+ medium: "medium";
6521
+ none: "none";
6522
+ ultra: "ultra";
6523
+ ultracode: "ultracode";
6524
+ xhigh: "xhigh";
6525
+ }> & z$1.core.$partial, z$1.ZodString>>;
6526
+ supportedLevels: z$1.ZodArray<z$1.ZodEnum<{
6527
+ high: "high";
6528
+ low: "low";
6529
+ max: "max";
6530
+ medium: "medium";
6531
+ none: "none";
6532
+ ultra: "ultra";
6533
+ ultracode: "ultracode";
6534
+ xhigh: "xhigh";
6535
+ }>>;
6536
+ }, z$1.core.$strict>>;
6537
+ nativeSkillRoots: z$1.ZodOptional<z$1.ZodObject<{
6538
+ project: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
6539
+ user: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
6540
+ }, z$1.core.$strict>>;
6541
+ permissionCli: z$1.ZodOptional<z$1.ZodObject<{
6542
+ full: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
6543
+ insertAfterArgs: z$1.ZodOptional<z$1.ZodNumber>;
6544
+ readonly: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
6545
+ workspaceWrite: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
6546
+ }, z$1.core.$strict>>;
6547
+ reasoningCli: z$1.ZodOptional<z$1.ZodObject<{
6548
+ defaultLevel: z$1.ZodOptional<z$1.ZodEnum<{
6549
+ high: "high";
6550
+ low: "low";
6551
+ max: "max";
6552
+ medium: "medium";
6553
+ none: "none";
6554
+ ultra: "ultra";
6555
+ ultracode: "ultracode";
6556
+ xhigh: "xhigh";
6557
+ }>>;
6558
+ flag: z$1.ZodString;
6559
+ levelValues: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodEnum<{
6560
+ high: "high";
6561
+ low: "low";
6562
+ max: "max";
6563
+ medium: "medium";
6564
+ none: "none";
6565
+ ultra: "ultra";
6566
+ ultracode: "ultracode";
6567
+ xhigh: "xhigh";
6568
+ }> & z$1.core.$partial, z$1.ZodString>>;
6569
+ supportedLevels: z$1.ZodArray<z$1.ZodEnum<{
6011
6570
  high: "high";
6012
6571
  low: "low";
6013
6572
  max: "max";
@@ -6016,78 +6575,45 @@ declare const hostDaemonCommandRegistry: {
6016
6575
  ultra: "ultra";
6017
6576
  ultracode: "ultracode";
6018
6577
  xhigh: "xhigh";
6019
- }>;
6020
- }, z$1.core.$strip>>;
6021
- }, z$1.core.$strip>>;
6022
- }, z$1.core.$strip>, "onlineRpc", true>;
6023
- "known_acp_agents.status": HostDaemonCommandDescriptor<"known_acp_agents.status", z$1.ZodObject<{
6024
- agents: z$1.ZodArray<z$1.ZodObject<{
6025
- executableName: z$1.ZodString;
6026
- id: z$1.ZodString;
6027
- }, z$1.core.$strict>>;
6028
- type: z$1.ZodLiteral<"known_acp_agents.status">;
6029
- }, z$1.core.$strict>, z$1.ZodObject<{
6030
- agents: z$1.ZodArray<z$1.ZodObject<{
6031
- executableName: z$1.ZodString;
6032
- executablePath: z$1.ZodNullable<z$1.ZodString>;
6033
- id: z$1.ZodString;
6034
- installed: z$1.ZodBoolean;
6578
+ }>>;
6579
+ }, z$1.core.$strict>>;
6035
6580
  }, z$1.core.$strict>>;
6036
- }, z$1.core.$strict>, "onlineRpc", true>;
6037
- "provider.usage": HostDaemonCommandDescriptor<"provider.usage", z$1.ZodObject<{
6581
+ bridgeLaunch: z$1.ZodObject<{
6582
+ capabilities: z$1.ZodObject<{
6583
+ experimental_providerInstallation: z$1.ZodBoolean;
6584
+ fork: z$1.ZodEnum<{
6585
+ checkpoint: "checkpoint";
6586
+ none: "none";
6587
+ tip: "tip";
6588
+ }>;
6589
+ permissionModes: z$1.ZodArray<z$1.ZodEnum<{
6590
+ "accept-edits": "accept-edits";
6591
+ auto: "auto";
6592
+ full: "full";
6593
+ }>>;
6594
+ supportsServiceTier: z$1.ZodBoolean;
6595
+ supportsThreadArchive: z$1.ZodBoolean;
6596
+ supportsThreadRename: z$1.ZodBoolean;
6597
+ }, z$1.core.$strict>;
6598
+ pluginId: z$1.ZodString;
6599
+ providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
6600
+ source: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6601
+ byteLength: z$1.ZodNumber;
6602
+ digest: z$1.ZodString;
6603
+ kind: z$1.ZodLiteral<"artifact">;
6604
+ }, z$1.core.$strict>, z$1.ZodObject<{
6605
+ id: z$1.ZodString;
6606
+ kind: z$1.ZodLiteral<"daemon-bundled">;
6607
+ }, z$1.core.$strict>], "kind">;
6608
+ }, z$1.core.$strict>;
6609
+ cwd: z$1.ZodOptional<z$1.ZodString>;
6610
+ providerId: z$1.ZodString;
6038
6611
  type: z$1.ZodLiteral<"provider.usage">;
6039
- }, z$1.core.$strict>, z$1.ZodObject<{
6040
- claudeCode: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6041
- accountEmail: z$1.ZodNullable<z$1.ZodString>;
6042
- planLabel: z$1.ZodNullable<z$1.ZodString>;
6043
- status: z$1.ZodLiteral<"ok">;
6044
- windows: z$1.ZodArray<z$1.ZodObject<{
6045
- cost: z$1.ZodOptional<z$1.ZodObject<{
6046
- limitUsdCents: z$1.ZodNumber;
6047
- usedUsdCents: z$1.ZodNumber;
6048
- }, z$1.core.$strip>>;
6049
- label: z$1.ZodString;
6050
- resetsAt: z$1.ZodNullable<z$1.ZodString>;
6051
- usedPercent: z$1.ZodNumber;
6052
- }, z$1.core.$strip>>;
6053
- }, z$1.core.$strip>, z$1.ZodObject<{
6054
- status: z$1.ZodLiteral<"not_installed">;
6055
- }, z$1.core.$strip>, z$1.ZodObject<{
6056
- status: z$1.ZodLiteral<"unauthenticated">;
6057
- }, z$1.core.$strip>, z$1.ZodObject<{
6058
- status: z$1.ZodLiteral<"expired">;
6059
- }, z$1.core.$strip>, z$1.ZodObject<{
6060
- accountEmail: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
6061
- message: z$1.ZodString;
6062
- planLabel: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
6063
- status: z$1.ZodLiteral<"error">;
6064
- }, z$1.core.$strip>], "status">;
6065
- codex: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6066
- accountEmail: z$1.ZodNullable<z$1.ZodString>;
6067
- planLabel: z$1.ZodNullable<z$1.ZodString>;
6068
- status: z$1.ZodLiteral<"ok">;
6069
- windows: z$1.ZodArray<z$1.ZodObject<{
6070
- cost: z$1.ZodOptional<z$1.ZodObject<{
6071
- limitUsdCents: z$1.ZodNumber;
6072
- usedUsdCents: z$1.ZodNumber;
6073
- }, z$1.core.$strip>>;
6074
- label: z$1.ZodString;
6075
- resetsAt: z$1.ZodNullable<z$1.ZodString>;
6076
- usedPercent: z$1.ZodNumber;
6077
- }, z$1.core.$strip>>;
6078
- }, z$1.core.$strip>, z$1.ZodObject<{
6079
- status: z$1.ZodLiteral<"not_installed">;
6080
- }, z$1.core.$strip>, z$1.ZodObject<{
6081
- status: z$1.ZodLiteral<"unauthenticated">;
6082
- }, z$1.core.$strip>, z$1.ZodObject<{
6083
- status: z$1.ZodLiteral<"expired">;
6084
- }, z$1.core.$strip>, z$1.ZodObject<{
6085
- accountEmail: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
6086
- message: z$1.ZodString;
6087
- planLabel: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
6088
- status: z$1.ZodLiteral<"error">;
6089
- }, z$1.core.$strip>], "status">;
6090
- cursor: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6612
+ }, z$1.core.$strict>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6613
+ supported: z$1.ZodLiteral<false>;
6614
+ }, z$1.core.$loose>, z$1.ZodObject<{
6615
+ supported: z$1.ZodLiteral<true>;
6616
+ usage: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6091
6617
  accountEmail: z$1.ZodNullable<z$1.ZodString>;
6092
6618
  planLabel: z$1.ZodNullable<z$1.ZodString>;
6093
6619
  status: z$1.ZodLiteral<"ok">;
@@ -6099,111 +6625,20 @@ declare const hostDaemonCommandRegistry: {
6099
6625
  label: z$1.ZodString;
6100
6626
  resetsAt: z$1.ZodNullable<z$1.ZodString>;
6101
6627
  usedPercent: z$1.ZodNumber;
6102
- }, z$1.core.$strip>>;
6103
- }, z$1.core.$strip>, z$1.ZodObject<{
6628
+ }, z$1.core.$loose>>;
6629
+ }, z$1.core.$loose>, z$1.ZodObject<{
6104
6630
  status: z$1.ZodLiteral<"not_installed">;
6105
- }, z$1.core.$strip>, z$1.ZodObject<{
6631
+ }, z$1.core.$loose>, z$1.ZodObject<{
6106
6632
  status: z$1.ZodLiteral<"unauthenticated">;
6107
- }, z$1.core.$strip>, z$1.ZodObject<{
6633
+ }, z$1.core.$loose>, z$1.ZodObject<{
6108
6634
  status: z$1.ZodLiteral<"expired">;
6109
- }, z$1.core.$strip>, z$1.ZodObject<{
6635
+ }, z$1.core.$loose>, z$1.ZodObject<{
6110
6636
  accountEmail: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
6111
6637
  message: z$1.ZodString;
6112
6638
  planLabel: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
6113
6639
  status: z$1.ZodLiteral<"error">;
6114
- }, z$1.core.$strip>], "status">;
6115
- }, z$1.core.$strip>, "onlineRpc", true>;
6116
- "provider_cli.status": HostDaemonCommandDescriptor<"provider_cli.status", z$1.ZodObject<{
6117
- type: z$1.ZodLiteral<"provider_cli.status">;
6118
- }, z$1.core.$strict>, z$1.ZodRecord<z$1.ZodEnum<{
6119
- claudeCode: "claudeCode";
6120
- codex: "codex";
6121
- cursor: "cursor";
6122
- }>, z$1.ZodObject<{
6123
- currentVersion: z$1.ZodNullable<z$1.ZodString>;
6124
- displayName: z$1.ZodString;
6125
- executableName: z$1.ZodString;
6126
- executablePath: z$1.ZodNullable<z$1.ZodString>;
6127
- installAction: z$1.ZodNullable<z$1.ZodObject<{
6128
- command: z$1.ZodString;
6129
- commandKind: z$1.ZodEnum<{
6130
- exec: "exec";
6131
- shell: "shell";
6132
- }>;
6133
- kind: z$1.ZodEnum<{
6134
- install: "install";
6135
- update: "update";
6136
- }>;
6137
- label: z$1.ZodEnum<{
6138
- Install: "Install";
6139
- Update: "Update";
6140
- }>;
6141
- }, z$1.core.$strip>>;
6142
- installSource: z$1.ZodEnum<{
6143
- external: "external";
6144
- notInstalled: "notInstalled";
6145
- npmGlobal: "npmGlobal";
6146
- }>;
6147
- installed: z$1.ZodBoolean;
6148
- latestVersion: z$1.ZodNullable<z$1.ZodString>;
6149
- minimumSupportedVersion: z$1.ZodNullable<z$1.ZodString>;
6150
- needsUpdate: z$1.ZodBoolean;
6151
- npmGlobalPackageVersion: z$1.ZodNullable<z$1.ZodString>;
6152
- npmPackageName: z$1.ZodNullable<z$1.ZodString>;
6153
- versionUnsupported: z$1.ZodBoolean;
6154
- }, z$1.core.$strip>>, "onlineRpc", true>;
6155
- "provider_cli.install": HostDaemonCommandDescriptor<"provider_cli.install", z$1.ZodObject<{
6156
- actionKind: z$1.ZodEnum<{
6157
- install: "install";
6158
- update: "update";
6159
- }>;
6160
- provider: z$1.ZodEnum<{
6161
- claudeCode: "claudeCode";
6162
- codex: "codex";
6163
- cursor: "cursor";
6164
- }>;
6165
- type: z$1.ZodLiteral<"provider_cli.install">;
6166
- }, z$1.core.$strict>, z$1.ZodObject<{
6167
- events: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6168
- command: z$1.ZodString;
6169
- provider: z$1.ZodEnum<{
6170
- claudeCode: "claudeCode";
6171
- codex: "codex";
6172
- cursor: "cursor";
6173
- }>;
6174
- type: z$1.ZodLiteral<"started">;
6175
- }, z$1.core.$strip>, z$1.ZodObject<{
6176
- provider: z$1.ZodEnum<{
6177
- claudeCode: "claudeCode";
6178
- codex: "codex";
6179
- cursor: "cursor";
6180
- }>;
6181
- stream: z$1.ZodEnum<{
6182
- stderr: "stderr";
6183
- stdout: "stdout";
6184
- }>;
6185
- text: z$1.ZodString;
6186
- type: z$1.ZodLiteral<"output">;
6187
- }, z$1.core.$strip>, z$1.ZodObject<{
6188
- exitCode: z$1.ZodNullable<z$1.ZodNumber>;
6189
- provider: z$1.ZodEnum<{
6190
- claudeCode: "claudeCode";
6191
- codex: "codex";
6192
- cursor: "cursor";
6193
- }>;
6194
- signal: z$1.ZodNullable<z$1.ZodString>;
6195
- success: z$1.ZodBoolean;
6196
- type: z$1.ZodLiteral<"completed">;
6197
- }, z$1.core.$strip>, z$1.ZodObject<{
6198
- message: z$1.ZodString;
6199
- provider: z$1.ZodEnum<{
6200
- claudeCode: "claudeCode";
6201
- codex: "codex";
6202
- cursor: "cursor";
6203
- }>;
6204
- type: z$1.ZodLiteral<"error">;
6205
- }, z$1.core.$strip>], "type">>;
6206
- }, z$1.core.$strict>, "onlineRpc", false>;
6640
+ }, z$1.core.$loose>], "status">;
6641
+ }, z$1.core.$loose>], "supported">, "onlineRpc", true>;
6207
6642
  "workspace.status": HostDaemonCommandDescriptor<"workspace.status", z$1.ZodObject<{
6208
6643
  environmentId: z$1.ZodString;
6209
6644
  maxUntrackedLineStatBytes: z$1.ZodNumber;
@@ -6582,21 +7017,13 @@ declare const pathsExistResponseSchema: z$1.ZodObject<{
6582
7017
  existence: z$1.ZodRecord<z$1.ZodString, z$1.ZodBoolean>;
6583
7018
  }, z$1.core.$strip>;
6584
7019
  type PathsExistResponse = z$1.infer<typeof pathsExistResponseSchema>;
6585
- declare const providerCliStatusResponseSchema: z$1.ZodRecord<z$1.ZodEnum<{
6586
- claudeCode: "claudeCode";
6587
- codex: "codex";
6588
- cursor: "cursor";
6589
- }>, z$1.ZodObject<{
7020
+ declare const providerCliStatusResponseSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
6590
7021
  currentVersion: z$1.ZodNullable<z$1.ZodString>;
6591
7022
  displayName: z$1.ZodString;
6592
7023
  executableName: z$1.ZodString;
6593
7024
  executablePath: z$1.ZodNullable<z$1.ZodString>;
6594
7025
  installAction: z$1.ZodNullable<z$1.ZodObject<{
6595
7026
  command: z$1.ZodString;
6596
- commandKind: z$1.ZodEnum<{
6597
- exec: "exec";
6598
- shell: "shell";
6599
- }>;
6600
7027
  kind: z$1.ZodEnum<{
6601
7028
  install: "install";
6602
7029
  update: "update";
@@ -6625,27 +7052,15 @@ declare const providerCliInstallRequestSchema: z$1.ZodObject<{
6625
7052
  install: "install";
6626
7053
  update: "update";
6627
7054
  }>;
6628
- provider: z$1.ZodEnum<{
6629
- claudeCode: "claudeCode";
6630
- codex: "codex";
6631
- cursor: "cursor";
6632
- }>;
7055
+ provider: z$1.ZodString;
6633
7056
  }, z$1.core.$strip>;
6634
7057
  type ProviderCliInstallRequest = z$1.infer<typeof providerCliInstallRequestSchema>;
6635
7058
  declare const providerCliInstallEventSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6636
7059
  command: z$1.ZodString;
6637
- provider: z$1.ZodEnum<{
6638
- claudeCode: "claudeCode";
6639
- codex: "codex";
6640
- cursor: "cursor";
6641
- }>;
7060
+ provider: z$1.ZodString;
6642
7061
  type: z$1.ZodLiteral<"started">;
6643
7062
  }, z$1.core.$strip>, z$1.ZodObject<{
6644
- provider: z$1.ZodEnum<{
6645
- claudeCode: "claudeCode";
6646
- codex: "codex";
6647
- cursor: "cursor";
6648
- }>;
7063
+ provider: z$1.ZodString;
6649
7064
  stream: z$1.ZodEnum<{
6650
7065
  stderr: "stderr";
6651
7066
  stdout: "stdout";
@@ -6654,21 +7069,13 @@ declare const providerCliInstallEventSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodO
6654
7069
  type: z$1.ZodLiteral<"output">;
6655
7070
  }, z$1.core.$strip>, z$1.ZodObject<{
6656
7071
  exitCode: z$1.ZodNullable<z$1.ZodNumber>;
6657
- provider: z$1.ZodEnum<{
6658
- claudeCode: "claudeCode";
6659
- codex: "codex";
6660
- cursor: "cursor";
6661
- }>;
7072
+ provider: z$1.ZodString;
6662
7073
  signal: z$1.ZodNullable<z$1.ZodString>;
6663
7074
  success: z$1.ZodBoolean;
6664
7075
  type: z$1.ZodLiteral<"completed">;
6665
7076
  }, z$1.core.$strip>, z$1.ZodObject<{
6666
7077
  message: z$1.ZodString;
6667
- provider: z$1.ZodEnum<{
6668
- claudeCode: "claudeCode";
6669
- codex: "codex";
6670
- cursor: "cursor";
6671
- }>;
7078
+ provider: z$1.ZodString;
6672
7079
  type: z$1.ZodLiteral<"error">;
6673
7080
  }, z$1.core.$strip>], "type">;
6674
7081
  type ProviderCliInstallEvent = z$1.infer<typeof providerCliInstallEventSchema>;
@@ -7405,6 +7812,9 @@ declare const systemExecutionOptionsResponseSchema: z$1.ZodObject<{
7405
7812
  kind: z$1.ZodLiteral<"goal">;
7406
7813
  }, z$1.core.$strip>], "kind">>;
7407
7814
  displayName: z$1.ZodString;
7815
+ experimental_providerHealth: z$1.ZodBoolean;
7816
+ experimental_providerInstallation: z$1.ZodBoolean;
7817
+ experimental_providerUsage: z$1.ZodBoolean;
7408
7818
  id: z$1.ZodString;
7409
7819
  logoUrl: z$1.ZodNullable<z$1.ZodString>;
7410
7820
  }, z$1.core.$strip>>;
@@ -7443,9 +7853,13 @@ declare const systemExecutionOptionsResponseSchema: z$1.ZodObject<{
7443
7853
  type SystemExecutionOptionsResponse = z$1.infer<typeof systemExecutionOptionsResponseSchema>;
7444
7854
  /**
7445
7855
  * Routes provider discovery through an environment's host or an explicit
7446
- * host. Omitting both preserves the primary-host fallback.
7856
+ * host. Omitting both preserves the primary-host fallback. `capability`
7857
+ * narrows discovery before host probes begin.
7447
7858
  */
7448
7859
  declare const systemProvidersQuerySchema: z$1.ZodObject<{
7860
+ capability: z$1.ZodOptional<z$1.ZodEnum<{
7861
+ usage: "usage";
7862
+ }>>;
7449
7863
  environmentId: z$1.ZodOptional<z$1.ZodString>;
7450
7864
  hostId: z$1.ZodOptional<z$1.ZodString>;
7451
7865
  }, z$1.core.$strip>;
@@ -7456,32 +7870,42 @@ declare const systemExecutionOptionsQuerySchema: z$1.ZodObject<{
7456
7870
  providerId: z$1.ZodOptional<z$1.ZodString>;
7457
7871
  }, z$1.core.$strip>;
7458
7872
  type SystemExecutionOptionsQuery = z$1.infer<typeof systemExecutionOptionsQuerySchema>;
7459
- /** Omission preserves the existing behavior of reading the primary machine. */
7873
+ /**
7874
+ * Omitting `hostId` reads the primary machine; omitting `providerId` returns
7875
+ * the aggregate used by CLI clients.
7876
+ */
7460
7877
  declare const systemUsageLimitsQuerySchema: z$1.ZodObject<{
7461
7878
  hostId: z$1.ZodOptional<z$1.ZodString>;
7879
+ providerId: z$1.ZodOptional<z$1.ZodString>;
7462
7880
  }, z$1.core.$strip>;
7463
7881
  type SystemUsageLimitsQuery = z$1.infer<typeof systemUsageLimitsQuerySchema>;
7464
7882
  declare const systemVoiceTranscriptionResponseSchema: z$1.ZodObject<{
7465
7883
  text: z$1.ZodString;
7466
7884
  }, z$1.core.$strip>;
7467
7885
  type SystemVoiceTranscriptionResponse = z$1.infer<typeof systemVoiceTranscriptionResponseSchema>;
7468
- declare const onboardingAgentOverviewSchema: z$1.ZodObject<{
7469
- agents: z$1.ZodArray<z$1.ZodObject<{
7886
+ declare const systemProviderStatesResponseSchema: z$1.ZodObject<{
7887
+ providers: z$1.ZodArray<z$1.ZodObject<{
7470
7888
  accountEmail: z$1.ZodNullable<z$1.ZodString>;
7471
7889
  canInstall: z$1.ZodBoolean;
7890
+ canUpdate: z$1.ZodBoolean;
7472
7891
  displayName: z$1.ZodString;
7892
+ installedVersion: z$1.ZodNullable<z$1.ZodString>;
7473
7893
  loginCommand: z$1.ZodNullable<z$1.ZodString>;
7894
+ minimumSupportedVersion: z$1.ZodNullable<z$1.ZodString>;
7474
7895
  planLabel: z$1.ZodNullable<z$1.ZodString>;
7475
7896
  providerId: z$1.ZodString;
7476
7897
  status: z$1.ZodEnum<{
7477
- connected: "connected";
7478
7898
  expired: "expired";
7479
7899
  not_installed: "not_installed";
7900
+ ready: "ready";
7480
7901
  unauthenticated: "unauthenticated";
7902
+ unknown: "unknown";
7903
+ unsupported_version: "unsupported_version";
7481
7904
  }>;
7482
- }, z$1.core.$strip>>;
7905
+ statusMessage: z$1.ZodNullable<z$1.ZodString>;
7906
+ }, z$1.core.$loose>>;
7483
7907
  }, z$1.core.$strip>;
7484
- type OnboardingAgentOverview = z$1.infer<typeof onboardingAgentOverviewSchema>;
7908
+ type SystemProviderStatesResponse = z$1.infer<typeof systemProviderStatesResponseSchema>;
7485
7909
  declare const systemConfigResponseSchema: z$1.ZodObject<{
7486
7910
  appearance: z$1.ZodObject<{
7487
7911
  customCss: z$1.ZodNullable<z$1.ZodString>;
@@ -7609,6 +8033,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
7609
8033
  editMessages: "editMessages";
7610
8034
  mobileApp: "mobileApp";
7611
8035
  providerSessionReaping: "providerSessionReaping";
8036
+ timelineWindowing: "timelineWindowing";
7612
8037
  }>, z$1.ZodBoolean>;
7613
8038
  featureFlags: z$1.ZodObject<{
7614
8039
  placeholder: z$1.ZodBoolean;
@@ -7623,6 +8048,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
7623
8048
  showKeyboardHints: z$1.ZodBoolean;
7624
8049
  showUnhandledProviderEvents: z$1.ZodBoolean;
7625
8050
  steerActiveThreadOnEnter: z$1.ZodBoolean;
8051
+ streamerMode: z$1.ZodBoolean;
7626
8052
  }, z$1.core.$strict>;
7627
8053
  hostDaemonPort: z$1.ZodNullable<z$1.ZodNumber>;
7628
8054
  keybindingOverrides: z$1.ZodArray<z$1.ZodObject<{
@@ -10490,6 +10916,11 @@ declare const threadStoragePathsQuerySchema: z$1.ZodObject<{
10490
10916
  query: z$1.ZodOptional<z$1.ZodString>;
10491
10917
  }, z$1.core.$strip>;
10492
10918
  type ThreadStoragePathsQuery = z$1.infer<typeof threadStoragePathsQuerySchema>;
10919
+ declare const threadStorageLocationResponseSchema: z$1.ZodObject<{
10920
+ hostId: z$1.ZodString;
10921
+ storageRootPath: z$1.ZodString;
10922
+ }, z$1.core.$strict>;
10923
+ type ThreadStorageLocationResponse = z$1.infer<typeof threadStorageLocationResponseSchema>;
10493
10924
  declare const timelineTurnSummaryDetailsResponseSchema: z$1.ZodObject<{
10494
10925
  rows: z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>;
10495
10926
  }, z$1.core.$strip>;
@@ -10793,7 +11224,8 @@ declare const threadTabsResponseSchema: z$1.ZodObject<{
10793
11224
  }, z$1.core.$strict>;
10794
11225
  threadId: z$1.ZodNullable<z$1.ZodString>;
10795
11226
  }, z$1.core.$strict>, z$1.ZodObject<{
10796
- environmentId: z$1.ZodString;
11227
+ environmentId: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
11228
+ hostId: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
10797
11229
  kind: z$1.ZodLiteral<"host-file-preview">;
10798
11230
  tab: z$1.ZodObject<{
10799
11231
  lineRange: z$1.ZodNullable<z$1.ZodObject<{
@@ -10802,7 +11234,7 @@ declare const threadTabsResponseSchema: z$1.ZodObject<{
10802
11234
  }, z$1.core.$strict>>;
10803
11235
  path: z$1.ZodString;
10804
11236
  }, z$1.core.$strict>;
10805
- threadId: z$1.ZodString;
11237
+ threadId: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
10806
11238
  }, z$1.core.$strict>, z$1.ZodObject<{
10807
11239
  environmentId: z$1.ZodNullable<z$1.ZodString>;
10808
11240
  kind: z$1.ZodLiteral<"thread-storage-file-preview">;
@@ -10841,6 +11273,7 @@ declare const threadTabsResponseSchema: z$1.ZodObject<{
10841
11273
  statusLabel: z$1.ZodNullable<z$1.ZodLiteral<"deleted">>;
10842
11274
  }, z$1.core.$strict>, z$1.ZodObject<{
10843
11275
  environmentId: z$1.ZodNullable<z$1.ZodString>;
11276
+ hostId: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
10844
11277
  id: z$1.ZodString;
10845
11278
  kind: z$1.ZodLiteral<"host-file-preview">;
10846
11279
  lineRange: z$1.ZodNullable<z$1.ZodObject<{
@@ -10926,7 +11359,8 @@ declare const updateThreadTabsRequestSchema: z$1.ZodObject<{
10926
11359
  }, z$1.core.$strict>;
10927
11360
  threadId: z$1.ZodNullable<z$1.ZodString>;
10928
11361
  }, z$1.core.$strict>, z$1.ZodObject<{
10929
- environmentId: z$1.ZodString;
11362
+ environmentId: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
11363
+ hostId: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
10930
11364
  kind: z$1.ZodLiteral<"host-file-preview">;
10931
11365
  tab: z$1.ZodObject<{
10932
11366
  lineRange: z$1.ZodNullable<z$1.ZodObject<{
@@ -10935,7 +11369,7 @@ declare const updateThreadTabsRequestSchema: z$1.ZodObject<{
10935
11369
  }, z$1.core.$strict>>;
10936
11370
  path: z$1.ZodString;
10937
11371
  }, z$1.core.$strict>;
10938
- threadId: z$1.ZodString;
11372
+ threadId: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
10939
11373
  }, z$1.core.$strict>, z$1.ZodObject<{
10940
11374
  environmentId: z$1.ZodNullable<z$1.ZodString>;
10941
11375
  kind: z$1.ZodLiteral<"thread-storage-file-preview">;
@@ -10974,6 +11408,7 @@ declare const updateThreadTabsRequestSchema: z$1.ZodObject<{
10974
11408
  statusLabel: z$1.ZodNullable<z$1.ZodLiteral<"deleted">>;
10975
11409
  }, z$1.core.$strict>, z$1.ZodObject<{
10976
11410
  environmentId: z$1.ZodNullable<z$1.ZodString>;
11411
+ hostId: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
10977
11412
  id: z$1.ZodString;
10978
11413
  kind: z$1.ZodLiteral<"host-file-preview">;
10979
11414
  lineRange: z$1.ZodNullable<z$1.ZodObject<{
@@ -11236,6 +11671,13 @@ interface PluginFileOpenerSource {
11236
11671
  threadId: string | null;
11237
11672
  environmentId: string | null;
11238
11673
  projectId: string | null;
11674
+ /**
11675
+ * Explicit host selected for a project-backed workspace file. Omitted when
11676
+ * the source is resolved by its environment/thread or the primary host.
11677
+ *
11678
+ * @experimental Audit before relying on this as a stable contract.
11679
+ */
11680
+ experimental_hostId?: string;
11239
11681
  }
11240
11682
  /** Props passed to a `fileOpener` component (rendered as a panel file tab). */
11241
11683
  interface PluginFileOpenerProps {
@@ -11389,6 +11831,38 @@ interface PluginSettingsSectionRegistration {
11389
11831
  description?: string;
11390
11832
  component: ComponentType<PluginSettingsSectionProps>;
11391
11833
  }
11834
+ /**
11835
+ * Owner-defined validator for a fixed tab's transient target. The host first
11836
+ * verifies that the value is JSON-safe, then calls this validator before
11837
+ * selecting the tab or delivering the target.
11838
+ */
11839
+ interface ExperimentalFixedTabTargetContract<Target extends JsonValue> {
11840
+ validate(value: JsonValue): value is Target;
11841
+ }
11842
+ /** Stable, owner-scoped reference used by the app-panel controller. */
11843
+ type ExperimentalPluginFixedTabReference<Target extends JsonValue = never> = {
11844
+ /** The owning `navPanel` id; validated against the containing registration. */
11845
+ readonly panelId: string;
11846
+ /** Unique within the owning nav panel; letters, digits, `-`, `_`. */
11847
+ readonly id: string;
11848
+ } & ([Target] extends [never] ? {
11849
+ /** An untargeted tab cannot be opened with a target. */
11850
+ readonly experimental_target?: never;
11851
+ } : {
11852
+ /** Owner validation required before the host delivers a target. */
11853
+ readonly experimental_target: ExperimentalFixedTabTargetContract<Target>;
11854
+ });
11855
+ /** A fixed tab declared by a plugin nav panel. */
11856
+ type ExperimentalPluginFixedTabRegistration<Target extends JsonValue = never> = ExperimentalPluginFixedTabReference<Target> & {
11857
+ title: string;
11858
+ /** Icon hint (BB icon name); unknown names fall back to a generic icon. */
11859
+ icon: string;
11860
+ component: ComponentType<PluginNavPanelProps>;
11861
+ /** `flush` lets the component own padding and scrolling. */
11862
+ layout?: "flush" | "padded";
11863
+ };
11864
+ /** A fixed tab with either no target or an owner-validated JSON target. */
11865
+ type ExperimentalPluginFixedTabDeclaration = ExperimentalPluginFixedTabRegistration | ExperimentalPluginFixedTabRegistration<JsonValue>;
11392
11866
  interface PluginNavPanelRegistration {
11393
11867
  /** Unique within the plugin; letters, digits, `-`, `_`. */
11394
11868
  id: string;
@@ -11401,22 +11875,14 @@ interface PluginNavPanelRegistration {
11401
11875
  /**
11402
11876
  * Ordered, non-closable tabs shown in this page's host-owned right panel.
11403
11877
  * BB owns selection and persistence and always includes its native Browser
11404
- * and Terminal tools beside them. Components mount only while their tab is
11405
- * active and the panel is open, and receive the same `subPath` as the page
11406
- * component.
11878
+ * and Terminal tools beside them. One tab is active in each visible split
11879
+ * pane, so multiple fixed-tab components can be mounted concurrently. A
11880
+ * component mounts only while its tab is active in a visible pane and the
11881
+ * panel is open, and receives the same `subPath` as the page component.
11407
11882
  *
11408
11883
  * Experimental: see docs/api_to_audit.md.
11409
11884
  */
11410
- experimental_fixedTabs?: readonly {
11411
- /** Unique within this nav panel; letters, digits, `-`, `_`. */
11412
- id: string;
11413
- title: string;
11414
- /** Icon hint (BB icon name); unknown names fall back to a generic icon. */
11415
- icon: string;
11416
- component: ComponentType<PluginNavPanelProps>;
11417
- /** `flush` lets the component own padding and scrolling. */
11418
- layout?: "flush" | "padded";
11419
- }[];
11885
+ experimental_fixedTabs?: readonly ExperimentalPluginFixedTabDeclaration[];
11420
11886
  /**
11421
11887
  * Optional presentational component rendered at the trailing edge of this
11422
11888
  * panel's sidebar row. It receives no props so it can own a narrow live
@@ -12060,7 +12526,10 @@ interface PluginContentScriptRegistration {
12060
12526
  id: string;
12061
12527
  /**
12062
12528
  * Install behavior into the bb app shell. The host awaits a returned
12063
- * promise, contains failures, and calls the returned disposer exactly once.
12529
+ * promise, retains the plugin's imported frontend stylesheet for this
12530
+ * generation, contains failures, and calls the returned disposer exactly
12531
+ * once. Styling or decorating existing app-shell DOM belongs here rather
12532
+ * than in an always-on frontend stylesheet.
12064
12533
  */
12065
12534
  mount(context: PluginContentScriptContext): void | PluginContentScriptDisposer | Promise<void | PluginContentScriptDisposer>;
12066
12535
  }
@@ -12491,6 +12960,78 @@ interface MarkdownProps {
12491
12960
  content: string;
12492
12961
  className?: string;
12493
12962
  }
12963
+ /**
12964
+ * Props for BB's semantic URL link. The host owns ordinary activation while
12965
+ * retaining browser-owned anchor behavior for app routes, modifiers, explicit
12966
+ * targets, copying, and unsupported schemes. New top-level targets preserve
12967
+ * supplied `rel` tokens and receive safe defaults unless `opener` is explicit.
12968
+ * Experimental: see docs/api_to_audit.md.
12969
+ */
12970
+ interface ExperimentalUrlLinkProps extends Omit<ComponentPropsWithoutRef<"a">, "href"> {
12971
+ href: string;
12972
+ }
12973
+ /** A live file whose identity is complete without ambient route context. */
12974
+ type ExperimentalLiveFileTarget = {
12975
+ kind: "workspace";
12976
+ environmentId: string;
12977
+ path: string;
12978
+ } | {
12979
+ kind: "host";
12980
+ hostId: string;
12981
+ path: string;
12982
+ } | {
12983
+ kind: "thread-storage";
12984
+ threadId: string;
12985
+ path: string;
12986
+ };
12987
+ /** One-based location to reveal after a live file opens. */
12988
+ type ExperimentalFileLocation = {
12989
+ kind: "line";
12990
+ line: number;
12991
+ column: number | null;
12992
+ } | {
12993
+ kind: "range";
12994
+ startLine: number;
12995
+ endLine: number;
12996
+ };
12997
+ /** Options shared by BB's preview and preferred-external file intents. */
12998
+ interface ExperimentalFileOpenOptions {
12999
+ target: ExperimentalLiveFileTarget;
13000
+ location: ExperimentalFileLocation | null;
13001
+ }
13002
+ /**
13003
+ * Props for BB's host-rendered semantic file link. Valid targets receive a
13004
+ * scheme-safe anchor href; traversal paths, ill-formed Unicode, and other
13005
+ * malformed runtime targets remain inert.
13006
+ */
13007
+ interface ExperimentalFileLinkProps extends Omit<ComponentPropsWithoutRef<"a">, "href" | "target"> {
13008
+ target: ExperimentalLiveFileTarget;
13009
+ location?: ExperimentalFileLocation | null;
13010
+ }
13011
+ /** The panel surface resolved by the component making the request. */
13012
+ type ExperimentalAppPanelSurface = {
13013
+ kind: "current";
13014
+ };
13015
+ /**
13016
+ * The owning fixed tab's current memory-only target. It survives tab, panel,
13017
+ * and route remounts during the current app session, but is never persisted
13018
+ * across a refresh. Call `clear` when the owner returns to its untargeted state.
13019
+ */
13020
+ interface ExperimentalFixedTabTargetState<Target extends JsonValue> {
13021
+ readonly sequence: number;
13022
+ readonly target: Target;
13023
+ clear(): void;
13024
+ }
13025
+ type ExperimentalOpenFixedTabOptions<Target extends JsonValue> = {
13026
+ surface: ExperimentalAppPanelSurface;
13027
+ tab: ExperimentalPluginFixedTabReference<Target>;
13028
+ /** Omit to select the tab without replacing its current session target. */
13029
+ target?: NoInfer<Target>;
13030
+ };
13031
+ /** Surface-aware controller for selecting owner-scoped fixed tabs. */
13032
+ interface ExperimentalAppPanel {
13033
+ openFixedTab<Target extends JsonValue = never>(options: ExperimentalOpenFixedTabOptions<Target>): boolean;
13034
+ }
12494
13035
  /** Current app selection, derived from the route. */
12495
13036
  interface BbContext {
12496
13037
  projectId: string | null;
@@ -12525,6 +13066,16 @@ interface BbNavigate {
12525
13066
  * the action is unavailable.
12526
13067
  */
12527
13068
  openThreadPanel(options: PluginTargetedPanelActionOpenOptions): boolean;
13069
+ /**
13070
+ * Open an HTTP(S) URL using this client's BB browser preference. Returns
13071
+ * false for schemes the host does not own. Experimental: see
13072
+ * docs/api_to_audit.md.
13073
+ */
13074
+ experimental_openUrl(url: string): boolean;
13075
+ /** Open a live file in this surface's shared BB preview panel. */
13076
+ experimental_openFilePreview(options: ExperimentalFileOpenOptions): boolean;
13077
+ /** Open a live file in this client's preferred external file target. */
13078
+ experimental_openFileExternally(options: ExperimentalFileOpenOptions): boolean;
12528
13079
  }
12529
13080
  /**
12530
13081
  * Everything `@get-bb/plugin-sdk/app` resolves to at runtime. The BB app builds
@@ -12545,6 +13096,10 @@ interface PluginSdkApp {
12545
13096
  useSettings(): PluginSettingsState;
12546
13097
  useBbContext(): BbContext;
12547
13098
  useBbNavigate(): BbNavigate;
13099
+ /** Select one of this plugin's eligible fixed tabs on the current surface. */
13100
+ experimental_useAppPanel(): ExperimentalAppPanel;
13101
+ /** Read or clear the owning tab's validated, session-scoped target. */
13102
+ experimental_useFixedTabTarget<Target extends JsonValue>(tab: ExperimentalPluginFixedTabReference<Target>): ExperimentalFixedTabTargetState<Target> | null;
12548
13103
  useComposer(): PluginComposerApi;
12549
13104
  /**
12550
13105
  * The sidebar's live thread view (see {@link PluginSidebarThreadsState}).
@@ -12595,6 +13150,13 @@ interface PluginSdkApp {
12595
13150
  * {@link MarkdownProps}).
12596
13151
  */
12597
13152
  Markdown: ComponentType<MarkdownProps>;
13153
+ /**
13154
+ * A real anchor whose ordinary HTTP(S) activation uses BB's URL preference.
13155
+ * Experimental: see docs/api_to_audit.md.
13156
+ */
13157
+ experimental_UrlLink: ComponentType<ExperimentalUrlLinkProps>;
13158
+ /** Host-rendered live-file link backed by the shared navigation controller. */
13159
+ experimental_FileLink: ComponentType<ExperimentalFileLinkProps>;
12598
13160
  /**
12599
13161
  * The host-owned new-thread compose surface (see
12600
13162
  * {@link NewThreadComposerProps}). Experimental: see
@@ -13049,6 +13611,7 @@ type ProviderHostRoutingArgs = {
13049
13611
  hostId?: never;
13050
13612
  };
13051
13613
  type ProviderListArgs = ProviderHostRoutingArgs & {
13614
+ capability?: SystemProvidersQuery["capability"];
13052
13615
  signal?: AbortSignal;
13053
13616
  };
13054
13617
  type ProviderModelsArgs = ProviderHostRoutingArgs & {
@@ -13467,10 +14030,10 @@ type SystemUpdateExperimentsResult = Experiments;
13467
14030
  type SystemUpdateGeneralSettingsResult = AppSettings;
13468
14031
  type SystemUpdateKeyboardSettingsResult = AppKeybindingOverrides;
13469
14032
  type SystemUsageLimitsResult = ProviderUsageResponse;
13470
- interface SystemOnboardingArgs extends SystemProvidersQuery {
14033
+ interface SystemProviderStatesArgs extends SystemProvidersQuery {
13471
14034
  signal?: AbortSignal;
13472
14035
  }
13473
- type SystemOnboardingAgentsResult = OnboardingAgentOverview;
14036
+ type SystemProviderStatesResult = SystemProviderStatesResponse;
13474
14037
  type SystemVersionResult = SystemVersionResponse;
13475
14038
  interface SystemArea {
13476
14039
  attention(args?: SystemAttentionArgs): Promise<SystemAttentionResult>;
@@ -13489,8 +14052,8 @@ interface SystemArea {
13489
14052
  updateExperiments(args: Experiments): Promise<SystemUpdateExperimentsResult>;
13490
14053
  updateGeneralSettings(args: AppSettings): Promise<SystemUpdateGeneralSettingsResult>;
13491
14054
  updateKeyboardSettings(args: AppKeybindingOverrides): Promise<SystemUpdateKeyboardSettingsResult>;
13492
- /** Live agent state for onboarding: install, auth, and plan per provider. */
13493
- onboardingAgents(args?: SystemOnboardingArgs): Promise<SystemOnboardingAgentsResult>;
14055
+ /** Live host-local install and authentication state for every provider. */
14056
+ providerStates(args?: SystemProviderStatesArgs): Promise<SystemProviderStatesResult>;
13494
14057
  usageLimits(args?: SystemUsageLimitsArgs): Promise<SystemUsageLimitsResult>;
13495
14058
  version(args?: SystemVersionArgs): Promise<SystemVersionResult>;
13496
14059
  }
@@ -13674,6 +14237,7 @@ type ThreadQueuedMessageGroupBoundaryResult = ThreadQueuedMessageListResponse;
13674
14237
  type ThreadTabsResult = ThreadTabsResponse;
13675
14238
  type ThreadTabsUpdateResult = ThreadTabsResponse;
13676
14239
  type ThreadStorageFilesResult = ThreadStorageFileListResponse;
14240
+ type ThreadStorageLocationResult = ThreadStorageLocationResponse;
13677
14241
  type ThreadStoragePathsResult = ThreadStoragePathListResponse;
13678
14242
  type ThreadChildSummaryResult = ThreadChildSummaryResponse;
13679
14243
  type ThreadDefaultExecutionOptionsResult = ResolvedThreadExecutionOptions | null;
@@ -13902,6 +14466,7 @@ interface ThreadsArea {
13902
14466
  timeline(args: ThreadTimelineArgs): Promise<ThreadTimelineResult>;
13903
14467
  timelineTurnSummaryDetails(args: ThreadTimelineTurnSummaryDetailsArgs): Promise<ThreadTimelineTurnSummaryDetailsResult>;
13904
14468
  storageFiles(args: ThreadStorageFilesArgs): Promise<ThreadStorageFilesResult>;
14469
+ storageLocation(args: ThreadStatusArgs): Promise<ThreadStorageLocationResult>;
13905
14470
  storagePaths(args: ThreadStoragePathsArgs): Promise<ThreadStoragePathsResult>;
13906
14471
  unarchive(args: ThreadActionArgs): Promise<ThreadUnarchiveResult>;
13907
14472
  unpin(args: ThreadActionArgs): Promise<ThreadMutationResult>;
@@ -14220,7 +14785,10 @@ interface PluginBackground {
14220
14785
  * factory completes and should resolve when `signal` aborts
14221
14786
  * (dispose/reload/disable/shutdown). A crash restarts it with capped
14222
14787
  * exponential backoff; throwing NeedsConfigurationError marks the plugin
14223
- * `needs-configuration` and stops restarting until the next load.
14788
+ * `needs-configuration` and stops restarting until the next load. An
14789
+ * error raised outside the `start` promise (an unlistened EventEmitter
14790
+ * 'error', a throw in a timer callback, a detached rejection) counts as
14791
+ * a crash too: the run is aborted and restarted the same way.
14224
14792
  */
14225
14793
  service(name: string, service: {
14226
14794
  start(signal: AbortSignal): void | Promise<void>;
@@ -14460,10 +15028,23 @@ type PluginProviderComposerAction = "goal" | "plan";
14460
15028
  * live session (picker rendering, route gating, cross-plugin tool
14461
15029
  * composition — including with the host offline). Every boolean is a
14462
15030
  * provider-native fact — the provider implements the feature; the flag only
14463
- * tells external consumers it exists. Everything else is a handshake fact the
14464
- * bridge reports at `initialize`, where it cannot drift from behavior.
15031
+ * tells external consumers it exists. Session-behavior facts remain handshake
15032
+ * capabilities reported by the running bridge. Sessionless maintenance
15033
+ * methods are declared here so callers can decide whether to probe without
15034
+ * starting the bridge first.
14465
15035
  */
14466
15036
  interface PluginProviderCapabilities {
15037
+ /** The provider bridge implements the sessionless `provider/health`
15038
+ * request. This is host-local readiness, not a network health check. */
15039
+ experimental_providerHealth: boolean;
15040
+ /** The provider exposes subscription usage through the sessionless
15041
+ * `provider/usage` request. False means callers skip the request and usage
15042
+ * settings omit the provider. A shared bridge that declares true may still
15043
+ * report usage unavailable for one provider id or return no windows. */
15044
+ experimental_providerUsage: boolean;
15045
+ /** The provider bridge implements `provider/installation/status` and
15046
+ * `provider/installation/run` for host-local installation management. */
15047
+ experimental_providerInstallation: boolean;
14467
15048
  /** The provider accepts a fast/priority service-tier choice — shows the
14468
15049
  * service-tier toggle in the picker. */
14469
15050
  supportsServiceTier: boolean;
@@ -14507,11 +15088,11 @@ interface PluginProviderCapabilities {
14507
15088
  * refused. Registrations are replaced wholesale on plugin reload, like every
14508
15089
  * other plugin surface.
14509
15090
  *
14510
- * A declaration is metadata only. The implementation is the plugin's own
14511
- * provider bridge, named by `bb.providerBridge` in the manifest and built into
14512
- * the artifact BB ships to hosts declaring a provider without one is
14513
- * refused, because the picker entry would exist and no turn on it could ever
14514
- * run.
15091
+ * A declaration owns the provider's static metadata and bridge options. The
15092
+ * executable implementation is the plugin's own provider bridge, named by
15093
+ * `bb.providerBridge` in the manifest and built into the artifact BB ships to
15094
+ * hosts declaring a provider without one is refused, because the picker
15095
+ * entry would exist and no turn on it could ever run.
14515
15096
  */
14516
15097
  interface PluginProviderDeclaration {
14517
15098
  /** Stable provider id: 2–64 characters of lowercase letters, digits, and
@@ -14527,6 +15108,19 @@ interface PluginProviderDeclaration {
14527
15108
  * — no leading "/", no ".." segments, no backslashes.
14528
15109
  */
14529
15110
  icon?: string;
15111
+ /**
15112
+ * Provider-owned static options passed opaquely to this plugin's bridge on
15113
+ * every sessionless and session request. Core validates that the value is
15114
+ * JSON, but does not interpret its keys. This is intended for immutable
15115
+ * launch metadata shared by every host (for example an ACP command spec),
15116
+ * not user or machine configuration.
15117
+ */
15118
+ experimental_bridgeOptions?: Readonly<Record<string, JsonValue>>;
15119
+ /**
15120
+ * Whether the provider is always listed or only listed on hosts where its
15121
+ * bridge reports it installed. Defaults to `"always"`.
15122
+ */
15123
+ experimental_visibility?: "always" | "installed";
14530
15124
  /** Pre-session capability facts (see the declaration tests on
14531
15125
  * {@link PluginProviderCapabilities}). */
14532
15126
  capabilities: PluginProviderCapabilities;
@@ -14776,4 +15370,4 @@ interface BbPluginApi {
14776
15370
  }
14777
15371
 
14778
15372
  export { PLUGIN_CLI_OUTPUT_MAX_BYTES, defineRpcContract, experimental_defineHostEntry };
14779
- export type { BbContext, BbNavigate, BbPluginApi, CodeOverflowMode, ComposerCustomization, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerStructuredDraft, ComposerView, DiffProps, DiffViewMode, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolExperimentalStatusLabels, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAppBuilder, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginCli, PluginCliCommandInfo, PluginCliContext, PluginCliExecutionResult, PluginCliOutputLimitError, PluginCliRegistration, PluginCliResult, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderIconRegistration, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginRealtime, PluginRealtimeConnectionState, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActions, PluginSidebarThreadActivity, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSidebarWorkspaceKind, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginTargetedPanelActionOpenOptions, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginUi, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps };
15373
+ export type { BbContext, BbNavigate, BbPluginApi, CodeOverflowMode, ComposerCustomization, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerStructuredDraft, ComposerView, DiffProps, DiffViewMode, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPluginFixedTabDeclaration, ExperimentalPluginFixedTabReference, ExperimentalPluginFixedTabRegistration, ExperimentalUrlLinkProps, JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolExperimentalStatusLabels, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAppBuilder, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginCli, PluginCliCommandInfo, PluginCliContext, PluginCliExecutionResult, PluginCliOutputLimitError, PluginCliRegistration, PluginCliResult, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderIconRegistration, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginRealtime, PluginRealtimeConnectionState, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActions, PluginSidebarThreadActivity, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSidebarWorkspaceKind, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginTargetedPanelActionOpenOptions, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginUi, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps };