@get-bb/plugin-sdk 0.6.116 → 0.6.121
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/README.md +3 -1
- package/bundled-types/bb-plugin-sdk-app.d.ts +80 -162
- package/bundled-types/bb-plugin-sdk-internal-file-navigation-validation.d.ts +5 -1
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +1 -2
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp-next.d.ts +1 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts +1 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge-testing.d.ts +5 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +5 -0
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +8 -4
- package/bundled-types/bb-plugin-sdk.d.ts +87 -161
- package/dist/app.js +4 -0
- package/dist/internal/file-navigation-validation.js +13 -0
- package/dist/internal/plugin-app-collector.js +2 -13
- package/dist/internal/rpc-query-host.js +3 -3
- package/dist/provider-bridge-acp-next.js +2 -0
- package/dist/provider-bridge-acp.js +2 -0
- package/dist/provider-bridge-testing.js +4 -0
- package/dist/provider-bridge.js +2 -0
- package/dist/testing/app.js +11 -16
- package/dist/testing/index.js +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -49,7 +49,9 @@ and ill-formed Unicode—have no active href and cannot record a preview in the
|
|
|
49
49
|
frontend harness. Buttons and menus can call
|
|
50
50
|
`experimental_openFilePreview({ target, location })` or
|
|
51
51
|
`experimental_openFileExternally({ target, location })`; both return whether
|
|
52
|
-
the current host accepted the intent.
|
|
52
|
+
the current host accepted the intent. Pass `opener: "<id>"` to
|
|
53
|
+
`experimental_openFilePreview` to show the file with one of your own
|
|
54
|
+
`fileOpener` registrations for that open, as the "Open with" menu does. The
|
|
53
55
|
`experimental_useCanOpenFileExternally(target)` hook reports whether the
|
|
54
56
|
external open can succeed now (false while loading) and re-renders the
|
|
55
57
|
component when that changes; use it to disable an Open externally control.
|
|
@@ -481,7 +481,6 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
481
481
|
type: z$1.ZodLiteral<"changed">;
|
|
482
482
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
483
483
|
changes: z$1.ZodReadonly<z$1.ZodArray<z$1.ZodEnum<{
|
|
484
|
-
"diff-viewed-changed": "diff-viewed-changed";
|
|
485
484
|
"environment-created": "environment-created";
|
|
486
485
|
"environment-deleted": "environment-deleted";
|
|
487
486
|
"git-refs-changed": "git-refs-changed";
|
|
@@ -497,6 +496,7 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
497
496
|
changes: z$1.ZodReadonly<z$1.ZodArray<z$1.ZodEnum<{
|
|
498
497
|
"host-connected": "host-connected";
|
|
499
498
|
"host-disconnected": "host-disconnected";
|
|
499
|
+
"provider-cli-status-changed": "provider-cli-status-changed";
|
|
500
500
|
"provider-commands-changed": "provider-commands-changed";
|
|
501
501
|
"provider-model-catalog-changed": "provider-model-catalog-changed";
|
|
502
502
|
}>>>;
|
|
@@ -607,35 +607,33 @@ declare const environmentSchema: z$1.ZodObject<{
|
|
|
607
607
|
type Environment = z$1.infer<typeof environmentSchema>;
|
|
608
608
|
|
|
609
609
|
declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
610
|
-
applicationLinks: "applicationLinks";
|
|
611
610
|
compactExpiredCache: "compactExpiredCache";
|
|
611
|
+
dismissReadNotifications: "dismissReadNotifications";
|
|
612
612
|
narrowPluginCss: "narrowPluginCss";
|
|
613
613
|
performanceDiagnostics: "performanceDiagnostics";
|
|
614
614
|
pluginUpdates: "pluginUpdates";
|
|
615
|
+
resumeThreadsAfterRestart: "resumeThreadsAfterRestart";
|
|
615
616
|
serverMove: "serverMove";
|
|
616
|
-
sidebarMultiSelect: "sidebarMultiSelect";
|
|
617
617
|
skipFocusedThreadNotifications: "skipFocusedThreadNotifications";
|
|
618
618
|
threadContextCard: "threadContextCard";
|
|
619
619
|
threadRowMetadata: "threadRowMetadata";
|
|
620
620
|
timelinePush: "timelinePush";
|
|
621
|
-
|
|
622
|
-
websocketCompression: "websocketCompression";
|
|
621
|
+
updateWhenIdle: "updateWhenIdle";
|
|
623
622
|
}>, z$1.ZodBoolean>;
|
|
624
623
|
type Experiments = z$1.infer<typeof experimentsSchema>;
|
|
625
624
|
declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
626
|
-
applicationLinks: "applicationLinks";
|
|
627
625
|
compactExpiredCache: "compactExpiredCache";
|
|
626
|
+
dismissReadNotifications: "dismissReadNotifications";
|
|
628
627
|
narrowPluginCss: "narrowPluginCss";
|
|
629
628
|
performanceDiagnostics: "performanceDiagnostics";
|
|
630
629
|
pluginUpdates: "pluginUpdates";
|
|
630
|
+
resumeThreadsAfterRestart: "resumeThreadsAfterRestart";
|
|
631
631
|
serverMove: "serverMove";
|
|
632
|
-
sidebarMultiSelect: "sidebarMultiSelect";
|
|
633
632
|
skipFocusedThreadNotifications: "skipFocusedThreadNotifications";
|
|
634
633
|
threadContextCard: "threadContextCard";
|
|
635
634
|
threadRowMetadata: "threadRowMetadata";
|
|
636
635
|
timelinePush: "timelinePush";
|
|
637
|
-
|
|
638
|
-
websocketCompression: "websocketCompression";
|
|
636
|
+
updateWhenIdle: "updateWhenIdle";
|
|
639
637
|
}> & z$1.core.$partial, z$1.ZodBoolean>;
|
|
640
638
|
type ExperimentUpdates = z$1.infer<typeof experimentUpdatesSchema>;
|
|
641
639
|
|
|
@@ -865,6 +863,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
865
863
|
}>>;
|
|
866
864
|
command: z$1.ZodString;
|
|
867
865
|
cwd: z$1.ZodString;
|
|
866
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
868
867
|
durationMs: z$1.ZodOptional<z$1.ZodNumber>;
|
|
869
868
|
exitCode: z$1.ZodOptional<z$1.ZodNumber>;
|
|
870
869
|
id: z$1.ZodString;
|
|
@@ -1632,6 +1631,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
1632
1631
|
}>>;
|
|
1633
1632
|
command: z$1.ZodString;
|
|
1634
1633
|
cwd: z$1.ZodString;
|
|
1634
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
1635
1635
|
durationMs: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1636
1636
|
exitCode: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1637
1637
|
id: z$1.ZodString;
|
|
@@ -5516,19 +5516,6 @@ declare const environmentPathsQuerySchema: z$1.ZodObject<{
|
|
|
5516
5516
|
query: z$1.ZodOptional<z$1.ZodString>;
|
|
5517
5517
|
}, z$1.core.$strip>;
|
|
5518
5518
|
type EnvironmentPathsQuery = z$1.infer<typeof environmentPathsQuerySchema>;
|
|
5519
|
-
declare const environmentDiffQuerySchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
5520
|
-
target: z$1.ZodLiteral<"uncommitted">;
|
|
5521
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
5522
|
-
mergeBaseBranch: z$1.ZodPipe<z$1.ZodString, z$1.ZodString>;
|
|
5523
|
-
target: z$1.ZodLiteral<"branch_committed">;
|
|
5524
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
5525
|
-
mergeBaseBranch: z$1.ZodPipe<z$1.ZodString, z$1.ZodString>;
|
|
5526
|
-
target: z$1.ZodLiteral<"all">;
|
|
5527
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
5528
|
-
sha: z$1.ZodString;
|
|
5529
|
-
target: z$1.ZodLiteral<"commit">;
|
|
5530
|
-
}, z$1.core.$strip>], "target">;
|
|
5531
|
-
type EnvironmentDiffQuery = z$1.infer<typeof environmentDiffQuerySchema>;
|
|
5532
5519
|
declare const environmentArchiveThreadsResponseSchema: z$1.ZodObject<{
|
|
5533
5520
|
archivedThreadIds: z$1.ZodArray<z$1.ZodString>;
|
|
5534
5521
|
ok: z$1.ZodLiteral<true>;
|
|
@@ -5542,46 +5529,6 @@ declare const commitActionResponseSchema: z$1.ZodObject<{
|
|
|
5542
5529
|
ok: z$1.ZodLiteral<true>;
|
|
5543
5530
|
}, z$1.core.$strip>;
|
|
5544
5531
|
type CommitActionResponse = z$1.infer<typeof commitActionResponseSchema>;
|
|
5545
|
-
declare const environmentDiffViewedResponseSchema: z$1.ZodObject<{
|
|
5546
|
-
files: z$1.ZodArray<z$1.ZodObject<{
|
|
5547
|
-
path: z$1.ZodString;
|
|
5548
|
-
revision: z$1.ZodString;
|
|
5549
|
-
}, z$1.core.$strict>>;
|
|
5550
|
-
}, z$1.core.$strict>;
|
|
5551
|
-
type EnvironmentDiffViewedResponse = z$1.infer<typeof environmentDiffViewedResponseSchema>;
|
|
5552
|
-
declare const environmentDiffViewedMarkRequestSchema: z$1.ZodObject<{
|
|
5553
|
-
path: z$1.ZodString;
|
|
5554
|
-
revision: z$1.ZodString;
|
|
5555
|
-
target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
5556
|
-
type: z$1.ZodLiteral<"uncommitted">;
|
|
5557
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
5558
|
-
mergeBaseBranch: z$1.ZodString;
|
|
5559
|
-
type: z$1.ZodLiteral<"branch_committed">;
|
|
5560
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
5561
|
-
mergeBaseBranch: z$1.ZodString;
|
|
5562
|
-
type: z$1.ZodLiteral<"all">;
|
|
5563
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
5564
|
-
sha: z$1.ZodString;
|
|
5565
|
-
type: z$1.ZodLiteral<"commit">;
|
|
5566
|
-
}, z$1.core.$strip>], "type">;
|
|
5567
|
-
}, z$1.core.$strict>;
|
|
5568
|
-
type EnvironmentDiffViewedMarkRequest = z$1.infer<typeof environmentDiffViewedMarkRequestSchema>;
|
|
5569
|
-
declare const environmentDiffViewedClearRequestSchema: z$1.ZodObject<{
|
|
5570
|
-
path: z$1.ZodOptional<z$1.ZodString>;
|
|
5571
|
-
target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
5572
|
-
type: z$1.ZodLiteral<"uncommitted">;
|
|
5573
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
5574
|
-
mergeBaseBranch: z$1.ZodString;
|
|
5575
|
-
type: z$1.ZodLiteral<"branch_committed">;
|
|
5576
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
5577
|
-
mergeBaseBranch: z$1.ZodString;
|
|
5578
|
-
type: z$1.ZodLiteral<"all">;
|
|
5579
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
5580
|
-
sha: z$1.ZodString;
|
|
5581
|
-
type: z$1.ZodLiteral<"commit">;
|
|
5582
|
-
}, z$1.core.$strip>], "type">;
|
|
5583
|
-
}, z$1.core.$strict>;
|
|
5584
|
-
type EnvironmentDiffViewedClearRequest = z$1.infer<typeof environmentDiffViewedClearRequestSchema>;
|
|
5585
5532
|
|
|
5586
5533
|
declare const providerUsageResponseSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
5587
5534
|
accountEmail: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -10051,7 +9998,6 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
10051
9998
|
name: z$1.ZodLiteral<"recommendation">;
|
|
10052
9999
|
properties: z$1.ZodObject<{
|
|
10053
10000
|
action: z$1.ZodEnum<{
|
|
10054
|
-
deselected: "deselected";
|
|
10055
10001
|
selected: "selected";
|
|
10056
10002
|
shown: "shown";
|
|
10057
10003
|
}>;
|
|
@@ -10145,14 +10091,6 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
10145
10091
|
started: "started";
|
|
10146
10092
|
}>;
|
|
10147
10093
|
}, z$1.core.$strict>;
|
|
10148
|
-
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10149
|
-
name: z$1.ZodLiteral<"onboarding_exposed">;
|
|
10150
|
-
properties: z$1.ZodObject<{
|
|
10151
|
-
entry: z$1.ZodEnum<{
|
|
10152
|
-
first_run: "first_run";
|
|
10153
|
-
replay: "replay";
|
|
10154
|
-
}>;
|
|
10155
|
-
}, z$1.core.$strict>;
|
|
10156
10094
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10157
10095
|
name: z$1.ZodLiteral<"onboarding_started">;
|
|
10158
10096
|
properties: z$1.ZodObject<{
|
|
@@ -10233,14 +10171,6 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
10233
10171
|
properties: z$1.ZodObject<{}, z$1.core.$strict>;
|
|
10234
10172
|
}, z$1.core.$strict>], "name">;
|
|
10235
10173
|
type RecordTelemetryEventRequest = z$1.infer<typeof recordTelemetryEventRequestSchema>;
|
|
10236
|
-
declare const systemSetupGuideResponseSchema: z$1.ZodObject<{
|
|
10237
|
-
featuredPluginEntryIds: z$1.ZodNullable<z$1.ZodArray<z$1.ZodString>>;
|
|
10238
|
-
variant: z$1.ZodEnum<{
|
|
10239
|
-
control: "control";
|
|
10240
|
-
new: "new";
|
|
10241
|
-
}>;
|
|
10242
|
-
}, z$1.core.$strip>;
|
|
10243
|
-
type SystemSetupGuideResponse = z$1.infer<typeof systemSetupGuideResponseSchema>;
|
|
10244
10174
|
declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
10245
10175
|
appearance: z$1.ZodObject<{
|
|
10246
10176
|
customCss: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -10398,19 +10328,18 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10398
10328
|
}, z$1.core.$strict>;
|
|
10399
10329
|
}, z$1.core.$strict>>;
|
|
10400
10330
|
experiments: z$1.ZodRecord<z$1.ZodEnum<{
|
|
10401
|
-
applicationLinks: "applicationLinks";
|
|
10402
10331
|
compactExpiredCache: "compactExpiredCache";
|
|
10332
|
+
dismissReadNotifications: "dismissReadNotifications";
|
|
10403
10333
|
narrowPluginCss: "narrowPluginCss";
|
|
10404
10334
|
performanceDiagnostics: "performanceDiagnostics";
|
|
10405
10335
|
pluginUpdates: "pluginUpdates";
|
|
10336
|
+
resumeThreadsAfterRestart: "resumeThreadsAfterRestart";
|
|
10406
10337
|
serverMove: "serverMove";
|
|
10407
|
-
sidebarMultiSelect: "sidebarMultiSelect";
|
|
10408
10338
|
skipFocusedThreadNotifications: "skipFocusedThreadNotifications";
|
|
10409
10339
|
threadContextCard: "threadContextCard";
|
|
10410
10340
|
threadRowMetadata: "threadRowMetadata";
|
|
10411
10341
|
timelinePush: "timelinePush";
|
|
10412
|
-
|
|
10413
|
-
websocketCompression: "websocketCompression";
|
|
10342
|
+
updateWhenIdle: "updateWhenIdle";
|
|
10414
10343
|
}>, z$1.ZodBoolean>;
|
|
10415
10344
|
featureFlags: z$1.ZodObject<{
|
|
10416
10345
|
initiatorTelemetry: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
@@ -10804,6 +10733,7 @@ declare const systemAppUpdateStatusSchema: z$1.ZodObject<{
|
|
|
10804
10733
|
targetVersion: z$1.ZodString;
|
|
10805
10734
|
}, z$1.core.$strip>], "phase">;
|
|
10806
10735
|
available: z$1.ZodNullable<z$1.ZodObject<{
|
|
10736
|
+
behindSince: z$1.ZodNullable<z$1.ZodISODateTime>;
|
|
10807
10737
|
channel: z$1.ZodEnum<{
|
|
10808
10738
|
latest: "latest";
|
|
10809
10739
|
main: "main";
|
|
@@ -10854,6 +10784,9 @@ declare const systemAppUpdateStatusSchema: z$1.ZodObject<{
|
|
|
10854
10784
|
}, z$1.core.$strip>;
|
|
10855
10785
|
}, z$1.core.$strip>>;
|
|
10856
10786
|
runningThreadCount: z$1.ZodNumber;
|
|
10787
|
+
scheduled: z$1.ZodNullable<z$1.ZodObject<{
|
|
10788
|
+
requestedAt: z$1.ZodString;
|
|
10789
|
+
}, z$1.core.$strip>>;
|
|
10857
10790
|
support: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
10858
10791
|
kind: z$1.ZodLiteral<"supported">;
|
|
10859
10792
|
mode: z$1.ZodEnum<{
|
|
@@ -11515,6 +11448,7 @@ declare const timelineCommandWorkRowSchema: z$1.ZodObject<{
|
|
|
11515
11448
|
contentDeferred: z$1.ZodOptional<z$1.ZodLiteral<true>>;
|
|
11516
11449
|
createdAt: z$1.ZodNumber;
|
|
11517
11450
|
cwd: z$1.ZodNullable<z$1.ZodString>;
|
|
11451
|
+
description: z$1.ZodNullable<z$1.ZodString>;
|
|
11518
11452
|
exitCode: z$1.ZodNullable<z$1.ZodNumber>;
|
|
11519
11453
|
id: z$1.ZodString;
|
|
11520
11454
|
kind: z$1.ZodLiteral<"work">;
|
|
@@ -17247,26 +17181,15 @@ type EnvironmentUpdateFields = EnvironmentMergeBaseBranchUpdate | EnvironmentNam
|
|
|
17247
17181
|
type EnvironmentUpdateArgs = EnvironmentUpdateFields & {
|
|
17248
17182
|
environmentId: string;
|
|
17249
17183
|
};
|
|
17250
|
-
type EnvironmentDiffArgs = EnvironmentDiffQuery & {
|
|
17251
|
-
environmentId: string;
|
|
17252
|
-
signal?: AbortSignal;
|
|
17253
|
-
};
|
|
17254
17184
|
interface EnvironmentCommitArgs {
|
|
17255
17185
|
environmentId: string;
|
|
17256
17186
|
}
|
|
17257
|
-
type EnvironmentDiffViewedMarkArgs = EnvironmentDiffViewedMarkRequest & {
|
|
17258
|
-
environmentId: string;
|
|
17259
|
-
};
|
|
17260
|
-
type EnvironmentDiffViewedClearArgs = EnvironmentDiffViewedClearRequest & {
|
|
17261
|
-
environmentId: string;
|
|
17262
|
-
};
|
|
17263
17187
|
interface EnvironmentPathsArgs extends EnvironmentPathsQuery {
|
|
17264
17188
|
environmentId: string;
|
|
17265
17189
|
signal?: AbortSignal;
|
|
17266
17190
|
}
|
|
17267
17191
|
type EnvironmentArchiveThreadsResult = EnvironmentArchiveThreadsResponse;
|
|
17268
17192
|
type EnvironmentCommitResult = CommitActionResponse;
|
|
17269
|
-
type EnvironmentDiffViewedResult = EnvironmentDiffViewedResponse;
|
|
17270
17193
|
type EnvironmentGetResult = Environment;
|
|
17271
17194
|
type EnvironmentPathsResult = WorkspacePathListResponse;
|
|
17272
17195
|
type EnvironmentUpdateResult = Environment;
|
|
@@ -17302,15 +17225,6 @@ interface EnvironmentsArea {
|
|
|
17302
17225
|
}>;
|
|
17303
17226
|
archiveThreads(args: EnvironmentActionArgs): Promise<EnvironmentArchiveThreadsResult>;
|
|
17304
17227
|
commit(args: EnvironmentCommitArgs): Promise<EnvironmentCommitResult>;
|
|
17305
|
-
experimental_diffViewed(args: EnvironmentDiffArgs & {
|
|
17306
|
-
paths?: string[];
|
|
17307
|
-
}): Promise<EnvironmentDiffViewedResult>;
|
|
17308
|
-
experimental_markDiffViewed(args: EnvironmentDiffViewedMarkArgs): Promise<{
|
|
17309
|
-
ok: true;
|
|
17310
|
-
}>;
|
|
17311
|
-
experimental_clearDiffViewed(args: EnvironmentDiffViewedClearArgs): Promise<{
|
|
17312
|
-
ok: true;
|
|
17313
|
-
}>;
|
|
17314
17228
|
get(args: EnvironmentGetArgs): Promise<EnvironmentGetResult>;
|
|
17315
17229
|
list(args?: EnvironmentListArgs): Promise<EnvironmentListResult>;
|
|
17316
17230
|
listProviders(args?: EnvironmentListProvidersArgs): Promise<EnvironmentListProvidersResult>;
|
|
@@ -17401,6 +17315,9 @@ interface HostGetArgs {
|
|
|
17401
17315
|
hostId: string;
|
|
17402
17316
|
signal?: AbortSignal;
|
|
17403
17317
|
}
|
|
17318
|
+
interface HostProviderCliStatusArgs extends HostGetArgs {
|
|
17319
|
+
refresh?: boolean;
|
|
17320
|
+
}
|
|
17404
17321
|
interface HostDeleteArgs {
|
|
17405
17322
|
hostId: string;
|
|
17406
17323
|
force?: boolean;
|
|
@@ -17491,7 +17408,7 @@ interface HostsArea {
|
|
|
17491
17408
|
experimental_listProviders(args?: MachineProviderListArgs): Promise<MachineProviderListResult>;
|
|
17492
17409
|
pathsExist(args: HostPathsExistArgs): Promise<HostPathsExistResult>;
|
|
17493
17410
|
pickFolder(args: HostPickFolderArgs): Promise<HostPickFolderResult>;
|
|
17494
|
-
providerCliStatus(args:
|
|
17411
|
+
providerCliStatus(args: HostProviderCliStatusArgs): Promise<HostProviderCliStatusResult>;
|
|
17495
17412
|
experimental_resume(args: HostActionArgs): Promise<Host>;
|
|
17496
17413
|
experimental_retryCleanup(args: HostActionArgs): Promise<HostActionResult>;
|
|
17497
17414
|
retryUpdate(args: HostRetryUpdateArgs): Promise<HostRetryUpdateResult>;
|
|
@@ -18145,10 +18062,6 @@ type SystemRecordTelemetryEventArgs = RecordTelemetryEventRequest;
|
|
|
18145
18062
|
interface SystemRecordTelemetryEventResult {
|
|
18146
18063
|
ok: true;
|
|
18147
18064
|
}
|
|
18148
|
-
interface SystemSetupGuideArgs {
|
|
18149
|
-
signal?: AbortSignal;
|
|
18150
|
-
}
|
|
18151
|
-
type SystemSetupGuideResult = SystemSetupGuideResponse;
|
|
18152
18065
|
interface SystemAiServicesArgs {
|
|
18153
18066
|
signal?: AbortSignal;
|
|
18154
18067
|
}
|
|
@@ -18205,7 +18118,6 @@ interface SystemArea {
|
|
|
18205
18118
|
cliSkillsStatus(args?: SystemCliSkillsStatusArgs): Promise<SystemCliSkillsStatusResult>;
|
|
18206
18119
|
installCliSkills(args: SystemInstallCliSkillsArgs): Promise<SystemInstallCliSkillsResult>;
|
|
18207
18120
|
experimental_recordTelemetryEvent(args: SystemRecordTelemetryEventArgs): Promise<SystemRecordTelemetryEventResult>;
|
|
18208
|
-
experimental_setupGuide(args?: SystemSetupGuideArgs): Promise<SystemSetupGuideResult>;
|
|
18209
18121
|
reloadConfig(): Promise<SystemReloadConfigResult>;
|
|
18210
18122
|
setAiServiceSelection(args: SystemSetAiServiceSelectionArgs): Promise<SystemAiServicesResult>;
|
|
18211
18123
|
testAiService(args: SystemTestAiServiceArgs): Promise<SystemTestAiServiceResult>;
|
|
@@ -18222,6 +18134,8 @@ interface SystemArea {
|
|
|
18222
18134
|
appUpdate(args?: SystemAppUpdateArgs): Promise<SystemAppUpdateStatusResult>;
|
|
18223
18135
|
applyAppUpdate(args: SystemApplyAppUpdateArgs): Promise<SystemAppUpdateStatusResult>;
|
|
18224
18136
|
acknowledgeAppUpdate(args: SystemAcknowledgeAppUpdateArgs): Promise<SystemAppUpdateStatusResult>;
|
|
18137
|
+
experimental_scheduleAppUpdate(): Promise<SystemAppUpdateStatusResult>;
|
|
18138
|
+
experimental_cancelScheduledAppUpdate(): Promise<SystemAppUpdateStatusResult>;
|
|
18225
18139
|
experimental_cliCommand(args?: SystemCliCommandArgs): Promise<SystemCliCommandStatusResult>;
|
|
18226
18140
|
experimental_installCliCommand(): Promise<SystemCliCommandStatusResult>;
|
|
18227
18141
|
experimental_removeCliCommand(): Promise<SystemCliCommandStatusResult>;
|
|
@@ -18915,16 +18829,6 @@ interface PluginSettingsSectionProps {
|
|
|
18915
18829
|
*/
|
|
18916
18830
|
interface ExperimentalAppOverlayProps {
|
|
18917
18831
|
}
|
|
18918
|
-
/**
|
|
18919
|
-
* Props passed to an `internal_DO_NOT_USE_setupGuideSection` component.
|
|
18920
|
-
* Internal to bb's bundled connect plugin; not part of the plugin API.
|
|
18921
|
-
*/
|
|
18922
|
-
interface InternalDoNotUseSetupGuideSectionProps {
|
|
18923
|
-
/** True when the setup guide is open on a phone. */
|
|
18924
|
-
onPhone: boolean;
|
|
18925
|
-
/** Call when the user starts setting up this section. */
|
|
18926
|
-
onSetupStarted: () => void;
|
|
18927
|
-
}
|
|
18928
18832
|
type ExperimentalPageTitle = ({
|
|
18929
18833
|
title: string;
|
|
18930
18834
|
breadcrumbs?: never;
|
|
@@ -19455,6 +19359,30 @@ interface SourceCodeProps {
|
|
|
19455
19359
|
/** Applied to the renderer's root element. */
|
|
19456
19360
|
className?: string;
|
|
19457
19361
|
}
|
|
19362
|
+
/** The loaded file `ExperimentalFilePreviewProps.renderPreview` draws. */
|
|
19363
|
+
interface ExperimentalFilePreviewFile {
|
|
19364
|
+
/** The file's text as BB loaded it; a refresh passes the new text. */
|
|
19365
|
+
content: string;
|
|
19366
|
+
/** Absolute URL of the raw file, usable as a base URL for sibling assets. */
|
|
19367
|
+
url: string;
|
|
19368
|
+
}
|
|
19369
|
+
/**
|
|
19370
|
+
* Props of the host-owned `experimental_FilePreview` component — BB's file
|
|
19371
|
+
* preview for one live file: the header with the file path, Preview/Raw
|
|
19372
|
+
* toggle, open in browser, Open in editor, download and the file menu, and
|
|
19373
|
+
* BB's loading, refresh, empty, missing and error states. Inside a panel tab
|
|
19374
|
+
* it loads the file only while the tab is showing, as BB's own file tabs do.
|
|
19375
|
+
*/
|
|
19376
|
+
interface ExperimentalFilePreviewProps {
|
|
19377
|
+
/** The live file to preview. A malformed target renders nothing. */
|
|
19378
|
+
target: ExperimentalLiveFileTarget;
|
|
19379
|
+
/**
|
|
19380
|
+
* Draws the body of Preview mode for a file BB previews (HTML, Markdown
|
|
19381
|
+
* and CSV), in place of BB's own. Raw mode and every other file type keep
|
|
19382
|
+
* BB's rendering. The body fills the space below the header.
|
|
19383
|
+
*/
|
|
19384
|
+
renderPreview: (file: ExperimentalFilePreviewFile) => ReactNode;
|
|
19385
|
+
}
|
|
19458
19386
|
/**
|
|
19459
19387
|
* Props of the host-owned `experimental_Diff` component — BB's diff viewer.
|
|
19460
19388
|
* The host owns patch normalization (a patch without a `diff --git` header is
|
|
@@ -19642,15 +19570,6 @@ interface ExperimentalAppOverlayRegistration {
|
|
|
19642
19570
|
id: string;
|
|
19643
19571
|
component: ComponentType<ExperimentalAppOverlayProps>;
|
|
19644
19572
|
}
|
|
19645
|
-
/**
|
|
19646
|
-
* Render one row in the first-run setup guide's "Where you use bb" group.
|
|
19647
|
-
* Internal to bb's bundled connect plugin; not part of the plugin API.
|
|
19648
|
-
*/
|
|
19649
|
-
interface InternalDoNotUseSetupGuideSectionRegistration {
|
|
19650
|
-
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
19651
|
-
id: string;
|
|
19652
|
-
component: ComponentType<InternalDoNotUseSetupGuideSectionProps>;
|
|
19653
|
-
}
|
|
19654
19573
|
/**
|
|
19655
19574
|
* A name the host resolves to a glyph, in this order: a name any plugin
|
|
19656
19575
|
* registered with `app.experimental_icons.register()`, then a built-in BB icon
|
|
@@ -21193,17 +21112,23 @@ interface ExperimentalSidebarNavigationRegistration {
|
|
|
21193
21112
|
* matching files render the first applicable opener in deterministic slot
|
|
21194
21113
|
* order. The user can pin BB's preview or a specific opener per extension
|
|
21195
21114
|
* under Settings → Files. The file tab's "Open with" menu can override that
|
|
21196
|
-
* choice for one open
|
|
21197
|
-
* `
|
|
21198
|
-
*
|
|
21199
|
-
*
|
|
21115
|
+
* choice for one open, and so can the plugin by passing the opener's id as
|
|
21116
|
+
* `experimental_openFilePreview`'s `opener`. A plugin can also use its own
|
|
21117
|
+
* setting and render `Original` conditionally. Applies to working-tree, host,
|
|
21118
|
+
* and thread-storage files — never to git-ref snapshots (diff views always
|
|
21119
|
+
* use BB's preview).
|
|
21200
21120
|
*/
|
|
21201
21121
|
interface PluginFileOpenerRegistration {
|
|
21202
21122
|
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
21203
21123
|
id: string;
|
|
21204
21124
|
/** Label in the "Open with" menu (e.g. "Notes editor"). */
|
|
21205
21125
|
title: string;
|
|
21206
|
-
/**
|
|
21126
|
+
/**
|
|
21127
|
+
* Lowercase alphanumeric extensions without the dot; single underscores or
|
|
21128
|
+
* hyphens may separate segments. An empty list registers an opener that no
|
|
21129
|
+
* extension selects and the "Open with" menu does not offer; it shows a file
|
|
21130
|
+
* only when the plugin names it in `experimental_openFilePreview`.
|
|
21131
|
+
*/
|
|
21207
21132
|
extensions: readonly string[];
|
|
21208
21133
|
component: ComponentType<PluginFileOpenerProps>;
|
|
21209
21134
|
}
|
|
@@ -21542,20 +21467,6 @@ interface ExperimentalComposerInput {
|
|
|
21542
21467
|
history?: ExperimentalComposerHistory;
|
|
21543
21468
|
voice?: ExperimentalComposerVoice;
|
|
21544
21469
|
}
|
|
21545
|
-
/** A composer's scope, layout, draft summary and run state. */
|
|
21546
|
-
interface ExperimentalComposerView {
|
|
21547
|
-
scope: PluginComposerScope;
|
|
21548
|
-
layout: "compact" | "expanded" | "zen";
|
|
21549
|
-
draft: {
|
|
21550
|
-
text: string;
|
|
21551
|
-
isEmpty: boolean;
|
|
21552
|
-
attachmentCount: number;
|
|
21553
|
-
};
|
|
21554
|
-
run: {
|
|
21555
|
-
isRunning: boolean;
|
|
21556
|
-
isSubmitting: boolean;
|
|
21557
|
-
};
|
|
21558
|
-
}
|
|
21559
21470
|
/** A contribution another plugin registered with `app.composer.customize`. */
|
|
21560
21471
|
interface ExperimentalComposerContribution {
|
|
21561
21472
|
/** Stable across renders; use it as the React key. */
|
|
@@ -21696,10 +21607,6 @@ interface ExperimentalComposerClipboard {
|
|
|
21696
21607
|
*/
|
|
21697
21608
|
interface ExperimentalComposerRendererApi {
|
|
21698
21609
|
readonly input: ExperimentalComposerInput;
|
|
21699
|
-
/** The composer this box draws: scope, layout, draft and run state. */
|
|
21700
|
-
readonly view: ExperimentalComposerView;
|
|
21701
|
-
/** Stable identity of this composer's draft (`useComposer().key`). */
|
|
21702
|
-
readonly key: string;
|
|
21703
21610
|
/** A plugin locked editing through `useComposer().setInputLock(true)`. */
|
|
21704
21611
|
readonly inputLocked: boolean;
|
|
21705
21612
|
/** The shortcut of bb's "Focus composer" command, or null when unbound. */
|
|
@@ -22251,12 +22158,6 @@ interface PluginAppSlots {
|
|
|
22251
22158
|
* docs/api_to_audit.md.
|
|
22252
22159
|
*/
|
|
22253
22160
|
experimental_appOverlay(registration: ExperimentalAppOverlayRegistration): void;
|
|
22254
|
-
/**
|
|
22255
|
-
* Render a setup guide row (see
|
|
22256
|
-
* {@link InternalDoNotUseSetupGuideSectionRegistration}). Internal: see
|
|
22257
|
-
* docs/api_to_audit.md.
|
|
22258
|
-
*/
|
|
22259
|
-
internal_DO_NOT_USE_setupGuideSection(registration: InternalDoNotUseSetupGuideSectionRegistration): void;
|
|
22260
22161
|
navPanel(registration: PluginNavPanelRegistration): void;
|
|
22261
22162
|
/** Register a context-scoped tab. Experimental: see docs/api_to_audit.md. */
|
|
22262
22163
|
experimental_tab<C extends ExperimentalTabContext, A extends "action" | "fixed">(registration: ExperimentalTabInput<C, A>): void;
|
|
@@ -23380,6 +23281,16 @@ interface ExperimentalFileOpenOptions {
|
|
|
23380
23281
|
target: ExperimentalLiveFileTarget;
|
|
23381
23282
|
location: ExperimentalFileLocation | null;
|
|
23382
23283
|
}
|
|
23284
|
+
/** Options for BB's preview file intent. */
|
|
23285
|
+
interface ExperimentalFilePreviewOptions extends ExperimentalFileOpenOptions {
|
|
23286
|
+
/**
|
|
23287
|
+
* Id of one of the calling plugin's `fileOpener` registrations to show the
|
|
23288
|
+
* file with for this open, as the file tab's "Open with" menu does. Omit it
|
|
23289
|
+
* to use the opener the user's Settings → Files choice selects. An opener
|
|
23290
|
+
* that is not registered falls back to BB's preview.
|
|
23291
|
+
*/
|
|
23292
|
+
opener?: string;
|
|
23293
|
+
}
|
|
23383
23294
|
/**
|
|
23384
23295
|
* Props for BB's host-rendered semantic file link. Valid targets receive a
|
|
23385
23296
|
* scheme-safe anchor href; traversal paths, ill-formed Unicode, and other
|
|
@@ -23567,14 +23478,14 @@ interface BbNavigate {
|
|
|
23567
23478
|
}): void;
|
|
23568
23479
|
/**
|
|
23569
23480
|
* Open an HTTP(S) URL using this client's BB browser preference, or request
|
|
23570
|
-
* an application link on this device with confirmation unless its scheme is
|
|
23571
|
-
*
|
|
23481
|
+
* an application link on this device with confirmation unless its scheme is
|
|
23482
|
+
* approved. Returns false
|
|
23572
23483
|
* for blocked or unsupported schemes. True means handled, not launched. See
|
|
23573
23484
|
* docs/api_to_audit.md.
|
|
23574
23485
|
*/
|
|
23575
23486
|
openUrl(url: string): boolean;
|
|
23576
23487
|
/** Open a live file in this surface's shared BB preview panel. */
|
|
23577
|
-
experimental_openFilePreview(options:
|
|
23488
|
+
experimental_openFilePreview(options: ExperimentalFilePreviewOptions): boolean;
|
|
23578
23489
|
/** Open a live file in this client's preferred external file target. */
|
|
23579
23490
|
experimental_openFileExternally(options: ExperimentalFileOpenOptions): boolean;
|
|
23580
23491
|
/**
|
|
@@ -24159,6 +24070,12 @@ interface PluginSdkApp {
|
|
|
24159
24070
|
* replacement. Experimental: see docs/api_to_audit.md.
|
|
24160
24071
|
*/
|
|
24161
24072
|
experimental_SourceCode: ComponentType<SourceCodeProps>;
|
|
24073
|
+
/**
|
|
24074
|
+
* The host-owned file preview (see {@link ExperimentalFilePreviewProps}):
|
|
24075
|
+
* the preview bb shows for a file in the side panel, with the plugin
|
|
24076
|
+
* drawing the Preview body. Experimental: see docs/api_to_audit.md.
|
|
24077
|
+
*/
|
|
24078
|
+
experimental_FilePreview: ComponentType<ExperimentalFilePreviewProps>;
|
|
24162
24079
|
/**
|
|
24163
24080
|
* The host-owned diff viewer (see {@link DiffProps}). Renders supplied patch
|
|
24164
24081
|
* content with BB's normalization, optional full-file context expansion,
|
|
@@ -24318,6 +24235,7 @@ declare const experimental_useBranches: (args: UseBranchesArgs) => BranchesState
|
|
|
24318
24235
|
declare const experimental_useCheckoutState: (args: UseCheckoutStateArgs) => CheckoutState;
|
|
24319
24236
|
declare const experimental_SourceCode: react.ComponentType<SourceCodeProps>;
|
|
24320
24237
|
declare const experimental_Diff: react.ComponentType<DiffProps>;
|
|
24238
|
+
declare const experimental_FilePreview: react.ComponentType<ExperimentalFilePreviewProps>;
|
|
24321
24239
|
declare const experimental_InfoSection: react.ComponentType<ExperimentalInfoSectionProps>;
|
|
24322
24240
|
declare const experimental_DetailRow: react.ComponentType<ExperimentalDetailRowProps>;
|
|
24323
24241
|
declare const experimental_InfoList: <Item>(props: ExperimentalInfoListProps<Item>) => react.ReactNode;
|
|
@@ -24405,5 +24323,5 @@ declare const experimental_saveFile: (request: ExperimentalSaveFileRequest) => P
|
|
|
24405
24323
|
declare const experimental_getApplicationLinkApprovals: () => Promise<string[]>;
|
|
24406
24324
|
declare const experimental_revokeApplicationLinkApproval: (scheme: string | null) => Promise<string[]>;
|
|
24407
24325
|
|
|
24408
|
-
export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_ComposerRoot, experimental_DetailRow, experimental_Diff, experimental_FailedVoiceRecordings, experimental_FileLink, experimental_Icon, experimental_ImageLightbox, experimental_InfoList, experimental_InfoListRow, experimental_InfoSection, experimental_NewThreadComposer, experimental_PanelTabIcon, experimental_PermissionModePicker, experimental_PluginIcon, experimental_PluginRpcCallError, experimental_PromptMentionIcon, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_ShortcutHint, experimental_SidebarNavigationIcon, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadContextCardRow, experimental_ThreadRowMetadata, experimental_ThreadStatusGlyph, experimental_ThreadTitleText, experimental_VoiceInputButton, experimental_VoiceInputTextarea, experimental_VoiceRecordingBar, experimental_copyToClipboard, experimental_describePromptMention, experimental_getApplicationLinkApprovals, experimental_promptMentionClipboardAttributes, experimental_readPromptMentionClipboard, experimental_resolveThreadStatus, experimental_revokeApplicationLinkApproval, experimental_saveFile, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCanOpenFileExternally, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useComposerCommandSearch, experimental_useComposerContributions, experimental_useComposerMentionSearch, experimental_useComposerRenderer, experimental_useExperiment, experimental_useFixedTabTarget, experimental_usePanelTabs, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useRpcKeyedQuery, experimental_useRpcMutation, experimental_useRpcQuery, experimental_useRpcRefresh, experimental_useServers, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useTabVisible, experimental_useThreadActionRegistrations, experimental_useThreadActions, experimental_useThreadContextKind, experimental_useThreadTitleDisplayText, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
|
|
24409
|
-
export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation,
|
|
24326
|
+
export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_ComposerRoot, experimental_DetailRow, experimental_Diff, experimental_FailedVoiceRecordings, experimental_FileLink, experimental_FilePreview, experimental_Icon, experimental_ImageLightbox, experimental_InfoList, experimental_InfoListRow, experimental_InfoSection, experimental_NewThreadComposer, experimental_PanelTabIcon, experimental_PermissionModePicker, experimental_PluginIcon, experimental_PluginRpcCallError, experimental_PromptMentionIcon, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_ShortcutHint, experimental_SidebarNavigationIcon, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadContextCardRow, experimental_ThreadRowMetadata, experimental_ThreadStatusGlyph, experimental_ThreadTitleText, experimental_VoiceInputButton, experimental_VoiceInputTextarea, experimental_VoiceRecordingBar, experimental_copyToClipboard, experimental_describePromptMention, experimental_getApplicationLinkApprovals, experimental_promptMentionClipboardAttributes, experimental_readPromptMentionClipboard, experimental_resolveThreadStatus, experimental_revokeApplicationLinkApproval, experimental_saveFile, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCanOpenFileExternally, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useComposerCommandSearch, experimental_useComposerContributions, experimental_useComposerMentionSearch, experimental_useComposerRenderer, experimental_useExperiment, experimental_useFixedTabTarget, experimental_usePanelTabs, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useRpcKeyedQuery, experimental_useRpcMutation, experimental_useRpcQuery, experimental_useRpcRefresh, experimental_useServers, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useTabVisible, experimental_useThreadActionRegistrations, experimental_useThreadActions, experimental_useThreadContextKind, experimental_useThreadTitleDisplayText, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
|
|
24327
|
+
export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerVoice, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFilePreviewFile, ExperimentalFilePreviewOptions, ExperimentalFilePreviewProps, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalShortcutHintProps, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextCardProps, ExperimentalThreadContextCardRowProps, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, ExperimentalThreadContextKind, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatus, PluginThreadStatusGlyphProps, PluginThreadStatusInput, PluginThreadStatusThread, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
|
@@ -45,5 +45,9 @@ interface ExperimentalFileOpenOptions {
|
|
|
45
45
|
declare function normalizeExperimentalLiveFileTarget(value: unknown): ExperimentalLiveFileTarget | null;
|
|
46
46
|
declare function normalizeExperimentalFileLocation(value: unknown): ExperimentalFileLocation | null | undefined;
|
|
47
47
|
declare function normalizeExperimentalFileOpenOptions(value: unknown): ExperimentalFileOpenOptions | null;
|
|
48
|
+
declare function normalizeExperimentalFilePreviewOptions(value: unknown): {
|
|
49
|
+
options: ExperimentalFileOpenOptions;
|
|
50
|
+
opener: string | null;
|
|
51
|
+
} | null;
|
|
48
52
|
|
|
49
|
-
export { normalizeExperimentalFileLocation, normalizeExperimentalFileOpenOptions, normalizeExperimentalLiveFileTarget };
|
|
53
|
+
export { normalizeExperimentalFileLocation, normalizeExperimentalFileOpenOptions, normalizeExperimentalFilePreviewOptions, normalizeExperimentalLiveFileTarget };
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// and read the real source: https://github.com/get-bb/bb
|
|
7
7
|
|
|
8
8
|
import * as _get_bb_plugin_sdk from '@get-bb/plugin-sdk';
|
|
9
|
-
import { ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterItemRegistration, PluginSidebarFooterActionRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration,
|
|
9
|
+
import { ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterItemRegistration, PluginSidebarFooterActionRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, PluginNavPanelRegistration, ExperimentalTabRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginThreadListRegistration, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationPlacement, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadInfoRowRegistration, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, ExperimentalComposerRegistration, PluginMessageDirectiveRegistration, ExperimentalCodeFenceRendererRegistration, PluginMessageActionRegistration, ExperimentalMessageMetadataRegistration, PluginCommandRegistration, ExperimentalComposerCommandRegistration, PluginProviderIconRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, PluginAppDefinition } from '@get-bb/plugin-sdk';
|
|
10
10
|
import { ComponentType } from 'react';
|
|
11
11
|
import { z } from 'zod';
|
|
12
12
|
|
|
@@ -94,7 +94,6 @@ interface CollectedPluginAppRegistrations {
|
|
|
94
94
|
homepageSections: PluginHomepageSectionRegistration[];
|
|
95
95
|
settingsSections: PluginSettingsSectionRegistration[];
|
|
96
96
|
appOverlays: ExperimentalAppOverlayRegistration[];
|
|
97
|
-
setupGuideSections: InternalDoNotUseSetupGuideSectionRegistration[];
|
|
98
97
|
navPanels: LegacyNavPanelRegistration[];
|
|
99
98
|
tabs: ExperimentalTabRegistration[];
|
|
100
99
|
threadPanelActions: LegacyThreadPanelActionRegistration[];
|
|
@@ -96,6 +96,7 @@ declare const deltaItemShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
96
96
|
aggregatedOutput: z.ZodOptional<z.ZodString>;
|
|
97
97
|
command: z.ZodString;
|
|
98
98
|
cwd: z.ZodString;
|
|
99
|
+
description: z.ZodOptional<z.ZodString>;
|
|
99
100
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
100
101
|
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
101
102
|
type: z.ZodLiteral<"command">;
|
|
@@ -94,6 +94,7 @@ declare const deltaItemShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
94
94
|
aggregatedOutput: z.ZodOptional<z.ZodString>;
|
|
95
95
|
command: z.ZodString;
|
|
96
96
|
cwd: z.ZodString;
|
|
97
|
+
description: z.ZodOptional<z.ZodString>;
|
|
97
98
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
98
99
|
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
99
100
|
type: z.ZodLiteral<"command">;
|