@get-bb/plugin-sdk 0.6.26 → 0.6.33

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;
@@ -107,7 +116,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
107
116
  }, z$1.core.$strict>]>;
108
117
  type AppSettingsUpdate = z$1.infer<typeof appSettingsUpdateSchema>;
109
118
 
110
- declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.threadGrouping.environment", "sidebar.chronologicalSort", "sidebar.sortDirection", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.hiddenGroups", "sidebar.collapsedSections", "sidebar.collapsedProjects", "sidebar.collapsedThreads", "sidebar.collapsedEnvironments", "sidebar.collapsedThreadSections", "sidebar.collapsedMachines", "sidebar.footerOrder", "sidebar.hiddenFooterItems", "sidebar.pluginPanelOrder", "sidebar.visiblePluginPanels", "sidebar.navigationProvider", "sidebar.headerProvider", "sidebar.threadListProvider", "infoPanel.collapsedSections"];
119
+ declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.threadGrouping.environment", "sidebar.chronologicalSort", "sidebar.sortDirection", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.hiddenGroups", "sidebar.collapsedSections", "sidebar.collapsedProjects", "sidebar.collapsedThreads", "sidebar.collapsedEnvironments", "sidebar.collapsedThreadSections", "sidebar.collapsedMachines", "sidebar.footerOrder", "sidebar.hiddenFooterItems", "sidebar.pluginPanelOrder", "sidebar.visiblePluginPanels", "sidebar.threadListProvider", "infoPanel.collapsedSections"];
111
120
  type UiPreferenceKey = (typeof UI_PREFERENCE_KEYS)[number];
112
121
  interface UiPreferenceDefinition<Schema extends z$1.ZodTypeAny = z$1.ZodTypeAny> {
113
122
  schema: Schema;
@@ -149,8 +158,6 @@ declare const uiPreferenceDefinitions: {
149
158
  readonly "sidebar.hiddenFooterItems": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
150
159
  readonly "sidebar.pluginPanelOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
151
160
  readonly "sidebar.visiblePluginPanels": UiPreferenceDefinition<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString>>>;
152
- readonly "sidebar.navigationProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
153
- readonly "sidebar.headerProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
154
161
  readonly "sidebar.threadListProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
155
162
  readonly "infoPanel.collapsedSections": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
156
163
  };
@@ -243,6 +250,7 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
243
250
  "thread.search": "thread.search";
244
251
  "window.find": "window.find";
245
252
  "window.new": "window.new";
253
+ "window.reload": "window.reload";
246
254
  "workspace.openPreferred": "workspace.openPreferred";
247
255
  }>, z$1.ZodTemplateLiteral<`plugin:${string}/${string}`>]>;
248
256
  platform: z$1.ZodOptional<z$1.ZodEnum<{
@@ -503,14 +511,12 @@ type Environment = z$1.infer<typeof environmentSchema>;
503
511
 
504
512
  declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
505
513
  changelogPreview: "changelogPreview";
506
- navigationRail: "navigationRail";
507
514
  performanceDiagnostics: "performanceDiagnostics";
508
515
  serverMove: "serverMove";
509
516
  }>, z$1.ZodBoolean>;
510
517
  type Experiments = z$1.infer<typeof experimentsSchema>;
511
518
  declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
512
519
  changelogPreview: "changelogPreview";
513
- navigationRail: "navigationRail";
514
520
  performanceDiagnostics: "performanceDiagnostics";
515
521
  serverMove: "serverMove";
516
522
  }> & z$1.core.$partial, z$1.ZodBoolean>;
@@ -4457,6 +4463,14 @@ declare const mobileAppDownloads: {
4457
4463
  android: string;
4458
4464
  };
4459
4465
 
4466
+ interface EnvironmentRemoval {
4467
+ environmentId: string;
4468
+ removedAt: number;
4469
+ hostId: string | null;
4470
+ path: string | null;
4471
+ providerOwnedPath: boolean;
4472
+ }
4473
+
4460
4474
  declare const threadContextResponseSchema: z$1.ZodObject<{
4461
4475
  usage: z$1.ZodNullable<z$1.ZodObject<{
4462
4476
  estimated: z$1.ZodBoolean;
@@ -5353,6 +5367,10 @@ declare const promptHistoryListResponseSchema: z$1.ZodObject<{
5353
5367
  }>>;
5354
5368
  }, z$1.core.$strip>], "type">>;
5355
5369
  projectId: z$1.ZodString;
5370
+ scope: z$1.ZodEnum<{
5371
+ project: "project";
5372
+ thread: "thread";
5373
+ }>;
5356
5374
  threadId: z$1.ZodString;
5357
5375
  }, z$1.core.$strip>>;
5358
5376
  nextCursor: z$1.ZodNullable<z$1.ZodString>;
@@ -8177,6 +8195,7 @@ declare const hostDaemonCommandRegistry: {
8177
8195
  canInstall: z$1.ZodBoolean;
8178
8196
  canUpdate: z$1.ZodBoolean;
8179
8197
  installedVersion: z$1.ZodNullable<z$1.ZodString>;
8198
+ localLoginCommand: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
8180
8199
  loginCommand: z$1.ZodNullable<z$1.ZodString>;
8181
8200
  minimumSupportedVersion: z$1.ZodNullable<z$1.ZodString>;
8182
8201
  planLabel: z$1.ZodNullable<z$1.ZodString>;
@@ -8366,6 +8385,20 @@ declare const hostDaemonCommandRegistry: {
8366
8385
  status: z$1.ZodLiteral<"error">;
8367
8386
  }, z$1.core.$loose>], "status">;
8368
8387
  }, z$1.core.$loose>], "supported">, "onlineRpc", true>;
