wi-chat 0.6.1 → 0.6.2
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/core/index.cjs +1 -1
- package/dist/core/index.js +273 -261
- package/dist/core/useChat.d.ts +61 -12
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +33 -33
- package/dist/mobile-ui/chat/ChatContainer.vue.d.ts +6 -6
- package/dist/mobile-ui/chat/ChatMessagesView.vue.d.ts +6 -6
- package/dist/mobile-ui/index.cjs +1 -1
- package/dist/mobile-ui/index.js +104 -104
- package/dist/mobile-ui/inputbox/Inputbox.vue.d.ts +5 -5
- package/dist/page-context/index.js +2 -4
- package/dist/parser/answerCom/actionExecute/actionProtocol.d.ts +1 -7
- package/dist/parser/answerCom/actionExecute/clarification.d.ts +15 -3
- package/dist/parser/answerCom/actionExecute/constants.d.ts +10 -0
- package/dist/parser/answerCom/actionExecute/parseCollectClarifications.d.ts +3 -2
- package/dist/parser/answerCom/actionExecute/parseHostAction.d.ts +3 -2
- package/dist/parser/answerCom/actionExecute/types.d.ts +3 -3
- package/dist/parser/index.cjs +2 -2
- package/dist/parser/index.d.ts +2 -2
- package/dist/parser/index.js +216 -258
- package/dist/parser/registry.d.ts +1 -1
- package/dist/renderers/aiAnswer/AiAnswerBubble.vue.d.ts +4 -4
- package/dist/renderers/clarification/ClarificationCard.vue.d.ts +3 -3
- package/dist/renderers/deepThinking/DeepThinkingSteps.vue.d.ts +4 -4
- package/dist/renderers/hostAction/HostActionStatus.vue.d.ts +3 -3
- package/dist/renderers/iframePage/IframePage.vue.d.ts +3 -3
- package/dist/renderers/index.cjs +1 -1
- package/dist/renderers/index.js +484 -498
- package/dist/renderers/knowledgeStream/KnowledgeStreamResult.vue.d.ts +3 -3
- package/dist/renderers/outputFile/OutputFile.vue.d.ts +3 -3
- package/dist/renderers/style.css +1 -1
- package/dist/request/index.cjs +2 -2
- package/dist/request/index.js +6 -13
- package/dist/request/ws.d.ts +3 -3
- package/dist/right-panel/RightPanel.vue.d.ts +6 -6
- package/dist/right-panel/RightPanelIcon.vue.d.ts +4 -4
- package/dist/right-panel/RightPanelTabs.vue.d.ts +5 -5
- package/dist/right-panel/index.cjs +1 -1
- package/dist/right-panel/index.js +397 -416
- package/dist/right-panel/panels/newtab/NewTabPanel.vue.d.ts +4 -4
- package/dist/right-panel/panels/web/WebPanel.vue.d.ts +3 -3
- package/dist/right-panel/shared/BrowserToolbar.vue.d.ts +3 -3
- package/dist/right-panel/shared/RightPanelToolList.vue.d.ts +5 -5
- package/dist/theme/index.js +2 -4
- package/dist/tools/index.cjs +2 -2
- package/dist/tools/index.js +10 -19
- package/dist/tools/markdown/MarkdownContent.vue.d.ts +5 -5
- package/dist/tools/useAutoScroll.d.ts +3 -3
- package/dist/web-ui/attach/AttachmentCard.vue.d.ts +6 -6
- package/dist/web-ui/attach/AttachmentList.vue.d.ts +6 -6
- package/dist/web-ui/chat/ChatContainer.vue.d.ts +6 -6
- package/dist/web-ui/chat/ChatMessagesView.vue.d.ts +6 -6
- package/dist/web-ui/envswitch/EnvSwitch.vue.d.ts +5 -5
- package/dist/web-ui/index.cjs +1 -1
- package/dist/web-ui/index.js +630 -635
- package/dist/web-ui/inputbox/Inputbox.vue.d.ts +7 -7
- package/dist/web-ui/recordset/RecordsetTable.vue.d.ts +4 -4
- package/package.json +2 -1
|
@@ -7,7 +7,7 @@ export interface AgentItem {
|
|
|
7
7
|
image_id?: string;
|
|
8
8
|
[key: string]: any;
|
|
9
9
|
}
|
|
10
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
11
11
|
/** 输入框当前文本内容(v-model) */
|
|
12
12
|
modelValue?: string;
|
|
13
13
|
/** 占位符文本 */
|
|
@@ -65,7 +65,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
65
65
|
getFileUrl: any;
|
|
66
66
|
incPrevQuestion: string;
|
|
67
67
|
showIncPrevQuestion: boolean;
|
|
68
|
-
}
|
|
68
|
+
}>>, {
|
|
69
69
|
/** 手动清空所有附件 */
|
|
70
70
|
clearFiles: () => void;
|
|
71
71
|
/** 获取当前附件原生 File 列表 */
|
|
@@ -80,7 +80,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
80
80
|
}[];
|
|
81
81
|
/** 聚焦输入框 */
|
|
82
82
|
focus: () => void;
|
|
83
|
-
},
|
|
83
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
84
84
|
"update:modelValue": (value: string) => void;
|
|
85
85
|
submit: (payload: {
|
|
86
86
|
text: string;
|
|
@@ -151,20 +151,20 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
151
151
|
getFileUrl: any;
|
|
152
152
|
incPrevQuestion: string;
|
|
153
153
|
showIncPrevQuestion: boolean;
|
|
154
|
-
}>>> & {
|
|
154
|
+
}>>> & Readonly<{
|
|
155
155
|
onSubmit?: (payload: {
|
|
156
156
|
text: string;
|
|
157
157
|
files: File[];
|
|
158
158
|
attachments?: AttachmentItem<any>[];
|
|
159
159
|
agent?: AgentItem;
|
|
160
160
|
}) => any;
|
|
161
|
-
"onUpdate:modelValue"?: (value: string) => any;
|
|
162
161
|
onStop?: () => any;
|
|
162
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
163
163
|
onSelectAgent?: (agent: AgentItem) => any;
|
|
164
164
|
"onUpdate:files"?: (files: File[]) => any;
|
|
165
165
|
"onUpdate:attachments"?: (attachments: AttachmentItem<any>[]) => any;
|
|
166
166
|
"onUpdate:incPrevQuestion"?: (value: "Y" | "N") => any;
|
|
167
|
-
}
|
|
167
|
+
}>, {
|
|
168
168
|
placeholder: string;
|
|
169
169
|
baseURL: string;
|
|
170
170
|
incPrevQuestion: "Y" | "N";
|
|
@@ -184,7 +184,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
184
184
|
currentAgent: AgentItem;
|
|
185
185
|
defaultAgentTitle: string;
|
|
186
186
|
showIncPrevQuestion: boolean;
|
|
187
|
-
}, {}>, {
|
|
187
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
188
188
|
"footer-left"?(_: {}): any;
|
|
189
189
|
}>;
|
|
190
190
|
export default _default;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { AiAnswerReport, RecordsetValue } from 'wi-chat/parser';
|
|
2
2
|
|
|
3
|
-
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
/** recordset 报告(values 已在解析层归一为表格对象) */
|
|
5
5
|
report: AiAnswerReport<RecordsetValue>;
|
|
6
6
|
/** 表格最大高度,超出滚动(el-table max-height) */
|
|
7
7
|
maxHeight?: number | string;
|
|
8
8
|
}>, {
|
|
9
9
|
maxHeight: number;
|
|
10
|
-
}
|
|
10
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
11
11
|
/** recordset 报告(values 已在解析层归一为表格对象) */
|
|
12
12
|
report: AiAnswerReport<RecordsetValue>;
|
|
13
13
|
/** 表格最大高度,超出滚动(el-table max-height) */
|
|
14
14
|
maxHeight?: number | string;
|
|
15
15
|
}>, {
|
|
16
16
|
maxHeight: number;
|
|
17
|
-
}
|
|
17
|
+
}>>> & Readonly<{}>, {
|
|
18
18
|
maxHeight: number | string;
|
|
19
|
-
}, {}>;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
20
|
export default _default;
|
|
21
21
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
22
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wi-chat",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "AI 对话能力包(原 wi-chat-request/parser/theme/tools/core/renderers-ui/web-ui/mobile-ui 八包合并):请求层 + SSE/历史解析 + 主题 + 通用工具 + 对话状态机 + 共享回答渲染 + Web(Element Plus)/ 移动端(Vant)UI",
|
|
5
5
|
"author": "gerson wu <gersonwu@qq.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
"styles",
|
|
90
90
|
"!dist/**/*.map"
|
|
91
91
|
],
|
|
92
|
+
|
|
92
93
|
"sideEffects": [
|
|
93
94
|
"*.css"
|
|
94
95
|
],
|