@get-bb/plugin-sdk 0.6.112 → 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 +90 -115
- package/bundled-types/bb-plugin-sdk-internal-file-navigation-validation.d.ts +5 -1
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +8 -3
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp-next.d.ts +11 -1
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts +11 -1
- 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 -3
- package/bundled-types/bb-plugin-sdk.d.ts +124 -118
- package/dist/app.js +4 -0
- package/dist/index.js +161 -1
- package/dist/internal/file-navigation-validation.js +13 -0
- package/dist/internal/plugin-app-collector.js +2 -2
- package/dist/internal/rpc-query-host.js +7 -5
- package/dist/provider-bridge-acp-next.js +32 -22
- package/dist/provider-bridge-acp.js +32 -22
- package/dist/provider-bridge-testing.js +4 -0
- package/dist/provider-bridge.js +2 -0
- package/dist/replay-provider-child.mjs +21 -22
- package/dist/testing/app.js +15 -7
- 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;
|
|
@@ -4500,6 +4500,8 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
|
|
|
4500
4500
|
kind: z$1.ZodLiteral<"plugin">;
|
|
4501
4501
|
pluginId: z$1.ZodString;
|
|
4502
4502
|
reason: z$1.ZodString;
|
|
4503
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4504
|
+
kind: z$1.ZodLiteral<"superseded">;
|
|
4503
4505
|
}, z$1.core.$strip>], "kind">>;
|
|
4504
4506
|
}, z$1.core.$strip>;
|
|
4505
4507
|
type ThreadQueuedMessage = z$1.infer<typeof threadQueuedMessageSchema>;
|
|
@@ -5514,19 +5516,6 @@ declare const environmentPathsQuerySchema: z$1.ZodObject<{
|
|
|
5514
5516
|
query: z$1.ZodOptional<z$1.ZodString>;
|
|
5515
5517
|
}, z$1.core.$strip>;
|
|
5516
5518
|
type EnvironmentPathsQuery = z$1.infer<typeof environmentPathsQuerySchema>;
|
|
5517
|
-
declare const environmentDiffQuerySchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
5518
|
-
target: z$1.ZodLiteral<"uncommitted">;
|
|
5519
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
5520
|
-
mergeBaseBranch: z$1.ZodPipe<z$1.ZodString, z$1.ZodString>;
|
|
5521
|
-
target: z$1.ZodLiteral<"branch_committed">;
|
|
5522
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
5523
|
-
mergeBaseBranch: z$1.ZodPipe<z$1.ZodString, z$1.ZodString>;
|
|
5524
|
-
target: z$1.ZodLiteral<"all">;
|
|
5525
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
5526
|
-
sha: z$1.ZodString;
|
|
5527
|
-
target: z$1.ZodLiteral<"commit">;
|
|
5528
|
-
}, z$1.core.$strip>], "target">;
|
|
5529
|
-
type EnvironmentDiffQuery = z$1.infer<typeof environmentDiffQuerySchema>;
|
|
5530
5519
|
declare const environmentArchiveThreadsResponseSchema: z$1.ZodObject<{
|
|
5531
5520
|
archivedThreadIds: z$1.ZodArray<z$1.ZodString>;
|
|
5532
5521
|
ok: z$1.ZodLiteral<true>;
|
|
@@ -5540,46 +5529,6 @@ declare const commitActionResponseSchema: z$1.ZodObject<{
|
|
|
5540
5529
|
ok: z$1.ZodLiteral<true>;
|
|
5541
5530
|
}, z$1.core.$strip>;
|
|
5542
5531
|
type CommitActionResponse = z$1.infer<typeof commitActionResponseSchema>;
|
|
5543
|
-
declare const environmentDiffViewedResponseSchema: z$1.ZodObject<{
|
|
5544
|
-
files: z$1.ZodArray<z$1.ZodObject<{
|
|
5545
|
-
path: z$1.ZodString;
|
|
5546
|
-
revision: z$1.ZodString;
|
|
5547
|
-
}, z$1.core.$strict>>;
|
|
5548
|
-
}, z$1.core.$strict>;
|
|
5549
|
-
type EnvironmentDiffViewedResponse = z$1.infer<typeof environmentDiffViewedResponseSchema>;
|
|
5550
|
-
declare const environmentDiffViewedMarkRequestSchema: z$1.ZodObject<{
|
|
5551
|
-
path: z$1.ZodString;
|
|
5552
|
-
revision: z$1.ZodString;
|
|
5553
|
-
target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
5554
|
-
type: z$1.ZodLiteral<"uncommitted">;
|
|
5555
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
5556
|
-
mergeBaseBranch: z$1.ZodString;
|
|
5557
|
-
type: z$1.ZodLiteral<"branch_committed">;
|
|
5558
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
5559
|
-
mergeBaseBranch: z$1.ZodString;
|
|
5560
|
-
type: z$1.ZodLiteral<"all">;
|
|
5561
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
5562
|
-
sha: z$1.ZodString;
|
|
5563
|
-
type: z$1.ZodLiteral<"commit">;
|
|
5564
|
-
}, z$1.core.$strip>], "type">;
|
|
5565
|
-
}, z$1.core.$strict>;
|
|
5566
|
-
type EnvironmentDiffViewedMarkRequest = z$1.infer<typeof environmentDiffViewedMarkRequestSchema>;
|
|
5567
|
-
declare const environmentDiffViewedClearRequestSchema: z$1.ZodObject<{
|
|
5568
|
-
path: z$1.ZodOptional<z$1.ZodString>;
|
|
5569
|
-
target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
5570
|
-
type: z$1.ZodLiteral<"uncommitted">;
|
|
5571
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
5572
|
-
mergeBaseBranch: z$1.ZodString;
|
|
5573
|
-
type: z$1.ZodLiteral<"branch_committed">;
|
|
5574
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
5575
|
-
mergeBaseBranch: z$1.ZodString;
|
|
5576
|
-
type: z$1.ZodLiteral<"all">;
|
|
5577
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
5578
|
-
sha: z$1.ZodString;
|
|
5579
|
-
type: z$1.ZodLiteral<"commit">;
|
|
5580
|
-
}, z$1.core.$strip>], "type">;
|
|
5581
|
-
}, z$1.core.$strict>;
|
|
5582
|
-
type EnvironmentDiffViewedClearRequest = z$1.infer<typeof environmentDiffViewedClearRequestSchema>;
|
|
5583
5532
|
|
|
5584
5533
|
declare const providerUsageResponseSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
5585
5534
|
accountEmail: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -10379,19 +10328,18 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10379
10328
|
}, z$1.core.$strict>;
|
|
10380
10329
|
}, z$1.core.$strict>>;
|
|
10381
10330
|
experiments: z$1.ZodRecord<z$1.ZodEnum<{
|
|
10382
|
-
applicationLinks: "applicationLinks";
|
|
10383
10331
|
compactExpiredCache: "compactExpiredCache";
|
|
10332
|
+
dismissReadNotifications: "dismissReadNotifications";
|
|
10384
10333
|
narrowPluginCss: "narrowPluginCss";
|
|
10385
10334
|
performanceDiagnostics: "performanceDiagnostics";
|
|
10386
10335
|
pluginUpdates: "pluginUpdates";
|
|
10336
|
+
resumeThreadsAfterRestart: "resumeThreadsAfterRestart";
|
|
10387
10337
|
serverMove: "serverMove";
|
|
10388
|
-
sidebarMultiSelect: "sidebarMultiSelect";
|
|
10389
10338
|
skipFocusedThreadNotifications: "skipFocusedThreadNotifications";
|
|
10390
10339
|
threadContextCard: "threadContextCard";
|
|
10391
10340
|
threadRowMetadata: "threadRowMetadata";
|
|
10392
10341
|
timelinePush: "timelinePush";
|
|
10393
|
-
|
|
10394
|
-
websocketCompression: "websocketCompression";
|
|
10342
|
+
updateWhenIdle: "updateWhenIdle";
|
|
10395
10343
|
}>, z$1.ZodBoolean>;
|
|
10396
10344
|
featureFlags: z$1.ZodObject<{
|
|
10397
10345
|
initiatorTelemetry: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
@@ -10785,6 +10733,7 @@ declare const systemAppUpdateStatusSchema: z$1.ZodObject<{
|
|
|
10785
10733
|
targetVersion: z$1.ZodString;
|
|
10786
10734
|
}, z$1.core.$strip>], "phase">;
|
|
10787
10735
|
available: z$1.ZodNullable<z$1.ZodObject<{
|
|
10736
|
+
behindSince: z$1.ZodNullable<z$1.ZodISODateTime>;
|
|
10788
10737
|
channel: z$1.ZodEnum<{
|
|
10789
10738
|
latest: "latest";
|
|
10790
10739
|
main: "main";
|
|
@@ -10835,6 +10784,9 @@ declare const systemAppUpdateStatusSchema: z$1.ZodObject<{
|
|
|
10835
10784
|
}, z$1.core.$strip>;
|
|
10836
10785
|
}, z$1.core.$strip>>;
|
|
10837
10786
|
runningThreadCount: z$1.ZodNumber;
|
|
10787
|
+
scheduled: z$1.ZodNullable<z$1.ZodObject<{
|
|
10788
|
+
requestedAt: z$1.ZodString;
|
|
10789
|
+
}, z$1.core.$strip>>;
|
|
10838
10790
|
support: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
10839
10791
|
kind: z$1.ZodLiteral<"supported">;
|
|
10840
10792
|
mode: z$1.ZodEnum<{
|
|
@@ -11496,6 +11448,7 @@ declare const timelineCommandWorkRowSchema: z$1.ZodObject<{
|
|
|
11496
11448
|
contentDeferred: z$1.ZodOptional<z$1.ZodLiteral<true>>;
|
|
11497
11449
|
createdAt: z$1.ZodNumber;
|
|
11498
11450
|
cwd: z$1.ZodNullable<z$1.ZodString>;
|
|
11451
|
+
description: z$1.ZodNullable<z$1.ZodString>;
|
|
11499
11452
|
exitCode: z$1.ZodNullable<z$1.ZodNumber>;
|
|
11500
11453
|
id: z$1.ZodString;
|
|
11501
11454
|
kind: z$1.ZodLiteral<"work">;
|
|
@@ -13140,6 +13093,8 @@ declare const sendMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObjec
|
|
|
13140
13093
|
kind: z$1.ZodLiteral<"plugin">;
|
|
13141
13094
|
pluginId: z$1.ZodString;
|
|
13142
13095
|
reason: z$1.ZodString;
|
|
13096
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13097
|
+
kind: z$1.ZodLiteral<"superseded">;
|
|
13143
13098
|
}, z$1.core.$strip>], "kind">>;
|
|
13144
13099
|
}, z$1.core.$strip>;
|
|
13145
13100
|
}, z$1.core.$strip>], "delivery">;
|
|
@@ -13311,6 +13266,8 @@ declare const retryTurnResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<
|
|
|
13311
13266
|
kind: z$1.ZodLiteral<"plugin">;
|
|
13312
13267
|
pluginId: z$1.ZodString;
|
|
13313
13268
|
reason: z$1.ZodString;
|
|
13269
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13270
|
+
kind: z$1.ZodLiteral<"superseded">;
|
|
13314
13271
|
}, z$1.core.$strip>], "kind">;
|
|
13315
13272
|
}, z$1.core.$strip>], "delivery">;
|
|
13316
13273
|
type RetryTurnResponse = z$1.infer<typeof retryTurnResponseSchema>;
|
|
@@ -13720,6 +13677,8 @@ declare const sendQueuedMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
|
|
|
13720
13677
|
kind: z$1.ZodLiteral<"plugin">;
|
|
13721
13678
|
pluginId: z$1.ZodString;
|
|
13722
13679
|
reason: z$1.ZodString;
|
|
13680
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13681
|
+
kind: z$1.ZodLiteral<"superseded">;
|
|
13723
13682
|
}, z$1.core.$strip>], "kind">>;
|
|
13724
13683
|
}, z$1.core.$strip>;
|
|
13725
13684
|
}, z$1.core.$strip>], "delivery">;
|
|
@@ -14715,6 +14674,8 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
|
|
|
14715
14674
|
kind: z$1.ZodLiteral<"plugin">;
|
|
14716
14675
|
pluginId: z$1.ZodString;
|
|
14717
14676
|
reason: z$1.ZodString;
|
|
14677
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
14678
|
+
kind: z$1.ZodLiteral<"superseded">;
|
|
14718
14679
|
}, z$1.core.$strip>], "kind">>;
|
|
14719
14680
|
}, z$1.core.$strip>>;
|
|
14720
14681
|
type ThreadQueuedMessageListResponse = z$1.infer<typeof threadQueuedMessageListResponseSchema>;
|
|
@@ -17220,26 +17181,15 @@ type EnvironmentUpdateFields = EnvironmentMergeBaseBranchUpdate | EnvironmentNam
|
|
|
17220
17181
|
type EnvironmentUpdateArgs = EnvironmentUpdateFields & {
|
|
17221
17182
|
environmentId: string;
|
|
17222
17183
|
};
|
|
17223
|
-
type EnvironmentDiffArgs = EnvironmentDiffQuery & {
|
|
17224
|
-
environmentId: string;
|
|
17225
|
-
signal?: AbortSignal;
|
|
17226
|
-
};
|
|
17227
17184
|
interface EnvironmentCommitArgs {
|
|
17228
17185
|
environmentId: string;
|
|
17229
17186
|
}
|
|
17230
|
-
type EnvironmentDiffViewedMarkArgs = EnvironmentDiffViewedMarkRequest & {
|
|
17231
|
-
environmentId: string;
|
|
17232
|
-
};
|
|
17233
|
-
type EnvironmentDiffViewedClearArgs = EnvironmentDiffViewedClearRequest & {
|
|
17234
|
-
environmentId: string;
|
|
17235
|
-
};
|
|
17236
17187
|
interface EnvironmentPathsArgs extends EnvironmentPathsQuery {
|
|
17237
17188
|
environmentId: string;
|
|
17238
17189
|
signal?: AbortSignal;
|
|
17239
17190
|
}
|
|
17240
17191
|
type EnvironmentArchiveThreadsResult = EnvironmentArchiveThreadsResponse;
|
|
17241
17192
|
type EnvironmentCommitResult = CommitActionResponse;
|
|
17242
|
-
type EnvironmentDiffViewedResult = EnvironmentDiffViewedResponse;
|
|
17243
17193
|
type EnvironmentGetResult = Environment;
|
|
17244
17194
|
type EnvironmentPathsResult = WorkspacePathListResponse;
|
|
17245
17195
|
type EnvironmentUpdateResult = Environment;
|
|
@@ -17275,15 +17225,6 @@ interface EnvironmentsArea {
|
|
|
17275
17225
|
}>;
|
|
17276
17226
|
archiveThreads(args: EnvironmentActionArgs): Promise<EnvironmentArchiveThreadsResult>;
|
|
17277
17227
|
commit(args: EnvironmentCommitArgs): Promise<EnvironmentCommitResult>;
|
|
17278
|
-
experimental_diffViewed(args: EnvironmentDiffArgs & {
|
|
17279
|
-
paths?: string[];
|
|
17280
|
-
}): Promise<EnvironmentDiffViewedResult>;
|
|
17281
|
-
experimental_markDiffViewed(args: EnvironmentDiffViewedMarkArgs): Promise<{
|
|
17282
|
-
ok: true;
|
|
17283
|
-
}>;
|
|
17284
|
-
experimental_clearDiffViewed(args: EnvironmentDiffViewedClearArgs): Promise<{
|
|
17285
|
-
ok: true;
|
|
17286
|
-
}>;
|
|
17287
17228
|
get(args: EnvironmentGetArgs): Promise<EnvironmentGetResult>;
|
|
17288
17229
|
list(args?: EnvironmentListArgs): Promise<EnvironmentListResult>;
|
|
17289
17230
|
listProviders(args?: EnvironmentListProvidersArgs): Promise<EnvironmentListProvidersResult>;
|
|
@@ -17374,6 +17315,9 @@ interface HostGetArgs {
|
|
|
17374
17315
|
hostId: string;
|
|
17375
17316
|
signal?: AbortSignal;
|
|
17376
17317
|
}
|
|
17318
|
+
interface HostProviderCliStatusArgs extends HostGetArgs {
|
|
17319
|
+
refresh?: boolean;
|
|
17320
|
+
}
|
|
17377
17321
|
interface HostDeleteArgs {
|
|
17378
17322
|
hostId: string;
|
|
17379
17323
|
force?: boolean;
|
|
@@ -17464,7 +17408,7 @@ interface HostsArea {
|
|
|
17464
17408
|
experimental_listProviders(args?: MachineProviderListArgs): Promise<MachineProviderListResult>;
|
|
17465
17409
|
pathsExist(args: HostPathsExistArgs): Promise<HostPathsExistResult>;
|
|
17466
17410
|
pickFolder(args: HostPickFolderArgs): Promise<HostPickFolderResult>;
|
|
17467
|
-
providerCliStatus(args:
|
|
17411
|
+
providerCliStatus(args: HostProviderCliStatusArgs): Promise<HostProviderCliStatusResult>;
|
|
17468
17412
|
experimental_resume(args: HostActionArgs): Promise<Host>;
|
|
17469
17413
|
experimental_retryCleanup(args: HostActionArgs): Promise<HostActionResult>;
|
|
17470
17414
|
retryUpdate(args: HostRetryUpdateArgs): Promise<HostRetryUpdateResult>;
|
|
@@ -18190,6 +18134,8 @@ interface SystemArea {
|
|
|
18190
18134
|
appUpdate(args?: SystemAppUpdateArgs): Promise<SystemAppUpdateStatusResult>;
|
|
18191
18135
|
applyAppUpdate(args: SystemApplyAppUpdateArgs): Promise<SystemAppUpdateStatusResult>;
|
|
18192
18136
|
acknowledgeAppUpdate(args: SystemAcknowledgeAppUpdateArgs): Promise<SystemAppUpdateStatusResult>;
|
|
18137
|
+
experimental_scheduleAppUpdate(): Promise<SystemAppUpdateStatusResult>;
|
|
18138
|
+
experimental_cancelScheduledAppUpdate(): Promise<SystemAppUpdateStatusResult>;
|
|
18193
18139
|
experimental_cliCommand(args?: SystemCliCommandArgs): Promise<SystemCliCommandStatusResult>;
|
|
18194
18140
|
experimental_installCliCommand(): Promise<SystemCliCommandStatusResult>;
|
|
18195
18141
|
experimental_removeCliCommand(): Promise<SystemCliCommandStatusResult>;
|
|
@@ -19413,6 +19359,30 @@ interface SourceCodeProps {
|
|
|
19413
19359
|
/** Applied to the renderer's root element. */
|
|
19414
19360
|
className?: string;
|
|
19415
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
|
+
}
|
|
19416
19386
|
/**
|
|
19417
19387
|
* Props of the host-owned `experimental_Diff` component — BB's diff viewer.
|
|
19418
19388
|
* The host owns patch normalization (a patch without a `diff --git` header is
|
|
@@ -21142,17 +21112,23 @@ interface ExperimentalSidebarNavigationRegistration {
|
|
|
21142
21112
|
* matching files render the first applicable opener in deterministic slot
|
|
21143
21113
|
* order. The user can pin BB's preview or a specific opener per extension
|
|
21144
21114
|
* under Settings → Files. The file tab's "Open with" menu can override that
|
|
21145
|
-
* choice for one open
|
|
21146
|
-
* `
|
|
21147
|
-
*
|
|
21148
|
-
*
|
|
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).
|
|
21149
21120
|
*/
|
|
21150
21121
|
interface PluginFileOpenerRegistration {
|
|
21151
21122
|
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
21152
21123
|
id: string;
|
|
21153
21124
|
/** Label in the "Open with" menu (e.g. "Notes editor"). */
|
|
21154
21125
|
title: string;
|
|
21155
|
-
/**
|
|
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
|
+
*/
|
|
21156
21132
|
extensions: readonly string[];
|
|
21157
21133
|
component: ComponentType<PluginFileOpenerProps>;
|
|
21158
21134
|
}
|
|
@@ -21491,20 +21467,6 @@ interface ExperimentalComposerInput {
|
|
|
21491
21467
|
history?: ExperimentalComposerHistory;
|
|
21492
21468
|
voice?: ExperimentalComposerVoice;
|
|
21493
21469
|
}
|
|
21494
|
-
/** A composer's scope, layout, draft summary and run state. */
|
|
21495
|
-
interface ExperimentalComposerView {
|
|
21496
|
-
scope: PluginComposerScope;
|
|
21497
|
-
layout: "compact" | "expanded" | "zen";
|
|
21498
|
-
draft: {
|
|
21499
|
-
text: string;
|
|
21500
|
-
isEmpty: boolean;
|
|
21501
|
-
attachmentCount: number;
|
|
21502
|
-
};
|
|
21503
|
-
run: {
|
|
21504
|
-
isRunning: boolean;
|
|
21505
|
-
isSubmitting: boolean;
|
|
21506
|
-
};
|
|
21507
|
-
}
|
|
21508
21470
|
/** A contribution another plugin registered with `app.composer.customize`. */
|
|
21509
21471
|
interface ExperimentalComposerContribution {
|
|
21510
21472
|
/** Stable across renders; use it as the React key. */
|
|
@@ -21645,10 +21607,6 @@ interface ExperimentalComposerClipboard {
|
|
|
21645
21607
|
*/
|
|
21646
21608
|
interface ExperimentalComposerRendererApi {
|
|
21647
21609
|
readonly input: ExperimentalComposerInput;
|
|
21648
|
-
/** The composer this box draws: scope, layout, draft and run state. */
|
|
21649
|
-
readonly view: ExperimentalComposerView;
|
|
21650
|
-
/** Stable identity of this composer's draft (`useComposer().key`). */
|
|
21651
|
-
readonly key: string;
|
|
21652
21610
|
/** A plugin locked editing through `useComposer().setInputLock(true)`. */
|
|
21653
21611
|
readonly inputLocked: boolean;
|
|
21654
21612
|
/** The shortcut of bb's "Focus composer" command, or null when unbound. */
|
|
@@ -23323,6 +23281,16 @@ interface ExperimentalFileOpenOptions {
|
|
|
23323
23281
|
target: ExperimentalLiveFileTarget;
|
|
23324
23282
|
location: ExperimentalFileLocation | null;
|
|
23325
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
|
+
}
|
|
23326
23294
|
/**
|
|
23327
23295
|
* Props for BB's host-rendered semantic file link. Valid targets receive a
|
|
23328
23296
|
* scheme-safe anchor href; traversal paths, ill-formed Unicode, and other
|
|
@@ -23510,14 +23478,14 @@ interface BbNavigate {
|
|
|
23510
23478
|
}): void;
|
|
23511
23479
|
/**
|
|
23512
23480
|
* Open an HTTP(S) URL using this client's BB browser preference, or request
|
|
23513
|
-
* an application link on this device with confirmation unless its scheme is
|
|
23514
|
-
*
|
|
23481
|
+
* an application link on this device with confirmation unless its scheme is
|
|
23482
|
+
* approved. Returns false
|
|
23515
23483
|
* for blocked or unsupported schemes. True means handled, not launched. See
|
|
23516
23484
|
* docs/api_to_audit.md.
|
|
23517
23485
|
*/
|
|
23518
23486
|
openUrl(url: string): boolean;
|
|
23519
23487
|
/** Open a live file in this surface's shared BB preview panel. */
|
|
23520
|
-
experimental_openFilePreview(options:
|
|
23488
|
+
experimental_openFilePreview(options: ExperimentalFilePreviewOptions): boolean;
|
|
23521
23489
|
/** Open a live file in this client's preferred external file target. */
|
|
23522
23490
|
experimental_openFileExternally(options: ExperimentalFileOpenOptions): boolean;
|
|
23523
23491
|
/**
|
|
@@ -24102,6 +24070,12 @@ interface PluginSdkApp {
|
|
|
24102
24070
|
* replacement. Experimental: see docs/api_to_audit.md.
|
|
24103
24071
|
*/
|
|
24104
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>;
|
|
24105
24079
|
/**
|
|
24106
24080
|
* The host-owned diff viewer (see {@link DiffProps}). Renders supplied patch
|
|
24107
24081
|
* content with BB's normalization, optional full-file context expansion,
|
|
@@ -24261,6 +24235,7 @@ declare const experimental_useBranches: (args: UseBranchesArgs) => BranchesState
|
|
|
24261
24235
|
declare const experimental_useCheckoutState: (args: UseCheckoutStateArgs) => CheckoutState;
|
|
24262
24236
|
declare const experimental_SourceCode: react.ComponentType<SourceCodeProps>;
|
|
24263
24237
|
declare const experimental_Diff: react.ComponentType<DiffProps>;
|
|
24238
|
+
declare const experimental_FilePreview: react.ComponentType<ExperimentalFilePreviewProps>;
|
|
24264
24239
|
declare const experimental_InfoSection: react.ComponentType<ExperimentalInfoSectionProps>;
|
|
24265
24240
|
declare const experimental_DetailRow: react.ComponentType<ExperimentalDetailRowProps>;
|
|
24266
24241
|
declare const experimental_InfoList: <Item>(props: ExperimentalInfoListProps<Item>) => react.ReactNode;
|
|
@@ -24348,5 +24323,5 @@ declare const experimental_saveFile: (request: ExperimentalSaveFileRequest) => P
|
|
|
24348
24323
|
declare const experimental_getApplicationLinkApprovals: () => Promise<string[]>;
|
|
24349
24324
|
declare const experimental_revokeApplicationLinkApproval: (scheme: string | null) => Promise<string[]>;
|
|
24350
24325
|
|
|
24351
|
-
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 };
|
|
24352
|
-
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 };
|
|
@@ -472,6 +472,8 @@ declare const threadQueuedMessageSchema: z.ZodObject<{
|
|
|
472
472
|
kind: z.ZodLiteral<"plugin">;
|
|
473
473
|
pluginId: z.ZodString;
|
|
474
474
|
reason: z.ZodString;
|
|
475
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
476
|
+
kind: z.ZodLiteral<"superseded">;
|
|
475
477
|
}, z.core.$strip>], "kind">>;
|
|
476
478
|
}, z.core.$strip>;
|
|
477
479
|
type ThreadQueuedMessage = z.infer<typeof threadQueuedMessageSchema>;
|
|
@@ -1052,9 +1054,12 @@ type PluginDispatchAttemptKind = "join-turn" | "start-turn";
|
|
|
1052
1054
|
*
|
|
1053
1055
|
* It runs identically whether the attempt is inline (someone just sent) or
|
|
1054
1056
|
* from a drain (a queued row became eligible again), and whether the message
|
|
1055
|
-
* is a thread's first, a follow-up, a steer,
|
|
1056
|
-
*
|
|
1057
|
-
*
|
|
1057
|
+
* is a thread's first, a follow-up, a steer, a retry of a failed turn, or one
|
|
1058
|
+
* of core's own notices to a thread (a child finished, needs attention, or
|
|
1059
|
+
* changed owner), which arrives with `initiator: "system"`. Compaction and an
|
|
1060
|
+
* edited message's re-send operate on the existing conversation and do not
|
|
1061
|
+
* pass through it. A handler must therefore be idempotent for one logical
|
|
1062
|
+
* dispatch: passes re-run on every drain, on restart, and on retry.
|
|
1058
1063
|
*/
|
|
1059
1064
|
interface MessageDispatchHookContext {
|
|
1060
1065
|
/**
|
|
@@ -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">;
|
|
@@ -440,7 +441,8 @@ interface AcpDialect {
|
|
|
440
441
|
toolIdentity?(event: AcpToolCallUpdateEvent): AcpToolIdentity | undefined;
|
|
441
442
|
classifyToolCall?(event: AcpToolCallUpdateEvent): AcpClassifiedToolCall | undefined;
|
|
442
443
|
commandResult?(event: AcpToolCallUpdateEvent): AcpCommandResult | undefined;
|
|
443
|
-
normalizeCommandEvent?(event: AcpToolCallUpdateEvent): AcpToolCallUpdateEvent;
|
|
444
|
+
normalizeCommandEvent?(event: AcpToolCallUpdateEvent, call: AcpToolCallUpdateEvent): AcpToolCallUpdateEvent;
|
|
445
|
+
normalizeToolCallEvent?(event: AcpToolCallUpdateEvent, call: AcpToolCallUpdateEvent): AcpToolCallUpdateEvent;
|
|
444
446
|
readonly clientRequestMethods?: readonly string[];
|
|
445
447
|
handleClientRequest?(method: string, params: unknown): AcpClientRequestOutcome | undefined;
|
|
446
448
|
maintenance?: AcpMaintenanceDialect;
|
|
@@ -583,6 +585,14 @@ interface AgentModelCatalog {
|
|
|
583
585
|
* });
|
|
584
586
|
* ```
|
|
585
587
|
*
|
|
588
|
+
* `normalizeCommandEvent` and `normalizeToolCallEvent` rewrite a tool call
|
|
589
|
+
* update before bb reads its output: command output and exit code for the
|
|
590
|
+
* first, progress and result text for every other tool. Each receives the
|
|
591
|
+
* update and the call: everything the agent has reported for that tool call
|
|
592
|
+
* so far, this update included. A dialect can therefore judge an update by
|
|
593
|
+
* the call's `rawInput` without keeping per-call state; the two arguments
|
|
594
|
+
* are the same event when the call closes.
|
|
595
|
+
*
|
|
586
596
|
* The registration then names it: `acpDialect: "amp"`. A built-in id cannot
|
|
587
597
|
* be replaced, and an id nothing registered falls back to the generic
|
|
588
598
|
* dialect. The registry is one per host artifact, and a dialect's hooks are
|
|
@@ -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">;
|
|
@@ -440,7 +441,8 @@ interface AcpDialect {
|
|
|
440
441
|
toolIdentity?(event: AcpToolCallUpdateEvent): AcpToolIdentity | undefined;
|
|
441
442
|
classifyToolCall?(event: AcpToolCallUpdateEvent): AcpClassifiedToolCall | undefined;
|
|
442
443
|
commandResult?(event: AcpToolCallUpdateEvent): AcpCommandResult | undefined;
|
|
443
|
-
normalizeCommandEvent?(event: AcpToolCallUpdateEvent): AcpToolCallUpdateEvent;
|
|
444
|
+
normalizeCommandEvent?(event: AcpToolCallUpdateEvent, call: AcpToolCallUpdateEvent): AcpToolCallUpdateEvent;
|
|
445
|
+
normalizeToolCallEvent?(event: AcpToolCallUpdateEvent, call: AcpToolCallUpdateEvent): AcpToolCallUpdateEvent;
|
|
444
446
|
readonly clientRequestMethods?: readonly string[];
|
|
445
447
|
handleClientRequest?(method: string, params: unknown): AcpClientRequestOutcome | undefined;
|
|
446
448
|
maintenance?: AcpMaintenanceDialect;
|
|
@@ -584,6 +586,14 @@ interface AgentModelCatalog {
|
|
|
584
586
|
* });
|
|
585
587
|
* ```
|
|
586
588
|
*
|
|
589
|
+
* `normalizeCommandEvent` and `normalizeToolCallEvent` rewrite a tool call
|
|
590
|
+
* update before bb reads its output: command output and exit code for the
|
|
591
|
+
* first, progress and result text for every other tool. Each receives the
|
|
592
|
+
* update and the call: everything the agent has reported for that tool call
|
|
593
|
+
* so far, this update included. A dialect can therefore judge an update by
|
|
594
|
+
* the call's `rawInput` without keeping per-call state; the two arguments
|
|
595
|
+
* are the same event when the call closes.
|
|
596
|
+
*
|
|
587
597
|
* The registration then names it: `acpDialect: "amp"`. A built-in id cannot
|
|
588
598
|
* be replaced, and an id nothing registered falls back to the generic
|
|
589
599
|
* dialect. The registry is one per host artifact, and a dialect's hooks are
|