@blueking/chat-x 0.0.1-beta.2 → 0.0.1-beta.3

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 (79) hide show
  1. package/package.json +1 -1
  2. package/dist/ag-ui/types/constants.d.ts +0 -34
  3. package/dist/ag-ui/types/contents.d.ts +0 -45
  4. package/dist/ag-ui/types/index.d.ts +0 -3
  5. package/dist/ag-ui/types/messages.d.ts +0 -27
  6. package/dist/common/constants.d.ts +0 -20
  7. package/dist/common/icon.d.ts +0 -14
  8. package/dist/common/index.d.ts +0 -4
  9. package/dist/common/lang.d.ts +0 -1
  10. package/dist/common/shortcut.d.ts +0 -2
  11. package/dist/components/ai-selection/ai-selection.vue.d.ts +0 -39
  12. package/dist/components/ai-shortcut/shortcut-btn.vue.d.ts +0 -24
  13. package/dist/components/ai-shortcut/shortcut-btns.vue.d.ts +0 -12
  14. package/dist/components/ai-shortcut/shortcut-render.vue.d.ts +0 -10
  15. package/dist/components/chat-content/common-error-content.vue.d.ts +0 -18
  16. package/dist/components/chat-content/content-render.vue.d.ts +0 -24
  17. package/dist/components/chat-content/markdown-content.vue.d.ts +0 -5
  18. package/dist/components/chat-content/reference-content.vue.d.ts +0 -13
  19. package/dist/components/chat-content/text-content.vue.d.ts +0 -4
  20. package/dist/components/chat-content/think-content.vue.d.ts +0 -13
  21. package/dist/components/chat-input/ai-slash-editor/ai-slash-editor.vue.d.ts +0 -28
  22. package/dist/components/chat-input/ai-slash-editor/theme.d.ts +0 -24
  23. package/dist/components/chat-input/ai-slash-input/ai-prompt-list.vue.d.ts +0 -7
  24. package/dist/components/chat-input/ai-slash-input/ai-slash-input.vue.d.ts +0 -47
  25. package/dist/components/chat-input/ai-slash-input/ai-slash-menu.vue.d.ts +0 -8
  26. package/dist/components/chat-input/ai-slash-input/command.d.ts +0 -6
  27. package/dist/components/chat-input/ai-slash-input/constants.d.ts +0 -11
  28. package/dist/components/chat-input/chat-input.vue.d.ts +0 -55
  29. package/dist/components/chat-input/input-attachment/input-attachment.vue.d.ts +0 -23
  30. package/dist/components/chat-message/assistant-message.vue.d.ts +0 -18
  31. package/dist/components/chat-message/info-message.vue.d.ts +0 -4
  32. package/dist/components/chat-message/message-render.vue.d.ts +0 -16
  33. package/dist/components/chat-message/user-message.vue.d.ts +0 -4
  34. package/dist/components/index.d.ts +0 -9
  35. package/dist/components/message-tools/message-tools.vue.d.ts +0 -7
  36. package/dist/components/message-tools/tool-btn.vue.d.ts +0 -8
  37. package/dist/composables/index.d.ts +0 -4
  38. package/dist/composables/use-command-selection.d.ts +0 -11
  39. package/dist/composables/use-global-config.d.ts +0 -11
  40. package/dist/composables/use-menu-keydown.d.ts +0 -8
  41. package/dist/composables/use-observer-visible-list.d.ts +0 -9
  42. package/dist/directives/index.d.ts +0 -1
  43. package/dist/directives/overflow-tips.d.ts +0 -15
  44. package/dist/edix/commands.d.ts +0 -6
  45. package/dist/edix/doc/edit.d.ts +0 -55
  46. package/dist/edix/doc/position.d.ts +0 -19
  47. package/dist/edix/doc/types.d.ts +0 -15
  48. package/dist/edix/doc/utils.d.ts +0 -9
  49. package/dist/edix/dom/default.d.ts +0 -4
  50. package/dist/edix/dom/index.d.ts +0 -42
  51. package/dist/edix/dom/parser.d.ts +0 -63
  52. package/dist/edix/editor.d.ts +0 -55
  53. package/dist/edix/history.d.ts +0 -10
  54. package/dist/edix/index.d.ts +0 -6
  55. package/dist/edix/mutation.d.ts +0 -8
  56. package/dist/edix/plugins/singleline.d.ts +0 -5
  57. package/dist/edix/schema/index.d.ts +0 -3
  58. package/dist/edix/schema/plain.d.ts +0 -7
  59. package/dist/edix/schema/structured.d.ts +0 -35
  60. package/dist/edix/schema/types.d.ts +0 -13
  61. package/dist/edix/utils.d.ts +0 -8
  62. package/dist/icons/ai.d.ts +0 -3
  63. package/dist/icons/content.d.ts +0 -15
  64. package/dist/icons/index.d.ts +0 -5
  65. package/dist/icons/messages.d.ts +0 -30
  66. package/dist/icons/shortcuts.d.ts +0 -6
  67. package/dist/icons/tools.d.ts +0 -45
  68. package/dist/index.css +0 -2
  69. package/dist/index.d.ts +0 -10
  70. package/dist/index.js +0 -8428
  71. package/dist/index.js.map +0 -1
  72. package/dist/lang/lang.d.ts +0 -17
  73. package/dist/types/editor.d.ts +0 -20
  74. package/dist/types/index.d.ts +0 -4
  75. package/dist/types/input.d.ts +0 -18
  76. package/dist/types/shortcut.d.ts +0 -40
  77. package/dist/types/tool.d.ts +0 -6
  78. package/dist/utils/index.d.ts +0 -1
  79. package/dist/utils/utils.d.ts +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/chat-x",
