paul-ai-assistant 1.0.2 → 1.0.4

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 (213) hide show
  1. package/dist/6254.async.js +490 -490
  2. package/dist/7084.async.js +247 -0
  3. package/dist/customer-service-typewriter/index.html +44 -0
  4. package/dist/demos.async.js +384 -10
  5. package/dist/demos__customerServiceTypewriter__index.md.async.js +2 -0
  6. package/dist/dumi__tmp-production__dumi__theme__ContextWrapper.async.js +1 -1
  7. package/dist/meta__demos.async.js +1601 -1
  8. package/dist/meta__docs.async.js +29 -28
  9. package/dist/preload_helper.js +1 -1
  10. package/dist/umi.js +47 -47
  11. package/dist/~demos/demos-customer-service-typewriter-demo-customer-service-demo/index.html +44 -0
  12. package/dist/~demos/demos-customer-service-typewriter-demo-smart-scroll-demo/index.html +44 -0
  13. package/es/AssistantChat/AssistantChatApp/const.js +1 -1
  14. package/es/AssistantChat/AssistantChatApp/index.js +1 -1
  15. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TraceComponent.js +4 -4
  16. package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.js +4 -5
  17. package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.js +2 -2
  18. package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.js +1 -1
  19. package/es/AssistantChat/AssistantChatCard/OperationCard/Copy/index.js +1 -1
  20. package/es/AssistantChat/AssistantChatCard/OperationCard/CopyRequestId/index.js +1 -1
  21. package/es/AssistantChat/AssistantChatCard/OperationCard/FeedBack/index.js +2 -2
  22. package/es/AssistantChat/AssistantChatCard/OperationCard/ShareButton/index.js +1 -1
  23. package/es/AssistantChat/AssistantChatCard/OperationCard/index.js +1 -1
  24. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/AttachmentsRender.js +4 -4
  25. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/ImageRender.js +6 -6
  26. package/es/AssistantChat/AssistantChatInput/index.js +7 -5
  27. package/es/common/registerAssistChatForm.js +8 -5
  28. package/es/components/AgentCardSubmit/index.js +1 -2
  29. package/es/components/AgentResult/index.js +1 -1
  30. package/es/components/AgentSchemaForm/ScreenshotView.js +1 -1
  31. package/es/components/AgentSchemaForm/index.js +5 -5
  32. package/es/components/ArrayInput/index.js +1 -1
  33. package/es/components/InspectionCard/index.js +1 -1
  34. package/es/components/LlmMarkDown/MdAmarkGuess/index.js +1 -1
  35. package/es/components/LlmMarkDown/MdAmarkReference/index.js +3 -3
  36. package/es/components/LlmMarkDown/index.js +1 -1
  37. package/es/components/LlmModelChange/index.js +2 -2
  38. package/es/components/LlmReference/index.js +9 -9
  39. package/es/components/LlmTraceComponents/Disassemble/index.js +2 -2
  40. package/es/components/LlmTraceComponents/Rewrite/index.js +2 -2
  41. package/es/components/MarkDown/index.js +42 -13
  42. package/es/components/ModelSelect/ModeDropdown.js +1 -1
  43. package/es/components/ModelSelect/const.js +3 -3
  44. package/es/components/PaulButtonGroup/Select.js +2 -2
  45. package/es/components/PaulButtonGroup/index.js +2 -2
  46. package/es/components/PopAuth/index.js +2 -2
  47. package/es/components/SchemaInput/SchemaInputCore/index.js +1 -1
  48. package/es/components/SchemaInput/SimpleJSONEditor/index.js +1 -1
  49. package/es/components/SelectBlurry/index.js +2 -2
  50. package/es/components/ShareModal/index.js +2 -2
  51. package/es/components/ShareOperationBar/index.js +2 -2
  52. package/es/components/TextContent/index.js +3 -3
  53. package/es/components/TraceWithAgent/index.js +4 -9
  54. package/es/context/index.js +2 -1
  55. package/es/context/utils/messages.js +2 -2
  56. package/es/context/utils/send.js +3 -3
  57. package/es/context/utils/tool.js +2 -2
  58. package/es/utils/CSEIconTool.js +1 -1
  59. package/es/utils/apushAssistant.js +2 -3
  60. package/es/utils/clientPlugin.js +1 -1
  61. package/es/utils/common.js +17 -0
  62. package/es/utils/event.js +87 -0
  63. package/es/utils/formDataFormat.js +1 -1
  64. package/es/utils/formatData.js +1 -1
  65. package/es/utils/helpers.js +78 -0
  66. package/es/utils/log.js +1 -1
  67. package/es/utils/request.js +74 -0
  68. package/es/utils/send.js +1 -1
  69. package/es/utils/uploadImage.js +1 -1
  70. package/package.json +6 -19
  71. package/dist/2517.async.js +0 -247
  72. package/es/AssistantChat/AssistantChatApp/CardMatchRender/index.d.ts +0 -8
  73. package/es/AssistantChat/AssistantChatApp/OperationMatchRender/index.d.ts +0 -9
  74. package/es/AssistantChat/AssistantChatApp/const.d.ts +0 -51
  75. package/es/AssistantChat/AssistantChatApp/index.d.ts +0 -4
  76. package/es/AssistantChat/AssistantChatCard/AgentCardRender/TemplateCard.d.ts +0 -3
  77. package/es/AssistantChat/AssistantChatCard/AgentCardRender/common/types.d.ts +0 -3
  78. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHeader.d.ts +0 -5
  79. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHtml.d.ts +0 -7
  80. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateParagraph.d.ts +0 -3
  81. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateTitle.d.ts +0 -3
  82. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TraceComponent.d.ts +0 -3
  83. package/es/AssistantChat/AssistantChatCard/AgentCardRender/context/index.d.ts +0 -29
  84. package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.d.ts +0 -4
  85. package/es/AssistantChat/AssistantChatCard/AgentCardRender/utils.d.ts +0 -2
  86. package/es/AssistantChat/AssistantChatCard/AgentCommonCard/index.d.ts +0 -4
  87. package/es/AssistantChat/AssistantChatCard/AgentExecutionCard/index.d.ts +0 -16
  88. package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.d.ts +0 -14
  89. package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.d.ts +0 -78
  90. package/es/AssistantChat/AssistantChatCard/OperationCard/AigcTipsRender/index.d.ts +0 -7
  91. package/es/AssistantChat/AssistantChatCard/OperationCard/Copy/index.d.ts +0 -7
  92. package/es/AssistantChat/AssistantChatCard/OperationCard/CopyRequestId/index.d.ts +0 -3
  93. package/es/AssistantChat/AssistantChatCard/OperationCard/FeedBack/index.d.ts +0 -11
  94. package/es/AssistantChat/AssistantChatCard/OperationCard/ShareButton/index.d.ts +0 -3
  95. package/es/AssistantChat/AssistantChatCard/OperationCard/index.d.ts +0 -4
  96. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/AttachmentsRender.d.ts +0 -21
  97. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/ImageRender.d.ts +0 -7
  98. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/index.d.ts +0 -8
  99. package/es/AssistantChat/AssistantChatCard/index.d.ts +0 -5
  100. package/es/AssistantChat/AssistantChatInput/index.d.ts +0 -5
  101. package/es/AssistantChat/AssistantToolApp/const.d.ts +0 -12
  102. package/es/AssistantChat/AssistantToolApp/index.d.ts +0 -4
  103. package/es/AssistantChat/AssistantToolExecutionApp/const.d.ts +0 -7
  104. package/es/AssistantChat/AssistantToolExecutionApp/index.d.ts +0 -4
  105. package/es/AssistantChat/AssistentError/index.d.ts +0 -5
  106. package/es/AssistantChat/index.d.ts +0 -6
  107. package/es/AssistantChat/logCallback/aTagLog.d.ts +0 -1
  108. package/es/AssistantChat/logCallback/copyLog.d.ts +0 -3
  109. package/es/ErrorBoundary/ErrorBoundaryFallback/index.d.ts +0 -5
  110. package/es/ErrorBoundary/index.d.ts +0 -22
  111. package/es/common/registerAssistChatForm.d.ts +0 -2
  112. package/es/components/AgentCardSubmit/index.d.ts +0 -20
  113. package/es/components/AgentResult/index.d.ts +0 -8
  114. package/es/components/AgentSchemaForm/ScreenshotView.d.ts +0 -12
  115. package/es/components/AgentSchemaForm/_interface.d.ts +0 -37
  116. package/es/components/AgentSchemaForm/index.d.ts +0 -9
  117. package/es/components/AgentText/index.d.ts +0 -4
  118. package/es/components/AigcTips/index.d.ts +0 -9
  119. package/es/components/ArrayInput/index.d.ts +0 -3
  120. package/es/components/AssistantDrawer/index.d.ts +0 -22
  121. package/es/components/EmptyIcon/index.d.ts +0 -3
  122. package/es/components/HeaderSvgIcon/index.d.ts +0 -3
  123. package/es/components/InspectionCard/index.d.ts +0 -66
  124. package/es/components/InspectionCard/result.d.ts +0 -13
  125. package/es/components/LlmMarkDown/MdAmarkGuess/index.d.ts +0 -16
  126. package/es/components/LlmMarkDown/MdAmarkReference/index.d.ts +0 -21
  127. package/es/components/LlmMarkDown/index.d.ts +0 -30
  128. package/es/components/LlmModelChange/index.d.ts +0 -57
  129. package/es/components/LlmReference/index.d.ts +0 -25
  130. package/es/components/LlmTitle/index.d.ts +0 -14
  131. package/es/components/LlmTrace/index.d.ts +0 -17
  132. package/es/components/LlmTraceComponents/Disassemble/index.d.ts +0 -24
  133. package/es/components/LlmTraceComponents/ReadResource/index.d.ts +0 -24
  134. package/es/components/LlmTraceComponents/Rewrite/index.d.ts +0 -23
  135. package/es/components/LlmTraceComponents/TraceMarkDown/index.d.ts +0 -22
  136. package/es/components/LlmTraceComponents/const.d.ts +0 -25
  137. package/es/components/LlmTraceV2/index.d.ts +0 -56
  138. package/es/components/LlmTraceV3/components/TraceContentComponents/BusinessFlow/index.d.ts +0 -13
  139. package/es/components/LlmTraceV3/components/TraceContentComponents/CodeBlock/index.d.ts +0 -18
  140. package/es/components/LlmTraceV3/components/TraceContentComponents/DeepThinking/index.d.ts +0 -13
  141. package/es/components/LlmTraceV3/components/TraceContentComponents/InfoMissing/index.d.ts +0 -13
  142. package/es/components/LlmTraceV3/components/TraceContentComponents/LinkList/index.d.ts +0 -20
  143. package/es/components/LlmTraceV3/components/TraceContentComponents/SearchResults/index.d.ts +0 -13
  144. package/es/components/LlmTraceV3/components/TraceContentComponents/TaskPlanning/index.d.ts +0 -12
  145. package/es/components/LlmTraceV3/components/TraceContentComponents/ToolCall/index.d.ts +0 -13
  146. package/es/components/LlmTraceV3/components/TraceContentComponents/ToolResult/index.d.ts +0 -13
  147. package/es/components/LlmTraceV3/components/TraceContentComponents/const.d.ts +0 -32
  148. package/es/components/LlmTraceV3/components/TraceGroup/index.d.ts +0 -8
  149. package/es/components/LlmTraceV3/components/TraceHeader/index.d.ts +0 -8
  150. package/es/components/LlmTraceV3/components/TraceItem/index.d.ts +0 -8
  151. package/es/components/LlmTraceV3/components/TraceSlide/index.d.ts +0 -30
  152. package/es/components/LlmTraceV3/components/TraceStatusIcon/index.d.ts +0 -8
  153. package/es/components/LlmTraceV3/hooks/useGroupCollapse.d.ts +0 -18
  154. package/es/components/LlmTraceV3/hooks/useItemCollapse.d.ts +0 -18
  155. package/es/components/LlmTraceV3/hooks/useTraceAnimation.d.ts +0 -15
  156. package/es/components/LlmTraceV3/hooks/useTraceCollapse.d.ts +0 -17
  157. package/es/components/LlmTraceV3/index.d.ts +0 -11
  158. package/es/components/LlmTraceV3/types.d.ts +0 -263
  159. package/es/components/LlmTraceV3/utils/collapseLogic.d.ts +0 -26
  160. package/es/components/LlmTraceV3/utils/traceHelpers.d.ts +0 -42
  161. package/es/components/MarkDown/index.d.ts +0 -11
  162. package/es/components/ModelSelect/ModeDropdown.d.ts +0 -8
  163. package/es/components/ModelSelect/const.d.ts +0 -30
  164. package/es/components/ModelSelect/index.d.ts +0 -4
  165. package/es/components/PaulButtonGroup/Select.d.ts +0 -3
  166. package/es/components/PaulButtonGroup/index.d.ts +0 -16
  167. package/es/components/PopAuth/index.d.ts +0 -4
  168. package/es/components/ReferenceInfoItem/index.d.ts +0 -49
  169. package/es/components/ReferenceTag/index.d.ts +0 -11
  170. package/es/components/SchemaInput/SchemaInputCore/index.d.ts +0 -4
  171. package/es/components/SchemaInput/SchemaInputCore/utils.d.ts +0 -1
  172. package/es/components/SchemaInput/SimpleJSONEditor/index.d.ts +0 -4
  173. package/es/components/SchemaInput/index.d.ts +0 -8
  174. package/es/components/SelectBlurry/index.d.ts +0 -3
  175. package/es/components/SendMessageSvgIcon/index.d.ts +0 -3
  176. package/es/components/ShareContent/index.d.ts +0 -21
  177. package/es/components/ShareModal/index.d.ts +0 -15
  178. package/es/components/ShareOperationBar/index.d.ts +0 -4
  179. package/es/components/TextContent/index.d.ts +0 -14
  180. package/es/components/TraceMarkdownWithCard/index.d.ts +0 -6
  181. package/es/components/TraceWithAgent/index.d.ts +0 -23
  182. package/es/constants/assistChatEvent.d.ts +0 -33
  183. package/es/constants/common.d.ts +0 -71
  184. package/es/constants/logTrace.d.ts +0 -3
  185. package/es/constants/reference.d.ts +0 -109
  186. package/es/constants/traceDataStatus.d.ts +0 -34
  187. package/es/context/index.d.ts +0 -13
  188. package/es/context/utils/messages.d.ts +0 -33
  189. package/es/context/utils/send.d.ts +0 -29
  190. package/es/context/utils/tool.d.ts +0 -19
  191. package/es/index.d.ts +0 -37
  192. package/es/interface/IAgent.d.ts +0 -12
  193. package/es/interface/IChatBottom.d.ts +0 -69
  194. package/es/interface/IChatCard.d.ts +0 -40
  195. package/es/interface/IChatContext.d.ts +0 -59
  196. package/es/interface/IChatRef.d.ts +0 -75
  197. package/es/interface/IGuessQuestion.d.ts +0 -43
  198. package/es/interface/IMessage.d.ts +0 -17
  199. package/es/interface/ISend.d.ts +0 -19
  200. package/es/interface/index.d.ts +0 -272
  201. package/es/utils/CSEIconTool.d.ts +0 -8
  202. package/es/utils/apushAssistant.d.ts +0 -73
  203. package/es/utils/clientPlugin.d.ts +0 -3
  204. package/es/utils/common.d.ts +0 -10
  205. package/es/utils/copyToClipboard.d.ts +0 -2
  206. package/es/utils/formDataFormat.d.ts +0 -3
  207. package/es/utils/formatData.d.ts +0 -14
  208. package/es/utils/log.d.ts +0 -18
  209. package/es/utils/parseUrl.d.ts +0 -9
  210. package/es/utils/screenshot.d.ts +0 -45
  211. package/es/utils/send.d.ts +0 -10
  212. package/es/utils/uploadImage.d.ts +0 -9
  213. package/es/utils/websocketLogger.d.ts +0 -176
