@blueking/chat-x 0.0.1-beta.6 → 0.0.1-beta.8
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/dist/components/ai-buttons/tool-btn/tool-btn.vue.d.ts +6 -2
- package/dist/components/chat-message/message-container/message-container.vue.d.ts +3 -0
- package/dist/components/chat-message/user-message/user-message.vue.d.ts +2 -1
- package/dist/components/message-tools/message-tools.vue.d.ts +2 -0
- package/dist/icons/tools.d.ts +12 -0
- package/dist/index.css +1 -1
- package/dist/index.js +206 -144
- package/dist/index.js.map +1 -1
- package/dist/lang/lang.d.ts +2 -2
- package/dist/types/tool.d.ts +4 -0
- package/package.json +3 -3
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import type { IToolBtn } from '../../../types';
|
|
2
|
-
|
|
2
|
+
type __VLS_Props = IToolBtn & {
|
|
3
|
+
active?: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
3
7
|
click: (data: IToolBtn, event: MouseEvent) => any;
|
|
4
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
5
9
|
onClick?: ((data: IToolBtn, event: MouseEvent) => any) | undefined;
|
|
6
10
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
11
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Message, type UserMessage, MessageRole, MessageStatus } from '../../../ag-ui/types';
|
|
2
|
+
import { MessageToolsStatus } from '../../../types/tool';
|
|
2
3
|
import type { IToolBtn, TagSchema } from '../../../types';
|
|
3
4
|
/**
|
|
4
5
|
* Agent 工具操作回调类型
|
|
@@ -24,6 +25,7 @@ type __VLS_Props = {
|
|
|
24
25
|
enableSelection?: boolean;
|
|
25
26
|
messages: Message[];
|
|
26
27
|
messageStatus?: MessageStatus;
|
|
28
|
+
messageToolsStatus?: MessageToolsStatus;
|
|
27
29
|
onAgentAction?: AgentActionCallback;
|
|
28
30
|
onAgentFeedback?: AgentFeedbackCallback;
|
|
29
31
|
onUserAction?: UserActionCallback;
|
|
@@ -11495,6 +11497,7 @@ declare var __VLS_9: {
|
|
|
11495
11497
|
} | undefined;
|
|
11496
11498
|
} | undefined;
|
|
11497
11499
|
};
|
|
11500
|
+
messageToolsStatus: MessageToolsStatus | undefined;
|
|
11498
11501
|
};
|
|
11499
11502
|
type __VLS_Slots = {} & {
|
|
11500
11503
|
default?: (props: typeof __VLS_9) => any;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { type TagSchema } from '../../../types';
|
|
1
|
+
import { type TagSchema, MessageToolsStatus } from '../../../types';
|
|
2
2
|
import { type MessageToolsProps } from '../../message-tools/message-tools.vue';
|
|
3
3
|
import type { UserMessage } from '../../../ag-ui/types/messages';
|
|
4
4
|
export type UserMessageActionsProps = {
|
|
5
|
+
messageToolsStatus?: MessageToolsStatus;
|
|
5
6
|
onInputConfirm?: (content: UserMessage['content'], docSchema: TagSchema) => Promise<void>;
|
|
6
7
|
onShortcutConfirm?: (formModel: Record<string, unknown>) => Promise<void>;
|
|
7
8
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { type TippyOptions } from 'vue-tippy';
|
|
2
|
+
import { MessageToolsStatus } from '../../types/tool';
|
|
2
3
|
import type { UserMessage } from '../../ag-ui/types/messages';
|
|
3
4
|
import type { IToolBtn, TagSchema } from '../../types';
|
|
4
5
|
export type MessageToolsProps = {
|
|
5
6
|
messageTools?: IToolBtn[];
|
|
7
|
+
messageToolsStatus?: MessageToolsStatus;
|
|
6
8
|
onAction?: (tool: IToolBtn, content?: UserMessage['content'], docSchema?: TagSchema) => Promise<string[] | void>;
|
|
7
9
|
tippyOptions?: Partial<Omit<TippyOptions, 'content' | 'getReferenceClientRect' | 'triggerTarget'>>;
|
|
8
10
|
updateTools?: IToolBtn[];
|
package/dist/icons/tools.d.ts
CHANGED
|
@@ -22,6 +22,12 @@ export declare const DeleteIcon: import("vue").VNode<import("vue").RendererNode,
|
|
|
22
22
|
export declare const EditIcon: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
23
23
|
[key: string]: any;
|
|
24
24
|
}>;
|
|
25
|
+
export declare const ActiveLikeIcon: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}>;
|
|
28
|
+
export declare const ActiveUnLikeIcon: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}>;
|
|
25
31
|
export declare const ToolIconsMap: {
|
|
26
32
|
readonly copy: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
27
33
|
[key: string]: any;
|
|
@@ -47,5 +53,11 @@ export declare const ToolIconsMap: {
|
|
|
47
53
|
readonly edit: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
54
|
[key: string]: any;
|
|
49
55
|
}>;
|
|
56
|
+
readonly activeLike: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
}>;
|
|
59
|
+
readonly activeUnLike: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
60
|
+
[key: string]: any;
|
|
61
|
+
}>;
|
|
50
62
|
};
|
|
51
63
|
export type ToolIcons = keyof typeof ToolIconsMap;
|