8388
+ "host.discover_repos": HostDaemonCommandDescriptor<"host.discover_repos", z$1.ZodObject<{
8389
+ limit: z$1.ZodNumber;
8390
+ maxDepth: z$1.ZodNumber;
8391
+ sinceDays: z$1.ZodNumber;
8392
+ type: z$1.ZodLiteral<"host.discover_repos">;
8393
+ }, z$1.core.$strict>, z$1.ZodObject<{
8394
+ repos: z$1.ZodArray<z$1.ZodObject<{
8395
+ lastActivityAt: z$1.ZodString;
8396
+ name: z$1.ZodString;
8397
+ originUrl: z$1.ZodNullable<z$1.ZodString>;
8398
+ path: z$1.ZodString;
8399
+ }, z$1.core.$strict>>;
8400
+ truncated: z$1.ZodBoolean;
8401
+ }, z$1.core.$strict>, "onlineRpc", true>;
8369
8402
  "workspace.status": HostDaemonCommandDescriptor<"workspace.status", z$1.ZodObject<{
8370
8403
  environmentId: z$1.ZodString;
8371
8404
  maxUntrackedLineStatBytes: z$1.ZodNumber;
@@ -9120,6 +9153,17 @@ declare const hostDirectoryListingSchema: z$1.ZodObject<{
9120
9153
  parent: z$1.ZodNullable<z$1.ZodString>;
9121
9154
  }, z$1.core.$strip>;
9122
9155
  type HostDirectoryListing = z$1.infer<typeof hostDirectoryListingSchema>;
9156
+ declare const hostDiscoveredReposResponseSchema: z$1.ZodObject<{
9157
+ repos: z$1.ZodArray<z$1.ZodObject<{
9158
+ lastActivityAt: z$1.ZodString;
9159
+ name: z$1.ZodString;
9160
+ originUrl: z$1.ZodNullable<z$1.ZodString>;
9161
+ path: z$1.ZodString;
9162
+ projectId: z$1.ZodNullable<z$1.ZodString>;
9163
+ }, z$1.core.$strip>>;
9164
+ truncated: z$1.ZodBoolean;
9165
+ }, z$1.core.$strip>;
9166
+ type HostDiscoveredReposResponse = z$1.infer<typeof hostDiscoveredReposResponseSchema>;
9123
9167
  declare const hostCloneDefaultPathQuerySchema: z$1.ZodObject<{
9124
9168
  projectId: z$1.ZodString;
9125
9169
  }, z$1.core.$strip>;
@@ -10342,6 +10386,10 @@ type SystemExecutionOptionsQuery = z$1.infer<typeof systemExecutionOptionsQueryS
10342
10386
  declare const systemUsageLimitsQuerySchema: z$1.ZodObject<{
10343
10387
  hostId: z$1.ZodOptional<z$1.ZodString>;
10344
10388
  providerId: z$1.ZodOptional<z$1.ZodString>;
10389
+ refresh: z$1.ZodOptional<z$1.ZodEnum<{
10390
+ false: "false";
10391
+ true: "true";
10392
+ }>>;
10345
10393
  }, z$1.core.$strip>;
10346
10394
  type SystemUsageLimitsQuery = z$1.infer<typeof systemUsageLimitsQuerySchema>;
10347
10395
  declare const systemVoiceTranscriptionResponseSchema: z$1.ZodObject<{
@@ -10355,6 +10403,7 @@ declare const systemProviderStatesResponseSchema: z$1.ZodObject<{
10355
10403
  canUpdate: z$1.ZodBoolean;
10356
10404
  displayName: z$1.ZodString;
10357
10405
  installedVersion: z$1.ZodNullable<z$1.ZodString>;
10406
+ localLoginCommand: z$1.ZodNullable<z$1.ZodString>;
10358
10407
  loginCommand: z$1.ZodNullable<z$1.ZodString>;
10359
10408
  minimumSupportedVersion: z$1.ZodNullable<z$1.ZodString>;
10360
10409
  planLabel: z$1.ZodNullable<z$1.ZodString>;
@@ -10560,6 +10609,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10560
10609
  "thread.search": "thread.search";
10561
10610
  "window.find": "window.find";
10562
10611
  "window.new": "window.new";
10612
+ "window.reload": "window.reload";
10563
10613
  "workspace.openPreferred": "workspace.openPreferred";
10564
10614
  }>, z$1.ZodTemplateLiteral<`plugin:${string}/${string}`>]>;
10565
10615
  desktopOnly: z$1.ZodBoolean;
@@ -10606,7 +10656,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10606
10656
  }, z$1.core.$strict>>;
10607
10657
  experiments: z$1.ZodRecord<z$1.ZodEnum<{
10608
10658
  changelogPreview: "changelogPreview";
10609
- navigationRail: "navigationRail";
10610
10659
  performanceDiagnostics: "performanceDiagnostics";
10611
10660
  serverMove: "serverMove";
10612
10661
  }>, z$1.ZodBoolean>;
@@ -10619,14 +10668,17 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10619
10668
  confirmThreadArchive: z$1.ZodBoolean;
10620
10669
  defaultMachineAccess: z$1.ZodNullable<z$1.ZodString>;
10621
10670
  defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
10671
+ keepHistoryAfterContextClear: z$1.ZodBoolean;
10622
10672
  machineGitCredentialsEnabled: z$1.ZodBoolean;
10623
10673
  machineServerUrl: z$1.ZodNullable<z$1.ZodString>;
10624
10674
  managedBranchPrefix: z$1.ZodString;
10675
+ onboardingCompletedAt: z$1.ZodNullable<z$1.ZodString>;
10625
10676
  providerCompletedTurnDisplay: z$1.ZodRecord<z$1.ZodString, z$1.ZodEnum<{
10626
10677
  collapse: "collapse";
10627
10678
  flat: "flat";
10628
10679
  }>>;
10629
10680
  providerOrder: z$1.ZodArray<z$1.ZodString>;
10681
+ setupChecklistVisible: z$1.ZodBoolean;
10630
10682
  showDiagnosticEvents: z$1.ZodBoolean;
10631
10683
  showGitChanges: z$1.ZodBoolean;
10632
10684
  showKeyboardHints: z$1.ZodBoolean;
