@get-bb/plugin-sdk 0.6.16 → 0.6.23
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 +718 -20
- package/bundled-types/bb-plugin-sdk-internal-composer-handle.d.ts +24 -16
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +8 -0
- 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.d.ts +716 -19
- package/dist/app.js +4 -0
- package/dist/host.js +5 -0
- package/dist/internal/composer-handle.js +19 -7
- package/dist/provider-bridge-acp.js +114 -28
- package/dist/provider-bridge-testing.js +310 -248
- package/dist/provider-bridge-worker-entry.mjs +5 -0
- package/dist/provider-bridge.js +9 -0
- package/dist/testing/app.js +35 -8
- package/package.json +1 -1
package/dist/testing/app.js
CHANGED
|
@@ -113,14 +113,26 @@ var mentionSchema = z.discriminatedUnion("kind", [
|
|
|
113
113
|
icon: z.string().nullable().optional()
|
|
114
114
|
})
|
|
115
115
|
]);
|
|
116
|
+
var attachmentFields = {
|
|
117
|
+
type: z.enum(["localImage", "localFile"]),
|
|
118
|
+
path: z.string().min(1),
|
|
119
|
+
name: z.string(),
|
|
120
|
+
mimeType: z.string().optional(),
|
|
121
|
+
sizeBytes: z.number().nonnegative().optional()
|
|
122
|
+
};
|
|
116
123
|
var attachmentsSchema = z.array(
|
|
117
|
-
z.
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
+
z.union([
|
|
125
|
+
z.object({
|
|
126
|
+
...attachmentFields,
|
|
127
|
+
hostId: z.string().min(1),
|
|
128
|
+
sourceProjectId: z.undefined().optional()
|
|
129
|
+
}),
|
|
130
|
+
z.object({
|
|
131
|
+
...attachmentFields,
|
|
132
|
+
sourceProjectId: z.string().min(1).optional(),
|
|
133
|
+
hostId: z.undefined().optional()
|
|
134
|
+
})
|
|
135
|
+
])
|
|
124
136
|
);
|
|
125
137
|
var replacementSchema = z.object({
|
|
126
138
|
text: z.string(),
|
|
@@ -1781,7 +1793,8 @@ function TestThreadChat({
|
|
|
1781
1793
|
threadId,
|
|
1782
1794
|
role: action.roles?.[0] ?? "assistant",
|
|
1783
1795
|
text: "test message text",
|
|
1784
|
-
sourceSeqEnd: 1
|
|
1796
|
+
sourceSeqEnd: 1,
|
|
1797
|
+
experimental_messageSeq: 1
|
|
1785
1798
|
});
|
|
1786
1799
|
},
|
|
1787
1800
|
children: action.title
|
|
@@ -2094,6 +2107,19 @@ function TestPermissionModePicker({
|
|
|
2094
2107
|
}
|
|
2095
2108
|
);
|
|
2096
2109
|
}
|
|
2110
|
+
function TestVoiceInputTextarea({
|
|
2111
|
+
onValueChange,
|
|
2112
|
+
onVoiceInputActiveChange: _onVoiceInputActiveChange,
|
|
2113
|
+
...props
|
|
2114
|
+
}) {
|
|
2115
|
+
return /* @__PURE__ */ jsx(
|
|
2116
|
+
"textarea",
|
|
2117
|
+
{
|
|
2118
|
+
...props,
|
|
2119
|
+
onChange: (event) => onValueChange(event.target.value)
|
|
2120
|
+
}
|
|
2121
|
+
);
|
|
2122
|
+
}
|
|
2097
2123
|
function TestSourceCode({
|
|
2098
2124
|
content,
|
|
2099
2125
|
path,
|
|
@@ -2250,6 +2276,7 @@ var testPluginSdkApp = {
|
|
|
2250
2276
|
),
|
|
2251
2277
|
UrlLink: TestUrlLink,
|
|
2252
2278
|
experimental_NewThreadComposer: TestNewThreadComposer,
|
|
2279
|
+
experimental_VoiceInputTextarea: TestVoiceInputTextarea,
|
|
2253
2280
|
experimental_ProviderModelPicker: TestProviderModelPicker,
|
|
2254
2281
|
experimental_PermissionModePicker: TestPermissionModePicker,
|
|
2255
2282
|
experimental_BranchPicker: TestBranchPicker,
|