@deep-eye/core 0.9.1 → 1.1.0
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/CHANGELOG.md +93 -0
- package/README.md +113 -174
- package/dist/components/chat/ChatBot.vue.d.ts +48 -17
- package/dist/components/chat/ChatBot.vue.d.ts.map +1 -1
- package/dist/components/chat/attachmentController.d.ts +25 -0
- package/dist/components/chat/attachmentController.d.ts.map +1 -0
- package/dist/components/chat/attachments.d.ts +12 -0
- package/dist/components/chat/attachments.d.ts.map +1 -0
- package/dist/components/chat/chatContext.d.ts +14 -0
- package/dist/components/chat/chatContext.d.ts.map +1 -0
- package/dist/components/chat/chatErrors.d.ts +16 -0
- package/dist/components/chat/chatErrors.d.ts.map +1 -0
- package/dist/components/chat/chatQueue.d.ts +6 -0
- package/dist/components/chat/chatQueue.d.ts.map +1 -0
- package/dist/components/chat/components/ArtifactPreview.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatActionbar.vue.d.ts +3 -3
- package/dist/components/chat/components/ChatActionbar.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatAttachments.vue.d.ts +12 -0
- package/dist/components/chat/components/ChatAttachments.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatFilePreview.vue.d.ts +45 -0
- package/dist/components/chat/components/ChatFilePreview.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatFilePreviewPanel.vue.d.ts +24 -0
- package/dist/components/chat/components/ChatFilePreviewPanel.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatImageLightbox.vue.d.ts +16 -0
- package/dist/components/chat/components/ChatImageLightbox.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatMediaPreview.vue.d.ts +9 -0
- package/dist/components/chat/components/ChatMediaPreview.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatMessage.vue.d.ts +43 -2
- package/dist/components/chat/components/ChatMessage.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatOfficePreview.vue.d.ts +9 -0
- package/dist/components/chat/components/ChatOfficePreview.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatProvider.vue.d.ts +73 -0
- package/dist/components/chat/components/ChatProvider.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatQueue.vue.d.ts +16 -0
- package/dist/components/chat/components/ChatQueue.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatReasoning.vue.d.ts +21 -0
- package/dist/components/chat/components/ChatReasoning.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatSender.vue.d.ts +34 -17
- package/dist/components/chat/components/ChatSender.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ChatSidebarResizeHandle.vue.d.ts +13 -0
- package/dist/components/chat/components/ChatSidebarResizeHandle.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ChatToolGroup.vue.d.ts +28 -0
- package/dist/components/chat/components/ChatToolGroup.vue.d.ts.map +1 -0
- package/dist/components/chat/components/ConversationList.vue.d.ts +129 -0
- package/dist/components/chat/components/ConversationList.vue.d.ts.map +1 -0
- package/dist/components/chat/components/InputContentParts.vue.d.ts +8 -0
- package/dist/components/chat/components/InputContentParts.vue.d.ts.map +1 -0
- package/dist/components/chat/components/MessageBubble.vue.d.ts +43 -2
- package/dist/components/chat/components/MessageBubble.vue.d.ts.map +1 -1
- package/dist/components/chat/components/TextPartRenderer.vue.d.ts.map +1 -1
- package/dist/components/chat/components/ToolCallPart.vue.d.ts +12 -3
- package/dist/components/chat/components/ToolCallPart.vue.d.ts.map +1 -1
- package/dist/components/chat/components/index.d.ts +9 -0
- package/dist/components/chat/components/index.d.ts.map +1 -1
- package/dist/components/chat/composables/index.d.ts +0 -1
- package/dist/components/chat/composables/index.d.ts.map +1 -1
- package/dist/components/chat/composables/useChatVoice.d.ts +45 -0
- package/dist/components/chat/composables/useChatVoice.d.ts.map +1 -0
- package/dist/components/chat/composables/useConversation.d.ts +1 -5
- package/dist/components/chat/composables/useConversation.d.ts.map +1 -1
- package/dist/components/chat/composables/useMeasuredHeight.d.ts +11 -0
- package/dist/components/chat/composables/useMeasuredHeight.d.ts.map +1 -0
- package/dist/components/chat/composables/useStreamSmoothing.d.ts +13 -0
- package/dist/components/chat/composables/useStreamSmoothing.d.ts.map +1 -0
- package/dist/components/chat/index.d.ts +12 -4
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/mdoc/ContentNodes.vue.d.ts.map +1 -1
- package/dist/components/chat/mdoc/MediaImageStack.vue.d.ts.map +1 -1
- package/dist/components/chat/previewRenderers.d.ts +6 -0
- package/dist/components/chat/previewRenderers.d.ts.map +1 -0
- package/dist/components/chat/qiniuUpload.d.ts +10 -0
- package/dist/components/chat/qiniuUpload.d.ts.map +1 -0
- package/dist/components/chat/responseStream.d.ts +17 -0
- package/dist/components/chat/responseStream.d.ts.map +1 -0
- package/dist/components/chat/toolLabels.d.ts +4 -0
- package/dist/components/chat/toolLabels.d.ts.map +1 -0
- package/dist/components/chat/toolStatus.d.ts +16 -0
- package/dist/components/chat/toolStatus.d.ts.map +1 -0
- package/dist/components/chat/types.d.ts +457 -144
- package/dist/components/chat/types.d.ts.map +1 -1
- package/dist/components/visualization/types.d.ts +8 -7
- package/dist/components/visualization/types.d.ts.map +1 -1
- package/dist/components/visualization/utils.d.ts +4 -2
- package/dist/components/visualization/utils.d.ts.map +1 -1
- package/dist/composables/useMindMapTheme.d.ts +4 -7
- package/dist/composables/useMindMapTheme.d.ts.map +1 -1
- package/dist/errors-CHzikrqu.js +70 -0
- package/dist/errors-upLl4kf2.cjs +1 -0
- package/dist/index-B4hgICk-.cjs +198 -0
- package/dist/index-BJdNN1GV.cjs +33 -0
- package/dist/index-Bj9h-xEr.cjs +112 -0
- package/dist/index-BufnUXnQ.js +5071 -0
- package/dist/index-CnxZBHPD.js +42825 -0
- package/dist/index-DF8KmkKX.js +38392 -0
- package/dist/index-DPhuLMkO.cjs +1 -0
- package/dist/index-Dq4cniDm.cjs +5 -0
- package/dist/index-cW_BnxHR.js +1722 -0
- package/dist/index-iCVvFIlX.js +28 -0
- package/dist/index.cjs +275 -134
- package/dist/index.js +20496 -10365
- package/dist/media-community-skin-Djo8L1G9.js +302 -0
- package/dist/media-community-skin-YI6NjsJg.cjs +1 -0
- package/dist/media-core-CkW37AYl.js +3827 -0
- package/dist/media-core-Rxz2MNwG.cjs +1 -0
- package/dist/media-outlet-CZTh6XmJ.cjs +1 -0
- package/dist/media-outlet-D2rcuhYN.js +2 -0
- package/dist/media-player-BZrIM0O_.js +387 -0
- package/dist/media-player-D_USOhtK.cjs +1 -0
- package/dist/media-ui-DfPbRfFS.js +2832 -0
- package/dist/media-ui-zZVnK1ts.cjs +1 -0
- package/dist/prod-Ba2x-T01.cjs +4 -0
- package/dist/prod-DBMM0zDd.js +992 -0
- package/dist/provider-B7wAEcCR.js +163 -0
- package/dist/provider-BPphQwpc.cjs +1 -0
- package/dist/provider-BSeBwvzM.cjs +1 -0
- package/dist/provider-DgSZc2dM.js +162 -0
- package/dist/provider-EKFFiZS1.js +27 -0
- package/dist/provider-O8r0RFmF.cjs +1 -0
- package/dist/provider-WrRdjcjY.js +483 -0
- package/dist/provider-sqICX3H9.cjs +1 -0
- package/dist/srt-parser-BECMkbXb.cjs +2 -0
- package/dist/srt-parser-BR28Llpk.js +27 -0
- package/dist/ssa-parser-BJTK0kd-.js +209 -0
- package/dist/ssa-parser-CuKkTpK_.cjs +4 -0
- package/dist/style.css +1 -1
- package/package.json +7 -2
- package/dist/components/chat/AiConversation.vue.d.ts +0 -28
- package/dist/components/chat/AiConversation.vue.d.ts.map +0 -1
- package/dist/components/chat/components/AssistantTrace.vue.d.ts +0 -27
- package/dist/components/chat/components/AssistantTrace.vue.d.ts.map +0 -1
- package/dist/components/chat/composables/useConversationStream.d.ts +0 -3
- package/dist/components/chat/composables/useConversationStream.d.ts.map +0 -1
- package/dist/components/chat/presentation.d.ts +0 -27
- package/dist/components/chat/presentation.d.ts.map +0 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ComputedRef } from 'vue';
|
|
2
|
+
import type { ChatAttachmentLimits, ChatColorMode, ChatPreviewRendererMap, ChatTheme, ChatToolRendererMap, ChatUploadConfig } from './types';
|
|
3
|
+
export interface ChatContext {
|
|
4
|
+
colorMode: ComputedRef<ChatColorMode>;
|
|
5
|
+
uploadConfig: ComputedRef<ChatUploadConfig | undefined>;
|
|
6
|
+
limits: ComputedRef<ChatAttachmentLimits>;
|
|
7
|
+
theme: ComputedRef<ChatTheme>;
|
|
8
|
+
previewRenderers: ComputedRef<ChatPreviewRendererMap>;
|
|
9
|
+
toolRenderers: ComputedRef<ChatToolRendererMap>;
|
|
10
|
+
}
|
|
11
|
+
export declare function provideChatContext(context: ChatContext): void;
|
|
12
|
+
export declare function useChatContext(): ChatContext;
|
|
13
|
+
export declare function resolveChatAttachmentLimits(...overrides: Array<Partial<ChatAttachmentLimits> | undefined>): ChatAttachmentLimits;
|
|
14
|
+
//# sourceMappingURL=chatContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatContext.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chatContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,WAAW,EAAqB,MAAM,KAAK,CAAA;AAEpF,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,EACb,sBAAsB,EACtB,SAAS,EACT,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,SAAS,CAAA;AAEhB,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,WAAW,CAAC,aAAa,CAAC,CAAA;IACrC,YAAY,EAAE,WAAW,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAAA;IACvD,MAAM,EAAE,WAAW,CAAC,oBAAoB,CAAC,CAAA;IACzC,KAAK,EAAE,WAAW,CAAC,SAAS,CAAC,CAAA;IAC7B,gBAAgB,EAAE,WAAW,CAAC,sBAAsB,CAAC,CAAA;IACrD,aAAa,EAAE,WAAW,CAAC,mBAAmB,CAAC,CAAA;CAChD;AAaD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAE7D;AAED,wBAAgB,cAAc,IAAI,WAAW,CAE5C;AAED,wBAAgB,2BAA2B,CACzC,GAAG,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,GAC7D,oBAAoB,CAYtB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type ChatErrorKind = 'network' | 'timeout' | 'api' | 'protocol' | 'unknown';
|
|
2
|
+
export interface ClassifiedChatError {
|
|
3
|
+
kind: ChatErrorKind;
|
|
4
|
+
error: Error;
|
|
5
|
+
code?: string;
|
|
6
|
+
status?: number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Buckets a raw stream/request failure into a small set of kinds a host app or the
|
|
10
|
+
* in-conversation fallback can give distinct copy to. `TypeError` is what `fetch()` throws
|
|
11
|
+
* for connection-level failures (offline, DNS, refused, CORS); `TimeoutError` is the name
|
|
12
|
+
* `AbortSignal.timeout()` produces, so a host passing a timeout-bound signal is detected
|
|
13
|
+
* without this package owning any timeout logic itself.
|
|
14
|
+
*/
|
|
15
|
+
export declare function classifyChatError(error: Error): ClassifiedChatError;
|
|
16
|
+
//# sourceMappingURL=chatErrors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatErrors.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chatErrors.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,KAAK,GAAG,UAAU,GAAG,SAAS,CAAA;AAElF,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,aAAa,CAAA;IACnB,KAAK,EAAE,KAAK,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,mBAAmB,CAkBnE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ChatQueueItem, ChatSendPayload } from './types';
|
|
2
|
+
export declare function enqueueChatPayload(queue: readonly ChatQueueItem[], payload: ChatSendPayload): ChatQueueItem[];
|
|
3
|
+
export declare function editChatQueueItem(queue: readonly ChatQueueItem[], id: string, content: string): ChatQueueItem[];
|
|
4
|
+
export declare function removeChatQueueItem(queue: readonly ChatQueueItem[], id: string): ChatQueueItem[];
|
|
5
|
+
export declare function moveChatQueueItem(queue: readonly ChatQueueItem[], fromIndex: number, toIndex: number): ChatQueueItem[];
|
|
6
|
+
//# sourceMappingURL=chatQueue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatQueue.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chatQueue.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAI7D,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,SAAS,aAAa,EAAE,EAC/B,OAAO,EAAE,eAAe,GACvB,aAAa,EAAE,CAEjB;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,SAAS,aAAa,EAAE,EAC/B,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,MAAM,GACd,aAAa,EAAE,CAMjB;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,SAAS,aAAa,EAAE,EAAE,EAAE,EAAE,MAAM,GAAG,aAAa,EAAE,CAEhG;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,SAAS,aAAa,EAAE,EAC/B,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,GACd,aAAa,EAAE,CAcjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArtifactPreview.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ArtifactPreview.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ArtifactPreview.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ArtifactPreview.vue"],"names":[],"mappings":"AAmWA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAKpD,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,oBAAoB,CAAA;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AA+jBF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AssistantMessage, ChatActionbarCopyPayload } from '../types';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
message:
|
|
3
|
+
message: AssistantMessage;
|
|
4
4
|
/** Visible reply text. Defaults to message.content when omitted. */
|
|
5
5
|
text?: string;
|
|
6
6
|
};
|
|
7
7
|
type __VLS_Slots = {
|
|
8
8
|
default?: (props: {
|
|
9
|
-
message:
|
|
9
|
+
message: AssistantMessage;
|
|
10
10
|
copied: boolean;
|
|
11
11
|
}) => unknown;
|
|
12
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatActionbar.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatActionbar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatActionbar.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatActionbar.vue"],"names":[],"mappings":"AA4NA,OAAO,KAAK,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAA;AAI1E,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,gBAAgB,CAAA;IACzB,oEAAoE;IACpE,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAC;AAGF,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,gBAAgB,CAAC;QAAC,MAAM,EAAE,OAAO,CAAA;KAAE,KAAK,OAAO,CAAA;CAC7E,CAAC;AA4MF,QAAA,MAAM,UAAU;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ChatResourceFile } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
resources: readonly ChatResourceFile[];
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
preview: (resource: ChatResourceFile) => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
onPreview?: ((resource: ChatResourceFile) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
//# sourceMappingURL=ChatAttachments.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatAttachments.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatAttachments.vue"],"names":[],"mappings":"AAqLA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAGhD,KAAK,WAAW,GAAG;IAAE,SAAS,EAAE,SAAS,gBAAgB,EAAE,CAAA;CAAE,CAAC;AAqJ9D,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type Component, type PropType } from 'vue';
|
|
2
|
+
import type { ChatPreviewKind, ChatResourceFile } from '../types';
|
|
3
|
+
declare var __VLS_1: {
|
|
4
|
+
resource: ChatResourceFile;
|
|
5
|
+
kind: ChatPreviewKind;
|
|
6
|
+
renderer: import("vue").ComponentOptions<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, any, any, any, string, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions> | import("vue").FunctionalComponent<any, {}, any, {}> | {
|
|
7
|
+
new (...args: any[]): any;
|
|
8
|
+
__isFragment?: never;
|
|
9
|
+
__isTeleport?: never;
|
|
10
|
+
__isSuspense?: never;
|
|
11
|
+
} | undefined;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_Slots = {} & {
|
|
14
|
+
default?: (props: typeof __VLS_1) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
17
|
+
resource: {
|
|
18
|
+
type: PropType<ChatResourceFile>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
renderer: {
|
|
22
|
+
type: PropType<Component>;
|
|
23
|
+
default: undefined;
|
|
24
|
+
};
|
|
25
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
+
resource: {
|
|
27
|
+
type: PropType<ChatResourceFile>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
renderer: {
|
|
31
|
+
type: PropType<Component>;
|
|
32
|
+
default: undefined;
|
|
33
|
+
};
|
|
34
|
+
}>> & Readonly<{}>, {
|
|
35
|
+
renderer: Component;
|
|
36
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
37
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
38
|
+
declare const _default: typeof __VLS_export;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=ChatFilePreview.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatFilePreview.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatFilePreview.vue"],"names":[],"mappings":"AAiIA,OAAO,EAAgC,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAA;AAGjF,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAkIjE,QAAA,IAAI,OAAO;;;;;;;;;CAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;;cAEc,QAAQ,CAAC,gBAAgB,CAAC;;;;cAC1B,QAAQ,CAAC,SAAS,CAAC;;;;;cADnB,QAAQ,CAAC,gBAAgB,CAAC;;;;cAC1B,QAAQ,CAAC,SAAS,CAAC;;;;;4EAE/C,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ChatResourceFile } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
resource: ChatResourceFile;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_11: {
|
|
6
|
+
resource: ChatResourceFile;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_11) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
close: () => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onClose?: (() => 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
|
+
};
|
|
24
|
+
//# sourceMappingURL=ChatFilePreviewPanel.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatFilePreviewPanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatFilePreviewPanel.vue"],"names":[],"mappings":"AAmIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAGhD,KAAK,WAAW,GAAG;IAAE,QAAQ,EAAE,gBAAgB,CAAA;CAAE,CAAC;AA0IlD,QAAA,IAAI,QAAQ;;CAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAQhD,QAAA,MAAM,UAAU;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ChatResourceFile } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
open: boolean;
|
|
4
|
+
images: readonly ChatResourceFile[];
|
|
5
|
+
index?: number;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
"update:open": (open: boolean) => any;
|
|
9
|
+
"update:index": (index: number) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
12
|
+
"onUpdate:index"?: ((index: number) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=ChatImageLightbox.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatImageLightbox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatImageLightbox.vue"],"names":[],"mappings":"AAsKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEhD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,CAAA;IACb,MAAM,EAAE,SAAS,gBAAgB,EAAE,CAAA;IACnC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAgNF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ChatResourceFile } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
resource: ChatResourceFile;
|
|
4
|
+
mediaType: 'audio' | 'video';
|
|
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;
|
|
9
|
+
//# sourceMappingURL=ChatMediaPreview.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatMediaPreview.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatMediaPreview.vue"],"names":[],"mappings":"AA6DA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEhD,KAAK,WAAW,GAAG;IAAE,QAAQ,EAAE,gBAAgB,CAAC;IAAC,SAAS,EAAE,OAAO,GAAG,OAAO,CAAA;CAAE,CAAC;AAoFhF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,18 +1,36 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { ChatActionbarCopyPayload, ConversationMessage, ConversationTheme, ConversationUiAction } from '../types';
|
|
2
|
+
import type { ChatActionbarCopyPayload, ChatResourceFile, ChatToolActionPayload, ChatToolStates, ConversationMessage, ConversationToolCall, ConversationTheme, ConversationUiAction, ToolMessage } from '../types';
|
|
3
3
|
type __VLS_Slots = {
|
|
4
4
|
'user-avatar'?: () => unknown;
|
|
5
5
|
'assistant-avatar'?: () => unknown;
|
|
6
|
+
content?: (props: {
|
|
7
|
+
message: ConversationMessage;
|
|
8
|
+
content: string;
|
|
9
|
+
isStreaming: boolean;
|
|
10
|
+
}) => unknown;
|
|
6
11
|
actionbar?: (props: {
|
|
7
12
|
message: ConversationMessage;
|
|
8
13
|
copied: boolean;
|
|
9
14
|
}) => unknown;
|
|
15
|
+
tool?: (props: {
|
|
16
|
+
toolCall: ConversationToolCall;
|
|
17
|
+
toolMessage?: ToolMessage;
|
|
18
|
+
streaming: boolean;
|
|
19
|
+
}) => unknown;
|
|
10
20
|
};
|
|
11
21
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
12
22
|
message: {
|
|
13
23
|
type: PropType<ConversationMessage>;
|
|
14
24
|
required: true;
|
|
15
25
|
};
|
|
26
|
+
streaming: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
toolMessages: {
|
|
31
|
+
type: PropType<readonly ToolMessage[]>;
|
|
32
|
+
default: () => never[];
|
|
33
|
+
};
|
|
16
34
|
theme: {
|
|
17
35
|
type: PropType<ConversationTheme>;
|
|
18
36
|
default: undefined;
|
|
@@ -25,14 +43,28 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
25
43
|
type: StringConstructor;
|
|
26
44
|
default: undefined;
|
|
27
45
|
};
|
|
46
|
+
toolStates: {
|
|
47
|
+
type: PropType<ChatToolStates>;
|
|
48
|
+
default: () => {};
|
|
49
|
+
};
|
|
28
50
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
29
51
|
copy: (payload: ChatActionbarCopyPayload) => any;
|
|
30
52
|
action: (payload: ConversationUiAction) => any;
|
|
53
|
+
"tool-action": (payload: ChatToolActionPayload) => any;
|
|
54
|
+
"attachment-preview": (resource: ChatResourceFile) => any;
|
|
31
55
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
56
|
message: {
|
|
33
57
|
type: PropType<ConversationMessage>;
|
|
34
58
|
required: true;
|
|
35
59
|
};
|
|
60
|
+
streaming: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
toolMessages: {
|
|
65
|
+
type: PropType<readonly ToolMessage[]>;
|
|
66
|
+
default: () => never[];
|
|
67
|
+
};
|
|
36
68
|
theme: {
|
|
37
69
|
type: PropType<ConversationTheme>;
|
|
38
70
|
default: undefined;
|
|
@@ -45,11 +77,20 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
45
77
|
type: StringConstructor;
|
|
46
78
|
default: undefined;
|
|
47
79
|
};
|
|
80
|
+
toolStates: {
|
|
81
|
+
type: PropType<ChatToolStates>;
|
|
82
|
+
default: () => {};
|
|
83
|
+
};
|
|
48
84
|
}>> & Readonly<{
|
|
49
85
|
onCopy?: ((payload: ChatActionbarCopyPayload) => any) | undefined;
|
|
50
86
|
onAction?: ((payload: ConversationUiAction) => any) | undefined;
|
|
87
|
+
"onTool-action"?: ((payload: ChatToolActionPayload) => any) | undefined;
|
|
88
|
+
"onAttachment-preview"?: ((resource: ChatResourceFile) => any) | undefined;
|
|
51
89
|
}>, {
|
|
52
|
-
theme:
|
|
90
|
+
theme: import("../types").ChatTheme;
|
|
91
|
+
streaming: boolean;
|
|
92
|
+
toolMessages: readonly ToolMessage[];
|
|
93
|
+
toolStates: Readonly<Record<string, import("../types").ChatToolState>>;
|
|
53
94
|
userAvatar: string;
|
|
54
95
|
assistantAvatar: string;
|
|
55
96
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMessage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatMessage.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatMessage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatMessage.vue"],"names":[],"mappings":"AAsGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EACV,wBAAwB,EACxB,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,oBAAoB,EACpB,WAAW,EACZ,MAAM,UAAU,CAAA;AAqCjB,KAAK,WAAW,GAAG;IACjB,aAAa,CAAC,EAAE,MAAM,OAAO,CAAA;IAC7B,kBAAkB,CAAC,EAAE,MAAM,OAAO,CAAA;IAClC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE;QAChB,OAAO,EAAE,mBAAmB,CAAA;QAC5B,OAAO,EAAE,MAAM,CAAA;QACf,WAAW,EAAE,OAAO,CAAA;KACrB,KAAK,OAAO,CAAA;IACb,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,mBAAmB,CAAC;QAAC,MAAM,EAAE,OAAO,CAAA;KAAE,KAAK,OAAO,CAAA;IACjF,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE;QACb,QAAQ,EAAE,oBAAoB,CAAA;QAC9B,WAAW,CAAC,EAAE,WAAW,CAAA;QACzB,SAAS,EAAE,OAAO,CAAA;KACnB,KAAK,OAAO,CAAA;CACd,CAAC;AA2IF,QAAA,MAAM,UAAU;;cAII,QAAQ,CAAC,mBAAmB,CAAC;;;;;;;;cAQ9B,QAAQ,CAAC,SAAS,WAAW,EAAE,CAAC;;;;cAI/B,QAAQ,CAAC,iBAAiB,CAAC;;;;;;;;;;;;cAY3B,QAAQ,CAAC,cAAc,CAAC;;;;;;;;;;cAxBxB,QAAQ,CAAC,mBAAmB,CAAC;;;;;;;;cAQ9B,QAAQ,CAAC,SAAS,WAAW,EAAE,CAAC;;;;cAI/B,QAAQ,CAAC,iBAAiB,CAAC;;;;;;;;;;;;cAY3B,QAAQ,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;4EAI1C,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ChatPreviewKind, ChatResourceFile } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
resource: ChatResourceFile;
|
|
4
|
+
kind: Extract<ChatPreviewKind, 'pdf' | 'docx' | 'excel' | 'pptx'>;
|
|
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;
|
|
9
|
+
//# sourceMappingURL=ChatOfficePreview.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatOfficePreview.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatOfficePreview.vue"],"names":[],"mappings":"AAmDA,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEjE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,gBAAgB,CAAA;IAC1B,IAAI,EAAE,OAAO,CAAC,eAAe,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC,CAAA;CAClE,CAAC;AAyEF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { ChatAttachmentLimits, ChatColorMode, ChatPreviewRendererMap, ChatTheme, ChatToolRendererMap, ChatUploadConfig } from '../types';
|
|
3
|
+
declare var __VLS_1: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_1) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
colorMode: {
|
|
9
|
+
type: PropType<ChatColorMode>;
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
12
|
+
uploadConfig: {
|
|
13
|
+
type: PropType<ChatUploadConfig>;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
limits: {
|
|
17
|
+
type: PropType<Partial<ChatAttachmentLimits>>;
|
|
18
|
+
default: undefined;
|
|
19
|
+
};
|
|
20
|
+
theme: {
|
|
21
|
+
type: PropType<ChatTheme>;
|
|
22
|
+
default: undefined;
|
|
23
|
+
};
|
|
24
|
+
previewRenderers: {
|
|
25
|
+
type: PropType<ChatPreviewRendererMap>;
|
|
26
|
+
default: undefined;
|
|
27
|
+
};
|
|
28
|
+
toolRenderers: {
|
|
29
|
+
type: PropType<ChatToolRendererMap>;
|
|
30
|
+
default: undefined;
|
|
31
|
+
};
|
|
32
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
+
colorMode: {
|
|
34
|
+
type: PropType<ChatColorMode>;
|
|
35
|
+
default: undefined;
|
|
36
|
+
};
|
|
37
|
+
uploadConfig: {
|
|
38
|
+
type: PropType<ChatUploadConfig>;
|
|
39
|
+
default: undefined;
|
|
40
|
+
};
|
|
41
|
+
limits: {
|
|
42
|
+
type: PropType<Partial<ChatAttachmentLimits>>;
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
45
|
+
theme: {
|
|
46
|
+
type: PropType<ChatTheme>;
|
|
47
|
+
default: undefined;
|
|
48
|
+
};
|
|
49
|
+
previewRenderers: {
|
|
50
|
+
type: PropType<ChatPreviewRendererMap>;
|
|
51
|
+
default: undefined;
|
|
52
|
+
};
|
|
53
|
+
toolRenderers: {
|
|
54
|
+
type: PropType<ChatToolRendererMap>;
|
|
55
|
+
default: undefined;
|
|
56
|
+
};
|
|
57
|
+
}>> & Readonly<{}>, {
|
|
58
|
+
theme: ChatTheme;
|
|
59
|
+
uploadConfig: ChatUploadConfig;
|
|
60
|
+
colorMode: ChatColorMode;
|
|
61
|
+
previewRenderers: Partial<Record<string, import("..").ChatPreviewRenderer>>;
|
|
62
|
+
toolRenderers: ChatToolRendererMap;
|
|
63
|
+
limits: Partial<ChatAttachmentLimits>;
|
|
64
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
65
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
66
|
+
declare const _default: typeof __VLS_export;
|
|
67
|
+
export default _default;
|
|
68
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
69
|
+
new (): {
|
|
70
|
+
$slots: S;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=ChatProvider.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatProvider.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatProvider.vue"],"names":[],"mappings":"AAmIA,OAAO,EAAY,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAA;AAE7C,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,EACb,sBAAsB,EACtB,SAAS,EACT,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,UAAU,CAAA;AAiEjB,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;;cAEe,QAAQ,CAAC,aAAa,CAAC;;;;cACpB,QAAQ,CAAC,gBAAgB,CAAC;;;;cAChC,QAAQ,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;;;;cACxC,QAAQ,CAAC,SAAS,CAAC;;;;cACR,QAAQ,CAAC,sBAAsB,CAAC;;;;cACnC,QAAQ,CAAC,mBAAmB,CAAC;;;;;cALjC,QAAQ,CAAC,aAAa,CAAC;;;;cACpB,QAAQ,CAAC,gBAAgB,CAAC;;;;cAChC,QAAQ,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;;;;cACxC,QAAQ,CAAC,SAAS,CAAC;;;;cACR,QAAQ,CAAC,sBAAsB,CAAC;;;;cACnC,QAAQ,CAAC,mBAAmB,CAAC;;;;;;;;;;4EAE9D,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ChatQueueItem } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
items: readonly ChatQueueItem[];
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
edit: (id: string, content: string) => any;
|
|
7
|
+
remove: (id: string) => any;
|
|
8
|
+
reorder: (fromIndex: number, toIndex: number) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onEdit?: ((id: string, content: string) => any) | undefined;
|
|
11
|
+
onRemove?: ((id: string) => any) | undefined;
|
|
12
|
+
onReorder?: ((fromIndex: number, toIndex: number) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=ChatQueue.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatQueue.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatQueue.vue"],"names":[],"mappings":"AA4MA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAI7C,KAAK,WAAW,GAAG;IAAE,KAAK,EAAE,SAAS,aAAa,EAAE,CAAA;CAAE,CAAC;AAkTvD,QAAA,MAAM,YAAY;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
content: string;
|
|
3
|
+
streaming?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_11: {
|
|
6
|
+
content: string;
|
|
7
|
+
streaming: boolean;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_11) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=ChatReasoning.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatReasoning.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatReasoning.vue"],"names":[],"mappings":"AAuTA,KAAK,WAAW,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AA+M5D,QAAA,IAAI,QAAQ;;;CAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAQhD,QAAA,MAAM,UAAU,kSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
interface AttachmentMenuItem {
|
|
3
|
-
id: string;
|
|
4
|
-
label: string;
|
|
5
|
-
icon: string | Component;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
}
|
|
1
|
+
import type { ChatAttachmentError, ChatAttachmentLimits, ChatAttachmentMenuItem, ChatComposerAttachment, ChatSendPayload, ChatSenderQuickAction, ChatTheme, ChatUploadConfig } from '../types';
|
|
8
2
|
interface Props {
|
|
9
3
|
placeholder?: string;
|
|
10
4
|
disabled?: boolean;
|
|
11
5
|
showAttachment?: boolean;
|
|
12
|
-
showToolbar?: boolean;
|
|
13
6
|
maxRows?: number;
|
|
14
|
-
|
|
7
|
+
draft?: string;
|
|
8
|
+
attachments?: readonly ChatComposerAttachment[];
|
|
9
|
+
uploadConfig?: ChatUploadConfig;
|
|
10
|
+
attachmentLimits?: Partial<ChatAttachmentLimits>;
|
|
11
|
+
streaming?: boolean;
|
|
12
|
+
theme?: ChatTheme;
|
|
15
13
|
showScreenshot?: boolean;
|
|
16
|
-
customMenuItems?:
|
|
14
|
+
customMenuItems?: readonly ChatAttachmentMenuItem[];
|
|
15
|
+
quickActions?: readonly ChatSenderQuickAction[];
|
|
16
|
+
activeQuickAction?: string | null;
|
|
17
17
|
}
|
|
18
18
|
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
stop: () => any;
|
|
20
|
+
send: (payload: ChatSendPayload) => any;
|
|
21
|
+
"update:draft": (value: string) => any;
|
|
22
|
+
"update:attachments": (attachments: readonly ChatComposerAttachment[]) => any;
|
|
23
|
+
"attachment-error": (error: ChatAttachmentError, file?: File | undefined) => any;
|
|
21
24
|
"voice-click": () => any;
|
|
22
25
|
"voice-record": () => any;
|
|
23
26
|
"voice-start": () => any;
|
|
@@ -29,9 +32,15 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {},
|
|
|
29
32
|
"menu-item-click": (itemId: string) => any;
|
|
30
33
|
"attachment-menu-open": () => any;
|
|
31
34
|
"attachment-menu-close": () => any;
|
|
35
|
+
"update:activeQuickAction": (id: string | null) => any;
|
|
36
|
+
"quick-action-select": (action: ChatSenderQuickAction) => any;
|
|
37
|
+
"quick-action-clear": () => any;
|
|
32
38
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
33
|
-
|
|
34
|
-
|
|
39
|
+
onStop?: (() => any) | undefined;
|
|
40
|
+
onSend?: ((payload: ChatSendPayload) => any) | undefined;
|
|
41
|
+
"onUpdate:draft"?: ((value: string) => any) | undefined;
|
|
42
|
+
"onUpdate:attachments"?: ((attachments: readonly ChatComposerAttachment[]) => any) | undefined;
|
|
43
|
+
"onAttachment-error"?: ((error: ChatAttachmentError, file?: File | undefined) => any) | undefined;
|
|
35
44
|
"onVoice-click"?: (() => any) | undefined;
|
|
36
45
|
"onVoice-record"?: (() => any) | undefined;
|
|
37
46
|
"onVoice-start"?: (() => any) | undefined;
|
|
@@ -43,15 +52,23 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {},
|
|
|
43
52
|
"onMenu-item-click"?: ((itemId: string) => any) | undefined;
|
|
44
53
|
"onAttachment-menu-open"?: (() => any) | undefined;
|
|
45
54
|
"onAttachment-menu-close"?: (() => any) | undefined;
|
|
55
|
+
"onUpdate:activeQuickAction"?: ((id: string | null) => any) | undefined;
|
|
56
|
+
"onQuick-action-select"?: ((action: ChatSenderQuickAction) => any) | undefined;
|
|
57
|
+
"onQuick-action-clear"?: (() => any) | undefined;
|
|
46
58
|
}>, {
|
|
47
|
-
|
|
59
|
+
theme: ChatTheme;
|
|
48
60
|
disabled: boolean;
|
|
49
61
|
placeholder: string;
|
|
50
62
|
showAttachment: boolean;
|
|
51
63
|
maxRows: number;
|
|
52
|
-
|
|
64
|
+
draft: string;
|
|
65
|
+
attachments: readonly ChatComposerAttachment[];
|
|
66
|
+
uploadConfig: ChatUploadConfig;
|
|
67
|
+
attachmentLimits: Partial<ChatAttachmentLimits>;
|
|
53
68
|
showScreenshot: boolean;
|
|
54
|
-
customMenuItems:
|
|
69
|
+
customMenuItems: readonly ChatAttachmentMenuItem[];
|
|
70
|
+
quickActions: readonly ChatSenderQuickAction[];
|
|
71
|
+
activeQuickAction: string | null;
|
|
55
72
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
56
73
|
declare const _default: typeof __VLS_export;
|
|
57
74
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatSender.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatSender.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatSender.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatSender.vue"],"names":[],"mappings":"AAw6DA,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,eAAe,EACf,qBAAqB,EACrB,SAAS,EACT,gBAAgB,EACjB,MAAM,UAAU,CAAA;AAEjB,UAAU,KAAK;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,SAAS,sBAAsB,EAAE,CAAA;IAC/C,YAAY,CAAC,EAAE,gBAAgB,CAAA;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAA;IAChD,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,eAAe,CAAC,EAAE,SAAS,sBAAsB,EAAE,CAAA;IACnD,YAAY,CAAC,EAAE,SAAS,qBAAqB,EAAE,CAAA;IAC/C,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAClC;AAw2CD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA72CR,SAAS;cARN,OAAO;iBADJ,MAAM;oBAEH,OAAO;aACd,MAAM;WACR,MAAM;iBACA,SAAS,sBAAsB,EAAE;kBAChC,gBAAgB;sBACZ,OAAO,CAAC,oBAAoB,CAAC;oBAG/B,OAAO;qBACN,SAAS,sBAAsB,EAAE;kBACpC,SAAS,qBAAqB,EAAE;uBAC3B,MAAM,GAAG,IAAI;6EA62CjC,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
ariaLabel?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
+
resize: (clientX: number) => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
7
|
+
onResize?: ((clientX: number) => any) | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
ariaLabel: string;
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
//# sourceMappingURL=ChatSidebarResizeHandle.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatSidebarResizeHandle.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatSidebarResizeHandle.vue"],"names":[],"mappings":"AAmHA,KAAK,WAAW,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAsF1C,QAAA,MAAM,YAAY;;;;;eAtFe,MAAM;6EA0FrC,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ChatToolActionPayload, ChatToolStates, ConversationToolCall, ToolMessage } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
toolCalls: readonly ConversationToolCall[];
|
|
4
|
+
toolMessages?: readonly ToolMessage[];
|
|
5
|
+
toolStates?: ChatToolStates;
|
|
6
|
+
streaming?: boolean;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_Slots = {
|
|
9
|
+
default?: (props: {
|
|
10
|
+
toolCall: ConversationToolCall;
|
|
11
|
+
toolMessage?: ToolMessage;
|
|
12
|
+
streaming: boolean;
|
|
13
|
+
}) => unknown;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
"tool-action": (payload: ChatToolActionPayload) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
"onTool-action"?: ((payload: ChatToolActionPayload) => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=ChatToolGroup.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatToolGroup.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/components/ChatToolGroup.vue"],"names":[],"mappings":"AAkGA,OAAO,KAAK,EACV,qBAAqB,EACrB,cAAc,EACd,oBAAoB,EACpB,WAAW,EACZ,MAAM,UAAU,CAAA;AAGjB,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,SAAS,oBAAoB,EAAE,CAAA;IAC1C,YAAY,CAAC,EAAE,SAAS,WAAW,EAAE,CAAA;IACrC,UAAU,CAAC,EAAE,cAAc,CAAA;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;AAGF,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE;QAChB,QAAQ,EAAE,oBAAoB,CAAA;QAC9B,WAAW,CAAC,EAAE,WAAW,CAAA;QACzB,SAAS,EAAE,OAAO,CAAA;KACnB,KAAK,OAAO,CAAA;CACd,CAAC;AAyHF,QAAA,MAAM,UAAU;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|