@huyooo/ai-chat-frontend-vue 0.1.4 → 0.1.7
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/README.md +367 -0
- package/dist/adapter.d.ts +7 -7
- package/dist/adapter.d.ts.map +1 -1
- package/dist/components/ChatPanel.vue.d.ts +120 -9
- package/dist/components/ChatPanel.vue.d.ts.map +1 -1
- package/dist/components/common/ConfirmDialog.vue.d.ts +30 -0
- package/dist/components/common/ConfirmDialog.vue.d.ts.map +1 -0
- package/dist/components/common/CopyButton.vue.d.ts +18 -0
- package/dist/components/common/CopyButton.vue.d.ts.map +1 -0
- package/dist/components/common/IndexingSettings.vue.d.ts +3 -0
- package/dist/components/common/IndexingSettings.vue.d.ts.map +1 -0
- package/dist/components/common/SettingsPanel.vue.d.ts +16 -0
- package/dist/components/common/SettingsPanel.vue.d.ts.map +1 -0
- package/dist/components/common/Toast.vue.d.ts +18 -0
- package/dist/components/common/Toast.vue.d.ts.map +1 -0
- package/dist/components/common/ToggleSwitch.vue.d.ts +10 -0
- package/dist/components/common/ToggleSwitch.vue.d.ts.map +1 -0
- package/dist/components/{chat/ui → header}/ChatHeader.vue.d.ts +5 -3
- package/dist/components/header/ChatHeader.vue.d.ts.map +1 -0
- package/dist/components/input/AtFilePicker.vue.d.ts +21 -0
- package/dist/components/input/AtFilePicker.vue.d.ts.map +1 -0
- package/dist/components/{ChatInput.vue.d.ts → input/ChatInput.vue.d.ts} +16 -14
- package/dist/components/input/ChatInput.vue.d.ts.map +1 -0
- package/dist/components/input/DropdownSelector.vue.d.ts +42 -0
- package/dist/components/input/DropdownSelector.vue.d.ts.map +1 -0
- package/dist/components/input/ImagePreviewModal.vue.d.ts +17 -0
- package/dist/components/input/ImagePreviewModal.vue.d.ts.map +1 -0
- package/dist/components/input/at-views/AtBranchView.vue.d.ts +18 -0
- package/dist/components/input/at-views/AtBranchView.vue.d.ts.map +1 -0
- package/dist/components/input/at-views/AtBrowserView.vue.d.ts +18 -0
- package/dist/components/input/at-views/AtBrowserView.vue.d.ts.map +1 -0
- package/dist/components/input/at-views/AtChatsView.vue.d.ts +18 -0
- package/dist/components/input/at-views/AtChatsView.vue.d.ts.map +1 -0
- package/dist/components/input/at-views/AtDocsView.vue.d.ts +18 -0
- package/dist/components/input/at-views/AtDocsView.vue.d.ts.map +1 -0
- package/dist/components/input/at-views/AtFilesView.vue.d.ts +23 -0
- package/dist/components/input/at-views/AtFilesView.vue.d.ts.map +1 -0
- package/dist/components/input/at-views/AtTerminalsView.vue.d.ts +18 -0
- package/dist/components/input/at-views/AtTerminalsView.vue.d.ts.map +1 -0
- package/dist/components/message/MessageBubble.vue.d.ts +45 -0
- package/dist/components/message/MessageBubble.vue.d.ts.map +1 -0
- package/dist/components/message/PartsRenderer.vue.d.ts +15 -0
- package/dist/components/message/PartsRenderer.vue.d.ts.map +1 -0
- package/dist/components/message/WelcomeMessage.vue.d.ts +14 -0
- package/dist/components/message/WelcomeMessage.vue.d.ts.map +1 -0
- package/dist/components/message/blocks/CodeBlock.vue.d.ts +11 -0
- package/dist/components/message/blocks/CodeBlock.vue.d.ts.map +1 -0
- package/dist/components/{chat/SearchResultBlock.vue.d.ts → message/blocks/TextBlock.vue.d.ts} +3 -4
- package/dist/components/message/blocks/TextBlock.vue.d.ts.map +1 -0
- package/dist/components/message/blocks/index.d.ts +6 -0
- package/dist/components/message/blocks/index.d.ts.map +1 -0
- package/dist/components/message/parts/CollapsibleCard.vue.d.ts +45 -0
- package/dist/components/message/parts/CollapsibleCard.vue.d.ts.map +1 -0
- package/dist/components/{chat/ToolCallBlock.vue.d.ts → message/parts/ErrorPart.vue.d.ts} +4 -5
- package/dist/components/message/parts/ErrorPart.vue.d.ts.map +1 -0
- package/dist/components/{chat/ThinkingBlock.vue.d.ts → message/parts/ImagePart.vue.d.ts} +3 -3
- package/dist/components/message/parts/ImagePart.vue.d.ts.map +1 -0
- package/dist/components/message/parts/SearchPart.vue.d.ts +12 -0
- package/dist/components/message/parts/SearchPart.vue.d.ts.map +1 -0
- package/dist/components/{chat/messages/ExecutionSteps.vue.d.ts → message/parts/TextPart.vue.d.ts} +2 -9
- package/dist/components/message/parts/TextPart.vue.d.ts.map +1 -0
- package/dist/components/message/parts/ThinkingPart.vue.d.ts +12 -0
- package/dist/components/message/parts/ThinkingPart.vue.d.ts.map +1 -0
- package/dist/components/message/parts/ToolCallPart.vue.d.ts +19 -0
- package/dist/components/message/parts/ToolCallPart.vue.d.ts.map +1 -0
- package/dist/components/message/parts/ToolResultPart.vue.d.ts +14 -0
- package/dist/components/message/parts/ToolResultPart.vue.d.ts.map +1 -0
- package/dist/components/message/parts/index.d.ts +12 -0
- package/dist/components/message/parts/index.d.ts.map +1 -0
- package/dist/components/message/tool-results/DefaultToolResult.vue.d.ts +4 -0
- package/dist/components/message/tool-results/DefaultToolResult.vue.d.ts.map +1 -0
- package/dist/components/message/tool-results/SearchResults.vue.d.ts +4 -0
- package/dist/components/message/tool-results/SearchResults.vue.d.ts.map +1 -0
- package/dist/components/message/tool-results/WeatherCard.vue.d.ts +4 -0
- package/dist/components/message/tool-results/WeatherCard.vue.d.ts.map +1 -0
- package/dist/components/message/tool-results/index.d.ts +7 -0
- package/dist/components/message/tool-results/index.d.ts.map +1 -0
- package/dist/components/message/welcome-types.d.ts +28 -0
- package/dist/components/message/welcome-types.d.ts.map +1 -0
- package/dist/composables/useChat.d.ts +99 -44
- package/dist/composables/useChat.d.ts.map +1 -1
- package/dist/composables/useImageUpload.d.ts +55 -0
- package/dist/composables/useImageUpload.d.ts.map +1 -0
- package/dist/index.d.ts +28 -28
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +55889 -1359
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +113 -53
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/fileIcon.d.ts +13 -0
- package/dist/utils/fileIcon.d.ts.map +1 -0
- package/package.json +12 -6
- package/src/adapter.ts +12 -70
- package/src/components/ChatPanel.vue +329 -110
- package/src/components/common/ConfirmDialog.vue +208 -0
- package/src/components/common/CopyButton.vue +71 -0
- package/src/components/common/IndexingSettings.vue +580 -0
- package/src/components/common/SettingsPanel.vue +293 -0
- package/src/components/common/Toast.vue +90 -0
- package/src/components/common/ToggleSwitch.vue +75 -0
- package/src/components/{chat/ui → header}/ChatHeader.vue +170 -93
- package/src/components/input/AtFilePicker.vue +657 -0
- package/src/components/input/ChatInput.vue +653 -0
- package/src/components/input/DropdownSelector.vue +322 -0
- package/src/components/input/ImagePreviewModal.vue +238 -0
- package/src/components/input/at-views/AtBranchView.vue +63 -0
- package/src/components/input/at-views/AtBrowserView.vue +63 -0
- package/src/components/input/at-views/AtChatsView.vue +63 -0
- package/src/components/input/at-views/AtDocsView.vue +63 -0
- package/src/components/input/at-views/AtFilesView.vue +255 -0
- package/src/components/input/at-views/AtTerminalsView.vue +63 -0
- package/src/components/message/ContentRenderer.vue +61 -0
- package/src/components/message/MessageBubble.vue +411 -0
- package/src/components/message/PartsRenderer.vue +101 -0
- package/src/components/message/ToolResultRenderer.vue +27 -0
- package/src/components/message/WelcomeMessage.vue +308 -0
- package/src/components/message/blocks/CodeBlock.vue +113 -0
- package/src/components/message/blocks/TextBlock.vue +21 -0
- package/src/components/message/blocks/index.ts +6 -0
- package/src/components/message/parts/CollapsibleCard.vue +135 -0
- package/src/components/message/parts/ErrorPart.vue +51 -0
- package/src/components/message/parts/ImagePart.vue +98 -0
- package/src/components/message/parts/SearchPart.vue +101 -0
- package/src/components/message/parts/TextPart.vue +28 -0
- package/src/components/message/parts/ThinkingPart.vue +54 -0
- package/src/components/message/parts/ToolCallPart.vue +460 -0
- package/src/components/message/parts/ToolResultPart.vue +78 -0
- package/src/components/message/parts/index.ts +13 -0
- package/src/components/message/tool-results/DefaultToolResult.vue +43 -0
- package/src/components/message/tool-results/SearchResults.vue +133 -0
- package/src/components/message/tool-results/WeatherCard.vue +139 -0
- package/src/components/message/tool-results/index.ts +7 -0
- package/src/components/message/welcome-types.ts +47 -0
- package/src/composables/useChat.ts +807 -155
- package/src/composables/useImageUpload.ts +228 -0
- package/src/index.ts +96 -49
- package/src/styles.css +47 -0
- package/src/types/index.ts +146 -98
- package/src/utils/fileIcon.ts +49 -0
- package/dist/components/ChatInput.vue.d.ts.map +0 -1
- package/dist/components/chat/SearchResultBlock.vue.d.ts.map +0 -1
- package/dist/components/chat/ThinkingBlock.vue.d.ts.map +0 -1
- package/dist/components/chat/ToolCallBlock.vue.d.ts.map +0 -1
- package/dist/components/chat/messages/ExecutionSteps.vue.d.ts.map +0 -1
- package/dist/components/chat/messages/MessageBubble.vue.d.ts +0 -28
- package/dist/components/chat/messages/MessageBubble.vue.d.ts.map +0 -1
- package/dist/components/chat/ui/ChatHeader.vue.d.ts.map +0 -1
- package/dist/components/chat/ui/WelcomeMessage.vue.d.ts +0 -7
- package/dist/components/chat/ui/WelcomeMessage.vue.d.ts.map +0 -1
- package/dist/preload/preload.d.ts +0 -6
- package/dist/preload/preload.d.ts.map +0 -1
- package/src/components/ChatInput.vue +0 -649
- package/src/components/chat/SearchResultBlock.vue +0 -155
- package/src/components/chat/ThinkingBlock.vue +0 -109
- package/src/components/chat/ToolCallBlock.vue +0 -213
- package/src/components/chat/messages/ExecutionSteps.vue +0 -281
- package/src/components/chat/messages/MessageBubble.vue +0 -272
- package/src/components/chat/ui/WelcomeMessage.vue +0 -135
- package/src/preload/preload.ts +0 -79
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
checked?: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
change: (value: boolean) => any;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
7
|
+
onChange?: ((value: boolean) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=ToggleSwitch.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToggleSwitch.vue.d.ts","sourceRoot":"","sources":["../../../src/components/common/ToggleSwitch.vue"],"names":[],"mappings":"AA6EA,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AA8DF,wBAQG"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { SessionRecord } from '
|
|
1
|
+
import { SessionRecord } from '../../types';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
sessions: SessionRecord[];
|
|
4
4
|
currentSessionId?: string | null;
|
|
5
5
|
showClose?: boolean;
|
|
6
6
|
};
|
|
7
7
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
close: () => any;
|
|
8
9
|
"new-session": () => any;
|
|
9
10
|
"switch-session": (sessionId: string) => any;
|
|
10
11
|
"delete-session": (sessionId: string) => any;
|
|
11
|
-
|
|
12
|
+
"hide-session": (sessionId: string, hidden: boolean) => any;
|
|
12
13
|
"clear-all": () => any;
|
|
13
14
|
"close-others": () => any;
|
|
14
15
|
export: () => any;
|
|
@@ -16,10 +17,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
16
17
|
feedback: () => any;
|
|
17
18
|
settings: () => any;
|
|
18
19
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
onClose?: (() => any) | undefined;
|
|
19
21
|
"onNew-session"?: (() => any) | undefined;
|
|
20
22
|
"onSwitch-session"?: ((sessionId: string) => any) | undefined;
|
|
21
23
|
"onDelete-session"?: ((sessionId: string) => any) | undefined;
|
|
22
|
-
|
|
24
|
+
"onHide-session"?: ((sessionId: string, hidden: boolean) => any) | undefined;
|
|
23
25
|
"onClear-all"?: (() => any) | undefined;
|
|
24
26
|
"onClose-others"?: (() => any) | undefined;
|
|
25
27
|
onExport?: (() => any) | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/header/ChatHeader.vue"],"names":[],"mappings":"AAiJA;AAwmBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAymBF,wBASG"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ChatAdapter } from '../../adapter';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
visible: boolean;
|
|
4
|
+
adapter: ChatAdapter;
|
|
5
|
+
initialDir?: string;
|
|
6
|
+
/** 锚点元素(用于定位下拉面板) */
|
|
7
|
+
anchorEl?: HTMLElement | null;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
close: () => any;
|
|
11
|
+
select: (path: string) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onClose?: (() => any) | undefined;
|
|
14
|
+
onSelect?: ((path: string) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
16
|
+
searchRef: HTMLInputElement;
|
|
17
|
+
bodyRef: HTMLDivElement;
|
|
18
|
+
viewRef: unknown;
|
|
19
|
+
}, any>;
|
|
20
|
+
export default _default;
|
|
21
|
+
//# sourceMappingURL=AtFilePicker.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AtFilePicker.vue.d.ts","sourceRoot":"","sources":["../../../src/components/input/AtFilePicker.vue"],"names":[],"mappings":"AA2FA;AAqpBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAWjD,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,WAAW,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CAC/B,CAAC;;;;;;;;;;;;AAysBF,wBASG"}
|
|
@@ -1,26 +1,29 @@
|
|
|
1
|
-
import { ChatMode,
|
|
1
|
+
import { ChatMode, ModelOption } from '../../types';
|
|
2
|
+
import { ImageData } from '../../adapter';
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
/** 变体模式:input-底部输入框,message-历史消息 */
|
|
4
5
|
variant?: 'input' | 'message';
|
|
5
6
|
/** 受控值(用于历史消息编辑) */
|
|
6
7
|
value?: string;
|
|
7
|
-
selectedImages?: string[];
|
|
8
8
|
isLoading?: boolean;
|
|
9
9
|
mode?: ChatMode;
|
|
10
10
|
model?: string;
|
|
11
|
-
|
|
11
|
+
/** 模型列表 */
|
|
12
|
+
models?: ModelOption[];
|
|
12
13
|
webSearchEnabled?: boolean;
|
|
13
14
|
thinkingEnabled?: boolean;
|
|
14
15
|
};
|
|
15
16
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
16
17
|
focus: () => void | undefined;
|
|
17
18
|
setText: (text: string) => void;
|
|
19
|
+
/** 在光标位置插入文本(用于 @ 上下文) */
|
|
20
|
+
insertText: (text: string) => void;
|
|
18
21
|
clear: () => void;
|
|
22
|
+
/** 添加图片 */
|
|
23
|
+
addImages: (files: File[]) => void;
|
|
19
24
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
25
|
cancel: () => any;
|
|
21
|
-
send: (text: string) => any;
|
|
22
|
-
"remove-image": (index: number) => any;
|
|
23
|
-
"upload-image": () => any;
|
|
26
|
+
send: (text: string, images?: ImageData[] | undefined) => any;
|
|
24
27
|
"at-context": () => any;
|
|
25
28
|
"update:mode": (mode: import('@huyooo/ai-chat-bridge-electron/renderer').ChatMode) => any;
|
|
26
29
|
"update:model": (model: string) => any;
|
|
@@ -28,27 +31,26 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
28
31
|
"update:thinking": (enabled: boolean) => any;
|
|
29
32
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
30
33
|
onCancel?: (() => any) | undefined;
|
|
31
|
-
onSend?: ((text: string) => any) | undefined;
|
|
32
|
-
"onRemove-image"?: ((index: number) => any) | undefined;
|
|
33
|
-
"onUpload-image"?: (() => any) | undefined;
|
|
34
|
+
onSend?: ((text: string, images?: ImageData[] | undefined) => any) | undefined;
|
|
34
35
|
"onAt-context"?: (() => any) | undefined;
|
|
35
36
|
"onUpdate:mode"?: ((mode: import('@huyooo/ai-chat-bridge-electron/renderer').ChatMode) => any) | undefined;
|
|
36
37
|
"onUpdate:model"?: ((model: string) => any) | undefined;
|
|
37
38
|
"onUpdate:webSearch"?: ((enabled: boolean) => any) | undefined;
|
|
38
39
|
"onUpdate:thinking"?: ((enabled: boolean) => any) | undefined;
|
|
39
40
|
}>, {
|
|
41
|
+
isLoading: boolean;
|
|
40
42
|
model: string;
|
|
41
43
|
mode: ChatMode;
|
|
42
|
-
variant: "input" | "message";
|
|
43
|
-
value: string;
|
|
44
|
-
selectedImages: string[];
|
|
45
|
-
isLoading: boolean;
|
|
46
|
-
models: ModelConfig[];
|
|
47
44
|
webSearchEnabled: boolean;
|
|
48
45
|
thinkingEnabled: boolean;
|
|
46
|
+
value: string;
|
|
47
|
+
variant: "input" | "message";
|
|
48
|
+
models: ModelOption[];
|
|
49
49
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
50
50
|
containerRef: HTMLDivElement;
|
|
51
51
|
inputRef: HTMLTextAreaElement;
|
|
52
|
+
imageInputRef: HTMLInputElement;
|
|
53
|
+
atSelectorRef: HTMLDivElement;
|
|
52
54
|
}, HTMLDivElement>;
|
|
53
55
|
export default _default;
|
|
54
56
|
//# sourceMappingURL=ChatInput.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/input/ChatInput.vue"],"names":[],"mappings":"AAsIA;AAipBA,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAIzD,OAAO,KAAK,EAAe,SAAS,EAAE,MAAM,eAAe,CAAC;AAG5D,KAAK,WAAW,GAAG;IACf,oCAAoC;IACpC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW;IACX,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;;;oBA8Pc,MAAM;IAMtB,0BAA0B;uBACP,MAAM;;IA4BzB,WAAW;uBACQ,IAAI,EAAE;;;;;;;;;;;;;;;;;;eAzSX,OAAO;WAEX,MAAM;UADP,QAAQ;sBAII,OAAO;qBACR,OAAO;WAPjB,MAAM;aAFJ,OAAO,GAAG,SAAS;YAOpB,WAAW,EAAE;;;;;;;AA+uB1B,wBAWG"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/** 下拉选项 */
|
|
2
|
+
export interface DropdownOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
/** 分组名称(由后端决定,前端只负责渲染,必填) */
|
|
7
|
+
group?: string;
|
|
8
|
+
}
|
|
9
|
+
/** 分组后的选项(由后端提供) */
|
|
10
|
+
export interface GroupedOptions {
|
|
11
|
+
[groupName: string]: DropdownOption[];
|
|
12
|
+
}
|
|
13
|
+
type __VLS_Props = {
|
|
14
|
+
/** 当前选中的值 */
|
|
15
|
+
value: string;
|
|
16
|
+
/** 选项列表(扁平列表) */
|
|
17
|
+
options?: DropdownOption[];
|
|
18
|
+
/** 分组后的选项(优先级高于 options,由后端提供) */
|
|
19
|
+
groupedOptions?: GroupedOptions;
|
|
20
|
+
/** 占位符文本 */
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
/** 容器引用,用于计算下拉方向 */
|
|
23
|
+
containerRef?: HTMLElement | null;
|
|
24
|
+
/** 是否禁用 */
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
/** 下拉菜单对齐方式 */
|
|
27
|
+
align?: 'left' | 'right';
|
|
28
|
+
};
|
|
29
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
|
+
select: (value: string) => any;
|
|
31
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
32
|
+
onSelect?: ((value: string) => any) | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
placeholder: string;
|
|
36
|
+
containerRef: HTMLElement | null;
|
|
37
|
+
align: "left" | "right";
|
|
38
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
39
|
+
selectorRef: HTMLDivElement;
|
|
40
|
+
}, HTMLDivElement>;
|
|
41
|
+
export default _default;
|
|
42
|
+
//# sourceMappingURL=DropdownSelector.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/input/DropdownSelector.vue"],"names":[],"mappings":"AAmDA;AAuUA,WAAW;AACX,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,oBAAoB;AACpB,MAAM,WAAW,cAAc;IAC7B,CAAC,SAAS,EAAE,MAAM,GAAG,cAAc,EAAE,CAAC;CACvC;AAED,KAAK,WAAW,GAAG;IACf,aAAa;IACb,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB;IACjB,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B,kCAAkC;IAClC,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,YAAY;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB;IACpB,YAAY,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAClC,WAAW;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B,CAAC;;;;;;cAHW,OAAO;iBAJJ,MAAM;kBAEL,WAAW,GAAG,IAAI;WAIzB,MAAM,GAAG,OAAO;;;;AA8T5B,wBAUG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
visible: boolean;
|
|
3
|
+
images: string[];
|
|
4
|
+
initialIndex?: number;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_PublicProps = {
|
|
7
|
+
'index'?: number;
|
|
8
|
+
} & __VLS_Props;
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
close: () => any;
|
|
11
|
+
"update:index": (...args: unknown[]) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
|
+
onClose?: (() => any) | undefined;
|
|
14
|
+
"onUpdate:index"?: ((...args: unknown[]) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
export default _default;
|
|
17
|
+
//# sourceMappingURL=ImagePreviewModal.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImagePreviewModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/input/ImagePreviewModal.vue"],"names":[],"mappings":"AA4CA;AAmPA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AA+DF,KAAK,iBAAiB,GAAG;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,WAAW,CAAC;;;;;;;;AAyKhB,wBAQG"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
query: string;
|
|
3
|
+
activeIndex: number;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
6
|
+
getActivePath: () => null;
|
|
7
|
+
confirmActive: () => void;
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
select: (path: string) => any;
|
|
10
|
+
"set-active": (index: number) => any;
|
|
11
|
+
"update-count": (count: number) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onSelect?: ((path: string) => any) | undefined;
|
|
14
|
+
"onSet-active"?: ((index: number) => any) | undefined;
|
|
15
|
+
"onUpdate-count"?: ((count: number) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
|
+
export default _default;
|
|
18
|
+
//# sourceMappingURL=AtBranchView.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AtBranchView.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/input/at-views/AtBranchView.vue"],"names":[],"mappings":"AAQA;AAmEA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;;;;;;;;;;;;;AAwFF,wBASG"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
query: string;
|
|
3
|
+
activeIndex: number;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
6
|
+
getActivePath: () => null;
|
|
7
|
+
confirmActive: () => void;
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
select: (path: string) => any;
|
|
10
|
+
"set-active": (index: number) => any;
|
|
11
|
+
"update-count": (count: number) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onSelect?: ((path: string) => any) | undefined;
|
|
14
|
+
"onSet-active"?: ((index: number) => any) | undefined;
|
|
15
|
+
"onUpdate-count"?: ((count: number) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
|
+
export default _default;
|
|
18
|
+
//# sourceMappingURL=AtBrowserView.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AtBrowserView.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/input/at-views/AtBrowserView.vue"],"names":[],"mappings":"AAQA;AAmEA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;;;;;;;;;;;;;AAwFF,wBASG"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
query: string;
|
|
3
|
+
activeIndex: number;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
6
|
+
getActivePath: () => null;
|
|
7
|
+
confirmActive: () => void;
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
select: (path: string) => any;
|
|
10
|
+
"set-active": (index: number) => any;
|
|
11
|
+
"update-count": (count: number) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onSelect?: ((path: string) => any) | undefined;
|
|
14
|
+
"onSet-active"?: ((index: number) => any) | undefined;
|
|
15
|
+
"onUpdate-count"?: ((count: number) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
|
+
export default _default;
|
|
18
|
+
//# sourceMappingURL=AtChatsView.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AtChatsView.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/input/at-views/AtChatsView.vue"],"names":[],"mappings":"AAQA;AAmEA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;;;;;;;;;;;;;AAwFF,wBASG"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
query: string;
|
|
3
|
+
activeIndex: number;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
6
|
+
getActivePath: () => null;
|
|
7
|
+
confirmActive: () => void;
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
select: (path: string) => any;
|
|
10
|
+
"set-active": (index: number) => any;
|
|
11
|
+
"update-count": (count: number) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onSelect?: ((path: string) => any) | undefined;
|
|
14
|
+
"onSet-active"?: ((index: number) => any) | undefined;
|
|
15
|
+
"onUpdate-count"?: ((count: number) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
|
+
export default _default;
|
|
18
|
+
//# sourceMappingURL=AtDocsView.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AtDocsView.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/input/at-views/AtDocsView.vue"],"names":[],"mappings":"AAQA;AAmEA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;;;;;;;;;;;;;AAwFF,wBASG"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ChatAdapter } from '../../../adapter';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
adapter: ChatAdapter;
|
|
4
|
+
initialDir?: string;
|
|
5
|
+
query: string;
|
|
6
|
+
activeIndex: number;
|
|
7
|
+
};
|
|
8
|
+
declare function getActivePath(): string | null;
|
|
9
|
+
declare function confirmActive(): void;
|
|
10
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
11
|
+
getActivePath: typeof getActivePath;
|
|
12
|
+
confirmActive: typeof confirmActive;
|
|
13
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
select: (path: string) => any;
|
|
15
|
+
"set-active": (index: number) => any;
|
|
16
|
+
"update-count": (count: number) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onSelect?: ((path: string) => any) | undefined;
|
|
19
|
+
"onSet-active"?: ((index: number) => any) | undefined;
|
|
20
|
+
"onUpdate-count"?: ((count: number) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
22
|
+
export default _default;
|
|
23
|
+
//# sourceMappingURL=AtFilesView.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AtFilesView.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/input/at-views/AtFilesView.vue"],"names":[],"mappings":"AAqCA;AAmQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAIpD,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,WAAW,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAuEF,iBAAS,aAAa,IAAI,MAAM,GAAG,IAAI,CAGtC;AAGD,iBAAS,aAAa,SAKrB;;;;;;;;;;;;;AAyKD,wBASG"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
query: string;
|
|
3
|
+
activeIndex: number;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
6
|
+
getActivePath: () => null;
|
|
7
|
+
confirmActive: () => void;
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
select: (path: string) => any;
|
|
10
|
+
"set-active": (index: number) => any;
|
|
11
|
+
"update-count": (count: number) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onSelect?: ((path: string) => any) | undefined;
|
|
14
|
+
"onSet-active"?: ((index: number) => any) | undefined;
|
|
15
|
+
"onUpdate-count"?: ((count: number) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
|
+
export default _default;
|
|
18
|
+
//# sourceMappingURL=AtTerminalsView.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AtTerminalsView.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/input/at-views/AtTerminalsView.vue"],"names":[],"mappings":"AAQA;AAmEA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;;;;;;;;;;;;;AAwFF,wBASG"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ContentPart } from '../../types';
|
|
2
|
+
import { ChatAdapter } from '../../adapter';
|
|
3
|
+
import { AutoRunConfig } from '@huyooo/ai-chat-bridge-electron/renderer';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
role: 'user' | 'assistant';
|
|
6
|
+
/** 内容 parts 数组 - 新架构核心 */
|
|
7
|
+
parts: ContentPart[];
|
|
8
|
+
/** 生成此消息时使用的模型 */
|
|
9
|
+
model?: string;
|
|
10
|
+
/** 生成此消息时使用的模式 (ask/agent) */
|
|
11
|
+
mode?: string;
|
|
12
|
+
/** 用户上传的图片 */
|
|
13
|
+
images?: string[];
|
|
14
|
+
/** 是否正在加载 */
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
/** 是否已复制 */
|
|
17
|
+
copied?: boolean;
|
|
18
|
+
/** 消息时间戳 */
|
|
19
|
+
timestamp?: Date | string | number;
|
|
20
|
+
/** 是否支持重新发送(仅用户消息) */
|
|
21
|
+
onSend?: (text: string) => void;
|
|
22
|
+
/** 步骤折叠模式 */
|
|
23
|
+
stepsExpandedType?: 'open' | 'close' | 'auto';
|
|
24
|
+
/** 工具调用相关 - 通过 props 传递 */
|
|
25
|
+
adapter?: ChatAdapter;
|
|
26
|
+
autoRunConfig?: AutoRunConfig;
|
|
27
|
+
onSaveConfig?: (config: AutoRunConfig) => Promise<void>;
|
|
28
|
+
};
|
|
29
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
|
+
copy: () => any;
|
|
31
|
+
send: (text: string) => any;
|
|
32
|
+
regenerate: () => any;
|
|
33
|
+
"view-image": (url: string) => any;
|
|
34
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
35
|
+
onCopy?: (() => any) | undefined;
|
|
36
|
+
onSend?: ((text: string) => any) | undefined;
|
|
37
|
+
onRegenerate?: (() => any) | undefined;
|
|
38
|
+
"onView-image"?: ((url: string) => any) | undefined;
|
|
39
|
+
}>, {
|
|
40
|
+
loading: boolean;
|
|
41
|
+
copied: boolean;
|
|
42
|
+
stepsExpandedType: "open" | "close" | "auto";
|
|
43
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
44
|
+
export default _default;
|
|
45
|
+
//# sourceMappingURL=MessageBubble.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageBubble.vue.d.ts","sourceRoot":"","sources":["../../../src/components/message/MessageBubble.vue"],"names":[],"mappings":"AA2EA;AAiaA,OAAO,KAAK,EAAE,WAAW,EAA2E,MAAM,aAAa,CAAA;AACvH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAA;AAkB7E,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,GAAG,WAAW,CAAA;IAC1B,0BAA0B;IAC1B,KAAK,EAAE,WAAW,EAAE,CAAA;IACpB,kBAAkB;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,8BAA8B;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,cAAc;IACd,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,aAAa;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY;IACZ,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,YAAY;IACZ,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,CAAA;IAClC,sBAAsB;IACtB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/B,aAAa;IACb,iBAAiB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAA;IAC7C,2BAA2B;IAC3B,OAAO,CAAC,EAAE,WAAW,CAAA;IACrB,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CACxD,CAAC;;;;;;;;;;;;aAbU,OAAO;YAER,OAAO;uBAMI,MAAM,GAAG,OAAO,GAAG,MAAM;;AAoX/C,wBASG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ContentPart, StepsExpandedType } from '../../types';
|
|
2
|
+
import { ChatAdapter } from '../../adapter';
|
|
3
|
+
import { AutoRunConfig } from '@huyooo/ai-chat-bridge-electron/renderer';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
parts: ContentPart[];
|
|
6
|
+
expandedType?: StepsExpandedType;
|
|
7
|
+
adapter?: ChatAdapter;
|
|
8
|
+
autoRunConfig?: AutoRunConfig;
|
|
9
|
+
onSaveConfig?: (config: AutoRunConfig) => Promise<void>;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
|
+
expandedType: StepsExpandedType;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=PartsRenderer.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PartsRenderer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/message/PartsRenderer.vue"],"names":[],"mappings":"AAoEA;AAuGA,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAA;AAW7E,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,WAAW,EAAE,CAAA;IACpB,YAAY,CAAC,EAAE,iBAAiB,CAAA;IAEhC,OAAO,CAAC,EAAE,WAAW,CAAA;IACrB,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CACxD,CAAC;;kBALe,iBAAiB;;AAuLlC,wBAQG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WelcomeConfig } from './welcome-types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** 欢迎页配置(可部分配置,未配置项使用默认值) */
|
|
4
|
+
config?: Partial<WelcomeConfig>;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
"quick-action": (prompt: string) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
"onQuick-action"?: ((prompt: string) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
config: Partial<WelcomeConfig>;
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
13
|
+
export default _default;
|
|
14
|
+
//# sourceMappingURL=WelcomeMessage.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WelcomeMessage.vue.d.ts","sourceRoot":"","sources":["../../../src/components/message/WelcomeMessage.vue"],"names":[],"mappings":"AAiDA;AAwTA,OAAO,EAAE,KAAK,aAAa,EAAwB,MAAM,iBAAiB,CAAC;AAE3E,KAAK,WAAW,GAAG;IACjB,6BAA6B;IAC7B,MAAM,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CACjC,CAAC;;;;;;YADS,OAAO,CAAC,aAAa,CAAC;;AA6PjC,wBASG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CodeBlock } from '@huyooo/ai-chat-shared';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
block: CodeBlock;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
copy: (code: string) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
onCopy?: ((code: string) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=CodeBlock.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/message/blocks/CodeBlock.vue"],"names":[],"mappings":"AAqHA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAGvD,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,SAAS,CAAA;CACjB,CAAC;;;;;;AAwHF,wBAQG"}
|
package/dist/components/{chat/SearchResultBlock.vue.d.ts → message/blocks/TextBlock.vue.d.ts}
RENAMED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TextBlock } from '@huyooo/ai-chat-shared';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
|
|
4
|
-
searching: boolean;
|
|
3
|
+
block: TextBlock;
|
|
5
4
|
};
|
|
6
5
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
6
|
export default _default;
|
|
8
|
-
//# sourceMappingURL=
|
|
7
|
+
//# sourceMappingURL=TextBlock.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/message/blocks/TextBlock.vue"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAEvD,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,SAAS,CAAA;CACjB,CAAC;;AA4CF,wBAOG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/message/blocks/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 图标名称 */
|
|
3
|
+
icon: string;
|
|
4
|
+
/** 图标颜色 */
|
|
5
|
+
iconColor?: string;
|
|
6
|
+
/** 标题 */
|
|
7
|
+
title: string;
|
|
8
|
+
/** 标题颜色 */
|
|
9
|
+
titleColor?: string;
|
|
10
|
+
/** 副标题 */
|
|
11
|
+
subtitle?: string;
|
|
12
|
+
/** 是否展开 */
|
|
13
|
+
modelValue: boolean;
|
|
14
|
+
/** 图标是否旋转(加载状态) */
|
|
15
|
+
spinning?: boolean;
|
|
16
|
+
/** 是否可折叠(显示 chevron) */
|
|
17
|
+
collapsible?: boolean;
|
|
18
|
+
};
|
|
19
|
+
declare function __VLS_template(): {
|
|
20
|
+
attrs: Partial<{}>;
|
|
21
|
+
slots: {
|
|
22
|
+
'header-actions'?(_: {}): any;
|
|
23
|
+
default?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
refs: {};
|
|
26
|
+
rootEl: HTMLDivElement;
|
|
27
|
+
};
|
|
28
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
29
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
|
+
"update:modelValue": (value: boolean) => any;
|
|
31
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
32
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
iconColor: string;
|
|
35
|
+
spinning: boolean;
|
|
36
|
+
collapsible: boolean;
|
|
37
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
38
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=CollapsibleCard.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollapsibleCard.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/message/parts/CollapsibleCard.vue"],"names":[],"mappings":"AA2BA;AA2IA,KAAK,WAAW,GAAG;IACjB,WAAW;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS;IACT,KAAK,EAAE,MAAM,CAAA;IACb,WAAW;IACX,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU;IACV,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW;IACX,UAAU,EAAE,OAAO,CAAA;IACnB,mBAAmB;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,wBAAwB;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;AAmBF,iBAAS,cAAc;WA+HT,OAAO,IAA6B;;kCAXX,GAAG;yBACZ,GAAG;;;;EAehC;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;eAjLP,MAAM;cAUP,OAAO;iBAEJ,OAAO;wFA8KrB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
status: 'running' | 'success' | 'error';
|
|
2
|
+
message: string;
|
|
3
|
+
category?: string;
|
|
4
|
+
retryable?: boolean;
|
|
6
5
|
};
|
|
7
6
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
8
7
|
export default _default;
|
|
9
|
-
//# sourceMappingURL=
|
|
8
|
+
//# sourceMappingURL=ErrorPart.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorPart.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/message/parts/ErrorPart.vue"],"names":[],"mappings":"AAWA;AAwDA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;;AAoFF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
url: string;
|
|
3
|
+
alt?: string;
|
|
4
4
|
};
|
|
5
5
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
6
|
export default _default;
|
|
7
|
-
//# sourceMappingURL=
|
|
7
|
+
//# sourceMappingURL=ImagePart.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImagePart.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/message/parts/ImagePart.vue"],"names":[],"mappings":"AAqBA;AAuGA,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAC;;AAuHF,wBAOG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SearchResult, StepsExpandedType } from '../../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
query?: string;
|
|
4
|
+
results?: SearchResult[];
|
|
5
|
+
status: 'running' | 'done';
|
|
6
|
+
expandedType?: StepsExpandedType;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
9
|
+
expandedType: StepsExpandedType;
|
|
10
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
|
+
export default _default;
|
|
12
|
+
//# sourceMappingURL=SearchPart.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchPart.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/message/parts/SearchPart.vue"],"names":[],"mappings":"AAuBA;AAyGA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAErE,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IACxB,MAAM,EAAE,SAAS,GAAG,MAAM,CAAA;IAC1B,YAAY,CAAC,EAAE,iBAAiB,CAAA;CACjC,CAAC;;kBADe,iBAAiB;;AAmHlC,wBAQG"}
|