@get-bb/plugin-sdk 0.6.23 → 0.6.31

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.
@@ -49,14 +49,17 @@ declare const appSettingsSchema: z$1.ZodObject<{
49
49
  confirmThreadArchive: z$1.ZodBoolean;
50
50
  defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
51
51
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
52
+ keepHistoryAfterContextClear: z$1.ZodBoolean;
52
53
  machineGitCredentialsEnabled: z$1.ZodBoolean;
53
54
  machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
54
55
  managedBranchPrefix: z$1.ZodString;
56
+ onboardingCompletedAt: z$1.ZodNullable<z$1.ZodString>;
55
57
  providerCompletedTurnDisplay: z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
56
58
  collapse: "collapse";
57
59
  flat: "flat";
58
60
  }>>;
59
61
  providerOrder: z$1.ZodArray<z$1.ZodString>;
62
+ setupChecklistVisible: z$1.ZodBoolean;
60
63
  showDiagnosticEvents: z$1.ZodBoolean;
61
64
  showGitChanges: z$1.ZodBoolean;
62
65
  showKeyboardHints: z$1.ZodBoolean;
@@ -70,14 +73,17 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
70
73
  confirmThreadArchive: z$1.ZodOptional<z$1.ZodBoolean>;
71
74
  defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
72
75
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
76
+ keepHistoryAfterContextClear: z$1.ZodOptional<z$1.ZodBoolean>;
73
77
  machineGitCredentialsEnabled: z$1.ZodBoolean;
74
78
  machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
75
79
  managedBranchPrefix: z$1.ZodString;
80
+ onboardingCompletedAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
76
81
  providerCompletedTurnDisplay: z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
77
82
  collapse: "collapse";
78
83
  flat: "flat";
79
84
  }>>;
80
85
  providerOrder: z$1.ZodArray<z$1.ZodString>;
86
+ setupChecklistVisible: z$1.ZodOptional<z$1.ZodBoolean>;
81
87
  showDiagnosticEvents: z$1.ZodBoolean;
82
88
  showGitChanges: z$1.ZodOptional<z$1.ZodBoolean>;
83
89
  showKeyboardHints: z$1.ZodBoolean;
@@ -90,14 +96,17 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
90
96
  confirmThreadArchive: z$1.ZodOptional<z$1.ZodBoolean>;
91
97
  defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
92
98
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
99
+ keepHistoryAfterContextClear: z$1.ZodOptional<z$1.ZodBoolean>;
93
100
  machineGitCredentialsEnabled: z$1.ZodBoolean;
94
101
  machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
95
102
  managedBranchPrefix: z$1.ZodString;
103
+ onboardingCompletedAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
96
104
  providerCompletedTurnDisplay: z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
97
105
  collapse: "collapse";
98
106
  flat: "flat";
99
107
  }>>;
100
108
  providerOrder: z$1.ZodArray<z$1.ZodString>;
109
+ setupChecklistVisible: z$1.ZodOptional<z$1.ZodBoolean>;
101
110
  showGitChanges: z$1.ZodOptional<z$1.ZodBoolean>;
102
111
  showKeyboardHints: z$1.ZodBoolean;
103
112
  showUnhandledProviderEvents: z$1.ZodBoolean;
@@ -212,6 +221,7 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
212
221
  "panel.toggle": "panel.toggle";
213
222
  "plugins.enterSafeMode": "plugins.enterSafeMode";
214
223
  "plugins.exitSafeMode": "plugins.exitSafeMode";
224
+ "plugins.pruneCache": "plugins.pruneCache";
215
225
  "question.select.1": "question.select.1";
216
226
  "question.select.2": "question.select.2";
217
227
  "question.select.3": "question.select.3";
@@ -359,6 +369,7 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
359
369
  }>;
360
370
  updatedAt: z$1.ZodNumber;
361
371
  }, z$1.core.$strict>>;
372
+ timelineSequence: z$1.ZodOptional<z$1.ZodNumber>;
362
373
  }, z$1.core.$strict>>;
363
374
  type: z$1.ZodLiteral<"changed">;
