@blueking/chat-x 0.0.1-beta.4 → 0.0.1-beta.5

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.
Files changed (86) hide show
  1. package/dist/ag-ui/types/constants.d.ts +10 -6
  2. package/dist/ag-ui/types/contents.d.ts +25 -43
  3. package/dist/ag-ui/types/messages.d.ts +111 -25
  4. package/dist/common/constants.d.ts +10 -0
  5. package/dist/common/index.d.ts +1 -0
  6. package/dist/common/markdown.d.ts +5 -0
  7. package/dist/components/ai-buttons/scroll-btn/scroll-btn.vue.d.ts +19 -0
  8. package/dist/components/{message-tools → ai-buttons/tool-btn}/tool-btn.vue.d.ts +3 -3
  9. package/dist/components/ai-shortcut/{shortcut-btn.vue.d.ts → shortcut-btn/shortcut-btn.vue.d.ts} +4 -2
  10. package/dist/components/ai-shortcut/{shortcut-btns.vue.d.ts → shortcut-btns/shortcut-btns.vue.d.ts} +1 -1
  11. package/dist/components/ai-shortcut/{shortcut-render.vue.d.ts → shortcut-render/shortcut-render.vue.d.ts} +3 -3
  12. package/dist/components/animation-text/animation-text.vue.d.ts +6 -0
  13. package/dist/components/chat-content/cite-content/cite-content.vue.d.ts +7 -0
  14. package/dist/components/chat-content/common-error-content/common-error-content.vue.d.ts +6 -0
  15. package/dist/components/chat-content/{content-render.vue.d.ts → content-render/content-render.vue.d.ts} +4 -2
  16. package/dist/components/chat-content/key-value-content/key-value-content.vue.d.ts +10 -0
  17. package/dist/components/chat-content/markdown-content/markdown-content.vue.d.ts +11 -0
  18. package/dist/components/chat-content/reference-content/reference-content.vue.d.ts +7 -0
  19. package/dist/components/chat-content/text-content/text-content.vue.d.ts +6 -0
  20. package/dist/components/chat-content/vnode-renderer.d.ts +27 -0
  21. package/dist/components/chat-content/x-content/x-content.vue.d.ts +17 -0
  22. package/dist/components/chat-input/ai-slash-input/ai-slash-input.vue.d.ts +3 -1
  23. package/dist/components/chat-input/ai-slash-input/{ai-slash-menu.vue.d.ts → ai-slash-menu/ai-slash-menu.vue.d.ts} +1 -1
  24. package/dist/components/chat-input/chat-input.vue.d.ts +23 -6
  25. package/dist/components/chat-input/input-attachment/input-attachment.vue.d.ts +5 -3
  26. package/dist/components/{chat-content/think-content.vue.d.ts → chat-message/activity-message/activity-message.vue.d.ts} +2 -2
  27. package/dist/components/chat-message/assistant-message/assistant-message.vue.d.ts +16 -0
  28. package/dist/components/chat-message/flow-message/flow-detail.vue.d.ts +11 -0
  29. package/dist/components/chat-message/flow-message/flow-message.vue.d.ts +4 -0
  30. package/dist/components/chat-message/flow-message/flow-node-group.vue.d.ts +12 -0
  31. package/dist/components/chat-message/flow-message/flow-node-item.vue.d.ts +11 -0
  32. package/dist/components/chat-message/flow-message/flow-status-icons.d.ts +36 -0
  33. package/dist/components/chat-message/flow-message/index.d.ts +6 -0
  34. package/dist/components/chat-message/flow-message/mock.d.ts +13 -0
  35. package/dist/components/chat-message/flow-message/types.d.ts +132 -0
  36. package/dist/components/chat-message/info-message/info-message.vue.d.ts +4 -0
  37. package/dist/components/chat-message/message-container/message-container.vue.d.ts +11484 -0
  38. package/dist/components/chat-message/message-render/message-render.vue.d.ts +21 -0
  39. package/dist/components/{chat-content/reference-content.vue.d.ts → chat-message/reasoning-message/reasoning-message.vue.d.ts} +2 -2
  40. package/dist/components/chat-message/tool-message/tool-message.vue.d.ts +4 -0
  41. package/dist/components/chat-message/user-message/user-message.vue.d.ts +6 -0
  42. package/dist/components/index.d.ts +8 -6
  43. package/dist/components/markdown-token/code-content/code-content.vue.d.ts +15 -0
  44. package/dist/components/markdown-token/image-content/image-content.vue.d.ts +7 -0
  45. package/dist/components/markdown-token/index.d.ts +5 -0
  46. package/dist/components/markdown-token/latex-content/latex-content.vue.d.ts +8 -0
  47. package/dist/components/markdown-token/mermaid-content/mermaid-content.vue.d.ts +15 -0
  48. package/dist/components/message-tools/message-tools.vue.d.ts +14 -3
  49. package/dist/components/message-tools/user-feedback/user-feedback.vue.d.ts +13 -0
  50. package/dist/components/tool-call/desc-panel/desc-panel.vue.d.ts +7 -0
  51. package/dist/components/tool-call/toolcall-render/toolcall-render.vue.d.ts +10 -0
  52. package/dist/composables/index.d.ts +4 -0
  53. package/dist/composables/use-animation-text.d.ts +16 -0
  54. package/dist/composables/use-clipboard.d.ts +3 -0
  55. package/dist/composables/use-container-scroll.d.ts +15 -0
  56. package/dist/composables/use-observer-visible-list.d.ts +2 -1
  57. package/dist/composables/use-parent-scrolling.d.ts +16 -0
  58. package/dist/directives/overflow-tips.d.ts +2 -2
  59. package/dist/icons/content.d.ts +6 -0
  60. package/dist/icons/messages.d.ts +6 -0
  61. package/dist/icons/shortcuts.d.ts +6 -0
  62. package/dist/icons/tools.d.ts +6 -0
  63. package/dist/index.css +1 -1
  64. package/dist/index.d.ts +1 -0
  65. package/dist/index.js +5306 -2903
  66. package/dist/index.js.map +1 -1
  67. package/dist/lang/lang.d.ts +54 -1
  68. package/dist/plugins/index.d.ts +3 -0
  69. package/dist/plugins/markdown-animation-attrs.d.ts +6 -0
  70. package/dist/plugins/markdown-latex.d.ts +19 -0
  71. package/dist/plugins/markdown-mermaid.d.ts +7 -0
  72. package/dist/types/shortcut.d.ts +29 -5
  73. package/dist/utils/index.d.ts +1 -0
  74. package/dist/utils/markdown-completer.d.ts +37 -0
  75. package/dist/utils/stream-markdown-completer.d.ts +17 -0
  76. package/dist/utils/tokens-to-vnodes.d.ts +28 -0
  77. package/dist/utils/utils.d.ts +6 -0
  78. package/package.json +31 -7
  79. package/dist/components/chat-content/common-error-content.vue.d.ts +0 -18
  80. package/dist/components/chat-content/markdown-content.vue.d.ts +0 -5
  81. package/dist/components/chat-content/text-content.vue.d.ts +0 -4
  82. package/dist/components/chat-message/assistant-message.vue.d.ts +0 -18
  83. package/dist/components/chat-message/info-message.vue.d.ts +0 -4
  84. package/dist/components/chat-message/message-render.vue.d.ts +0 -16
  85. package/dist/components/chat-message/user-message.vue.d.ts +0 -4
  86. /package/dist/components/chat-input/ai-slash-input/{ai-prompt-list.vue.d.ts → ai-prompt-list/ai-prompt-list.vue.d.ts} +0 -0
