@blueking/chat-x 0.0.1-beta.4 → 0.0.1-beta.6
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/ag-ui/types/constants.d.ts +12 -6
- package/dist/ag-ui/types/contents.d.ts +34 -42
- package/dist/ag-ui/types/messages.d.ts +111 -25
- package/dist/common/constants.d.ts +12 -0
- package/dist/common/index.d.ts +1 -0
- package/dist/common/markdown.d.ts +5 -0
- package/dist/components/ai-buttons/file-upload-btn/file-upload-btn.vue.d.ts +26 -0
- package/dist/components/ai-buttons/scroll-btn/scroll-btn.vue.d.ts +19 -0
- package/dist/components/{message-tools → ai-buttons/tool-btn}/tool-btn.vue.d.ts +3 -3
- package/dist/components/ai-shortcut/{shortcut-btn.vue.d.ts → shortcut-btn/shortcut-btn.vue.d.ts} +4 -2
- package/dist/components/ai-shortcut/{shortcut-btns.vue.d.ts → shortcut-btns/shortcut-btns.vue.d.ts} +1 -1
- package/dist/components/ai-shortcut/{shortcut-render.vue.d.ts → shortcut-render/shortcut-render.vue.d.ts} +3 -3
- package/dist/components/animation-text/animation-text.vue.d.ts +6 -0
- package/dist/components/chat-content/cite-content/cite-content.vue.d.ts +7 -0
- package/dist/components/chat-content/common-error-content/common-error-content.vue.d.ts +6 -0
- package/dist/components/chat-content/{content-render.vue.d.ts → content-render/content-render.vue.d.ts} +4 -2
- package/dist/components/chat-content/file-content/file-content.vue.d.ts +12 -0
- package/dist/components/chat-content/key-value-content/key-value-content.vue.d.ts +10 -0
- package/dist/components/chat-content/markdown-content/markdown-content.vue.d.ts +11 -0
- package/dist/components/chat-content/reference-content/reference-content.vue.d.ts +7 -0
- package/dist/components/chat-content/text-content/text-content.vue.d.ts +6 -0
- package/dist/components/chat-content/vnode-renderer.d.ts +27 -0
- package/dist/components/chat-input/ai-slash-input/ai-slash-input.vue.d.ts +6 -1
- 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
- package/dist/components/chat-input/chat-input.vue.d.ts +57 -7
- package/dist/components/chat-input/input-attachment/input-attachment.vue.d.ts +5 -3
- package/dist/components/{chat-content/think-content.vue.d.ts → chat-message/activity-message/activity-message.vue.d.ts} +2 -2
- package/dist/components/chat-message/assistant-message/assistant-message.vue.d.ts +16 -0
- package/dist/components/chat-message/flow-message/flow-detail.vue.d.ts +11 -0
- package/dist/components/chat-message/flow-message/flow-message.vue.d.ts +4 -0
- package/dist/components/chat-message/flow-message/flow-node-group.vue.d.ts +12 -0
- package/dist/components/chat-message/flow-message/flow-node-item.vue.d.ts +11 -0
- package/dist/components/chat-message/flow-message/flow-status-icons.d.ts +36 -0
- package/dist/components/chat-message/flow-message/index.d.ts +6 -0
- package/dist/components/chat-message/flow-message/mock.d.ts +13 -0
- package/dist/components/chat-message/flow-message/types.d.ts +132 -0
- package/dist/components/chat-message/info-message/info-message.vue.d.ts +4 -0
- package/dist/components/chat-message/message-container/message-container.vue.d.ts +11519 -0
- package/dist/components/chat-message/message-render/message-render.vue.d.ts +22 -0
- package/dist/components/{chat-content/reference-content.vue.d.ts → chat-message/reasoning-message/reasoning-message.vue.d.ts} +2 -2
- package/dist/components/chat-message/tool-message/tool-message.vue.d.ts +4 -0
- package/dist/components/chat-message/user-message/user-message.vue.d.ts +11 -0
- package/dist/components/index.d.ts +8 -6
- package/dist/components/markdown-token/code-content/code-content.vue.d.ts +15 -0
- package/dist/components/markdown-token/image-content/image-content.vue.d.ts +7 -0
- package/dist/components/markdown-token/index.d.ts +5 -0
- package/dist/components/markdown-token/latex-content/latex-content.vue.d.ts +8 -0
- package/dist/components/markdown-token/mermaid-content/mermaid-content.vue.d.ts +15 -0
- package/dist/components/message-tools/message-tools.vue.d.ts +16 -4
- package/dist/components/message-tools/user-feedback/user-feedback.vue.d.ts +14 -0
- package/dist/components/tool-call/desc-panel/desc-panel.vue.d.ts +7 -0
- package/dist/components/tool-call/toolcall-render/toolcall-render.vue.d.ts +10 -0
- package/dist/composables/index.d.ts +4 -0
- package/dist/composables/use-animation-text.d.ts +16 -0
- package/dist/composables/use-clipboard.d.ts +3 -0
- package/dist/composables/use-container-scroll.d.ts +15 -0
- package/dist/composables/use-observer-visible-list.d.ts +2 -1
- package/dist/composables/use-parent-scrolling.d.ts +16 -0
- package/dist/directives/overflow-tips.d.ts +2 -2
- package/dist/icons/content.d.ts +12 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/input.d.ts +12 -0
- package/dist/icons/messages.d.ts +3 -0
- package/dist/icons/shortcuts.d.ts +6 -0
- package/dist/icons/tools.d.ts +6 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5104 -2335
- package/dist/index.js.map +1 -1
- package/dist/lang/lang.d.ts +57 -1
- package/dist/plugins/index.d.ts +3 -0
- package/dist/plugins/markdown-animation-attrs.d.ts +6 -0
- package/dist/plugins/markdown-latex.d.ts +19 -0
- package/dist/plugins/markdown-mermaid.d.ts +7 -0
- package/dist/types/input.d.ts +10 -0
- package/dist/types/shortcut.d.ts +29 -5
- package/dist/types/tool.d.ts +2 -2
- package/dist/utils/file.d.ts +24 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/markdown-completer.d.ts +37 -0
- package/dist/utils/stream-markdown-completer.d.ts +17 -0
- package/dist/utils/tokens-to-vnodes.d.ts +28 -0
- package/dist/utils/utils.d.ts +6 -0
- package/package.json +32 -8
- package/dist/components/chat-content/common-error-content.vue.d.ts +0 -18
- package/dist/components/chat-content/markdown-content.vue.d.ts +0 -5
- package/dist/components/chat-content/text-content.vue.d.ts +0 -4
- package/dist/components/chat-message/assistant-message.vue.d.ts +0 -18
- package/dist/components/chat-message/info-message.vue.d.ts +0 -4
- package/dist/components/chat-message/message-render.vue.d.ts +0 -16
- package/dist/components/chat-message/user-message.vue.d.ts +0 -4
- /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,22 +1,64 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
type
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { type UserMessage, MessageContentType, MessageStatus } from '../../ag-ui/types';
|
|
2
|
+
import { type IAiSlashMenuItem, type Shortcut, type TagSchema, type UploadFile, UploadStatus } from '../../types';
|
|
3
|
+
export type ChatInputProps = {
|
|
4
|
+
defaultUploadFiles?: UploadFile[];
|
|
5
|
+
inputMaxHeight?: number;
|
|
6
|
+
messageStatus?: MessageStatus;
|
|
7
|
+
onSendMessage?: (message: UserMessage['content'], docSchema: TagSchema) => Promise<void>;
|
|
8
|
+
onStopSending?: () => Promise<void>;
|
|
9
|
+
onUpload?: (files: File) => Promise<{
|
|
10
|
+
download_url?: string;
|
|
11
|
+
}>;
|
|
5
12
|
placeholder?: string;
|
|
6
13
|
prompts?: string[];
|
|
7
14
|
resources?: IAiSlashMenuItem[];
|
|
15
|
+
shortcutId?: string;
|
|
16
|
+
shortcuts?: Shortcut[];
|
|
8
17
|
};
|
|
18
|
+
type __VLS_Props = ChatInputProps;
|
|
9
19
|
type __VLS_ModelProps = {
|
|
10
20
|
modelValue: string | TagSchema;
|
|
21
|
+
'cite'?: string;
|
|
11
22
|
};
|
|
12
23
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
13
|
-
declare var __VLS_1: {},
|
|
24
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_12: {
|
|
25
|
+
files: {
|
|
26
|
+
data?: string | undefined;
|
|
27
|
+
filename?: string | undefined;
|
|
28
|
+
id?: string | undefined;
|
|
29
|
+
mimeType?: string | undefined;
|
|
30
|
+
type?: MessageContentType.Binary | undefined;
|
|
31
|
+
url?: string | undefined;
|
|
32
|
+
file?: {
|
|
33
|
+
readonly lastModified: number;
|
|
34
|
+
readonly name: string;
|
|
35
|
+
readonly webkitRelativePath: string;
|
|
36
|
+
readonly size: number;
|
|
37
|
+
readonly type: string;
|
|
38
|
+
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
39
|
+
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
40
|
+
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
41
|
+
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
42
|
+
text: () => Promise<string>;
|
|
43
|
+
} | undefined;
|
|
44
|
+
status?: UploadStatus | undefined;
|
|
45
|
+
}[];
|
|
46
|
+
}, __VLS_47: {}, __VLS_71: {};
|
|
14
47
|
type __VLS_Slots = {} & {
|
|
15
48
|
top?: (props: typeof __VLS_1) => any;
|
|
16
49
|
} & {
|
|
17
|
-
|
|
50
|
+
'input-header'?: (props: typeof __VLS_3) => any;
|
|
51
|
+
} & {
|
|
52
|
+
files?: (props: typeof __VLS_12) => any;
|
|
53
|
+
} & {
|
|
54
|
+
attachment?: (props: typeof __VLS_47) => any;
|
|
55
|
+
} & {
|
|
56
|
+
'send-icon'?: (props: typeof __VLS_71) => any;
|
|
18
57
|
};
|
|
19
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
58
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
59
|
+
focus: () => void;
|
|
60
|
+
triggerSendMessage: () => Promise<void>;
|
|
61
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
62
|
"update:modelValue": (value: string | ({
|
|
21
63
|
text: string;
|
|
22
64
|
type: "text";
|
|
@@ -28,6 +70,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
28
70
|
};
|
|
29
71
|
type: "tag";
|
|
30
72
|
})[][]) => any;
|
|
73
|
+
"update:cite": (value: string) => any;
|
|
74
|
+
} & {
|
|
75
|
+
selectShortcut: (shortcut: Shortcut) => any;
|
|
76
|
+
deleteShortcut: () => any;
|
|
31
77
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
32
78
|
"onUpdate:modelValue"?: ((value: string | ({
|
|
33
79
|
text: string;
|
|
@@ -40,10 +86,14 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
40
86
|
};
|
|
41
87
|
type: "tag";
|
|
42
88
|
})[][]) => any) | undefined;
|
|
89
|
+
onSelectShortcut?: ((shortcut: Shortcut) => any) | undefined;
|
|
90
|
+
onDeleteShortcut?: (() => any) | undefined;
|
|
91
|
+
"onUpdate:cite"?: ((value: string) => any) | undefined;
|
|
43
92
|
}>, {
|
|
44
93
|
placeholder: string;
|
|
45
94
|
prompts: string[];
|
|
46
95
|
resources: IAiSlashMenuItem[];
|
|
96
|
+
inputMaxHeight: number;
|
|
47
97
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
48
98
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
49
99
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MessageStatus } from '../../../ag-ui/types';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
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 {
|
|
2
|
-
type __VLS_Props =
|
|
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;
|
|
@@ -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
|
+
detail: (node: FlowNode) => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
onDetail?: ((node: FlowNode) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 成功状态图标 - 绿色勾选
|
|
3
|
+
*/
|
|
4
|
+
export declare const SuccessIcon: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}>;
|
|
7
|
+
/**
|
|
8
|
+
* 失败状态图标 - 红色叉号
|
|
9
|
+
*/
|
|
10
|
+
export declare const FailedIcon: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}>;
|
|
13
|
+
/**
|
|
14
|
+
* 执行中状态图标 - 蓝色加载
|
|
15
|
+
*/
|
|
16
|
+
export declare const RunningIcon: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}>;
|
|
19
|
+
/**
|
|
20
|
+
* 挂起状态图标 - 橙色暂停
|
|
21
|
+
*/
|
|
22
|
+
export declare const PendingIcon: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
}>;
|
|
25
|
+
/**
|
|
26
|
+
* 展开/折叠箭头图标
|
|
27
|
+
*/
|
|
28
|
+
export declare const ArrowIcon: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}>;
|
|
31
|
+
/**
|
|
32
|
+
* 关闭图标
|
|
33
|
+
*/
|
|
34
|
+
export declare const CloseIcon: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as FlowDetail } from './flow-detail.vue';
|
|
2
|
+
export { default as FlowMessage } from './flow-message.vue';
|
|
3
|
+
export { default as FlowNodeGroup } from './flow-node-group.vue';
|
|
4
|
+
export { default as FlowNodeItem } from './flow-node-item.vue';
|
|
5
|
+
export * from './mock';
|
|
6
|
+
export * from './types';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { FlowMessageContent } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* 流程消息 Mock 数据
|
|
4
|
+
*/
|
|
5
|
+
export declare const mockFlowMessageContent: FlowMessageContent;
|
|
6
|
+
/**
|
|
7
|
+
* 简单的流程消息 Mock 数据(用于快速测试)
|
|
8
|
+
*/
|
|
9
|
+
export declare const mockSimpleFlowContent: FlowMessageContent;
|
|
10
|
+
/**
|
|
11
|
+
* 空数据 Mock(用于测试边界情况)
|
|
12
|
+
*/
|
|
13
|
+
export declare const mockEmptyFlowContent: FlowMessageContent;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import type { BaseMessage } from '../../../ag-ui/types/messages';
|
|
2
|
+
/**
|
|
3
|
+
* 流程节点执行状态
|
|
4
|
+
*/
|
|
5
|
+
export declare enum FlowNodeStatus {
|
|
6
|
+
/** 失败 */
|
|
7
|
+
Failed = "failed",
|
|
8
|
+
/** 挂起 */
|
|
9
|
+
Pending = "pending",
|
|
10
|
+
/** 执行中 */
|
|
11
|
+
Running = "running",
|
|
12
|
+
/** 成功 */
|
|
13
|
+
Success = "success"
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* 详情面板 Tab 类型
|
|
17
|
+
*/
|
|
18
|
+
export type DetailTabType = 'execution' | 'nodeDetail';
|
|
19
|
+
/**
|
|
20
|
+
* 流程执行统计
|
|
21
|
+
*/
|
|
22
|
+
export interface FlowExecutionStats {
|
|
23
|
+
/** 失败数量 */
|
|
24
|
+
failed: number;
|
|
25
|
+
/** 挂起数量 */
|
|
26
|
+
pending: number;
|
|
27
|
+
/** 执行中数量 */
|
|
28
|
+
running: number;
|
|
29
|
+
/** 成功数量 */
|
|
30
|
+
success: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* 流程消息类型
|
|
34
|
+
*/
|
|
35
|
+
export type FlowMessage = BaseMessage<'flow', FlowMessageContent>;
|
|
36
|
+
/**
|
|
37
|
+
* 流程消息内容
|
|
38
|
+
*/
|
|
39
|
+
export interface FlowMessageContent {
|
|
40
|
+
/** 额外文本内容 */
|
|
41
|
+
extraContent?: string;
|
|
42
|
+
/** 节点组列表 */
|
|
43
|
+
groups: FlowNodeGroup[];
|
|
44
|
+
/** 执行统计 */
|
|
45
|
+
stats: FlowExecutionStats;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* 流程节点
|
|
49
|
+
*/
|
|
50
|
+
export interface FlowNode {
|
|
51
|
+
/** 节点详情 */
|
|
52
|
+
detail?: FlowNodeDetail;
|
|
53
|
+
/** 耗时(秒) */
|
|
54
|
+
duration?: number;
|
|
55
|
+
/** 节点 ID */
|
|
56
|
+
id: string;
|
|
57
|
+
/** 节点名称 */
|
|
58
|
+
name: string;
|
|
59
|
+
/** 节点状态 */
|
|
60
|
+
status: FlowNodeStatus;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* 流程节点基础信息
|
|
64
|
+
*/
|
|
65
|
+
export interface FlowNodeBaseInfo {
|
|
66
|
+
/** 执行方案 */
|
|
67
|
+
executePlan: string;
|
|
68
|
+
/** 失败处理 */
|
|
69
|
+
failureHandler: string;
|
|
70
|
+
/** 流程模板 */
|
|
71
|
+
flowTemplate: string;
|
|
72
|
+
/** 是否可选 */
|
|
73
|
+
isOptional: boolean;
|
|
74
|
+
/** 节点名称 */
|
|
75
|
+
nodeName: string;
|
|
76
|
+
/** 步骤名称 */
|
|
77
|
+
stepName: string;
|
|
78
|
+
/** 超时控制 */
|
|
79
|
+
timeoutControl: string;
|
|
80
|
+
/** 总是使用最新版本 */
|
|
81
|
+
useLatestVersion: boolean;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* 流程节点详情
|
|
85
|
+
*/
|
|
86
|
+
export interface FlowNodeDetail {
|
|
87
|
+
/** 基础信息 */
|
|
88
|
+
baseInfo: FlowNodeBaseInfo;
|
|
89
|
+
/** 输入参数 */
|
|
90
|
+
inputParams: FlowNodeParam[];
|
|
91
|
+
/** 输出参数 */
|
|
92
|
+
outputParams: FlowNodeOutput[];
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* 流程节点组
|
|
96
|
+
*/
|
|
97
|
+
export interface FlowNodeGroup {
|
|
98
|
+
/** 总耗时(秒) */
|
|
99
|
+
duration?: number;
|
|
100
|
+
/** 组 ID */
|
|
101
|
+
id: string;
|
|
102
|
+
/** 组名称 */
|
|
103
|
+
name: string;
|
|
104
|
+
/** 节点列表 */
|
|
105
|
+
nodes: FlowNode[];
|
|
106
|
+
/** 组状态 */
|
|
107
|
+
status: FlowNodeStatus;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* 流程节点输出参数
|
|
111
|
+
*/
|
|
112
|
+
export interface FlowNodeOutput {
|
|
113
|
+
/** 变量说明 */
|
|
114
|
+
description: string;
|
|
115
|
+
/** KEY */
|
|
116
|
+
key: string;
|
|
117
|
+
/** 名称 */
|
|
118
|
+
name: string;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* 流程节点参数
|
|
122
|
+
*/
|
|
123
|
+
export interface FlowNodeParam {
|
|
124
|
+
/** 参数名 */
|
|
125
|
+
name: string;
|
|
126
|
+
/** 参数值 */
|
|
127
|
+
value: string;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* 节点配置 Tab 类型
|
|
131
|
+
*/
|
|
132
|
+
export type NodeConfigTabType = 'config' | 'output';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { InfoMessage } from '../../../ag-ui/types/messages';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<Partial<InfoMessage>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Partial<InfoMessage>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|