@@ -10716,6 +10768,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10716
10768
  "thread.search": "thread.search";
10717
10769
  "window.find": "window.find";
10718
10770
  "window.new": "window.new";
10771
+ "window.reload": "window.reload";
10719
10772
  "workspace.openPreferred": "workspace.openPreferred";
10720
10773
  }>, z$1.ZodTemplateLiteral<`plugin:${string}/${string}`>]>;
10721
10774
  platform: z$1.ZodOptional<z$1.ZodEnum<{
@@ -10812,6 +10865,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
10812
10865
  "thread.search": "thread.search";
10813
10866
  "window.find": "window.find";
10814
10867
  "window.new": "window.new";
10868
+ "window.reload": "window.reload";
10815
10869
  "workspace.openPreferred": "workspace.openPreferred";
10816
10870
  }>, z$1.ZodTemplateLiteral<`plugin:${string}/${string}`>]>;
10817
10871
  desktopOnly: z$1.ZodBoolean;
@@ -11597,6 +11651,7 @@ declare const timelineSystemRowSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
11597
11651
  turnId: z$1.ZodNullable<z$1.ZodString>;
11598
11652
  }, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11599
11653
  completedAt: z$1.ZodNullable<z$1.ZodNumber>;
11654
+ contentDeferred: z$1.ZodOptional<z$1.ZodLiteral<true>>;
11600
11655
  createdAt: z$1.ZodNumber;
11601
11656
  detail: z$1.ZodNullable<z$1.ZodString>;
11602
11657
  id: z$1.ZodString;
@@ -11690,6 +11745,7 @@ declare const timelineCommandWorkRowSchema: z$1.ZodObject<{
11690
11745
  callId: z$1.ZodString;
11691
11746
  command: z$1.ZodString;
11692
11747
  completedAt: z$1.ZodNullable<z$1.ZodNumber>;
11748
+ contentDeferred: z$1.ZodOptional<z$1.ZodLiteral<true>>;
11693
11749
  createdAt: z$1.ZodNumber;
11694
11750
  cwd: z$1.ZodNullable<z$1.ZodString>;
11695
11751
  exitCode: z$1.ZodNullable<z$1.ZodNumber>;
@@ -11751,6 +11807,7 @@ declare const timelineToolWorkRowSchema: z$1.ZodObject<{
11751
11807
  }>>;
11752
11808
  callId: z$1.ZodString;
11753
11809
  completedAt: z$1.ZodNullable<z$1.ZodNumber>;
11810
+ contentDeferred: z$1.ZodOptional<z$1.ZodLiteral<true>>;
11754
11811
  createdAt: z$1.ZodNumber;
11755
11812
  id: z$1.ZodString;
11756
11813
  kind: z$1.ZodLiteral<"work">;
@@ -11820,6 +11877,7 @@ declare const timelineFileChangeWorkRowSchema: z$1.ZodObject<{
11820
11877
  movePath: z$1.ZodNullable<z$1.ZodString>;
11821
11878
  path: z$1.ZodString;
11822
11879
  }, z$1.core.$strip>;
11880
+ contentDeferred: z$1.ZodOptional<z$1.ZodLiteral<true>>;
11823
11881
  createdAt: z$1.ZodNumber;
11824
11882
  id: z$1.ZodString;
11825
11883
  kind: z$1.ZodLiteral<"work">;
@@ -12423,7 +12481,7 @@ interface TimelineDelegationWorkRow extends TimelineWorkRowBase {
12423
12481
  description: string | null;
12424
12482
  output: string;
12425
12483
  completedAt: number | null;
12426
- childRows: TimelineRow[];
12484
+ childRows: TimelineRow[] | null;
12427
12485
  presentation?: TimelineRowPresentation;
12428
12486
  }
12429
12487
  declare const timelineWorkflowWorkRowSchema: z$1.ZodObject<{
@@ -13702,6 +13760,10 @@ declare const updateQueuedMessageRequestSchema: z$1.ZodObject<{
13702
13760
  }, z$1.core.$strip>], "type">>;
13703
13761
  }, z$1.core.$strip>;
13704
13762
  type UpdateQueuedMessageRequest = z$1.infer<typeof updateQueuedMessageRequestSchema>;