@@ -1,13 +1,14 @@
1
1
  export declare enum MessageContentType {
2
- Image = "image",
3
- Markdown = "markdown",
4
- ReferenceDocument = "reference_document",
5
- Text = "text",
6
- Thinking = "thinking",
7
- ToolCall = "tool_call"
2
+ Binary = "binary",
3
+ Function = "function",
4
+ KeyValue = "key-value",
5
+ Other = "other",
6
+ Text = "text"
8
7
  }
9
8
  export declare enum MessageRole {
9
+ Activity = "activity",
10
10
  Assistant = "assistant",
11
+ Developer = "developer",
11
12
  Guide = "guide",
12
13
  Hidden = "hidden",
13
14
  HiddenAssistant = "hidden-assistant",
@@ -17,16 +18,19 @@ export declare enum MessageRole {
17
18
  Info = "info",
18
19
  Pause = "pause",
19
20
  Placeholder = "placeholder",
21
+ Reasoning = "reasoning",
20
22
  System = "system",
21
23
  TemplateAssistant = "template-assistant",
22
24
  TemplateGuide = "template-guide",
23
25
  TemplateHidden = "template-hidden",
24
26
  TemplateSystem = "template-system",
25
27
  TemplateUser = "template-user",
28
+ Tool = "tool",
26
29
  User = "user"
27
30
  }
28
31
  export declare enum MessageStatus {
29
32
  Complete = "complete",
33
+ Disabled = "disabled",
30
34
  Error = "error",
31
35
  Pending = "pending",
32
36
  Stop = "stop",
@@ -1,47 +1,29 @@
1
- import { type MessageContentType, type MessageStatus } from './constants';
2
- declare global {
3
- interface AIBluekingCustomContentMap {
4
- }
1
+ import { type MessageContentType } from './constants';
2
+ export interface BinaryInputContent {
3
+ data?: string;
4
+ filename?: string;
5
+ id?: string;
6
+ mimeType: string;
7
+ type: MessageContentType.Binary;
8
+ url?: string;
5
9
  }
6
- export type ContentMap = AIBluekingCustomContentMap & {
7
- [MessageContentType.Image]: ImageMessageContent;
8
- [MessageContentType.Markdown]: MarkdownMessageContent;
9
- [MessageContentType.ReferenceDocument]: ReferenceDocumentMessageContent;
10
- [MessageContentType.Text]: TextMessageContent;
11
- [MessageContentType.Thinking]: ThinkingMessageContent;
12
- [MessageContentType.ToolCall]: ToolCallMessageContent;
10
+ export type ContentMap = AIBluekingContentMap & {
11
+ [MessageContentType.Binary]: BinaryInputContent;
12
+ [MessageContentType.Function]: string;
13
+ [MessageContentType.KeyValue]: {
14
+ key: string;
15
+ value: string;
16
+ }[];
17
+ [MessageContentType.Other]: any;
18
+ [MessageContentType.Text]: string;
13
19
  };
14
20
  export type ContentType = keyof ContentMap;
15
- export interface IBaseMessageContent<Type extends ContentType, Data> {
16
- data: Data;
17
- status?: MessageStatus;
18
- type: Type;
19
- }
20
- export type ImageMessageContent = IBaseMessageContent<MessageContentType.Image, {
21
- height?: number;
22
- url: string;
23
- width?: number;
24
- }>;
25
- export type MarkdownMessageContent = IBaseMessageContent<MessageContentType.Markdown, string>;
26
- export type ReferenceDocumentMessageContent = IBaseMessageContent<MessageContentType.ReferenceDocument, {
27
- icon?: string;
28
- originFileUrl?: string;
29
- title: string;
30
- url?: string;
31
- }[]>;
32
- export type TextMessageContent = IBaseMessageContent<MessageContentType.Text, {
21
+ export type InputContent = BinaryInputContent | TextInputContent;
22
+ export type TextInputContent = {
33
23
  text: string;
34
- }>;
35
- export type ThinkingMessageContent = IBaseMessageContent<MessageContentType.Thinking, {
36
- duration?: number;
37
- text: string;
38
- title?: string;
39
- }>;
40
- export type ToolCallMessageContent = IBaseMessageContent<MessageContentType.ToolCall, {
41
- args?: string;
42
- chunk?: string;
43
- parentMessageId?: string;
44
- result?: string;
45
- toolCallId: string;
46
- toolCallName: string;
47
- }>;
24
+ type: MessageContentType.Text;
25
+ };
26
+ declare global {
27
+ interface AIBluekingContentMap {
28
+ }
29
+ }
@@ -1,27 +1,113 @@
1
- import type { MessageRole, MessageStatus } from './constants';
2
- import type { ContentMap, ContentType, TextMessageContent } from './contents';
3
- export type AssistantMessage = IBaseMessage<MessageRole.Assistant, ContentMap[ContentType]>;
4
- export type GuideMessage = IBaseMessage<MessageRole.Guide, TextMessageContent>;
5
- export type HiddenAssistantMessage = IBaseMessage<MessageRole.HiddenAssistant, TextMessageContent>;
6
- export type HiddenGuideMessage = IBaseMessage<MessageRole.HiddenGuide, TextMessageContent>;
7
- export type HiddenMessage = IBaseMessage<MessageRole.Hidden, TextMessageContent>;
8
- export type HiddenSystemMessage = IBaseMessage<MessageRole.HiddenSystem, TextMessageContent>;
9
- export type HiddenUserMessage = IBaseMessage<MessageRole.HiddenUser, TextMessageContent>;
10
- export interface IBaseMessage<Role extends MessageRole, Content> {
11
- content: Content[];
1
+ import type { OldShortcut, Shortcut } from '../../types';
2
+ import type { MessageContentType, MessageRole, MessageStatus } from './constants';
3
+ import type { InputContent } from './contents';
4
+ export interface ActivityMessage extends BaseMessage<MessageRole.Activity, Record<string, unknown>[]> {
5
+ activityType: string;
6
+ }
7
+ export interface AssistantMessage extends BaseMessage<MessageRole.Assistant> {
8
+ toolCalls?: ToolCall[];
9
+ }
10
+ declare global {
11
+ interface AIBluekingMessageMap {
12
+ }
13
+ }
14
+ export interface BaseMessage<T extends MessageType, C = string> {
15
+ content: C;
16
+ id: string;
17
+ messageId: number | string;
18
+ name?: string;
19
+ role: T;
20
+ status: MessageStatus;
21
+ property?: {
22
+ extra?: {
23
+ cite: {
24
+ data: {
25
+ key: string;
26
+ value: string;
27
+ }[];
28
+ title: string;
29
+ type: 'structured';
30
+ } | string;
31
+ command: string;
32
+ context: Partial<{
33
+ [key: string]: string;
34
+ __key: string;
35
+ __label: string;
36
+ __value: string;
37
+ context_type: 'checkbox' | 'input' | 'number' | 'radioGroup' | 'select' | 'switcher' | 'text' | 'textarea';
38
+ } & Partial<OldShortcut>>[];
39
+ shortcut?: Partial<Shortcut>;
40
+ };
41
+ };
42
+ }
43
+ export interface Context {
44
+ description: string;
45
+ value: string;
46
+ }
47
+ export type DeveloperMessage = BaseMessage<MessageRole.Developer, string>;
48
+ export type FunctionCall = {
49
+ arguments: string;
50
+ description?: string;
51
+ mcpName?: string;
52
+ name: string;
53
+ };
54
+ export type GuideMessage = BaseMessage<MessageRole.Guide, string>;
55
+ export type HiddenAssistantMessage = BaseMessage<MessageRole.HiddenAssistant, string>;
56
+ export type HiddenGuideMessage = BaseMessage<MessageRole.HiddenGuide, string>;
57
+ export type HiddenMessage = BaseMessage<MessageRole.Hidden, string>;
58
+ export type HiddenSystemMessage = BaseMessage<MessageRole.HiddenSystem, string>;
59
+ export type HiddenUserMessage = BaseMessage<MessageRole.HiddenUser, string>;
60
+ export type InfoMessage = BaseMessage<MessageRole.Info, string>;
61
+ export type Message = MessageMap[MessageType];
62
+ export type MessageMap = AIBluekingMessageMap & {
63
+ [MessageRole.Activity]: ActivityMessage;
64
+ [MessageRole.Assistant]: AssistantMessage;
65
+ [MessageRole.Developer]: DeveloperMessage;
66
+ [MessageRole.Guide]: GuideMessage;
67
+ [MessageRole.Hidden]: HiddenMessage;
68
+ [MessageRole.HiddenAssistant]: HiddenAssistantMessage;
69
+ [MessageRole.HiddenGuide]: HiddenGuideMessage;
70
+ [MessageRole.HiddenSystem]: HiddenSystemMessage;
71
+ [MessageRole.HiddenUser]: HiddenUserMessage;
72
+ [MessageRole.Info]: InfoMessage;
73
+ [MessageRole.Pause]: PauseMessage;
74
+ [MessageRole.Placeholder]: PlaceholderMessage;
75
+ [MessageRole.Reasoning]: ReasoningMessage;
76
+ [MessageRole.System]: SystemMessage;
77
+ [MessageRole.TemplateAssistant]: TemplateAssistantMessage;
78
+ [MessageRole.TemplateGuide]: TemplateGuideMessage;
79
+ [MessageRole.TemplateHidden]: TemplateHiddenMessage;
80
+ [MessageRole.TemplateSystem]: TemplateSystemMessage;
81
+ [MessageRole.TemplateUser]: TemplateUserMessage;
82
+ [MessageRole.Tool]: ToolMessage;
83
+ [MessageRole.User]: UserMessage;
84
+ };
85
+ export type MessageType = keyof MessageMap;
86
+ export type PauseMessage = BaseMessage<MessageRole.Pause, string>;
87
+ export type PlaceholderMessage = BaseMessage<MessageRole.Placeholder, string>;
88
+ export interface ReasoningMessage extends BaseMessage<MessageRole.Reasoning, string[]> {
89
+ duration?: number;
90
+ }
91
+ export type SystemMessage = BaseMessage<MessageRole.System, string>;
92
+ export type TemplateAssistantMessage = BaseMessage<MessageRole.TemplateAssistant, string>;
93
+ export type TemplateGuideMessage = BaseMessage<MessageRole.TemplateGuide, string>;
94
+ export type TemplateHiddenMessage = BaseMessage<MessageRole.TemplateHidden, string>;
95
+ export type TemplateSystemMessage = BaseMessage<MessageRole.TemplateSystem, string>;
96
+ export type TemplateUserMessage = BaseMessage<MessageRole.TemplateUser, string>;
97
+ export type Tool = {
98
+ description: string;
99
+ name: string;
100
+ parameters: unknown;
101
+ };
102
+ export type ToolCall = {
103
+ function: FunctionCall;
12
104
  id: string;
13
- property?: Record<string, unknown>;
14
- role: Role;
15
- status?: MessageStatus;
105
+ toolMessage?: Partial<ToolMessage>;
106
+ type: MessageContentType.Function;
107
+ };
108
+ export interface ToolMessage extends BaseMessage<MessageRole.Tool, string> {
109
+ duration: number;
110
+ error?: string;
111
+ toolCallId: string;
16
112
  }
17
- export type InfoMessage = IBaseMessage<MessageRole.Info, TextMessageContent>;
18
- export type Message = AssistantMessage | GuideMessage | HiddenAssistantMessage | HiddenGuideMessage | HiddenMessage | HiddenSystemMessage | HiddenUserMessage | InfoMessage | PauseMessage | PlaceholderMessage | SystemMessage | TemplateAssistantMessage | TemplateGuideMessage | TemplateHiddenMessage | TemplateSystemMessage | TemplateUserMessage | UserMessage;
19
- export type PauseMessage = IBaseMessage<MessageRole.Pause, TextMessageContent>;
20
- export type PlaceholderMessage = IBaseMessage<MessageRole.Placeholder, TextMessageContent>;
21
- export type SystemMessage = IBaseMessage<MessageRole.System, TextMessageContent>;
22
- export type TemplateAssistantMessage = IBaseMessage<MessageRole.TemplateAssistant, TextMessageContent>;
23
- export type TemplateGuideMessage = IBaseMessage<MessageRole.TemplateGuide, TextMessageContent>;
24
- export type TemplateHiddenMessage = IBaseMessage<MessageRole.TemplateHidden, TextMessageContent>;
25
- export type TemplateSystemMessage = IBaseMessage<MessageRole.TemplateSystem, TextMessageContent>;
26
- export type TemplateUserMessage = IBaseMessage<MessageRole.TemplateUser, TextMessageContent>;
27
- export type UserMessage = IBaseMessage<MessageRole.User, TextMessageContent>;
113
+ export type UserMessage = BaseMessage<MessageRole.User, InputContent[] | string>;
@@ -1,3 +1,4 @@
1
+ import type { IToolBtn } from '../types';
1
2
  /**
2
3
  * 全局 chat-x 组件 Z-Index
3
4
  */
@@ -18,3 +19,12 @@ export declare const SHORTCUT_MENU_Z_INDEX: number;
18
19
  * 划选弹窗 Z-Index
19
20
  */
20
21
  export declare const SELECTION_Z_INDEX: number;
22
+ /**
23
+ * 消息工具
24
+ */
25
+ export declare const CONST_MESSAGE_TOOLS: IToolBtn[];
26
+ export declare const CONST_USER_MESSAGE_TOOLS: IToolBtn[];
27
+ /**
28
+ * 更新工具
29
+ */
30
+ export declare const CONST_UPDATE_TOOLS: IToolBtn[];
@@ -1,4 +1,5 @@
1
1
  export * from './constants';
2
2
  export * from './icon';
3
3
  export * from './lang';
4
+ export * from './markdown';
4
5
  export * from './shortcut';
@@ -0,0 +1,5 @@
1
+ export declare const MarkdownLanguageMap: {
2
+ js: string;
3
+ ts: string;
4
+ py: string;
5
+ };
@@ -0,0 +1,19 @@
1
+ type __VLS_Props = {
2
+ disabled?: boolean;
3
+ title?: string;
4
+ };
5
+ declare var __VLS_1: {}, __VLS_3: {};
6
+ type __VLS_Slots = {} & {
7
+ icon?: (props: typeof __VLS_1) => any;
8
+ } & {
9
+ title?: (props: typeof __VLS_3) => any;
10
+ };
11
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -1,8 +1,8 @@
1
- import type { IToolBtn } from '../../types';
1
+ import type { IToolBtn } from '../../../types';
2
2
  declare const __VLS_export: import("vue").DefineComponent<IToolBtn, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
- click: (data: IToolBtn) => any;
3
+ click: (data: IToolBtn, event: MouseEvent) => any;
4
4
  }, string, import("vue").PublicProps, Readonly<IToolBtn> & Readonly<{
5
- onClick?: ((data: IToolBtn) => any) | undefined;
5
+ onClick?: ((data: IToolBtn, event: MouseEvent) => any) | undefined;
6
6
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
7
  declare const _default: typeof __VLS_export;
8
8
  export default _default;
@@ -1,11 +1,13 @@
1
- import type { Shortcut } from '../../types';
1
+ import type { Shortcut } from '../../../types';
2
2
  type __VLS_Props = {
3
3
  mode?: 'btn' | 'menu';
4
4
  shortcut?: Shortcut;
5
5
  };
6
- declare var __VLS_1: {};
6
+ declare var __VLS_1: {}, __VLS_15: {};
7
7
  type __VLS_Slots = {} & {
8
8
  default?: (props: typeof __VLS_1) => any;
9
+ } & {
10
+ append?: (props: typeof __VLS_15) => any;
9
11
  };
10
12
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
11
13
  readonly $el: HTMLElement | null;
@@ -1,4 +1,4 @@
1
- import type { Shortcut } from '../../types';
1
+ import type { Shortcut } from '../../../types';
2
2
  import 'tippy.js/dist/tippy.css';
3
3
  type __VLS_Props = {
4
4
  shortcuts: Shortcut[];
@@ -1,8 +1,8 @@
1
- import type { Shortcut } from '../../types';
2
- declare const __VLS_export: import("vue").DefineComponent<Shortcut, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
1
+ import type { Shortcut } from '../../../types';
2
+ declare const __VLS_export: import("vue").DefineComponent<Partial<Shortcut>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
3
  close: () => any;
4
4
  submit: (formModel: Record<string, unknown>) => any;
5
- }, string, import("vue").PublicProps, Readonly<Shortcut> & Readonly<{
5
+ }, string, import("vue").PublicProps, Readonly<Partial<Shortcut>> & Readonly<{
6
6
  onClose?: (() => any) | undefined;
7
7
  onSubmit?: ((formModel: Record<string, unknown>) => any) | undefined;
8
8
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ text: string;
3
+ };
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ content: string;
3
+ onClose?: (content: string) => void;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ content: string;
3
+ };
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
@@ -1,8 +1,10 @@
1
- import type { ContentMap, ContentType } from '../../ag-ui/types/contents';
1
+ import { MessageStatus } from '../../../ag-ui/types';
2
+ import type { ContentMap, ContentType } from '../../../ag-ui/types/contents';
2
3
  declare const __VLS_export: <T extends ContentType>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
4
  props: __VLS_PrettifyLocal<{
4
5
  content: ContentMap[T];
5
- type: T;
6
+ status?: MessageStatus;
7
+ type?: T;
6
8
  }> & import("vue").PublicProps & (typeof globalThis extends {
7
9
  __VLS_PROPS_FALLBACK: infer P;
8
10
  } ? P : {});
@@ -0,0 +1,10 @@
1
+ type __VLS_Props = {
2
+ content: {
3
+ key: string;
4
+ value: string;
5
+ }[];
6
+ title?: string;
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { MessageStatus } from '../../../ag-ui/types/constants';
2
+ import 'github-markdown-css/github-markdown-light.css';
3
+ import 'highlight.js/styles/atom-one-dark.min.css';
4
+ import 'katex/dist/katex.min.css';
5
+ type __VLS_Props = {
6
+ content: string;
7
+ status?: MessageStatus;
8
+ };
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import type { ActivityMessage } from '../../../ag-ui/types/messages';
2
+ type __VLS_Props = {
3
+ content: ActivityMessage['content'];
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ content: string;
3
+ };
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
@@ -0,0 +1,27 @@
1
+ import { type PropType } from 'vue';
2
+ import { type TokenToVNodeOptions } from '../../utils/tokens-to-vnodes';
3
+ import type { Token } from '../../markdown-it';
4
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
+ tokens: {
6
+ type: PropType<Token[]>;
7
+ required: true;
8
+ };
9
+ options: {
10
+ type: PropType<TokenToVNodeOptions>;
11
+ default: () => {};
12
+ };
13
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
14
+ [key: string]: any;
15
+ }>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
16
+ tokens: {
17
+ type: PropType<Token[]>;
18
+ required: true;
19
+ };
20
+ options: {
21
+ type: PropType<TokenToVNodeOptions>;
22
+ default: () => {};
23
+ };
24
+ }>> & Readonly<{}>, {
25
+ options: TokenToVNodeOptions;
26
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
27
+ export default _default;
@@ -0,0 +1,17 @@
1
+ export interface XContentProps {
2
+ content?: string;
3
+ disabled?: boolean;
4
+ }
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<XContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<XContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -11,7 +11,9 @@ type __VLS_ModelProps = {
11
11
  modelValue: string | TagSchema;
12
12
  };
13
13
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
14
- declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
15
+ cleanup: () => void;
16
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
17
  "update:modelValue": (value: string | ({
16
18
  text: string;
17
19
  type: "text";
@@ -1,4 +1,4 @@
1
- import { type IAiSlashMenuItem } from '../../../types';
1
+ import { type IAiSlashMenuItem } from '../../../../types';
2
2
  type __VLS_Props = {
3
3
  onSelect: (item: IAiSlashMenuItem) => void;
4
4
  resourceList?: IAiSlashMenuItem[];
@@ -1,20 +1,30 @@
1
- import { type IAiSlashMenuItem, type TagSchema } from '../../types';
2
- type __VLS_Props = {
3
- onSendMessage: (value: string, docSchema: TagSchema) => Promise<void>;
4
- onStopSending: () => Promise<void>;
1
+ import { MessageStatus } from '../../ag-ui/types';
2
+ import { type IAiSlashMenuItem, type Shortcut, type TagSchema } from '../../types';
3
+ export type ChatInputProps = {
4
+ messageStatus?: MessageStatus;
5
+ onSendMessage?: (value: string, docSchema: TagSchema) => Promise<void>;
6
+ onStopSending?: () => Promise<void>;
5
7
  placeholder?: string;
6
8
  prompts?: string[];
7
9
  resources?: IAiSlashMenuItem[];
10
+ shortcutId?: string;
11
+ shortcuts?: Shortcut[];
8
12
  };
13
+ type __VLS_Props = ChatInputProps;
9
14
  type __VLS_ModelProps = {
10
15
  modelValue: string | TagSchema;
16
+ 'cite'?: string;
11
17
  };
12
18
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
13
- declare var __VLS_1: {}, __VLS_19: {};
19
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_30: {}, __VLS_54: {};
14
20
  type __VLS_Slots = {} & {
15
21
  top?: (props: typeof __VLS_1) => any;
16
22
  } & {
17
- attachment?: (props: typeof __VLS_19) => any;
23
+ 'input-header'?: (props: typeof __VLS_3) => any;
24
+ } & {
25
+ attachment?: (props: typeof __VLS_30) => any;
26
+ } & {
27
+ 'send-icon'?: (props: typeof __VLS_54) => any;
18
28
  };
19
29
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
30
  "update:modelValue": (value: string | ({
@@ -28,6 +38,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
28
38
  };
29
39
  type: "tag";
30
40
  })[][]) => any;
41
+ "update:cite": (value: string) => any;
42
+ } & {
43
+ selectShortcut: (shortcut: Shortcut) => any;
44
+ deleteShortcut: () => any;
31
45
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
32
46
  "onUpdate:modelValue"?: ((value: string | ({
33
47
  text: string;
@@ -40,6 +54,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
40
54
  };
41
55
  type: "tag";
42
56
  })[][]) => any) | undefined;
57
+ onSelectShortcut?: ((shortcut: Shortcut) => any) | undefined;
58
+ onDeleteShortcut?: (() => any) | undefined;
59
+ "onUpdate:cite"?: ((value: string) => any) | undefined;
43
60
  }>, {
44
61
  placeholder: string;
45
62
  prompts: string[];
@@ -1,10 +1,12 @@
1
- import { MessageState } from '../../../types/input';
1
+ import { MessageStatus } from '../../../ag-ui/types';
2
2
  type __VLS_Props = {
3
- messageState: (typeof MessageState)[keyof typeof MessageState];
3
+ messageState?: MessageStatus;
4
4
  };
5
- declare var __VLS_1: {};
5
+ declare var __VLS_1: {}, __VLS_3: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_1) => any;
8
+ } & {
9
+ 'send-icon'?: (props: typeof __VLS_3) => any;
8
10
  };
9
11
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
10
12
  sendMessage: () => any;
@@ -1,5 +1,5 @@
1
- import type { ThinkingMessageContent } from '../../ag-ui/types/contents';
2
- type __VLS_Props = ThinkingMessageContent;
1
+ import type { ActivityMessage } from '../../../ag-ui/types/messages';
2
+ type __VLS_Props = Partial<ActivityMessage>;
3
3
  type __VLS_ModelProps = {
4
4
  'collapsed'?: boolean;
5
5
  };
@@ -0,0 +1,16 @@
1
+ import type { AssistantMessage } from '../../../ag-ui/types/messages';
2
+ declare var __VLS_1: {
3
+ content: string | undefined;
4
+ };
5
+ type __VLS_Slots = {} & {
6
+ default?: (props: typeof __VLS_1) => any;
7
+ };
8
+ declare const __VLS_base: import("vue").DefineComponent<Partial<AssistantMessage>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Partial<AssistantMessage>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
@@ -0,0 +1,11 @@
1
+ import type { FlowNode } from './types';
2
+ type __VLS_Props = {
3
+ node?: FlowNode;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ close: () => any;
7
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
+ onClose?: (() => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import type { FlowMessage } from './types';
2
+ declare const __VLS_export: import("vue").DefineComponent<Partial<FlowMessage>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Partial<FlowMessage>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { type FlowNode, type FlowNodeGroup } from './types';
2
+ type __VLS_Props = {
3
+ defaultCollapsed?: boolean;
4
+ group: FlowNodeGroup;
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ nodeDetail: (node: FlowNode) => any;
8
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onNodeDetail?: ((node: FlowNode) => any) | undefined;
10
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;