@opentiny/tiny-robot 0.5.2-alpha.17 → 0.5.2-alpha.18

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.
@@ -1,15 +1,16 @@
1
- import { B as a, a as b, b as u, c as r, d as l, e as n, f as t, g as B, h as o, i as d, j as i, k as g } from "../index6.js";
1
+ import { B as b, a, b as r, c as u, d as l, e as n, f as t, g as B, h as o, i as d, j as i, k as R, l as g } from "../index6.js";
2
2
  export {
3
- a as Bubble,
4
- b as BubbleList,
5
- u as BubbleProvider,
6
- r as BubbleRendererMatchPriority,
3
+ b as Bubble,
4
+ a as BubbleList,
5
+ r as BubbleProvider,
6
+ u as BubbleRendererMatchPriority,
7
7
  l as BubbleRenderers,
8
8
  n as useBubbleBoxRenderer,
9
9
  t as useBubbleContentRenderer,
10
- B as useBubbleEventFn,
11
- o as useBubbleStateChangeFn,
12
- d as useMessageContent,
13
- i as useOmitMessageFields,
10
+ B as useBubbleErrorRenderer,
11
+ o as useBubbleEventFn,
12
+ d as useBubbleStateChangeFn,
13
+ i as useMessageContent,
14
+ R as useOmitMessageFields,
14
15
  g as useToolCall
15
16
  };
package/dist/index.d.ts CHANGED
@@ -2287,6 +2287,17 @@ export declare type BubbleContentRendererProps<T extends ChatMessageContent = Ch
2287
2287
  contentIndex: number;
2288
2288
  };
2289
2289
 
2290
+ export declare interface BubbleErrorInfo {
2291
+ message: string;
2292
+ name?: string;
2293
+ code?: string | number;
2294
+ details?: unknown;
2295
+ }
2296
+
2297
+ export declare interface BubbleErrorRendererProps {
2298
+ message: BubbleMessage;
2299
+ }
2300
+
2290
2301
  export declare type BubbleEvent = {
2291
2302
  name: 'state:update';
2292
2303
  payload: {
@@ -2413,6 +2424,7 @@ export declare interface BubbleProviderProps {
2413
2424
  contentAttributes?: BubbleContentAttributesConfig;
2414
2425
  fallbackBoxRenderer?: Component<BubbleBoxRendererProps>;
2415
2426
  fallbackContentRenderer?: Component<BubbleContentRendererProps>;
2427
+ errorRenderer?: Component<BubbleErrorRendererProps>;
2416
2428
  store?: Record<string, unknown>;
2417
2429
  }
2418
2430
 
@@ -2451,6 +2463,7 @@ export declare const BubbleRenderers: {
2451
2463
  default?(_: {}): any;
2452
2464
  };
2453
2465
  });
2466
+ Error: DefineComponent<BubbleErrorRendererProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleErrorRendererProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2454
2467
  Image: DefineComponent< {
2455
2468
  message: BubbleMessage<ChatMessageContentItem[], Record<string, unknown>>;
2456
2469
  contentIndex: number;
@@ -5777,6 +5790,8 @@ export declare function useBubbleContentRenderer(message: MaybeRefOrGetter<Bubbl
5777
5790
  attributes?: BubbleAttributes;
5778
5791
  }>;
5779
5792
 
5793
+ export declare function useBubbleErrorRenderer(): ComputedRef<Component<BubbleErrorRendererProps>>;
5794
+
5780
5795
  export declare function useBubbleEventFn(): (event: BubbleEvent) => void;
5781
5796
 
5782
5797
  export declare function useBubbleStateChangeFn(): (key: string, value: unknown) => void;
@@ -6083,23 +6098,15 @@ export { }
6083
6098
  */
6084
6099
  declare module '@tiptap/core' {
6085
6100
  interface Commands<ReturnType> {
6086
- template: {
6087
- /**
6088
- * 设置模板数据(批量)
6089
- */
6090
- setTemplateData: (items: TemplateItem[]) => ReturnType;
6091
- /**
6092
- * 插入模板块
6093
- */
6094
- insertTemplate: (attrs: Partial<TemplateAttrs>) => ReturnType;
6101
+ mention: {
6095
6102
  /**
6096
- * 聚焦到第一个模板块
6103
+ * 插入 mention 节点
6097
6104
  */
6098
- focusFirstTemplate: () => ReturnType;
6105
+ insertMention: (attrs: Partial<MentionAttrs>) => ReturnType;
6099
6106
  /**
6100
- * 插入选择器
6107
+ * 删除 mention 节点
6101
6108
  */
6102
- insertTemplateSelect: (attrs: Partial<TemplateSelectAttrs>) => ReturnType;
6109
+ deleteMention: (id: string) => ReturnType;
6103
6110
  };
6104
6111
  }
6105
6112
  }
@@ -6112,15 +6119,23 @@ declare module '@tiptap/core' {
6112
6119
  */
6113
6120
  declare module '@tiptap/core' {
6114
6121
  interface Commands<ReturnType> {
6115
- mention: {
6122
+ template: {
6116
6123
  /**
6117
- * 插入 mention 节点
6124
+ * 设置模板数据(批量)
6118
6125
  */
6119
- insertMention: (attrs: Partial<MentionAttrs>) => ReturnType;
6126
+ setTemplateData: (items: TemplateItem[]) => ReturnType;
6120
6127
  /**
6121
- * 删除 mention 节点
6128
+ * 插入模板块
6122
6129
  */
6123
- deleteMention: (id: string) => ReturnType;
6130
+ insertTemplate: (attrs: Partial<TemplateAttrs>) => ReturnType;
6131
+ /**
6132
+ * 聚焦到第一个模板块
6133
+ */
6134
+ focusFirstTemplate: () => ReturnType;
6135
+ /**
6136
+ * 插入选择器
6137
+ */
6138
+ insertTemplateSelect: (attrs: Partial<TemplateSelectAttrs>) => ReturnType;
6124
6139
  };
6125
6140
  }
6126
6141
  }
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import S from "./attachments/index.js";
2
- import { B, a as E, b as F } from "./index6.js";
3
- import { c as He, d as $e, u as We, e as we, f as ke, g as Ne, h as Ve, i as Ge, j as Ie, k as Ue } from "./index6.js";
4
- import b from "./container/index.js";
2
+ import { B, a as E, b } from "./index6.js";
3
+ import { c as He, d as $e, u as We, e as we, f as ke, g as Ne, h as Ve, i as Ge, j as Ie, k as Ue, l as Ke } from "./index6.js";
4
+ import F from "./container/index.js";
5
5
  import C from "./anchor/index.js";
6
6
  import z from "./conversations/index.js";
7
7
  import y from "./drag-overlay/index.js";
8
8
  import L from "./dropdown-menu/index.js";
9
9
  import P from "./feedback/index.js";
10
10
  import { H as A } from "./index7.js";
11
- import { u as Xe } from "./index7.js";
11
+ import { u as Ye } from "./index7.js";
12
12
  import M from "./icon-button/index.js";
13
13
  import { Layout as O, LayoutProxyScrollbar as R, LayoutAsideToggle as j } from "./layout/index.js";
14
14
  import H from "./model-selector/index.js";
@@ -18,14 +18,14 @@ import k from "./sender-compat/index.js";
18
18
  import N, { SuggestionPillButton as V } from "./suggestion-pills/index.js";
19
19
  import G from "./suggestion-popover/index.js";
20
20
  import I from "./theme-provider/index.js";
21
- import { useTheme as qe } from "./theme-provider/index.js";
21
+ import { useTheme as Je } from "./theme-provider/index.js";
22
22
  import U from "./welcome/index.js";
23
23
  import K from "./mcp-server-picker/index.js";
24
24
  import X from "./mcp-add-form/index.js";
25
25
  import { ExtensionManager as Y, ExtensionCard as q, ExtensionCardGrid as J } from "./extension-manager/index.js";
26
- import { u as Qe } from "./useSenderContentRegistration.js";
26
+ import { u as Ze } from "./useSenderContentRegistration.js";
27
27
  import { A as Q, S as Z, _ as ee, W as re, D as oe } from "./index2.js";
28
- import { a as er, u as rr } from "./index2.js";
28
+ import { a as rr, u as or } from "./index2.js";
29
29
  import { _ as te, V as ae } from "./index3.js";
30
30
  var u = /* @__PURE__ */ ((e) => (e.FileTypeNotAllowed = "file-type-not-allowed", e.FileSizeExceeded = "file-size-exceeded", e.FileCountExceeded = "file-count-exceeded", e))(u || {});
31
31
  function ne(e, r) {
@@ -156,8 +156,8 @@ const Me = {
156
156
  S,
157
157
  B,
158
158
  E,
159
- F,
160
159
  b,
160
+ F,
161
161
  C,
162
162
  z,
163
163
  y,
@@ -204,11 +204,11 @@ export {
204
204
  S as Attachments,
205
205
  B as Bubble,
206
206
  E as BubbleList,
207
- F as BubbleProvider,
207
+ b as BubbleProvider,
208
208
  He as BubbleRendererMatchPriority,
209
209
  $e as BubbleRenderers,
210
210
  ee as ClearButton,
211
- b as Container,
211
+ F as Container,
212
212
  z as Conversations,
213
213
  oe as DefaultActionButtons,
214
214
  y as DragOverlay,
@@ -227,7 +227,7 @@ export {
227
227
  H as ModelSelector,
228
228
  $ as Prompt,
229
229
  W as Prompts,
230
- er as SENDER_CONTEXT_KEY,
230
+ rr as SENDER_CONTEXT_KEY,
231
231
  w as Sender,
232
232
  k as SenderCompat,
233
233
  Z as SubmitButton,
@@ -240,9 +240,9 @@ export {
240
240
  S as TrAttachments,
241
241
  B as TrBubble,
242
242
  E as TrBubbleList,
243
- F as TrBubbleProvider,
243
+ b as TrBubbleProvider,
244
244
  ee as TrClearButton,
245
- b as TrContainer,
245
+ F as TrContainer,
246
246
  z as TrConversations,
247
247
  oe as TrDefaultActionButtons,
248
248
  y as TrDragOverlay,
@@ -280,14 +280,15 @@ export {
280
280
  We as useAutoScroll,
281
281
  we as useBubbleBoxRenderer,
282
282
  ke as useBubbleContentRenderer,
283
- Ne as useBubbleEventFn,
284
- Ve as useBubbleStateChangeFn,
285
- Ge as useMessageContent,
286
- Ie as useOmitMessageFields,
287
- Qe as useSenderContentRegistration,
288
- rr as useSenderContext,
289
- qe as useTheme,
290
- Ue as useToolCall,
291
- Xe as useTouchDevice,
283
+ Ne as useBubbleErrorRenderer,
284
+ Ve as useBubbleEventFn,
285
+ Ge as useBubbleStateChangeFn,
286
+ Ie as useMessageContent,
287
+ Ue as useOmitMessageFields,
288
+ Ze as useSenderContentRegistration,
289
+ or as useSenderContext,
290
+ Je as useTheme,
291
+ Ke as useToolCall,
292
+ Ye as useTouchDevice,
292
293
  Me as vDropzone
293
294
  };