wi-chat 0.6.2 → 0.7.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/dist/core/index.cjs +1 -1
- package/dist/core/index.d.ts +12 -0
- package/dist/core/index.js +731 -328
- package/dist/core/useAnswerActions.d.ts +61 -0
- package/dist/core/useChat.d.ts +29 -3
- package/dist/core/useChatAuth.d.ts +96 -0
- package/dist/core/useChatRooms.d.ts +66 -0
- package/dist/core/useKeepAlive.d.ts +41 -0
- package/dist/core/useLlm.d.ts +73 -0
- package/dist/core/useRunningGroups.d.ts +58 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +119 -108
- package/dist/mobile-ui/chat/ChatContainer.vue.d.ts +2 -2
- package/dist/mobile-ui/inputbox/Inputbox.vue.d.ts +1 -1
- package/dist/parser/answerCom/generic/parseGeneric.d.ts +52 -0
- package/dist/parser/answerCom/generic/types.d.ts +75 -0
- package/dist/parser/answerCom/outputFile/parseOutputFile.d.ts +7 -6
- package/dist/parser/answerCom/outputFile/types.d.ts +15 -5
- package/dist/parser/answerCom/presentFiles/parsePresentFiles.d.ts +58 -0
- package/dist/parser/answerCom/presentFiles/types.d.ts +27 -0
- package/dist/parser/answerMeta.d.ts +71 -0
- package/dist/parser/deepThinking/parseDeepThinking.d.ts +8 -0
- package/dist/parser/history/history.d.ts +9 -0
- package/dist/parser/history/index.d.ts +1 -1
- package/dist/parser/index.cjs +6 -2
- package/dist/parser/index.d.ts +11 -2
- package/dist/parser/index.js +591 -366
- package/dist/parser/message.d.ts +9 -0
- package/dist/parser/runTime.d.ts +29 -0
- package/dist/renderers/TextAnswer-BgKGvG_o.cjs +2 -0
- package/dist/renderers/TextAnswer-PQwV3K7v.js +5 -0
- package/dist/renderers/answerCard/AnswerCard.vue.d.ts +65 -0
- package/dist/renderers/answerCard/AnswerToolbar.vue.d.ts +42 -0
- package/dist/renderers/answerConfig.d.ts +33 -0
- package/dist/renderers/deviceLastValue/DeviceLastValue.vue.d.ts +37 -0
- package/dist/renderers/index.cjs +6 -1
- package/dist/renderers/index.d.ts +14 -0
- package/dist/renderers/index.js +1485 -574
- package/dist/renderers/media/MediaAnswer.vue.d.ts +19 -0
- package/dist/renderers/outputFile/OutputFileLink.vue.d.ts +19 -0
- package/dist/renderers/outputFile/localFile.d.ts +46 -0
- package/dist/renderers/outputFile/useOutputFile.d.ts +32 -3
- package/dist/renderers/presentFiles/PresentFiles.vue.d.ts +19 -0
- package/dist/renderers/recordset/RecordsetView.vue.d.ts +19 -0
- package/dist/renderers/sqlQuery/SqlQuery.vue.d.ts +19 -0
- package/dist/renderers/style.css +1 -1
- package/dist/renderers/text/TextAnswer.vue.d.ts +19 -0
- package/dist/request/api.d.ts +121 -1
- package/dist/request/client.d.ts +6 -0
- package/dist/request/index.cjs +4 -2
- package/dist/request/index.d.ts +4 -2
- package/dist/request/index.js +753 -173
- package/dist/request/ws.d.ts +11 -86
- package/dist/request/wsCore.d.ts +104 -0
- package/dist/request/wsSession.d.ts +353 -0
- package/dist/right-panel/RightPanelTabs.vue.d.ts +4 -0
- package/dist/right-panel/index.cjs +1 -1
- package/dist/right-panel/index.d.ts +1 -1
- package/dist/right-panel/index.js +598 -499
- package/dist/right-panel/style.css +1 -1
- package/dist/right-panel/types.d.ts +10 -0
- package/dist/tools/index.cjs +5 -5
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/index.js +323 -208
- package/dist/tools/markdown/index.d.ts +2 -0
- package/dist/tools/markdown/interactions.d.ts +39 -0
- package/dist/tools/markdown/sanitize.d.ts +6 -0
- package/dist/tools/style.css +1 -1
- package/dist/web-ui/attach/AttachmentCard.vue.d.ts +1 -1
- package/dist/web-ui/attach/AttachmentList.vue.d.ts +1 -1
- package/dist/web-ui/chat/ChatContainer.vue.d.ts +5 -5
- package/dist/web-ui/envswitch/EnvSwitch.vue.d.ts +1 -1
- package/dist/web-ui/index.cjs +1 -1
- package/dist/web-ui/index.js +1 -1
- package/dist/web-ui/inputbox/Inputbox.vue.d.ts +5 -5
- package/dist/web-ui/style.css +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AiAnswerReport } from 'wi-chat/parser';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
/** video / wav / camera / script 报告 */
|
|
5
|
+
report: AiAnswerReport<any>;
|
|
6
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
/** video / wav / camera / script 报告 */
|
|
8
|
+
report: AiAnswerReport<any>;
|
|
9
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: import('vue').PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AiAnswerReport, OutputFileValue } from 'wi-chat/parser';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
/** output_file 报告(values.file_id / values.file_name / values.file_path?) */
|
|
5
|
+
report: AiAnswerReport<OutputFileValue>;
|
|
6
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
/** output_file 报告(values.file_id / values.file_name / values.file_path?) */
|
|
8
|
+
report: AiAnswerReport<OutputFileValue>;
|
|
9
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: import('vue').PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { OutputFileValue } from 'wi-chat/parser';
|
|
2
|
+
|
|
3
|
+
/** 本地文件读取结果:二进制内容 + MIME 类型由宿主按扩展名/内容判定(可缺省) */
|
|
4
|
+
export interface LocalFileContent {
|
|
5
|
+
/** 文件二进制内容 */
|
|
6
|
+
blob: Blob;
|
|
7
|
+
/** MIME 类型(缺省时由消费方按扩展名兜底) */
|
|
8
|
+
mimeType?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 宿主注入的本地文件读取函数。
|
|
12
|
+
* @param path 文件路径(相对或绝对,原样交给桌面主进程解析;相对路径由主进程挂载个人目录)
|
|
13
|
+
* @param basePath 主文件路径(用于同目录相对资源的目录拼接;相对资源传拼接后的路径)
|
|
14
|
+
* @returns 文件内容;读取失败时抛错(由调用方决定降级 / 报错)
|
|
15
|
+
*/
|
|
16
|
+
export type ReadLocalFile = (path: string, basePath?: string) => Promise<LocalFileContent>;
|
|
17
|
+
/**
|
|
18
|
+
* 读取 output_file 报告的 file_path(兼容 values 嵌套与顶层两种形态)。
|
|
19
|
+
* @param report output_file 报告
|
|
20
|
+
* @returns 非空文件路径;无则空串
|
|
21
|
+
*/
|
|
22
|
+
export declare const readLocalFilePath: (report?: {
|
|
23
|
+
values?: OutputFileValue;
|
|
24
|
+
file_path?: string;
|
|
25
|
+
}) => string;
|
|
26
|
+
/**
|
|
27
|
+
* 把相对资源 URL 拼到主文件所在目录,得到交给宿主读取的路径。
|
|
28
|
+
* 统一正反斜杠、去掉查询串/哈希、解析 . / .. 段,并完整保留绝对路径前缀
|
|
29
|
+
* (Windows 盘符 `C:/`、UNC `//server/`、虚拟根 `/`),避免把绝对路径拆成相对段。
|
|
30
|
+
* @param rawUrl HTML 里的 src / href 原值(已判定为相对路径)
|
|
31
|
+
* @param basePath 主文件路径(相对或绝对)
|
|
32
|
+
* @returns 拼接后的路径(相对 basePath 同目录)
|
|
33
|
+
*/
|
|
34
|
+
export declare const joinLocalAssetPath: (rawUrl: string, basePath: string) => string;
|
|
35
|
+
/** 按扩展名猜 MIME(内联资源时给 <img> / data URL 用) */
|
|
36
|
+
export declare const guessMimeType: (path: string) => string;
|
|
37
|
+
/**
|
|
38
|
+
* 读取主文件并把 HTML 里的本地相对资源(js / css / img)内联进 srcdoc。
|
|
39
|
+
* 资源读取失败时保留原标签(浏览器最多报 404,不阻断 HTML 预览);主文件读取失败直接抛错。
|
|
40
|
+
* 非 HTML 文件原样返回主文件内容,不做内联。
|
|
41
|
+
* @param path 主文件路径(相对或绝对,原样交给 readLocalFile)
|
|
42
|
+
* @param readLocalFile 宿主注入的本地读取函数
|
|
43
|
+
* @param isHtml 是否按 HTML 内联处理(由调用方按扩展名判定)
|
|
44
|
+
* @returns 已内联资源的 Blob(HTML)或主文件原始 Blob
|
|
45
|
+
*/
|
|
46
|
+
export declare const readLocalFileForPreview: (path: string, readLocalFile: ReadLocalFile, isHtml: boolean) => Promise<LocalFileContent>;
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { ComputedRef, MaybeRefOrGetter, Ref } from 'vue';
|
|
2
2
|
import { AiAnswerReport, OutputFileValue } from 'wi-chat/parser';
|
|
3
|
+
import { ReadLocalFile } from './localFile';
|
|
3
4
|
|
|
4
5
|
/** 文件预览类型 */
|
|
5
6
|
export type OutputFilePreviewKind = 'image' | 'pdf' | 'html' | 'text' | 'code' | 'audio' | 'video' | 'office' | 'unknown';
|
|
6
7
|
/** 宿主接管预览时收到的请求 */
|
|
7
8
|
export interface OutputFilePreviewRequest {
|
|
8
|
-
/** 文件 id */
|
|
9
|
+
/** 文件 id(网页端链路必有;桌面端本地文件可能为空) */
|
|
9
10
|
fileId: string;
|
|
10
11
|
/** 文件名(含扩展名) */
|
|
11
12
|
fileName: string;
|
|
12
|
-
/**
|
|
13
|
+
/** 桌面端本地文件路径(相对或绝对);网页端为空串 */
|
|
14
|
+
filePath: string;
|
|
15
|
+
/** 文件来源:'local' 桌面端本地文件,'remote' 后端接口 */
|
|
16
|
+
source: 'local' | 'remote';
|
|
17
|
+
/** 加载文件二进制(带缓存;本地 HTML 已内联相对资源) */
|
|
13
18
|
loadFile: () => Promise<Blob>;
|
|
14
19
|
/** 下载文件(已加载时直接复用缓存) */
|
|
15
20
|
download: () => Promise<void>;
|
|
@@ -17,10 +22,30 @@ export interface OutputFilePreviewRequest {
|
|
|
17
22
|
/** 宿主注入的 outputFile 配置(provide/inject 通道,见 provideOutputFileConfig) */
|
|
18
23
|
export interface OutputFileConfig {
|
|
19
24
|
/**
|
|
20
|
-
* 按 file_id
|
|
25
|
+
* 按 file_id 加载远端文件二进制(网页端链路):宿主用自己的请求层实现,
|
|
21
26
|
* 可携带鉴权头、走 POST /file/download_file 等。
|
|
22
27
|
*/
|
|
23
28
|
loadFile?: (fileId: string) => Promise<Blob>;
|
|
29
|
+
/**
|
|
30
|
+
* 桌面端本地文件读取(可选,仅桌面端宿主注入):按 file_path 读取本地文件。
|
|
31
|
+
* 注入即代表「当前是桌面端」:报告带 file_path 时优先走本地文件,内容不来自后端接口;
|
|
32
|
+
* 网页端宿主不注入此项,即便报文带了 file_path 也会忽略、仍走 loadFile / getFileUrl。
|
|
33
|
+
*/
|
|
34
|
+
readLocalFile?: ReadLocalFile;
|
|
35
|
+
/**
|
|
36
|
+
* 是否允许使用本地文件读取(响应式断言,可选)。
|
|
37
|
+
* 供宿主根据当前会话规则进行动态裁决(例如「当前 history_group 对话为本地电脑且环境为桌面端」):
|
|
38
|
+
* - 为 true(或缺省):报告带 file_path 且注入了 readLocalFile 时使用 file_path 打开;
|
|
39
|
+
* - 为 false:即便报告带了 file_path 也一律强制回退到 file_id(source 判定为 'remote')。
|
|
40
|
+
*/
|
|
41
|
+
isLocalSupported?: () => boolean;
|
|
42
|
+
/**
|
|
43
|
+
* 会话级访问拦截(可选):返回 true 时 open() / download() 直接短路,
|
|
44
|
+
* 不发起任何文件加载,也不触发 openPreview / downloadFile。
|
|
45
|
+
* 用于「本地电脑会话的 AI 回复文件在纯 Web 端不可打开 / 下载」这类宿主策略,
|
|
46
|
+
* 提示文案由宿主在实现本钩子时自行展示。
|
|
47
|
+
*/
|
|
48
|
+
isAccessBlocked?: () => boolean;
|
|
24
49
|
/**
|
|
25
50
|
* 文件直链(loadFile 缺省时使用):本模块用 fetch 拉取并转 Blob。
|
|
26
51
|
* 内置 Web 消息视图默认注入 ChatApi.getFileUrl 的结果。
|
|
@@ -52,6 +77,10 @@ export interface UseOutputFileReturn {
|
|
|
52
77
|
fileId: ComputedRef<string>;
|
|
53
78
|
/** 文件名(缺省「未命名文件」) */
|
|
54
79
|
fileName: ComputedRef<string>;
|
|
80
|
+
/** 桌面端本地文件路径(相对或绝对);网页端为空串 */
|
|
81
|
+
filePath: ComputedRef<string>;
|
|
82
|
+
/** 文件来源:'local' 桌面端本地文件,'remote' 后端接口 */
|
|
83
|
+
source: ComputedRef<'local' | 'remote'>;
|
|
55
84
|
/** 扩展名(小写,无扩展名时为空串) */
|
|
56
85
|
extension: ComputedRef<string>;
|
|
57
86
|
/** 预览类型 */
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AiAnswerReport, PresentFilesValue } from 'wi-chat/parser';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
/** present_files 报告(values.files[] 为归一化后的 OutputFileValue 列表) */
|
|
5
|
+
report: AiAnswerReport<PresentFilesValue>;
|
|
6
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
/** present_files 报告(values.files[] 为归一化后的 OutputFileValue 列表) */
|
|
8
|
+
report: AiAnswerReport<PresentFilesValue>;
|
|
9
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: import('vue').PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AiAnswerReport, RecordsetValue } from 'wi-chat/parser';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
/** recordset 报告 */
|
|
5
|
+
report: AiAnswerReport<RecordsetValue>;
|
|
6
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
/** recordset 报告 */
|
|
8
|
+
report: AiAnswerReport<RecordsetValue>;
|
|
9
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: import('vue').PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AiAnswerReport, SqlQueryValue } from 'wi-chat/parser';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
/** sql_query 报告(values: { sql, ds_id }) */
|
|
5
|
+
report: AiAnswerReport<SqlQueryValue>;
|
|
6
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
/** sql_query 报告(values: { sql, ds_id }) */
|
|
8
|
+
report: AiAnswerReport<SqlQueryValue>;
|
|
9
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: import('vue').PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
package/dist/renderers/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.flex[data-v-efad55c8]{display:flex}.justify-start[data-v-efad55c8]{justify-content:flex-start}.ai-answer-bubble[data-v-efad55c8]{width:100%;min-width:0;color:#27344d;font-size:14px;line-height:1.75;word-break:break-word}.ai-answer-bubble__error[data-v-efad55c8]{color:#f56c6c}.ai-answer-bubble__status[data-v-efad55c8]{margin-top:4px;color:#8a93a6;font-size:12px}.ai-answer-bubble__loading[data-v-efad55c8]{display:flex;align-items:center;gap:8px;color:#76819a}.ai-answer-bubble__pulse[data-v-efad55c8]{width:7px;height:7px;border-radius:50%;background:var(--wi-chat-primary);box-shadow:0 0 #5b7fff4d;animation:wi-answer-pulse-efad55c8 1.6s ease-out infinite}@keyframes wi-answer-pulse-efad55c8{70%{box-shadow:0 0 0 6px #5b7fff00}to{box-shadow:0 0 #5b7fff00}}.deep-thinking[data-v-de333356]{margin-bottom:12px;overflow:hidden;border:1px solid color-mix(in srgb,var(--wi-chat-primary) 20%,transparent);border-radius:9px;background:color-mix(in srgb,var(--wi-chat-primary) 6%,#fff)}.deep-thinking__header[data-v-de333356]{display:flex;align-items:center;gap:8px;width:100%;padding:9px 11px;border:0;background:transparent;color:#53617c;cursor:pointer;transition:background-color .2s ease,color .2s ease}.deep-thinking__header[data-v-de333356]:hover{background:color-mix(in srgb,var(--wi-chat-primary) 8%,transparent);color:var(--wi-chat-primary)}.deep-thinking__title[data-v-de333356]{display:flex;flex:1;align-items:center;gap:8px;text-align:left;font-weight:600}.deep-thinking__title[data-v-de333356]:before{width:6px;height:6px;border-radius:50%;background:var(--wi-chat-primary);content:""}.deep-thinking__count[data-v-de333356],.deep-thinking__index[data-v-de333356]{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;border-radius:50%;font-size:12px}.deep-thinking__count[data-v-de333356]{background:color-mix(in srgb,var(--wi-chat-primary) 10%,transparent);color:var(--wi-chat-primary);font-weight:600}.deep-thinking__list[data-v-de333356]{display:flex;flex-direction:column;gap:9px;padding:10px 11px 11px;border-top:1px solid #e8ecf8;background:#ffffffb8;color:#5f6d87}.deep-thinking__item[data-v-de333356]{display:grid;grid-template-columns:20px minmax(0,1fr);gap:8px;font-size:13px;line-height:20px}.deep-thinking__index[data-v-de333356]{border:1px solid #dce3f3;background:#fff;color:#687597}.deep-thinking__item[data-v-de333356] p{margin:0}.knowledge-result>div+div[data-v-857bc0d2]{margin-top:12px}.knowledge-result[data-v-857bc0d2] .markdown-it{overflow-wrap:break-word}.knowledge-result[data-v-857bc0d2] .wi-md-table-wrap{position:relative}.knowledge-result[data-v-857bc0d2] .wi-md-table-download{position:absolute;top:4px;right:4px;display:inline-flex;align-items:center;justify-content:center;padding:4px;border:1px solid var(--wi-chat-border, #e1e4e8);border-radius:4px;background:var(--wi-chat-bg, #fff);color:var(--wi-chat-text-secondary, #8a93a6);cursor:pointer;opacity:0;transition:opacity .2s ease;z-index:10}.knowledge-result[data-v-857bc0d2] .wi-md-table-wrap:hover .wi-md-table-download{opacity:1}.knowledge-result[data-v-857bc0d2] .wi-md-table-download:hover{color:var(--wi-chat-primary, #5b7fff);border-color:var(--wi-chat-primary, #5b7fff)}.wi-output-file[data-v-f61a91b5]{width:100%;max-width:380px}.wi-output-file__card[data-v-f61a91b5]{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border:1px solid var(--wi-chat-border, #e1e4e8);border-left:3px solid var(--wi-chat-primary, #5b7fff);border-radius:12px;background:var(--wi-chat-bg, #fff);cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.wi-output-file__card[data-v-f61a91b5]:hover,.wi-output-file__card[data-v-f61a91b5]:focus-visible{border-color:color-mix(in srgb,var(--wi-chat-primary, #5b7fff) 45%,#fff);box-shadow:0 10px 26px #2d5ba021;outline:none;transform:translateY(-1px)}.wi-output-file__icon[data-v-f61a91b5]{display:grid;flex:0 0 40px;width:40px;height:46px;place-items:center;border:1px solid #e4ebf5;border-radius:9px;background:#f3f7fd;color:var(--wi-chat-primary, #5b7fff)}.wi-output-file__icon svg[data-v-f61a91b5]{width:22px;height:22px}.wi-output-file__icon.is-image[data-v-f61a91b5]{background:#eefbf4;border-color:#d6f0e0;color:#16a34a}.wi-output-file__icon.is-pdf[data-v-f61a91b5]{background:#fff1f0;border-color:#fbd9d6;color:#e5484d}.wi-output-file__icon.is-office[data-v-f61a91b5]{background:#eef4ff;border-color:#dbe7ff;color:#2f6feb}.wi-output-file__icon.is-audio[data-v-f61a91b5],.wi-output-file__icon.is-video[data-v-f61a91b5]{background:#f6efff;border-color:#ead9ff;color:#8b5cf6}.wi-output-file__icon.is-text[data-v-f61a91b5],.wi-output-file__icon.is-code[data-v-f61a91b5],.wi-output-file__icon.is-html[data-v-f61a91b5]{background:#f4f6fa;border-color:#e3e8f0;color:#536176}.wi-output-file__info[data-v-f61a91b5]{flex:1;min-width:0}.wi-output-file__name[data-v-f61a91b5]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--wi-chat-text, #27344d);font-size:14px;font-weight:600}.wi-output-file__meta[data-v-f61a91b5]{display:flex;align-items:center;gap:8px;margin-top:4px;color:var(--wi-chat-text-secondary, #8a93a6);font-size:11px}.wi-output-file__ext[data-v-f61a91b5]{font-weight:600;letter-spacing:.04em}.wi-output-file__download[data-v-f61a91b5]{display:grid;flex:0 0 32px;width:32px;height:32px;place-items:center;border:1px solid var(--wi-chat-border, #e1e4e8);border-radius:8px;background:#f7f9fc;color:#536176;cursor:pointer;transition:color .15s ease,background .15s ease,border-color .15s ease}.wi-output-file__download[data-v-f61a91b5]:hover,.wi-output-file__download[data-v-f61a91b5]:focus-visible{border-color:var(--wi-chat-primary, #5b7fff);background:var(--wi-chat-primary, #5b7fff);color:#fff;outline:none}.wi-output-file__download svg[data-v-f61a91b5]{width:16px;height:16px}.wi-output-file-mask[data-v-f61a91b5]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:3000;display:flex;justify-content:flex-end;background:#0f172a52}.wi-output-file-drawer[data-v-f61a91b5]{display:flex;flex-direction:column;width:min(620px,92vw);height:100%;background:var(--wi-chat-bg, #fff);box-shadow:-12px 0 32px #0f172a2e}@media (max-width: 640px){.wi-output-file-drawer[data-v-f61a91b5]{width:100vw}}.wi-output-file-drawer__head[data-v-f61a91b5]{display:flex;align-items:flex-start;gap:12px;padding:16px 18px;border-bottom:1px solid var(--wi-chat-border, #e1e4e8)}.wi-output-file-drawer__title[data-v-f61a91b5]{flex:1;min-width:0}.wi-output-file-drawer__ext[data-v-f61a91b5]{display:inline-block;padding:2px 6px;border-radius:4px;background:#eef2ff;color:var(--wi-chat-primary, #5b7fff);font-size:11px;font-weight:600;letter-spacing:.04em}.wi-output-file-drawer__name[data-v-f61a91b5]{margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--wi-chat-text, #27344d);font-size:15px;font-weight:600}.wi-output-file-drawer__size[data-v-f61a91b5]{margin-top:4px;color:var(--wi-chat-text-secondary, #8a93a6);font-size:12px}.wi-output-file-drawer__actions[data-v-f61a91b5]{display:flex;flex:0 0 auto;gap:8px}.wi-output-file-drawer__btn[data-v-f61a91b5]{padding:5px 12px;border:1px solid var(--wi-chat-border, #e1e4e8);border-radius:7px;background:#f7f9fc;color:#536176;font-family:inherit;font-size:12px;cursor:pointer}.wi-output-file-drawer__btn[data-v-f61a91b5]:hover,.wi-output-file-drawer__btn[data-v-f61a91b5]:focus-visible{border-color:var(--wi-chat-primary, #5b7fff);color:var(--wi-chat-primary, #5b7fff);outline:none}.wi-output-file-drawer__btn--close[data-v-f61a91b5]{padding:3px 10px;font-size:18px;line-height:1.2}.wi-output-file-drawer__body[data-v-f61a91b5]{flex:1;min-height:0;padding:16px 18px;overflow:auto;background:#f8fafc}.wi-output-file-drawer__state[data-v-f61a91b5]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;height:100%;color:var(--wi-chat-text-secondary, #8a93a6);font-size:13px;text-align:center}.wi-output-file-drawer__state.is-error[data-v-f61a91b5]{color:#f56c6c}.wi-output-file-drawer__state p[data-v-f61a91b5]{margin:0}.wi-output-file-drawer__image[data-v-f61a91b5]{display:block;max-width:100%;margin:0 auto;border-radius:8px;background:#fff}.wi-output-file-drawer__frame[data-v-f61a91b5]{width:100%;height:100%;min-height:70vh;border:0;border-radius:8px;background:#fff}.wi-output-file-drawer__media[data-v-f61a91b5]{display:block;width:100%;max-height:70vh;margin:0 auto}.wi-output-file-drawer__text[data-v-f61a91b5]{min-height:100%;margin:0;padding:14px;border:1px solid var(--wi-chat-border, #e1e4e8);border-radius:8px;background:#fff;color:var(--wi-chat-text, #27344d);font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:12.5px;line-height:1.6;white-space:pre-wrap;word-break:break-word}.wi-output-file-fade-enter-active[data-v-f61a91b5],.wi-output-file-fade-leave-active[data-v-f61a91b5]{transition:opacity .18s ease}.wi-output-file-fade-enter-from[data-v-f61a91b5],.wi-output-file-fade-leave-to[data-v-f61a91b5]{opacity:0}.iframe-page__frame[data-v-f4c94a4e]{width:100%;border:0}.iframe-page__frame--url[data-v-f4c94a4e]{height:var(--wi-chat-iframe-url-height, 70vh)}.wi-clarify[data-v-c684f993],.wi-clarify[data-v-c684f993] *{box-sizing:border-box}.wi-clarify[data-v-c684f993]{width:620px;max-width:100%;overflow:hidden;border:1px solid var(--wi-chat-border, #d9e0e8);border-radius:12px;background:var(--wi-chat-bg, #fff);color:var(--wi-chat-text, #172033);font-size:14px;box-shadow:0 8px 24px #16223314}.wi-clarify__header[data-v-c684f993]{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 18px 14px;border-bottom:1px solid var(--wi-chat-border, #edf0f4);background:linear-gradient(135deg,#f8fbff,#f5f8ff 55%,#fbfcfe)}.wi-clarify__eyebrow[data-v-c684f993]{color:var(--wi-chat-primary, #356ae6);font-size:11px;font-weight:700;letter-spacing:.08em}.wi-clarify__title[data-v-c684f993]{margin:3px 0 5px;color:var(--wi-chat-text, #152238);font-size:16px;line-height:1.35}.wi-clarify__desc[data-v-c684f993]{margin:0;color:var(--wi-chat-text-secondary, #65738a);font-size:13px;line-height:1.55}.wi-clarify__status[data-v-c684f993]{flex:0 0 auto;padding:4px 9px;border:1px solid color-mix(in srgb,var(--wi-chat-primary, #356ae6) 28%,transparent);border-radius:999px;background:color-mix(in srgb,var(--wi-chat-primary, #356ae6) 10%,transparent);color:var(--wi-chat-primary, #3561bd);font-size:11px;line-height:1.4}.wi-clarify__progress[data-v-c684f993]{display:flex;align-items:center;gap:12px;padding:12px 18px 0;color:var(--wi-chat-text-secondary, #6c788c);font-size:12px}.wi-clarify__progress-track[data-v-c684f993]{flex:1;height:4px;overflow:hidden;border-radius:999px;background:var(--wi-chat-border, #e9edf3)}.wi-clarify__progress-track span[data-v-c684f993]{display:block;height:100%;border-radius:inherit;background:var(--wi-chat-primary, #356ae6);transition:width .2s ease}.wi-clarify__panel[data-v-c684f993]{padding:18px}.wi-clarify__question[data-v-c684f993]{display:flex;align-items:flex-start;gap:9px}.wi-clarify__question h4[data-v-c684f993]{margin:0;color:var(--wi-chat-text, #152238);font-size:15px;font-weight:650;line-height:1.5}.wi-clarify__required[data-v-c684f993],.wi-clarify__optional[data-v-c684f993]{flex:0 0 auto;margin-top:2px;padding:2px 6px;border-radius:5px;font-size:10px;font-weight:650;line-height:16px}.wi-clarify__required[data-v-c684f993]{background:#fff0ee;color:#c34737}.wi-clarify__optional[data-v-c684f993]{background:#f0f2f5;color:#6c788c}.wi-clarify__question-desc[data-v-c684f993]{margin:7px 0 0;color:var(--wi-chat-text-secondary, #6b778c);font-size:13px;line-height:1.55}.wi-clarify__binding[data-v-c684f993]{display:inline-flex;margin-top:9px;padding:4px 8px;border-radius:6px;background:#f3f5f8;color:#7a8494;font-family:Consolas,monospace;font-size:11px}.wi-clarify__options[data-v-c684f993]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:14px}.wi-clarify__option[data-v-c684f993]{display:flex;align-items:center;gap:9px;min-height:40px;padding:8px 10px;border:1px solid var(--wi-chat-border, #dce2ea);border-radius:8px;background:var(--wi-chat-bg, #fff);color:var(--wi-chat-text, #354258);font-family:inherit;font-size:13px;text-align:left;cursor:pointer;transition:border-color .15s ease,background .15s ease,color .15s ease}.wi-clarify__option[data-v-c684f993]:hover{border-color:color-mix(in srgb,var(--wi-chat-primary, #356ae6) 45%,transparent);background:color-mix(in srgb,var(--wi-chat-primary, #356ae6) 6%,transparent)}.wi-clarify__option.is-selected[data-v-c684f993]{border-color:var(--wi-chat-primary, #5680de);background:color-mix(in srgb,var(--wi-chat-primary, #356ae6) 12%,transparent);color:var(--wi-chat-primary, #244fad)}.wi-clarify__option-indicator[data-v-c684f993]{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:17px;height:17px;border:1px solid #c4ccd7;border-radius:5px;background:#fff;color:#fff;font-size:11px}.wi-clarify__option.is-selected .wi-clarify__option-indicator[data-v-c684f993]{border-color:var(--wi-chat-primary, #356ae6);background:var(--wi-chat-primary, #356ae6)}.wi-clarify__date[data-v-c684f993]{margin-top:14px}.wi-clarify__date label[data-v-c684f993],.wi-clarify__date input[data-v-c684f993]{display:block}.wi-clarify__date label[data-v-c684f993]{margin-bottom:6px;color:var(--wi-chat-text-secondary, #5d687a);font-size:12px}.wi-clarify__date input[data-v-c684f993]{width:100%;height:40px;padding:0 12px;border:1px solid var(--wi-chat-border, #dce2ea);border-radius:8px;background:var(--wi-chat-bg, #fff);color:var(--wi-chat-text, #26354c);font-family:inherit;font-size:14px;outline:none}.wi-clarify__date input[data-v-c684f993]:focus{border-color:var(--wi-chat-primary, #5680de)}.wi-clarify__text[data-v-c684f993]{margin-top:14px}.wi-clarify__text label[data-v-c684f993]{display:block;margin-bottom:6px;color:var(--wi-chat-text-secondary, #5d687a);font-size:12px}.wi-clarify__text textarea[data-v-c684f993]{display:block;width:100%;min-height:72px;padding:9px 12px;resize:vertical;border:1px solid var(--wi-chat-border, #dce2ea);border-radius:8px;background:var(--wi-chat-bg, #fff);color:var(--wi-chat-text, #26354c);font-family:inherit;font-size:13px;line-height:1.55;outline:none}.wi-clarify__text textarea[data-v-c684f993]:focus{border-color:var(--wi-chat-primary, #5680de)}.wi-clarify__or[data-v-c684f993]{display:flex;align-items:center;gap:10px;margin-bottom:12px;color:var(--wi-chat-text-secondary, #9199a7);font-size:11px}.wi-clarify__or[data-v-c684f993]:before,.wi-clarify__or[data-v-c684f993]:after{flex:1;height:1px;background:var(--wi-chat-border, #edf0f4);content:""}.wi-clarify__dots[data-v-c684f993]{display:flex;align-items:center;justify-content:center;gap:6px;padding:0 18px 12px}.wi-clarify__dots button[data-v-c684f993]{width:7px;height:7px;padding:0;border:0;border-radius:999px;background:var(--wi-chat-border, #d7dce4);cursor:pointer;transition:width .15s ease,background .15s ease}.wi-clarify__dots button.is-answered[data-v-c684f993]{background:color-mix(in srgb,var(--wi-chat-primary, #356ae6) 45%,transparent)}.wi-clarify__dots button.is-active[data-v-c684f993]{width:22px;background:var(--wi-chat-primary, #356ae6)}.wi-clarify__footer[data-v-c684f993]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-top:1px solid var(--wi-chat-border, #edf0f4);background:var(--wi-chat-header-bg, #fafbfd)}.wi-clarify__confirm-text[data-v-c684f993]{color:var(--wi-chat-text-secondary, #6c788c);font-size:12px}.wi-clarify__actions[data-v-c684f993]{display:flex;gap:8px}.wi-clarify__cancel[data-v-c684f993]{padding:7px 10px;border:0;background:transparent;color:var(--wi-chat-text-secondary, #7a8494);font-family:inherit;font-size:13px;cursor:pointer}.wi-clarify__btn[data-v-c684f993]{min-height:34px;padding:6px 14px;border-radius:8px;font-family:inherit;font-size:13px;font-weight:600;cursor:pointer}.wi-clarify__btn--secondary[data-v-c684f993]{border:1px solid var(--wi-chat-border, #d7dde6);background:var(--wi-chat-bg, #fff);color:var(--wi-chat-text, #4b586c)}.wi-clarify__btn--secondary[data-v-c684f993]:disabled{opacity:.45;cursor:not-allowed}.wi-clarify__btn--primary[data-v-c684f993]{border:1px solid var(--wi-chat-primary, #356ae6);background:var(--wi-chat-primary, #356ae6);color:#fff}.wi-clarify__btn--danger[data-v-c684f993]{border:1px solid #d9534f;background:#d9534f;color:#fff}.wi-clarify__result[data-v-c684f993]{display:flex;gap:12px;padding:18px}.wi-clarify__result-icon[data-v-c684f993]{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#eaf8ef;color:#23834b;font-size:13px;font-weight:700}.wi-clarify__result-body h4[data-v-c684f993]{margin:0 0 5px;color:var(--wi-chat-text, #223047);font-size:14px}.wi-clarify__result-body p[data-v-c684f993]{margin:0;color:var(--wi-chat-text-secondary, #707b8e);font-size:13px}.wi-clarify__summary[data-v-c684f993]{display:grid;gap:8px;margin-top:10px}.wi-clarify__summary div[data-v-c684f993]{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(0,1.2fr);gap:12px;padding:7px 10px;border-radius:7px;background:var(--wi-chat-header-bg, #f6f8fb);font-size:12px;line-height:1.45}.wi-clarify__summary span[data-v-c684f993]{color:var(--wi-chat-text-secondary, #747f90)}.wi-clarify__summary strong[data-v-c684f993]{color:var(--wi-chat-text, #344158);font-weight:600;word-break:break-word}.wi-clarify__feedback[data-v-c684f993]{padding:8px 18px 12px;color:#c34737;font-size:12px}.is-cancelled .wi-clarify__status[data-v-c684f993],.is-expired .wi-clarify__status[data-v-c684f993]{border-color:var(--wi-chat-border, #e1e4e9);background:#f3f4f6;color:#737d8c}.is-cancelled .wi-clarify__result-icon[data-v-c684f993],.is-expired .wi-clarify__result-icon[data-v-c684f993]{background:#f0f2f5;color:#747e8d}@media (max-width: 520px){.wi-clarify__header[data-v-c684f993],.wi-clarify__panel[data-v-c684f993],.wi-clarify__footer[data-v-c684f993],.wi-clarify__result[data-v-c684f993]{padding-right:14px;padding-left:14px}.wi-clarify__options[data-v-c684f993]{grid-template-columns:1fr}.wi-clarify__footer[data-v-c684f993]{align-items:stretch;flex-direction:column-reverse}.wi-clarify__actions[data-v-c684f993]{display:grid;grid-template-columns:1fr 1fr}.wi-clarify__summary div[data-v-c684f993]{grid-template-columns:1fr;gap:3px}}.wi-host-action[data-v-4acb4d02],.wi-host-action[data-v-4acb4d02] *{box-sizing:border-box}.wi-host-action[data-v-4acb4d02]{width:620px;max-width:100%;margin:4px 0;padding:10px 12px;border:1px solid var(--wi-chat-border, #e5e9f0);border-radius:10px;background:var(--wi-chat-header-bg, #fafbfd);color:var(--wi-chat-text, #27344d);font-size:13px;line-height:1.6}.wi-host-action__head[data-v-4acb4d02]{display:flex;align-items:center;gap:8px}.wi-host-action__icon[data-v-4acb4d02]{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:color-mix(in srgb,var(--wi-chat-primary, #5b7fff) 14%,transparent);color:var(--wi-chat-primary, #5b7fff);font-size:11px;font-weight:700}.is-running .wi-host-action__icon[data-v-4acb4d02]{animation:wi-host-action-blink-4acb4d02 1.2s ease-in-out infinite}.is-success .wi-host-action__icon[data-v-4acb4d02]{background:#eaf8ef;color:#23834b}.is-error .wi-host-action__icon[data-v-4acb4d02]{background:#fff0ee;color:#c34737}.wi-host-action__title[data-v-4acb4d02]{display:flex;align-items:center;gap:6px;min-width:0}.wi-host-action__label[data-v-4acb4d02]{color:var(--wi-chat-text-secondary, #6b778c);font-size:12px}.wi-host-action__name[data-v-4acb4d02]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--wi-chat-text, #354258);font-family:Consolas,monospace;font-size:12px}.wi-host-action__chip[data-v-4acb4d02]{flex:0 0 auto;margin-left:auto;padding:2px 8px;border:1px solid color-mix(in srgb,var(--wi-chat-primary, #5b7fff) 28%,transparent);border-radius:999px;background:color-mix(in srgb,var(--wi-chat-primary, #5b7fff) 8%,transparent);color:var(--wi-chat-primary, #3f5fbf);font-size:11px;line-height:1.5}.is-success .wi-host-action__chip[data-v-4acb4d02]{border-color:#bfe3cd;background:#eaf8ef;color:#23834b}.is-error .wi-host-action__chip[data-v-4acb4d02]{border-color:#f2c9c4;background:#fff0ee;color:#c34737}.is-unknown .wi-host-action__chip[data-v-4acb4d02]{border-color:var(--wi-chat-border, #e1e4e9);background:#f3f4f6;color:#737d8c}.wi-host-action__message[data-v-4acb4d02]{margin:6px 0 0 26px;color:var(--wi-chat-text-secondary, #6b778c);font-size:12px;word-break:break-word}.wi-host-action__args[data-v-4acb4d02]{margin:6px 0 0 26px}.wi-host-action__args summary[data-v-4acb4d02]{color:var(--wi-chat-primary, #5b7fff);font-size:11px;cursor:pointer;outline:none}.wi-host-action__args pre[data-v-4acb4d02]{max-height:160px;margin:6px 0 0;padding:8px;overflow:auto;border-radius:6px;background:var(--wi-chat-bg, #fff);color:#46536b;font-size:11px;line-height:1.5}@keyframes wi-host-action-blink-4acb4d02{0%,to{opacity:1}50%{opacity:.3}}
|
|
1
|
+
@charset "UTF-8";.flex[data-v-efad55c8]{display:flex}.justify-start[data-v-efad55c8]{justify-content:flex-start}.ai-answer-bubble[data-v-efad55c8]{width:100%;min-width:0;color:#27344d;font-size:14px;line-height:1.75;word-break:break-word}.ai-answer-bubble__error[data-v-efad55c8]{color:#f56c6c}.ai-answer-bubble__status[data-v-efad55c8]{margin-top:4px;color:#8a93a6;font-size:12px}.ai-answer-bubble__loading[data-v-efad55c8]{display:flex;align-items:center;gap:8px;color:#76819a}.ai-answer-bubble__pulse[data-v-efad55c8]{width:7px;height:7px;border-radius:50%;background:var(--wi-chat-primary);box-shadow:0 0 #5b7fff4d;animation:wi-answer-pulse-efad55c8 1.6s ease-out infinite}@keyframes wi-answer-pulse-efad55c8{70%{box-shadow:0 0 0 6px #5b7fff00}to{box-shadow:0 0 #5b7fff00}}.deep-thinking[data-v-6ce85bcf]{margin-bottom:12px;overflow:hidden;border:1px solid color-mix(in srgb,var(--wi-chat-primary) 20%,transparent);border-radius:9px;background:color-mix(in srgb,var(--wi-chat-primary) 6%,#fff)}.deep-thinking__header[data-v-6ce85bcf]{display:flex;align-items:center;gap:8px;width:100%;padding:9px 11px;border:0;background:transparent;color:#53617c;cursor:pointer;transition:background-color .2s ease,color .2s ease}.deep-thinking__header[data-v-6ce85bcf]:hover{background:color-mix(in srgb,var(--wi-chat-primary) 8%,transparent);color:var(--wi-chat-primary)}.deep-thinking__title[data-v-6ce85bcf]{display:flex;flex:1;align-items:center;gap:8px;text-align:left;font-weight:600}.deep-thinking__title[data-v-6ce85bcf]:before{width:6px;height:6px;border-radius:50%;background:var(--wi-chat-primary);content:""}.deep-thinking__count[data-v-6ce85bcf],.deep-thinking__index[data-v-6ce85bcf]{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;border-radius:50%;font-size:12px}.deep-thinking__count[data-v-6ce85bcf]{background:color-mix(in srgb,var(--wi-chat-primary) 10%,transparent);color:var(--wi-chat-primary);font-weight:600}.deep-thinking__list[data-v-6ce85bcf]{display:flex;flex-direction:column;gap:9px;padding:10px 11px 11px;border-top:1px solid #e8ecf8;background:#ffffffb8;color:#5f6d87}.deep-thinking__item[data-v-6ce85bcf]{display:grid;grid-template-columns:20px minmax(0,1fr);gap:8px;font-size:13px;line-height:20px}.deep-thinking__index[data-v-6ce85bcf]{border:1px solid #dce3f3;background:#fff;color:#687597}.deep-thinking__item[data-v-6ce85bcf] p{margin:0}.knowledge-result>div+div[data-v-8d14c026]{margin-top:12px}.wi-output-file[data-v-f96eaa7a]{width:100%;max-width:380px}.wi-output-file__card[data-v-f96eaa7a]{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border:1px solid var(--wi-chat-border, #e1e4e8);border-left:3px solid var(--wi-chat-primary, #5b7fff);border-radius:12px;background:var(--wi-chat-bg, #fff);cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.wi-output-file__card[data-v-f96eaa7a]:hover,.wi-output-file__card[data-v-f96eaa7a]:focus-visible{border-color:color-mix(in srgb,var(--wi-chat-primary, #5b7fff) 45%,#fff);box-shadow:0 10px 26px #2d5ba021;outline:none;transform:translateY(-1px)}.wi-output-file__icon[data-v-f96eaa7a]{display:grid;flex:0 0 40px;width:40px;height:46px;place-items:center;border:1px solid #e4ebf5;border-radius:9px;background:#f3f7fd;color:var(--wi-chat-primary, #5b7fff)}.wi-output-file__icon svg[data-v-f96eaa7a]{width:22px;height:22px}.wi-output-file__icon.is-image[data-v-f96eaa7a]{background:#eefbf4;border-color:#d6f0e0;color:#16a34a}.wi-output-file__icon.is-pdf[data-v-f96eaa7a]{background:#fff1f0;border-color:#fbd9d6;color:#e5484d}.wi-output-file__icon.is-office[data-v-f96eaa7a]{background:#eef4ff;border-color:#dbe7ff;color:#2f6feb}.wi-output-file__icon.is-audio[data-v-f96eaa7a],.wi-output-file__icon.is-video[data-v-f96eaa7a]{background:#f6efff;border-color:#ead9ff;color:#8b5cf6}.wi-output-file__icon.is-text[data-v-f96eaa7a],.wi-output-file__icon.is-code[data-v-f96eaa7a],.wi-output-file__icon.is-html[data-v-f96eaa7a]{background:#f4f6fa;border-color:#e3e8f0;color:#536176}.wi-output-file__info[data-v-f96eaa7a]{flex:1;min-width:0}.wi-output-file__name[data-v-f96eaa7a]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--wi-chat-text, #27344d);font-size:14px;font-weight:600}.wi-output-file__meta[data-v-f96eaa7a]{display:flex;align-items:center;gap:8px;margin-top:4px;color:var(--wi-chat-text-secondary, #8a93a6);font-size:11px}.wi-output-file__ext[data-v-f96eaa7a]{font-weight:600;letter-spacing:.04em}.wi-output-file__download[data-v-f96eaa7a]{display:grid;flex:0 0 32px;width:32px;height:32px;place-items:center;border:1px solid var(--wi-chat-border, #e1e4e8);border-radius:8px;background:#f7f9fc;color:#536176;cursor:pointer;transition:color .15s ease,background .15s ease,border-color .15s ease}.wi-output-file__download[data-v-f96eaa7a]:hover,.wi-output-file__download[data-v-f96eaa7a]:focus-visible{border-color:var(--wi-chat-primary, #5b7fff);background:var(--wi-chat-primary, #5b7fff);color:#fff;outline:none}.wi-output-file__download svg[data-v-f96eaa7a]{width:16px;height:16px}.wi-output-file-mask[data-v-f96eaa7a]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:3000;display:flex;justify-content:flex-end;background:#0f172a52}.wi-output-file-drawer[data-v-f96eaa7a]{display:flex;flex-direction:column;width:min(620px,92vw);height:100%;background:var(--wi-chat-bg, #fff);box-shadow:-12px 0 32px #0f172a2e}@media (max-width: 640px){.wi-output-file-drawer[data-v-f96eaa7a]{width:100vw}}.wi-output-file-drawer__head[data-v-f96eaa7a]{display:flex;align-items:flex-start;gap:12px;padding:16px 18px;border-bottom:1px solid var(--wi-chat-border, #e1e4e8)}.wi-output-file-drawer__title[data-v-f96eaa7a]{flex:1;min-width:0}.wi-output-file-drawer__ext[data-v-f96eaa7a]{display:inline-block;padding:2px 6px;border-radius:4px;background:#eef2ff;color:var(--wi-chat-primary, #5b7fff);font-size:11px;font-weight:600;letter-spacing:.04em}.wi-output-file-drawer__name[data-v-f96eaa7a]{margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--wi-chat-text, #27344d);font-size:15px;font-weight:600}.wi-output-file-drawer__size[data-v-f96eaa7a]{margin-top:4px;color:var(--wi-chat-text-secondary, #8a93a6);font-size:12px}.wi-output-file-drawer__actions[data-v-f96eaa7a]{display:flex;flex:0 0 auto;gap:8px}.wi-output-file-drawer__btn[data-v-f96eaa7a]{padding:5px 12px;border:1px solid var(--wi-chat-border, #e1e4e8);border-radius:7px;background:#f7f9fc;color:#536176;font-family:inherit;font-size:12px;cursor:pointer}.wi-output-file-drawer__btn[data-v-f96eaa7a]:hover,.wi-output-file-drawer__btn[data-v-f96eaa7a]:focus-visible{border-color:var(--wi-chat-primary, #5b7fff);color:var(--wi-chat-primary, #5b7fff);outline:none}.wi-output-file-drawer__btn--close[data-v-f96eaa7a]{padding:3px 10px;font-size:18px;line-height:1.2}.wi-output-file-drawer__body[data-v-f96eaa7a]{flex:1;min-height:0;padding:16px 18px;overflow:auto;background:#f8fafc}.wi-output-file-drawer__state[data-v-f96eaa7a]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;height:100%;color:var(--wi-chat-text-secondary, #8a93a6);font-size:13px;text-align:center}.wi-output-file-drawer__state.is-error[data-v-f96eaa7a]{color:#f56c6c}.wi-output-file-drawer__state p[data-v-f96eaa7a]{margin:0}.wi-output-file-drawer__image[data-v-f96eaa7a]{display:block;max-width:100%;margin:0 auto;border-radius:8px;background:#fff}.wi-output-file-drawer__frame[data-v-f96eaa7a]{width:100%;height:100%;min-height:70vh;border:0;border-radius:8px;background:#fff}.wi-output-file-drawer__media[data-v-f96eaa7a]{display:block;width:100%;max-height:70vh;margin:0 auto}.wi-output-file-drawer__text[data-v-f96eaa7a]{min-height:100%;margin:0;padding:14px;border:1px solid var(--wi-chat-border, #e1e4e8);border-radius:8px;background:#fff;color:var(--wi-chat-text, #27344d);font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:12.5px;line-height:1.6;white-space:pre-wrap;word-break:break-word}.wi-output-file-fade-enter-active[data-v-f96eaa7a],.wi-output-file-fade-leave-active[data-v-f96eaa7a]{transition:opacity .18s ease}.wi-output-file-fade-enter-from[data-v-f96eaa7a],.wi-output-file-fade-leave-to[data-v-f96eaa7a]{opacity:0}.wi-output-file-link[data-v-d9a5a149]{display:inline-flex;align-items:center;gap:6px;max-width:100%;vertical-align:middle}.wi-output-file-link__anchor[data-v-d9a5a149]{display:inline-flex;align-items:center;gap:4px;min-width:0;color:var(--wi-chat-primary, #409eff);font-size:13px;line-height:1.5;text-decoration:underline;text-underline-offset:2px;cursor:pointer;transition:opacity .15s ease}.wi-output-file-link__anchor[data-v-d9a5a149]:hover{opacity:.75}.wi-output-file-link__anchor[data-v-d9a5a149]:focus-visible{outline:2px solid var(--wi-chat-primary, #409eff);outline-offset:2px;border-radius:2px}.wi-output-file-link__icon[data-v-d9a5a149]{flex:none;width:14px;height:14px}.wi-output-file-link__name[data-v-d9a5a149]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.wi-output-file-link__download[data-v-d9a5a149]{display:inline-flex;align-items:center;justify-content:center;flex:none;width:18px;height:18px;padding:0;border:0;background:transparent;color:var(--wi-chat-text-secondary, #8a94a6);cursor:pointer;transition:color .15s ease}.wi-output-file-link__download[data-v-d9a5a149]:hover{color:var(--wi-chat-primary, #409eff)}.wi-output-file-link__download[data-v-d9a5a149]:focus-visible{outline:2px solid var(--wi-chat-primary, #409eff);outline-offset:1px;border-radius:2px}.wi-output-file-link__download svg[data-v-d9a5a149]{width:14px;height:14px}.wi-present-files[data-v-9e9518be]{display:flex;flex-direction:column;gap:8px;width:100%}.iframe-page__frame[data-v-f4c94a4e]{width:100%;border:0}.iframe-page__frame--url[data-v-f4c94a4e]{height:var(--wi-chat-iframe-url-height, 70vh)}.wi-clarify[data-v-c684f993],.wi-clarify[data-v-c684f993] *{box-sizing:border-box}.wi-clarify[data-v-c684f993]{width:620px;max-width:100%;overflow:hidden;border:1px solid var(--wi-chat-border, #d9e0e8);border-radius:12px;background:var(--wi-chat-bg, #fff);color:var(--wi-chat-text, #172033);font-size:14px;box-shadow:0 8px 24px #16223314}.wi-clarify__header[data-v-c684f993]{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 18px 14px;border-bottom:1px solid var(--wi-chat-border, #edf0f4);background:linear-gradient(135deg,#f8fbff,#f5f8ff 55%,#fbfcfe)}.wi-clarify__eyebrow[data-v-c684f993]{color:var(--wi-chat-primary, #356ae6);font-size:11px;font-weight:700;letter-spacing:.08em}.wi-clarify__title[data-v-c684f993]{margin:3px 0 5px;color:var(--wi-chat-text, #152238);font-size:16px;line-height:1.35}.wi-clarify__desc[data-v-c684f993]{margin:0;color:var(--wi-chat-text-secondary, #65738a);font-size:13px;line-height:1.55}.wi-clarify__status[data-v-c684f993]{flex:0 0 auto;padding:4px 9px;border:1px solid color-mix(in srgb,var(--wi-chat-primary, #356ae6) 28%,transparent);border-radius:999px;background:color-mix(in srgb,var(--wi-chat-primary, #356ae6) 10%,transparent);color:var(--wi-chat-primary, #3561bd);font-size:11px;line-height:1.4}.wi-clarify__progress[data-v-c684f993]{display:flex;align-items:center;gap:12px;padding:12px 18px 0;color:var(--wi-chat-text-secondary, #6c788c);font-size:12px}.wi-clarify__progress-track[data-v-c684f993]{flex:1;height:4px;overflow:hidden;border-radius:999px;background:var(--wi-chat-border, #e9edf3)}.wi-clarify__progress-track span[data-v-c684f993]{display:block;height:100%;border-radius:inherit;background:var(--wi-chat-primary, #356ae6);transition:width .2s ease}.wi-clarify__panel[data-v-c684f993]{padding:18px}.wi-clarify__question[data-v-c684f993]{display:flex;align-items:flex-start;gap:9px}.wi-clarify__question h4[data-v-c684f993]{margin:0;color:var(--wi-chat-text, #152238);font-size:15px;font-weight:650;line-height:1.5}.wi-clarify__required[data-v-c684f993],.wi-clarify__optional[data-v-c684f993]{flex:0 0 auto;margin-top:2px;padding:2px 6px;border-radius:5px;font-size:10px;font-weight:650;line-height:16px}.wi-clarify__required[data-v-c684f993]{background:#fff0ee;color:#c34737}.wi-clarify__optional[data-v-c684f993]{background:#f0f2f5;color:#6c788c}.wi-clarify__question-desc[data-v-c684f993]{margin:7px 0 0;color:var(--wi-chat-text-secondary, #6b778c);font-size:13px;line-height:1.55}.wi-clarify__binding[data-v-c684f993]{display:inline-flex;margin-top:9px;padding:4px 8px;border-radius:6px;background:#f3f5f8;color:#7a8494;font-family:Consolas,monospace;font-size:11px}.wi-clarify__options[data-v-c684f993]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:14px}.wi-clarify__option[data-v-c684f993]{display:flex;align-items:center;gap:9px;min-height:40px;padding:8px 10px;border:1px solid var(--wi-chat-border, #dce2ea);border-radius:8px;background:var(--wi-chat-bg, #fff);color:var(--wi-chat-text, #354258);font-family:inherit;font-size:13px;text-align:left;cursor:pointer;transition:border-color .15s ease,background .15s ease,color .15s ease}.wi-clarify__option[data-v-c684f993]:hover{border-color:color-mix(in srgb,var(--wi-chat-primary, #356ae6) 45%,transparent);background:color-mix(in srgb,var(--wi-chat-primary, #356ae6) 6%,transparent)}.wi-clarify__option.is-selected[data-v-c684f993]{border-color:var(--wi-chat-primary, #5680de);background:color-mix(in srgb,var(--wi-chat-primary, #356ae6) 12%,transparent);color:var(--wi-chat-primary, #244fad)}.wi-clarify__option-indicator[data-v-c684f993]{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:17px;height:17px;border:1px solid #c4ccd7;border-radius:5px;background:#fff;color:#fff;font-size:11px}.wi-clarify__option.is-selected .wi-clarify__option-indicator[data-v-c684f993]{border-color:var(--wi-chat-primary, #356ae6);background:var(--wi-chat-primary, #356ae6)}.wi-clarify__date[data-v-c684f993]{margin-top:14px}.wi-clarify__date label[data-v-c684f993],.wi-clarify__date input[data-v-c684f993]{display:block}.wi-clarify__date label[data-v-c684f993]{margin-bottom:6px;color:var(--wi-chat-text-secondary, #5d687a);font-size:12px}.wi-clarify__date input[data-v-c684f993]{width:100%;height:40px;padding:0 12px;border:1px solid var(--wi-chat-border, #dce2ea);border-radius:8px;background:var(--wi-chat-bg, #fff);color:var(--wi-chat-text, #26354c);font-family:inherit;font-size:14px;outline:none}.wi-clarify__date input[data-v-c684f993]:focus{border-color:var(--wi-chat-primary, #5680de)}.wi-clarify__text[data-v-c684f993]{margin-top:14px}.wi-clarify__text label[data-v-c684f993]{display:block;margin-bottom:6px;color:var(--wi-chat-text-secondary, #5d687a);font-size:12px}.wi-clarify__text textarea[data-v-c684f993]{display:block;width:100%;min-height:72px;padding:9px 12px;resize:vertical;border:1px solid var(--wi-chat-border, #dce2ea);border-radius:8px;background:var(--wi-chat-bg, #fff);color:var(--wi-chat-text, #26354c);font-family:inherit;font-size:13px;line-height:1.55;outline:none}.wi-clarify__text textarea[data-v-c684f993]:focus{border-color:var(--wi-chat-primary, #5680de)}.wi-clarify__or[data-v-c684f993]{display:flex;align-items:center;gap:10px;margin-bottom:12px;color:var(--wi-chat-text-secondary, #9199a7);font-size:11px}.wi-clarify__or[data-v-c684f993]:before,.wi-clarify__or[data-v-c684f993]:after{flex:1;height:1px;background:var(--wi-chat-border, #edf0f4);content:""}.wi-clarify__dots[data-v-c684f993]{display:flex;align-items:center;justify-content:center;gap:6px;padding:0 18px 12px}.wi-clarify__dots button[data-v-c684f993]{width:7px;height:7px;padding:0;border:0;border-radius:999px;background:var(--wi-chat-border, #d7dce4);cursor:pointer;transition:width .15s ease,background .15s ease}.wi-clarify__dots button.is-answered[data-v-c684f993]{background:color-mix(in srgb,var(--wi-chat-primary, #356ae6) 45%,transparent)}.wi-clarify__dots button.is-active[data-v-c684f993]{width:22px;background:var(--wi-chat-primary, #356ae6)}.wi-clarify__footer[data-v-c684f993]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-top:1px solid var(--wi-chat-border, #edf0f4);background:var(--wi-chat-header-bg, #fafbfd)}.wi-clarify__confirm-text[data-v-c684f993]{color:var(--wi-chat-text-secondary, #6c788c);font-size:12px}.wi-clarify__actions[data-v-c684f993]{display:flex;gap:8px}.wi-clarify__cancel[data-v-c684f993]{padding:7px 10px;border:0;background:transparent;color:var(--wi-chat-text-secondary, #7a8494);font-family:inherit;font-size:13px;cursor:pointer}.wi-clarify__btn[data-v-c684f993]{min-height:34px;padding:6px 14px;border-radius:8px;font-family:inherit;font-size:13px;font-weight:600;cursor:pointer}.wi-clarify__btn--secondary[data-v-c684f993]{border:1px solid var(--wi-chat-border, #d7dde6);background:var(--wi-chat-bg, #fff);color:var(--wi-chat-text, #4b586c)}.wi-clarify__btn--secondary[data-v-c684f993]:disabled{opacity:.45;cursor:not-allowed}.wi-clarify__btn--primary[data-v-c684f993]{border:1px solid var(--wi-chat-primary, #356ae6);background:var(--wi-chat-primary, #356ae6);color:#fff}.wi-clarify__btn--danger[data-v-c684f993]{border:1px solid #d9534f;background:#d9534f;color:#fff}.wi-clarify__result[data-v-c684f993]{display:flex;gap:12px;padding:18px}.wi-clarify__result-icon[data-v-c684f993]{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#eaf8ef;color:#23834b;font-size:13px;font-weight:700}.wi-clarify__result-body h4[data-v-c684f993]{margin:0 0 5px;color:var(--wi-chat-text, #223047);font-size:14px}.wi-clarify__result-body p[data-v-c684f993]{margin:0;color:var(--wi-chat-text-secondary, #707b8e);font-size:13px}.wi-clarify__summary[data-v-c684f993]{display:grid;gap:8px;margin-top:10px}.wi-clarify__summary div[data-v-c684f993]{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(0,1.2fr);gap:12px;padding:7px 10px;border-radius:7px;background:var(--wi-chat-header-bg, #f6f8fb);font-size:12px;line-height:1.45}.wi-clarify__summary span[data-v-c684f993]{color:var(--wi-chat-text-secondary, #747f90)}.wi-clarify__summary strong[data-v-c684f993]{color:var(--wi-chat-text, #344158);font-weight:600;word-break:break-word}.wi-clarify__feedback[data-v-c684f993]{padding:8px 18px 12px;color:#c34737;font-size:12px}.is-cancelled .wi-clarify__status[data-v-c684f993],.is-expired .wi-clarify__status[data-v-c684f993]{border-color:var(--wi-chat-border, #e1e4e9);background:#f3f4f6;color:#737d8c}.is-cancelled .wi-clarify__result-icon[data-v-c684f993],.is-expired .wi-clarify__result-icon[data-v-c684f993]{background:#f0f2f5;color:#747e8d}@media (max-width: 520px){.wi-clarify__header[data-v-c684f993],.wi-clarify__panel[data-v-c684f993],.wi-clarify__footer[data-v-c684f993],.wi-clarify__result[data-v-c684f993]{padding-right:14px;padding-left:14px}.wi-clarify__options[data-v-c684f993]{grid-template-columns:1fr}.wi-clarify__footer[data-v-c684f993]{align-items:stretch;flex-direction:column-reverse}.wi-clarify__actions[data-v-c684f993]{display:grid;grid-template-columns:1fr 1fr}.wi-clarify__summary div[data-v-c684f993]{grid-template-columns:1fr;gap:3px}}.wi-host-action[data-v-4acb4d02],.wi-host-action[data-v-4acb4d02] *{box-sizing:border-box}.wi-host-action[data-v-4acb4d02]{width:620px;max-width:100%;margin:4px 0;padding:10px 12px;border:1px solid var(--wi-chat-border, #e5e9f0);border-radius:10px;background:var(--wi-chat-header-bg, #fafbfd);color:var(--wi-chat-text, #27344d);font-size:13px;line-height:1.6}.wi-host-action__head[data-v-4acb4d02]{display:flex;align-items:center;gap:8px}.wi-host-action__icon[data-v-4acb4d02]{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:color-mix(in srgb,var(--wi-chat-primary, #5b7fff) 14%,transparent);color:var(--wi-chat-primary, #5b7fff);font-size:11px;font-weight:700}.is-running .wi-host-action__icon[data-v-4acb4d02]{animation:wi-host-action-blink-4acb4d02 1.2s ease-in-out infinite}.is-success .wi-host-action__icon[data-v-4acb4d02]{background:#eaf8ef;color:#23834b}.is-error .wi-host-action__icon[data-v-4acb4d02]{background:#fff0ee;color:#c34737}.wi-host-action__title[data-v-4acb4d02]{display:flex;align-items:center;gap:6px;min-width:0}.wi-host-action__label[data-v-4acb4d02]{color:var(--wi-chat-text-secondary, #6b778c);font-size:12px}.wi-host-action__name[data-v-4acb4d02]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--wi-chat-text, #354258);font-family:Consolas,monospace;font-size:12px}.wi-host-action__chip[data-v-4acb4d02]{flex:0 0 auto;margin-left:auto;padding:2px 8px;border:1px solid color-mix(in srgb,var(--wi-chat-primary, #5b7fff) 28%,transparent);border-radius:999px;background:color-mix(in srgb,var(--wi-chat-primary, #5b7fff) 8%,transparent);color:var(--wi-chat-primary, #3f5fbf);font-size:11px;line-height:1.5}.is-success .wi-host-action__chip[data-v-4acb4d02]{border-color:#bfe3cd;background:#eaf8ef;color:#23834b}.is-error .wi-host-action__chip[data-v-4acb4d02]{border-color:#f2c9c4;background:#fff0ee;color:#c34737}.is-unknown .wi-host-action__chip[data-v-4acb4d02]{border-color:var(--wi-chat-border, #e1e4e9);background:#f3f4f6;color:#737d8c}.wi-host-action__message[data-v-4acb4d02]{margin:6px 0 0 26px;color:var(--wi-chat-text-secondary, #6b778c);font-size:12px;word-break:break-word}.wi-host-action__args[data-v-4acb4d02]{margin:6px 0 0 26px}.wi-host-action__args summary[data-v-4acb4d02]{color:var(--wi-chat-primary, #5b7fff);font-size:11px;cursor:pointer;outline:none}.wi-host-action__args pre[data-v-4acb4d02]{max-height:160px;margin:6px 0 0;padding:8px;overflow:auto;border-radius:6px;background:var(--wi-chat-bg, #fff);color:#46536b;font-size:11px;line-height:1.5}@keyframes wi-host-action-blink-4acb4d02{0%,to{opacity:1}50%{opacity:.3}}.wi-recordset[data-v-a284a756]{display:flex;flex-direction:column;gap:8px;width:100%}.wi-recordset__head[data-v-a284a756]{display:flex;align-items:center;justify-content:space-between;gap:8px}.wi-recordset__title[data-v-a284a756]{font-weight:600}.wi-recordset__switch[data-v-a284a756]{display:inline-flex;overflow:hidden;border:1px solid var(--wi-chat-border, #e1e4e8);border-radius:6px}.wi-recordset__switch button[data-v-a284a756]{padding:3px 10px;border:none;background:#fff;font-size:12px;cursor:pointer}.wi-recordset__switch button.is-active[data-v-a284a756]{background:var(--wi-chat-primary, #5b7fff);color:#fff}.wi-recordset__chart[data-v-a284a756]{width:100%;height:auto;aspect-ratio:640 / 240}.wi-recordset__grid[data-v-a284a756]{stroke:#eef0f4}.wi-recordset__axis[data-v-a284a756]{fill:var(--wi-chat-text-secondary, #8a93a6);font-size:10px}.wi-recordset__legend[data-v-a284a756]{display:flex;flex-wrap:wrap;gap:12px;font-size:12px}.wi-recordset__legend i[data-v-a284a756]{display:inline-block;width:10px;height:10px;margin-right:4px;border-radius:2px;vertical-align:-1px}.wi-recordset__table-wrap[data-v-a284a756]{max-height:360px;overflow:auto;border:1px solid var(--wi-chat-border, #e1e4e8);border-radius:var(--wi-chat-radius, 6px)}.wi-recordset__table[data-v-a284a756]{width:100%;border-collapse:collapse;font-size:13px}.wi-recordset__table th[data-v-a284a756],.wi-recordset__table td[data-v-a284a756]{padding:6px 10px;border-bottom:1px solid var(--wi-chat-border, #e1e4e8);text-align:left;white-space:nowrap}.wi-recordset__table th[data-v-a284a756]{position:sticky;top:0;background:var(--wi-chat-header-bg, #f6f8fa);font-weight:600}.wi-recordset__empty[data-v-a284a756]{text-align:center!important;color:var(--wi-chat-text-secondary, #8a93a6)}.wi-sql-query[data-v-06a8d258]{display:flex;flex-direction:column;gap:8px;width:100%}.wi-sql-query__head[data-v-06a8d258]{display:flex;align-items:center;justify-content:space-between}.wi-sql-query__label[data-v-06a8d258]{font-size:12px;font-weight:600;color:var(--wi-chat-text-secondary, #8a93a6)}.wi-sql-query__run[data-v-06a8d258]{padding:4px 12px;border:none;border-radius:6px;background:var(--wi-chat-primary, #5b7fff);color:#fff;font-size:12px;cursor:pointer}.wi-sql-query__run[data-v-06a8d258]:disabled{opacity:.5;cursor:not-allowed}.wi-sql-query__editor[data-v-06a8d258]{width:100%;padding:10px 12px;border:1px solid var(--wi-chat-border, #e1e4e8);border-radius:var(--wi-chat-radius, 6px);background:#1e1e1e;color:#d4d4d4;font-family:Consolas,Menlo,monospace;font-size:13px;line-height:1.6;resize:vertical;outline:none}.wi-sql-query__error[data-v-06a8d258]{color:#f56c6c;font-size:13px}.wi-sql-query__table-wrap[data-v-06a8d258]{max-height:360px;overflow:auto;border:1px solid var(--wi-chat-border, #e1e4e8);border-radius:var(--wi-chat-radius, 6px)}.wi-sql-query__table[data-v-06a8d258]{width:100%;border-collapse:collapse;font-size:13px}.wi-sql-query__table th[data-v-06a8d258],.wi-sql-query__table td[data-v-06a8d258]{padding:6px 10px;border-bottom:1px solid var(--wi-chat-border, #e1e4e8);text-align:left;white-space:nowrap}.wi-sql-query__table th[data-v-06a8d258]{position:sticky;top:0;background:var(--wi-chat-header-bg, #f6f8fa);font-weight:600}.wi-sql-query__empty[data-v-06a8d258]{text-align:center!important;color:var(--wi-chat-text-secondary, #8a93a6)}.wi-dlv[data-v-37504400]{display:flex;flex-direction:column;gap:6px;width:100%}.wi-dlv__title[data-v-37504400]{padding:6px 10px;border-radius:var(--wi-chat-radius, 6px) var(--wi-chat-radius, 6px) 0 0;background:var(--wi-chat-primary, #5b7fff);color:#fff;font-weight:600;text-align:center}.wi-dlv__wrap[data-v-37504400]{overflow-x:auto}.wi-dlv__table[data-v-37504400]{width:100%;border-collapse:collapse;font-size:13px}.wi-dlv__table th[data-v-37504400],.wi-dlv__table td[data-v-37504400]{padding:6px 10px;border:1px solid var(--wi-chat-border, #e1e4e8);white-space:nowrap;text-align:center}.wi-dlv__table thead th[data-v-37504400]{background:color-mix(in srgb,var(--wi-chat-primary, #5b7fff) 10%,#fff);font-weight:600}.wi-dlv__row-head[data-v-37504400]{background:#fafbfc;font-weight:500}.wi-dlv__table td[data-v-37504400]{color:var(--wi-chat-primary, #5b7fff)}.wi-dlv__pager[data-v-37504400]{display:flex;align-items:center;justify-content:flex-end;gap:8px;font-size:12px;color:var(--wi-chat-text-secondary, #8a93a6)}.wi-dlv__pager button[data-v-37504400]{width:24px;height:24px;border:1px solid var(--wi-chat-border, #e1e4e8);border-radius:4px;background:#fff;cursor:pointer}.wi-dlv__pager button[data-v-37504400]:disabled{opacity:.4;cursor:not-allowed}.wi-media[data-v-f6c03f9d]{width:100%}.wi-media__video[data-v-f6c03f9d]{width:100%;max-height:420px;border-radius:var(--wi-chat-radius, 6px);background:#000}.wi-media__audio[data-v-f6c03f9d]{width:100%}.wi-media__tip[data-v-f6c03f9d]{margin-top:4px;font-size:12px;color:var(--wi-chat-text-secondary, #8a93a6)}.wi-media__grid[data-v-f6c03f9d]{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}.wi-media__cam[data-v-f6c03f9d]{overflow:hidden;border:1px solid var(--wi-chat-border, #e1e4e8);border-radius:var(--wi-chat-radius, 6px);background:#0f1419}.wi-media__cam img[data-v-f6c03f9d]{display:block;width:100%;aspect-ratio:16 / 9;object-fit:cover}.wi-media__cam-empty[data-v-f6c03f9d]{display:flex;align-items:center;justify-content:center;aspect-ratio:16 / 9;color:#8a93a6;font-size:12px}.wi-media__cam-name[data-v-f6c03f9d]{padding:4px 8px;background:#fff;font-size:12px}.wi-answer-card[data-v-5e57acb8]{display:flex;flex-direction:column;gap:10px;min-width:0;color:var(--wi-chat-text, #27344d);font-size:14px;line-height:1.75}.wi-answer-card__pill[data-v-5e57acb8]{display:inline-flex;align-items:center;gap:8px;width:fit-content;padding:6px 12px;border:none;border-radius:999px;background:color-mix(in srgb,var(--wi-chat-primary, #6455e7) 10%,#fff);color:var(--wi-chat-primary, #6455e7);font-size:13px;cursor:pointer}.wi-answer-card__pill[data-v-5e57acb8]:hover{background:color-mix(in srgb,var(--wi-chat-primary, #6455e7) 18%,#fff)}.wi-answer-card__run[data-v-5e57acb8]{display:inline-flex;align-items:center;gap:8px;width:fit-content;color:var(--wi-chat-text-secondary, #8a93a6);font-size:13px;-webkit-user-select:none;user-select:none}.wi-answer-card__dot[data-v-5e57acb8]{width:6px;height:6px;border-radius:50%;background:currentColor}.wi-answer-card__dot.is-running[data-v-5e57acb8]{animation:wi-answer-card-pulse-5e57acb8 1.2s ease-in-out infinite}@keyframes wi-answer-card-pulse-5e57acb8{50%{opacity:.3}}.wi-answer-card__caret[data-v-5e57acb8]{transition:transform .15s}.wi-answer-card__caret.is-open[data-v-5e57acb8]{transform:rotate(180deg)}.wi-answer-card__thinking[data-v-5e57acb8]{display:flex;flex-direction:column;gap:8px;max-height:500px;overflow-y:auto;padding:10px 12px;border-radius:8px;background:#fafafa;color:#5f6d87;font-size:13px}.wi-answer-card__step[data-v-5e57acb8]{display:grid;grid-template-columns:20px minmax(0,1fr);gap:8px}.wi-answer-card__step-index[data-v-5e57acb8]{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border:1px solid #dce3f3;border-radius:50%;background:#fff;font-size:12px}.wi-answer-card__step[data-v-5e57acb8] p{margin:0}.wi-answer-card__err[data-v-5e57acb8]{color:#f56c6c;font-size:13px}.wi-answer-card__body[data-v-5e57acb8]{display:flex;flex-direction:column;gap:12px;min-width:0}.wi-answer-card__conclusion[data-v-5e57acb8]{padding:10px 12px;border-left:3px solid var(--wi-chat-primary, #6455e7);border-radius:0 8px 8px 0;background:color-mix(in srgb,var(--wi-chat-primary, #6455e7) 5%,#fff)}.wi-answer-card__stopped[data-v-5e57acb8]{color:var(--wi-chat-text-secondary, #8a93a6);font-size:13px}.wi-answer-card__typing[data-v-5e57acb8]{display:inline-flex;gap:4px;padding:4px 0}.wi-answer-card__typing span[data-v-5e57acb8]{width:6px;height:6px;border-radius:50%;background:var(--wi-chat-primary, #6455e7);animation:wi-answer-card-typing-5e57acb8 1s infinite ease-in-out}.wi-answer-card__typing span[data-v-5e57acb8]:nth-child(2){animation-delay:.15s}.wi-answer-card__typing span[data-v-5e57acb8]:nth-child(3){animation-delay:.3s}@keyframes wi-answer-card-typing-5e57acb8{30%{transform:translateY(-4px);opacity:1}0%,60%,to{opacity:.4}}.wi-answer-card__ask-more[data-v-5e57acb8]{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.wi-answer-card__ask-title[data-v-5e57acb8]{color:var(--wi-chat-text-secondary, #8a93a6);font-size:13px}.wi-answer-card__ask-more button[data-v-5e57acb8]{padding:8px 12px;border:none;border-radius:8px;background:#f4f5fb;color:inherit;font-size:13px;text-align:left;cursor:pointer}.wi-answer-card__ask-more button[data-v-5e57acb8]:hover{background:#e6eaff;color:var(--wi-chat-primary, #6455e7)}.wi-answer-toolbar[data-v-6ffad29a]{position:relative;display:flex;align-items:center;gap:4px}.wi-answer-toolbar>button[data-v-6ffad29a]{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:none;border-radius:6px;background:transparent;color:#8d8e99;cursor:pointer}.wi-answer-toolbar>button[data-v-6ffad29a]:hover,.wi-answer-toolbar>button.is-active[data-v-6ffad29a]{background:color-mix(in srgb,var(--wi-chat-primary, #6455e7) 10%,transparent);color:var(--wi-chat-primary, #6455e7)}.wi-answer-toolbar svg[data-v-6ffad29a]{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.wi-answer-toolbar__toast[data-v-6ffad29a]{margin-left:6px;color:var(--wi-chat-primary, #6455e7);font-size:12px}.wi-answer-toolbar__feedback[data-v-6ffad29a]{position:absolute;top:34px;right:0;z-index:20;display:flex;flex-direction:column;gap:8px;width:260px;padding:12px;border:1px solid #e5e6eb;border-radius:10px;background:#fff;box-shadow:0 8px 24px #31375724}.wi-answer-toolbar__feedback-title[data-v-6ffad29a]{font-size:13px;font-weight:600}.wi-answer-toolbar__feedback textarea[data-v-6ffad29a]{padding:6px 8px;border:1px solid #dcdfe6;border-radius:6px;font:inherit;font-size:13px;resize:none;outline:none}.wi-answer-toolbar__feedback-ops[data-v-6ffad29a]{display:flex;justify-content:flex-end;gap:6px}.wi-answer-toolbar__feedback-ops button[data-v-6ffad29a]{padding:4px 12px;border:1px solid #dcdfe6;border-radius:6px;background:#fff;font-size:12px;cursor:pointer}.wi-answer-toolbar__feedback-ops button.is-primary[data-v-6ffad29a]{border-color:var(--wi-chat-primary, #6455e7);background:var(--wi-chat-primary, #6455e7);color:#fff}.wi-answer-toolbar__feedback-ops button[data-v-6ffad29a]:disabled{opacity:.5;cursor:not-allowed}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AiAnswerReport } from 'wi-chat/parser';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
/** text 报告(values 为 Markdown 字符串) */
|
|
5
|
+
report: AiAnswerReport<string>;
|
|
6
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
/** text 报告(values 为 Markdown 字符串) */
|
|
8
|
+
report: AiAnswerReport<string>;
|
|
9
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: import('vue').PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
package/dist/request/api.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { WsChunkSender } from './ws';
|
|
2
|
+
import { ChatWsRegistry, ResumeChatTask } from './wsSession';
|
|
2
3
|
|
|
3
4
|
/** 历史分组项 */
|
|
4
5
|
export interface HistoryGroup {
|
|
@@ -10,6 +11,8 @@ export interface HistoryGroup {
|
|
|
10
11
|
chat_count?: string | number;
|
|
11
12
|
/** 创建时间(排序键,缺失视为最旧) */
|
|
12
13
|
create_time?: string;
|
|
14
|
+
/** 会话绑定的执行环境,后端返回;用于跨设备识别本地/云端对话。 */
|
|
15
|
+
server_client?: 'local' | 'cloud';
|
|
13
16
|
[key: string]: any;
|
|
14
17
|
}
|
|
15
18
|
/** 历史分组列表响应 */
|
|
@@ -44,6 +47,48 @@ export interface AgentEntryItem {
|
|
|
44
47
|
entry_group?: string;
|
|
45
48
|
[key: string]: any;
|
|
46
49
|
}
|
|
50
|
+
/** /system/ping 响应 */
|
|
51
|
+
export interface PingResult {
|
|
52
|
+
/** 业务成功标记 */
|
|
53
|
+
json_ok?: boolean;
|
|
54
|
+
/** 后端是否仍处于登录态(false 表示已失效) */
|
|
55
|
+
is_login?: boolean;
|
|
56
|
+
[key: string]: any;
|
|
57
|
+
}
|
|
58
|
+
/** 进行中的对话任务(/chat/getChatTaskList 单项) */
|
|
59
|
+
export interface ChatTaskItem {
|
|
60
|
+
/** 对话分组 id */
|
|
61
|
+
history_group: string;
|
|
62
|
+
/** 当前对话记录 id(断线续传 CONNECT 使用) */
|
|
63
|
+
history_id: string;
|
|
64
|
+
/** 该任务对应的提问 */
|
|
65
|
+
question?: string;
|
|
66
|
+
/** 是否已被某个客户端连接占用 */
|
|
67
|
+
is_connected?: boolean;
|
|
68
|
+
/** 任务是否已终止(终止的不算进行中) */
|
|
69
|
+
is_stop?: boolean;
|
|
70
|
+
}
|
|
71
|
+
/** /admin/workflow/get_llm_info_list 响应 */
|
|
72
|
+
export interface LlmInfoListResult {
|
|
73
|
+
/** 业务成功标记 */
|
|
74
|
+
json_ok?: boolean;
|
|
75
|
+
/** 模型厂商 */
|
|
76
|
+
factorys?: Array<{
|
|
77
|
+
factory_id: string;
|
|
78
|
+
factory_title: string;
|
|
79
|
+
[key: string]: any;
|
|
80
|
+
}>;
|
|
81
|
+
/** 模型连接(connect_id 即 llm_id) */
|
|
82
|
+
connections?: Array<{
|
|
83
|
+
factory_id: string;
|
|
84
|
+
connect_id: string;
|
|
85
|
+
connect_title: string;
|
|
86
|
+
[key: string]: any;
|
|
87
|
+
}>;
|
|
88
|
+
[key: string]: any;
|
|
89
|
+
}
|
|
90
|
+
/** 回答评价:'1' 点赞 / '0' 点踩 / null 未评价 */
|
|
91
|
+
export type AnswerState = '1' | '0' | null;
|
|
47
92
|
/**
|
|
48
93
|
* 对话 + 历史业务端点聚合(由 createChatApi 基于 request 客户端构造)
|
|
49
94
|
*/
|
|
@@ -83,11 +128,58 @@ export interface ChatApi {
|
|
|
83
128
|
values?: AgentEntryItem[];
|
|
84
129
|
[key: string]: any;
|
|
85
130
|
}>;
|
|
131
|
+
/**
|
|
132
|
+
* 可选大模型清单(/admin/workflow/get_llm_info_list):按厂商(factory)分组的连接(connection)。
|
|
133
|
+
* connection.connect_id 即提问时的 default_llm_id。
|
|
134
|
+
*/
|
|
135
|
+
getLlmInfoList?(): Promise<LlmInfoListResult>;
|
|
86
136
|
/**
|
|
87
137
|
* 获取文件访问完整 URL(针对 algorithm/get_file_data)
|
|
88
138
|
* @param fileId 文件/图片 ID
|
|
89
139
|
*/
|
|
90
140
|
getFileUrl?(fileId: string): string;
|
|
141
|
+
/**
|
|
142
|
+
* 登录保活(/system/ping):延长后端会话有效期,同时用于探测登录态。
|
|
143
|
+
* 后端判定未登录时 client 层抛 AuthExpiredError(err_code === 'AUTH')。
|
|
144
|
+
*/
|
|
145
|
+
pingLogin?(): Promise<PingResult>;
|
|
146
|
+
/** 查询当前账号正在进行的对话任务(/chat/getChatTaskList),用于多房间运行态与断线续传 */
|
|
147
|
+
getChatTaskList?(): Promise<ChatTaskItem[]>;
|
|
148
|
+
/**
|
|
149
|
+
* 设置回答评价(/history/set_history_answer_state)
|
|
150
|
+
* @param historyId 历史明细 id
|
|
151
|
+
* @param state '1' 点赞 / '0' 点踩 / null 取消
|
|
152
|
+
*/
|
|
153
|
+
setHistoryAnswerState?(historyId: string, state: AnswerState): Promise<any>;
|
|
154
|
+
/**
|
|
155
|
+
* 提交回答问题反馈(/history/report_history_problem)
|
|
156
|
+
* @param historyId 历史明细 id
|
|
157
|
+
* @param note 反馈内容
|
|
158
|
+
*/
|
|
159
|
+
reportHistoryProblem?(historyId: string, note: string): Promise<any>;
|
|
160
|
+
/**
|
|
161
|
+
* 生成分享(/chat/share_chat_history),返回 share_id
|
|
162
|
+
* @param historyIds 要分享的历史明细 id(多个以逗号拼接)
|
|
163
|
+
* @param shareDays 分享有效天数,默认 1
|
|
164
|
+
*/
|
|
165
|
+
shareChatHistory?(historyIds: string[], shareDays?: number): Promise<string>;
|
|
166
|
+
/**
|
|
167
|
+
* 读取分享内容(/chat/get_share_chat_json),返回原始 values(与 get_history_answer 的 values 同构)
|
|
168
|
+
* @param shareId 分享 id
|
|
169
|
+
*/
|
|
170
|
+
getShareChatJson?(shareId: string): Promise<any>;
|
|
171
|
+
/**
|
|
172
|
+
* 执行回答中的 SQL(/chat/query_chat_sql,answer_type = sql_query 的「执行查询」)
|
|
173
|
+
* @param params ds_id 数据源 id,sql 待执行 SQL
|
|
174
|
+
* @returns `{ columns: string[], values: any[][] }`
|
|
175
|
+
*/
|
|
176
|
+
queryChatSql?(params: {
|
|
177
|
+
ds_id?: string;
|
|
178
|
+
sql: string;
|
|
179
|
+
}): Promise<{
|
|
180
|
+
columns: string[];
|
|
181
|
+
values: any[][];
|
|
182
|
+
}>;
|
|
91
183
|
/**
|
|
92
184
|
* WebSocket 流式提问:底层通过 WebSocket 连接 /chat/ws 端点交互,
|
|
93
185
|
* 并封装返回符合 SSE 规范的可读字节流(`ReadableStream<Uint8Array>`),
|
|
@@ -115,9 +207,37 @@ export interface ChatApi {
|
|
|
115
207
|
* (B/M/E 分帧追发;连接关闭或流结束后调用静默丢弃)。不透传到后端载荷。
|
|
116
208
|
*/
|
|
117
209
|
onOpen?: (sendInChunks: WsChunkSender) => void;
|
|
210
|
+
/**
|
|
211
|
+
* 恢复进行中的任务(断线 / 刷新后接管):传入后首连不发提问首包,直接 CONNECT 从 0 重放。
|
|
212
|
+
* 仅可续传模式(createChatApi 的 resumable)生效。
|
|
213
|
+
*/
|
|
214
|
+
resumeTask?: ResumeChatTask | null;
|
|
118
215
|
/** 其余字段原样透传到首包 payload:如 ext_args 扩展参数(JSON 字符串)、raw_mode / tables / metrics / group_type 等 */
|
|
119
216
|
[key: string]: unknown;
|
|
120
217
|
}, signal?: AbortSignal): Promise<ReadableStream<Uint8Array>>;
|
|
218
|
+
/**
|
|
219
|
+
* 向指定分组的对话连接发送 STOP 指令(后端据此中断该分组任务)。
|
|
220
|
+
* 仅可续传模式下有连接注册表,非可续传模式恒返回 false。
|
|
221
|
+
* @param groupId 对话分组 id
|
|
222
|
+
* @returns 是否发送成功(无该分组 OPEN 连接时 false)
|
|
223
|
+
*/
|
|
224
|
+
stopChat?(groupId: string): boolean;
|
|
225
|
+
}
|
|
226
|
+
/** createChatApi 的可选配置 */
|
|
227
|
+
export interface CreateChatApiOptions {
|
|
228
|
+
/**
|
|
229
|
+
* 是否启用可续传会话(断线指数退避重连 + CONNECT 续传 + 心跳 + disconnect 兜底 + resumeTask 接管)。
|
|
230
|
+
* 默认 false(沿用一问一连接的简单流)。
|
|
231
|
+
*/
|
|
232
|
+
resumable?: boolean;
|
|
233
|
+
/** 可续传模式的连接注册表(STOP / 活跃检测),缺省模块级 chatWsRegistry */
|
|
234
|
+
registry?: ChatWsRegistry;
|
|
235
|
+
/**
|
|
236
|
+
* 对话 WebSocket 会话失效(下行 `{ type: 'error', value: 'user not login' }`)时刷新登录态:
|
|
237
|
+
* 返回 true 后引擎用新 session 重连续传(已有 history_id 则 CONNECT,否则重发提问首包);
|
|
238
|
+
* 返回 false 以「登录状态已失效」结束本次回答。仅可续传模式生效。
|
|
239
|
+
*/
|
|
240
|
+
refreshSession?: () => Promise<boolean>;
|
|
121
241
|
}
|
|
122
242
|
/**
|
|
123
243
|
* 基于 request 客户端聚合业务 API。
|
|
@@ -129,4 +249,4 @@ export declare const createChatApi: (client: {
|
|
|
129
249
|
getSession?: () => string | null | undefined;
|
|
130
250
|
post: <T = any>(url: string, data?: Record<string, unknown> | FormData) => Promise<T>;
|
|
131
251
|
stream: (url: string, data?: Record<string, unknown> | FormData, signal?: AbortSignal) => Promise<ReadableStream<Uint8Array>>;
|
|
132
|
-
}) => ChatApi;
|
|
252
|
+
}, options?: CreateChatApiOptions) => ChatApi;
|
package/dist/request/client.d.ts
CHANGED
|
@@ -15,6 +15,12 @@ export interface RequestOptions {
|
|
|
15
15
|
getWisession?: () => string;
|
|
16
16
|
/** 别名:获取当前登录态 session(若有) */
|
|
17
17
|
getSession?: () => string | null | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* 登录态失效(err_code === 'AUTH' 或 HTTP 401)时的续期钩子:
|
|
20
|
+
* 返回 true 表示已拿到新 session,本次请求会用新 session 自动重试一次;
|
|
21
|
+
* 返回 false / 抛错则按原语义抛出 AuthExpiredError。缺省不续期。
|
|
22
|
+
*/
|
|
23
|
+
onAuthExpired?: () => Promise<boolean>;
|
|
18
24
|
}
|
|
19
25
|
export interface RequestClient {
|
|
20
26
|
/** 后端基础地址(不含结尾斜杠) */
|