364
375
  }, z$1.core.$strict>, z$1.ZodObject<{
@@ -400,6 +411,8 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
400
411
  "app-update-changed": "app-update-changed";
401
412
  "config-changed": "config-changed";
402
413
  "environment-availability-changed": "environment-availability-changed";
414
+ "plugin-install-jobs-changed": "plugin-install-jobs-changed";
415
+ "plugin-update-jobs-changed": "plugin-update-jobs-changed";
403
416
  "plugins-changed": "plugins-changed";
404
417
  "provider-registrations-changed": "provider-registrations-changed";
405
418
  "server-move-changed": "server-move-changed";
@@ -4453,6 +4466,14 @@ declare const mobileAppDownloads: {
4453
4466
  android: string;
4454
4467
  };
4455
4468
 
4469
+ interface EnvironmentRemoval {
4470
+ environmentId: string;
4471
+ removedAt: number;
4472
+ hostId: string | null;
4473
+ path: string | null;
4474
+ providerOwnedPath: boolean;
4475
+ }
4476
+
4456
4477
  declare const threadContextResponseSchema: z$1.ZodObject<{
4457
4478
  usage: z$1.ZodNullable<z$1.ZodObject<{
4458
4479
  estimated: z$1.ZodBoolean;
@@ -8173,6 +8194,7 @@ declare const hostDaemonCommandRegistry: {
8173
8194
  canInstall: z$1.ZodBoolean;
8174
8195
  canUpdate: z$1.ZodBoolean;
8175
8196
  installedVersion: z$1.ZodNullable<z$1.ZodString>;
8197
+ localLoginCommand: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
8176
8198
  loginCommand: z$1.ZodNullable<z$1.ZodString>;
8177
8199
  minimumSupportedVersion: z$1.ZodNullable<z$1.ZodString>;
8178
8200
  planLabel: z$1.ZodNullable<z$1.ZodString>;
@@ -8362,6 +8384,20 @@ declare const hostDaemonCommandRegistry: {
8362
8384
  status: z$1.ZodLiteral<"error">;
8363
8385
  }, z$1.core.$loose>], "status">;
8364
8386
  }, z$1.core.$loose>], "supported">, "onlineRpc", true>;
8387
+ "host.discover_repos": HostDaemonCommandDescriptor<"host.discover_repos", z$1.ZodObject<{
8388
+ limit: z$1.ZodNumber;
8389
+ maxDepth: z$1.ZodNumber;
8390
+ sinceDays: z$1.ZodNumber;
8391
+ type: z$1.ZodLiteral<"host.discover_repos">;
8392
+ }, z$1.core.$strict>, z$1.ZodObject<{
8393
+ repos: z$1.ZodArray<z$1.ZodObject<{
8394
+ lastActivityAt: z$1.ZodString;
8395
+ name: z$1.ZodString;
8396
+ originUrl: z$1.ZodNullable<z$1.ZodString>;
8397
+ path: z$1.ZodString;
8398
+ }, z$1.core.$strict>>;
8399
+ truncated: z$1.ZodBoolean;
8400
+ }, z$1.core.$strict>, "onlineRpc", true>;
8365
8401
  "workspace.status": HostDaemonCommandDescriptor<"workspace.status", z$1.ZodObject<{
8366
8402
  environmentId: z$1.ZodString;
8367
8403
  maxUntrackedLineStatBytes: z$1.ZodNumber;
@@ -9116,6 +9152,17 @@ declare const hostDirectoryListingSchema: z$1.ZodObject<{
9116
9152
  parent: z$1.ZodNullable<z$1.ZodString>;
9117
9153
  }, z$1.core.$strip>;
9118
9154
  type HostDirectoryListing = z$1.infer<typeof hostDirectoryListingSchema>;
9155
+ declare const hostDiscoveredReposResponseSchema: z$1.ZodObject<{
9156
+ repos: z$1.ZodArray<z$1.ZodObject<{
9157
+ lastActivityAt: z$1.ZodString;
9158
+ name: z$1.ZodString;
9159
+ originUrl: z$1.ZodNullable<z$1.ZodString>;
9160
+ path: z$1.ZodString;
9161
+ projectId: z$1.ZodNullable<z$1.ZodString>;
9162
+ }, z$1.core.$strip>>;
9163
+ truncated: z$1.ZodBoolean;
9164
+ }, z$1.core.$strip>;
9165
+ type HostDiscoveredReposResponse = z$1.infer<typeof hostDiscoveredReposResponseSchema>;
9119
9166
  declare const hostCloneDefaultPathQuerySchema: z$1.ZodObject<{
9120
9167
  projectId: z$1.ZodString;
9121
9168
  }, z$1.core.$strip>;
@@ -9215,6 +9262,52 @@ declare const pluginApplyUpdateResultSchema: z$1.ZodObject<{
9215
9262
  }, z$1.core.$strip>>;
9216
9263
  }, z$1.core.$strip>;
9217
9264
  type PluginApplyUpdateResult$1 = z$1.infer<typeof pluginApplyUpdateResultSchema>;
9265
+ declare const pluginUpdateJobSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
9266
+ displayName: z$1.ZodString;
9267
+ id: z$1.ZodString;
9268
+ pluginId: z$1.ZodString;
9269
+ state: z$1.ZodLiteral<"queued">;
9270
+ }, z$1.core.$strip>, z$1.ZodObject<{
9271
+ displayName: z$1.ZodString;
9272
+ id: z$1.ZodString;
9273
+ phase: z$1.ZodEnum<{
9274
+ "rolling-back": "rolling-back";
9275
+ activating: "activating";
9276
+ checking: "checking";
9277
+ preparing: "preparing";
9278
+ }>;
9279
+ pluginId: z$1.ZodString;
9280
+ state: z$1.ZodLiteral<"running">;
9281
+ }, z$1.core.$strip>, z$1.ZodObject<{
9282
+ displayName: z$1.ZodString;
9283
+ id: z$1.ZodString;
9284
+ pluginId: z$1.ZodString;
9285
+ result: z$1.ZodObject<{
9286
+ applied: z$1.ZodBoolean;
9287
+ detail: z$1.ZodOptional<z$1.ZodString>;
9288
+ from: z$1.ZodObject<{
9289
+ display: z$1.ZodString;
9290
+ version: z$1.ZodString;
9291
+ }, z$1.core.$strip>;
9292
+ outcome: z$1.ZodEnum<{
9293
+ "rolled-back": "rolled-back";
9294
+ current: "current";
9295
+ updated: "updated";
9296
+ }>;
9297
+ to: z$1.ZodOptional<z$1.ZodObject<{
9298
+ display: z$1.ZodString;
9299
+ version: z$1.ZodString;
9300
+ }, z$1.core.$strip>>;
9301
+ }, z$1.core.$strip>;
9302
+ state: z$1.ZodLiteral<"completed">;
9303
+ }, z$1.core.$strip>, z$1.ZodObject<{
9304
+ displayName: z$1.ZodString;
9305
+ error: z$1.ZodString;
9306
+ id: z$1.ZodString;
9307
+ pluginId: z$1.ZodString;
9308
+ state: z$1.ZodLiteral<"failed">;
9309
+ }, z$1.core.$strip>], "state">;
9310
+ type PluginUpdateJob = z$1.infer<typeof pluginUpdateJobSchema>;
9218
9311
  declare const pluginSourceDetailSchema: z$1.ZodObject<{
9219
9312
  engines: z$1.ZodObject<{
9220
9313
  bb: z$1.ZodOptional<z$1.ZodString>;
@@ -9475,6 +9568,253 @@ declare const pluginListResponseSchema: z$1.ZodObject<{
9475
9568
  }, z$1.core.$strip>>;
9476
9569
  }, z$1.core.$strip>;
9477
9570
  type PluginListResponse = z$1.infer<typeof pluginListResponseSchema>;
9571
+ declare const pluginInstallJobSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
9572
+ displayName: z$1.ZodString;
9573
+ id: z$1.ZodString;
9574
+ state: z$1.ZodLiteral<"queued">;
9575
+ target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
9576
+ entryId: z$1.ZodString;
9577
+ kind: z$1.ZodLiteral<"catalog">;
9578
+ marketplace: z$1.ZodString;
9579
+ }, z$1.core.$strict>, z$1.ZodObject<{
9580
+ kind: z$1.ZodLiteral<"source">;
9581
+ selection: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
9582
+ kind: z$1.ZodLiteral<"root">;
9583
+ }, z$1.core.$strict>, z$1.ZodObject<{
9584
+ kind: z$1.ZodLiteral<"subdirectory">;
9585
+ path: z$1.ZodString;
9586
+ }, z$1.core.$strict>, z$1.ZodObject<{
9587
+ kind: z$1.ZodLiteral<"entry">;
9588
+ name: z$1.ZodString;
9589
+ }, z$1.core.$strict>], "kind">;
9590
+ source: z$1.ZodString;
9591
+ }, z$1.core.$strict>], "kind">;
9592
+ }, z$1.core.$strip>, z$1.ZodObject<{
9593
+ displayName: z$1.ZodString;
9594
+ id: z$1.ZodString;
9595
+ state: z$1.ZodLiteral<"running">;
9596
+ target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
9597
+ entryId: z$1.ZodString;
9598
+ kind: z$1.ZodLiteral<"catalog">;
9599
+ marketplace: z$1.ZodString;
9600
+ }, z$1.core.$strict>, z$1.ZodObject<{
9601
+ kind: z$1.ZodLiteral<"source">;
9602
+ selection: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
9603
+ kind: z$1.ZodLiteral<"root">;
9604
+ }, z$1.core.$strict>, z$1.ZodObject<{
9605
+ kind: z$1.ZodLiteral<"subdirectory">;
9606
+ path: z$1.ZodString;
9607
+ }, z$1.core.$strict>, z$1.ZodObject<{
9608
+ kind: z$1.ZodLiteral<"entry">;
9609
+ name: z$1.ZodString;
9610
+ }, z$1.core.$strict>], "kind">;
9611
+ source: z$1.ZodString;
9612
+ }, z$1.core.$strict>], "kind">;
9613
+ }, z$1.core.$strip>, z$1.ZodObject<{
9614
+ displayName: z$1.ZodString;
9615
+ id: z$1.ZodString;
9616
+ state: z$1.ZodLiteral<"cancelling">;
9617
+ target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
9618
+ entryId: z$1.ZodString;
9619
+ kind: z$1.ZodLiteral<"catalog">;
9620
+ marketplace: z$1.ZodString;
9621
+ }, z$1.core.$strict>, z$1.ZodObject<{
9622
+ kind: z$1.ZodLiteral<"source">;
9623
+ selection: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
9624
+ kind: z$1.ZodLiteral<"root">;
9625
+ }, z$1.core.$strict>, z$1.ZodObject<{
9626
+ kind: z$1.ZodLiteral<"subdirectory">;
9627
+ path: z$1.ZodString;
9628
+ }, z$1.core.$strict>, z$1.ZodObject<{
9629
+ kind: z$1.ZodLiteral<"entry">;
9630
+ name: z$1.ZodString;
9631
+ }, z$1.core.$strict>], "kind">;
9632
+ source: z$1.ZodString;
9633
+ }, z$1.core.$strict>], "kind">;
9634
+ }, z$1.core.$strip>, z$1.ZodObject<{
9635
+ displayName: z$1.ZodString;
9636
+ id: z$1.ZodString;
9637
+ plugin: z$1.ZodObject<{
9638
+ app: z$1.ZodObject<{
9639
+ bundle: z$1.ZodNullable<z$1.ZodObject<{
9640
+ compatible: z$1.ZodBoolean;
9641
+ cssUrl: z$1.ZodNullable<z$1.ZodString>;
9642
+ hash: z$1.ZodString;
9643
+ jsBytes: z$1.ZodNumber;
9644
+ jsUrl: z$1.ZodString;
9645
+ sdkMajor: z$1.ZodNumber;
9646
+ sdkVersion: z$1.ZodString;
9647
+ }, z$1.core.$strip>>;
9648
+ hasApp: z$1.ZodBoolean;
9649
+ }, z$1.core.$strip>;
9650
+ capabilities: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
9651
+ detail: z$1.ZodNullable<z$1.ZodString>;
9652
+ id: z$1.ZodString;
9653
+ kind: z$1.ZodEnum<{
9654
+ "agent-tool": "agent-tool";
9655
+ "thread-integration": "thread-integration";
9656
+ skill: "skill";
9657
+ theme: "theme";
9658
+ }>;
9659
+ label: z$1.ZodString;
9660
+ }, z$1.core.$strip>>>;
9661
+ catalogEntryId: z$1.ZodOptional<z$1.ZodString>;
9662
+ catalogMarketplaceName: z$1.ZodOptional<z$1.ZodString>;
9663
+ category: z$1.ZodOptional<z$1.ZodString>;
9664
+ categoryId: z$1.ZodOptional<z$1.ZodString>;
9665
+ cliCommand: z$1.ZodNullable<z$1.ZodObject<{
9666
+ name: z$1.ZodString;
9667
+ summary: z$1.ZodString;
9668
+ }, z$1.core.$strip>>;
9669
+ collections: z$1.ZodArray<z$1.ZodObject<{
9670
+ id: z$1.ZodString;
9671
+ rank: z$1.ZodNumber;
9672
+ }, z$1.core.$strip>>;
9673
+ description: z$1.ZodNullable<z$1.ZodString>;
9674
+ enabled: z$1.ZodBoolean;
9675
+ handlerStats: z$1.ZodObject<{
9676
+ count: z$1.ZodNumber;
9677
+ errorCount: z$1.ZodNumber;
9678
+ maxMs: z$1.ZodNumber;
9679
+ totalMs: z$1.ZodNumber;
9680
+ }, z$1.core.$strip>;
9681
+ hasSettings: z$1.ZodBoolean;
9682
+ icon: z$1.ZodNullable<z$1.ZodString>;
9683
+ iconUrl: z$1.ZodNullable<z$1.ZodString>;
9684
+ icons: z$1.ZodRecord<z$1.ZodString, z$1.ZodString>;
9685
+ id: z$1.ZodString;
9686
+ isOrphanedBuiltin: z$1.ZodBoolean;
9687
+ logoDarkUrl: z$1.ZodNullable<z$1.ZodString>;
9688
+ logoUrl: z$1.ZodNullable<z$1.ZodString>;
9689
+ name: z$1.ZodNullable<z$1.ZodString>;
9690
+ provenance: z$1.ZodEnum<{
9691
+ builtin: "builtin";
9692
+ catalog: "catalog";
9693
+ direct: "direct";
9694
+ }>;
9695
+ providerIds: z$1.ZodArray<z$1.ZodString>;
9696
+ publishedAt: z$1.ZodOptional<z$1.ZodISODateTime>;
9697
+ publisherLabel: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
9698
+ rootDir: z$1.ZodString;
9699
+ schedules: z$1.ZodArray<z$1.ZodObject<{
9700
+ cron: z$1.ZodString;
9701
+ lastError: z$1.ZodNullable<z$1.ZodString>;
9702
+ lastRunAt: z$1.ZodNullable<z$1.ZodNumber>;
9703
+ lastStatus: z$1.ZodNullable<z$1.ZodEnum<{
9704
+ error: "error";
9705
+ ok: "ok";
9706
+ running: "running";
9707
+ }>>;
9708
+ name: z$1.ZodString;
9709
+ nextRunAt: z$1.ZodNumber;
9710
+ }, z$1.core.$strip>>;
9711
+ screenshots: z$1.ZodArray<z$1.ZodString>;
9712
+ services: z$1.ZodArray<z$1.ZodObject<{
9713
+ name: z$1.ZodString;
9714
+ state: z$1.ZodEnum<{
9715
+ backoff: "backoff";
9716
+ running: "running";
9717
+ stopped: "stopped";
9718
+ }>;
9719
+ }, z$1.core.$strip>>;
9720
+ source: z$1.ZodString;
9721
+ sourceDisplay: z$1.ZodString;
9722
+ status: z$1.ZodEnum<{
9723
+ "needs-configuration": "needs-configuration";
9724
+ degraded: "degraded";
9725
+ disabled: "disabled";
9726
+ error: "error";
9727
+ incompatible: "incompatible";
9728
+ missing: "missing";
9729
+ running: "running";
9730
+ starting: "starting";
9731
+ }>;
9732
+ statusDetail: z$1.ZodNullable<z$1.ZodString>;
9733
+ updateState: z$1.ZodObject<{
9734
+ availableVersion: z$1.ZodOptional<z$1.ZodString>;
9735
+ blockedReasons: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
9736
+ blockedVersion: z$1.ZodOptional<z$1.ZodString>;
9737
+ detail: z$1.ZodOptional<z$1.ZodString>;
9738
+ lastCheckAt: z$1.ZodOptional<z$1.ZodNumber>;
9739
+ lastFailure: z$1.ZodOptional<z$1.ZodObject<{
9740
+ at: z$1.ZodNumber;
9741
+ detail: z$1.ZodString;
9742
+ version: z$1.ZodString;
9743
+ }, z$1.core.$strip>>;
9744
+ outcome: z$1.ZodOptional<z$1.ZodEnum<{
9745
+ "update-available": "update-available";
9746
+ current: "current";
9747
+ incompatible: "incompatible";
9748
+ pinned: "pinned";
9749
+ unavailable: "unavailable";
9750
+ }>>;
9751
+ }, z$1.core.$strip>;
9752
+ updatedAt: z$1.ZodOptional<z$1.ZodISODateTime>;
9753
+ version: z$1.ZodString;
9754
+ }, z$1.core.$strip>;
9755
+ state: z$1.ZodLiteral<"succeeded">;
9756
+ target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
9757
+ entryId: z$1.ZodString;
9758
+ kind: z$1.ZodLiteral<"catalog">;
9759
+ marketplace: z$1.ZodString;
9760
+ }, z$1.core.$strict>, z$1.ZodObject<{
9761
+ kind: z$1.ZodLiteral<"source">;
9762
+ selection: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
9763
+ kind: z$1.ZodLiteral<"root">;
9764
+ }, z$1.core.$strict>, z$1.ZodObject<{
9765
+ kind: z$1.ZodLiteral<"subdirectory">;
9766
+ path: z$1.ZodString;
9767
+ }, z$1.core.$strict>, z$1.ZodObject<{
9768
+ kind: z$1.ZodLiteral<"entry">;
9769
+ name: z$1.ZodString;
9770
+ }, z$1.core.$strict>], "kind">;
9771
+ source: z$1.ZodString;
9772
+ }, z$1.core.$strict>], "kind">;
9773
+ }, z$1.core.$strip>, z$1.ZodObject<{
9774
+ displayName: z$1.ZodString;
9775
+ error: z$1.ZodString;
9776
+ id: z$1.ZodString;
9777
+ state: z$1.ZodLiteral<"failed">;
9778
+ target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
9779
+ entryId: z$1.ZodString;
9780
+ kind: z$1.ZodLiteral<"catalog">;
9781
+ marketplace: z$1.ZodString;
9782
+ }, z$1.core.$strict>, z$1.ZodObject<{
9783
+ kind: z$1.ZodLiteral<"source">;
9784
+ selection: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
9785
+ kind: z$1.ZodLiteral<"root">;
9786
+ }, z$1.core.$strict>, z$1.ZodObject<{
9787
+ kind: z$1.ZodLiteral<"subdirectory">;
9788
+ path: z$1.ZodString;
9789
+ }, z$1.core.$strict>, z$1.ZodObject<{
9790
+ kind: z$1.ZodLiteral<"entry">;
9791
+ name: z$1.ZodString;
9792
+ }, z$1.core.$strict>], "kind">;
9793
+ source: z$1.ZodString;
9794
+ }, z$1.core.$strict>], "kind">;
9795
+ }, z$1.core.$strip>, z$1.ZodObject<{
9796
+ displayName: z$1.ZodString;
9797
+ id: z$1.ZodString;
9798
+ state: z$1.ZodLiteral<"cancelled">;
9799
+ target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
9800
+ entryId: z$1.ZodString;
9801
+ kind: z$1.ZodLiteral<"catalog">;
9802
+ marketplace: z$1.ZodString;
9803
+ }, z$1.core.$strict>, z$1.ZodObject<{
9804
+ kind: z$1.ZodLiteral<"source">;
9805
+ selection: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
9806
+ kind: z$1.ZodLiteral<"root">;
9807
+ }, z$1.core.$strict>, z$1.ZodObject<{
9808
+ kind: z$1.ZodLiteral<"subdirectory">;
9809
+ path: z$1.ZodString;
9810
+ }, z$1.core.$strict>, z$1.ZodObject<{
9811
+ kind: z$1.ZodLiteral<"entry">;
9812
+ name: z$1.ZodString;
9813
+ }, z$1.core.$strict>], "kind">;
9814
+ source: z$1.ZodString;
9815
+ }, z$1.core.$strict>], "kind">;
9816
+ }, z$1.core.$strip>], "state">;
9817
+ type PluginInstallJob$1 = z$1.infer<typeof pluginInstallJobSchema>;
9478
9818
  declare const pluginReloadResponseSchema: z$1.ZodObject<{
9479
9819
  ok: z$1.ZodLiteral<true>;
9480
9820
  plugins: z$1.ZodArray<z$1.ZodObject<{
@@ -9644,6 +9984,17 @@ declare const pluginSafeModeUpdateResponseSchema: z$1.ZodObject<{
9644
9984
  problems: z$1.ZodArray<z$1.ZodString>;
9645
9985
  }, z$1.core.$strip>;
9646
9986
  type PluginSafeModeUpdateResponse = z$1.infer<typeof pluginSafeModeUpdateResponseSchema>;
9987
+ declare const pluginCachePruneResponseSchema: z$1.ZodObject<{
9988
+ bytes: z$1.ZodNumber;
9989
+ dryRun: z$1.ZodBoolean;
9990
+ removed: z$1.ZodArray<z$1.ZodObject<{
9991
+ bytes: z$1.ZodNumber;
9992
+ path: z$1.ZodString;
9993
+ pluginId: z$1.ZodNullable<z$1.ZodString>;
9994
+ version: z$1.ZodString;
9995
+ }, z$1.core.$strip>>;
9996
+ }, z$1.core.$strip>;
9997
+ type PluginCachePruneResponse = z$1.infer<typeof pluginCachePruneResponseSchema>;
9647
9998
  declare const pluginTokenResponseSchema: z$1.ZodObject<{
9648
9999
  ok: z$1.ZodLiteral<true>;
9649
10000
  token: z$1.ZodString;
@@ -10034,6 +10385,10 @@ type SystemExecutionOptionsQuery = z$1.infer<typeof systemExecutionOptionsQueryS
10034
10385
  declare const systemUsageLimitsQuerySchema: z$1.ZodObject<{
10035
10386
  hostId: z$1.ZodOptional<z$1.ZodString>;
10036
10387
  providerId: z$1.ZodOptional<z$1.ZodString>;
10388
+ refresh: z$1.ZodOptional<z$1.ZodEnum<{
10389
+ false: "false";
10390
+ true: "true";
10391
+ }>>;
10037
10392
  }, z$1.core.$strip>;
10038
10393
  type SystemUsageLimitsQuery = z$1.infer<typeof systemUsageLimitsQuerySchema>;
10039
10394
  declare const systemVoiceTranscriptionResponseSchema: z$1.ZodObject<{
@@ -10047,6 +10402,7 @@ declare const systemProviderStatesResponseSchema: z$1.ZodObject<{
10047
10402
  canUpdate: z$1.ZodBoolean;
10048
10403
  displayName: z$1.ZodString;
10049
10404
  installedVersion: z$1.ZodNullable<z$1.ZodString>;
10405
+ localLoginCommand: z$1.ZodNullable<z$1.ZodString>;
10050
10406
  loginCommand: z$1.ZodNullable<z$1.ZodString>;
10051
10407
  minimumSupportedVersion: z$1.ZodNullable<z$1.ZodString>;
10052
10408
  planLabel: z$1.ZodNullable<z$1.ZodString>;
@@ -10221,6 +10577,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10221
10577
  "panel.toggle": "panel.toggle";
10222
10578
  "plugins.enterSafeMode": "plugins.enterSafeMode";
10223
10579
  "plugins.exitSafeMode": "plugins.exitSafeMode";
10580
+ "plugins.pruneCache": "plugins.pruneCache";
10224
10581
  "question.select.1": "question.select.1";
10225
10582
  "question.select.2": "question.select.2";
10226
10583
  "question.select.3": "question.select.3";
@@ -10310,14 +10667,17 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10310
10667
  confirmThreadArchive: z$1.ZodBoolean;
10311
10668
  defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
10312
10669
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
10670
+ keepHistoryAfterContextClear: z$1.ZodBoolean;
10313
10671
  machineGitCredentialsEnabled: z$1.ZodBoolean;
10314
10672
  machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
10315
10673
  managedBranchPrefix: z$1.ZodString;
10674
+ onboardingCompletedAt: z$1.ZodNullable<z$1.ZodString>;
10316
10675
  providerCompletedTurnDisplay: z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
10317
10676
  collapse: "collapse";
10318
10677
  flat: "flat";
10319
10678
  }>>;
10320
10679
  providerOrder: z$1.ZodArray<z$1.ZodString>;
10680
+ setupChecklistVisible: z$1.ZodBoolean;
10321
10681
  showDiagnosticEvents: z$1.ZodBoolean;
10322
10682
  showGitChanges: z$1.ZodBoolean;
10323
10683
  showKeyboardHints: z$1.ZodBoolean;
@@ -10376,6 +10736,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10376
10736
  "panel.toggle": "panel.toggle";
10377
10737
  "plugins.enterSafeMode": "plugins.enterSafeMode";
10378
10738
  "plugins.exitSafeMode": "plugins.exitSafeMode";
10739
+ "plugins.pruneCache": "plugins.pruneCache";
10379
10740
  "question.select.1": "question.select.1";
10380
10741
  "question.select.2": "question.select.2";
10381
10742
  "question.select.3": "question.select.3";
@@ -10471,6 +10832,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10471
10832
  "panel.toggle": "panel.toggle";
10472
10833
  "plugins.enterSafeMode": "plugins.enterSafeMode";
10473
10834
  "plugins.exitSafeMode": "plugins.exitSafeMode";
10835
+ "plugins.pruneCache": "plugins.pruneCache";
10474
10836
  "question.select.1": "question.select.1";
10475
10837
  "question.select.2": "question.select.2";
10476
10838
  "question.select.3": "question.select.3";
@@ -13391,6 +13753,10 @@ declare const updateQueuedMessageRequestSchema: z$1.ZodObject<{
13391
13753
  }, z$1.core.$strip>], "type">>;
13392
13754
  }, z$1.core.$strip>;
13393
13755
  type UpdateQueuedMessageRequest = z$1.infer<typeof updateQueuedMessageRequestSchema>;
13756
+ declare const queuedMessageEditHoldResponseSchema: z$1.ZodObject<{
13757
+ leaseMs: z$1.ZodNumber;
13758
+ }, z$1.core.$strip>;
13759
+ type QueuedMessageEditHoldResponse = z$1.infer<typeof queuedMessageEditHoldResponseSchema>;
13394
13760
  declare const sendQueuedMessageRequestSchema: z$1.ZodObject<{
13395
13761
  mode: z$1.ZodEnum<{
13396
13762
  auto: "auto";
@@ -16400,6 +16766,10 @@ interface HostDirectoryArgs extends HostDirectoryQuery {
16400
16766
  hostId: string;
16401
16767
  signal?: AbortSignal;
16402
16768
  }
16769
+ interface HostDiscoverReposArgs {
16770
+ hostId: string;
16771
+ signal?: AbortSignal;
16772
+ }
16403
16773
  interface HostCloneDefaultPathArgs extends HostCloneDefaultPathQuery {
16404
16774
  hostId: string;
16405
16775
  signal?: AbortSignal;
@@ -16432,6 +16802,7 @@ type HostDeleteResult = {
16432
16802
  ok: true;
16433
16803
  };
16434
16804
  type HostDirectoryResult = HostDirectoryListing;
16805
+ type HostDiscoverReposResult = HostDiscoveredReposResponse;
16435
16806
  type HostGetResult = Host & {
16436
16807
  connectMachineId: string | null;
16437
16808
  threadStorageRootPath: string | null;
@@ -16457,6 +16828,7 @@ interface HostsArea {
16457
16828
  delete(args: HostDeleteArgs): Promise<HostDeleteResult>;
16458
16829
  experimental_deleteOldServerCopy(args: HostActionArgs): Promise<DeleteOldServerCopyResponse>;
16459
16830
  directory(args: HostDirectoryArgs): Promise<HostDirectoryResult>;
16831
+ experimental_discoverRepos(args: HostDiscoverReposArgs): Promise<HostDiscoverReposResult>;
16460
16832
  get(args: HostGetArgs): Promise<HostGetResult>;
16461
16833
  cloneDefaultPath(args: HostCloneDefaultPathArgs): Promise<HostCloneDefaultPathResult>;
16462
16834
  installProviderCli(args: HostProviderCliInstallArgs): Promise<HostProviderCliInstallResult>;
@@ -16709,6 +17081,12 @@ interface PluginCatalogInstallArgs {
16709
17081
  marketplace?: string;
16710
17082
  confirmedSource?: PluginCatalogResolvedSource;
16711
17083
  }
17084
+ interface PluginInstallJobArgs {
17085
+ jobId: string;
17086
+ }
17087
+ interface PluginInstallJobListArgs {
17088
+ signal?: AbortSignal;
17089
+ }
16712
17090
  interface PluginCatalogInstallPlanArgs {
16713
17091
  entryId: string;
16714
17092
  marketplace?: string;
@@ -16768,18 +17146,27 @@ interface PluginListUpdateResultsArgs {
16768
17146
  interface PluginGetSafeModeArgs {
16769
17147
  signal?: AbortSignal;
16770
17148
  }
17149
+ interface PluginRpcDiscoveryArgs extends PluginRpcDiscoveryQuery {
17150
+ signal?: AbortSignal;
17151
+ }
16771
17152
  interface PluginSetSafeModeArgs {
16772
17153
  enabled: boolean;
16773
17154
  }
17155
+ interface PluginPruneCacheArgs {
17156
+ dryRun?: boolean;
17157
+ signal?: AbortSignal;
17158
+ }
16774
17159
  type PluginDisableResult = InstalledPlugin;
16775
17160
  type PluginEnableResult = InstalledPlugin;
16776
17161
  type PluginGetSettingsResult = PluginSettingsResponse;
16777
17162
  type PluginInstallResult = InstalledPlugin;
17163
+ type PluginInstallJob = PluginInstallJob$1;
16778
17164
  type PluginListResult = PluginListResponse;
16779
17165
  type PluginReloadResult = PluginReloadResponse;
16780
17166
  type PluginRemoveResult = PluginRemoveResponse;
16781
17167
  type PluginSafeModeResult = PluginSafeModeResponse;
16782
17168
  type PluginSetSafeModeResult = PluginSafeModeUpdateResponse;
17169
+ type PluginPruneCacheResult = PluginCachePruneResponse;
16783
17170
  type PluginTokenResult = PluginTokenResponse;
16784
17171
  type PluginUpdateSettingsResult = PluginSettingsResponse;
16785
17172
  type PluginGetSourceResult = PluginSourceDetail;
@@ -16796,6 +17183,7 @@ interface PluginMarketplaceRemoveResult {
16796
17183
  }
16797
17184
  interface PluginCatalogArea {
16798
17185
  install(args: PluginCatalogInstallArgs): Promise<PluginInstallResult>;
17186
+ startInstall(args: PluginCatalogInstallArgs): Promise<PluginInstallJob>;
16799
17187
  installPlan(args: PluginCatalogInstallPlanArgs): Promise<PluginCatalogInstallPlanResult>;
16800
17188
  search(args: PluginCatalogSearchArgs): Promise<PluginCatalogSearchResult>;
16801
17189
  status(args?: PluginCatalogStatusArgs): Promise<PluginCatalogStatusResult>;
@@ -16806,11 +17194,27 @@ interface PluginMarketplacesArea {
16806
17194
  refresh(args?: PluginMarketplaceRefreshArgs): Promise<PluginMarketplaceRefreshResult>;
16807
17195
  remove(args: PluginMarketplaceRemoveArgs): Promise<PluginMarketplaceRemoveResult>;
16808
17196
  }
17197
+ interface PluginInstallJobsArea {
17198
+ cancel(args: PluginInstallJobArgs): Promise<PluginInstallJob>;
17199
+ get(args: PluginInstallJobArgs): Promise<PluginInstallJob>;
17200
+ list(args?: PluginInstallJobListArgs): Promise<PluginInstallJob[]>;
17201
+ }
17202
+ interface PluginUpdateJobsArea {
17203
+ get(args: {
17204
+ jobId: string;
17205
+ }): Promise<PluginUpdateJob>;
17206
+ list(args?: {
17207
+ signal?: AbortSignal;
17208
+ }): Promise<PluginUpdateJob[]>;
17209
+ }
16809
17210
  interface PluginsArea {
16810
- experimental_discoverRpc(args?: PluginRpcDiscoveryQuery): Promise<PublishedPluginRpcMethod[]>;
17211
+ experimental_discoverRpc(args?: PluginRpcDiscoveryArgs): Promise<PublishedPluginRpcMethod[]>;
16811
17212
  experimental_getSafeMode(args?: PluginGetSafeModeArgs): Promise<PluginSafeModeResult>;
16812
17213
  experimental_setSafeMode(args: PluginSetSafeModeArgs): Promise<PluginSetSafeModeResult>;
17214
+ experimental_pruneCache(args?: PluginPruneCacheArgs): Promise<PluginPruneCacheResult>;
16813
17215
  applyUpdate(args: PluginIdArgs): Promise<PluginApplyUpdateResult>;
17216
+ experimental_startUpdate(args: PluginIdArgs): Promise<PluginUpdateJob>;
17217
+ experimental_updateJobs: PluginUpdateJobsArea;
16814
17218
  callRpc<TOutput>(args: PluginRpcArgs<TOutput>): Promise<TOutput>;
16815
17219
  checkUpdates(args?: PluginCheckUpdatesArgs): Promise<PluginCheckUpdatesResult>;
16816
17220
  catalog: PluginCatalogArea;
@@ -16820,6 +17224,8 @@ interface PluginsArea {
16820
17224
  getSettings(args: PluginGetSettingsArgs): Promise<PluginGetSettingsResult>;
16821
17225
  getSource(args: PluginGetSourceArgs): Promise<PluginGetSourceResult>;
16822
17226
  install(args: PluginInstallArgs): Promise<PluginInstallResult>;
17227
+ startInstall(args: PluginInstallArgs): Promise<PluginInstallJob>;
17228
+ installJobs: PluginInstallJobsArea;
16823
17229
  list(args?: PluginListArgs): Promise<PluginListResult>;
16824
17230
  listUpdateResults(args?: PluginListUpdateResultsArgs): Promise<PluginCheckUpdatesResult>;
16825
17231
  reload(args?: PluginReloadArgs): Promise<PluginReloadResult>;
@@ -17034,7 +17440,8 @@ interface SystemConfigArgs {
17034
17440
  interface SystemExecutionOptionsArgs extends SystemExecutionOptionsQuery {
17035
17441
  signal?: AbortSignal;
17036
17442
  }
17037
- interface SystemUsageLimitsArgs extends SystemUsageLimitsQuery {
17443
+ interface SystemUsageLimitsArgs extends Omit<SystemUsageLimitsQuery, "refresh"> {
17444
+ refresh?: boolean;
17038
17445
  signal?: AbortSignal;
17039
17446
  }
17040
17447
  interface SystemVersionArgs {
@@ -17345,6 +17752,10 @@ type ThreadQueuedMessageUpdateResult = ThreadQueuedMessage;
17345
17752
  type ThreadQueuedMessageDeleteResult = {
17346
17753
  ok: true;
17347
17754
  };
17755
+ type ThreadQueuedMessageEditHoldResult = QueuedMessageEditHoldResponse;
17756
+ type ThreadQueuedMessageEditHoldReleaseResult = {
17757
+ ok: true;
17758
+ };
17348
17759
  type ThreadQueuedMessageReorderResult = ThreadQueuedMessageListResponse;
17349
17760
  type ThreadQueuedMessageSendResult = SendQueuedMessageResponse;
17350
17761
  type ThreadQueuedMessageGroupBoundaryResult = ThreadQueuedMessageListResponse;
@@ -17575,6 +17986,8 @@ interface ThreadEventsArea {
17575
17986
  interface ThreadQueuedMessagesArea {
17576
17987
  create(args: ThreadQueuedMessageCreateArgs): Promise<ThreadQueuedMessageCreateResult>;
17577
17988
  delete(args: ThreadQueuedMessageTargetArgs): Promise<ThreadQueuedMessageDeleteResult>;
17989
+ experimental_holdForEdit(args: ThreadQueuedMessageTargetArgs): Promise<ThreadQueuedMessageEditHoldResult>;
17990
+ experimental_releaseEditHold(args: ThreadQueuedMessageTargetArgs): Promise<ThreadQueuedMessageEditHoldReleaseResult>;
17578
17991
  list(args: ThreadQueuedMessageArgs): Promise<ThreadQueuedMessagesResult>;
17579
17992
  reorder(args: ThreadQueuedMessageReorderArgs): Promise<ThreadQueuedMessageReorderResult>;
17580
17993
  send(args: ThreadQueuedMessageSendArgs): Promise<ThreadQueuedMessageSendResult>;
@@ -19011,6 +19424,15 @@ interface PluginCodeThemeState {
19011
19424
  /** null only before the first theme file resolves. */
19012
19425
  theme: PluginCodeThemeData | null;
19013
19426
  }
19427
+ /**
19428
+ * What {@link PluginSdkApp.experimental_copyToClipboard} writes: plain text,
19429
+ * plus an HTML representation for paste targets that accept rich text.
19430
+ * Without `html`, only plain text is written.
19431
+ */
19432
+ interface ExperimentalClipboardContent {
19433
+ text: string;
19434
+ html?: string;
19435
+ }
19014
19436
  /**
19015
19437
  * The `threads` area of {@link PluginBrowserBbSdk}: bb's public thread API
19016
19438
  * with the calling plugin's identity filled in. `spawn` and `fork` stamp
@@ -19138,6 +19560,8 @@ interface PluginSidebarThreadActions {
19138
19560
  rename(threadId: string, title: string): Promise<void>;
19139
19561
  /** Confirms before including child threads unless archive confirmation is disabled in Settings → General. */
19140
19562
  archive(threadId: string): void;
19563
+ /** Archives an environment's active thread trees with bb's optimistic updates, pane cleanup, and one Undo toast. Rejects after bb shows an error toast on failure. */
19564
+ experimental_archiveEnvironmentThreads(environmentId: string): Promise<void>;
19141
19565
  /**
19142
19566
  * Opens bb's delete confirmation, which counts child threads first. Deletion
19143
19567
  * is destructive and recursive, so the host owns the confirmation: there is
@@ -20843,9 +21267,11 @@ interface BbNavigate {
20843
21267
  focusPrompt?: boolean;
20844
21268
  }): void;
20845
21269
  /**
20846
- * Open one of this plugin's registered thread-panel actions in the current
20847
- * thread surface. Returns false when the surface has no thread side panel or
20848
- * the action is unavailable.
21270
+ * Open one of this plugin's registered panel actions in the current
21271
+ * surface's side panel: a `threadPanelAction` in a thread, or an
21272
+ * `experimental_newThreadPanelAction` on the New thread screen. Plugin
21273
+ * commands use the same opener. Returns false when the surface has no side
21274
+ * panel actions (plugin pages) or the action is unavailable.
20849
21275
  */
20850
21276
  openThreadPanel(options: PluginTargetedPanelActionOpenOptions): boolean;
20851
21277
  /**
@@ -20858,6 +21284,20 @@ interface BbNavigate {
20858
21284
  experimental_openFilePreview(options: ExperimentalFileOpenOptions): boolean;
20859
21285
  /** Open a live file in this client's preferred external file target. */
20860
21286
  experimental_openFileExternally(options: ExperimentalFileOpenOptions): boolean;
21287
+ /**
21288
+ * Show a terminal session in this surface's BB terminal panel: select its
21289
+ * tab, adding one when needed, and reveal the panel. Create the session
21290
+ * first with `useSdk().terminals.create`, whose scope chooses the thread,
21291
+ * environment, or host directory it runs in. A thread surface accepts only
21292
+ * that thread's terminals, the New thread screen only terminals in its
21293
+ * current terminal scope, and a plugin page any terminal. Resolves false
21294
+ * for unknown or exited terminals and surfaces without a terminal panel.
21295
+ * Closing the tab closes the terminal. Experimental: see
21296
+ * docs/api_to_audit.md.
21297
+ */
21298
+ experimental_openTerminal(options: {
21299
+ terminalId: string;
21300
+ }): Promise<boolean>;
20861
21301
  }
20862
21302
  /**
20863
21303
  * Everything `@get-bb/plugin-sdk/app` resolves to at runtime. The BB app builds
@@ -21047,10 +21487,14 @@ interface PluginSdkApp {
21047
21487
  * surfaces without further work. Reserve `useRpc` for work that needs your
21048
21488
  * server: secrets, host files, or your plugin's own storage.
21049
21489
  *
21050
- * Thread title, section, and parent updates are optimistic in bb's surfaces
21051
- * and synchronous calls are applied as one cache transaction. Other writes
21052
- * land when their realtime update does. `experimental_useSidebarThreadActions()`
21053
- * stays the optimistic path for pin, read state, rename, and archive.
21490
+ * Thread title, section, parent, pin, and unpin writes are optimistic in
21491
+ * bb's surfaces. Synchronous calls share one cache transaction; writes to
21492
+ * the same thread execute in order, so unpin and move can be submitted
21493
+ * together. Unarchive, environment-group archive, project/machine/environment
21494
+ * renames, and project/section removal are also optimistic and roll back on
21495
+ * failure. Created sections enter the cache when the server assigns their id.
21496
+ * `experimental_useSidebarThreadActions()` owns navigation, read state,
21497
+ * archive confirmation, and delete confirmation.
21054
21498
  *
21055
21499
  * The client is stable for the plugin's lifetime, so it is safe in effect
21056
21500
  * and callback dependency lists.
@@ -21070,6 +21514,17 @@ interface PluginSdkApp {
21070
21514
  * docs/api_to_audit.md.
21071
21515
  */
21072
21516
  experimental_useCodeTheme(): PluginCodeThemeState;
21517
+ /**
21518
+ * Writes content to the system clipboard through bb's own clipboard writer,
21519
+ * the one bb's copy actions use. A plain function, callable from
21520
+ * components, content scripts, and command callbacks. bb Desktop writes
21521
+ * through the native clipboard, so copies work without window focus or a
21522
+ * secure origin; browsers use the Clipboard API, then the copy command.
21523
+ * Resolves true once the clipboard holds the content and false when every
21524
+ * write path failed; it never rejects. Callers own their success and
21525
+ * failure feedback. Experimental: see docs/api_to_audit.md.
21526
+ */
21527
+ experimental_copyToClipboard(content: ExperimentalClipboardContent): Promise<boolean>;
21073
21528
  /**
21074
21529
  * The host-owned chat component (see {@link ThreadChatProps}). Together
21075
21530
  * with `Markdown`, the only components the SDK ships — everything else
@@ -21657,6 +22112,9 @@ interface PluginTurnFailedEvent {
21657
22112
  * queued row GET /threads/:id/queued-messages serves.
21658
22113
  */
21659
22114
  interface PluginThreadEventPayloads {
22115
+ "experimental_environment.removed": {
22116
+ removal: EnvironmentRemoval;
22117
+ };
21660
22118
  /** Debounced per thread (at most once per second), with the latest sequence and current thread DTO. Reading history does not emit this event. */
21661
22119
  "experimental_thread.events": {
21662
22120
  thread: ThreadResponse;
@@ -22287,7 +22745,7 @@ interface PluginInteractionRequest {
22287
22745
  rendererId: string;
22288
22746
  title: string;
22289
22747
  payload: JsonValue;
22290
- /** Defaults to ten minutes; capped at one hour. */
22748
+ /** Defaults to ten minutes; capped at seven days. */
22291
22749
  timeoutMs?: number;
22292
22750
  /**
22293
22751
  * How the form reads as a timeline row while it waits and once it settles,
@@ -23565,4 +24023,4 @@ declare function cliCommand<const TOptions extends CliOptions = Record<string, n
23565
24023
  declare function defineCli(spec: PluginCliSpec): PluginCliRegistration;
23566
24024
 
23567
24025
  export { PLUGIN_CLI_OUTPUT_MAX_BYTES, PluginCliError, cliCommand, defineCli, defineRpcContract, experimental_defineHostEntry };
23568
- export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarHeaderRegistration, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalVoiceInputTextareaProps, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActions, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginTargetedPanelActionOpenOptions, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
24026
+ export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalClipboardContent, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarHeaderRegistration, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalVoiceInputTextareaProps, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActions, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginTargetedPanelActionOpenOptions, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };