@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.
@@ -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.object({
118
- type: z.enum(["localImage", "localFile"]),
119
- path: z.string().min(1),
120
- name: z.string(),
121
- mimeType: z.string().optional(),
122
- sizeBytes: z.number().nonnegative()
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@get-bb/plugin-sdk",
3
- "version": "0.6.16",
3
+ "version": "0.6.23",
4
4
  "homepage": "https://github.com/get-bb/bb#readme",
5
5
  "bugs": {
6
6
  "url": "https://github.com/get-bb/bb/issues"