@get-bb/plugin-sdk 0.6.33 → 0.6.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled-types/bb-plugin-sdk-app.d.ts +608 -82
- package/bundled-types/bb-plugin-sdk-internal-composer-handle.d.ts +4 -0
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +10 -0
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +2 -1
- package/bundled-types/bb-plugin-sdk-provider-bridge-testing.d.ts +12 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +16 -0
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +33 -18
- package/bundled-types/bb-plugin-sdk.d.ts +610 -84
- package/dist/app.js +33 -0
- package/dist/index.js +9 -0
- package/dist/internal/composer-handle.js +1 -0
- package/dist/internal/host-policy.js +11 -0
- package/dist/internal/plugin-app-collector.js +25 -0
- package/dist/provider-bridge-acp.js +5 -0
- package/dist/provider-bridge-testing.js +5 -0
- package/dist/provider-bridge.js +5 -0
- package/dist/testing/app.js +248 -2
- package/dist/testing/index.js +12 -0
- package/package.json +1 -1
|
@@ -59,7 +59,6 @@ declare const appSettingsSchema: z$1.ZodObject<{
|
|
|
59
59
|
flat: "flat";
|
|
60
60
|
}>>;
|
|
61
61
|
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
62
|
-
setupChecklistVisible: z$1.ZodBoolean;
|
|
63
62
|
showDiagnosticEvents: z$1.ZodBoolean;
|
|
64
63
|
showGitChanges: z$1.ZodBoolean;
|
|
65
64
|
showKeyboardHints: z$1.ZodBoolean;
|
|
@@ -83,7 +82,6 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
83
82
|
flat: "flat";
|
|
84
83
|
}>>;
|
|
85
84
|
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
86
|
-
setupChecklistVisible: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
87
85
|
showDiagnosticEvents: z$1.ZodBoolean;
|
|
88
86
|
showGitChanges: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
89
87
|
showKeyboardHints: z$1.ZodBoolean;
|
|
@@ -106,7 +104,6 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
106
104
|
flat: "flat";
|
|
107
105
|
}>>;
|
|
108
106
|
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
109
|
-
setupChecklistVisible: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
110
107
|
showGitChanges: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
111
108
|
showKeyboardHints: z$1.ZodBoolean;
|
|
112
109
|
showUnhandledProviderEvents: z$1.ZodBoolean;
|
|
@@ -116,7 +113,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
116
113
|
}, z$1.core.$strict>]>;
|
|
117
114
|
type AppSettingsUpdate = z$1.infer<typeof appSettingsUpdateSchema>;
|
|
118
115
|
|
|
119
|
-
declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.threadGrouping.environment", "sidebar.chronologicalSort", "sidebar.sortDirection", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.hiddenGroups", "sidebar.
|
|
116
|
+
declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.threadGrouping.environment", "sidebar.chronologicalSort", "sidebar.sortDirection", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.hiddenGroups", "sidebar.footerOrder", "sidebar.hiddenFooterItems", "sidebar.pluginPanelOrder", "sidebar.visiblePluginPanels", "sidebar.threadListProvider", "infoPanel.collapsedSections"];
|
|
120
117
|
type UiPreferenceKey = (typeof UI_PREFERENCE_KEYS)[number];
|
|
121
118
|
interface UiPreferenceDefinition<Schema extends z$1.ZodTypeAny = z$1.ZodTypeAny> {
|
|
122
119
|
schema: Schema;
|
|
@@ -145,15 +142,6 @@ declare const uiPreferenceDefinitions: {
|
|
|
145
142
|
readonly "sidebar.manualSectionOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
146
143
|
readonly "sidebar.machineSectionOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
147
144
|
readonly "sidebar.hiddenGroups": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodArray<z$1.ZodString>, z$1.ZodTransform<string[], string[]>>>;
|
|
148
|
-
readonly "sidebar.collapsedSections": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodEnum<{
|
|
149
|
-
pinned: "pinned";
|
|
150
|
-
threads: "threads";
|
|
151
|
-
}>>>;
|
|
152
|
-
readonly "sidebar.collapsedProjects": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
153
|
-
readonly "sidebar.collapsedThreads": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
154
|
-
readonly "sidebar.collapsedEnvironments": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
155
|
-
readonly "sidebar.collapsedThreadSections": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
156
|
-
readonly "sidebar.collapsedMachines": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
157
145
|
readonly "sidebar.footerOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
158
146
|
readonly "sidebar.hiddenFooterItems": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
159
147
|
readonly "sidebar.pluginPanelOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
@@ -2944,6 +2932,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
2944
2932
|
kind: z$1.ZodLiteral<"plugin">;
|
|
2945
2933
|
label: z$1.ZodString;
|
|
2946
2934
|
pluginId: z$1.ZodString;
|
|
2935
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2936
|
+
kind: z$1.ZodLiteral<"attachment">;
|
|
2937
|
+
label: z$1.ZodString;
|
|
2938
|
+
path: z$1.ZodString;
|
|
2947
2939
|
}, z$1.core.$strip>], "kind">, unknown>;
|
|
2948
2940
|
start: z$1.ZodNumber;
|
|
2949
2941
|
}, z$1.core.$strip>>>;
|
|
@@ -3030,6 +3022,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
3030
3022
|
kind: z$1.ZodLiteral<"plugin">;
|
|
3031
3023
|
label: z$1.ZodString;
|
|
3032
3024
|
pluginId: z$1.ZodString;
|
|
3025
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3026
|
+
kind: z$1.ZodLiteral<"attachment">;
|
|
3027
|
+
label: z$1.ZodString;
|
|
3028
|
+
path: z$1.ZodString;
|
|
3033
3029
|
}, z$1.core.$strip>], "kind">, unknown>;
|
|
3034
3030
|
start: z$1.ZodNumber;
|
|
3035
3031
|
}, z$1.core.$strip>>>;
|
|
@@ -4020,6 +4016,10 @@ declare const promptInputSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
4020
4016
|
kind: z$1.ZodLiteral<"plugin">;
|
|
4021
4017
|
label: z$1.ZodString;
|
|
4022
4018
|
pluginId: z$1.ZodString;
|
|
4019
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4020
|
+
kind: z$1.ZodLiteral<"attachment">;
|
|
4021
|
+
label: z$1.ZodString;
|
|
4022
|
+
path: z$1.ZodString;
|
|
4023
4023
|
}, z$1.core.$strip>], "kind">, unknown>;
|
|
4024
4024
|
start: z$1.ZodNumber;
|
|
4025
4025
|
}, z$1.core.$strip>>>;
|
|
@@ -4349,6 +4349,10 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
|
|
|
4349
4349
|
kind: z$1.ZodLiteral<"plugin">;
|
|
4350
4350
|
label: z$1.ZodString;
|
|
4351
4351
|
pluginId: z$1.ZodString;
|
|
4352
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4353
|
+
kind: z$1.ZodLiteral<"attachment">;
|
|
4354
|
+
label: z$1.ZodString;
|
|
4355
|
+
path: z$1.ZodString;
|
|
4352
4356
|
}, z$1.core.$strip>], "kind">, unknown>;
|
|
4353
4357
|
start: z$1.ZodNumber;
|
|
4354
4358
|
}, z$1.core.$strip>>>;
|
|
@@ -4779,6 +4783,10 @@ declare const promptHistoryResponseSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
4779
4783
|
kind: z$1.ZodLiteral<"plugin">;
|
|
4780
4784
|
label: z$1.ZodString;
|
|
4781
4785
|
pluginId: z$1.ZodString;
|
|
4786
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4787
|
+
kind: z$1.ZodLiteral<"attachment">;
|
|
4788
|
+
label: z$1.ZodString;
|
|
4789
|
+
path: z$1.ZodString;
|
|
4782
4790
|
}, z$1.core.$strip>], "kind">, unknown>;
|
|
4783
4791
|
start: z$1.ZodNumber;
|
|
4784
4792
|
}, z$1.core.$strip>>>;
|
|
@@ -5332,6 +5340,10 @@ declare const promptHistoryListResponseSchema: z$1.ZodObject<{
|
|
|
5332
5340
|
kind: z$1.ZodLiteral<"plugin">;
|
|
5333
5341
|
label: z$1.ZodString;
|
|
5334
5342
|
pluginId: z$1.ZodString;
|
|
5343
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
5344
|
+
kind: z$1.ZodLiteral<"attachment">;
|
|
5345
|
+
label: z$1.ZodString;
|
|
5346
|
+
path: z$1.ZodString;
|
|
5335
5347
|
}, z$1.core.$strip>], "kind">, unknown>;
|
|
5336
5348
|
start: z$1.ZodNumber;
|
|
5337
5349
|
}, z$1.core.$strip>>>;
|
|
@@ -6477,6 +6489,10 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6477
6489
|
kind: z$1.ZodLiteral<"plugin">;
|
|
6478
6490
|
label: z$1.ZodString;
|
|
6479
6491
|
pluginId: z$1.ZodString;
|
|
6492
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
6493
|
+
kind: z$1.ZodLiteral<"attachment">;
|
|
6494
|
+
label: z$1.ZodString;
|
|
6495
|
+
path: z$1.ZodString;
|
|
6480
6496
|
}, z$1.core.$strip>], "kind">, unknown>;
|
|
6481
6497
|
start: z$1.ZodNumber;
|
|
6482
6498
|
}, z$1.core.$strip>>>;
|
|
@@ -6563,6 +6579,10 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6563
6579
|
kind: z$1.ZodLiteral<"plugin">;
|
|
6564
6580
|
label: z$1.ZodString;
|
|
6565
6581
|
pluginId: z$1.ZodString;
|
|
6582
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
6583
|
+
kind: z$1.ZodLiteral<"attachment">;
|
|
6584
|
+
label: z$1.ZodString;
|
|
6585
|
+
path: z$1.ZodString;
|
|
6566
6586
|
}, z$1.core.$strip>], "kind">, unknown>;
|
|
6567
6587
|
start: z$1.ZodNumber;
|
|
6568
6588
|
}, z$1.core.$strip>>>;
|
|
@@ -6731,6 +6751,10 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6731
6751
|
kind: z$1.ZodLiteral<"plugin">;
|
|
6732
6752
|
label: z$1.ZodString;
|
|
6733
6753
|
pluginId: z$1.ZodString;
|
|
6754
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
6755
|
+
kind: z$1.ZodLiteral<"attachment">;
|
|
6756
|
+
label: z$1.ZodString;
|
|
6757
|
+
path: z$1.ZodString;
|
|
6734
6758
|
}, z$1.core.$strip>], "kind">, unknown>;
|
|
6735
6759
|
start: z$1.ZodNumber;
|
|
6736
6760
|
}, z$1.core.$strip>>>;
|
|
@@ -6817,6 +6841,10 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6817
6841
|
kind: z$1.ZodLiteral<"plugin">;
|
|
6818
6842
|
label: z$1.ZodString;
|
|
6819
6843
|
pluginId: z$1.ZodString;
|
|
6844
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
6845
|
+
kind: z$1.ZodLiteral<"attachment">;
|
|
6846
|
+
label: z$1.ZodString;
|
|
6847
|
+
path: z$1.ZodString;
|
|
6820
6848
|
}, z$1.core.$strip>], "kind">, unknown>;
|
|
6821
6849
|
start: z$1.ZodNumber;
|
|
6822
6850
|
}, z$1.core.$strip>>>;
|
|
@@ -7013,7 +7041,21 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7013
7041
|
}, z$1.core.$strip>], "mode">;
|
|
7014
7042
|
threadId: z$1.ZodString;
|
|
7015
7043
|
type: z$1.ZodLiteral<"turn.submit">;
|
|
7016
|
-
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
7044
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
7045
|
+
trace: z$1.ZodObject<{
|
|
7046
|
+
spans: z$1.ZodArray<z$1.ZodObject<{
|
|
7047
|
+
atMs: z$1.ZodNumber;
|
|
7048
|
+
name: z$1.ZodEnum<{
|
|
7049
|
+
"bridge.turnStarted": "bridge.turnStarted";
|
|
7050
|
+
"events.flushed": "events.flushed";
|
|
7051
|
+
"input.staged": "input.staged";
|
|
7052
|
+
"lanes.entered": "lanes.entered";
|
|
7053
|
+
"runtime.ready": "runtime.ready";
|
|
7054
|
+
"skills.staged": "skills.staged";
|
|
7055
|
+
}>;
|
|
7056
|
+
}, z$1.core.$strict>>;
|
|
7057
|
+
}, z$1.core.$strict>;
|
|
7058
|
+
}, z$1.core.$strip>, "settled", false>;
|
|
7017
7059
|
"thread.stop": HostDaemonCommandDescriptor<"thread.stop", z$1.ZodObject<{
|
|
7018
7060
|
environmentId: z$1.ZodString;
|
|
7019
7061
|
intent: z$1.ZodEnum<{
|
|
@@ -7831,6 +7873,65 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7831
7873
|
}>;
|
|
7832
7874
|
}, z$1.core.$strip>>;
|
|
7833
7875
|
}, z$1.core.$strip>, "onlineRpc", true>;
|
|
7876
|
+
"host.read_workspace_agent_context": HostDaemonCommandDescriptor<"host.read_workspace_agent_context", z$1.ZodObject<{
|
|
7877
|
+
includeAgentInstructions: z$1.ZodBoolean;
|
|
7878
|
+
projectSkillRead: z$1.ZodObject<{
|
|
7879
|
+
excludeNames: z$1.ZodArray<z$1.ZodString>;
|
|
7880
|
+
limit: z$1.ZodNumber;
|
|
7881
|
+
maxContentBytes: z$1.ZodNumber;
|
|
7882
|
+
maxFileBytes: z$1.ZodNumber;
|
|
7883
|
+
}, z$1.core.$strict>;
|
|
7884
|
+
rootPath: z$1.ZodString;
|
|
7885
|
+
sharedSkillRoots: z$1.ZodObject<{
|
|
7886
|
+
project: z$1.ZodArray<z$1.ZodObject<{
|
|
7887
|
+
ancestors: z$1.ZodBoolean;
|
|
7888
|
+
namePrefix: z$1.ZodString;
|
|
7889
|
+
path: z$1.ZodString;
|
|
7890
|
+
recursive: z$1.ZodBoolean;
|
|
7891
|
+
skipIfManifest: z$1.ZodOptional<z$1.ZodString>;
|
|
7892
|
+
}, z$1.core.$strict>>;
|
|
7893
|
+
user: z$1.ZodArray<z$1.ZodObject<{
|
|
7894
|
+
ancestors: z$1.ZodBoolean;
|
|
7895
|
+
namePrefix: z$1.ZodString;
|
|
7896
|
+
path: z$1.ZodString;
|
|
7897
|
+
recursive: z$1.ZodBoolean;
|
|
7898
|
+
skipIfManifest: z$1.ZodOptional<z$1.ZodString>;
|
|
7899
|
+
}, z$1.core.$strict>>;
|
|
7900
|
+
}, z$1.core.$strict>;
|
|
7901
|
+
type: z$1.ZodLiteral<"host.read_workspace_agent_context">;
|
|
7902
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
7903
|
+
agentInstructions: z$1.ZodNullable<z$1.ZodString>;
|
|
7904
|
+
projectSkills: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
7905
|
+
directoryName: z$1.ZodString;
|
|
7906
|
+
kind: z$1.ZodLiteral<"budget-exceeded">;
|
|
7907
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
7908
|
+
content: z$1.ZodString;
|
|
7909
|
+
directoryName: z$1.ZodString;
|
|
7910
|
+
kind: z$1.ZodLiteral<"file">;
|
|
7911
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
7912
|
+
directoryName: z$1.ZodString;
|
|
7913
|
+
kind: z$1.ZodLiteral<"oversized">;
|
|
7914
|
+
sizeBytes: z$1.ZodNumber;
|
|
7915
|
+
}, z$1.core.$strict>], "kind">>;
|
|
7916
|
+
projectSkillsTruncated: z$1.ZodBoolean;
|
|
7917
|
+
sharedSkills: z$1.ZodArray<z$1.ZodObject<{
|
|
7918
|
+
description: z$1.ZodNullable<z$1.ZodString>;
|
|
7919
|
+
filePath: z$1.ZodString;
|
|
7920
|
+
id: z$1.ZodString;
|
|
7921
|
+
linked: z$1.ZodBoolean;
|
|
7922
|
+
name: z$1.ZodString;
|
|
7923
|
+
rootKind: z$1.ZodEnum<{
|
|
7924
|
+
"bb-builtin": "bb-builtin";
|
|
7925
|
+
"bb-data-dir": "bb-data-dir";
|
|
7926
|
+
"bb-project": "bb-project";
|
|
7927
|
+
"provider-project": "provider-project";
|
|
7928
|
+
"provider-user": "provider-user";
|
|
7929
|
+
"shared-project": "shared-project";
|
|
7930
|
+
"shared-user": "shared-user";
|
|
7931
|
+
plugin: "plugin";
|
|
7932
|
+
}>;
|
|
7933
|
+
}, z$1.core.$strip>>;
|
|
7934
|
+
}, z$1.core.$strict>, "onlineRpc", true>;
|
|
7834
7935
|
"host.delete_skill": HostDaemonCommandDescriptor<"host.delete_skill", z$1.ZodObject<{
|
|
7835
7936
|
cwd: z$1.ZodNullable<z$1.ZodString>;
|
|
7836
7937
|
name: z$1.ZodString;
|
|
@@ -9964,6 +10065,7 @@ declare const pluginSettingsResponseSchema: z$1.ZodObject<{
|
|
|
9964
10065
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9965
10066
|
default: z$1.ZodOptional<z$1.ZodString>;
|
|
9966
10067
|
description: z$1.ZodOptional<z$1.ZodString>;
|
|
10068
|
+
experimental_optionLabels: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodString>>;
|
|
9967
10069
|
label: z$1.ZodString;
|
|
9968
10070
|
options: z$1.ZodArray<z$1.ZodString>;
|
|
9969
10071
|
type: z$1.ZodLiteral<"select">;
|
|
@@ -10678,7 +10780,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10678
10780
|
flat: "flat";
|
|
10679
10781
|
}>>;
|
|
10680
10782
|
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
10681
|
-
setupChecklistVisible: z$1.ZodBoolean;
|
|
10682
10783
|
showDiagnosticEvents: z$1.ZodBoolean;
|
|
10683
10784
|
showGitChanges: z$1.ZodBoolean;
|
|
10684
10785
|
showKeyboardHints: z$1.ZodBoolean;
|
|
@@ -11458,6 +11559,11 @@ type TimelineRowBase = z$1.infer<typeof timelineRowBaseSchema>;
|
|
|
11458
11559
|
declare const timelineConversationRowSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
11459
11560
|
attachments: z$1.ZodNullable<z$1.ZodObject<{
|
|
11460
11561
|
imageUrls: z$1.ZodArray<z$1.ZodString>;
|
|
11562
|
+
localFileDetails: z$1.ZodArray<z$1.ZodObject<{
|
|
11563
|
+
name: z$1.ZodString;
|
|
11564
|
+
path: z$1.ZodString;
|
|
11565
|
+
sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
|
|
11566
|
+
}, z$1.core.$strip>>;
|
|
11461
11567
|
localFilePaths: z$1.ZodArray<z$1.ZodString>;
|
|
11462
11568
|
localFiles: z$1.ZodNumber;
|
|
11463
11569
|
localImagePaths: z$1.ZodArray<z$1.ZodString>;
|
|
@@ -11523,6 +11629,10 @@ declare const timelineConversationRowSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodO
|
|
|
11523
11629
|
kind: z$1.ZodLiteral<"plugin">;
|
|
11524
11630
|
label: z$1.ZodString;
|
|
11525
11631
|
pluginId: z$1.ZodString;
|
|
11632
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
11633
|
+
kind: z$1.ZodLiteral<"attachment">;
|
|
11634
|
+
label: z$1.ZodString;
|
|
11635
|
+
path: z$1.ZodString;
|
|
11526
11636
|
}, z$1.core.$strip>], "kind">, unknown>;
|
|
11527
11637
|
start: z$1.ZodNumber;
|
|
11528
11638
|
}, z$1.core.$strip>>;
|
|
@@ -11607,6 +11717,11 @@ declare const timelineConversationRowSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodO
|
|
|
11607
11717
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
11608
11718
|
attachments: z$1.ZodNullable<z$1.ZodObject<{
|
|
11609
11719
|
imageUrls: z$1.ZodArray<z$1.ZodString>;
|
|
11720
|
+
localFileDetails: z$1.ZodArray<z$1.ZodObject<{
|
|
11721
|
+
name: z$1.ZodString;
|
|
11722
|
+
path: z$1.ZodString;
|
|
11723
|
+
sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
|
|
11724
|
+
}, z$1.core.$strip>>;
|
|
11610
11725
|
localFilePaths: z$1.ZodArray<z$1.ZodString>;
|
|
11611
11726
|
localFiles: z$1.ZodNumber;
|
|
11612
11727
|
localImagePaths: z$1.ZodArray<z$1.ZodString>;
|
|
@@ -12738,6 +12853,10 @@ declare const createThreadRequestSchema: z$1.ZodObject<{
|
|
|
12738
12853
|
kind: z$1.ZodLiteral<"plugin">;
|
|
12739
12854
|
label: z$1.ZodString;
|
|
12740
12855
|
pluginId: z$1.ZodString;
|
|
12856
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
12857
|
+
kind: z$1.ZodLiteral<"attachment">;
|
|
12858
|
+
label: z$1.ZodString;
|
|
12859
|
+
path: z$1.ZodString;
|
|
12741
12860
|
}, z$1.core.$strip>], "kind">, unknown>;
|
|
12742
12861
|
start: z$1.ZodNumber;
|
|
12743
12862
|
}, z$1.core.$strip>>>;
|
|
@@ -12880,6 +12999,10 @@ declare const forkThreadRequestSchema: z$1.ZodObject<{
|
|
|
12880
12999
|
kind: z$1.ZodLiteral<"plugin">;
|
|
12881
13000
|
label: z$1.ZodString;
|
|
12882
13001
|
pluginId: z$1.ZodString;
|
|
13002
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13003
|
+
kind: z$1.ZodLiteral<"attachment">;
|
|
13004
|
+
label: z$1.ZodString;
|
|
13005
|
+
path: z$1.ZodString;
|
|
12883
13006
|
}, z$1.core.$strip>], "kind">, unknown>;
|
|
12884
13007
|
start: z$1.ZodNumber;
|
|
12885
13008
|
}, z$1.core.$strip>>>;
|
|
@@ -13010,6 +13133,10 @@ declare const forkThreadRequestSchema: z$1.ZodObject<{
|
|
|
13010
13133
|
kind: z$1.ZodLiteral<"plugin">;
|
|
13011
13134
|
label: z$1.ZodString;
|
|
13012
13135
|
pluginId: z$1.ZodString;
|
|
13136
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13137
|
+
kind: z$1.ZodLiteral<"attachment">;
|
|
13138
|
+
label: z$1.ZodString;
|
|
13139
|
+
path: z$1.ZodString;
|
|
13013
13140
|
}, z$1.core.$strip>], "kind">, unknown>;
|
|
13014
13141
|
start: z$1.ZodNumber;
|
|
13015
13142
|
}, z$1.core.$strip>>>;
|
|
@@ -13138,6 +13265,10 @@ declare const sendMessageRequestSchema: z$1.ZodObject<{
|
|
|
13138
13265
|
kind: z$1.ZodLiteral<"plugin">;
|
|
13139
13266
|
label: z$1.ZodString;
|
|
13140
13267
|
pluginId: z$1.ZodString;
|
|
13268
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13269
|
+
kind: z$1.ZodLiteral<"attachment">;
|
|
13270
|
+
label: z$1.ZodString;
|
|
13271
|
+
path: z$1.ZodString;
|
|
13141
13272
|
}, z$1.core.$strip>], "kind">, unknown>;
|
|
13142
13273
|
start: z$1.ZodNumber;
|
|
13143
13274
|
}, z$1.core.$strip>>>;
|
|
@@ -13268,6 +13399,10 @@ declare const sendMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObjec
|
|
|
13268
13399
|
kind: z$1.ZodLiteral<"plugin">;
|
|
13269
13400
|
label: z$1.ZodString;
|
|
13270
13401
|
pluginId: z$1.ZodString;
|
|
13402
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13403
|
+
kind: z$1.ZodLiteral<"attachment">;
|
|
13404
|
+
label: z$1.ZodString;
|
|
13405
|
+
path: z$1.ZodString;
|
|
13271
13406
|
}, z$1.core.$strip>], "kind">, unknown>;
|
|
13272
13407
|
start: z$1.ZodNumber;
|
|
13273
13408
|
}, z$1.core.$strip>>>;
|
|
@@ -13443,6 +13578,10 @@ declare const editMessageRequestSchema: z$1.ZodObject<{
|
|
|
13443
13578
|
kind: z$1.ZodLiteral<"plugin">;
|
|
13444
13579
|
label: z$1.ZodString;
|
|
13445
13580
|
pluginId: z$1.ZodString;
|
|
13581
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13582
|
+
kind: z$1.ZodLiteral<"attachment">;
|
|
13583
|
+
label: z$1.ZodString;
|
|
13584
|
+
path: z$1.ZodString;
|
|
13446
13585
|
}, z$1.core.$strip>], "kind">, unknown>;
|
|
13447
13586
|
start: z$1.ZodNumber;
|
|
13448
13587
|
}, z$1.core.$strip>>>;
|
|
@@ -13616,6 +13755,10 @@ declare const createQueuedMessageRequestSchema: z$1.ZodObject<{
|
|
|
13616
13755
|
kind: z$1.ZodLiteral<"plugin">;
|
|
13617
13756
|
label: z$1.ZodString;
|
|
13618
13757
|
pluginId: z$1.ZodString;
|
|
13758
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13759
|
+
kind: z$1.ZodLiteral<"attachment">;
|
|
13760
|
+
label: z$1.ZodString;
|
|
13761
|
+
path: z$1.ZodString;
|
|
13619
13762
|
}, z$1.core.$strip>], "kind">, unknown>;
|
|
13620
13763
|
start: z$1.ZodNumber;
|
|
13621
13764
|
}, z$1.core.$strip>>>;
|
|
@@ -13724,6 +13867,10 @@ declare const updateQueuedMessageRequestSchema: z$1.ZodObject<{
|
|
|
13724
13867
|
kind: z$1.ZodLiteral<"plugin">;
|
|
13725
13868
|
label: z$1.ZodString;
|
|
13726
13869
|
pluginId: z$1.ZodString;
|
|
13870
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13871
|
+
kind: z$1.ZodLiteral<"attachment">;
|
|
13872
|
+
label: z$1.ZodString;
|
|
13873
|
+
path: z$1.ZodString;
|
|
13727
13874
|
}, z$1.core.$strip>], "kind">, unknown>;
|
|
13728
13875
|
start: z$1.ZodNumber;
|
|
13729
13876
|
}, z$1.core.$strip>>>;
|
|
@@ -13841,6 +13988,10 @@ declare const sendQueuedMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
|
|
|
13841
13988
|
kind: z$1.ZodLiteral<"plugin">;
|
|
13842
13989
|
label: z$1.ZodString;
|
|
13843
13990
|
pluginId: z$1.ZodString;
|
|
13991
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
13992
|
+
kind: z$1.ZodLiteral<"attachment">;
|
|
13993
|
+
label: z$1.ZodString;
|
|
13994
|
+
path: z$1.ZodString;
|
|
13844
13995
|
}, z$1.core.$strip>], "kind">, unknown>;
|
|
13845
13996
|
start: z$1.ZodNumber;
|
|
13846
13997
|
}, z$1.core.$strip>>>;
|
|
@@ -14271,6 +14422,20 @@ declare const threadGetQuerySchema: z$1.ZodObject<{
|
|
|
14271
14422
|
}, z$1.core.$strip>;
|
|
14272
14423
|
type ThreadGetQuery = z$1.infer<typeof threadGetQuerySchema>;
|
|
14273
14424
|
type ThreadPluginMetadataResponse = z$1.infer<typeof pluginMetadataSchema>;
|
|
14425
|
+
declare const pluginThreadMetadataListResponseSchema: z$1.ZodObject<{
|
|
14426
|
+
threads: z$1.ZodArray<z$1.ZodObject<{
|
|
14427
|
+
metadata: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
14428
|
+
threadId: z$1.ZodString;
|
|
14429
|
+
}, z$1.core.$strict>>;
|
|
14430
|
+
}, z$1.core.$strict>;
|
|
14431
|
+
type PluginThreadMetadataListResponse = z$1.infer<typeof pluginThreadMetadataListResponseSchema>;
|
|
14432
|
+
declare const threadAncestorsListResponseSchema: z$1.ZodObject<{
|
|
14433
|
+
threads: z$1.ZodArray<z$1.ZodObject<{
|
|
14434
|
+
ancestorIds: z$1.ZodArray<z$1.ZodString>;
|
|
14435
|
+
threadId: z$1.ZodString;
|
|
14436
|
+
}, z$1.core.$strict>>;
|
|
14437
|
+
}, z$1.core.$strict>;
|
|
14438
|
+
type ThreadAncestorsListResponse = z$1.infer<typeof threadAncestorsListResponseSchema>;
|
|
14274
14439
|
declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
|
|
14275
14440
|
activeBackgroundAgentCount: z$1.ZodNumber;
|
|
14276
14441
|
archivedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -14772,6 +14937,10 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
|
|
|
14772
14937
|
kind: z$1.ZodLiteral<"plugin">;
|
|
14773
14938
|
label: z$1.ZodString;
|
|
14774
14939
|
pluginId: z$1.ZodString;
|
|
14940
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
14941
|
+
kind: z$1.ZodLiteral<"attachment">;
|
|
14942
|
+
label: z$1.ZodString;
|
|
14943
|
+
path: z$1.ZodString;
|
|
14775
14944
|
}, z$1.core.$strip>], "kind">, unknown>;
|
|
14776
14945
|
start: z$1.ZodNumber;
|
|
14777
14946
|
}, z$1.core.$strip>>>;
|
|
@@ -15047,6 +15216,11 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
|
|
|
15047
15216
|
after: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
15048
15217
|
attachments: z$1.ZodNullable<z$1.ZodObject<{
|
|
15049
15218
|
imageUrls: z$1.ZodArray<z$1.ZodString>;
|
|
15219
|
+
localFileDetails: z$1.ZodArray<z$1.ZodObject<{
|
|
15220
|
+
name: z$1.ZodString;
|
|
15221
|
+
path: z$1.ZodString;
|
|
15222
|
+
sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
|
|
15223
|
+
}, z$1.core.$strip>>;
|
|
15050
15224
|
localFilePaths: z$1.ZodArray<z$1.ZodString>;
|
|
15051
15225
|
localFiles: z$1.ZodNumber;
|
|
15052
15226
|
localImagePaths: z$1.ZodArray<z$1.ZodString>;
|
|
@@ -15112,6 +15286,10 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
|
|
|
15112
15286
|
kind: z$1.ZodLiteral<"plugin">;
|
|
15113
15287
|
label: z$1.ZodString;
|
|
15114
15288
|
pluginId: z$1.ZodString;
|
|
15289
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
15290
|
+
kind: z$1.ZodLiteral<"attachment">;
|
|
15291
|
+
label: z$1.ZodString;
|
|
15292
|
+
path: z$1.ZodString;
|
|
15115
15293
|
}, z$1.core.$strip>], "kind">, unknown>;
|
|
15116
15294
|
start: z$1.ZodNumber;
|
|
15117
15295
|
}, z$1.core.$strip>>;
|
|
@@ -15196,6 +15374,11 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
|
|
|
15196
15374
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
15197
15375
|
attachments: z$1.ZodNullable<z$1.ZodObject<{
|
|
15198
15376
|
imageUrls: z$1.ZodArray<z$1.ZodString>;
|
|
15377
|
+
localFileDetails: z$1.ZodArray<z$1.ZodObject<{
|
|
15378
|
+
name: z$1.ZodString;
|
|
15379
|
+
path: z$1.ZodString;
|
|
15380
|
+
sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
|
|
15381
|
+
}, z$1.core.$strip>>;
|
|
15199
15382
|
localFilePaths: z$1.ZodArray<z$1.ZodString>;
|
|
15200
15383
|
localFiles: z$1.ZodNumber;
|
|
15201
15384
|
localImagePaths: z$1.ZodArray<z$1.ZodString>;
|
|
@@ -15218,6 +15401,11 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
|
|
|
15218
15401
|
before: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
15219
15402
|
attachments: z$1.ZodNullable<z$1.ZodObject<{
|
|
15220
15403
|
imageUrls: z$1.ZodArray<z$1.ZodString>;
|
|
15404
|
+
localFileDetails: z$1.ZodArray<z$1.ZodObject<{
|
|
15405
|
+
name: z$1.ZodString;
|
|
15406
|
+
path: z$1.ZodString;
|
|
15407
|
+
sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
|
|
15408
|
+
}, z$1.core.$strip>>;
|
|
15221
15409
|
localFilePaths: z$1.ZodArray<z$1.ZodString>;
|
|
15222
15410
|
localFiles: z$1.ZodNumber;
|
|
15223
15411
|
localImagePaths: z$1.ZodArray<z$1.ZodString>;
|
|
@@ -15283,6 +15471,10 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
|
|
|
15283
15471
|
kind: z$1.ZodLiteral<"plugin">;
|
|
15284
15472
|
label: z$1.ZodString;
|
|
15285
15473
|
pluginId: z$1.ZodString;
|
|
15474
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
15475
|
+
kind: z$1.ZodLiteral<"attachment">;
|
|
15476
|
+
label: z$1.ZodString;
|
|
15477
|
+
path: z$1.ZodString;
|
|
15286
15478
|
}, z$1.core.$strip>], "kind">, unknown>;
|
|
15287
15479
|
start: z$1.ZodNumber;
|
|
15288
15480
|
}, z$1.core.$strip>>;
|
|
@@ -15367,6 +15559,11 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
|
|
|
15367
15559
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
15368
15560
|
attachments: z$1.ZodNullable<z$1.ZodObject<{
|
|
15369
15561
|
imageUrls: z$1.ZodArray<z$1.ZodString>;
|
|
15562
|
+
localFileDetails: z$1.ZodArray<z$1.ZodObject<{
|
|
15563
|
+
name: z$1.ZodString;
|
|
15564
|
+
path: z$1.ZodString;
|
|
15565
|
+
sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
|
|
15566
|
+
}, z$1.core.$strip>>;
|
|
15370
15567
|
localFilePaths: z$1.ZodArray<z$1.ZodString>;
|
|
15371
15568
|
localFiles: z$1.ZodNumber;
|
|
15372
15569
|
localImagePaths: z$1.ZodArray<z$1.ZodString>;
|
|
@@ -15389,6 +15586,11 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
|
|
|
15389
15586
|
message: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
15390
15587
|
attachments: z$1.ZodNullable<z$1.ZodObject<{
|
|
15391
15588
|
imageUrls: z$1.ZodArray<z$1.ZodString>;
|
|
15589
|
+
localFileDetails: z$1.ZodArray<z$1.ZodObject<{
|
|
15590
|
+
name: z$1.ZodString;
|
|
15591
|
+
path: z$1.ZodString;
|
|
15592
|
+
sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
|
|
15593
|
+
}, z$1.core.$strip>>;
|
|
15392
15594
|
localFilePaths: z$1.ZodArray<z$1.ZodString>;
|
|
15393
15595
|
localFiles: z$1.ZodNumber;
|
|
15394
15596
|
localImagePaths: z$1.ZodArray<z$1.ZodString>;
|
|
@@ -15454,6 +15656,10 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
|
|
|
15454
15656
|
kind: z$1.ZodLiteral<"plugin">;
|
|
15455
15657
|
label: z$1.ZodString;
|
|
15456
15658
|
pluginId: z$1.ZodString;
|
|
15659
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
15660
|
+
kind: z$1.ZodLiteral<"attachment">;
|
|
15661
|
+
label: z$1.ZodString;
|
|
15662
|
+
path: z$1.ZodString;
|
|
15457
15663
|
}, z$1.core.$strip>], "kind">, unknown>;
|
|
15458
15664
|
start: z$1.ZodNumber;
|
|
15459
15665
|
}, z$1.core.$strip>>;
|
|
@@ -15538,6 +15744,11 @@ declare const threadMessageResponseSchema: z$1.ZodObject<{
|
|
|
15538
15744
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
15539
15745
|
attachments: z$1.ZodNullable<z$1.ZodObject<{
|
|
15540
15746
|
imageUrls: z$1.ZodArray<z$1.ZodString>;
|
|
15747
|
+
localFileDetails: z$1.ZodArray<z$1.ZodObject<{
|
|
15748
|
+
name: z$1.ZodString;
|
|
15749
|
+
path: z$1.ZodString;
|
|
15750
|
+
sizeBytes: z$1.ZodNullable<z$1.ZodNumber>;
|
|
15751
|
+
}, z$1.core.$strip>>;
|
|
15541
15752
|
localFilePaths: z$1.ZodArray<z$1.ZodString>;
|
|
15542
15753
|
localFiles: z$1.ZodNumber;
|
|
15543
15754
|
localImagePaths: z$1.ZodArray<z$1.ZodString>;
|
|
@@ -16314,6 +16525,12 @@ declare const threadTabsResponseSchema: z$1.ZodObject<{
|
|
|
16314
16525
|
}, z$1.core.$strict>>;
|
|
16315
16526
|
path: z$1.ZodString;
|
|
16316
16527
|
threadId: z$1.ZodNullable<z$1.ZodString>;
|
|
16528
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
16529
|
+
id: z$1.ZodString;
|
|
16530
|
+
kind: z$1.ZodLiteral<"attachment-file-preview">;
|
|
16531
|
+
name: z$1.ZodString;
|
|
16532
|
+
path: z$1.ZodString;
|
|
16533
|
+
projectId: z$1.ZodString;
|
|
16317
16534
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
16318
16535
|
desktopTarget: z$1.ZodOptional<z$1.ZodObject<{
|
|
16319
16536
|
generation: z$1.ZodString;
|
|
@@ -16454,6 +16671,12 @@ declare const updateThreadTabsRequestSchema: z$1.ZodObject<{
|
|
|
16454
16671
|
}, z$1.core.$strict>>;
|
|
16455
16672
|
path: z$1.ZodString;
|
|
16456
16673
|
threadId: z$1.ZodNullable<z$1.ZodString>;
|
|
16674
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
16675
|
+
id: z$1.ZodString;
|
|
16676
|
+
kind: z$1.ZodLiteral<"attachment-file-preview">;
|
|
16677
|
+
name: z$1.ZodString;
|
|
16678
|
+
path: z$1.ZodString;
|
|
16679
|
+
projectId: z$1.ZodString;
|
|
16457
16680
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
16458
16681
|
desktopTarget: z$1.ZodOptional<z$1.ZodObject<{
|
|
16459
16682
|
generation: z$1.ZodString;
|
|
@@ -17732,6 +17955,8 @@ interface ThreadOutputResponse {
|
|
|
17732
17955
|
}
|
|
17733
17956
|
type ThreadMutationResult = ThreadResponse;
|
|
17734
17957
|
type ThreadPluginMetadataResult = ThreadPluginMetadataResponse;
|
|
17958
|
+
type PluginThreadMetadataListResult = PluginThreadMetadataListResponse;
|
|
17959
|
+
type ThreadAncestorsListResult = ThreadAncestorsListResponse;
|
|
17735
17960
|
type ThreadSpawnResult = ThreadResponse;
|
|
17736
17961
|
type ThreadForkResult = ThreadResponse;
|
|
17737
17962
|
type ThreadInteractionGetResult = PendingInteraction;
|
|
@@ -17816,6 +18041,15 @@ interface ThreadPluginMetadataArgs {
|
|
|
17816
18041
|
signal?: AbortSignal;
|
|
17817
18042
|
threadId: string;
|
|
17818
18043
|
}
|
|
18044
|
+
interface PluginThreadMetadataListArgs {
|
|
18045
|
+
pluginId: string;
|
|
18046
|
+
threadIds: readonly string[];
|
|
18047
|
+
signal?: AbortSignal;
|
|
18048
|
+
}
|
|
18049
|
+
interface ThreadAncestorsListArgs {
|
|
18050
|
+
threadIds: readonly string[];
|
|
18051
|
+
signal?: AbortSignal;
|
|
18052
|
+
}
|
|
17819
18053
|
interface ThreadPluginMetadataUpdateArgs {
|
|
17820
18054
|
threadId: string;
|
|
17821
18055
|
pluginId: string;
|
|
@@ -18054,6 +18288,20 @@ interface ThreadsArea {
|
|
|
18054
18288
|
fork(args: ThreadForkArgs): Promise<ThreadForkResult>;
|
|
18055
18289
|
get(args: ThreadGetArgs): Promise<ThreadGetResult>;
|
|
18056
18290
|
getPluginMetadata(args: ThreadPluginMetadataArgs): Promise<ThreadPluginMetadataResult>;
|
|
18291
|
+
/**
|
|
18292
|
+
* `pluginId`'s metadata for each of `threadIds` (1–200 per request) that
|
|
18293
|
+
* has any, as `{ threadId, metadata }` rows; archived and deleted threads
|
|
18294
|
+
* included.
|
|
18295
|
+
* Experimental: see docs/api_to_audit.md.
|
|
18296
|
+
*/
|
|
18297
|
+
experimental_listPluginMetadata(args: PluginThreadMetadataListArgs): Promise<PluginThreadMetadataListResult>;
|
|
18298
|
+
/**
|
|
18299
|
+
* Each of `threadIds` (1–200 per request) that exists, with `ancestorIds`
|
|
18300
|
+
* from its parent up to the root (empty for a root thread); archived and
|
|
18301
|
+
* deleted threads included, unknown ids omitted.
|
|
18302
|
+
* Experimental: see docs/api_to_audit.md.
|
|
18303
|
+
*/
|
|
18304
|
+
experimental_listAncestors(args: ThreadAncestorsListArgs): Promise<ThreadAncestorsListResult>;
|
|
18057
18305
|
updatePluginMetadata(args: ThreadPluginMetadataUpdateArgs): Promise<ThreadPluginMetadataResult>;
|
|
18058
18306
|
queue: ThreadQueueArea;
|
|
18059
18307
|
interactions: ThreadInteractionsArea;
|
|
@@ -19274,10 +19522,13 @@ interface ExperimentalClipboardContent {
|
|
|
19274
19522
|
* origin, and the plugin-metadata calls default `pluginId`. The same
|
|
19275
19523
|
* narrowing the backend `bb.sdk` applies.
|
|
19276
19524
|
*/
|
|
19277
|
-
type PluginBoundThreadsArea = Omit<BbSdkAreas["threads"], "getPluginMetadata" | "updatePluginMetadata"> & {
|
|
19525
|
+
type PluginBoundThreadsArea = Omit<BbSdkAreas["threads"], "experimental_listPluginMetadata" | "getPluginMetadata" | "updatePluginMetadata"> & {
|
|
19278
19526
|
getPluginMetadata(args: Omit<ThreadPluginMetadataArgs, "pluginId"> & {
|
|
19279
19527
|
pluginId?: string;
|
|
19280
19528
|
}): Promise<ThreadPluginMetadataResult>;
|
|
19529
|
+
experimental_listPluginMetadata(args: Omit<PluginThreadMetadataListArgs, "pluginId"> & {
|
|
19530
|
+
pluginId?: string;
|
|
19531
|
+
}): Promise<PluginThreadMetadataListResult>;
|
|
19281
19532
|
updatePluginMetadata(args: Omit<ThreadPluginMetadataUpdateArgs, "pluginId"> & {
|
|
19282
19533
|
pluginId?: string;
|
|
19283
19534
|
}): Promise<ThreadPluginMetadataResult>;
|
|
@@ -19298,6 +19549,28 @@ interface PluginThreadTitleProps {
|
|
|
19298
19549
|
/** A thread in the sidebar's live view; renders nothing for an unknown id. */
|
|
19299
19550
|
threadId: string;
|
|
19300
19551
|
}
|
|
19552
|
+
/**
|
|
19553
|
+
* Props for {@link PluginSdkApp.experimental_ThreadStatusGlyph}: bb's thread
|
|
19554
|
+
* status glyph, the one its own lists draw. The caller resolves the
|
|
19555
|
+
* indicator, so a row can fold in state the host does not know about, such
|
|
19556
|
+
* as collapsed children or a client-local draft.
|
|
19557
|
+
*/
|
|
19558
|
+
interface PluginThreadStatusGlyphProps {
|
|
19559
|
+
/** The indicator to draw; "none" draws nothing unless `rowStatus` shows. */
|
|
19560
|
+
indicator: PluginSidebarThreadIndicator;
|
|
19561
|
+
/** Draws the archive glyph instead of the indicator. */
|
|
19562
|
+
archived?: boolean;
|
|
19563
|
+
/**
|
|
19564
|
+
* A status another plugin set on the row (see
|
|
19565
|
+
* {@link PluginSdkApp.useSidebarThreadRowStatus}). It replaces every
|
|
19566
|
+
* indicator except "runtime", "unread-error", and "waiting-for-input".
|
|
19567
|
+
*/
|
|
19568
|
+
rowStatus?: PluginSidebarThreadRowStatus | null;
|
|
19569
|
+
/** Hides the idle draft glyph from assistive technology. */
|
|
19570
|
+
hideIdleDraftLabel?: boolean;
|
|
19571
|
+
/** "compact" draws a 14 px glyph; "default" matches bb's sidebar rows. */
|
|
19572
|
+
size?: "compact" | "default";
|
|
19573
|
+
}
|
|
19301
19574
|
/**
|
|
19302
19575
|
* One environment provider from bb's catalog (see
|
|
19303
19576
|
* {@link PluginSdkApp.useEnvironmentProviders}): what a sidebar needs to
|
|
@@ -19347,62 +19620,6 @@ interface PluginSidebarThreadShortcut {
|
|
|
19347
19620
|
/** Value for the row's `aria-keyshortcuts` attribute. */
|
|
19348
19621
|
ariaKeyshortcuts: string;
|
|
19349
19622
|
}
|
|
19350
|
-
/**
|
|
19351
|
-
* Act on threads from a plugin surface. Every method routes to the host's own
|
|
19352
|
-
* flow, so optimistic updates, toasts, dialogs, pane closing, and route repair
|
|
19353
|
-
* behave exactly as they do in the built-in sidebar. Unknown thread ids are
|
|
19354
|
-
* ignored by `open` and rejected by the rest.
|
|
19355
|
-
*/
|
|
19356
|
-
interface PluginSidebarThreadActions {
|
|
19357
|
-
/**
|
|
19358
|
-
* Navigate to a thread. `split: true` applies bb's split placement rules —
|
|
19359
|
-
* a right split by default, focus when the thread is already open, replace
|
|
19360
|
-
* at the pane cap — and falls back to plain navigation where splits are off.
|
|
19361
|
-
* Opening also expands the thread's conversation if the secondary panel had
|
|
19362
|
-
* collapsed it, as bb's own row does.
|
|
19363
|
-
*/
|
|
19364
|
-
open(threadId: string, options?: {
|
|
19365
|
-
split?: boolean;
|
|
19366
|
-
}): void;
|
|
19367
|
-
/**
|
|
19368
|
-
* Go to the new-thread screen. Passing `projectId` also makes that project
|
|
19369
|
-
* the composer's selection, so the thread is created where you asked.
|
|
19370
|
-
* `sectionId` files the new thread under that section, and
|
|
19371
|
-
* `environmentId` reuses that environment (the "New thread in
|
|
19372
|
-
* environment" affordance), both exactly as bb's own list does.
|
|
19373
|
-
* `experimental_placement` explicitly selects the section and pin state,
|
|
19374
|
-
* overriding `sectionId`. Omitting placement starts unpinned, outside sections
|
|
19375
|
-
* unless `sectionId` is supplied; previous composer placement is cleared.
|
|
19376
|
-
* `hostId` selects a machine for a new environment when it
|
|
19377
|
-
* is known and supports an environment provider. `environmentId` wins when
|
|
19378
|
-
* both are supplied.
|
|
19379
|
-
*/
|
|
19380
|
-
openNewThread(options?: {
|
|
19381
|
-
projectId?: string;
|
|
19382
|
-
sectionId?: string;
|
|
19383
|
-
experimental_placement?: {
|
|
19384
|
-
sectionId: string | null;
|
|
19385
|
-
pinned: boolean;
|
|
19386
|
-
};
|
|
19387
|
-
environmentId?: string;
|
|
19388
|
-
hostId?: string;
|
|
19389
|
-
focusPrompt?: boolean;
|
|
19390
|
-
}): void;
|
|
19391
|
-
setPinned(threadId: string, pinned: boolean): Promise<void>;
|
|
19392
|
-
setRead(threadId: string, read: boolean): Promise<void>;
|
|
19393
|
-
/** Silent rename — no dialog. For inline editing in your own row. */
|
|
19394
|
-
rename(threadId: string, title: string): Promise<void>;
|
|
19395
|
-
/** Confirms before including child threads unless archive confirmation is disabled in Settings → General. */
|
|
19396
|
-
archive(threadId: string): void;
|
|
19397
|
-
/** Archives an environment's active thread trees with bb's optimistic updates, pane cleanup, and one Undo toast. Rejects after bb shows an error toast on failure. */
|
|
19398
|
-
experimental_archiveEnvironmentThreads(environmentId: string): Promise<void>;
|
|
19399
|
-
/**
|
|
19400
|
-
* Opens bb's delete confirmation, which counts child threads first. Deletion
|
|
19401
|
-
* is destructive and recursive, so the host owns the confirmation: there is
|
|
19402
|
-
* deliberately no silent `delete`.
|
|
19403
|
-
*/
|
|
19404
|
-
requestDelete(threadId: string): void;
|
|
19405
|
-
}
|
|
19406
19623
|
/**
|
|
19407
19624
|
* Render a plugin component in the thread header's action row.
|
|
19408
19625
|
*
|
|
@@ -19434,6 +19651,226 @@ interface ExperimentalPluginBrowserToolbarActionRegistration {
|
|
|
19434
19651
|
/** Component rendered beside the Browser address bar. */
|
|
19435
19652
|
component: ComponentType<ExperimentalPluginBrowserToolbarActionProps>;
|
|
19436
19653
|
}
|
|
19654
|
+
/**
|
|
19655
|
+
* The thread a thread action is evaluated for: the fields bb's own actions
|
|
19656
|
+
* read, copied from the thread payload by the surface that shows the menu.
|
|
19657
|
+
*/
|
|
19658
|
+
interface PluginThreadActionTarget {
|
|
19659
|
+
id: string;
|
|
19660
|
+
projectId: string;
|
|
19661
|
+
parentThreadId: string | null;
|
|
19662
|
+
archivedAt: number | null;
|
|
19663
|
+
pinnedAt: number | null;
|
|
19664
|
+
sectionId: string | null;
|
|
19665
|
+
isUnread: boolean;
|
|
19666
|
+
status: ThreadStatus;
|
|
19667
|
+
/**
|
|
19668
|
+
* The thread's environment when a new thread can reuse it, null otherwise.
|
|
19669
|
+
* `path` is the checkout path, null when the environment has none.
|
|
19670
|
+
*/
|
|
19671
|
+
environment: {
|
|
19672
|
+
id: string;
|
|
19673
|
+
path: string | null;
|
|
19674
|
+
} | null;
|
|
19675
|
+
}
|
|
19676
|
+
/** One row of a thread action's choice list. */
|
|
19677
|
+
interface PluginThreadActionChoice {
|
|
19678
|
+
id: string;
|
|
19679
|
+
label: string;
|
|
19680
|
+
icon?: BbIconName;
|
|
19681
|
+
selected?: boolean;
|
|
19682
|
+
disabled?: boolean;
|
|
19683
|
+
}
|
|
19684
|
+
/**
|
|
19685
|
+
* A choice list instead of a direct action: a submenu in desktop menus, a step
|
|
19686
|
+
* with Back in the compact drawer, and a popover from a row's quick-action
|
|
19687
|
+
* button. `run` receives the picked choice's `id` as `value`.
|
|
19688
|
+
*/
|
|
19689
|
+
interface PluginThreadActionChoices {
|
|
19690
|
+
/**
|
|
19691
|
+
* Title of the drawer step and the quick-action popover; defaults to the
|
|
19692
|
+
* action's label. Desktop submenus show none: their trigger names them.
|
|
19693
|
+
*/
|
|
19694
|
+
heading?: string;
|
|
19695
|
+
/** Footnote below the choices, e.g. why the current value differs from the pick. */
|
|
19696
|
+
hint?: string;
|
|
19697
|
+
items: readonly PluginThreadActionChoice[];
|
|
19698
|
+
}
|
|
19699
|
+
/** What a thread action's `run` receives. */
|
|
19700
|
+
interface PluginThreadActionRunInput {
|
|
19701
|
+
/** The picked choice's `id` when the action has `choices`; otherwise undefined. */
|
|
19702
|
+
value?: string;
|
|
19703
|
+
/**
|
|
19704
|
+
* Start renaming a thread with the editor of the surface that showed the
|
|
19705
|
+
* menu: inline in the sidebar row or thread header, bb's rename dialog
|
|
19706
|
+
* elsewhere.
|
|
19707
|
+
*/
|
|
19708
|
+
requestRename(threadId: string): void;
|
|
19709
|
+
}
|
|
19710
|
+
/** One evaluated thread action: what a registration shows for one thread. */
|
|
19711
|
+
interface PluginThreadAction {
|
|
19712
|
+
label: string;
|
|
19713
|
+
/**
|
|
19714
|
+
* Short secondary text on a muted second line under the label, e.g. the
|
|
19715
|
+
* current value of a choice list.
|
|
19716
|
+
*/
|
|
19717
|
+
detail?: string;
|
|
19718
|
+
icon: BbIconName;
|
|
19719
|
+
variant?: "default" | "destructive";
|
|
19720
|
+
disabled?: boolean;
|
|
19721
|
+
choices?: PluginThreadActionChoices;
|
|
19722
|
+
/**
|
|
19723
|
+
* Runs when the user activates the action or picks a choice. Errors (sync
|
|
19724
|
+
* or async) are contained and logged; they never break the menu.
|
|
19725
|
+
*/
|
|
19726
|
+
run(input: PluginThreadActionRunInput): void | Promise<void>;
|
|
19727
|
+
}
|
|
19728
|
+
/** What a registration's `useData` receives. */
|
|
19729
|
+
interface PluginThreadActionDataInput {
|
|
19730
|
+
/**
|
|
19731
|
+
* Every thread a visible surface currently shows actions for (sidebar rows
|
|
19732
|
+
* on screen, the open thread's header, open menus); a hidden sidebar
|
|
19733
|
+
* contributes none. Sorted, deduplicated, and published once the set has
|
|
19734
|
+
* been quiet for 32 ms (at most 100 ms after the first change), so rows
|
|
19735
|
+
* that mount a frame apart arrive together. Load per-thread state for these
|
|
19736
|
+
* ids, fetching only ids not loaded yet.
|
|
19737
|
+
*/
|
|
19738
|
+
threadIds: readonly string[];
|
|
19739
|
+
}
|
|
19740
|
+
/** What a registration's `item` receives for each thread it is shown for. */
|
|
19741
|
+
interface PluginThreadActionItemInput<Data> {
|
|
19742
|
+
thread: PluginThreadActionTarget;
|
|
19743
|
+
/** What `useData` last returned; undefined when the registration has none. */
|
|
19744
|
+
data: Data;
|
|
19745
|
+
/** The registering plugin's `useSdk()` client. */
|
|
19746
|
+
sdk: PluginBrowserBbSdk;
|
|
19747
|
+
/**
|
|
19748
|
+
* The registering plugin's `useBbNavigate()`. Thread menus are not inside a
|
|
19749
|
+
* side panel, so `openThreadPanel` opens in the focused thread view, as
|
|
19750
|
+
* plugin commands do, and returns false when no thread view is open.
|
|
19751
|
+
*/
|
|
19752
|
+
navigate: BbNavigate;
|
|
19753
|
+
}
|
|
19754
|
+
/**
|
|
19755
|
+
* Add an action to every thread actions menu: the thread header's menu, the
|
|
19756
|
+
* sidebar row's menu and right-click menu, the compact long-press drawer, and,
|
|
19757
|
+
* when the user picks it, a sidebar row's quick-action buttons. bb's own
|
|
19758
|
+
* actions (Open in split, Copy thread link, Mark read, Pin, Rename, Archive,
|
|
19759
|
+
* Delete, …) are registrations of this same shape.
|
|
19760
|
+
*
|
|
19761
|
+
* `useData` is a React hook the host calls once for the whole app, never per
|
|
19762
|
+
* thread or per menu; read app-wide state there (preferences, a realtime
|
|
19763
|
+
* channel, per-thread state for the `threadIds` it receives, fetched in one
|
|
19764
|
+
* batch for the ids not loaded yet). `item` is pure and synchronous: it
|
|
19765
|
+
* derives the action for one thread from that thread and `data`, closing over
|
|
19766
|
+
* everything `run` needs, or returns null to hide it. A throw from either
|
|
19767
|
+
* drops only this registration.
|
|
19768
|
+
*/
|
|
19769
|
+
interface PluginThreadActionRegistration<Data = undefined> {
|
|
19770
|
+
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
19771
|
+
id: string;
|
|
19772
|
+
/** Static name, shown where the user picks a row's quick actions. */
|
|
19773
|
+
title: string;
|
|
19774
|
+
/** Static icon for that picker; the evaluated action's `icon` wins in menus. */
|
|
19775
|
+
icon: BbIconName;
|
|
19776
|
+
/**
|
|
19777
|
+
* Menus and the quick-action picker sort by `group` (string compare) with a
|
|
19778
|
+
* separator between groups, then by `order` within a group (unset sorts
|
|
19779
|
+
* last), then by registration order. bb's groups are
|
|
19780
|
+
* {@link PluginSdkApp.experimental_THREAD_ACTION_GROUPS}; any other string
|
|
19781
|
+
* is a group of its own, placed where it sorts.
|
|
19782
|
+
*/
|
|
19783
|
+
group: string;
|
|
19784
|
+
order?: number;
|
|
19785
|
+
useData?(input: PluginThreadActionDataInput): Data;
|
|
19786
|
+
item(input: PluginThreadActionItemInput<Data>): PluginThreadAction | null;
|
|
19787
|
+
}
|
|
19788
|
+
/**
|
|
19789
|
+
* A thread action as {@link PluginSdkApp.experimental_useThreadActions}
|
|
19790
|
+
* returns it: `run` is bound to the caller's `requestRename` (or bb's rename
|
|
19791
|
+
* dialog), contains errors, and resolves when the action settles.
|
|
19792
|
+
*/
|
|
19793
|
+
interface PluginBoundThreadAction extends Omit<PluginThreadAction, "run"> {
|
|
19794
|
+
/** `value` is the picked choice's `id` for an action with `choices`. */
|
|
19795
|
+
run(value?: string): Promise<void>;
|
|
19796
|
+
}
|
|
19797
|
+
/**
|
|
19798
|
+
* One row of {@link PluginSdkApp.experimental_useThreadActions}: `key` is
|
|
19799
|
+
* `<owner>/<id>`, where the owner is the registering plugin's id or
|
|
19800
|
+
* `bb--core` for bb's own actions.
|
|
19801
|
+
*/
|
|
19802
|
+
interface PluginThreadActionEntry {
|
|
19803
|
+
key: string;
|
|
19804
|
+
pluginId: string;
|
|
19805
|
+
/** The registration's group, for separators in a caller's own list. */
|
|
19806
|
+
group: string;
|
|
19807
|
+
action: PluginBoundThreadAction;
|
|
19808
|
+
}
|
|
19809
|
+
/** One row of {@link PluginSdkApp.experimental_useThreadActionRegistrations}. */
|
|
19810
|
+
interface PluginThreadActionRegistrationInfo {
|
|
19811
|
+
key: string;
|
|
19812
|
+
pluginId: string;
|
|
19813
|
+
title: string;
|
|
19814
|
+
icon: BbIconName;
|
|
19815
|
+
}
|
|
19816
|
+
/** Options for {@link PluginSdkApp.experimental_useThreadActions}. */
|
|
19817
|
+
interface PluginThreadActionsOptions {
|
|
19818
|
+
/** Return only these keys, in this order. Omit for every action in menu order. */
|
|
19819
|
+
keys?: readonly string[];
|
|
19820
|
+
/**
|
|
19821
|
+
* The surface's own rename editor, passed to `run` as `requestRename`.
|
|
19822
|
+
* Omit to use bb's rename dialog.
|
|
19823
|
+
*/
|
|
19824
|
+
requestRename?(threadId: string): void;
|
|
19825
|
+
}
|
|
19826
|
+
/**
|
|
19827
|
+
* An action a surface adds to its own copy of the thread menu, not a
|
|
19828
|
+
* registration: appended to the end of its `group`. `key` must be unique in
|
|
19829
|
+
* the menu.
|
|
19830
|
+
*/
|
|
19831
|
+
interface PluginThreadActionsInlineItem {
|
|
19832
|
+
key: string;
|
|
19833
|
+
group: string;
|
|
19834
|
+
action: PluginThreadAction;
|
|
19835
|
+
}
|
|
19836
|
+
/**
|
|
19837
|
+
* What a thread menu's `trigger` receives: the menu's ARIA state, event
|
|
19838
|
+
* handlers, and ref. Spread all of them onto the button you render (compose
|
|
19839
|
+
* your own handlers after calling theirs); a trigger that drops them never
|
|
19840
|
+
* opens the menu.
|
|
19841
|
+
*/
|
|
19842
|
+
type PluginThreadActionsTriggerProps = ComponentPropsWithRef<"button">;
|
|
19843
|
+
interface PluginThreadActionsMenuBaseProps {
|
|
19844
|
+
thread: PluginThreadActionTarget;
|
|
19845
|
+
inline?: readonly PluginThreadActionsInlineItem[];
|
|
19846
|
+
/** See {@link PluginThreadActionsOptions.requestRename}. */
|
|
19847
|
+
requestRename?(threadId: string): void;
|
|
19848
|
+
onOpenChange?(open: boolean): void;
|
|
19849
|
+
/** Radix's close auto-focus hook, to restore focus to the surface's own control. */
|
|
19850
|
+
onCloseAutoFocus?(event: Event): void;
|
|
19851
|
+
}
|
|
19852
|
+
/**
|
|
19853
|
+
* Props of the host-owned `experimental_ThreadActionsMenu`: bb's thread menu
|
|
19854
|
+
* opened from the button `trigger` renders (see
|
|
19855
|
+
* {@link PluginThreadActionsTriggerProps}), a drawer at compact width.
|
|
19856
|
+
*/
|
|
19857
|
+
interface PluginThreadActionsMenuProps extends PluginThreadActionsMenuBaseProps {
|
|
19858
|
+
trigger(props: PluginThreadActionsTriggerProps): ReactNode;
|
|
19859
|
+
side?: "bottom" | "left" | "right" | "top";
|
|
19860
|
+
align?: "center" | "end" | "start";
|
|
19861
|
+
sideOffset?: number;
|
|
19862
|
+
}
|
|
19863
|
+
/**
|
|
19864
|
+
* Props of the host-owned `experimental_ThreadActionsContextMenu`: bb's thread
|
|
19865
|
+
* menu on right-click of `children`, or on touch long-press at compact width.
|
|
19866
|
+
*/
|
|
19867
|
+
interface PluginThreadActionsContextMenuProps extends PluginThreadActionsMenuBaseProps {
|
|
19868
|
+
children: ReactNode;
|
|
19869
|
+
/** Suppresses the menu, e.g. while the row edits its title. */
|
|
19870
|
+
disabled?: boolean;
|
|
19871
|
+
/** Closes the menu and suppresses opening while the row is being dragged. */
|
|
19872
|
+
dragging?: boolean;
|
|
19873
|
+
}
|
|
19437
19874
|
/** One pane's place in the split layout, as fractions of the split area. */
|
|
19438
19875
|
interface PluginSidebarSplitPane {
|
|
19439
19876
|
paneId: string;
|
|
@@ -19981,6 +20418,12 @@ interface PluginAppSlots {
|
|
|
19981
20418
|
* docs/api_to_audit.md.
|
|
19982
20419
|
*/
|
|
19983
20420
|
experimental_threadHeaderAction(registration: PluginThreadHeaderActionRegistration): void;
|
|
20421
|
+
/**
|
|
20422
|
+
* Add an action to every thread actions menu (see
|
|
20423
|
+
* {@link PluginThreadActionRegistration}). Experimental: see
|
|
20424
|
+
* docs/api_to_audit.md.
|
|
20425
|
+
*/
|
|
20426
|
+
experimental_threadAction<Data = undefined>(registration: PluginThreadActionRegistration<Data>): void;
|
|
19984
20427
|
/** Render a component beside each Browser tab's address bar. */
|
|
19985
20428
|
experimental_browserToolbarAction(registration: ExperimentalPluginBrowserToolbarActionRegistration): void;
|
|
19986
20429
|
fileOpener(registration: PluginFileOpenerRegistration): void;
|
|
@@ -20331,6 +20774,10 @@ type ComposerMention = {
|
|
|
20331
20774
|
source: "command" | "skill";
|
|
20332
20775
|
origin: "builtin" | "project" | "user";
|
|
20333
20776
|
argumentHint: string | null;
|
|
20777
|
+
} | {
|
|
20778
|
+
kind: "attachment";
|
|
20779
|
+
/** The stored path of a file attached to the same draft. */
|
|
20780
|
+
path: string;
|
|
20334
20781
|
} | {
|
|
20335
20782
|
kind: "plugin";
|
|
20336
20783
|
/** The plugin that owns the pill. */
|
|
@@ -21034,7 +21481,15 @@ interface BbContext {
|
|
|
21034
21481
|
threadId: string | null;
|
|
21035
21482
|
}
|
|
21036
21483
|
interface BbNavigate {
|
|
21037
|
-
|
|
21484
|
+
/**
|
|
21485
|
+
* Open a thread. `split: true` applies bb's split placement rules (a right
|
|
21486
|
+
* split by default, focus when already open, replace at the pane cap) and
|
|
21487
|
+
* falls back to plain navigation where splits are off. Opening also expands
|
|
21488
|
+
* the thread's conversation if the side panel had collapsed it.
|
|
21489
|
+
*/
|
|
21490
|
+
toThread(threadId: string, options?: {
|
|
21491
|
+
split?: boolean;
|
|
21492
|
+
}): void;
|
|
21038
21493
|
toProject(projectId: string): void;
|
|
21039
21494
|
/**
|
|
21040
21495
|
* Navigate to one of this plugin's own nav panels by its `path`.
|
|
@@ -21052,16 +21507,27 @@ interface BbNavigate {
|
|
|
21052
21507
|
* and section mention tokens become pills) and `focusPrompt` to focus the
|
|
21053
21508
|
* composer on arrival — the pairing behind "Create via chat" style entry
|
|
21054
21509
|
* points that drop the user into chat with a prefilled prompt.
|
|
21510
|
+
* `projectId` makes that project the composer's selection; `placement`
|
|
21511
|
+
* files the new thread in a section and pin state (omitted: unpinned,
|
|
21512
|
+
* outside sections); `environmentId` reuses that environment and `hostId`
|
|
21513
|
+
* picks a machine for a new one (`environmentId` wins when both are set).
|
|
21055
21514
|
*/
|
|
21056
21515
|
toCompose(options?: {
|
|
21516
|
+
projectId?: string;
|
|
21057
21517
|
initialPrompt?: string;
|
|
21058
21518
|
focusPrompt?: boolean;
|
|
21519
|
+
placement?: {
|
|
21520
|
+
sectionId: string | null;
|
|
21521
|
+
pinned: boolean;
|
|
21522
|
+
};
|
|
21523
|
+
environmentId?: string;
|
|
21524
|
+
hostId?: string;
|
|
21059
21525
|
}): void;
|
|
21060
21526
|
/**
|
|
21061
21527
|
* Open one of this plugin's registered panel actions in the current
|
|
21062
21528
|
* surface's side panel: a `threadPanelAction` in a thread, or an
|
|
21063
21529
|
* `experimental_newThreadPanelAction` on the New thread screen. Plugin
|
|
21064
|
-
* commands use the
|
|
21530
|
+
* commands and thread actions use the focused thread view's opener. Returns false when the surface has no side
|
|
21065
21531
|
* panel actions (plugin pages) or the action is unavailable.
|
|
21066
21532
|
*/
|
|
21067
21533
|
openThreadPanel(options: PluginTargetedPanelActionOpenOptions): boolean;
|
|
@@ -21173,11 +21639,52 @@ interface PluginSdkApp {
|
|
|
21173
21639
|
experimental_lifecycles: readonly ("active" | "archived")[];
|
|
21174
21640
|
}): PluginSidebarThreadsState;
|
|
21175
21641
|
/**
|
|
21176
|
-
*
|
|
21177
|
-
*
|
|
21642
|
+
* Archive an environment's active thread trees the way bb's own list does:
|
|
21643
|
+
* optimistic removal, closing their split panes, leaving a route that shows
|
|
21644
|
+
* one of them, and one Undo toast that restores them and the route. The
|
|
21645
|
+
* promise rejects after bb has shown an error toast. Experimental: see
|
|
21646
|
+
* docs/api_to_audit.md.
|
|
21647
|
+
*/
|
|
21648
|
+
experimental_useArchiveEnvironmentThreads(): (environmentId: string) => Promise<void>;
|
|
21649
|
+
/**
|
|
21650
|
+
* Every thread action for one thread, in menu order (see
|
|
21651
|
+
* {@link PluginThreadAction} for grouping): bb's own registrations first,
|
|
21652
|
+
* then plugins' in registration order. Registrations' `useData` hooks run
|
|
21653
|
+
* once for the app, so calling this per sidebar row costs one store
|
|
21654
|
+
* subscription and a pure `item` call per registration. Pass `keys` for a
|
|
21655
|
+
* row's quick actions. Experimental: see docs/api_to_audit.md.
|
|
21656
|
+
*/
|
|
21657
|
+
experimental_useThreadActions(thread: PluginThreadActionTarget, options?: PluginThreadActionsOptions): readonly PluginThreadActionEntry[];
|
|
21658
|
+
/**
|
|
21659
|
+
* Every registered thread action with its static title and icon, in menu
|
|
21660
|
+
* order and independent of any thread: what a quick-action picker lists.
|
|
21661
|
+
* Experimental: see docs/api_to_audit.md.
|
|
21662
|
+
*/
|
|
21663
|
+
experimental_useThreadActionRegistrations(): readonly PluginThreadActionRegistrationInfo[];
|
|
21664
|
+
/**
|
|
21665
|
+
* bb's thread menu behind a trigger (see
|
|
21666
|
+
* {@link PluginThreadActionsMenuProps}): the same items, order, choice
|
|
21667
|
+
* submenus and compact drawer as the thread header's menu. Experimental: see
|
|
21668
|
+
* docs/api_to_audit.md.
|
|
21669
|
+
*/
|
|
21670
|
+
experimental_ThreadActionsMenu: ComponentType<PluginThreadActionsMenuProps>;
|
|
21671
|
+
/**
|
|
21672
|
+
* bb's thread menu on right-click or long-press (see
|
|
21673
|
+
* {@link PluginThreadActionsContextMenuProps}). Experimental: see
|
|
21178
21674
|
* docs/api_to_audit.md.
|
|
21179
21675
|
*/
|
|
21180
|
-
|
|
21676
|
+
experimental_ThreadActionsContextMenu: ComponentType<PluginThreadActionsContextMenuProps>;
|
|
21677
|
+
/**
|
|
21678
|
+
* bb's thread menu groups, for a registration that joins one:
|
|
21679
|
+
* `open` (split), `organize` (copy, read, pin, move, rename), `settings`,
|
|
21680
|
+
* and `lifecycle` (archive, delete). Experimental: see docs/api_to_audit.md.
|
|
21681
|
+
*/
|
|
21682
|
+
experimental_THREAD_ACTION_GROUPS: {
|
|
21683
|
+
readonly open: "1_open";
|
|
21684
|
+
readonly organize: "2_organize";
|
|
21685
|
+
readonly settings: "3_settings";
|
|
21686
|
+
readonly lifecycle: "4_lifecycle";
|
|
21687
|
+
};
|
|
21181
21688
|
/**
|
|
21182
21689
|
* The pull request for one thread's branch (see
|
|
21183
21690
|
* {@link PluginSidebarThreadPullRequestState}).
|
|
@@ -21241,6 +21748,12 @@ interface PluginSdkApp {
|
|
|
21241
21748
|
* form is `displayTitle` on the thread.
|
|
21242
21749
|
*/
|
|
21243
21750
|
ThreadTitle: ComponentType<PluginThreadTitleProps>;
|
|
21751
|
+
/**
|
|
21752
|
+
* bb's thread status glyph (see {@link PluginThreadStatusGlyphProps}): the
|
|
21753
|
+
* same icons, colors, and accessible labels as bb's own thread lists.
|
|
21754
|
+
* Experimental: see docs/api_to_audit.md.
|
|
21755
|
+
*/
|
|
21756
|
+
experimental_ThreadStatusGlyph: ComponentType<PluginThreadStatusGlyphProps>;
|
|
21244
21757
|
/**
|
|
21245
21758
|
* bb's environment provider catalog (see
|
|
21246
21759
|
* {@link PluginEnvironmentProvidersState}), the directory a thread's
|
|
@@ -21263,8 +21776,8 @@ interface PluginSdkApp {
|
|
|
21263
21776
|
* together. Unarchive, environment-group archive, project/machine/environment
|
|
21264
21777
|
* renames, and project/section removal are also optimistic and roll back on
|
|
21265
21778
|
* failure. Created sections enter the cache when the server assigns their id.
|
|
21266
|
-
* `
|
|
21267
|
-
*
|
|
21779
|
+
* Navigation belongs to `useBbNavigate()`; archive and delete
|
|
21780
|
+
* confirmation to the thread action menus.
|
|
21268
21781
|
*
|
|
21269
21782
|
* The client is stable for the plugin's lifetime, so it is safe in effect
|
|
21270
21783
|
* and callback dependency lists.
|
|
@@ -21756,6 +22269,8 @@ type PluginSettingDescriptor = {
|
|
|
21756
22269
|
label: string;
|
|
21757
22270
|
description?: string;
|
|
21758
22271
|
options: string[];
|
|
22272
|
+
/** Display labels keyed by option value; options without one show the value itself. */
|
|
22273
|
+
experimental_optionLabels?: Record<string, string>;
|
|
21759
22274
|
/** Synchronously validate without transforming a proposed value. */
|
|
21760
22275
|
experimental_schema?: StandardSchemaV1<string, string>;
|
|
21761
22276
|
default?: string;
|
|
@@ -23451,8 +23966,9 @@ interface PluginStatusApi {
|
|
|
23451
23966
|
needsConfiguration(message: string): void;
|
|
23452
23967
|
}
|
|
23453
23968
|
/**
|
|
23454
|
-
* The BB SDK bound to one plugin (`bb.sdk`). `threads.getPluginMetadata
|
|
23455
|
-
* `threads.
|
|
23969
|
+
* The BB SDK bound to one plugin (`bb.sdk`). `threads.getPluginMetadata`,
|
|
23970
|
+
* `threads.experimental_listPluginMetadata` and `threads.updatePluginMetadata`
|
|
23971
|
+
* default `pluginId` to that plugin's id. An
|
|
23456
23972
|
* explicit `pluginId` must be a plugin id (lowercase letters, digits, and
|
|
23457
23973
|
* dashes) or the request fails with HTTP 400. A `pluginMetadata` seed or a
|
|
23458
23974
|
* `set` that is over 256 KiB on its own rejects before any request is sent. A
|
|
@@ -23460,10 +23976,13 @@ interface PluginStatusApi {
|
|
|
23460
23976
|
* leaves the namespace unchanged.
|
|
23461
23977
|
*/
|
|
23462
23978
|
type PluginBbSdk = Omit<BbSdk, "threads"> & {
|
|
23463
|
-
threads: Omit<BbSdk["threads"], "getPluginMetadata" | "updatePluginMetadata"> & {
|
|
23979
|
+
threads: Omit<BbSdk["threads"], "experimental_listPluginMetadata" | "getPluginMetadata" | "updatePluginMetadata"> & {
|
|
23464
23980
|
getPluginMetadata(args: Omit<ThreadPluginMetadataArgs, "pluginId"> & {
|
|
23465
23981
|
pluginId?: string;
|
|
23466
23982
|
}): Promise<ThreadPluginMetadataResult>;
|
|
23983
|
+
experimental_listPluginMetadata(args: Omit<PluginThreadMetadataListArgs, "pluginId"> & {
|
|
23984
|
+
pluginId?: string;
|
|
23985
|
+
}): Promise<PluginThreadMetadataListResult>;
|
|
23467
23986
|
updatePluginMetadata(args: Omit<ThreadPluginMetadataUpdateArgs, "pluginId"> & {
|
|
23468
23987
|
pluginId?: string;
|
|
23469
23988
|
}): Promise<ThreadPluginMetadataResult>;
|
|
@@ -23792,5 +24311,12 @@ declare function cliCommand<const TOptions extends CliOptions = Record<string, n
|
|
|
23792
24311
|
*/
|
|
23793
24312
|
declare function defineCli(spec: PluginCliSpec): PluginCliRegistration;
|
|
23794
24313
|
|
|
23795
|
-
|
|
23796
|
-
|
|
24314
|
+
declare const experimental_THREAD_ACTION_GROUPS: {
|
|
24315
|
+
readonly open: "1_open";
|
|
24316
|
+
readonly organize: "2_organize";
|
|
24317
|
+
readonly settings: "3_settings";
|
|
24318
|
+
readonly lifecycle: "4_lifecycle";
|
|
24319
|
+
};
|
|
24320
|
+
|
|
24321
|
+
export { PLUGIN_CLI_OUTPUT_MAX_BYTES, PluginCliError, cliCommand, defineCli, defineRpcContract, experimental_THREAD_ACTION_GROUPS, experimental_defineHostEntry };
|
|
24322
|
+
export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalClipboardContent, ExperimentalComposerCommandRegistration, ExperimentalComposerPopupRegistration, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalVoiceInputTextareaProps, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginTargetedPanelActionOpenOptions, PluginThreadAction, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|