@get-bb/plugin-sdk 0.5.23 → 0.5.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled-types/bb-plugin-sdk-app.d.ts +65 -10
- package/bundled-types/bb-plugin-sdk-environment-provider.d.ts +6 -0
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +6 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge-testing.d.ts +1 -0
- package/bundled-types/bb-plugin-sdk-testing.d.ts +6 -0
- package/bundled-types/bb-plugin-sdk.d.ts +74 -10
- package/dist/provider-bridge-acp.js +1 -0
- package/dist/provider-bridge-testing.js +1 -0
- package/dist/provider-bridge.js +1 -0
- package/dist/testing/index.js +3 -0
- package/package.json +1 -1
|
@@ -211,6 +211,7 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
211
211
|
"browser.focusLocation": "browser.focusLocation";
|
|
212
212
|
"browser.reload": "browser.reload";
|
|
213
213
|
"composer.focus": "composer.focus";
|
|
214
|
+
"dataDirectory.open": "dataDirectory.open";
|
|
214
215
|
"diff.toggle": "diff.toggle";
|
|
215
216
|
"file.quickOpen": "file.quickOpen";
|
|
216
217
|
"logs.openServerDaemon": "logs.openServerDaemon";
|
|
@@ -247,6 +248,8 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
247
248
|
"panel.previousTab": "panel.previousTab";
|
|
248
249
|
"panel.reopenClosedTab": "panel.reopenClosedTab";
|
|
249
250
|
"panel.toggle": "panel.toggle";
|
|
251
|
+
"plugins.enterSafeMode": "plugins.enterSafeMode";
|
|
252
|
+
"plugins.exitSafeMode": "plugins.exitSafeMode";
|
|
250
253
|
"question.select.1": "question.select.1";
|
|
251
254
|
"question.select.2": "question.select.2";
|
|
252
255
|
"question.select.3": "question.select.3";
|
|
@@ -475,6 +478,12 @@ declare const environmentSchema: z$1.ZodObject<{
|
|
|
475
478
|
}, z$1.core.$strip>], "type">;
|
|
476
479
|
}, z$1.core.$strip>>;
|
|
477
480
|
hostId: z$1.ZodString;
|
|
481
|
+
hostLifecycle: z$1.ZodEnum<{
|
|
482
|
+
"cleanup-failed": "cleanup-failed";
|
|
483
|
+
active: "active";
|
|
484
|
+
removed: "removed";
|
|
485
|
+
removing: "removing";
|
|
486
|
+
}>;
|
|
478
487
|
id: z$1.ZodString;
|
|
479
488
|
isGitRepo: z$1.ZodBoolean;
|
|
480
489
|
isWorktree: z$1.ZodBoolean;
|
|
@@ -546,6 +555,11 @@ declare const workspaceGitOperationSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObj
|
|
|
546
555
|
}, z$1.core.$strip>], "kind">;
|
|
547
556
|
type WorkspaceGitOperation = z$1.infer<typeof workspaceGitOperationSchema>;
|
|
548
557
|
|
|
558
|
+
declare const hostTypeSchema: z$1.ZodEnum<{
|
|
559
|
+
ephemeral: "ephemeral";
|
|
560
|
+
persistent: "persistent";
|
|
561
|
+
}>;
|
|
562
|
+
type HostType = z$1.infer<typeof hostTypeSchema>;
|
|
549
563
|
declare const hostSchema: z$1.ZodObject<{
|
|
550
564
|
createdAt: z$1.ZodNumber;
|
|
551
565
|
id: z$1.ZodString;
|
|
@@ -3091,6 +3105,7 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
3091
3105
|
cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
|
|
3092
3106
|
reason: z$1.ZodEnum<{
|
|
3093
3107
|
"host-daemon-restarted": "host-daemon-restarted";
|
|
3108
|
+
"host-removed": "host-removed";
|
|
3094
3109
|
"manual-stop": "manual-stop";
|
|
3095
3110
|
"provider-turn-idle": "provider-turn-idle";
|
|
3096
3111
|
}>;
|
|
@@ -9461,6 +9476,15 @@ declare const pluginSettingsResponseSchema: z$1.ZodObject<{
|
|
|
9461
9476
|
values: z$1.ZodRecord<z$1.ZodString, z$1.ZodType<JsonValue, unknown, z$1.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
9462
9477
|
}, z$1.core.$strip>;
|
|
9463
9478
|
type PluginSettingsResponse = z$1.infer<typeof pluginSettingsResponseSchema>;
|
|
9479
|
+
declare const pluginSafeModeResponseSchema: z$1.ZodObject<{
|
|
9480
|
+
enabled: z$1.ZodBoolean;
|
|
9481
|
+
}, z$1.core.$strip>;
|
|
9482
|
+
type PluginSafeModeResponse = z$1.infer<typeof pluginSafeModeResponseSchema>;
|
|
9483
|
+
declare const pluginSafeModeUpdateResponseSchema: z$1.ZodObject<{
|
|
9484
|
+
enabled: z$1.ZodBoolean;
|
|
9485
|
+
problems: z$1.ZodArray<z$1.ZodString>;
|
|
9486
|
+
}, z$1.core.$strip>;
|
|
9487
|
+
type PluginSafeModeUpdateResponse = z$1.infer<typeof pluginSafeModeUpdateResponseSchema>;
|
|
9464
9488
|
declare const pluginTokenResponseSchema: z$1.ZodObject<{
|
|
9465
9489
|
ok: z$1.ZodLiteral<true>;
|
|
9466
9490
|
token: z$1.ZodString;
|
|
@@ -9979,6 +10003,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
9979
10003
|
"browser.focusLocation": "browser.focusLocation";
|
|
9980
10004
|
"browser.reload": "browser.reload";
|
|
9981
10005
|
"composer.focus": "composer.focus";
|
|
10006
|
+
"dataDirectory.open": "dataDirectory.open";
|
|
9982
10007
|
"diff.toggle": "diff.toggle";
|
|
9983
10008
|
"file.quickOpen": "file.quickOpen";
|
|
9984
10009
|
"logs.openServerDaemon": "logs.openServerDaemon";
|
|
@@ -10015,6 +10040,8 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10015
10040
|
"panel.previousTab": "panel.previousTab";
|
|
10016
10041
|
"panel.reopenClosedTab": "panel.reopenClosedTab";
|
|
10017
10042
|
"panel.toggle": "panel.toggle";
|
|
10043
|
+
"plugins.enterSafeMode": "plugins.enterSafeMode";
|
|
10044
|
+
"plugins.exitSafeMode": "plugins.exitSafeMode";
|
|
10018
10045
|
"question.select.1": "question.select.1";
|
|
10019
10046
|
"question.select.2": "question.select.2";
|
|
10020
10047
|
"question.select.3": "question.select.3";
|
|
@@ -10121,6 +10148,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10121
10148
|
"browser.focusLocation": "browser.focusLocation";
|
|
10122
10149
|
"browser.reload": "browser.reload";
|
|
10123
10150
|
"composer.focus": "composer.focus";
|
|
10151
|
+
"dataDirectory.open": "dataDirectory.open";
|
|
10124
10152
|
"diff.toggle": "diff.toggle";
|
|
10125
10153
|
"file.quickOpen": "file.quickOpen";
|
|
10126
10154
|
"logs.openServerDaemon": "logs.openServerDaemon";
|
|
@@ -10157,6 +10185,8 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10157
10185
|
"panel.previousTab": "panel.previousTab";
|
|
10158
10186
|
"panel.reopenClosedTab": "panel.reopenClosedTab";
|
|
10159
10187
|
"panel.toggle": "panel.toggle";
|
|
10188
|
+
"plugins.enterSafeMode": "plugins.enterSafeMode";
|
|
10189
|
+
"plugins.exitSafeMode": "plugins.exitSafeMode";
|
|
10160
10190
|
"question.select.1": "question.select.1";
|
|
10161
10191
|
"question.select.2": "question.select.2";
|
|
10162
10192
|
"question.select.3": "question.select.3";
|
|
@@ -10205,6 +10235,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10205
10235
|
"browser.focusLocation": "browser.focusLocation";
|
|
10206
10236
|
"browser.reload": "browser.reload";
|
|
10207
10237
|
"composer.focus": "composer.focus";
|
|
10238
|
+
"dataDirectory.open": "dataDirectory.open";
|
|
10208
10239
|
"diff.toggle": "diff.toggle";
|
|
10209
10240
|
"file.quickOpen": "file.quickOpen";
|
|
10210
10241
|
"logs.openServerDaemon": "logs.openServerDaemon";
|
|
@@ -10241,6 +10272,8 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10241
10272
|
"panel.previousTab": "panel.previousTab";
|
|
10242
10273
|
"panel.reopenClosedTab": "panel.reopenClosedTab";
|
|
10243
10274
|
"panel.toggle": "panel.toggle";
|
|
10275
|
+
"plugins.enterSafeMode": "plugins.enterSafeMode";
|
|
10276
|
+
"plugins.exitSafeMode": "plugins.exitSafeMode";
|
|
10244
10277
|
"question.select.1": "question.select.1";
|
|
10245
10278
|
"question.select.2": "question.select.2";
|
|
10246
10279
|
"question.select.3": "question.select.3";
|
|
@@ -13516,6 +13549,12 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
|
|
|
13516
13549
|
}, z$1.core.$strip>], "type">;
|
|
13517
13550
|
}, z$1.core.$strip>>;
|
|
13518
13551
|
hostId: z$1.ZodString;
|
|
13552
|
+
hostLifecycle: z$1.ZodEnum<{
|
|
13553
|
+
"cleanup-failed": "cleanup-failed";
|
|
13554
|
+
active: "active";
|
|
13555
|
+
removed: "removed";
|
|
13556
|
+
removing: "removing";
|
|
13557
|
+
}>;
|
|
13519
13558
|
id: z$1.ZodString;
|
|
13520
13559
|
isGitRepo: z$1.ZodBoolean;
|
|
13521
13560
|
isWorktree: z$1.ZodBoolean;
|
|
@@ -13556,6 +13595,7 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
|
|
|
13556
13595
|
unmanaged: "unmanaged";
|
|
13557
13596
|
}>>;
|
|
13558
13597
|
}, z$1.core.$strip>>>;
|
|
13598
|
+
environmentHostName: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
13559
13599
|
environmentId: z$1.ZodNullable<z$1.ZodString>;
|
|
13560
13600
|
host: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
13561
13601
|
createdAt: z$1.ZodNumber;
|
|
@@ -14169,6 +14209,7 @@ declare const threadListQuerySchema: z$1.ZodObject<{
|
|
|
14169
14209
|
false: "false";
|
|
14170
14210
|
true: "true";
|
|
14171
14211
|
}>>;
|
|
14212
|
+
hostId: z$1.ZodOptional<z$1.ZodString>;
|
|
14172
14213
|
includeHidden: z$1.ZodOptional<z$1.ZodEnum<{
|
|
14173
14214
|
false: "false";
|
|
14174
14215
|
true: "true";
|
|
@@ -15477,6 +15518,7 @@ interface HostProviderCliInstallArgs extends HostProviderCliInstallRequest {
|
|
|
15477
15518
|
}
|
|
15478
15519
|
interface HostListArgs {
|
|
15479
15520
|
includeCreating?: boolean;
|
|
15521
|
+
type?: HostType;
|
|
15480
15522
|
signal?: AbortSignal;
|
|
15481
15523
|
}
|
|
15482
15524
|
interface MachineCreateArgs extends CreateMachineRequest {
|
|
@@ -15817,6 +15859,12 @@ interface PluginListArgs {
|
|
|
15817
15859
|
interface PluginListUpdateResultsArgs {
|
|
15818
15860
|
signal?: AbortSignal;
|
|
15819
15861
|
}
|
|
15862
|
+
interface PluginGetSafeModeArgs {
|
|
15863
|
+
signal?: AbortSignal;
|
|
15864
|
+
}
|
|
15865
|
+
interface PluginSetSafeModeArgs {
|
|
15866
|
+
enabled: boolean;
|
|
15867
|
+
}
|
|
15820
15868
|
type PluginDisableResult = InstalledPlugin;
|
|
15821
15869
|
type PluginEnableResult = InstalledPlugin;
|
|
15822
15870
|
type PluginGetSettingsResult = PluginSettingsResponse;
|
|
@@ -15824,6 +15872,8 @@ type PluginInstallResult = InstalledPlugin;
|
|
|
15824
15872
|
type PluginListResult = PluginListResponse;
|
|
15825
15873
|
type PluginReloadResult = PluginReloadResponse;
|
|
15826
15874
|
type PluginRemoveResult = PluginRemoveResponse;
|
|
15875
|
+
type PluginSafeModeResult = PluginSafeModeResponse;
|
|
15876
|
+
type PluginSetSafeModeResult = PluginSafeModeUpdateResponse;
|
|
15827
15877
|
type PluginTokenResult = PluginTokenResponse;
|
|
15828
15878
|
type PluginUpdateSettingsResult = PluginSettingsResponse;
|
|
15829
15879
|
type PluginGetSourceResult = PluginSourceDetail;
|
|
@@ -15852,6 +15902,8 @@ interface PluginMarketplacesArea {
|
|
|
15852
15902
|
}
|
|
15853
15903
|
interface PluginsArea {
|
|
15854
15904
|
experimental_discoverRpc(args?: PluginRpcDiscoveryQuery): Promise<PublishedPluginRpcMethod[]>;
|
|
15905
|
+
experimental_getSafeMode(args?: PluginGetSafeModeArgs): Promise<PluginSafeModeResult>;
|
|
15906
|
+
experimental_setSafeMode(args: PluginSetSafeModeArgs): Promise<PluginSetSafeModeResult>;
|
|
15855
15907
|
applyUpdate(args: PluginIdArgs): Promise<PluginApplyUpdateResult>;
|
|
15856
15908
|
callRpc<TOutput>(args: PluginRpcArgs<TOutput>): Promise<TOutput>;
|
|
15857
15909
|
checkUpdates(args?: PluginCheckUpdatesArgs): Promise<PluginCheckUpdatesResult>;
|
|
@@ -16255,6 +16307,7 @@ interface TerminalsArea {
|
|
|
16255
16307
|
interface ThreadListArgs {
|
|
16256
16308
|
archived?: boolean;
|
|
16257
16309
|
environmentId?: string;
|
|
16310
|
+
hostId?: string;
|
|
16258
16311
|
sectionId?: string;
|
|
16259
16312
|
hasParent?: boolean;
|
|
16260
16313
|
includeHidden?: boolean;
|
|
@@ -18100,12 +18153,13 @@ interface PluginSidebarThreadSplit {
|
|
|
18100
18153
|
* Replace the sidebar's thread list with a plugin component.
|
|
18101
18154
|
*
|
|
18102
18155
|
* Unlike every other slot, this one is EXCLUSIVE: two lists cannot share one
|
|
18103
|
-
* scroll area.
|
|
18104
|
-
*
|
|
18105
|
-
*
|
|
18106
|
-
*
|
|
18107
|
-
*
|
|
18108
|
-
*
|
|
18156
|
+
* scroll area. bb ships its own list as the bundled Thread list plugin
|
|
18157
|
+
* (`thread-list/thread-list`). Registering activates the replacement while the
|
|
18158
|
+
* plugin is enabled: by default the first registered list other than the
|
|
18159
|
+
* bundled one, in deterministic slot order, is active, falling back to the
|
|
18160
|
+
* bundled list; removing it reveals the next. The user can pin a specific
|
|
18161
|
+
* provider, including the bundled one, under Settings → Appearance → Sidebar.
|
|
18162
|
+
* A missing pinned provider or a crashing list shows a placeholder rather than
|
|
18109
18163
|
* leaving the user with no sidebar.
|
|
18110
18164
|
*
|
|
18111
18165
|
* The plugin gets the scrolling list and nothing else. The New-thread button,
|
|
@@ -18124,11 +18178,12 @@ interface PluginThreadListRegistration {
|
|
|
18124
18178
|
}
|
|
18125
18179
|
/**
|
|
18126
18180
|
* Replace the navigation controls above the sidebar thread list. Exclusive:
|
|
18127
|
-
* the user picks one provider under Settings → Appearance → Navigation, and
|
|
18128
18181
|
* bb ships its own rows as the bundled Navigation plugin
|
|
18129
|
-
* (`navigation/navigation
|
|
18130
|
-
*
|
|
18131
|
-
*
|
|
18182
|
+
* (`navigation/navigation`). By default the first registered provider other
|
|
18183
|
+
* than Navigation is active, falling back to Navigation; the user can pin one
|
|
18184
|
+
* provider under Settings → Appearance → Navigation. A pinned provider that is
|
|
18185
|
+
* disabled or removed falls back to Navigation; a crashing provider is
|
|
18186
|
+
* replaced by a placeholder with a Reload button.
|
|
18132
18187
|
*/
|
|
18133
18188
|
interface ExperimentalSidebarNavigationRegistration {
|
|
18134
18189
|
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
@@ -32,6 +32,12 @@ declare const environmentSchema: z.ZodObject<{
|
|
|
32
32
|
}, z.core.$strip>], "type">;
|
|
33
33
|
}, z.core.$strip>>;
|
|
34
34
|
hostId: z.ZodString;
|
|
35
|
+
hostLifecycle: z.ZodEnum<{
|
|
36
|
+
"cleanup-failed": "cleanup-failed";
|
|
37
|
+
active: "active";
|
|
38
|
+
removed: "removed";
|
|
39
|
+
removing: "removing";
|
|
40
|
+
}>;
|
|
35
41
|
id: z.ZodString;
|
|
36
42
|
isGitRepo: z.ZodBoolean;
|
|
37
43
|
isWorktree: z.ZodBoolean;
|
|
@@ -85,6 +85,12 @@ declare const environmentSchema: z.ZodObject<{
|
|
|
85
85
|
}, z.core.$strip>], "type">;
|
|
86
86
|
}, z.core.$strip>>;
|
|
87
87
|
hostId: z.ZodString;
|
|
88
|
+
hostLifecycle: z.ZodEnum<{
|
|
89
|
+
"cleanup-failed": "cleanup-failed";
|
|
90
|
+
active: "active";
|
|
91
|
+
removed: "removed";
|
|
92
|
+
removing: "removing";
|
|
93
|
+
}>;
|
|
88
94
|
id: z.ZodString;
|
|
89
95
|
isGitRepo: z.ZodBoolean;
|
|
90
96
|
isWorktree: z.ZodBoolean;
|
|
@@ -3661,6 +3661,7 @@ declare const threadEventSchema: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.
|
|
|
3661
3661
|
cause: z.ZodOptional<z.ZodLiteral<"host-connection-lost">>;
|
|
3662
3662
|
reason: z.ZodEnum<{
|
|
3663
3663
|
"host-daemon-restarted": "host-daemon-restarted";
|
|
3664
|
+
"host-removed": "host-removed";
|
|
3664
3665
|
"manual-stop": "manual-stop";
|
|
3665
3666
|
"provider-turn-idle": "provider-turn-idle";
|
|
3666
3667
|
}>;
|
|
@@ -160,6 +160,12 @@ declare const environmentSchema: z.ZodObject<{
|
|
|
160
160
|
}, z.core.$strip>], "type">;
|
|
161
161
|
}, z.core.$strip>>;
|
|
162
162
|
hostId: z.ZodString;
|
|
163
|
+
hostLifecycle: z.ZodEnum<{
|
|
164
|
+
"cleanup-failed": "cleanup-failed";
|
|
165
|
+
active: "active";
|
|
166
|
+
removed: "removed";
|
|
167
|
+
removing: "removing";
|
|
168
|
+
}>;
|
|
163
169
|
id: z.ZodString;
|
|
164
170
|
isGitRepo: z.ZodBoolean;
|
|
165
171
|
isWorktree: z.ZodBoolean;
|
|
@@ -160,6 +160,7 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
160
160
|
"browser.focusLocation": "browser.focusLocation";
|
|
161
161
|
"browser.reload": "browser.reload";
|
|
162
162
|
"composer.focus": "composer.focus";
|
|
163
|
+
"dataDirectory.open": "dataDirectory.open";
|
|
163
164
|
"diff.toggle": "diff.toggle";
|
|
164
165
|
"file.quickOpen": "file.quickOpen";
|
|
165
166
|
"logs.openServerDaemon": "logs.openServerDaemon";
|
|
@@ -196,6 +197,8 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
196
197
|
"panel.previousTab": "panel.previousTab";
|
|
197
198
|
"panel.reopenClosedTab": "panel.reopenClosedTab";
|
|
198
199
|
"panel.toggle": "panel.toggle";
|
|
200
|
+
"plugins.enterSafeMode": "plugins.enterSafeMode";
|
|
201
|
+
"plugins.exitSafeMode": "plugins.exitSafeMode";
|
|
199
202
|
"question.select.1": "question.select.1";
|
|
200
203
|
"question.select.2": "question.select.2";
|
|
201
204
|
"question.select.3": "question.select.3";
|
|
@@ -430,6 +433,12 @@ declare const environmentSchema: z$1.ZodObject<{
|
|
|
430
433
|
}, z$1.core.$strip>], "type">;
|
|
431
434
|
}, z$1.core.$strip>>;
|
|
432
435
|
hostId: z$1.ZodString;
|
|
436
|
+
hostLifecycle: z$1.ZodEnum<{
|
|
437
|
+
"cleanup-failed": "cleanup-failed";
|
|
438
|
+
active: "active";
|
|
439
|
+
removed: "removed";
|
|
440
|
+
removing: "removing";
|
|
441
|
+
}>;
|
|
433
442
|
id: z$1.ZodString;
|
|
434
443
|
isGitRepo: z$1.ZodBoolean;
|
|
435
444
|
isWorktree: z$1.ZodBoolean;
|
|
@@ -501,6 +510,11 @@ declare const workspaceGitOperationSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObj
|
|
|
501
510
|
}, z$1.core.$strip>], "kind">;
|
|
502
511
|
type WorkspaceGitOperation = z$1.infer<typeof workspaceGitOperationSchema>;
|
|
503
512
|
|
|
513
|
+
declare const hostTypeSchema: z$1.ZodEnum<{
|
|
514
|
+
ephemeral: "ephemeral";
|
|
515
|
+
persistent: "persistent";
|
|
516
|
+
}>;
|
|
517
|
+
type HostType = z$1.infer<typeof hostTypeSchema>;
|
|
504
518
|
declare const hostSchema: z$1.ZodObject<{
|
|
505
519
|
createdAt: z$1.ZodNumber;
|
|
506
520
|
id: z$1.ZodString;
|
|
@@ -3107,6 +3121,7 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
3107
3121
|
cause: z$1.ZodOptional<z$1.ZodLiteral<"host-connection-lost">>;
|
|
3108
3122
|
reason: z$1.ZodEnum<{
|
|
3109
3123
|
"host-daemon-restarted": "host-daemon-restarted";
|
|
3124
|
+
"host-removed": "host-removed";
|
|
3110
3125
|
"manual-stop": "manual-stop";
|
|
3111
3126
|
"provider-turn-idle": "provider-turn-idle";
|
|
3112
3127
|
}>;
|
|
@@ -9512,6 +9527,15 @@ declare const pluginSettingsResponseSchema: z$1.ZodObject<{
|
|
|
9512
9527
|
values: z$1.ZodRecord<z$1.ZodString, z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>;
|
|
9513
9528
|
}, z$1.core.$strip>;
|
|
9514
9529
|
type PluginSettingsResponse = z$1.infer<typeof pluginSettingsResponseSchema>;
|
|
9530
|
+
declare const pluginSafeModeResponseSchema: z$1.ZodObject<{
|
|
9531
|
+
enabled: z$1.ZodBoolean;
|
|
9532
|
+
}, z$1.core.$strip>;
|
|
9533
|
+
type PluginSafeModeResponse = z$1.infer<typeof pluginSafeModeResponseSchema>;
|
|
9534
|
+
declare const pluginSafeModeUpdateResponseSchema: z$1.ZodObject<{
|
|
9535
|
+
enabled: z$1.ZodBoolean;
|
|
9536
|
+
problems: z$1.ZodArray<z$1.ZodString>;
|
|
9537
|
+
}, z$1.core.$strip>;
|
|
9538
|
+
type PluginSafeModeUpdateResponse = z$1.infer<typeof pluginSafeModeUpdateResponseSchema>;
|
|
9515
9539
|
declare const pluginTokenResponseSchema: z$1.ZodObject<{
|
|
9516
9540
|
ok: z$1.ZodLiteral<true>;
|
|
9517
9541
|
token: z$1.ZodString;
|
|
@@ -10030,6 +10054,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10030
10054
|
"browser.focusLocation": "browser.focusLocation";
|
|
10031
10055
|
"browser.reload": "browser.reload";
|
|
10032
10056
|
"composer.focus": "composer.focus";
|
|
10057
|
+
"dataDirectory.open": "dataDirectory.open";
|
|
10033
10058
|
"diff.toggle": "diff.toggle";
|
|
10034
10059
|
"file.quickOpen": "file.quickOpen";
|
|
10035
10060
|
"logs.openServerDaemon": "logs.openServerDaemon";
|
|
@@ -10066,6 +10091,8 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10066
10091
|
"panel.previousTab": "panel.previousTab";
|
|
10067
10092
|
"panel.reopenClosedTab": "panel.reopenClosedTab";
|
|
10068
10093
|
"panel.toggle": "panel.toggle";
|
|
10094
|
+
"plugins.enterSafeMode": "plugins.enterSafeMode";
|
|
10095
|
+
"plugins.exitSafeMode": "plugins.exitSafeMode";
|
|
10069
10096
|
"question.select.1": "question.select.1";
|
|
10070
10097
|
"question.select.2": "question.select.2";
|
|
10071
10098
|
"question.select.3": "question.select.3";
|
|
@@ -10172,6 +10199,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10172
10199
|
"browser.focusLocation": "browser.focusLocation";
|
|
10173
10200
|
"browser.reload": "browser.reload";
|
|
10174
10201
|
"composer.focus": "composer.focus";
|
|
10202
|
+
"dataDirectory.open": "dataDirectory.open";
|
|
10175
10203
|
"diff.toggle": "diff.toggle";
|
|
10176
10204
|
"file.quickOpen": "file.quickOpen";
|
|
10177
10205
|
"logs.openServerDaemon": "logs.openServerDaemon";
|
|
@@ -10208,6 +10236,8 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10208
10236
|
"panel.previousTab": "panel.previousTab";
|
|
10209
10237
|
"panel.reopenClosedTab": "panel.reopenClosedTab";
|
|
10210
10238
|
"panel.toggle": "panel.toggle";
|
|
10239
|
+
"plugins.enterSafeMode": "plugins.enterSafeMode";
|
|
10240
|
+
"plugins.exitSafeMode": "plugins.exitSafeMode";
|
|
10211
10241
|
"question.select.1": "question.select.1";
|
|
10212
10242
|
"question.select.2": "question.select.2";
|
|
10213
10243
|
"question.select.3": "question.select.3";
|
|
@@ -10256,6 +10286,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10256
10286
|
"browser.focusLocation": "browser.focusLocation";
|
|
10257
10287
|
"browser.reload": "browser.reload";
|
|
10258
10288
|
"composer.focus": "composer.focus";
|
|
10289
|
+
"dataDirectory.open": "dataDirectory.open";
|
|
10259
10290
|
"diff.toggle": "diff.toggle";
|
|
10260
10291
|
"file.quickOpen": "file.quickOpen";
|
|
10261
10292
|
"logs.openServerDaemon": "logs.openServerDaemon";
|
|
@@ -10292,6 +10323,8 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10292
10323
|
"panel.previousTab": "panel.previousTab";
|
|
10293
10324
|
"panel.reopenClosedTab": "panel.reopenClosedTab";
|
|
10294
10325
|
"panel.toggle": "panel.toggle";
|
|
10326
|
+
"plugins.enterSafeMode": "plugins.enterSafeMode";
|
|
10327
|
+
"plugins.exitSafeMode": "plugins.exitSafeMode";
|
|
10295
10328
|
"question.select.1": "question.select.1";
|
|
10296
10329
|
"question.select.2": "question.select.2";
|
|
10297
10330
|
"question.select.3": "question.select.3";
|
|
@@ -13568,6 +13601,12 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
|
|
|
13568
13601
|
}, z$1.core.$strip>], "type">;
|
|
13569
13602
|
}, z$1.core.$strip>>;
|
|
13570
13603
|
hostId: z$1.ZodString;
|
|
13604
|
+
hostLifecycle: z$1.ZodEnum<{
|
|
13605
|
+
"cleanup-failed": "cleanup-failed";
|
|
13606
|
+
active: "active";
|
|
13607
|
+
removed: "removed";
|
|
13608
|
+
removing: "removing";
|
|
13609
|
+
}>;
|
|
13571
13610
|
id: z$1.ZodString;
|
|
13572
13611
|
isGitRepo: z$1.ZodBoolean;
|
|
13573
13612
|
isWorktree: z$1.ZodBoolean;
|
|
@@ -13608,6 +13647,7 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
|
|
|
13608
13647
|
unmanaged: "unmanaged";
|
|
13609
13648
|
}>>;
|
|
13610
13649
|
}, z$1.core.$strip>>>;
|
|
13650
|
+
environmentHostName: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
13611
13651
|
environmentId: z$1.ZodNullable<z$1.ZodString>;
|
|
13612
13652
|
host: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
13613
13653
|
createdAt: z$1.ZodNumber;
|
|
@@ -14221,6 +14261,7 @@ declare const threadListQuerySchema: z$1.ZodObject<{
|
|
|
14221
14261
|
false: "false";
|
|
14222
14262
|
true: "true";
|
|
14223
14263
|
}>>;
|
|
14264
|
+
hostId: z$1.ZodOptional<z$1.ZodString>;
|
|
14224
14265
|
includeHidden: z$1.ZodOptional<z$1.ZodEnum<{
|
|
14225
14266
|
false: "false";
|
|
14226
14267
|
true: "true";
|
|
@@ -15540,6 +15581,7 @@ interface HostProviderCliInstallArgs extends HostProviderCliInstallRequest {
|
|
|
15540
15581
|
}
|
|
15541
15582
|
interface HostListArgs {
|
|
15542
15583
|
includeCreating?: boolean;
|
|
15584
|
+
type?: HostType;
|
|
15543
15585
|
signal?: AbortSignal;
|
|
15544
15586
|
}
|
|
15545
15587
|
interface MachineCreateArgs extends CreateMachineRequest {
|
|
@@ -15880,6 +15922,12 @@ interface PluginListArgs {
|
|
|
15880
15922
|
interface PluginListUpdateResultsArgs {
|
|
15881
15923
|
signal?: AbortSignal;
|
|
15882
15924
|
}
|
|
15925
|
+
interface PluginGetSafeModeArgs {
|
|
15926
|
+
signal?: AbortSignal;
|
|
15927
|
+
}
|
|
15928
|
+
interface PluginSetSafeModeArgs {
|
|
15929
|
+
enabled: boolean;
|
|
15930
|
+
}
|
|
15883
15931
|
type PluginDisableResult = InstalledPlugin;
|
|
15884
15932
|
type PluginEnableResult = InstalledPlugin;
|
|
15885
15933
|
type PluginGetSettingsResult = PluginSettingsResponse;
|
|
@@ -15887,6 +15935,8 @@ type PluginInstallResult = InstalledPlugin;
|
|
|
15887
15935
|
type PluginListResult = PluginListResponse;
|
|
15888
15936
|
type PluginReloadResult = PluginReloadResponse;
|
|
15889
15937
|
type PluginRemoveResult = PluginRemoveResponse;
|
|
15938
|
+
type PluginSafeModeResult = PluginSafeModeResponse;
|
|
15939
|
+
type PluginSetSafeModeResult = PluginSafeModeUpdateResponse;
|
|
15890
15940
|
type PluginTokenResult = PluginTokenResponse;
|
|
15891
15941
|
type PluginUpdateSettingsResult = PluginSettingsResponse;
|
|
15892
15942
|
type PluginGetSourceResult = PluginSourceDetail;
|
|
@@ -15915,6 +15965,8 @@ interface PluginMarketplacesArea {
|
|
|
15915
15965
|
}
|
|
15916
15966
|
interface PluginsArea {
|
|
15917
15967
|
experimental_discoverRpc(args?: PluginRpcDiscoveryQuery): Promise<PublishedPluginRpcMethod[]>;
|
|
15968
|
+
experimental_getSafeMode(args?: PluginGetSafeModeArgs): Promise<PluginSafeModeResult>;
|
|
15969
|
+
experimental_setSafeMode(args: PluginSetSafeModeArgs): Promise<PluginSetSafeModeResult>;
|
|
15918
15970
|
applyUpdate(args: PluginIdArgs): Promise<PluginApplyUpdateResult>;
|
|
15919
15971
|
callRpc<TOutput>(args: PluginRpcArgs<TOutput>): Promise<TOutput>;
|
|
15920
15972
|
checkUpdates(args?: PluginCheckUpdatesArgs): Promise<PluginCheckUpdatesResult>;
|
|
@@ -16318,6 +16370,7 @@ interface TerminalsArea {
|
|
|
16318
16370
|
interface ThreadListArgs {
|
|
16319
16371
|
archived?: boolean;
|
|
16320
16372
|
environmentId?: string;
|
|
16373
|
+
hostId?: string;
|
|
16321
16374
|
sectionId?: string;
|
|
16322
16375
|
hasParent?: boolean;
|
|
16323
16376
|
includeHidden?: boolean;
|
|
@@ -18252,12 +18305,13 @@ interface PluginSidebarThreadSplit {
|
|
|
18252
18305
|
* Replace the sidebar's thread list with a plugin component.
|
|
18253
18306
|
*
|
|
18254
18307
|
* Unlike every other slot, this one is EXCLUSIVE: two lists cannot share one
|
|
18255
|
-
* scroll area.
|
|
18256
|
-
*
|
|
18257
|
-
*
|
|
18258
|
-
*
|
|
18259
|
-
*
|
|
18260
|
-
*
|
|
18308
|
+
* scroll area. bb ships its own list as the bundled Thread list plugin
|
|
18309
|
+
* (`thread-list/thread-list`). Registering activates the replacement while the
|
|
18310
|
+
* plugin is enabled: by default the first registered list other than the
|
|
18311
|
+
* bundled one, in deterministic slot order, is active, falling back to the
|
|
18312
|
+
* bundled list; removing it reveals the next. The user can pin a specific
|
|
18313
|
+
* provider, including the bundled one, under Settings → Appearance → Sidebar.
|
|
18314
|
+
* A missing pinned provider or a crashing list shows a placeholder rather than
|
|
18261
18315
|
* leaving the user with no sidebar.
|
|
18262
18316
|
*
|
|
18263
18317
|
* The plugin gets the scrolling list and nothing else. The New-thread button,
|
|
@@ -18276,11 +18330,12 @@ interface PluginThreadListRegistration {
|
|
|
18276
18330
|
}
|
|
18277
18331
|
/**
|
|
18278
18332
|
* Replace the navigation controls above the sidebar thread list. Exclusive:
|
|
18279
|
-
* the user picks one provider under Settings → Appearance → Navigation, and
|
|
18280
18333
|
* bb ships its own rows as the bundled Navigation plugin
|
|
18281
|
-
* (`navigation/navigation
|
|
18282
|
-
*
|
|
18283
|
-
*
|
|
18334
|
+
* (`navigation/navigation`). By default the first registered provider other
|
|
18335
|
+
* than Navigation is active, falling back to Navigation; the user can pin one
|
|
18336
|
+
* provider under Settings → Appearance → Navigation. A pinned provider that is
|
|
18337
|
+
* disabled or removed falls back to Navigation; a crashing provider is
|
|
18338
|
+
* replaced by a placeholder with a Reload button.
|
|
18284
18339
|
*/
|
|
18285
18340
|
interface ExperimentalSidebarNavigationRegistration {
|
|
18286
18341
|
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
@@ -20474,6 +20529,15 @@ interface PluginThreadEventPayloads {
|
|
|
20474
20529
|
"experimental_terminal.input": {
|
|
20475
20530
|
terminal: TerminalSession;
|
|
20476
20531
|
};
|
|
20532
|
+
/**
|
|
20533
|
+
* Fired once after a machine is removed, whether a user removed it or its
|
|
20534
|
+
* machine provider finished tearing it down. `host` is the record as it was
|
|
20535
|
+
* when it was removed; `bb.sdk.hosts.get` answers 404 for it from now on, so
|
|
20536
|
+
* this is the moment to drop anything the plugin keeps per host.
|
|
20537
|
+
*/
|
|
20538
|
+
"experimental_host.deleted": {
|
|
20539
|
+
host: Host;
|
|
20540
|
+
};
|
|
20477
20541
|
/** Fired after a thread row is created. */
|
|
20478
20542
|
"thread.created": {
|
|
20479
20543
|
thread: ThreadResponse;
|
|
@@ -1876,6 +1876,7 @@ var systemUserQuestionLifecycleEventDataSchema = z13.object({
|
|
|
1876
1876
|
var systemThreadInterruptedReasonValues = [
|
|
1877
1877
|
"manual-stop",
|
|
1878
1878
|
"host-daemon-restarted",
|
|
1879
|
+
"host-removed",
|
|
1879
1880
|
"provider-turn-idle"
|
|
1880
1881
|
];
|
|
1881
1882
|
var systemThreadInterruptedReasonSchema = z13.enum(
|
|
@@ -965,6 +965,7 @@ var systemUserQuestionLifecycleEventDataSchema = z11.object({
|
|
|
965
965
|
var systemThreadInterruptedReasonValues = [
|
|
966
966
|
"manual-stop",
|
|
967
967
|
"host-daemon-restarted",
|
|
968
|
+
"host-removed",
|
|
968
969
|
"provider-turn-idle"
|
|
969
970
|
];
|
|
970
971
|
var systemThreadInterruptedReasonSchema = z11.enum(
|
package/dist/provider-bridge.js
CHANGED
|
@@ -2403,6 +2403,7 @@ var systemUserQuestionLifecycleEventDataSchema = z15.object({
|
|
|
2403
2403
|
var systemThreadInterruptedReasonValues = [
|
|
2404
2404
|
"manual-stop",
|
|
2405
2405
|
"host-daemon-restarted",
|
|
2406
|
+
"host-removed",
|
|
2406
2407
|
"provider-turn-idle"
|
|
2407
2408
|
];
|
|
2408
2409
|
var systemThreadInterruptedReasonSchema = z15.enum(
|
package/dist/testing/index.js
CHANGED
|
@@ -3295,6 +3295,7 @@ function createFakePluginHostInternal(options, sharedState) {
|
|
|
3295
3295
|
const threadEventHandlers = {
|
|
3296
3296
|
"experimental_thread.events": [],
|
|
3297
3297
|
"experimental_terminal.input": [],
|
|
3298
|
+
"experimental_host.deleted": [],
|
|
3298
3299
|
"thread.created": [],
|
|
3299
3300
|
"thread.active": [],
|
|
3300
3301
|
"thread.idle": [],
|
|
@@ -3732,6 +3733,7 @@ function createFakePluginHostInternal(options, sharedState) {
|
|
|
3732
3733
|
return {
|
|
3733
3734
|
"experimental_thread.events": threadEventHandlers["experimental_thread.events"].length,
|
|
3734
3735
|
"experimental_terminal.input": threadEventHandlers["experimental_terminal.input"].length,
|
|
3736
|
+
"experimental_host.deleted": threadEventHandlers["experimental_host.deleted"].length,
|
|
3735
3737
|
"thread.created": threadEventHandlers["thread.created"].length,
|
|
3736
3738
|
"thread.active": threadEventHandlers["thread.active"].length,
|
|
3737
3739
|
"thread.idle": threadEventHandlers["thread.idle"].length,
|
|
@@ -4357,6 +4359,7 @@ function makeMessageDispatchHookContext(overrides = {}) {
|
|
|
4357
4359
|
environmentProviderSelection: null,
|
|
4358
4360
|
environmentProviderInstanceKey: null,
|
|
4359
4361
|
lifecycle: { phase: "active", retireAt: null, teardown: null },
|
|
4362
|
+
hostLifecycle: "active",
|
|
4360
4363
|
managed: false,
|
|
4361
4364
|
workspaceProvisionType: null,
|
|
4362
4365
|
status: "ready",
|