13763
+ declare const queuedMessageEditHoldResponseSchema: z$1.ZodObject<{
13764
+ leaseMs: z$1.ZodNumber;
13765
+ }, z$1.core.$strip>;
13766
+ type QueuedMessageEditHoldResponse = z$1.infer<typeof queuedMessageEditHoldResponseSchema>;
13705
13767
  declare const sendQueuedMessageRequestSchema: z$1.ZodObject<{
13706
13768
  mode: z$1.ZodEnum<{
13707
13769
  auto: "auto";
@@ -14954,6 +15016,10 @@ declare const threadTimelineQuerySchema: z$1.ZodObject<{
14954
15016
  afterSequence: z$1.ZodOptional<z$1.ZodString>;
14955
15017
  beforeAnchorId: z$1.ZodOptional<z$1.ZodString>;
14956
15018
  beforeAnchorSeq: z$1.ZodOptional<z$1.ZodString>;
15019
+ deferContent: z$1.ZodOptional<z$1.ZodEnum<{
15020
+ false: "false";
15021
+ true: "true";
15022
+ }>>;
14957
15023
  includeNestedRows: z$1.ZodOptional<z$1.ZodEnum<{
14958
15024
  false: "false";
14959
15025
  true: "true";
@@ -14967,6 +15033,11 @@ declare const threadTimelineQuerySchema: z$1.ZodObject<{
14967
15033
  type ThreadTimelineQuery = z$1.infer<typeof threadTimelineQuerySchema>;
14968
15034
  declare const timelineTurnSummaryDetailsQuerySchema: z$1.ZodObject<{
14969
15035
  beforeCursor: z$1.ZodOptional<z$1.ZodString>;
15036
+ deferContent: z$1.ZodOptional<z$1.ZodEnum<{
15037
+ false: "false";
15038
+ true: "true";
15039
+ }>>;
15040
+ itemId: z$1.ZodOptional<z$1.ZodString>;
14970
15041
  sourceSeqEnd: z$1.ZodString;
14971
15042
  sourceSeqStart: z$1.ZodString;
14972
15043
  turnId: z$1.ZodString;
@@ -15833,6 +15904,13 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
15833
15904
  }, z$1.core.$strict>;
15834
15905
  }, z$1.core.$strip>;
15835
15906
  type ThreadTimelineResponse = z$1.infer<typeof threadTimelineResponseSchema>;
15907
+ declare const threadConversationOutlineQuerySchema: z$1.ZodObject<{
15908
+ role: z$1.ZodOptional<z$1.ZodEnum<{
15909
+ assistant: "assistant";
15910
+ user: "user";
15911
+ }>>;
15912
+ }, z$1.core.$strip>;
15913
+ type ThreadConversationOutlineQuery = z$1.infer<typeof threadConversationOutlineQuerySchema>;
15836
15914
  declare const threadConversationOutlineResponseSchema: z$1.ZodObject<{
15837
15915
  items: z$1.ZodArray<z$1.ZodObject<{
15838
15916
  attachmentSummary: z$1.ZodNullable<z$1.ZodObject<{
@@ -16711,6 +16789,10 @@ interface HostDirectoryArgs extends HostDirectoryQuery {
16711
16789
  hostId: string;
16712
16790
  signal?: AbortSignal;
16713
16791
  }
16792
+ interface HostDiscoverReposArgs {
16793
+ hostId: string;
16794
+ signal?: AbortSignal;
16795
+ }
16714
16796
  interface HostCloneDefaultPathArgs extends HostCloneDefaultPathQuery {
16715
16797
  hostId: string;
16716
16798
  signal?: AbortSignal;
@@ -16743,6 +16825,7 @@ type HostDeleteResult = {
16743
16825
  ok: true;
16744
16826
  };
16745
16827
  type HostDirectoryResult = HostDirectoryListing;
16828
+ type HostDiscoverReposResult = HostDiscoveredReposResponse;
16746
16829
  type HostGetResult = Host & {
16747
16830
  connectMachineId: string | null;
16748
16831
  threadStorageRootPath: string | null;
@@ -16768,6 +16851,7 @@ interface HostsArea {
16768
16851
  delete(args: HostDeleteArgs): Promise<HostDeleteResult>;
16769
16852
  experimental_deleteOldServerCopy(args: HostActionArgs): Promise<DeleteOldServerCopyResponse>;
16770
16853
  directory(args: HostDirectoryArgs): Promise<HostDirectoryResult>;
16854
+ experimental_discoverRepos(args: HostDiscoverReposArgs): Promise<HostDiscoverReposResult>;
16771
16855
  get(args: HostGetArgs): Promise<HostGetResult>;
16772
16856
  cloneDefaultPath(args: HostCloneDefaultPathArgs): Promise<HostCloneDefaultPathResult>;
16773
16857
  installProviderCli(args: HostProviderCliInstallArgs): Promise<HostProviderCliInstallResult>;
@@ -17085,6 +17169,9 @@ interface PluginListUpdateResultsArgs {
17085
17169
  interface PluginGetSafeModeArgs {
17086
17170
  signal?: AbortSignal;
17087
17171
  }
17172
+ interface PluginRpcDiscoveryArgs extends PluginRpcDiscoveryQuery {
17173
+ signal?: AbortSignal;
17174
+ }
17088
17175
  interface PluginSetSafeModeArgs {
17089
17176
  enabled: boolean;
17090
17177
  }
@@ -17144,7 +17231,7 @@ interface PluginUpdateJobsArea {
17144
17231
  }): Promise<PluginUpdateJob[]>;
17145
17232
  }
17146
17233
  interface PluginsArea {
17147
- experimental_discoverRpc(args?: PluginRpcDiscoveryQuery): Promise<PublishedPluginRpcMethod[]>;
17234
+ experimental_discoverRpc(args?: PluginRpcDiscoveryArgs): Promise<PublishedPluginRpcMethod[]>;
17148
17235
  experimental_getSafeMode(args?: PluginGetSafeModeArgs): Promise<PluginSafeModeResult>;
17149
17236
  experimental_setSafeMode(args: PluginSetSafeModeArgs): Promise<PluginSetSafeModeResult>;
17150
17237
  experimental_pruneCache(args?: PluginPruneCacheArgs): Promise<PluginPruneCacheResult>;
@@ -17376,7 +17463,8 @@ interface SystemConfigArgs {
17376
17463
  interface SystemExecutionOptionsArgs extends SystemExecutionOptionsQuery {
17377
17464
  signal?: AbortSignal;
17378
17465
  }
17379
- interface SystemUsageLimitsArgs extends SystemUsageLimitsQuery {
17466
+ interface SystemUsageLimitsArgs extends Omit<SystemUsageLimitsQuery, "refresh"> {
17467
+ refresh?: boolean;
17380
17468
  signal?: AbortSignal;
17381
17469
  }
17382
17470
  interface SystemVersionArgs {
@@ -17687,6 +17775,10 @@ type ThreadQueuedMessageUpdateResult = ThreadQueuedMessage;
17687
17775
  type ThreadQueuedMessageDeleteResult = {
17688
17776
  ok: true;
17689
17777
  };
17778
+ type ThreadQueuedMessageEditHoldResult = QueuedMessageEditHoldResponse;
17779
+ type ThreadQueuedMessageEditHoldReleaseResult = {
17780
+ ok: true;
17781
+ };
17690
17782
  type ThreadQueuedMessageReorderResult = ThreadQueuedMessageListResponse;
17691
17783
  type ThreadQueuedMessageSendResult = SendQueuedMessageResponse;
17692
17784
  type ThreadQueuedMessageGroupBoundaryResult = ThreadQueuedMessageListResponse;
@@ -17809,6 +17901,10 @@ interface ThreadStoragePathsArgs extends ThreadStoragePathsQuery {
17809
17901
  signal?: AbortSignal;
17810
17902
  threadId: string;
17811
17903
  }
17904
+ interface ThreadConversationOutlineArgs extends ThreadConversationOutlineQuery {
17905
+ signal?: AbortSignal;
17906
+ threadId: string;
17907
+ }
17812
17908
  interface ThreadTimelineTurnSummaryDetailsArgs extends TimelineTurnSummaryDetailsQuery {
17813
17909
  signal?: AbortSignal;
17814
17910
  threadId: string;
@@ -17917,6 +18013,8 @@ interface ThreadEventsArea {
17917
18013
  interface ThreadQueuedMessagesArea {
17918
18014
  create(args: ThreadQueuedMessageCreateArgs): Promise<ThreadQueuedMessageCreateResult>;
17919
18015
  delete(args: ThreadQueuedMessageTargetArgs): Promise<ThreadQueuedMessageDeleteResult>;
18016
+ experimental_holdForEdit(args: ThreadQueuedMessageTargetArgs): Promise<ThreadQueuedMessageEditHoldResult>;
18017
+ experimental_releaseEditHold(args: ThreadQueuedMessageTargetArgs): Promise<ThreadQueuedMessageEditHoldReleaseResult>;
17920
18018
  list(args: ThreadQueuedMessageArgs): Promise<ThreadQueuedMessagesResult>;
17921
18019
  reorder(args: ThreadQueuedMessageReorderArgs): Promise<ThreadQueuedMessageReorderResult>;
17922
18020
  send(args: ThreadQueuedMessageSendArgs): Promise<ThreadQueuedMessageSendResult>;
@@ -17947,7 +18045,7 @@ interface ThreadsArea {
17947
18045
  cancelPlan(args: ThreadActionArgs): Promise<ThreadBannerActionResult>;
17948
18046
  clearContext(args: ThreadActionArgs): Promise<ThreadBannerActionResult>;
17949
18047
  clearGoal(args: ThreadActionArgs): Promise<ThreadBannerActionResult>;
17950
- conversationOutline(args: ThreadStatusArgs): Promise<ThreadConversationOutlineResult>;
18048
+ conversationOutline(args: ThreadConversationOutlineArgs): Promise<ThreadConversationOutlineResult>;
17951
18049
  count(args?: ThreadCountArgs): Promise<ThreadCountResult>;
17952
18050
  defaultExecutionOptions(args: ThreadStatusArgs): Promise<ThreadDefaultExecutionOptionsResult>;
17953
18051
  delete(args: ThreadDeleteArgs): Promise<ThreadDeleteResult>;
@@ -18293,198 +18391,6 @@ interface ExperimentalSidebarFooterDisclosureProps {
18293
18391
  /** Hide this disclosure without affecting another plugin's open disclosure. */
18294
18392
  dismiss(): void;
18295
18393
  }
18296
- /** Display and accessibility metadata for a host-owned sidebar shortcut. */
18297
- interface ExperimentalSidebarNavigationShortcut {
18298
- label: string;
18299
- ariaKeyShortcuts: string;
18300
- }
18301
- /** Host-owned behavior represented by one sidebar navigation item. */
18302
- type ExperimentalSidebarNavigationAction = {
18303
- kind: "new-thread";
18304
- } | {
18305
- kind: "search-threads";
18306
- } | {
18307
- kind: "open-extensions";
18308
- } | {
18309
- kind: "open-skills";
18310
- } | {
18311
- kind: "open-plugin-panel";
18312
- pluginId: string;
18313
- panelId: string;
18314
- };
18315
- /**
18316
- * Semantic icon identity for one sidebar navigation item. Render it with
18317
- * {@link PluginSdkApp.experimental_SidebarNavigationIcon} to match bb's
18318
- * artwork, including panel icons with plugin branding as their fallback.
18319
- */
18320
- type ExperimentalSidebarNavigationIcon = {
18321
- kind: "host";
18322
- name: "extensions" | "new-thread" | "search" | "skills";
18323
- } | {
18324
- kind: "plugin";
18325
- pluginId: string;
18326
- icon: string | null;
18327
- };
18328
- /** One host-owned destination or action a plugin may arrange. */
18329
- interface ExperimentalSidebarNavigationItem {
18330
- /**
18331
- * Arrangement key, stable across reloads: `__bb__/new-thread`,
18332
- * `__bb__/search-threads`, `__bb__/extensions`, `__bb__/skills`,
18333
- * `__bb__/automations`, or `<pluginId>/<panelId>`. The same keys appear in
18334
- * the `sidebar.pluginPanelOrder` and `sidebar.visiblePluginPanels`
18335
- * settings.
18336
- */
18337
- id: string;
18338
- label: string;
18339
- icon: ExperimentalSidebarNavigationIcon;
18340
- action: ExperimentalSidebarNavigationAction;
18341
- isDisabled: boolean;
18342
- /**
18343
- * False when the user hid the item from the sidebar. Draw hidden items in an
18344
- * overflow menu rather than dropping them, so they stay reachable.
18345
- */
18346
- isVisible: boolean;
18347
- /**
18348
- * A plugin panel remembered from the last session whose bundle has not
18349
- * registered yet. Activating it does nothing until it loads.
18350
- */
18351
- isLoading: boolean;
18352
- /**
18353
- * The plugin that contributed this panel; null for bb's own items. Gates
18354
- * `openDetails` and `disablePlugin`.
18355
- */
18356
- pluginId: string | null;
18357
- shortcut: ExperimentalSidebarNavigationShortcut | null;
18358
- /**
18359
- * The panel's `experimental_sidebarAccessory`, already wrapped in the host's
18360
- * crash boundary. Null for bb's items, panels without an accessory, and on
18361
- * compact viewports. Keep it within one line, about 4rem by 1.25rem.
18362
- */
18363
- experimental_Accessory: ComponentType | null;
18364
- }
18365
- /** How the host should activate a sidebar navigation item. */
18366
- interface ExperimentalSidebarNavigationActivationOptions {
18367
- openInSplit: boolean;
18368
- }
18369
- /**
18370
- * Host behavior for sidebar navigation items (see
18371
- * {@link ExperimentalSidebarNavigationState}). Unknown item ids are ignored.
18372
- * Calls made after the calling component unmounts do nothing.
18373
- */
18374
- interface ExperimentalSidebarNavigationActions {
18375
- /**
18376
- * Run the item's host behavior and close the mobile sidebar drawer.
18377
- * `openInSplit` is ignored where splits are unavailable, and disabled or
18378
- * loading items do nothing.
18379
- */
18380
- activate(itemId: string, options: ExperimentalSidebarNavigationActivationOptions): void;
18381
- /** Hide or show one item. Persists to `sidebar.visiblePluginPanels`. */
18382
- setVisible(itemId: string, isVisible: boolean): void;
18383
- /**
18384
- * Save a new order. Pass item ids in the order you want; unknown ids are
18385
- * dropped and ids you leave out keep their relative order after the ones
18386
- * you pass. Persists to `sidebar.pluginPanelOrder`.
18387
- */
18388
- setOrder(itemIds: readonly string[]): void;
18389
- /** Open bb's customize editor, which reorders and hides items. */
18390
- openCustomize(): void;
18391
- /** Open the owning plugin's details. Does nothing when `pluginId` is null. */
18392
- openDetails(itemId: string): void;
18393
- /**
18394
- * Disable the owning plugin, leave its panel if it is open, and show a
18395
- * toast. Rejects after the host's error toast when disabling fails. Does
18396
- * nothing when `pluginId` is null.
18397
- */
18398
- disablePlugin(itemId: string): Promise<void>;
18399
- }
18400
- /** What {@link PluginSdkApp.experimental_useSidebarNavigation} returns. */
18401
- interface ExperimentalSidebarNavigationState {
18402
- /** Every item in the user's saved order, visible and hidden. */
18403
- items: readonly ExperimentalSidebarNavigationItem[];
18404
- /** The item whose destination the route currently shows, or null. */
18405
- activeItemId: string | null;
18406
- /**
18407
- * True while the user holds the app command modifier, when bb's own rows
18408
- * reveal their `shortcut` labels. Show yours at the same time.
18409
- */
18410
- isShortcutModifierHeld: boolean;
18411
- actions: ExperimentalSidebarNavigationActions;
18412
- }
18413
- /**
18414
- * Per-item drag-to-split support (see
18415
- * {@link PluginSdkApp.experimental_useSidebarNavigationSplit}). Same contract
18416
- * as {@link PluginSidebarThreadSplit}.
18417
- */
18418
- interface ExperimentalSidebarNavigationSplit {
18419
- /**
18420
- * Spread onto the item's interactive element. Empty when the item cannot
18421
- * open in a pane, so spreading it is always safe.
18422
- */
18423
- splitProps: {
18424
- onPointerDown?: (event: react.PointerEvent<HTMLElement>) => void;
18425
- };
18426
- /**
18427
- * False for items that cannot open in a pane (Search, Plugins, Skills), on
18428
- * compact viewports, and when splits are unavailable.
18429
- */
18430
- isAvailable: boolean;
18431
- /** Where this item's destination sits in the split layout, or null. */
18432
- layout: {
18433
- panes: readonly PluginSidebarSplitPane[];
18434
- } | null;
18435
- }
18436
- /** Options for {@link PluginSdkApp.experimental_useSidebarNavigationSplit}. */
18437
- interface ExperimentalSidebarNavigationSplitOptions {
18438
- /**
18439
- * `sidebar` (the default) engages the drag once the pointer leaves the
18440
- * sidebar, so a row list with its own drag-to-reorder keeps working.
18441
- * `distance` engages after a short movement in any direction; use it for
18442
- * rows inside a menu or popover that covers the main area.
18443
- */
18444
- activation?: "distance" | "sidebar";
18445
- /** Called when the drag engages, for example to close the menu the row is in. */
18446
- onDragStart?: () => void;
18447
- }
18448
- /** Props for {@link PluginSdkApp.experimental_SidebarNavigationIcon}. */
18449
- interface ExperimentalSidebarNavigationIconProps {
18450
- icon: ExperimentalSidebarNavigationIcon;
18451
- className?: string;
18452
- }
18453
- /**
18454
- * Props passed to an `experimental_sidebarNavigation` component. Read the
18455
- * items and their actions with
18456
- * {@link PluginSdkApp.experimental_useSidebarNavigation}.
18457
- */
18458
- interface ExperimentalSidebarNavigationProps {
18459
- isCompactViewport: boolean;
18460
- /**
18461
- * Renders bb's bundled Navigation plugin, or nothing while it is disabled.
18462
- * Kept for plugins written before `experimental_useSidebarNavigation`;
18463
- * render items from that hook instead. Scheduled for removal.
18464
- *
18465
- * @deprecated
18466
- */
18467
- experimental_Original: ComponentType;
18468
- }
18469
- /**
18470
- * Props passed to an `experimental_sidebarHeader` component, rendered in the
18471
- * sidebar's header row between the sidebar toggle (and the macOS window
18472
- * controls) and bb's back and forward buttons.
18473
- */
18474
- interface ExperimentalSidebarHeaderProps {
18475
- /**
18476
- * Width in px of the space the component may use, updated when the sidebar
18477
- * resizes or the window chrome changes. It can be smaller than
18478
- * `controlSize` in a narrow sidebar.
18479
- */
18480
- width: number;
18481
- /**
18482
- * Width and height in px of the header's own buttons, equal to the
18483
- * `--bb-sidebar-control-size` CSS variable. Size your controls to match.
18484
- */
18485
- controlSize: number;
18486
- isCompactViewport: boolean;
18487
- }
18488
18394
  /**
18489
18395
  * Props passed to an `experimental_threadList` component — the sidebar's
18490
18396
  * scrolling thread area, replaced wholesale by one plugin.
@@ -18866,13 +18772,12 @@ interface PluginNavPanelRegistration {
18866
18772
  */
18867
18773
  fixedTabs?: readonly PluginFixedTabDeclaration[];
18868
18774
  /**
18869
- * Optional presentational component rendered at the trailing edge of this
18870
- * panel's sidebar row. It receives no props so it can own a narrow live
18871
- * value through the ordinary SDK hooks without coupling that state to the
18872
- * host sidebar. The host does not mount it on compact viewports and clips it
18873
- * to a small, single-line box on wider viewports. It shares the trailing
18874
- * action column, fading out for the host's options button on hover or focus;
18875
- * do not render controls or rely on unbounded content here.
18775
+ * Optional presentational component for a narrow live value next to this
18776
+ * panel's entry in the sidebar. It receives no props so it can own that
18777
+ * value through the ordinary SDK hooks without coupling its state to the
18778
+ * host sidebar. The host still validates it, but no host surface currently
18779
+ * mounts it. Keep it to a small, single-line box; do not render controls or
18780
+ * rely on unbounded content here.
18876
18781
  *
18877
18782
  * Experimental: see docs/api_to_audit.md.
18878
18783
  */
@@ -19353,6 +19258,15 @@ interface PluginCodeThemeState {
19353
19258
  /** null only before the first theme file resolves. */
19354
19259
  theme: PluginCodeThemeData | null;
19355
19260
  }
19261
+ /**
19262
+ * What {@link PluginSdkApp.experimental_copyToClipboard} writes: plain text,
19263
+ * plus an HTML representation for paste targets that accept rich text.
19264
+ * Without `html`, only plain text is written.
19265
+ */
19266
+ interface ExperimentalClipboardContent {
19267
+ text: string;
19268
+ html?: string;
19269
+ }
19356
19270
  /**
19357
19271
  * The `threads` area of {@link PluginBrowserBbSdk}: bb's public thread API
19358
19272
  * with the calling plugin's identity filled in. `spawn` and `fork` stamp
@@ -19614,41 +19528,6 @@ interface PluginThreadListRegistration {
19614
19528
  description?: string;
19615
19529
  component: ComponentType<PluginThreadListProps>;
19616
19530
  }
19617
- /**
19618
- * Replace the navigation controls above the sidebar thread list. Exclusive:
19619
- * bb ships its own rows as the bundled Navigation plugin
19620
- * (`navigation/navigation`). By default the first registered provider other
19621
- * than Navigation is active, falling back to Navigation; the user can pin one
19622
- * provider under Settings → Appearance → Navigation. A pinned provider that is
19623
- * disabled or removed falls back to Navigation; a crashing provider is
19624
- * replaced by a placeholder with a Reload button.
19625
- */
19626
- interface ExperimentalSidebarNavigationRegistration {
19627
- /** Unique within the plugin; letters, digits, `-`, `_`. */
19628
- id: string;
19629
- /** Label shown in Settings → Appearance and capability details. */
19630
- title: string;
19631
- /** Optional one-line description shown with the provider choice. */
19632
- description?: string;
19633
- component: ComponentType<ExperimentalSidebarNavigationProps>;
19634
- }
19635
- /**
19636
- * Render a component in the sidebar's header row, between the sidebar toggle
19637
- * and bb's back and forward buttons. Exclusive: the user picks at most one
19638
- * header under Settings → Appearance, and by default the header shows only
19639
- * bb's own controls. Content is clipped to the row, so it cannot move the
19640
- * thread list or bb's controls. On macOS the empty space keeps dragging the
19641
- * window; buttons, links, and inputs do not.
19642
- */
19643
- interface ExperimentalSidebarHeaderRegistration {
19644
- /** Unique within the plugin; letters, digits, `-`, `_`. */
19645
- id: string;
19646
- /** Label shown in Settings → Appearance and capability details. */
19647
- title: string;
19648
- /** Optional one-line description shown with the provider choice. */
19649
- description?: string;
19650
- component: ComponentType<ExperimentalSidebarHeaderProps>;
19651
- }
19652
19531
  /**
19653
19532
  * Register this plugin as a viewer/editor for file extensions. By default,
19654
19533
  * matching files render the first applicable opener in deterministic slot
@@ -20090,14 +19969,6 @@ interface PluginAppSlots {
20090
19969
  experimental_newThreadPanelAction(registration: PluginNewThreadPanelActionRegistration): void;
20091
19970
  pendingInteraction(registration: PluginPendingInteractionRegistration): void;
20092
19971
  sidebarFooterAction(registration: PluginSidebarFooterActionRegistration): void;
20093
- /** Replace the bounded sidebar navigation controls. */
20094
- experimental_sidebarNavigation(registration: ExperimentalSidebarNavigationRegistration): void;
20095
- /**
20096
- * Render a component in the sidebar header row (see
20097
- * {@link ExperimentalSidebarHeaderRegistration}). Experimental: see
20098
- * docs/api_to_audit.md.
20099
- */
20100
- experimental_sidebarHeader(registration: ExperimentalSidebarHeaderRegistration): void;
20101
19972
  /**
20102
19973
  * Replace the sidebar's thread list (see
20103
19974
  * {@link PluginThreadListRegistration}). Experimental: see
@@ -21187,9 +21058,11 @@ interface BbNavigate {
21187
21058
  focusPrompt?: boolean;
21188
21059
  }): void;
21189
21060
  /**
21190
- * Open one of this plugin's registered thread-panel actions in the current
21191
- * thread surface. Returns false when the surface has no thread side panel or
21192
- * the action is unavailable.
21061
+ * Open one of this plugin's registered panel actions in the current
21062
+ * surface's side panel: a `threadPanelAction` in a thread, or an
21063
+ * `experimental_newThreadPanelAction` on the New thread screen. Plugin
21064
+ * commands use the same opener. Returns false when the surface has no side
21065
+ * panel actions (plugin pages) or the action is unavailable.
21193
21066
  */
21194
21067
  openThreadPanel(options: PluginTargetedPanelActionOpenOptions): boolean;
21195
21068
  /**
@@ -21202,6 +21075,20 @@ interface BbNavigate {
21202
21075
  experimental_openFilePreview(options: ExperimentalFileOpenOptions): boolean;
21203
21076
  /** Open a live file in this client's preferred external file target. */
21204
21077
  experimental_openFileExternally(options: ExperimentalFileOpenOptions): boolean;
21078
+ /**
21079
+ * Show a terminal session in this surface's BB terminal panel: select its
21080
+ * tab, adding one when needed, and reveal the panel. Create the session
21081
+ * first with `useSdk().terminals.create`, whose scope chooses the thread,
21082
+ * environment, or host directory it runs in. A thread surface accepts only
21083
+ * that thread's terminals, the New thread screen only terminals in its
21084
+ * current terminal scope, and a plugin page any terminal. Resolves false
21085
+ * for unknown or exited terminals and surfaces without a terminal panel.
21086
+ * Closing the tab closes the terminal. Experimental: see
21087
+ * docs/api_to_audit.md.
21088
+ */
21089
+ experimental_openTerminal(options: {
21090
+ terminalId: string;
21091
+ }): Promise<boolean>;
21205
21092
  }
21206
21093
  /**
21207
21094
  * Everything `@get-bb/plugin-sdk/app` resolves to at runtime. The BB app builds
@@ -21309,27 +21196,6 @@ interface PluginSdkApp {
21309
21196
  * Experimental: see docs/api_to_audit.md.
21310
21197
  */
21311
21198
  experimental_useSidebarThreadSplit(threadId: string): PluginSidebarThreadSplit;
21312
- /**
21313
- * The sidebar navigation items in the user's saved order, the active item,
21314
- * and the host actions that activate, hide, reorder, and customize them
21315
- * (see {@link ExperimentalSidebarNavigationState}). One model shared by
21316
- * every caller in the sidebar. Items keep their identity while unchanged.
21317
- * Outside the sidebar it returns no items and actions that do nothing.
21318
- * Experimental: see docs/api_to_audit.md.
21319
- */
21320
- experimental_useSidebarNavigation(): ExperimentalSidebarNavigationState;
21321
- /**
21322
- * Per-item drag-to-split support for navigation items (see
21323
- * {@link ExperimentalSidebarNavigationSplit}). Call it once per rendered
21324
- * item. Experimental: see docs/api_to_audit.md.
21325
- */
21326
- experimental_useSidebarNavigationSplit(itemId: string, options?: ExperimentalSidebarNavigationSplitOptions): ExperimentalSidebarNavigationSplit;
21327
- /**
21328
- * bb's artwork for a navigation item's icon: bb's glyphs for its own items,
21329
- * and the panel's explicit icon, falling back to plugin branding, for plugin panels. Experimental:
21330
- * see docs/api_to_audit.md.
21331
- */
21332
- experimental_SidebarNavigationIcon: ComponentType<ExperimentalSidebarNavigationIconProps>;
21333
21199
  /**
21334
21200
  * Whether the composer holds an unsent draft for one thread (see
21335
21201
  * {@link PluginSidebarThreadDraftState}). Per row, because a draft is
@@ -21418,6 +21284,17 @@ interface PluginSdkApp {
21418
21284
  * docs/api_to_audit.md.
21419
21285
  */
21420
21286
  experimental_useCodeTheme(): PluginCodeThemeState;
21287
+ /**
21288
+ * Writes content to the system clipboard through bb's own clipboard writer,
21289
+ * the one bb's copy actions use. A plain function, callable from
21290
+ * components, content scripts, and command callbacks. bb Desktop writes
21291
+ * through the native clipboard, so copies work without window focus or a
21292
+ * secure origin; browsers use the Clipboard API, then the copy command.
21293
+ * Resolves true once the clipboard holds the content and false when every
21294
+ * write path failed; it never rejects. Callers own their success and
21295
+ * failure feedback. Experimental: see docs/api_to_audit.md.
21296
+ */
21297
+ experimental_copyToClipboard(content: ExperimentalClipboardContent): Promise<boolean>;
21421
21298
  /**
21422
21299
  * The host-owned chat component (see {@link ThreadChatProps}). Together
21423
21300
  * with `Markdown`, the only components the SDK ships — everything else
@@ -22005,6 +21882,9 @@ interface PluginTurnFailedEvent {
22005
21882
  * queued row GET /threads/:id/queued-messages serves.
22006
21883
  */
22007
21884
  interface PluginThreadEventPayloads {
21885
+ "experimental_environment.removed": {
21886
+ removal: EnvironmentRemoval;
21887
+ };
22008
21888
  /** Debounced per thread (at most once per second), with the latest sequence and current thread DTO. Reading history does not emit this event. */
22009
21889
  "experimental_thread.events": {
22010
21890
  thread: ThreadResponse;
@@ -22635,7 +22515,7 @@ interface PluginInteractionRequest {
22635
22515
  rendererId: string;
22636
22516
  title: string;
22637
22517
  payload: JsonValue;
22638
- /** Defaults to ten minutes; capped at one hour. */
22518
+ /** Defaults to ten minutes; capped at seven days. */
22639
22519
  timeoutMs?: number;
22640
22520
  /**
22641
22521
  * How the form reads as a timeline row while it waits and once it settles,
@@ -23913,4 +23793,4 @@ declare function cliCommand<const TOptions extends CliOptions = Record<string, n
23913
23793
  declare function defineCli(spec: PluginCliSpec): PluginCliRegistration;
23914
23794
 
23915
23795
  export { PLUGIN_CLI_OUTPUT_MAX_BYTES, PluginCliError, cliCommand, defineCli, defineRpcContract, experimental_defineHostEntry };
23916
- 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 };
23796
+ 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, 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 };