wi-chat 0.6.1 → 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.
Files changed (107) hide show
  1. package/dist/core/index.cjs +1 -1
  2. package/dist/core/index.d.ts +12 -0
  3. package/dist/core/index.js +737 -322
  4. package/dist/core/useAnswerActions.d.ts +61 -0
  5. package/dist/core/useChat.d.ts +90 -15
  6. package/dist/core/useChatAuth.d.ts +96 -0
  7. package/dist/core/useChatRooms.d.ts +66 -0
  8. package/dist/core/useKeepAlive.d.ts +41 -0
  9. package/dist/core/useLlm.d.ts +73 -0
  10. package/dist/core/useRunningGroups.d.ts +58 -0
  11. package/dist/index.cjs +1 -1
  12. package/dist/index.d.ts +4 -2
  13. package/dist/index.js +119 -108
  14. package/dist/mobile-ui/chat/ChatContainer.vue.d.ts +8 -8
  15. package/dist/mobile-ui/chat/ChatMessagesView.vue.d.ts +6 -6
  16. package/dist/mobile-ui/index.cjs +1 -1
  17. package/dist/mobile-ui/index.js +104 -104
  18. package/dist/mobile-ui/inputbox/Inputbox.vue.d.ts +6 -6
  19. package/dist/page-context/index.js +2 -4
  20. package/dist/parser/answerCom/actionExecute/actionProtocol.d.ts +1 -7
  21. package/dist/parser/answerCom/actionExecute/clarification.d.ts +15 -3
  22. package/dist/parser/answerCom/actionExecute/constants.d.ts +10 -0
  23. package/dist/parser/answerCom/actionExecute/parseCollectClarifications.d.ts +3 -2
  24. package/dist/parser/answerCom/actionExecute/parseHostAction.d.ts +3 -2
  25. package/dist/parser/answerCom/actionExecute/types.d.ts +3 -3
  26. package/dist/parser/answerCom/generic/parseGeneric.d.ts +52 -0
  27. package/dist/parser/answerCom/generic/types.d.ts +75 -0
  28. package/dist/parser/answerCom/outputFile/parseOutputFile.d.ts +7 -6
  29. package/dist/parser/answerCom/outputFile/types.d.ts +15 -5
  30. package/dist/parser/answerCom/presentFiles/parsePresentFiles.d.ts +58 -0
  31. package/dist/parser/answerCom/presentFiles/types.d.ts +27 -0
  32. package/dist/parser/answerMeta.d.ts +71 -0
  33. package/dist/parser/deepThinking/parseDeepThinking.d.ts +8 -0
  34. package/dist/parser/history/history.d.ts +9 -0
  35. package/dist/parser/history/index.d.ts +1 -1
  36. package/dist/parser/index.cjs +6 -2
  37. package/dist/parser/index.d.ts +13 -4
  38. package/dist/parser/index.js +640 -457
  39. package/dist/parser/message.d.ts +9 -0
  40. package/dist/parser/registry.d.ts +1 -1
  41. package/dist/parser/runTime.d.ts +29 -0
  42. package/dist/renderers/TextAnswer-BgKGvG_o.cjs +2 -0
  43. package/dist/renderers/TextAnswer-PQwV3K7v.js +5 -0
  44. package/dist/renderers/aiAnswer/AiAnswerBubble.vue.d.ts +4 -4
  45. package/dist/renderers/answerCard/AnswerCard.vue.d.ts +65 -0
  46. package/dist/renderers/answerCard/AnswerToolbar.vue.d.ts +42 -0
  47. package/dist/renderers/answerConfig.d.ts +33 -0
  48. package/dist/renderers/clarification/ClarificationCard.vue.d.ts +3 -3
  49. package/dist/renderers/deepThinking/DeepThinkingSteps.vue.d.ts +4 -4
  50. package/dist/renderers/deviceLastValue/DeviceLastValue.vue.d.ts +37 -0
  51. package/dist/renderers/hostAction/HostActionStatus.vue.d.ts +3 -3
  52. package/dist/renderers/iframePage/IframePage.vue.d.ts +3 -3
  53. package/dist/renderers/index.cjs +6 -1
  54. package/dist/renderers/index.d.ts +14 -0
  55. package/dist/renderers/index.js +1504 -607
  56. package/dist/renderers/knowledgeStream/KnowledgeStreamResult.vue.d.ts +3 -3
  57. package/dist/renderers/media/MediaAnswer.vue.d.ts +19 -0
  58. package/dist/renderers/outputFile/OutputFile.vue.d.ts +3 -3
  59. package/dist/renderers/outputFile/OutputFileLink.vue.d.ts +19 -0
  60. package/dist/renderers/outputFile/localFile.d.ts +46 -0
  61. package/dist/renderers/outputFile/useOutputFile.d.ts +32 -3
  62. package/dist/renderers/presentFiles/PresentFiles.vue.d.ts +19 -0
  63. package/dist/renderers/recordset/RecordsetView.vue.d.ts +19 -0
  64. package/dist/renderers/sqlQuery/SqlQuery.vue.d.ts +19 -0
  65. package/dist/renderers/style.css +1 -1
  66. package/dist/renderers/text/TextAnswer.vue.d.ts +19 -0
  67. package/dist/request/api.d.ts +121 -1
  68. package/dist/request/client.d.ts +6 -0
  69. package/dist/request/index.cjs +4 -2
  70. package/dist/request/index.d.ts +4 -2
  71. package/dist/request/index.js +754 -181
  72. package/dist/request/ws.d.ts +11 -86
  73. package/dist/request/wsCore.d.ts +104 -0
  74. package/dist/request/wsSession.d.ts +353 -0
  75. package/dist/right-panel/RightPanel.vue.d.ts +6 -6
  76. package/dist/right-panel/RightPanelIcon.vue.d.ts +4 -4
  77. package/dist/right-panel/RightPanelTabs.vue.d.ts +9 -5
  78. package/dist/right-panel/index.cjs +1 -1
  79. package/dist/right-panel/index.d.ts +1 -1
  80. package/dist/right-panel/index.js +617 -537
  81. package/dist/right-panel/panels/newtab/NewTabPanel.vue.d.ts +4 -4
  82. package/dist/right-panel/panels/web/WebPanel.vue.d.ts +3 -3
  83. package/dist/right-panel/shared/BrowserToolbar.vue.d.ts +3 -3
  84. package/dist/right-panel/shared/RightPanelToolList.vue.d.ts +5 -5
  85. package/dist/right-panel/style.css +1 -1
  86. package/dist/right-panel/types.d.ts +10 -0
  87. package/dist/theme/index.js +2 -4
  88. package/dist/tools/index.cjs +5 -5
  89. package/dist/tools/index.d.ts +2 -2
  90. package/dist/tools/index.js +323 -217
  91. package/dist/tools/markdown/MarkdownContent.vue.d.ts +5 -5
  92. package/dist/tools/markdown/index.d.ts +2 -0
  93. package/dist/tools/markdown/interactions.d.ts +39 -0
  94. package/dist/tools/markdown/sanitize.d.ts +6 -0
  95. package/dist/tools/style.css +1 -1
  96. package/dist/tools/useAutoScroll.d.ts +3 -3
  97. package/dist/web-ui/attach/AttachmentCard.vue.d.ts +6 -6
  98. package/dist/web-ui/attach/AttachmentList.vue.d.ts +6 -6
  99. package/dist/web-ui/chat/ChatContainer.vue.d.ts +10 -10
  100. package/dist/web-ui/chat/ChatMessagesView.vue.d.ts +6 -6
  101. package/dist/web-ui/envswitch/EnvSwitch.vue.d.ts +6 -6
  102. package/dist/web-ui/index.cjs +1 -1
  103. package/dist/web-ui/index.js +630 -635
  104. package/dist/web-ui/inputbox/Inputbox.vue.d.ts +11 -11
  105. package/dist/web-ui/recordset/RecordsetTable.vue.d.ts +4 -4
  106. package/dist/web-ui/style.css +1 -1
  107. package/package.json +2 -1
