paul-ai-assistant 1.0.3 → 1.0.5

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 (197) hide show
  1. package/es/AssistantChat/AssistantChatApp/const.js +1 -1
  2. package/es/AssistantChat/AssistantChatApp/index.js +1 -1
  3. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TraceComponent.js +4 -4
  4. package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.js +4 -5
  5. package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.js +2 -2
  6. package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.js +1 -1
  7. package/es/AssistantChat/AssistantChatCard/OperationCard/Copy/index.js +1 -1
  8. package/es/AssistantChat/AssistantChatCard/OperationCard/CopyRequestId/index.js +1 -1
  9. package/es/AssistantChat/AssistantChatCard/OperationCard/FeedBack/index.js +1 -1
  10. package/es/AssistantChat/AssistantChatCard/OperationCard/ShareButton/index.js +1 -1
  11. package/es/AssistantChat/AssistantChatCard/OperationCard/index.js +1 -1
  12. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/AttachmentsRender.js +3 -3
  13. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/ImageRender.js +5 -5
  14. package/es/AssistantChat/AssistantChatInput/index.js +7 -5
  15. package/es/common/registerAssistChatForm.js +8 -5
  16. package/es/components/AgentCardSubmit/index.js +0 -1
  17. package/es/components/AgentResult/index.js +1 -1
  18. package/es/components/AgentSchemaForm/ScreenshotView.js +1 -1
  19. package/es/components/AgentSchemaForm/index.js +5 -5
  20. package/es/components/ArrayInput/index.js +1 -1
  21. package/es/components/InspectionCard/index.js +1 -1
  22. package/es/components/LlmMarkDown/MdAmarkGuess/index.js +1 -1
  23. package/es/components/LlmMarkDown/MdAmarkReference/index.js +3 -3
  24. package/es/components/LlmMarkDown/index.js +1 -1
  25. package/es/components/LlmModelChange/index.js +2 -2
  26. package/es/components/LlmReference/index.js +9 -9
  27. package/es/components/LlmTraceComponents/Disassemble/index.js +2 -2
  28. package/es/components/LlmTraceComponents/Rewrite/index.js +2 -2
  29. package/es/components/MarkDown/index.js +42 -13
  30. package/es/components/ModelSelect/ModeDropdown.js +1 -1
  31. package/es/components/ModelSelect/const.js +3 -3
  32. package/es/components/PaulButtonGroup/Select.js +1 -1
  33. package/es/components/PaulButtonGroup/index.js +1 -1
  34. package/es/components/PopAuth/index.js +1 -1
  35. package/es/components/SchemaInput/SchemaInputCore/index.js +1 -1
  36. package/es/components/SchemaInput/SimpleJSONEditor/index.js +1 -1
  37. package/es/components/SelectBlurry/index.js +1 -1
  38. package/es/components/ShareModal/index.js +1 -1
  39. package/es/components/ShareOperationBar/index.js +1 -1
  40. package/es/components/TextContent/index.js +3 -3
  41. package/es/components/TraceWithAgent/index.js +4 -9
  42. package/es/context/index.js +2 -1
  43. package/es/context/utils/messages.js +1 -1
  44. package/es/context/utils/send.js +2 -2
  45. package/es/context/utils/tool.js +1 -1
  46. package/es/utils/CSEIconTool.js +1 -1
  47. package/es/utils/apushAssistant.js +1 -2
  48. package/es/utils/common.js +17 -0
  49. package/es/utils/event.js +87 -0
  50. package/es/utils/formDataFormat.js +1 -1
  51. package/es/utils/formatData.js +1 -1
  52. package/es/utils/helpers.js +78 -0
  53. package/es/utils/log.js +1 -1
  54. package/package.json +7 -16
  55. package/es/AssistantChat/AssistantChatApp/CardMatchRender/index.d.ts +0 -8
  56. package/es/AssistantChat/AssistantChatApp/OperationMatchRender/index.d.ts +0 -9
  57. package/es/AssistantChat/AssistantChatApp/const.d.ts +0 -51
  58. package/es/AssistantChat/AssistantChatApp/index.d.ts +0 -4
  59. package/es/AssistantChat/AssistantChatCard/AgentCardRender/TemplateCard.d.ts +0 -3
  60. package/es/AssistantChat/AssistantChatCard/AgentCardRender/common/types.d.ts +0 -3
  61. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHeader.d.ts +0 -5
  62. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHtml.d.ts +0 -7
  63. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateParagraph.d.ts +0 -3
  64. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateTitle.d.ts +0 -3
  65. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TraceComponent.d.ts +0 -3
  66. package/es/AssistantChat/AssistantChatCard/AgentCardRender/context/index.d.ts +0 -29
  67. package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.d.ts +0 -4
  68. package/es/AssistantChat/AssistantChatCard/AgentCardRender/utils.d.ts +0 -2
  69. package/es/AssistantChat/AssistantChatCard/AgentCommonCard/index.d.ts +0 -4
  70. package/es/AssistantChat/AssistantChatCard/AgentExecutionCard/index.d.ts +0 -16
  71. package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.d.ts +0 -14
  72. package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.d.ts +0 -78
  73. package/es/AssistantChat/AssistantChatCard/OperationCard/AigcTipsRender/index.d.ts +0 -7
  74. package/es/AssistantChat/AssistantChatCard/OperationCard/Copy/index.d.ts +0 -7
  75. package/es/AssistantChat/AssistantChatCard/OperationCard/CopyRequestId/index.d.ts +0 -3
  76. package/es/AssistantChat/AssistantChatCard/OperationCard/FeedBack/index.d.ts +0 -11
  77. package/es/AssistantChat/AssistantChatCard/OperationCard/ShareButton/index.d.ts +0 -3
  78. package/es/AssistantChat/AssistantChatCard/OperationCard/index.d.ts +0 -4
  79. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/AttachmentsRender.d.ts +0 -21
  80. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/ImageRender.d.ts +0 -7
  81. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/index.d.ts +0 -8
  82. package/es/AssistantChat/AssistantChatCard/index.d.ts +0 -5
  83. package/es/AssistantChat/AssistantChatInput/index.d.ts +0 -5
  84. package/es/AssistantChat/AssistantToolApp/const.d.ts +0 -12
  85. package/es/AssistantChat/AssistantToolApp/index.d.ts +0 -4
  86. package/es/AssistantChat/AssistantToolExecutionApp/const.d.ts +0 -7
  87. package/es/AssistantChat/AssistantToolExecutionApp/index.d.ts +0 -4
  88. package/es/AssistantChat/AssistentError/index.d.ts +0 -5
  89. package/es/AssistantChat/index.d.ts +0 -6
  90. package/es/AssistantChat/logCallback/aTagLog.d.ts +0 -1
  91. package/es/AssistantChat/logCallback/copyLog.d.ts +0 -3
  92. package/es/ErrorBoundary/ErrorBoundaryFallback/index.d.ts +0 -5
  93. package/es/ErrorBoundary/index.d.ts +0 -22
  94. package/es/common/registerAssistChatForm.d.ts +0 -2
  95. package/es/components/AgentCardSubmit/index.d.ts +0 -20
  96. package/es/components/AgentResult/index.d.ts +0 -8
  97. package/es/components/AgentSchemaForm/ScreenshotView.d.ts +0 -12
  98. package/es/components/AgentSchemaForm/_interface.d.ts +0 -37
  99. package/es/components/AgentSchemaForm/index.d.ts +0 -9
  100. package/es/components/AgentText/index.d.ts +0 -4
  101. package/es/components/AigcTips/index.d.ts +0 -9
  102. package/es/components/ArrayInput/index.d.ts +0 -3
  103. package/es/components/AssistantDrawer/index.d.ts +0 -22
  104. package/es/components/EmptyIcon/index.d.ts +0 -3
  105. package/es/components/HeaderSvgIcon/index.d.ts +0 -3
  106. package/es/components/InspectionCard/index.d.ts +0 -66
  107. package/es/components/InspectionCard/result.d.ts +0 -13
  108. package/es/components/LlmMarkDown/MdAmarkGuess/index.d.ts +0 -16
  109. package/es/components/LlmMarkDown/MdAmarkReference/index.d.ts +0 -21
  110. package/es/components/LlmMarkDown/index.d.ts +0 -30
  111. package/es/components/LlmModelChange/index.d.ts +0 -57
  112. package/es/components/LlmReference/index.d.ts +0 -25
  113. package/es/components/LlmTitle/index.d.ts +0 -14
  114. package/es/components/LlmTrace/index.d.ts +0 -17
  115. package/es/components/LlmTraceComponents/Disassemble/index.d.ts +0 -24
  116. package/es/components/LlmTraceComponents/ReadResource/index.d.ts +0 -24
  117. package/es/components/LlmTraceComponents/Rewrite/index.d.ts +0 -23
  118. package/es/components/LlmTraceComponents/TraceMarkDown/index.d.ts +0 -22
  119. package/es/components/LlmTraceComponents/const.d.ts +0 -25
  120. package/es/components/LlmTraceV2/index.d.ts +0 -56
  121. package/es/components/LlmTraceV3/components/TraceContentComponents/BusinessFlow/index.d.ts +0 -13
  122. package/es/components/LlmTraceV3/components/TraceContentComponents/CodeBlock/index.d.ts +0 -18
  123. package/es/components/LlmTraceV3/components/TraceContentComponents/DeepThinking/index.d.ts +0 -13
  124. package/es/components/LlmTraceV3/components/TraceContentComponents/InfoMissing/index.d.ts +0 -13
  125. package/es/components/LlmTraceV3/components/TraceContentComponents/LinkList/index.d.ts +0 -20
  126. package/es/components/LlmTraceV3/components/TraceContentComponents/SearchResults/index.d.ts +0 -13
  127. package/es/components/LlmTraceV3/components/TraceContentComponents/TaskPlanning/index.d.ts +0 -12
  128. package/es/components/LlmTraceV3/components/TraceContentComponents/ToolCall/index.d.ts +0 -13
  129. package/es/components/LlmTraceV3/components/TraceContentComponents/ToolResult/index.d.ts +0 -13
  130. package/es/components/LlmTraceV3/components/TraceContentComponents/const.d.ts +0 -32
  131. package/es/components/LlmTraceV3/components/TraceGroup/index.d.ts +0 -8
  132. package/es/components/LlmTraceV3/components/TraceHeader/index.d.ts +0 -8
  133. package/es/components/LlmTraceV3/components/TraceItem/index.d.ts +0 -8
  134. package/es/components/LlmTraceV3/components/TraceSlide/index.d.ts +0 -30
  135. package/es/components/LlmTraceV3/components/TraceStatusIcon/index.d.ts +0 -8
  136. package/es/components/LlmTraceV3/hooks/useGroupCollapse.d.ts +0 -18
  137. package/es/components/LlmTraceV3/hooks/useItemCollapse.d.ts +0 -18
  138. package/es/components/LlmTraceV3/hooks/useTraceAnimation.d.ts +0 -15
  139. package/es/components/LlmTraceV3/hooks/useTraceCollapse.d.ts +0 -17
  140. package/es/components/LlmTraceV3/index.d.ts +0 -11
  141. package/es/components/LlmTraceV3/types.d.ts +0 -263
  142. package/es/components/LlmTraceV3/utils/collapseLogic.d.ts +0 -26
  143. package/es/components/LlmTraceV3/utils/traceHelpers.d.ts +0 -42
  144. package/es/components/MarkDown/index.d.ts +0 -11
  145. package/es/components/ModelSelect/ModeDropdown.d.ts +0 -8
  146. package/es/components/ModelSelect/const.d.ts +0 -30
  147. package/es/components/ModelSelect/index.d.ts +0 -4
  148. package/es/components/PaulButtonGroup/Select.d.ts +0 -3
  149. package/es/components/PaulButtonGroup/index.d.ts +0 -16
  150. package/es/components/PopAuth/index.d.ts +0 -4
  151. package/es/components/ReferenceInfoItem/index.d.ts +0 -49
  152. package/es/components/ReferenceTag/index.d.ts +0 -11
  153. package/es/components/SchemaInput/SchemaInputCore/index.d.ts +0 -4
  154. package/es/components/SchemaInput/SchemaInputCore/utils.d.ts +0 -1
  155. package/es/components/SchemaInput/SimpleJSONEditor/index.d.ts +0 -4
  156. package/es/components/SchemaInput/index.d.ts +0 -8
  157. package/es/components/SelectBlurry/index.d.ts +0 -3
  158. package/es/components/SendMessageSvgIcon/index.d.ts +0 -3
  159. package/es/components/ShareContent/index.d.ts +0 -21
  160. package/es/components/ShareModal/index.d.ts +0 -15
  161. package/es/components/ShareOperationBar/index.d.ts +0 -4
  162. package/es/components/TextContent/index.d.ts +0 -14
  163. package/es/components/TraceMarkdownWithCard/index.d.ts +0 -6
  164. package/es/components/TraceWithAgent/index.d.ts +0 -23
  165. package/es/constants/assistChatEvent.d.ts +0 -33
  166. package/es/constants/common.d.ts +0 -71
  167. package/es/constants/logTrace.d.ts +0 -3
  168. package/es/constants/reference.d.ts +0 -109
  169. package/es/constants/traceDataStatus.d.ts +0 -34
  170. package/es/context/index.d.ts +0 -13
  171. package/es/context/utils/messages.d.ts +0 -33
  172. package/es/context/utils/send.d.ts +0 -29
  173. package/es/context/utils/tool.d.ts +0 -19
  174. package/es/index.d.ts +0 -37
  175. package/es/interface/IAgent.d.ts +0 -12
  176. package/es/interface/IChatBottom.d.ts +0 -69
  177. package/es/interface/IChatCard.d.ts +0 -40
  178. package/es/interface/IChatContext.d.ts +0 -59
  179. package/es/interface/IChatRef.d.ts +0 -75
  180. package/es/interface/IGuessQuestion.d.ts +0 -43
  181. package/es/interface/IMessage.d.ts +0 -17
  182. package/es/interface/ISend.d.ts +0 -19
  183. package/es/interface/index.d.ts +0 -272
  184. package/es/utils/CSEIconTool.d.ts +0 -8
  185. package/es/utils/apushAssistant.d.ts +0 -73
  186. package/es/utils/clientPlugin.d.ts +0 -3
  187. package/es/utils/common.d.ts +0 -10
  188. package/es/utils/copyToClipboard.d.ts +0 -2
  189. package/es/utils/formDataFormat.d.ts +0 -3
  190. package/es/utils/formatData.d.ts +0 -14
  191. package/es/utils/log.d.ts +0 -18
  192. package/es/utils/parseUrl.d.ts +0 -9
  193. package/es/utils/request.d.ts +0 -15
  194. package/es/utils/screenshot.d.ts +0 -45
  195. package/es/utils/send.d.ts +0 -10
  196. package/es/utils/uploadImage.d.ts +0 -9
  197. package/es/utils/websocketLogger.d.ts +0 -176