3
- "version": "0.0.1-beta.2",
3
+ "version": "0.0.1-beta.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,34 +0,0 @@
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"
8
- }
9
- export declare enum MessageRole {
10
- Assistant = "assistant",
11
- Guide = "guide",
12
- Hidden = "hidden",
13
- HiddenAssistant = "hidden-assistant",
14
- HiddenGuide = "hidden-guide",
15
- HiddenSystem = "hidden-system",
16
- HiddenUser = "hidden-user",
17
- Info = "info",
18
- Pause = "pause",
19
- Placeholder = "placeholder",
20
- System = "system",
21
- TemplateAssistant = "template-assistant",
22
- TemplateGuide = "template-guide",
23
- TemplateHidden = "template-hidden",
24
- TemplateSystem = "template-system",
25
- TemplateUser = "template-user",
26
- User = "user"
27
- }
28
- export declare enum MessageStatus {
29
- Complete = "complete",
30
- Error = "error",
31
- Pending = "pending",
32
- Stop = "stop",
33
- Streaming = "streaming"
34
- }
@@ -1,45 +0,0 @@
1
- import { type MessageContentType, type MessageStatus } from './constants';
2
- declare global {
3
- interface AIBluekingCustomContentMap {
4
- }
5
- }
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;
13
- };
14
- 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, string>;
33
- export type ThinkingMessageContent = IBaseMessageContent<MessageContentType.Thinking, {
34
- duration?: number;
35
- text: string;
36
- title?: string;
37
- }>;
38
- export type ToolCallMessageContent = IBaseMessageContent<MessageContentType.ToolCall, {
39
- args?: string;
40
- chunk?: string;
41
- parentMessageId?: string;
42
- result?: string;
43
- toolCallId: string;
44
- toolCallName: string;
45
- }>;
@@ -1,3 +0,0 @@
1
- export * from './constants';
2
- export * from './contents';
3
- export * from './messages';
@@ -1,27 +0,0 @@
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[];
12
- id: string;
13
- property?: Record<string, unknown>;
14
- role: Role;
15
- status?: MessageStatus;
16
- }
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>;
@@ -1,20 +0,0 @@
1
- /**
2
- * 全局 chat-x 组件 Z-Index
3
- */
4
- export declare const CHAT_Z_INDEX = 9999;
5
- /**
6
- * 编辑器组件 Z-Index
7
- */
8
- export declare const EDITOR_Z_INDEX: number;
9
- /**
10
- * 编辑器菜单 Z-Index
11
- */
12
- export declare const EDITOR_MENU_Z_INDEX: number;
13
- /**
14
- * 快捷指令菜单 Z-Index
15
- */
16
- export declare const SHORTCUT_MENU_Z_INDEX: number;
17
- /**
18
- * 划选弹窗 Z-Index
19
- */
20
- export declare const SELECTION_Z_INDEX: number;
@@ -1,14 +0,0 @@
1
- /**
2
- * 通用 SVG图标属性
3
- */
4
- export declare const commonSVGProps: {
5
- class: string;
6
- style: {
7
- verticalAlign: string;
8
- fill: string;
9
- overflow: string;
10
- };
11
- viewBox: string;
12
- version: string;
13
- xmlns: string;
14
- };
@@ -1,4 +0,0 @@
1
- export * from './constants';
2
- export * from './icon';
3
- export * from './lang';
4
- export * from './shortcut';
@@ -1 +0,0 @@
1
- export declare const isEn: boolean;
@@ -1,2 +0,0 @@
1
- import type { Shortcut } from '../types';
2
- export declare const DEFAULT_SHORTCUTS: Shortcut[];
@@ -1,39 +0,0 @@
1
- import type { Shortcut } from '../../types';
2
- import 'tippy.js/dist/tippy.css';
3
- type __VLS_Props = {
4
- maxShortcutCount?: number;
5
- offset?: number;
6
- shortcuts?: Shortcut[];
7
- };
8
- type __VLS_ModelProps = {
9
- 'visible': boolean;
10
- };
11
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
12
- declare var __VLS_13: {
13
- shortcuts: Shortcut[];
14
- };
15
- type __VLS_Slots = {} & {
16
- default?: (props: typeof __VLS_13) => any;
17
- };
18
- declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
- "update:visible": (value: boolean) => any;
20
- } & {
21
- selectShortcut: (shortcut: Shortcut, text: string) => any;
22
- selectionChange: (text: string) => any;
23
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
24
- onSelectShortcut?: ((shortcut: Shortcut, text: string) => any) | undefined;
25
- onSelectionChange?: ((text: string) => any) | undefined;
26
- "onUpdate:visible"?: ((value: boolean) => any) | undefined;
27
- }>, {
28
- offset: number;
29
- maxShortcutCount: number;
30
- shortcuts: Shortcut[];
31
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
33
- declare const _default: typeof __VLS_export;
34
- export default _default;
35
- type __VLS_WithSlots<T, S> = T & {
36
- new (): {
37
- $slots: S;
38
- };
39
- };
@@ -1,24 +0,0 @@
1
- import type { Shortcut } from '../../types';
2
- type __VLS_Props = {
3
- mode?: 'btn' | 'menu';
4
- shortcut?: Shortcut;
5
- };
6
- declare var __VLS_1: {};
7
- type __VLS_Slots = {} & {
8
- default?: (props: typeof __VLS_1) => any;
9
- };
10
- declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
11
- readonly $el: HTMLElement | null;
12
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
13
- click: (shortcut?: Shortcut | undefined) => any;
14
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
- onClick?: ((shortcut?: Shortcut | undefined) => any) | undefined;
16
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
- declare const _default: typeof __VLS_export;
19
- export default _default;
20
- type __VLS_WithSlots<T, S> = T & {
21
- new (): {
22
- $slots: S;
23
- };
24
- };
@@ -1,12 +0,0 @@
1
- import type { Shortcut } from '../../types';
2
- import 'tippy.js/dist/tippy.css';
3
- type __VLS_Props = {
4
- shortcuts: Shortcut[];
5
- };
6
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
- selectShortcut: (shortcut: Shortcut) => any;
8
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
- onSelectShortcut?: ((shortcut: Shortcut) => any) | undefined;
10
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
- declare const _default: typeof __VLS_export;
12
- export default _default;
@@ -1,10 +0,0 @@
1
- import type { Shortcut } from '../../types';
2
- declare const __VLS_export: import("vue").DefineComponent<Shortcut, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
- close: () => any;
4
- submit: (formModel: Record<string, unknown>) => any;
5
- }, string, import("vue").PublicProps, Readonly<Shortcut> & Readonly<{
6
- onClose?: (() => any) | undefined;
7
- onSubmit?: ((formModel: Record<string, unknown>) => any) | undefined;
8
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
- declare const _default: typeof __VLS_export;
10
- export default _default;
@@ -1,18 +0,0 @@
1
- import { MessageContentType } from '../../ag-ui/types/constants';
2
- import type { IBaseMessageContent } from '../../ag-ui/types/contents';
3
- declare const __VLS_export: <T extends MessageContentType, D extends any>(__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<{
4
- props: __VLS_PrettifyLocal<IBaseMessageContent<T, D>> & import("vue").PublicProps & (typeof globalThis extends {
5
- __VLS_PROPS_FALLBACK: infer P;
6
- } ? P : {});
7
- expose: (exposed: {}) => void;
8
- attrs: any;
9
- slots: {};
10
- emit: {};
11
- }>) => import("vue").VNode & {
12
- __ctx?: Awaited<typeof __VLS_setup>;
13
- };
14
- declare const _default: typeof __VLS_export;
15
- export default _default;
16
- type __VLS_PrettifyLocal<T> = {
17
- [K in keyof T as K]: T[K];
18
- } & {};
@@ -1,24 +0,0 @@
1
- import type { ContentMap, ContentType } from '../../ag-ui/types/contents';
2
- 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
- props: __VLS_PrettifyLocal<{
4
- content: ContentMap[T];
5
- type: T;
6
- }> & import("vue").PublicProps & (typeof globalThis extends {
7
- __VLS_PROPS_FALLBACK: infer P;
8
- } ? P : {});
9
- expose: (exposed: {}) => void;
10
- attrs: any;
11
- slots: {
12
- default?: (props: {
13
- content: ContentMap[T];
14
- }) => any;
15
- };
16
- emit: {};
17
- }>) => import("vue").VNode & {
18
- __ctx?: Awaited<typeof __VLS_setup>;
19
- };
20
- declare const _default: typeof __VLS_export;
21
- export default _default;
22
- type __VLS_PrettifyLocal<T> = {
23
- [K in keyof T as K]: T[K];
24
- } & {};
@@ -1,5 +0,0 @@
1
- import type { MarkdownMessageContent } from '../../ag-ui/types/contents';
2
- import 'github-markdown-css/github-markdown.css';
3
- declare const __VLS_export: import("vue").DefineComponent<MarkdownMessageContent, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MarkdownMessageContent> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4
- declare const _default: typeof __VLS_export;
5
- export default _default;
@@ -1,13 +0,0 @@
1
- import type { ReferenceDocumentMessageContent } from '../../ag-ui/types/contents';
2
- type __VLS_Props = ReferenceDocumentMessageContent;
3
- type __VLS_ModelProps = {
4
- 'collapsed'?: boolean;
5
- };
6
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
- declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
- "update:collapsed": (value: boolean) => any;
9
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
10
- "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
11
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
- declare const _default: typeof __VLS_export;
13
- export default _default;
@@ -1,4 +0,0 @@
1
- import type { TextMessageContent } from '../../ag-ui/types/contents';
2
- declare const __VLS_export: import("vue").DefineComponent<TextMessageContent, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TextMessageContent> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
- declare const _default: typeof __VLS_export;
4
- export default _default;
@@ -1,13 +0,0 @@
1
- import type { ThinkingMessageContent } from '../../ag-ui/types/contents';
2
- type __VLS_Props = ThinkingMessageContent;
3
- type __VLS_ModelProps = {
4
- 'collapsed'?: boolean;
5
- };
6
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
- declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
- "update:collapsed": (value: boolean) => any;
9
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
10
- "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
11
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
- declare const _default: typeof __VLS_export;
13
- export default _default;
@@ -1,28 +0,0 @@
1
- import { type IKeyboardEvent, editor as monacoEditor } from 'monaco-editor';
2
- import 'tippy.js/dist/tippy.css';
3
- type __VLS_Props = {
4
- disabled?: boolean;
5
- modelValue?: string;
6
- placeholder?: string;
7
- prompts?: string[];
8
- };
9
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
10
- readonly editor: monacoEditor.IStandaloneCodeEditor;
11
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
12
- focus: () => any;
13
- keydown: (event: IKeyboardEvent) => any;
14
- "update:modelValue": (value: string) => any;
15
- layoutChange: (layoutInfo: monacoEditor.EditorLayoutInfo) => any;
16
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
17
- onFocus?: (() => any) | undefined;
18
- onKeydown?: ((event: IKeyboardEvent) => any) | undefined;
19
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
20
- onLayoutChange?: ((layoutInfo: monacoEditor.EditorLayoutInfo) => any) | undefined;
21
- }>, {
22
- placeholder: string;
23
- disabled: boolean;
24
- modelValue: string;
25
- prompts: string[];
26
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
- declare const _default: typeof __VLS_export;
28
- export default _default;
@@ -1,24 +0,0 @@
1
- import { editor } from 'monaco-editor';
2
- export declare const aiSlashEditorOptions: editor.IStandaloneEditorConstructionOptions;
3
- export declare const resourceTypeMap: {
4
- readonly tool: {
5
- readonly background: "#F0F1F5";
6
- readonly color: "#4D4F56";
7
- readonly iconColor: "#979BA5";
8
- };
9
- readonly shortcut: {
10
- readonly background: "#E1ECFF";
11
- readonly color: "#3A84FF";
12
- readonly iconColor: "#3A84FF";
13
- };
14
- readonly doc: {
15
- readonly background: "#DAF6E5";
16
- readonly color: "#2CAF5E";
17
- readonly iconColor: "#2CAF5E";
18
- };
19
- readonly mcp: {
20
- readonly background: "#FDEED8";
21
- readonly color: "#F59500";
22
- readonly iconColor: "#F59500";
23
- };
24
- };
@@ -1,7 +0,0 @@
1
- type __VLS_Props = {
2
- onSelect: (prompt: string) => void;
3
- prompts: string[];
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;
@@ -1,47 +0,0 @@
1
- import { type KeyboardPayload } from '../../../edix';
2
- import type { IAiSlashMenuItem } from '../../../types/editor';
3
- import type { TagSchema } from '../../../types/input';
4
- import 'tippy.js/dist/tippy.css';
5
- type __VLS_Props = {
6
- placeholder?: string;
7
- prompts?: string[];
8
- resources?: IAiSlashMenuItem[];
9
- };
10
- type __VLS_ModelProps = {
11
- modelValue: string | TagSchema;
12
- };
13
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
14
- declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
- "update:modelValue": (value: string | ({
16
- text: string;
17
- type: "text";
18
- } | {
19
- data: {
20
- readonly label: string;
21
- readonly value: string;
22
- readonly type: string;
23
- };
24
- type: "tag";
25
- })[][]) => any;
26
- } & {
27
- keydown: (event: KeyboardEvent & KeyboardPayload) => any;
28
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
29
- onKeydown?: ((event: KeyboardEvent & KeyboardPayload) => any) | undefined;
30
- "onUpdate:modelValue"?: ((value: string | ({
31
- text: string;
32
- type: "text";
33
- } | {
34
- data: {
35
- readonly label: string;
36
- readonly value: string;
37
- readonly type: string;
38
- };
39
- type: "tag";
40
- })[][]) => any) | undefined;
41
- }>, {
42
- placeholder: string;
43
- prompts: string[];
44
- resources: IAiSlashMenuItem[];
45
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
46
- declare const _default: typeof __VLS_export;
47
- export default _default;
@@ -1,8 +0,0 @@
1
- import { type IAiSlashMenuItem } from '../../../types';
2
- type __VLS_Props = {
3
- onSelect: (item: IAiSlashMenuItem) => void;
4
- resourceList?: IAiSlashMenuItem[];
5
- };
6
- 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>;
7
- declare const _default: typeof __VLS_export;
8
- export default _default;
@@ -1,6 +0,0 @@
1
- import type { EditorCommand } from '../../../edix';
2
- import type { Position } from '../../../edix/doc/types';
3
- import type { IAiSlashMenuItem } from '../../../types/editor';
4
- export declare const DeleteTag: EditorCommand<[Position, Position]>;
5
- export declare const InsertTag: EditorCommand<[Position, IAiSlashMenuItem]>;
6
- export declare const InsertText: EditorCommand<[Position, string]>;
@@ -1,11 +0,0 @@
1
- export declare const tagSchema: import("../../..").DocSchema<({
2
- text: string;
3
- type: "text";
4
- } | {
5
- data: {
6
- readonly label: string;
7
- readonly value: string;
8
- readonly type: string;
9
- };
10
- type: "tag";
11
- })[][]>;
@@ -1,55 +0,0 @@
1
- import { type IAiSlashMenuItem, type TagSchema } from '../../types';
2
- type __VLS_Props = {
3
- onSendMessage: (value: string, docSchema: TagSchema) => Promise<void>;
4
- onStopSending: () => Promise<void>;
5
- placeholder?: string;
6
- prompts?: string[];
7
- resources?: IAiSlashMenuItem[];
8
- };
9
- type __VLS_ModelProps = {
10
- modelValue: string | TagSchema;
11
- };
12
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
13
- declare var __VLS_1: {}, __VLS_19: {};
14
- type __VLS_Slots = {} & {
15
- top?: (props: typeof __VLS_1) => any;
16
- } & {
17
- attachment?: (props: typeof __VLS_19) => any;
18
- };
19
- declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
- "update:modelValue": (value: string | ({
21
- text: string;
22
- type: "text";
23
- } | {
24
- data: {
25
- readonly label: string;
26
- readonly value: string;
27
- readonly type: string;
28
- };
29
- type: "tag";
30
- })[][]) => any;
31
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
32
- "onUpdate:modelValue"?: ((value: string | ({
33
- text: string;
34
- type: "text";
35
- } | {
36
- data: {
37
- readonly label: string;
38
- readonly value: string;
39
- readonly type: string;
40
- };
41
- type: "tag";
42
- })[][]) => any) | undefined;
43
- }>, {
44
- placeholder: string;
45
- prompts: string[];
46
- resources: IAiSlashMenuItem[];
47
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
48
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
49
- declare const _default: typeof __VLS_export;
50
- export default _default;
51
- type __VLS_WithSlots<T, S> = T & {
52
- new (): {
53
- $slots: S;
54
- };
55
- };
@@ -1,23 +0,0 @@
1
- import { MessageState } from '../../../types/input';
2
- type __VLS_Props = {
3
- messageState: (typeof MessageState)[keyof typeof MessageState];
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<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
10
- sendMessage: () => any;
11
- stopSending: () => any;
12
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
- onSendMessage?: (() => any) | undefined;
14
- onStopSending?: (() => any) | undefined;
15
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
- declare const _default: typeof __VLS_export;
18
- export default _default;
19
- type __VLS_WithSlots<T, S> = T & {
20
- new (): {
21
- $slots: S;
22
- };
23
- };
@@ -1,18 +0,0 @@
1
- import type { AssistantMessage } from '../../ag-ui/types/messages';
2
- declare var __VLS_1: {
3
- content: import("../../index.ts").ImageMessageContent | import("../../index.ts").MarkdownMessageContent | import("../../index.ts").ReferenceDocumentMessageContent | import("../../index.ts").TextMessageContent | import("../../index.ts").ThinkingMessageContent | import("../../index.ts").ToolCallMessageContent;
4
- }, __VLS_8: {};
5
- type __VLS_Slots = {} & {
6
- default?: (props: typeof __VLS_1) => any;
7
- } & {
8
- tools?: (props: typeof __VLS_8) => any;
9
- };
10
- declare const __VLS_base: import("vue").DefineComponent<AssistantMessage, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AssistantMessage> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
- declare const _default: typeof __VLS_export;
13
- export default _default;
14
- type __VLS_WithSlots<T, S> = T & {
15
- new (): {
16
- $slots: S;
17
- };
18
- };
@@ -1,4 +0,0 @@
1
- import type { InfoMessage } from '../../ag-ui/types/messages';
2
- declare const __VLS_export: import("vue").DefineComponent<InfoMessage, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<InfoMessage> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
- declare const _default: typeof __VLS_export;
4
- export default _default;
@@ -1,16 +0,0 @@
1
- import type { TextMessageContent } from '../../ag-ui/types/contents';
2
- declare var __VLS_14: {
3
- content: import("../../index.ts").ImageMessageContent | import("../../index.ts").MarkdownMessageContent | import("../../index.ts").ReferenceDocumentMessageContent | TextMessageContent | import("../../index.ts").ThinkingMessageContent | import("../../index.ts").ToolCallMessageContent;
4
- };
5
- type __VLS_Slots = {} & {
6
- default?: (props: typeof __VLS_14) => any;
7
- };
8
- declare const __VLS_base: import("vue").DefineComponent<import("../../index.ts").AssistantMessage | import("../../index.ts").GuideMessage | import("../../index.ts").HiddenAssistantMessage | import("../../index.ts").HiddenGuideMessage | import("../../index.ts").HiddenMessage | import("../../index.ts").HiddenSystemMessage | import("../../index.ts").HiddenUserMessage | import("../../index.ts").InfoMessage | import("../../index.ts").PauseMessage | import("../../index.ts").PlaceholderMessage | import("../../index.ts").SystemMessage | import("../../index.ts").TemplateAssistantMessage | import("../../index.ts").TemplateGuideMessage | import("../../index.ts").TemplateHiddenMessage | import("../../index.ts").TemplateSystemMessage | import("../../index.ts").TemplateUserMessage | import("../../index.ts").UserMessage, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("../../index.ts").AssistantMessage | import("../../index.ts").GuideMessage | import("../../index.ts").HiddenAssistantMessage | import("../../index.ts").HiddenGuideMessage | import("../../index.ts").HiddenMessage | import("../../index.ts").HiddenSystemMessage | import("../../index.ts").HiddenUserMessage | import("../../index.ts").InfoMessage | import("../../index.ts").PauseMessage | import("../../index.ts").PlaceholderMessage | import("../../index.ts").SystemMessage | import("../../index.ts").TemplateAssistantMessage | import("../../index.ts").TemplateGuideMessage | import("../../index.ts").TemplateHiddenMessage | import("../../index.ts").TemplateSystemMessage | import("../../index.ts").TemplateUserMessage | import("../../index.ts").UserMessage> & 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
- };
@@ -1,4 +0,0 @@
1
- import type { UserMessage } from '../../ag-ui/types/messages';
2
- declare const __VLS_export: import("vue").DefineComponent<UserMessage, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UserMessage> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
- declare const _default: typeof __VLS_export;
4
- export default _default;
@@ -1,9 +0,0 @@
1
- import AiSelection from './ai-selection/ai-selection.vue';
2
- import ShortcutBtn from './ai-shortcut/shortcut-btn.vue';
3
- import ShortcutBtns from './ai-shortcut/shortcut-btns.vue';
4
- import ShortcutRender from './ai-shortcut/shortcut-render.vue';
5
- import ContentRender from './chat-content/content-render.vue';
6
- import ChatInput from './chat-input/chat-input.vue';
7
- import MessageRender from './chat-message/message-render.vue';
8
- import MessageTools from './message-tools/message-tools.vue';
9
- export { AiSelection, ChatInput, ContentRender, MessageRender, MessageTools, ShortcutBtn, ShortcutBtns, ShortcutRender, };