@@ -41,6 +41,15 @@ export interface AssistantMessage {
41
41
  error: boolean;
42
42
  /** 是否已被用户停止 */
43
43
  stopped: boolean;
44
+ /**
45
+ * 本轮运行耗时(毫秒):历史来自 run_ms,实时在 finish / 停止时按 runStartAt 结算;未知为 null / undefined
46
+ */
47
+ runMs?: number | null;
48
+ /**
49
+ * 本轮运行开始时间戳(毫秒,仅运行中存在):提问时取本端时刻,收到后端 `start` 帧后改用服务端时间,
50
+ * 使断线重连 / 刷新接管后的「用时」不从 0 重算;结算 runMs 后清除
51
+ */
52
+ runStartAt?: number;
44
53
  /** 深度思考(已算好的展示步骤 + 展开态) */
45
54
  thinking: {
46
55
  /** 深度思考展示步骤(组装消息时已解析,UI 不再拼接) */
@@ -57,7 +57,7 @@ export interface AnswerParseOptions extends KnowledgeRenderOptions {
57
57
  parsers?: AnswerParser[];
58
58
  /**
59
59
  * action_execute 指令处理配置(只用于 `executor === 'host'` 的指令:命令下发给宿主执行)。
60
- * useChat 会自动注入 reply(sendWsMessage),宿主通常只需提供 execute;
60
+ * useChat 会自动注入本次提问连接专用的 reply,宿主通常只需提供 execute;
61
61
  * `executor === 'agent'` 的 collect_clarifications 走确认卡片,不需要宿主注入执行器。
62
62
  */
63
63
  actionExecute?: ActionExecuteOptions;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * 回答运行耗时(「进行中 / 已完成,用时 xx」)的纯函数工具
3
+ *
4
+ * - `parseServerStartTime`:解析后端 `start` 帧携带的任务真实开始时间。首次提问 / CONNECT 重连后
5
+ * 后端会补发 `{ mode: 'start', value: '2026-11-08 15:23:05.295' }`,用它作为计时起点,
6
+ * 重连 / 刷新接管后的耗时不会从 0 重新计数;
7
+ * - `formatDuration`:毫秒 → 「1分05秒」等可读文本。
8
+ * 不依赖 UI。
9
+ */
10
+ /**
11
+ * 解析 `start` 帧的开始时间;不可安全使用时返回 null(调用方保留本地计时起点)
12
+ * @param value start 帧的 value(日期字符串 / 毫秒时间戳 / 纯数字字符串)
13
+ * @param localStartAt 本端计时起点,用于剔除明显早于它(时区误读)的值
14
+ * @param now 当前时间(便于测试注入),缺省 Date.now()
15
+ * @returns 毫秒时间戳或 null
16
+ */
17
+ export declare const parseServerStartTime: (value: unknown, localStartAt?: number, now?: number) => number | null;
18
+ /**
19
+ * 耗时是否可展示:负数 / NaN / 非数字一律视为「无值」(不显示「用时 0毫秒」这类误导信息)
20
+ * @param ms 毫秒数
21
+ * @returns 合法时为 true
22
+ */
23
+ export declare const isValidDuration: (ms: unknown) => ms is number;
24
+ /**
25
+ * 把毫秒耗时格式化为可读文本:<1s 显示毫秒,<1min 显示「x秒」,否则「m分ss秒」/「h时mm分」
26
+ * @param ms 毫秒数(负数 / 非数视为 0)
27
+ * @returns 可读文本
28
+ */
29
+ export declare const formatDuration: (ms: number | null | undefined) => string;
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs");exports.default=e.TextAnswer;
2
+ //# sourceMappingURL=TextAnswer-BgKGvG_o.cjs.map
@@ -0,0 +1,5 @@
1
+ import { TextAnswer as e } from "./index.js";
2
+ export {
3
+ e as default
4
+ };
5
+ //# sourceMappingURL=TextAnswer-PQwV3K7v.js.map
@@ -1,7 +1,7 @@
1
1
  import { AiAnswerValues } from 'wi-chat/parser';
2
2
  import { AnswerContentMap } from './contentMap';
3
3
 
4
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
5
  /** 回答内容(结构见 wi-chat-parser 的 AiAnswerValues;知识流文本已在解析层处理完毕) */
6
6
  answer: AiAnswerValues;
7
7
  /** 是否回答出错(显示错误文案) */
@@ -17,7 +17,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
17
17
  error: boolean;
18
18
  stopped: boolean;
19
19
  contentMap: () => AnswerContentMap;
20
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
20
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
21
21
  /** 回答内容(结构见 wi-chat-parser 的 AiAnswerValues;知识流文本已在解析层处理完毕) */
22
22
  answer: AiAnswerValues;
23
23
  /** 是否回答出错(显示错误文案) */
@@ -33,11 +33,11 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
33
33
  error: boolean;
34
34
  stopped: boolean;
35
35
  contentMap: () => AnswerContentMap;
36
- }>>>, {
36
+ }>>> & Readonly<{}>, {
37
37
  error: boolean;
38
38
  stopped: boolean;
39
39
  contentMap: AnswerContentMap;
40
- }, {}>;
40
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
41
41
  export default _default;
42
42
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
43
43
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -0,0 +1,65 @@
1
+ import { AssistantMessage } from 'wi-chat/parser';
2
+ import { AnswerContentMap } from '../aiAnswer/contentMap';
3
+
4
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
+ /** 助手消息 */
6
+ message: AssistantMessage;
7
+ /** 该消息是否正在生成(通常 = talking && 是最后一条) */
8
+ running?: boolean;
9
+ /** answer_type → 渲染组件,缺省内置装配 */
10
+ contentMap?: AnswerContentMap;
11
+ /** 是否展示相关追问,默认 true(分享页可关闭) */
12
+ showAskMore?: boolean;
13
+ }>, {
14
+ running: boolean;
15
+ contentMap: () => AnswerContentMap;
16
+ showAskMore: boolean;
17
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
+ ask: (question: string) => void;
19
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
20
+ /** 助手消息 */
21
+ message: AssistantMessage;
22
+ /** 该消息是否正在生成(通常 = talking && 是最后一条) */
23
+ running?: boolean;
24
+ /** answer_type → 渲染组件,缺省内置装配 */
25
+ contentMap?: AnswerContentMap;
26
+ /** 是否展示相关追问,默认 true(分享页可关闭) */
27
+ showAskMore?: boolean;
28
+ }>, {
29
+ running: boolean;
30
+ contentMap: () => AnswerContentMap;
31
+ showAskMore: boolean;
32
+ }>>> & Readonly<{
33
+ onAsk?: (question: string) => any;
34
+ }>, {
35
+ running: boolean;
36
+ contentMap: AnswerContentMap;
37
+ showAskMore: boolean;
38
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
39
+ footer?(_: {
40
+ running: boolean;
41
+ }): any;
42
+ }>;
43
+ export default _default;
44
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
45
+ type __VLS_TypePropsToRuntimeProps<T> = {
46
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
47
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
48
+ } : {
49
+ type: import('vue').PropType<T[K]>;
50
+ required: true;
51
+ };
52
+ };
53
+ type __VLS_WithDefaults<P, D> = {
54
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
55
+ default: D[K];
56
+ }> : P[K];
57
+ };
58
+ type __VLS_Prettify<T> = {
59
+ [K in keyof T]: T[K];
60
+ } & {};
61
+ type __VLS_WithTemplateSlots<T, S> = T & {
62
+ new (): {
63
+ $slots: S;
64
+ };
65
+ };
@@ -0,0 +1,42 @@
1
+ import { AssistantMessage } from 'wi-chat/parser';
2
+ import { UseAnswerActionsReturn } from 'wi-chat/core';
3
+
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
+ /** 助手消息 */
6
+ message: AssistantMessage;
7
+ /** useAnswerActions 返回的操作集合 */
8
+ actions: UseAnswerActionsReturn;
9
+ /** 是否显示分享,默认 true */
10
+ shareable?: boolean;
11
+ }>, {
12
+ shareable: boolean;
13
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
14
+ /** 助手消息 */
15
+ message: AssistantMessage;
16
+ /** useAnswerActions 返回的操作集合 */
17
+ actions: UseAnswerActionsReturn;
18
+ /** 是否显示分享,默认 true */
19
+ shareable?: boolean;
20
+ }>, {
21
+ shareable: boolean;
22
+ }>>> & Readonly<{}>, {
23
+ shareable: boolean;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
+ export default _default;
26
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
27
+ type __VLS_TypePropsToRuntimeProps<T> = {
28
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
29
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
30
+ } : {
31
+ type: import('vue').PropType<T[K]>;
32
+ required: true;
33
+ };
34
+ };
35
+ type __VLS_WithDefaults<P, D> = {
36
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
37
+ default: D[K];
38
+ }> : P[K];
39
+ };
40
+ type __VLS_Prettify<T> = {
41
+ [K in keyof T]: T[K];
42
+ } & {};
@@ -0,0 +1,33 @@
1
+ import { InjectionKey } from 'vue';
2
+ import { ChatApi } from 'wi-chat/request';
3
+
4
+ /** 回答渲染宿主配置 */
5
+ export interface AnswerRenderConfig {
6
+ /** 业务 API(getFileUrl / queryChatSql 等) */
7
+ api?: ChatApi;
8
+ /**
9
+ * 自定义文件地址解析(优先于 api.getFileUrl)
10
+ * @param fileId 文件 id
11
+ * @returns 可访问的地址
12
+ */
13
+ getFileUrl?: (fileId: string) => string;
14
+ }
15
+ /** 注入键 */
16
+ export declare const ANSWER_RENDER_CONFIG: InjectionKey<AnswerRenderConfig>;
17
+ /**
18
+ * 在聊天外层注入渲染配置
19
+ * @param config 宿主配置
20
+ */
21
+ export declare const provideAnswerRenderConfig: (config: AnswerRenderConfig) => void;
22
+ /**
23
+ * 渲染组件内读取配置(未注入时返回空对象)
24
+ * @returns 宿主配置
25
+ */
26
+ export declare const useAnswerRenderConfig: () => AnswerRenderConfig;
27
+ /**
28
+ * 解析文件地址:自定义 getFileUrl → api.getFileUrl → 原样返回(已是 URL 时)
29
+ * @param config 宿主配置
30
+ * @param fileId 文件 id
31
+ * @returns 地址(无法解析时空串)
32
+ */
33
+ export declare const resolveFileUrl: (config: AnswerRenderConfig, fileId?: string) => string;
@@ -1,12 +1,12 @@
1
1
  import { AiAnswerReport, ClarificationViewModel } from 'wi-chat/parser';