@@ -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;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- export interface ILlmTitleProps {
4
- title?: string;
5
- icon?: string;
6
- className?: string;
7
- }
8
- /**
9
- * 标题组件
10
- * @param props
11
- * @returns
12
- */
13
- declare const LlmTitle: (props: ILlmTitleProps) => React.JSX.Element;
14
- export default LlmTitle;
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- export interface ILlmTraceProps {
4
- headTitle?: React.ReactNode;
5
- trace?: any;
6
- ticketId?: string;
7
- dialogId?: string;
8
- originData?: any;
9
- finished?: boolean;
10
- }
11
- /**
12
- * LLM 链路组件
13
- * @param props
14
- * @returns
15
- */
16
- declare const LlmTrace: (props: ILlmTraceProps) => React.JSX.Element;
17
- export default LlmTrace;
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import { TRACE_STATUS_ENUM } from '../../../constants/traceDataStatus';
3
- import './index.scss';
4
- export interface IDisassembleResult {
5
- /** 搜索结果文本 */
6
- data?: string[];
7
- }
8
- export interface IDisassembleProps {
9
- data: {
10
- /** 组件 数据 */
11
- result?: IDisassembleResult;
12
- status?: TRACE_STATUS_ENUM;
13
- [key: string]: any;
14
- };
15
- /** 搜索点击事件 */
16
- onClick?: (params: any) => void;
17
- }
18
- /**
19
- * 子问题拆解
20
- * @param props
21
- * @returns
22
- */
23
- declare const Disassemble: (props: IDisassembleProps) => React.JSX.Element;
24
- export default Disassemble;
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import { TRACE_STATUS_ENUM } from '../../../constants/traceDataStatus';
3
- import './index.scss';
4
- export interface IReadResourceResult {
5
- /** 标题 */
6
- title?: string;
7
- /** 链接 */
8
- utl?: string;
9
- }
10
- export interface ITraceMarkDownProps {
11
- data: {
12
- /** 组件 数据 */
13
- result?: IReadResourceResult[];
14
- status?: TRACE_STATUS_ENUM;
15
- [key: string]: any;
16
- };
17
- }
18
- /**
19
- * 资源阅读
20
- * @param props
21
- * @returns
22
- */
23
- declare const ReadResource: (props: ITraceMarkDownProps) => React.JSX.Element;
24
- export default ReadResource;
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- export interface IRewriteResult {
4
- /** 改写后的问题 */
5
- rewrite?: string;
6
- /** 原问题 */
7
- orgQuery?: string;
8
- }
9
- export interface IRewriteProps {
10
- data?: {
11
- /** 组件 数据 */
12
- result?: IRewriteResult;
13
- [key: string]: any;
14
- };
15
- onClick?: (params: any) => void;
16
- }
17
- /**
18
- * 问题改写
19
- * @param props
20
- * @returns
21
- */
22
- declare const Rewrite: (props: IRewriteProps) => React.JSX.Element;
23
- export default Rewrite;
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- export type ITraceMarkDownResult = string;
4
- export interface ITraceMarkDownProps {
5
- data: {
6
- /** 组件 数据 */
7
- result?: ITraceMarkDownResult;
8
- [key: string]: any;
9
- };
10
- originData?: any;
11
- /** 是否是当前消息 */
12
- isCurrentMessage?: boolean;
13
- /** 获取API主机地址的方法 */
14
- getApiHost?: () => string;
15
- }
16
- /**
17
- * trace 组件 markdown 展示
18
- * @param props
19
- * @returns
20
- */
21
- declare const TraceMarkDown: (props: ITraceMarkDownProps) => React.JSX.Element;
22
- export default TraceMarkDown;
@@ -1,25 +0,0 @@
1
- /// <reference types="react" />
2
- export declare enum TRACE_TYPE_COMPONENT_ENUM {
3
- rewrite = "rewrite",
4
- questionDisassemble = "questionDisassemble",
5
- markdown = "markdown",
6
- readResource = "readResource",
7
- traceMarkdownWithCard = "TraceMarkdownWithCard",
8
- traceWithAgent = "TraceWithAgent",
9
- inspectionCard = "InspectionCard"
10
- }
11
- /**
12
- * trace组件类型映射
13
- */
14
- export declare const TRACE_TYPE_COMPONENT_MAP: {
15
- rewrite: (props: import("./Rewrite").IRewriteProps) => import("react").JSX.Element;
16
- questionDisassemble: (props: import("./Disassemble").IDisassembleProps) => import("react").JSX.Element;
17
- markdown: (props: import("./TraceMarkDown").ITraceMarkDownProps) => import("react").JSX.Element;
18
- readResource: (props: import("./ReadResource").ITraceMarkDownProps) => import("react").JSX.Element;
19
- TraceMarkdownWithCard: ({ title, result }: {
20
- title?: string;
21
- result?: string;
22
- }) => import("react").JSX.Element;
23
- TraceWithAgent: import("react").FC<import("../TraceWithAgent").TraceWithAgentProps>;
24
- InspectionCard: import("react").FC<import("../InspectionCard").InspectionCardProps>;
25
- };
@@ -1,56 +0,0 @@
1
- import React from 'react';
2
- import { TRACE_STATUS_ENUM } from '../../constants/traceDataStatus';
3
- import type { TRACE_TYPE_COMPONENT_ENUM } from '../LlmTraceComponents/const';
4
- import './index.scss';
5
- export interface ITraceThirdItem {
6
- /** 展示标题 存在则展示 */
7
- showTitle?: string;
8
- /** 组件类型 */
9
- type?: TRACE_TYPE_COMPONENT_ENUM | string;
10
- /** 组件入参 */
11
- result?: any;
12
- /** 没有对应组件时,展示默认内容 */
13
- defaultContent?: string;
14
- /** 内层执行状态 */
15
- status?: TRACE_STATUS_ENUM;
16
- [key: string]: any;
17
- }
18
- /** 思考过程 第二层,单节点 有透出状态 */
19
- export interface ITraceSecondItem {
20
- /** 展示标题 存在则展示 */
21
- showTitle?: string;
22
- /** 节点执行状态 */
23
- status?: TRACE_STATUS_ENUM;
24
- /** 节点执行内容,组件展示 */
25
- result?: ITraceThirdItem[];
26
- [key: string]: any;
27
- }
28
- /** 思考过程 最外层,折叠层 */
29
- export interface ITrace {
30
- /** 思考数据 */
31
- data?: ITraceSecondItem[];
32
- /** 思考状态 */
33
- status?: TRACE_STATUS_ENUM;
34
- /** 思考名称 */
35
- traceName?: string;
36
- /** 思考耗时 ms */
37
- cost?: string | number;
38
- /** 思考是否默认折叠 */
39
- collapse?: boolean;
40
- }
41
- export interface ILlmTraceProps {
42
- trace?: ITrace;
43
- ticketId?: string;
44
- dialogId?: string;
45
- originData?: any;
46
- traceExternalRenderType?: {
47
- [key: string]: React.ComponentType<any>;
48
- };
49
- }
50
- /**
51
- * LLM 链路组件
52
- * @param props
53
- * @returns
54
- */
55
- declare const LlmTraceV2: (props: ILlmTraceProps) => React.JSX.Element;
56
- export default LlmTraceV2;
@@ -1,13 +0,0 @@
1
- /**
2
- * BusinessFlow 业务流组件
3
- * 展示业务流程,支持点击查看详情
4
- */
5
- import React from 'react';
6
- import type { IBusinessFlowResult } from '../../../types';
7
- import './index.scss';
8
- export interface IBusinessFlowProps extends IBusinessFlowResult {
9
- dialogId?: string;
10
- ctx?: any;
11
- }
12
- declare const _default: React.NamedExoticComponent<IBusinessFlowProps>;
13
- export default _default;
@@ -1,18 +0,0 @@
1
- /**
2
- * CodeBlock 通用代码块组件
3
- * 支持语法高亮(可选)和折叠功能
4
- */
5
- import React from 'react';
6
- import './index.scss';
7
- export interface ICodeBlockProps {
8
- code: string;
9
- language?: string;
10
- collapsed?: boolean;
11
- collapsible?: boolean;
12
- showLineNumbers?: boolean;
13
- maxHeight?: number;
14
- dialogId?: string;
15
- ctx?: any;
16
- }
17
- declare const _default: React.NamedExoticComponent<ICodeBlockProps>;
18
- export default _default;
@@ -1,13 +0,0 @@
1
- /**
2
- * DeepThinking 深度思考组件
3
- * 展示 AI 的深度思考过程和推理结果
4
- */
5
- import React from 'react';
6
- import type { IDeepThinkingResult } from '../../../types';
7
- import './index.scss';
8
- export interface IDeepThinkingProps extends IDeepThinkingResult {
9
- dialogId?: string;
10
- ctx?: any;
11
- }
12
- declare const _default: React.NamedExoticComponent<IDeepThinkingProps>;
13
- export default _default;
@@ -1,13 +0,0 @@
1
- /**
2
- * InfoMissing 信息缺失组件
3
- * 提示缺少必要信息,需要用户补充
4
- */
5
- import React from 'react';
6
- import type { IInfoMissingResult } from '../../../types';
7
- import './index.scss';
8
- export interface IInfoMissingProps extends IInfoMissingResult {
9
- dialogId?: string;
10
- ctx?: any;
11
- }
12
- declare const _default: React.NamedExoticComponent<IInfoMissingProps>;
13
- export default _default;
@@ -1,20 +0,0 @@
1
- /**
2
- * LinkList 链接列表组件
3
- * 支持有序编号和点击跳转
4
- */
5
- import React from 'react';
6
- import './index.scss';
7
- export interface ILinkListProps {
8
- links: Array<{
9
- id: string;
10
- title: string;
11
- url: string;
12
- description?: string;
13
- }>;
14
- ordered?: boolean;
15
- openInNewTab?: boolean;
16
- dialogId?: string;
17
- ctx?: any;
18
- }
19
- declare const _default: React.NamedExoticComponent<ILinkListProps>;
20
- export default _default;
@@ -1,13 +0,0 @@
1
- /**
2
- * SearchResults 搜索结果组件
3
- * 展示联网搜索的结果列表
4
- */
5
- import React from 'react';
6
- import type { ISearchResultsResult } from '../../../types';
7
- import './index.scss';
8
- export interface ISearchResultsProps extends ISearchResultsResult {
9
- dialogId?: string;
10
- ctx?: any;
11
- }
12
- declare const _default: React.NamedExoticComponent<ISearchResultsProps>;
13
- export default _default;
@@ -1,12 +0,0 @@
1
- /**
2
- * TaskPlanning 任务规划组件
3
- * 展示有序的任务计划列表
4
- */
5
- import React from 'react';
6
- import type { ITaskPlanningResult } from '../../../types';
7
- export interface ITaskPlanningProps extends ITaskPlanningResult {
8
- dialogId?: string;
9
- ctx?: any;
10
- }
11
- declare const _default: React.NamedExoticComponent<ITaskPlanningProps>;
12
- export default _default;
@@ -1,13 +0,0 @@
1
- /**
2
- * ToolCall 工具调用组件
3
- * 展示工具调用的代码和参数
4
- */
5
- import React from 'react';
6
- import type { IToolCallResult } from '../../../types';
7
- import './index.scss';
8
- export interface IToolCallProps extends IToolCallResult {
9
- dialogId?: string;
10
- ctx?: any;
11
- }
12
- declare const _default: React.NamedExoticComponent<IToolCallProps>;
13
- export default _default;
@@ -1,13 +0,0 @@
1
- /**
2
- * ToolResult 工具结果组件
3
- * 展示工具调用的返回结果
4
- */
5
- import React from 'react';
6
- import type { IToolResultResult } from '../../../types';
7
- import './index.scss';
8
- export interface IToolResultProps extends IToolResultResult {
9
- dialogId?: string;
10
- ctx?: any;
11
- }
12
- declare const _default: React.NamedExoticComponent<IToolResultProps>;
13
- export default _default;
@@ -1,32 +0,0 @@
1
- /**
2
- * TraceV3 组件类型映射配置
3
- * 将组件类型枚举映射到具体的 React 组件
4
- */
5
- /// <reference types="react" />
6
- import { TRACE_V3_TYPE_COMPONENT_ENUM } from '../../types';
7
- /**
8
- * TraceV3 组件类型映射
9
- * 包含 V2 的所有组件 + V3 新增组件
10
- */
11
- export declare const TRACE_V3_COMPONENT_MAP: {
12
- deepThinking: import("react").NamedExoticComponent<import("./DeepThinking").IDeepThinkingProps>;
13
- taskPlanning: import("react").NamedExoticComponent<import("./TaskPlanning").ITaskPlanningProps>;
14
- searchResults: import("react").NamedExoticComponent<import("./SearchResults").ISearchResultsProps>;
15
- toolCall: import("react").NamedExoticComponent<import("./ToolCall").IToolCallProps>;
16
- toolResult: import("react").NamedExoticComponent<import("./ToolResult").IToolResultProps>;
17
- businessFlow: import("react").NamedExoticComponent<import("./BusinessFlow").IBusinessFlowProps>;
18
- infoMissing: import("react").NamedExoticComponent<import("./InfoMissing").IInfoMissingProps>;
19
- codeBlock: import("react").NamedExoticComponent<import("./CodeBlock").ICodeBlockProps>;
20
- linkList: import("react").NamedExoticComponent<import("./LinkList").ILinkListProps>;
21
- rewrite: (props: import("../../../LlmTraceComponents/Rewrite").IRewriteProps) => import("react").JSX.Element;
22
- questionDisassemble: (props: import("../../../LlmTraceComponents/Disassemble").IDisassembleProps) => import("react").JSX.Element;
23
- markdown: (props: import("../../../LlmTraceComponents/TraceMarkDown").ITraceMarkDownProps) => import("react").JSX.Element;
24
- readResource: (props: import("../../../LlmTraceComponents/ReadResource").ITraceMarkDownProps) => import("react").JSX.Element;
25
- TraceMarkdownWithCard: ({ title, result }: {
26
- title?: string;
27
- result?: string;
28
- }) => import("react").JSX.Element;
29
- TraceWithAgent: import("react").FC<import("../../../TraceWithAgent").TraceWithAgentProps>;
30
- InspectionCard: import("react").FC<import("../../../InspectionCard").InspectionCardProps>;
31
- };
32
- export { TRACE_V3_TYPE_COMPONENT_ENUM };
@@ -1,8 +0,0 @@
1
- /**
2
- * TraceGroup 组件
3
- * 展示分组标题和内容区域
4
- */
5
- import React from 'react';
6
- import type { ITraceGroupProps } from '../../types';
7
- declare const _default: React.NamedExoticComponent<ITraceGroupProps>;
8
- export default _default;
@@ -1,8 +0,0 @@
1
- /**
2
- * TraceHeader 组件
3
- * 展示思考过程的标题、状态、耗时、折叠按钮
4
- */
5
- import React from 'react';
6
- import type { ITraceHeaderProps } from '../../types';
7
- declare const _default: React.NamedExoticComponent<ITraceHeaderProps>;
8
- export default _default;
@@ -1,8 +0,0 @@
1
- /**
2
- * TraceItem 组件
3
- * 展示单个 Trace 项,管理自身折叠状态
4
- */
5
- import React from 'react';
6
- import type { ITraceItemProps } from '../../types';
7
- declare const _default: React.NamedExoticComponent<ITraceItemProps>;
8
- export default _default;