@@ -1,78 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import React from 'react';
3
- import type { IModalInfo, IShowQuestion, IThirdPartyModel } from '../../../components/LlmModelChange';
4
- import type { IReference, IReferenceTypeMap } from '../../../components/ReferenceInfoItem';
5
- import type { IChatCardBaseProps } from '../../../interface/IChatCard';
6
- import './index.scss';
7
- /** 后端数据 */
8
- export interface ILlmGenerateCardV5Data {
9
- /** 思考过程 */
10
- trace?: any;
11
- /** markdown 文本 */
12
- content?: string;
13
- /** 是否结束 */
14
- finished?: boolean;
15
- /** 思考中加载状态 */
16
- thinkLoading?: boolean;
17
- /** 参考来源 */
18
- references?: IReference[];
19
- /** 模型名称 */
20
- chatMode?: string;
21
- /** 卡片提示 */
22
- headerTips?: {
23
- showTips?: boolean;
24
- tipsContent?: string;
25
- tipsColor?: string;
26
- };
27
- /** 第三方模型 工单 */
28
- thirdPartyModel?: IThirdPartyModel;
29
- /** 第三方模型 云企 */
30
- modalInfo?: IModalInfo;
31
- /** 展示问题 */
32
- showQuestion?: IShowQuestion;
33
- /** 云企业务的messageId */
34
- messageId?: string | number;
35
- }
36
- /** 前端可配置 */
37
- export interface ILlmGenerateCardV5Props {
38
- /** 是否展示 trace */
39
- showTrace?: boolean;
40
- /** 是否展示第三方模型切换 */
41
- showModelChange?: boolean;
42
- /** 是否展示 aigc 提示 */
43
- showAigcTips?: boolean;
44
- /** 参考来源位置 */
45
- referencePosition?: 'top' | 'bottom';
46
- /** 参考来源类型 */
47
- referenceTypeMap?: IReferenceTypeMap;
48
- /** markdown 组件属性 */
49
- markDownProps?: any;
50
- /** markdown 其他自定义组件注册 */
51
- markDownExtComponentMap?: object;
52
- /** 点击参考来源 */
53
- onClickReference?: (params: {
54
- reference: any;
55
- type: string;
56
- url: string;
57
- title: string;
58
- }) => void;
59
- /** 点击第三方模型 */
60
- onClickThirdPartyModel?: (params: {
61
- query: string;
62
- searchType: string;
63
- extInfo: {
64
- thirdPartyModel: any;
65
- messageId: string;
66
- };
67
- }) => void;
68
- /** markdown 链接点击拦截 */
69
- getALinkInterception?: (params: any) => ReactNode;
70
- /** 参考来源自定义渲染 */
71
- referenceExtraRender?: (params?: any) => ReactNode;
72
- }
73
- export type IProps = ILlmGenerateCardV5Props & ILlmGenerateCardV5Data & IChatCardBaseProps & {
74
- type?: 'v4' | 'v5';
75
- };
76
- export declare const BaseLlmGenerateCard: (props: IProps) => React.JSX.Element;
77
- declare const LlmGenerateCardV5: (props: ILlmGenerateCardV5Props) => React.JSX.Element;
78
- export default LlmGenerateCardV5;
@@ -1,7 +0,0 @@
1
- /**
2
- * @author qytan
3
- * @description AigcTipsRender
4
- */
5
- import React from 'react';
6
- declare const AigcTipsRender: (props: any) => React.JSX.Element;
7
- export default AigcTipsRender;
@@ -1,7 +0,0 @@
1
- /**
2
- * @author qytan
3
- * @description 复制
4
- */
5
- import React from 'react';
6
- declare const Copy: (props: any) => React.JSX.Element;
7
- export default Copy;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const CopyRequestId: (props: any) => React.JSX.Element;
3
- export default CopyRequestId;
@@ -1,11 +0,0 @@
1
- /**
2
- * @author qytan
3
- * @description 点赞点踩
4
- */
5
- import React from 'react';
6
- export declare enum FEEDBACK_TYPE {
7
- HELPFUL = "helpful",// 点赞
8
- UNHELPFUL = "unhelpful"
9
- }
10
- declare const FeedBack: (props: any) => React.JSX.Element;
11
- export default FeedBack;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const ShareButton: (props: any) => React.JSX.Element;
3
- export default ShareButton;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- declare const OperationCard: (props: any) => React.JSX.Element;
4
- export default OperationCard;
@@ -1,21 +0,0 @@
1
- /**
2
- * @author qytan
3
- * @description UserQueryCardRender渲染的Attachments
4
- */
5
- import React from 'react';
6
- import './index.scss';
7
- interface Attachment {
8
- fileName: string;
9
- fileSize: number;
10
- ossFileKey: string;
11
- fileType: string;
12
- }
13
- interface AttachmentsData {
14
- type: 'ATTACHMENTS';
15
- contents: Attachment[];
16
- }
17
- export declare const bytesToSize: (bytes: number) => string;
18
- declare const AttachmentsRender: ({ data }: {
19
- data: AttachmentsData;
20
- }) => React.JSX.Element;
21
- export default AttachmentsRender;
@@ -1,7 +0,0 @@
1
- /**
2
- * @author qytan
3
- * @description UserQueryCardRender渲染的图片
4
- */
5
- import React from 'react';
6
- declare const ImageRender: ({ data, downloadFile }: any) => React.JSX.Element;
7
- export default ImageRender;
@@ -1,8 +0,0 @@
1
- /**
2
- * @author qytan
3
- * @description 新增卡片类型UserQueryCardRender
4
- */
5
- import React from 'react';
6
- import './index.scss';
7
- declare const UserQueryCardRender: (props: any) => React.JSX.Element;
8
- export default UserQueryCardRender;
@@ -1,5 +0,0 @@
1
- export { default as AgentCardRender } from './AgentCardRender';
2
- export { default as AgentCommonCard } from './AgentCommonCard';
3
- export { default as LlmGenerateCard } from './LlmGenerateCard';
4
- export { default as LlmGenerateCardV5 } from './LlmGenerateCardV5';
5
- export { default as UserQueryCardRender } from './UserQueryCardRender';
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import type { IAssistantBottomProps, IAssistantBottomRef } from '../../interface/IChatBottom';
3
- import './index.scss';
4
- declare const _default: React.ForwardRefExoticComponent<IAssistantBottomProps & React.RefAttributes<IAssistantBottomRef>>;
5
- export default _default;
@@ -1,12 +0,0 @@
1
- /**
2
- * 判断右边消息
3
- * @param role
4
- * @returns
5
- */
6
- export declare const isUser: (role: number) => boolean;
7
- /**
8
- * 判断是否结束节点
9
- * @param message
10
- * @returns
11
- */
12
- export declare const isEndNode: (message: any) => boolean;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
4
- export default _default;
@@ -1,7 +0,0 @@
1
- /**
2
- * 判断右边消息
3
- * @param role
4
- * @returns
5
- */
6
- export declare const isLlm: (role: number) => boolean;
7
- export declare const checkExecuteCard: (message: any) => boolean;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- declare const _default: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
4
- export default _default;
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- declare const AssistentError: ({ errorMessage }: {
3
- errorMessage: any;
4
- }) => React.JSX.Element;
5
- export default AssistentError;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import type { IIntelligenceAssistantChatProps } from '../interface';
3
- import type { IAssistantChatRef } from '../interface/IChatRef';
4
- import './index.scss';
5
- declare const _default: React.ForwardRefExoticComponent<IIntelligenceAssistantChatProps & React.RefAttributes<IAssistantChatRef>>;
6
- export default _default;
@@ -1 +0,0 @@
1
- export declare const clickAgentCardRenderATag: (_event: any, commonLog: any, url: any, text: any) => void;
@@ -1,3 +0,0 @@
1
- export declare const copyLlmMarkdown: (_event: any, commonLog: any) => void;
2
- export declare const copyAgentCommonCardMarkdown: (_event: any, commonLog: any) => void;
3
- export declare const copyAgentCardRender: (_event: any, commonLog: any) => void;
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- declare const ErrorBoundaryFallback: ({ errorMessage }: {
3
- errorMessage: any;
4
- }) => React.JSX.Element;
5
- export default ErrorBoundaryFallback;
@@ -1,22 +0,0 @@
1
- import * as React from 'react';
2
- export interface IProps {
3
- children?: React.ReactNode;
4
- Fallback?: React.ComponentType<any>;
5
- onError?: (error?: Error, componentStack?: string) => void;
6
- onLog?: (error?: Error, componentStack?: string) => void;
7
- errorMessage?: string | React.ReactElement;
8
- }
9
- export interface IErrorInfo {
10
- componentStack: string;
11
- }
12
- export interface IState {
13
- error?: Error | null;
14
- info?: IErrorInfo;
15
- }
16
- declare class ErrorBoundary extends React.Component<IProps, IState> {
17
- static defaultProps: IProps;
18
- constructor(props: any);
19
- componentDidCatch(error: Error, info: IErrorInfo): void;
20
- render(): {};
21
- }
22
- export default ErrorBoundary;
@@ -1,2 +0,0 @@
1
- declare const registerAssistChatForm: (customComponentMap?: Record<string, any>) => void;
2
- export default registerAssistChatForm;
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import type { IChatCardBaseProps } from '../../interface/IChatCard';
3
- export interface IAgentCardSubmitProps extends IChatCardBaseProps {
4
- agentId?: string;
5
- label?: string;
6
- submitConfig?: {
7
- visible?: boolean;
8
- url?: string;
9
- text?: string;
10
- style?: any;
11
- };
12
- onSubmitConfig?: {
13
- url?: string;
14
- text?: string;
15
- style?: any;
16
- onSubmit?: (v: any, enableSubmit?: () => void) => void;
17
- };
18
- }
19
- declare const AgentCardSubmit: (props: IAgentCardSubmitProps) => React.JSX.Element;
20
- export default AgentCardSubmit;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- export interface AgentResultProps {
4
- value: any;
5
- onCopyCallback?: (val: any) => void;
6
- }
7
- declare const AgentResult: (props: AgentResultProps) => React.JSX.Element;
8
- export default AgentResult;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import './ScreenshotView.scss';
3
- interface ScreenshotViewProps {
4
- fileKey?: string;
5
- extractedTexts?: string[];
6
- }
7
- /**
8
- * AgentSchemaForm 截图模式视图组件
9
- * 处理截图展示、错误提示、纯文字展示和文本复制等功能
10
- */
11
- declare const ScreenshotView: React.FC<ScreenshotViewProps>;
12
- export default ScreenshotView;
@@ -1,37 +0,0 @@
1
- import type { IChatCardBaseProps } from '../../interface/IChatCard';
2
- export declare const enum FORM_EDITABLE {
3
- DISABLED = 0,// 禁用
4
- EDITABLE = 1,// 编辑
5
- READPRETTY = 2,// 文本展示
6
- READONLY = 3
7
- }
8
- export declare const PATTERN: {
9
- 0: string;
10
- 1: string;
11
- 2: string;
12
- 3: string;
13
- };
14
- export interface IBaseAgentSchemaFormProps extends IChatCardBaseProps {
15
- agentId?: string;
16
- cardId?: string;
17
- cardSchema?: any;
18
- values?: any;
19
- editable?: FORM_EDITABLE;
20
- submitConfig?: {
21
- visible?: boolean;
22
- url?: string;
23
- text?: string;
24
- style?: any;
25
- };
26
- status?: any;
27
- }
28
- export interface AgentSchemaFormProps extends IBaseAgentSchemaFormProps {
29
- onSubmitConfig?: {
30
- url?: string;
31
- text?: string;
32
- style?: any;
33
- onSubmit?: (v: any, enableSubmit?: () => void) => void;
34
- };
35
- formComponentMap?: any;
36
- MemoryMicroComponent?: any;
37
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * @author linhuiw、洛萨
3
- * @description AgentSchemaForm 渲染表单
4
- */
5
- import React from 'react';
6
- import type { AgentSchemaFormProps } from './_interface';
7
- import './index.scss';
8
- declare const AgentSchemaForm: (props: AgentSchemaFormProps) => React.JSX.Element;
9
- export default AgentSchemaForm;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- declare const AgentText: (props: any) => React.JSX.Element;
4
- export default AgentText;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- export interface IAigcTipsProps {
4
- visible?: boolean;
5
- content?: string;
6
- tipsColor?: string;
7
- }
8
- declare const AigcTips: (props: IAigcTipsProps) => React.JSX.Element;
9
- export default AigcTips;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const ArrayInput: (props: any) => React.JSX.Element;
3
- export default ArrayInput;
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- interface CustomDrawerProps {
4
- visible: boolean;
5
- onClose: () => void;
6
- title?: React.ReactNode;
7
- footer?: React.ReactNode;
8
- children?: React.ReactNode;
9
- width?: number | string;
10
- className?: string;
11
- style?: React.CSSProperties;
12
- backgroundColor?: 'white' | 'blue';
13
- }
14
- /**
15
- * 右侧弹窗组件,参考 antd Modal 设计
16
- * title 默认为"预览",右上角有关闭按钮
17
- * 支持自定义 title/footer/body
18
- * 支持关闭动画
19
- * 挂载到 body 上,避免层级问题
20
- */
21
- declare const CustomDrawer: React.FC<CustomDrawerProps>;
22
- export default CustomDrawer;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const EmptyIcon: () => React.JSX.Element;
3
- export default EmptyIcon;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const HeaderSvgIcon: () => React.JSX.Element;
3
- export default HeaderSvgIcon;
@@ -1,66 +0,0 @@
1
- /**
2
- * @file 智能辅助-巡检报告卡片
3
- */
4
- import React from 'react';
5
- interface EnumOption {
6
- label: string;
7
- value: string;
8
- }
9
- interface FieldConfig {
10
- type: string;
11
- title?: string;
12
- default?: string;
13
- enum?: EnumOption[];
14
- 'x-component'?: string;
15
- 'x-decorator'?: string;
16
- }
17
- interface LayoutProperties {
18
- submitButton?: {
19
- type: string;
20
- 'x-component': string;
21
- };
22
- [key: string]: FieldConfig | any;
23
- }
24
- interface CardSchema {
25
- type: string;
26
- properties: {
27
- layout: {
28
- type: string;
29
- 'x-component': string;
30
- 'x-component-props': {
31
- className: string;
32
- grid: boolean;
33
- };
34
- properties: LayoutProperties;
35
- };
36
- };
37
- }
38
- export interface InspectionCardProps {
39
- cardSchema?: CardSchema;
40
- data?: {
41
- result?: {
42
- cardSchema?: CardSchema;
43
- cardValue?: {
44
- [key: string]: any;
45
- };
46
- };
47
- [key: string]: any;
48
- };
49
- cardValue?: {
50
- [key: string]: any;
51
- };
52
- dialogId?: string;
53
- subjectId?: string;
54
- originData?: any;
55
- onSubmit?: (values: any, dialogId: string, subjectId: string) => Promise<{
56
- success: boolean;
57
- message?: string;
58
- }>;
59
- }
60
- declare const InspectionCard: React.FC<InspectionCardProps>;
61
- /**
62
- * InspectionCard 包装组件 - 带 Context 支持
63
- * 从 AssistantChatContext 中获取 bizId 和 assistantChat,自动提供 onSubmit 回调
64
- */
65
- export declare const InspectionCardWithContext: React.FC<InspectionCardProps>;
66
- export default InspectionCard;
@@ -1,13 +0,0 @@
1
- /**
2
- * @file 任务执行状态组件
3
- */
4
- import React from 'react';
5
- interface TaskExecutionStatusProps {
6
- data: {
7
- executionInfo?: string;
8
- progressUrl?: string;
9
- status: 'FINISHED' | 'RUNNING';
10
- };
11
- }
12
- declare const TaskExecutionStatus: React.FC<TaskExecutionStatusProps>;
13
- export default TaskExecutionStatus;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- export interface IMdAmarkGuessProps {
3
- className?: string;
4
- otherProps?: any;
5
- inner: any;
6
- finished?: boolean;
7
- query: string;
8
- onClick?: (params: any) => void;
9
- }
10
- /**
11
- * 猜问
12
- * @param props
13
- * @returns
14
- */
15
- declare const MdAmarkGuess: (props: IMdAmarkGuessProps) => React.JSX.Element;
16
- export default MdAmarkGuess;
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- interface IMdAmarkReferenceProps {
4
- className?: string;
5
- otherProps?: any;
6
- inner?: any;
7
- goDetailTab?: any;
8
- summary?: string;
9
- ticketId?: any;
10
- dialogId?: any;
11
- findItem?: any;
12
- queryParams?: any;
13
- commonLog?: any;
14
- }
15
- /**
16
- * markdown 引用信息展示
17
- * @param props
18
- * @returns
19
- */
20
- declare const MdAmarkReference: (props: IMdAmarkReferenceProps) => React.JSX.Element;
21
- export default MdAmarkReference;
@@ -1,30 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import React from 'react';
3
- import './index.scss';
4
- export interface ILlmMarkDownProps {
5
- content?: string;
6
- references?: any[];
7
- finished?: boolean;
8
- ticketId?: number;
9
- dialogId?: number;
10
- bizMessageId?: any;
11
- onClickReference?: (params: {
12
- reference?: any;
13
- type?: string;
14
- url: string;
15
- title: string;
16
- }) => void;
17
- commonLog?: any;
18
- markDownProps?: any;
19
- markDownExtComponentMap?: object;
20
- getALinkInterception?: (params: any) => ReactNode;
21
- /** 获取API主机地址的方法 */
22
- getApiHost?: () => string;
23
- }
24
- /**
25
- * LLM markdown 组件
26
- * @param props
27
- * @returns
28
- */
29
- declare const LlmMarkDown: (props: ILlmMarkDownProps) => React.JSX.Element;
30
- export default LlmMarkDown;
@@ -1,57 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- /** 第三方模型 工单 */
4
- export interface IThirdPartyModel {
5
- available?: {
6
- name: string;
7
- code: string;
8
- }[];
9
- executed?: {
10
- name: string;
11
- code: string;
12
- };
13
- }
14
- /** 第三方模型 云企 */
15
- export interface IModalInfo {
16
- currentModalCode?: string;
17
- modalDataList?: {
18
- name: string;
19
- code: string;
20
- desc: string;
21
- }[];
22
- }
23
- /** 生成答案对应问题 */
24
- export interface IShowQuestion {
25
- currentQuestion?: string;
26
- originalQuestion?: string;
27
- originIsUsed?: boolean;
28
- }
29
- /** 点击第三方模型 */
30
- export type IOnClickThirdPartyModel = (params: {
31
- query: string;
32
- searchType: string;
33
- extInfo: {
34
- thirdPartyModel: any;
35
- messageId: string;
36
- };
37
- }) => void;
38
- /** LLM 模型切换 */
39
- export interface ILlmModelChangeProps {
40
- /** 第三方模型 工单 */
41
- thirdPartyModel?: IThirdPartyModel;
42
- /** 第三方模型 云企 */
43
- modalInfo?: IModalInfo;
44
- /** 生成答案对应问题 */
45
- showQuestion?: IShowQuestion;
46
- dialogId?: string;
47
- ticketId?: string;
48
- /** 点击第三方模型 */
49
- onClickThirdPartyModel?: IOnClickThirdPartyModel;
50
- }
51
- /**
52
- * LLM 模型切换
53
- * @param props
54
- * @returns
55
- */
56
- declare const LlmModelChange: (props: ILlmModelChangeProps) => React.JSX.Element;
57
- export default LlmModelChange;
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- import type { IReference, IReferenceTypeMap } from '../ReferenceInfoItem';
3
- import './index.scss';
4
- export interface ILlmReferenceProps {
5
- ticketId?: string;
6
- dialogId?: string;
7
- bizMessageId?: any;
8
- referenceTypeMap?: IReferenceTypeMap;
9
- commonLog?: (params: any) => void;
10
- references?: IReference[];
11
- onClickReference?: (params: {
12
- reference: any;
13
- type: string;
14
- url: string;
15
- title: string;
16
- }) => void;
17
- referenceExtraRender?: (params?: any) => React.ReactNode;
18
- }
19
- /**
20
- * 引用信息展示
21
- * @param props
22
- * @returns
23
- */
24
- declare const LlmReference: (props: ILlmReferenceProps) => React.JSX.Element;
25
- export default LlmReference;