2
2
 
3
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
4
  /** 本卡片对应的回答报告(values 为解析器产出的确认视图模型) */
5
5
  report: AiAnswerReport<ClarificationViewModel>;
6
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
7
  /** 本卡片对应的回答报告(values 为解析器产出的确认视图模型) */
8
8
  report: AiAnswerReport<ClarificationViewModel>;
9
- }>>>, {}, {}>;
9
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
10
10
  export default _default;
11
11
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
12
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,14 +1,14 @@
1
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
2
  steps: string[];
3
3
  expanded: boolean;
4
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
5
  "update:expanded": (value: boolean) => void;
6
6
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
7
  steps: string[];
8
8
  expanded: boolean;
9
- }>>> & {
9
+ }>>> & Readonly<{
10
10
  "onUpdate:expanded"?: (value: boolean) => any;
11
- }, {}, {}>;
11
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
12
12
  export default _default;
13
13
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
14
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -0,0 +1,37 @@
1
+ import { AiAnswerReport, DeviceLastValueValue } from 'wi-chat/parser';
2
+
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
+ /** device_last_value 报告 */
5
+ report: AiAnswerReport<DeviceLastValueValue>;
6
+ /** 每页展示的设备列数,默认 6 */
7
+ pageSize?: number;
8
+ }>, {
9
+ pageSize: number;
10
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
+ /** device_last_value 报告 */
12
+ report: AiAnswerReport<DeviceLastValueValue>;
13
+ /** 每页展示的设备列数,默认 6 */
14
+ pageSize?: number;
15
+ }>, {
16
+ pageSize: number;
17
+ }>>> & Readonly<{}>, {
18
+ pageSize: number;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
+ export default _default;
21
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
+ type __VLS_TypePropsToRuntimeProps<T> = {
23
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
24
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
25
+ } : {
26
+ type: import('vue').PropType<T[K]>;
27
+ required: true;
28
+ };
29
+ };
30
+ type __VLS_WithDefaults<P, D> = {
31
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
32
+ default: D[K];
33
+ }> : P[K];
34
+ };
35
+ type __VLS_Prettify<T> = {
36
+ [K in keyof T]: T[K];
37
+ } & {};
@@ -1,12 +1,12 @@
1
1
  import { AiAnswerReport, HostActionValue } from 'wi-chat/parser';
2
2
 
3
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
4
  /** 本卡片对应的回答报告(values 为解析器产出的执行过程) */
5
5
  report: AiAnswerReport<HostActionValue>;
6
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
7
  /** 本卡片对应的回答报告(values 为解析器产出的执行过程) */
8
8
  report: AiAnswerReport<HostActionValue>;
9
- }>>>, {}, {}>;
9
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
10
10
  export default _default;
11
11
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
12
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,12 +1,12 @@
1
1
  import { AiAnswerReport, IframePageValue } from 'wi-chat/parser';
2
2
 
3
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
4
  /** iframe 页面报告(values.url / values.srcdoc 已在解析层处理好) */
5
5
  report: AiAnswerReport<IframePageValue>;
6
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
7
  /** iframe 页面报告(values.url / values.srcdoc 已在解析层处理好) */
8
8
  report: AiAnswerReport<IframePageValue>;
9
- }>>>, {}, {}>;
9
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
10
10
  export default _default;
11
11
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
12
  type __VLS_TypePropsToRuntimeProps<T> = {