paul-ai-assistant 0.1.16

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 (512) hide show
  1. package/README.md +249 -0
  2. package/dist/1.async.js +61 -0
  3. package/dist/1013.async.js +1 -0
  4. package/dist/123.async.js +258 -0
  5. package/dist/1387.async.js +321 -0
  6. package/dist/1481.async.js +1 -0
  7. package/dist/1548.async.js +2 -0
  8. package/dist/1815.async.js +3 -0
  9. package/dist/1819.async.js +1 -0
  10. package/dist/1851.async.js +1 -0
  11. package/dist/2491.async.js +132 -0
  12. package/dist/2517.async.js +247 -0
  13. package/dist/2678.async.js +1 -0
  14. package/dist/2856.async.js +267 -0
  15. package/dist/295.async.js +1 -0
  16. package/dist/3098.async.js +1 -0
  17. package/dist/3138.async.js +1 -0
  18. package/dist/34.async.js +137 -0
  19. package/dist/3472.async.js +1 -0
  20. package/dist/3614.async.js +25 -0
  21. package/dist/3959.async.js +69 -0
  22. package/dist/404.html +44 -0
  23. package/dist/4484.async.js +10 -0
  24. package/dist/4498.async.js +37 -0
  25. package/dist/4911.async.js +1 -0
  26. package/dist/4927.async.js +104 -0
  27. package/dist/5067.async.js +44 -0
  28. package/dist/5588.async.js +8 -0
  29. package/dist/5754.async.js +5 -0
  30. package/dist/6254.async.js +30286 -0
  31. package/dist/6355.async.js +10 -0
  32. package/dist/6662.async.js +177 -0
  33. package/dist/6680.async.js +2615 -0
  34. package/dist/6690.async.js +153 -0
  35. package/dist/7267.async.js +31 -0
  36. package/dist/7329.async.js +180 -0
  37. package/dist/7718.async.js +61 -0
  38. package/dist/7762.async.js +3 -0
  39. package/dist/7787.async.js +7 -0
  40. package/dist/7929.async.js +1 -0
  41. package/dist/8164.async.js +1 -0
  42. package/dist/834.async.js +221 -0
  43. package/dist/8456.async.js +146 -0
  44. package/dist/8542.async.js +25 -0
  45. package/dist/8749.async.js +1 -0
  46. package/dist/8914.async.js +66 -0
  47. package/dist/9570.async.js +65 -0
  48. package/dist/9725.async.js +18 -0
  49. package/dist/components/llm-trace-v2/index.html +44 -0
  50. package/dist/components/llm-trace-v3/index.html +44 -0
  51. package/dist/components/llm-trace-v3-advanced/index.html +44 -0
  52. package/dist/components/llm-trace-v3-examples/index.html +44 -0
  53. package/dist/components/llm-trace-v3-visual-demos/index.html +44 -0
  54. package/dist/demos.async.js +594 -0
  55. package/dist/demos__index.md.async.js +1 -0
  56. package/dist/demos__markdown-latex-mermaid__index.md.async.js +1 -0
  57. package/dist/demos__toolChatType__index.md.async.js +1 -0
  58. package/dist/docs/index.html +44 -0
  59. package/dist/docs__components__llm-trace-v2.md.async.js +1 -0
  60. package/dist/docs__components__llm-trace-v3-advanced.md.async.js +1 -0
  61. package/dist/docs__components__llm-trace-v3-examples.md.async.js +1 -0
  62. package/dist/docs__components__llm-trace-v3-visual-demos.md.async.js +1 -0
  63. package/dist/docs__components__llm-trace-v3.md.async.js +61 -0
  64. package/dist/docs__docs__index.md.async.js +108 -0
  65. package/dist/docs__index.md.async.js +1 -0
  66. package/dist/dumi__tmp-production__dumi__theme__ContextWrapper.async.js +1 -0
  67. package/dist/index.html +44 -0
  68. package/dist/markdown-latex-mermaid/index.html +44 -0
  69. package/dist/meta__demos.async.js +4272 -0
  70. package/dist/meta__docs.async.js +3416 -0
  71. package/dist/nm__dumi__dist__client__pages__404.async.js +29 -0
  72. package/dist/nm__dumi__dist__client__pages__Demo__index.async.js +5 -0
  73. package/dist/nm__dumi__theme-default__layouts__DocLayout__index.async.js +1 -0
  74. package/dist/preload_helper.js +1 -0
  75. package/dist/static/KaTeX_AMS-Regular.1608a09b.woff +0 -0
  76. package/dist/static/KaTeX_AMS-Regular.4aafdb68.ttf +0 -0
  77. package/dist/static/KaTeX_AMS-Regular.a79f1c31.woff2 +0 -0
  78. package/dist/static/KaTeX_Caligraphic-Bold.b6770918.woff +0 -0
  79. package/dist/static/KaTeX_Caligraphic-Bold.cce5b8ec.ttf +0 -0
  80. package/dist/static/KaTeX_Caligraphic-Bold.ec17d132.woff2 +0 -0
  81. package/dist/static/KaTeX_Caligraphic-Regular.07ef19e7.ttf +0 -0
  82. package/dist/static/KaTeX_Caligraphic-Regular.55fac258.woff2 +0 -0
  83. package/dist/static/KaTeX_Caligraphic-Regular.dad44a7f.woff +0 -0
  84. package/dist/static/KaTeX_Fraktur-Bold.9f256b85.woff +0 -0
  85. package/dist/static/KaTeX_Fraktur-Bold.b18f59e1.ttf +0 -0
  86. package/dist/static/KaTeX_Fraktur-Bold.d42a5579.woff2 +0 -0
  87. package/dist/static/KaTeX_Fraktur-Regular.7c187121.woff +0 -0
  88. package/dist/static/KaTeX_Fraktur-Regular.d3c882a6.woff2 +0 -0
  89. package/dist/static/KaTeX_Fraktur-Regular.ed38e79f.ttf +0 -0
  90. package/dist/static/KaTeX_Main-Bold.b74a1a8b.ttf +0 -0
  91. package/dist/static/KaTeX_Main-Bold.c3fb5ac2.woff2 +0 -0
  92. package/dist/static/KaTeX_Main-Bold.d181c465.woff +0 -0
  93. package/dist/static/KaTeX_Main-BoldItalic.6f2bb1df.woff2 +0 -0
  94. package/dist/static/KaTeX_Main-BoldItalic.70d8b0a5.ttf +0 -0
  95. package/dist/static/KaTeX_Main-BoldItalic.e3f82f9d.woff +0 -0
  96. package/dist/static/KaTeX_Main-Italic.47373d1e.ttf +0 -0
  97. package/dist/static/KaTeX_Main-Italic.8916142b.woff2 +0 -0
  98. package/dist/static/KaTeX_Main-Italic.9024d815.woff +0 -0
  99. package/dist/static/KaTeX_Main-Regular.0462f03b.woff2 +0 -0
  100. package/dist/static/KaTeX_Main-Regular.7f51fe03.woff +0 -0
  101. package/dist/static/KaTeX_Main-Regular.b7f8fe9b.ttf +0 -0
  102. package/dist/static/KaTeX_Math-BoldItalic.572d331f.woff2 +0 -0
  103. package/dist/static/KaTeX_Math-BoldItalic.a879cf83.ttf +0 -0
  104. package/dist/static/KaTeX_Math-BoldItalic.f1035d8d.woff +0 -0
  105. package/dist/static/KaTeX_Math-Italic.5295ba48.woff +0 -0
  106. package/dist/static/KaTeX_Math-Italic.939bc644.ttf +0 -0
  107. package/dist/static/KaTeX_Math-Italic.f28c23ac.woff2 +0 -0
  108. package/dist/static/KaTeX_SansSerif-Bold.8c5b5494.woff2 +0 -0
  109. package/dist/static/KaTeX_SansSerif-Bold.94e1e8dc.ttf +0 -0
  110. package/dist/static/KaTeX_SansSerif-Bold.bf59d231.woff +0 -0
  111. package/dist/static/KaTeX_SansSerif-Italic.3b1e59b3.woff2 +0 -0
  112. package/dist/static/KaTeX_SansSerif-Italic.7c9bc82b.woff +0 -0
  113. package/dist/static/KaTeX_SansSerif-Italic.b4c20c84.ttf +0 -0
  114. package/dist/static/KaTeX_SansSerif-Regular.74048478.woff +0 -0
  115. package/dist/static/KaTeX_SansSerif-Regular.ba21ed5f.woff2 +0 -0
  116. package/dist/static/KaTeX_SansSerif-Regular.d4d7ba48.ttf +0 -0
  117. package/dist/static/KaTeX_Script-Regular.03e9641d.woff2 +0 -0
  118. package/dist/static/KaTeX_Script-Regular.07505710.woff +0 -0
  119. package/dist/static/KaTeX_Script-Regular.fe9cbbe1.ttf +0 -0
  120. package/dist/static/KaTeX_Size1-Regular.e1e279cb.woff +0 -0
  121. package/dist/static/KaTeX_Size1-Regular.eae34984.woff2 +0 -0
  122. package/dist/static/KaTeX_Size1-Regular.fabc004a.ttf +0 -0
  123. package/dist/static/KaTeX_Size2-Regular.57727022.woff +0 -0
  124. package/dist/static/KaTeX_Size2-Regular.5916a24f.woff2 +0 -0
  125. package/dist/static/KaTeX_Size2-Regular.d6b476ec.ttf +0 -0
  126. package/dist/static/KaTeX_Size3-Regular.9acaf01c.woff +0 -0
  127. package/dist/static/KaTeX_Size3-Regular.a144ef58.ttf +0 -0
  128. package/dist/static/KaTeX_Size3-Regular.b4230e7e.woff2 +0 -0
  129. package/dist/static/KaTeX_Size4-Regular.10d95fd3.woff2 +0 -0
  130. package/dist/static/KaTeX_Size4-Regular.7a996c9d.woff +0 -0
  131. package/dist/static/KaTeX_Size4-Regular.fbccdabe.ttf +0 -0
  132. package/dist/static/KaTeX_Typewriter-Regular.6258592b.woff +0 -0
  133. package/dist/static/KaTeX_Typewriter-Regular.a8709e36.woff2 +0 -0
  134. package/dist/static/KaTeX_Typewriter-Regular.d97aaf4a.ttf +0 -0
  135. package/dist/tool-chat-type/index.html +44 -0
  136. package/dist/umi.js +1534 -0
  137. package/dist/~demos/:id/index.html +44 -0
  138. package/dist/~demos/demos-markdown-latex-mermaid-demo-markdown-latex-mermaid/index.html +44 -0
  139. package/dist/~demos/demos-tool-chat-type-demo-agentschemaformdemo/index.html +44 -0
  140. package/dist/~demos/demos-tool-chat-type-demo-assistant-drawer/index.html +44 -0
  141. package/dist/~demos/demos-tool-chat-type-demo-chat-input-demo/index.html +44 -0
  142. package/dist/~demos/demos-tool-chat-type-demo-chat-list-demo/index.html +44 -0
  143. package/dist/~demos/demos-tool-chat-type-demo-chat-scenario-demo/index.html +44 -0
  144. package/dist/~demos/demos-tool-chat-type-demo-schema-input/index.html +44 -0
  145. package/dist/~demos/demos-tool-chat-type-demo-toolchattype/index.html +44 -0
  146. package/dist/~demos/docs-components-llm-trace-v-2-demo-0/index.html +44 -0
  147. package/dist/~demos/docs-components-llm-trace-v-2-demo-1/index.html +44 -0
  148. package/dist/~demos/docs-components-llm-trace-v-2-demo-2/index.html +44 -0
  149. package/dist/~demos/docs-components-llm-trace-v-2-demo-3/index.html +44 -0
  150. package/dist/~demos/docs-components-llm-trace-v-2-demo-4/index.html +44 -0
  151. package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-0/index.html +44 -0
  152. package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-1/index.html +44 -0
  153. package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-2/index.html +44 -0
  154. package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-3/index.html +44 -0
  155. package/dist/~demos/docs-components-llm-trace-v-3-demo-0/index.html +44 -0
  156. package/dist/~demos/docs-components-llm-trace-v-3-demo-1/index.html +44 -0
  157. package/dist/~demos/docs-components-llm-trace-v-3-demo-2/index.html +44 -0
  158. package/dist/~demos/docs-components-llm-trace-v-3-demo-3/index.html +44 -0
  159. package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-0/index.html +44 -0
  160. package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-1/index.html +44 -0
  161. package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-2/index.html +44 -0
  162. package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-3/index.html +44 -0
  163. package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-4/index.html +44 -0
  164. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-0/index.html +44 -0
  165. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-1/index.html +44 -0
  166. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-2/index.html +44 -0
  167. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-3/index.html +44 -0
  168. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-4/index.html +44 -0
  169. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-5/index.html +44 -0
  170. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-6/index.html +44 -0
  171. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-7/index.html +44 -0
  172. package/es/AssistantChat/AssistantChatApp/CardMatchRender/index.d.ts +8 -0
  173. package/es/AssistantChat/AssistantChatApp/CardMatchRender/index.js +124 -0
  174. package/es/AssistantChat/AssistantChatApp/OperationMatchRender/index.d.ts +9 -0
  175. package/es/AssistantChat/AssistantChatApp/OperationMatchRender/index.js +64 -0
  176. package/es/AssistantChat/AssistantChatApp/const.d.ts +51 -0
  177. package/es/AssistantChat/AssistantChatApp/const.js +105 -0
  178. package/es/AssistantChat/AssistantChatApp/index.d.ts +4 -0
  179. package/es/AssistantChat/AssistantChatApp/index.js +281 -0
  180. package/es/AssistantChat/AssistantChatApp/index.scss +327 -0
  181. package/es/AssistantChat/AssistantChatCard/AgentCardRender/TemplateCard.d.ts +3 -0
  182. package/es/AssistantChat/AssistantChatCard/AgentCardRender/TemplateCard.js +125 -0
  183. package/es/AssistantChat/AssistantChatCard/AgentCardRender/common/types.d.ts +3 -0
  184. package/es/AssistantChat/AssistantChatCard/AgentCardRender/common/types.js +1 -0
  185. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHeader.d.ts +5 -0
  186. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHeader.js +24 -0
  187. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHtml.d.ts +7 -0
  188. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHtml.js +58 -0
  189. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateParagraph.d.ts +3 -0
  190. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateParagraph.js +8 -0
  191. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateTitle.d.ts +3 -0
  192. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateTitle.js +9 -0
  193. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TraceComponent.d.ts +3 -0
  194. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TraceComponent.js +47 -0
  195. package/es/AssistantChat/AssistantChatCard/AgentCardRender/context/index.d.ts +29 -0
  196. package/es/AssistantChat/AssistantChatCard/AgentCardRender/context/index.js +95 -0
  197. package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.d.ts +4 -0
  198. package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.js +100 -0
  199. package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.scss +18 -0
  200. package/es/AssistantChat/AssistantChatCard/AgentCardRender/utils.d.ts +2 -0
  201. package/es/AssistantChat/AssistantChatCard/AgentCardRender/utils.js +36 -0
  202. package/es/AssistantChat/AssistantChatCard/AgentCommonCard/index.d.ts +4 -0
  203. package/es/AssistantChat/AssistantChatCard/AgentCommonCard/index.js +95 -0
  204. package/es/AssistantChat/AssistantChatCard/AgentCommonCard/index.scss +20 -0
  205. package/es/AssistantChat/AssistantChatCard/AgentExecutionCard/index.d.ts +16 -0
  206. package/es/AssistantChat/AssistantChatCard/AgentExecutionCard/index.js +17 -0
  207. package/es/AssistantChat/AssistantChatCard/AgentExecutionCard/index.scss +99 -0
  208. package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.d.ts +14 -0
  209. package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.js +273 -0
  210. package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.scss +101 -0
  211. package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.d.ts +78 -0
  212. package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.js +123 -0
  213. package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.scss +12 -0
  214. package/es/AssistantChat/AssistantChatCard/OperationCard/AigcTipsRender/index.d.ts +7 -0
  215. package/es/AssistantChat/AssistantChatCard/OperationCard/AigcTipsRender/index.js +29 -0
  216. package/es/AssistantChat/AssistantChatCard/OperationCard/Copy/index.d.ts +7 -0
  217. package/es/AssistantChat/AssistantChatCard/OperationCard/Copy/index.js +64 -0
  218. package/es/AssistantChat/AssistantChatCard/OperationCard/CopyRequestId/index.d.ts +3 -0
  219. package/es/AssistantChat/AssistantChatCard/OperationCard/CopyRequestId/index.js +19 -0
  220. package/es/AssistantChat/AssistantChatCard/OperationCard/FeedBack/index.d.ts +11 -0
  221. package/es/AssistantChat/AssistantChatCard/OperationCard/FeedBack/index.js +91 -0
  222. package/es/AssistantChat/AssistantChatCard/OperationCard/ShareButton/index.d.ts +3 -0
  223. package/es/AssistantChat/AssistantChatCard/OperationCard/ShareButton/index.js +26 -0
  224. package/es/AssistantChat/AssistantChatCard/OperationCard/index.d.ts +4 -0
  225. package/es/AssistantChat/AssistantChatCard/OperationCard/index.js +43 -0
  226. package/es/AssistantChat/AssistantChatCard/OperationCard/index.scss +14 -0
  227. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/AttachmentsRender.d.ts +21 -0
  228. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/AttachmentsRender.js +141 -0
  229. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/ImageRender.d.ts +7 -0
  230. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/ImageRender.js +74 -0
  231. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/index.d.ts +8 -0
  232. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/index.js +54 -0
  233. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/index.scss +98 -0
  234. package/es/AssistantChat/AssistantChatCard/index.d.ts +5 -0
  235. package/es/AssistantChat/AssistantChatCard/index.js +10 -0
  236. package/es/AssistantChat/AssistantChatInput/index.d.ts +5 -0
  237. package/es/AssistantChat/AssistantChatInput/index.js +172 -0
  238. package/es/AssistantChat/AssistantChatInput/index.scss +85 -0
  239. package/es/AssistantChat/AssistantToolApp/const.d.ts +12 -0
  240. package/es/AssistantChat/AssistantToolApp/const.js +22 -0
  241. package/es/AssistantChat/AssistantToolApp/index.d.ts +4 -0
  242. package/es/AssistantChat/AssistantToolApp/index.js +159 -0
  243. package/es/AssistantChat/AssistantToolApp/index.scss +76 -0
  244. package/es/AssistantChat/AssistantToolExecutionApp/const.d.ts +7 -0
  245. package/es/AssistantChat/AssistantToolExecutionApp/const.js +23 -0
  246. package/es/AssistantChat/AssistantToolExecutionApp/index.d.ts +4 -0
  247. package/es/AssistantChat/AssistantToolExecutionApp/index.js +66 -0
  248. package/es/AssistantChat/AssistantToolExecutionApp/index.scss +39 -0
  249. package/es/AssistantChat/AssistentError/index.d.ts +5 -0
  250. package/es/AssistantChat/AssistentError/index.js +138 -0
  251. package/es/AssistantChat/index.d.ts +6 -0
  252. package/es/AssistantChat/index.js +166 -0
  253. package/es/AssistantChat/index.scss +30 -0
  254. package/es/AssistantChat/logCallback/aTagLog.d.ts +1 -0
  255. package/es/AssistantChat/logCallback/aTagLog.js +23 -0
  256. package/es/AssistantChat/logCallback/copyLog.d.ts +3 -0
  257. package/es/AssistantChat/logCallback/copyLog.js +63 -0
  258. package/es/ErrorBoundary/ErrorBoundaryFallback/index.d.ts +5 -0
  259. package/es/ErrorBoundary/ErrorBoundaryFallback/index.js +134 -0
  260. package/es/ErrorBoundary/index.d.ts +22 -0
  261. package/es/ErrorBoundary/index.js +69 -0
  262. package/es/common/registerAssistChatForm.d.ts +2 -0
  263. package/es/common/registerAssistChatForm.js +14 -0
  264. package/es/components/AgentCardSubmit/index.d.ts +20 -0
  265. package/es/components/AgentCardSubmit/index.js +90 -0
  266. package/es/components/AgentResult/index.d.ts +8 -0
  267. package/es/components/AgentResult/index.js +77 -0
  268. package/es/components/AgentResult/index.scss +11 -0
  269. package/es/components/AgentSchemaForm/ScreenshotView.d.ts +12 -0
  270. package/es/components/AgentSchemaForm/ScreenshotView.js +194 -0
  271. package/es/components/AgentSchemaForm/ScreenshotView.scss +86 -0
  272. package/es/components/AgentSchemaForm/_interface.d.ts +37 -0
  273. package/es/components/AgentSchemaForm/_interface.js +13 -0
  274. package/es/components/AgentSchemaForm/index.d.ts +9 -0
  275. package/es/components/AgentSchemaForm/index.js +190 -0
  276. package/es/components/AgentSchemaForm/index.scss +37 -0
  277. package/es/components/AgentText/index.d.ts +4 -0
  278. package/es/components/AgentText/index.js +8 -0
  279. package/es/components/AgentText/index.scss +5 -0
  280. package/es/components/AigcTips/index.d.ts +9 -0
  281. package/es/components/AigcTips/index.js +17 -0
  282. package/es/components/AigcTips/index.scss +6 -0
  283. package/es/components/ArrayInput/index.d.ts +3 -0
  284. package/es/components/ArrayInput/index.js +36 -0
  285. package/es/components/AssistantDrawer/index.d.ts +22 -0
  286. package/es/components/AssistantDrawer/index.js +112 -0
  287. package/es/components/AssistantDrawer/index.scss +96 -0
  288. package/es/components/EmptyIcon/index.d.ts +3 -0
  289. package/es/components/EmptyIcon/index.js +124 -0
  290. package/es/components/HeaderSvgIcon/index.d.ts +3 -0
  291. package/es/components/HeaderSvgIcon/index.js +1 -0
  292. package/es/components/InspectionCard/index.d.ts +66 -0
  293. package/es/components/InspectionCard/index.js +246 -0
  294. package/es/components/InspectionCard/index.module.less +193 -0
  295. package/es/components/InspectionCard/result.d.ts +13 -0
  296. package/es/components/InspectionCard/result.js +26 -0
  297. package/es/components/InspectionCard/result.module.less +36 -0
  298. package/es/components/LlmMarkDown/MdAmarkGuess/index.d.ts +16 -0
  299. package/es/components/LlmMarkDown/MdAmarkGuess/index.js +41 -0
  300. package/es/components/LlmMarkDown/MdAmarkReference/index.d.ts +21 -0
  301. package/es/components/LlmMarkDown/MdAmarkReference/index.js +300 -0
  302. package/es/components/LlmMarkDown/MdAmarkReference/index.scss +122 -0
  303. package/es/components/LlmMarkDown/index.d.ts +30 -0
  304. package/es/components/LlmMarkDown/index.js +202 -0
  305. package/es/components/LlmMarkDown/index.scss +23 -0
  306. package/es/components/LlmModelChange/index.d.ts +57 -0
  307. package/es/components/LlmModelChange/index.js +138 -0
  308. package/es/components/LlmModelChange/index.scss +60 -0
  309. package/es/components/LlmReference/index.d.ts +25 -0
  310. package/es/components/LlmReference/index.js +147 -0
  311. package/es/components/LlmReference/index.scss +92 -0
  312. package/es/components/LlmTitle/index.d.ts +14 -0
  313. package/es/components/LlmTitle/index.js +26 -0
  314. package/es/components/LlmTitle/index.scss +20 -0
  315. package/es/components/LlmTrace/index.d.ts +17 -0
  316. package/es/components/LlmTrace/index.js +119 -0
  317. package/es/components/LlmTrace/index.scss +79 -0
  318. package/es/components/LlmTraceComponents/Disassemble/index.d.ts +24 -0
  319. package/es/components/LlmTraceComponents/Disassemble/index.js +89 -0
  320. package/es/components/LlmTraceComponents/Disassemble/index.scss +19 -0
  321. package/es/components/LlmTraceComponents/ReadResource/index.d.ts +24 -0
  322. package/es/components/LlmTraceComponents/ReadResource/index.js +19 -0
  323. package/es/components/LlmTraceComponents/ReadResource/index.scss +5 -0
  324. package/es/components/LlmTraceComponents/Rewrite/index.d.ts +23 -0
  325. package/es/components/LlmTraceComponents/Rewrite/index.js +49 -0
  326. package/es/components/LlmTraceComponents/Rewrite/index.scss +13 -0
  327. package/es/components/LlmTraceComponents/TraceMarkDown/index.d.ts +22 -0
  328. package/es/components/LlmTraceComponents/TraceMarkDown/index.js +44 -0
  329. package/es/components/LlmTraceComponents/TraceMarkDown/index.scss +18 -0
  330. package/es/components/LlmTraceComponents/const.d.ts +25 -0
  331. package/es/components/LlmTraceComponents/const.js +23 -0
  332. package/es/components/LlmTraceV2/index.d.ts +56 -0
  333. package/es/components/LlmTraceV2/index.js +384 -0
  334. package/es/components/LlmTraceV2/index.scss +115 -0
  335. package/es/components/LlmTraceV3/components/TraceContentComponents/BusinessFlow/index.d.ts +13 -0
  336. package/es/components/LlmTraceV3/components/TraceContentComponents/BusinessFlow/index.js +38 -0
  337. package/es/components/LlmTraceV3/components/TraceContentComponents/BusinessFlow/index.scss +56 -0
  338. package/es/components/LlmTraceV3/components/TraceContentComponents/CodeBlock/index.d.ts +18 -0
  339. package/es/components/LlmTraceV3/components/TraceContentComponents/CodeBlock/index.js +82 -0
  340. package/es/components/LlmTraceV3/components/TraceContentComponents/CodeBlock/index.scss +36 -0
  341. package/es/components/LlmTraceV3/components/TraceContentComponents/DeepThinking/index.d.ts +13 -0
  342. package/es/components/LlmTraceV3/components/TraceContentComponents/DeepThinking/index.js +26 -0
  343. package/es/components/LlmTraceV3/components/TraceContentComponents/DeepThinking/index.scss +54 -0
  344. package/es/components/LlmTraceV3/components/TraceContentComponents/InfoMissing/index.d.ts +13 -0
  345. package/es/components/LlmTraceV3/components/TraceContentComponents/InfoMissing/index.js +25 -0
  346. package/es/components/LlmTraceV3/components/TraceContentComponents/InfoMissing/index.scss +38 -0
  347. package/es/components/LlmTraceV3/components/TraceContentComponents/LinkList/index.d.ts +20 -0
  348. package/es/components/LlmTraceV3/components/TraceContentComponents/LinkList/index.js +49 -0
  349. package/es/components/LlmTraceV3/components/TraceContentComponents/LinkList/index.scss +37 -0
  350. package/es/components/LlmTraceV3/components/TraceContentComponents/SearchResults/index.d.ts +13 -0
  351. package/es/components/LlmTraceV3/components/TraceContentComponents/SearchResults/index.js +93 -0
  352. package/es/components/LlmTraceV3/components/TraceContentComponents/SearchResults/index.scss +151 -0
  353. package/es/components/LlmTraceV3/components/TraceContentComponents/TaskPlanning/index.d.ts +12 -0
  354. package/es/components/LlmTraceV3/components/TraceContentComponents/TaskPlanning/index.js +28 -0
  355. package/es/components/LlmTraceV3/components/TraceContentComponents/ToolCall/index.d.ts +13 -0
  356. package/es/components/LlmTraceV3/components/TraceContentComponents/ToolCall/index.js +46 -0
  357. package/es/components/LlmTraceV3/components/TraceContentComponents/ToolCall/index.scss +70 -0
  358. package/es/components/LlmTraceV3/components/TraceContentComponents/ToolResult/index.d.ts +13 -0
  359. package/es/components/LlmTraceV3/components/TraceContentComponents/ToolResult/index.js +72 -0
  360. package/es/components/LlmTraceV3/components/TraceContentComponents/ToolResult/index.scss +90 -0
  361. package/es/components/LlmTraceV3/components/TraceContentComponents/const.d.ts +32 -0
  362. package/es/components/LlmTraceV3/components/TraceContentComponents/const.js +27 -0
  363. package/es/components/LlmTraceV3/components/TraceGroup/index.d.ts +8 -0
  364. package/es/components/LlmTraceV3/components/TraceGroup/index.js +81 -0
  365. package/es/components/LlmTraceV3/components/TraceHeader/index.d.ts +8 -0
  366. package/es/components/LlmTraceV3/components/TraceHeader/index.js +64 -0
  367. package/es/components/LlmTraceV3/components/TraceItem/index.d.ts +8 -0
  368. package/es/components/LlmTraceV3/components/TraceItem/index.js +126 -0
  369. package/es/components/LlmTraceV3/components/TraceSlide/index.d.ts +30 -0
  370. package/es/components/LlmTraceV3/components/TraceSlide/index.js +278 -0
  371. package/es/components/LlmTraceV3/components/TraceSlide/index.scss +204 -0
  372. package/es/components/LlmTraceV3/components/TraceStatusIcon/index.d.ts +8 -0
  373. package/es/components/LlmTraceV3/components/TraceStatusIcon/index.js +41 -0
  374. package/es/components/LlmTraceV3/hooks/useGroupCollapse.d.ts +18 -0
  375. package/es/components/LlmTraceV3/hooks/useGroupCollapse.js +91 -0
  376. package/es/components/LlmTraceV3/hooks/useItemCollapse.d.ts +18 -0
  377. package/es/components/LlmTraceV3/hooks/useItemCollapse.js +61 -0
  378. package/es/components/LlmTraceV3/hooks/useTraceAnimation.d.ts +15 -0
  379. package/es/components/LlmTraceV3/hooks/useTraceAnimation.js +54 -0
  380. package/es/components/LlmTraceV3/hooks/useTraceCollapse.d.ts +17 -0
  381. package/es/components/LlmTraceV3/hooks/useTraceCollapse.js +80 -0
  382. package/es/components/LlmTraceV3/index.d.ts +11 -0
  383. package/es/components/LlmTraceV3/index.js +173 -0
  384. package/es/components/LlmTraceV3/index.scss +333 -0
  385. package/es/components/LlmTraceV3/types.d.ts +263 -0
  386. package/es/components/LlmTraceV3/types.js +108 -0
  387. package/es/components/LlmTraceV3/utils/collapseLogic.d.ts +26 -0
  388. package/es/components/LlmTraceV3/utils/collapseLogic.js +86 -0
  389. package/es/components/LlmTraceV3/utils/traceHelpers.d.ts +42 -0
  390. package/es/components/LlmTraceV3/utils/traceHelpers.js +94 -0
  391. package/es/components/MarkDown/index.d.ts +11 -0
  392. package/es/components/MarkDown/index.js +222 -0
  393. package/es/components/MarkDown/index.scss +179 -0
  394. package/es/components/ModelSelect/ModeDropdown.d.ts +8 -0
  395. package/es/components/ModelSelect/ModeDropdown.js +118 -0
  396. package/es/components/ModelSelect/const.d.ts +30 -0
  397. package/es/components/ModelSelect/const.js +61 -0
  398. package/es/components/ModelSelect/index.d.ts +4 -0
  399. package/es/components/ModelSelect/index.js +45 -0
  400. package/es/components/ModelSelect/index.scss +121 -0
  401. package/es/components/PaulButtonGroup/Select.d.ts +3 -0
  402. package/es/components/PaulButtonGroup/Select.js +109 -0
  403. package/es/components/PaulButtonGroup/index.d.ts +16 -0
  404. package/es/components/PaulButtonGroup/index.js +209 -0
  405. package/es/components/PaulButtonGroup/index.scss +19 -0
  406. package/es/components/PopAuth/index.d.ts +4 -0
  407. package/es/components/PopAuth/index.js +62 -0
  408. package/es/components/PopAuth/index.scss +16 -0
  409. package/es/components/ReferenceInfoItem/index.d.ts +49 -0
  410. package/es/components/ReferenceInfoItem/index.js +43 -0
  411. package/es/components/ReferenceInfoItem/index.scss +46 -0
  412. package/es/components/ReferenceTag/index.d.ts +11 -0
  413. package/es/components/ReferenceTag/index.js +27 -0
  414. package/es/components/ReferenceTag/index.scss +19 -0
  415. package/es/components/SchemaInput/SchemaInputCore/index.d.ts +4 -0
  416. package/es/components/SchemaInput/SchemaInputCore/index.js +113 -0
  417. package/es/components/SchemaInput/SchemaInputCore/index.scss +35 -0
  418. package/es/components/SchemaInput/SchemaInputCore/utils.d.ts +1 -0
  419. package/es/components/SchemaInput/SchemaInputCore/utils.js +77 -0
  420. package/es/components/SchemaInput/SimpleJSONEditor/index.d.ts +4 -0
  421. package/es/components/SchemaInput/SimpleJSONEditor/index.js +35 -0
  422. package/es/components/SchemaInput/SimpleJSONEditor/index.scss +7 -0
  423. package/es/components/SchemaInput/index.d.ts +8 -0
  424. package/es/components/SchemaInput/index.js +30 -0
  425. package/es/components/SelectBlurry/index.d.ts +3 -0
  426. package/es/components/SelectBlurry/index.js +74 -0
  427. package/es/components/SendMessageSvgIcon/index.d.ts +3 -0
  428. package/es/components/SendMessageSvgIcon/index.js +70 -0
  429. package/es/components/ShareContent/index.d.ts +21 -0
  430. package/es/components/ShareContent/index.js +176 -0
  431. package/es/components/ShareContent/index.scss +36 -0
  432. package/es/components/ShareModal/index.d.ts +15 -0
  433. package/es/components/ShareModal/index.js +185 -0
  434. package/es/components/ShareModal/index.scss +199 -0
  435. package/es/components/ShareOperationBar/index.d.ts +4 -0
  436. package/es/components/ShareOperationBar/index.js +152 -0
  437. package/es/components/ShareOperationBar/index.scss +47 -0
  438. package/es/components/TextContent/index.d.ts +14 -0
  439. package/es/components/TextContent/index.js +37 -0
  440. package/es/components/TextContent/index.scss +31 -0
  441. package/es/components/TraceMarkdownWithCard/index.d.ts +6 -0
  442. package/es/components/TraceMarkdownWithCard/index.js +21 -0
  443. package/es/components/TraceMarkdownWithCard/index.module.less +29 -0
  444. package/es/components/TraceWithAgent/index.d.ts +23 -0
  445. package/es/components/TraceWithAgent/index.js +93 -0
  446. package/es/components/TraceWithAgent/index.less +74 -0
  447. package/es/constants/assistChatEvent.d.ts +33 -0
  448. package/es/constants/assistChatEvent.js +33 -0
  449. package/es/constants/common.d.ts +71 -0
  450. package/es/constants/common.js +90 -0
  451. package/es/constants/logTrace.d.ts +3 -0
  452. package/es/constants/logTrace.js +4 -0
  453. package/es/constants/reference.d.ts +109 -0
  454. package/es/constants/reference.js +111 -0
  455. package/es/constants/traceDataStatus.d.ts +34 -0
  456. package/es/constants/traceDataStatus.js +37 -0
  457. package/es/context/index.d.ts +13 -0
  458. package/es/context/index.js +785 -0
  459. package/es/context/utils/messages.d.ts +33 -0
  460. package/es/context/utils/messages.js +194 -0
  461. package/es/context/utils/send.d.ts +29 -0
  462. package/es/context/utils/send.js +187 -0
  463. package/es/context/utils/tool.d.ts +19 -0
  464. package/es/context/utils/tool.js +89 -0
  465. package/es/index.d.ts +37 -0
  466. package/es/index.js +63 -0
  467. package/es/index.scss +39 -0
  468. package/es/interface/IAgent.d.ts +12 -0
  469. package/es/interface/IAgent.js +1 -0
  470. package/es/interface/IChatBottom.d.ts +69 -0
  471. package/es/interface/IChatBottom.js +1 -0
  472. package/es/interface/IChatCard.d.ts +40 -0
  473. package/es/interface/IChatCard.js +1 -0
  474. package/es/interface/IChatContext.d.ts +59 -0
  475. package/es/interface/IChatContext.js +1 -0
  476. package/es/interface/IChatRef.d.ts +75 -0
  477. package/es/interface/IChatRef.js +1 -0
  478. package/es/interface/IGuessQuestion.d.ts +43 -0
  479. package/es/interface/IGuessQuestion.js +15 -0
  480. package/es/interface/IMessage.d.ts +17 -0
  481. package/es/interface/IMessage.js +1 -0
  482. package/es/interface/ISend.d.ts +19 -0
  483. package/es/interface/ISend.js +1 -0
  484. package/es/interface/index.d.ts +272 -0
  485. package/es/interface/index.js +7 -0
  486. package/es/utils/CSEIconTool.d.ts +8 -0
  487. package/es/utils/CSEIconTool.js +6 -0
  488. package/es/utils/apushAssistant.d.ts +73 -0
  489. package/es/utils/apushAssistant.js +518 -0
  490. package/es/utils/clientPlugin.d.ts +3 -0
  491. package/es/utils/clientPlugin.js +73 -0
  492. package/es/utils/common.d.ts +10 -0
  493. package/es/utils/common.js +40 -0
  494. package/es/utils/copyToClipboard.d.ts +2 -0
  495. package/es/utils/copyToClipboard.js +70 -0
  496. package/es/utils/formDataFormat.d.ts +3 -0
  497. package/es/utils/formDataFormat.js +55 -0
  498. package/es/utils/formatData.d.ts +14 -0
  499. package/es/utils/formatData.js +104 -0
  500. package/es/utils/log.d.ts +18 -0
  501. package/es/utils/log.js +37 -0
  502. package/es/utils/parseUrl.d.ts +9 -0
  503. package/es/utils/parseUrl.js +48 -0
  504. package/es/utils/screenshot.d.ts +45 -0
  505. package/es/utils/screenshot.js +650 -0
  506. package/es/utils/send.d.ts +10 -0
  507. package/es/utils/send.js +8 -0
  508. package/es/utils/uploadImage.d.ts +9 -0
  509. package/es/utils/uploadImage.js +226 -0
  510. package/es/utils/websocketLogger.d.ts +176 -0
  511. package/es/utils/websocketLogger.js +267 -0
  512. package/package.json +166 -0
@@ -0,0 +1,4272 @@
1
+ "use strict";(self.webpackChunk_alife_paul_ai_assistant=self.webpackChunk_alife_paul_ai_assistant||[]).push([[669],{60855:function(t,e,n){n.r(e),n.d(e,{demos:function(){return r}});var o=n(1024),a=n.n(o),r={}},72457:function(t,e,n){n.r(e),n.d(e,{demos:function(){return r}});var o=n(1024),a=n.n(o),r={"demos-markdown-latex-mermaid-demo-markdown-latex-mermaid":{component:a().memo(a().lazy(function(){return Promise.all([n.e(9725),n.e(6254),n.e(2517),n.e(2433)]).then(n.bind(n,42473))})),asset:{type:"BLOCK",id:"demos-markdown-latex-mermaid-demo-markdown-latex-mermaid",refAtomIds:[],dependencies:{"index.tsx":{type:"FILE",value:n(57782).Z},react:{type:"NPM",value:"16.14.0"},"./index.scss":{type:"FILE",value:n(77526).Z},"../../src/components/MarkDown.tsx":{type:"FILE",value:n(12485).Z},"./data.ts":{type:"FILE",value:n(19783).Z},"@alife/goc-utils":{type:"NPM",value:"1.36.0"},"@alife/magic-chat-ui":{type:"NPM",value:"3.20.1"},katex:{type:"NPM",value:"0.16.25"},mermaid:{type:"NPM",value:"11.12.1"},"rehype-highlight":{type:"NPM",value:"6.0.0"},"rehype-katex":{type:"NPM",value:"6.0.3"},"rehype-raw":{type:"NPM",value:"6.1.1"},"remark-gfm":{type:"NPM",value:"3.0.1"},"remark-math":{type:"NPM",value:"5.1.1"}},entry:"index.tsx"},context:void 0,renderOpts:void 0}}},50639:function(t,e,n){n.r(e),n.d(e,{demos:function(){return r}});var o=n(1024),a=n.n(o),r={"demos-tool-chat-type-demo-toolchattype":{component:a().memo(a().lazy(function(){return Promise.all([n.e(9725),n.e(6254),n.e(2517),n.e(2433)]).then(n.bind(n,91090))})),asset:{type:"BLOCK",id:"demos-tool-chat-type-demo-toolchattype",refAtomIds:[],dependencies:{"index.tsx":{type:"FILE",value:n(82299).Z},"@alife/paul-ai-assistant":{type:"NPM",value:"0.1.16"},"./data.ts":{type:"FILE",value:n(4453).Z},"../config.tsx":{type:"FILE",value:n(23730).Z},axios:{type:"NPM",value:"0.21.4"}},entry:"index.tsx"},context:void 0,renderOpts:void 0},"demos-tool-chat-type-demo-chat-input-demo":{component:a().memo(a().lazy(function(){return Promise.all([n.e(9725),n.e(6254),n.e(2517),n.e(2433)]).then(n.bind(n,25248))})),asset:{type:"BLOCK",id:"demos-tool-chat-type-demo-chat-input-demo",refAtomIds:[],dependencies:{"index.tsx":{type:"FILE",value:n(11633).Z},react:{type:"NPM",value:"16.14.0"},"@alife/magic-basic":{type:"NPM",value:"4.2.11"},"@alife/paul-ai-assistant":{type:"NPM",value:"0.1.16"},"../config.tsx":{type:"FILE",value:n(23730).Z},axios:{type:"NPM",value:"0.21.4"}},entry:"index.tsx"},context:void 0,renderOpts:void 0},"demos-tool-chat-type-demo-chat-list-demo":{component:a().memo(a().lazy(function(){return Promise.all([n.e(9725),n.e(6254),n.e(2517),n.e(2433)]).then(n.bind(n,54115))})),asset:{type:"BLOCK",id:"demos-tool-chat-type-demo-chat-list-demo",refAtomIds:[],dependencies:{"index.tsx":{type:"FILE",value:n(89).Z},react:{type:"NPM",value:"16.14.0"},"@alife/magic-basic":{type:"NPM",value:"4.2.11"},"@alife/paul-ai-assistant":{type:"NPM",value:"0.1.16"},"./data.ts":{type:"FILE",value:n(4453).Z},"../config.tsx":{type:"FILE",value:n(23730).Z},axios:{type:"NPM",value:"0.21.4"}},entry:"index.tsx"},context:void 0,renderOpts:void 0},"demos-tool-chat-type-demo-chat-scenario-demo":{component:a().memo(a().lazy(function(){return Promise.all([n.e(9725),n.e(6254),n.e(2517),n.e(2433)]).then(n.bind(n,94885))})),asset:{type:"BLOCK",id:"demos-tool-chat-type-demo-chat-scenario-demo",refAtomIds:[],dependencies:{"index.tsx":{type:"FILE",value:n(88321).Z},react:{type:"NPM",value:"16.14.0"},"@alife/magic-basic":{type:"NPM",value:"4.2.11"},"@alife/paul-ai-assistant":{type:"NPM",value:"0.1.16"},"../config.tsx":{type:"FILE",value:n(23730).Z},axios:{type:"NPM",value:"0.21.4"}},entry:"index.tsx"},context:void 0,renderOpts:void 0},"demos-tool-chat-type-demo-schema-input":{component:a().memo(a().lazy(function(){return Promise.all([n.e(9725),n.e(6254),n.e(2517),n.e(2433)]).then(n.bind(n,14663))})),asset:{type:"BLOCK",id:"demos-tool-chat-type-demo-schema-input",refAtomIds:[],dependencies:{"index.tsx":{type:"FILE",value:n(22516).Z},react:{type:"NPM",value:"16.14.0"},"@alife/magic-basic":{type:"NPM",value:"4.2.11"},"@alife/paul-ai-assistant":{type:"NPM",value:"0.1.16"}},entry:"index.tsx"},context:void 0,renderOpts:void 0},"demos-tool-chat-type-demo-assistant-drawer":{component:a().memo(a().lazy(function(){return Promise.all([n.e(9725),n.e(6254),n.e(2517),n.e(2433)]).then(n.bind(n,25578))})),asset:{type:"BLOCK",id:"demos-tool-chat-type-demo-assistant-drawer",refAtomIds:[],dependencies:{"index.tsx":{type:"FILE",value:n(53925).Z},react:{type:"NPM",value:"16.14.0"},"@alife/magic-basic":{type:"NPM",value:"4.2.11"},"@alife/paul-ai-assistant":{type:"NPM",value:"0.1.16"}},entry:"index.tsx"},context:void 0,renderOpts:void 0},"demos-tool-chat-type-demo-agentschemaformdemo":{component:a().memo(a().lazy(function(){return Promise.all([n.e(9725),n.e(6254),n.e(2517),n.e(2433)]).then(n.bind(n,97005))})),asset:{type:"BLOCK",id:"demos-tool-chat-type-demo-agentschemaformdemo",refAtomIds:[],dependencies:{"index.tsx":{type:"FILE",value:n(93649).Z},react:{type:"NPM",value:"16.14.0"},"../src/components/AgentSchemaForm.tsx":{type:"FILE",value:n(32772).Z},"@alife/magic-pro":{type:"NPM",value:"2.5.27"},"../../ErrorBoundary.tsx":{type:"FILE",value:n(23566).Z},"../../AssistantChat/AssistentError.tsx":{type:"FILE",value:n(55919).Z},"../../utils/formDataFormat.ts":{type:"FILE",value:n(46825).Z},"../../utils/formatData.tsx":{type:"FILE",value:n(69139).Z},"../../utils/log.ts":{type:"FILE",value:n(26678).Z},"../PaulButtonGroup.tsx":{type:"FILE",value:n(16913).Z},"./index.scss":{type:"FILE",value:n(30725).Z},"../AgentCardSubmit.tsx":{type:"FILE",value:n(90550).Z},"./_interface.ts":{type:"FILE",value:n(32669).Z},"../AgentText.tsx":{type:"FILE",value:n(33810).Z},"./ScreenshotView.tsx":{type:"FILE",value:n(48256).Z},"@alife/goc-utils":{type:"NPM",value:"1.36.0"},moment:{type:"NPM",value:"2.30.1"},"@alife/magic-basic":{type:"NPM",value:"4.2.11"},"@alife/magic-request":{type:"NPM",value:"2.5.9"},"./ErrorBoundaryFallback.tsx":{type:"FILE",value:n(3864).Z},"@formily/antd":{type:"NPM",value:"1.3.17"},"@alife/paul-ai-assistant":{type:"NPM",value:"0.1.16"},"../../constants/common.tsx":{type:"FILE",value:n(4202).Z},"./Select.tsx":{type:"FILE",value:n(66507).Z},"../../utils/CSEIconTool.tsx":{type:"FILE",value:n(39374).Z},"./ScreenshotView.scss":{type:"FILE",value:n(43828).Z},"@alife/magic-icons":{type:"NPM",value:"2.3.13"},ahooks:{type:"NPM",value:"3.9.5"},lodash:{type:"NPM",value:"4.17.21"}},entry:"index.tsx"},context:void 0,renderOpts:void 0}}},62748:function(t,e,n){n.r(e),n.d(e,{texts:function(){return o}});const o=[{value:"bizDomain",paraId:0,tocIndex:0},{value:"\u8868\u793A\u4E1A\u52A1\u57DF\u552F\u4E00\u6807\u8BC6\uFF0C",paraId:0,tocIndex:0},{value:"bizId",paraId:0,tocIndex:0},{value:"\u8868\u793A\u4E1A\u52A1 id \u552F\u4E00\u6807\u8BC6",paraId:0,tocIndex:0},{value:"\u6301\u7EED\u8865\u5145\u4E2D...",paraId:1,tocIndex:1},{value:"\u4E1A\u52A1\u57DF",paraId:2,tocIndex:1},{value:"\u63CF\u8FF0",paraId:2,tocIndex:1},{value:"CSE",paraId:2,tocIndex:1},{value:"\u5DE5\u5355",paraId:2,tocIndex:1},{value:"CSE_HOTLINE_IM",paraId:2,tocIndex:1},{value:"\u667A\u80FD\u70ED\u7EBF",paraId:2,tocIndex:1},{value:"AES",paraId:2,tocIndex:1},{value:"\u667A\u80FD\u670D\u52A1",paraId:2,tocIndex:1},{value:"YUN_TAI",paraId:2,tocIndex:1},{value:"\u4E91\u53F0",paraId:2,tocIndex:1},{value:"PUBLIC_AES_YUNQI",paraId:2,tocIndex:1},{value:"\u4E91\u4F01",paraId:2,tocIndex:1},{value:"PUBLIC_AES_SMB",paraId:2,tocIndex:1},{value:"SMB",paraId:2,tocIndex:1},{value:"AGENT_PLATFORM",paraId:2,tocIndex:1},{value:"Agent \u7BA1\u7406\u540E\u53F0",paraId:2,tocIndex:1},{value:"\u5C5E\u6027",paraId:3,tocIndex:2},{value:"\u7C7B\u578B",paraId:3,tocIndex:2},{value:"\u5FC5\u586B",paraId:3,tocIndex:2},{value:"\u9ED8\u8BA4\u503C",paraId:3,tocIndex:2},{value:"\u8BF4\u660E",paraId:3,tocIndex:2},{value:"bizId",paraId:3,tocIndex:2},{value:"string | number",paraId:3,tocIndex:2},{value:"\u662F",paraId:3,tocIndex:2},{value:"-",paraId:3,tocIndex:2},{value:"\u4E1A\u52A1 id",paraId:3,tocIndex:2},{value:"bizDomain",paraId:3,tocIndex:2},{value:"BIZ_DOMAIN | string",paraId:3,tocIndex:2},{value:"\u662F",paraId:3,tocIndex:2},{value:"-",paraId:3,tocIndex:2},{value:"\u4E1A\u52A1\u7C7B\u578B",paraId:3,tocIndex:2},{value:"className",paraId:3,tocIndex:2},{value:"string",paraId:3,tocIndex:2},{value:"\u5426",paraId:3,tocIndex:2},{value:"-",paraId:3,tocIndex:2},{value:"\u6837\u5F0F\u7C7B\u540D",paraId:3,tocIndex:2},{value:"dataSource",paraId:3,tocIndex:2},{value:"any[]",paraId:3,tocIndex:2},{value:"\u5426",paraId:3,tocIndex:2},{value:"-",paraId:3,tocIndex:2},{value:"\u5BF9\u8BDD\u6570\u636E",paraId:3,tocIndex:2},{value:"placeholder",paraId:3,tocIndex:2},{value:"string",paraId:3,tocIndex:2},{value:"\u5426",paraId:3,tocIndex:2},{value:"-",paraId:3,tocIndex:2},{value:"\u53D1\u9001\u6D88\u606F\u7684 placeholder",paraId:3,tocIndex:2},{value:"cardComponentMap",paraId:3,tocIndex:2},{value:"any",paraId:3,tocIndex:2},{value:"\u5426",paraId:3,tocIndex:2},{value:"-",paraId:3,tocIndex:2},{value:"\u4E1A\u52A1\u81EA\u5B9A\u4E49\u5361\u7247\u6E32\u67D3\u7684\u7EC4\u4EF6\u6CE8\u518C",paraId:3,tocIndex:2},{value:"operationComponentMap",paraId:3,tocIndex:2},{value:"any",paraId:3,tocIndex:2},{value:"\u5426",paraId:3,tocIndex:2},{value:"-",paraId:3,tocIndex:2},{value:"\u4E1A\u52A1\u81EA\u5B9A\u4E49\u64CD\u4F5C\u6E32\u67D3\u7684\u7EC4\u4EF6\u6CE8\u518C",paraId:3,tocIndex:2},{value:"locateAfterSingleMessageUpdate",paraId:3,tocIndex:2},{value:"boolean",paraId:3,tocIndex:2},{value:"\u5426",paraId:3,tocIndex:2},{value:"-",paraId:3,tocIndex:2},{value:"\u5355\u6761\u6D88\u606F\u66F4\u65B0\u65F6\uFF0C\u662F\u5426\u9700\u8981\u5B9A\u4F4D\u5230\u6D88\u606F\u7684\u4F4D\u7F6E",paraId:3,tocIndex:2},{value:"interruptLlmMessageScroll",paraId:3,tocIndex:2},{value:"boolean",paraId:3,tocIndex:2},{value:"\u5426",paraId:3,tocIndex:2},{value:"-",paraId:3,tocIndex:2},{value:"\u4E2D\u65AD\u6253\u5B57\u673A\u6D88\u606F\u6EDA\u52A8",paraId:3,tocIndex:2},{value:"topRenderMessage",paraId:3,tocIndex:2},{value:"any",paraId:3,tocIndex:2},{value:"\u5426",paraId:3,tocIndex:2},{value:"-",paraId:3,tocIndex:2},{value:"\u9876\u90E8\u6E32\u67D3\u6D88\u606F",paraId:3,tocIndex:2},{value:"cardRender",paraId:3,tocIndex:2},{value:"(data: any) => ReactNode",paraId:3,tocIndex:2},{value:"\u5426",paraId:3,tocIndex:2},{value:"-",paraId:3,tocIndex:2},{value:"\u81EA\u5B9A\u4E49\u6E32\u67D3\u51FD\u6570",paraId:3,tocIndex:2},{value:"operationRender",paraId:3,tocIndex:2},{value:"(data: any) => ReactNode",paraId:3,tocIndex:2},{value:"\u5426",paraId:3,tocIndex:2},{value:"-",paraId:3,tocIndex:2},{value:"\u81EA\u5B9A\u4E49\u6E32\u67D3\u51FD\u6570",paraId:3,tocIndex:2},{value:"toolRender",paraId:3,tocIndex:2},{value:"() => ReactNode",paraId:3,tocIndex:2},{value:"\u5426",paraId:3,tocIndex:2},{value:"-",paraId:3,tocIndex:2},{value:"\u5DE5\u5177\u533A\u57DF\u7684\u81EA\u5B9A\u4E49\u6E32\u67D3",paraId:3,tocIndex:2},{value:"toolConfig",paraId:3,tocIndex:2},{value:"IToolConfig | false",paraId:3,tocIndex:2},{value:"\u5426",paraId:3,tocIndex:2},{value:"-",paraId:3,tocIndex:2},{value:"\u5DE5\u5177\u914D\u7F6E",paraId:3,tocIndex:2},{value:"onCloseToolCallback",paraId:3,tocIndex:2},{value:"(tool: any) => void",paraId:3,tocIndex:2},{value:"\u5426",paraId:3,tocIndex:2},{value:"-",paraId:3,tocIndex:2},{value:"\u5173\u95ED\u5DE5\u5177\u56DE\u8C03",paraId:3,tocIndex:2},{value:"extBottomRender",paraId:3,tocIndex:2},{value:"() => ReactNode",paraId:3,tocIndex:2},{value:"\u5426",paraId:3,tocIndex:2},{value:"-",paraId:3,tocIndex:2},{value:"\u5E95\u90E8\u6309\u94AE\u914D\u7F6E",paraId:3,tocIndex:2},{value:"onSend",paraId:3,tocIndex:2},{value:"(data?: any, onSuccessCallback?: (res: { data?: any }) => void) => void",paraId:3,tocIndex:2},{value:"\u5426",paraId:3,tocIndex:2},{value:"-",paraId:3,tocIndex:2},{value:"\u53D1\u9001\u6D88\u606F ",paraId:3,tocIndex:2},{value:" ",paraId:3,tocIndex:2},{value:"\u53C2\u6570:",paraId:3,tocIndex:2},{value:" ",paraId:3,tocIndex:2},{value:" - ",paraId:3,tocIndex:2},{value:"data",paraId:3,tocIndex:2},{value:": \u6D88\u606F\u53D1\u9001\u53C2\u6570 ",paraId:3,tocIndex:2},{value:" - ",paraId:3,tocIndex:2},{value:"onSuccessCallback",paraId:3,tocIndex:2},{value:": \u53D1\u9001\u6210\u529F\u56DE\u8C03 ",paraId:3,tocIndex:2},{value:" \u5305\u62EC\uFF1A ",paraId:3,tocIndex:2},{value:" 1. \u91CD\u7F6E\u8F93\u5165 ",paraId:3,tocIndex:2},{value:" 2. \u5224\u65AD\u662F\u5426\u5927\u6A21\u578B\u751F\u6210 ",paraId:3,tocIndex:2},{value:" 3. \u6709\u8868\u5355\u65F6\uFF0C\u91CD\u7F6E\u8868\u5355, \u591A\u8F6E\u5BF9\u8BDD\u65F6\u8868\u5355\u53EA\u5728\u9996\u8F6E\u6709\u6548 ",paraId:3,tocIndex:2},{value:" 4. \u5DE5\u5177\u6267\u884C\uFF0C\u5355\u8F6E\u6267\u884C\u6210\u529F\u9700\u8981\u5173\u95ED\u5DE5\u5177\u63D0\u793A",paraId:3,tocIndex:2},{value:"onChangeInputValue",paraId:3,tocIndex:2},{value:"(val: any) => void",paraId:3,tocIndex:2},{value:"\u5426",paraId:3,tocIndex:2},{value:"-",paraId:3,tocIndex:2},{value:"\u76D1\u542C\u8F93\u5165\u6846\u503C\u53D8\u5316",paraId:3,tocIndex:2},{value:"onChangeInputDiasbled",paraId:3,tocIndex:2},{value:"(val: any) => void",paraId:3,tocIndex:2},{value:"\u5426",paraId:3,tocIndex:2},{value:"-",paraId:3,tocIndex:2},{value:"\u76D1\u542C\u8F93\u5165\u6846\u7981\u7528",paraId:3,tocIndex:2},{value:"emptyContent",paraId:3,tocIndex:2},{value:"ReactNode",paraId:3,tocIndex:2},{value:"\u5426",paraId:3,tocIndex:2},{value:"-",paraId:3,tocIndex:2},{value:"\u7A7A\u5185\u5BB9",paraId:3,tocIndex:2},{value:"inputProps",paraId:3,tocIndex:2},{value:"TextAreaProps",paraId:3,tocIndex:2},{value:"\u5426",paraId:3,tocIndex:2},{value:"-",paraId:3,tocIndex:2},{value:"\u8F93\u5165\u6846\u5C5E\u6027",paraId:3,tocIndex:2},{value:"log",paraId:3,tocIndex:2},{value:"(eventName: string, v?: any) => void",paraId:3,tocIndex:2},{value:"\u5426",paraId:3,tocIndex:2},{value:"-",paraId:3,tocIndex:2},{value:"\u65E5\u5FD7\u4E0A\u62A5\u65B9\u6CD5",paraId:3,tocIndex:2},{value:"logTrace",paraId:3,tocIndex:2},{value:"ILogTrace",paraId:3,tocIndex:2},{value:"\u5426",paraId:3,tocIndex:2},{value:"-",paraId:3,tocIndex:2},{value:"\u64CD\u4F5C\u94FE\u8DEF\u4E0A\u62A5\u65B9\u6CD5",paraId:3,tocIndex:2},{value:"errorMessage",paraId:3,tocIndex:2},{value:"ReactNode",paraId:3,tocIndex:2},{value:"\u5426",paraId:3,tocIndex:2},{value:"-",paraId:3,tocIndex:2},{value:"\u9519\u8BEF\u63D0\u793A",paraId:3,tocIndex:2},{value:"onError",paraId:3,tocIndex:2},{value:"(v: any) => void",paraId:3,tocIndex:2},{value:"\u5426",paraId:3,tocIndex:2},{value:"-",paraId:3,tocIndex:2},{value:"\u547D\u4E2D ErrorBoundary \u7684\u56DE\u8C03",paraId:3,tocIndex:2},{value:"\u5C5E\u6027",paraId:4,tocIndex:3},{value:"\u7C7B\u578B",paraId:4,tocIndex:3},{value:"\u5FC5\u586B",paraId:4,tocIndex:3},{value:"\u8BF4\u660E",paraId:4,tocIndex:3},{value:"showBaseToolTag",paraId:4,tocIndex:3},{value:"boolean",paraId:4,tocIndex:3},{value:"\u5426",paraId:4,tocIndex:3},{value:"\u5DE5\u5177\u680F\u662F\u5426\u5C55\u793A\u5185\u7F6E\u5DE5\u5177",paraId:4,tocIndex:3},{value:"openQuickWakeUp",paraId:4,tocIndex:3},{value:"boolean",paraId:4,tocIndex:3},{value:"\u5426",paraId:4,tocIndex:3},{value:"\u662F\u5426\u5F00\u542F\u5FEB\u6377\u5524\u9192",paraId:4,tocIndex:3},{value:"baseToolApi",paraId:4,tocIndex:3},{value:"string",paraId:4,tocIndex:3},{value:"\u5426",paraId:4,tocIndex:3},{value:"\u57FA\u7840\u5DE5\u5177 api",paraId:4,tocIndex:3},{value:"customToolList",paraId:4,tocIndex:3},{value:"ReactNode[]",paraId:4,tocIndex:3},{value:"\u5426",paraId:4,tocIndex:3},{value:"\u81EA\u5B9A\u4E49\u5DE5\u5177\u5217\u8868",paraId:4,tocIndex:3},{value:"agentConfig",paraId:4,tocIndex:3},{value:"IAgentConfig",paraId:4,tocIndex:3},{value:"\u5426",paraId:4,tocIndex:3},{value:"agent \u5DE5\u5177\u914D\u7F6E",paraId:4,tocIndex:3},{value:"\u5C5E\u6027",paraId:5,tocIndex:4},{value:"\u7C7B\u578B",paraId:5,tocIndex:4},{value:"\u5FC5\u586B",paraId:5,tocIndex:4},{value:"\u8BF4\u660E",paraId:5,tocIndex:4},{value:"agentData",paraId:5,tocIndex:4},{value:"any",paraId:5,tocIndex:4},{value:"\u5426",paraId:5,tocIndex:4},{value:"\u53D7\u63A7 agent \u5DE5\u5177\u53C2\u6570",paraId:5,tocIndex:4},{value:"disableCloseAgent",paraId:5,tocIndex:4},{value:"boolean",paraId:5,tocIndex:4},{value:"\u5426",paraId:5,tocIndex:4},{value:"\u662F\u5426\u7981\u6B62\u5173\u95ED agent \u5DE5\u5177",paraId:5,tocIndex:4},{value:"disableClearAgentContext",paraId:5,tocIndex:4},{value:"boolean",paraId:5,tocIndex:4},{value:"\u5426",paraId:5,tocIndex:4},{value:"\u662F\u5426\u7981\u6B62\u6E05\u7A7A agent \u4E0A\u4E0B\u6587",paraId:5,tocIndex:4},{value:"\u5C5E\u6027",paraId:6,tocIndex:5},{value:"\u7C7B\u578B",paraId:6,tocIndex:5},{value:"\u5FC5\u586B",paraId:6,tocIndex:5},{value:"\u8BF4\u660E",paraId:6,tocIndex:5},{value:"startTrace",paraId:6,tocIndex:5},{value:"(eventName: string, bizId: string | number) => void",paraId:6,tocIndex:5},{value:"\u5426",paraId:6,tocIndex:5},{value:"\u5F00\u59CB\u94FE\u8DEF\u4E0A\u62A5",paraId:6,tocIndex:5},{value:"closeTrace",paraId:6,tocIndex:5},{value:"(eventName: string, bizId: string | number) => void",paraId:6,tocIndex:5},{value:"\u5426",paraId:6,tocIndex:5},{value:"\u7ED3\u675F\u94FE\u8DEF\u4E0A\u62A5",paraId:6,tocIndex:5},{value:"updateTrace",paraId:6,tocIndex:5},{value:"(eventName: string, bizId: string | number, subEventKey: string) => void",paraId:6,tocIndex:5},{value:"\u5426",paraId:6,tocIndex:5},{value:"\u66F4\u65B0\u94FE\u8DEF\u4E0A\u62A5",paraId:6,tocIndex:5},{value:"\u5C5E\u6027",paraId:7,tocIndex:6},{value:"\u7C7B\u578B",paraId:7,tocIndex:6},{value:"\u8BF4\u660E",paraId:7,tocIndex:6},{value:"updateInputValue",paraId:7,tocIndex:6},{value:"(val: string) => void",paraId:7,tocIndex:6},{value:"\u66F4\u65B0\u8F93\u5165\u6846\u503C",paraId:7,tocIndex:6},{value:"disableInput",paraId:7,tocIndex:6},{value:"(value: boolean) => void",paraId:7,tocIndex:6},{value:"\u7981\u7528\u8F93\u5165\u6846",paraId:7,tocIndex:6},{value:"showSingleMessageCard",paraId:7,tocIndex:6},{value:"(data: any) => ReactNode",paraId:7,tocIndex:6},{value:"\u663E\u793A\u5355\u6761\u6D88\u606F\u5361\u7247",paraId:7,tocIndex:6},{value:"setInputFormSchema",paraId:7,tocIndex:6},{value:"(val: any) => void",paraId:7,tocIndex:6},{value:"\u8BBE\u7F6E\u8F93\u5165\u8868\u5355 schema",paraId:7,tocIndex:6},{value:"setPlaceholder",paraId:7,tocIndex:6},{value:"(val: string) => void",paraId:7,tocIndex:6},{value:"\u8BBE\u7F6E placeholder",paraId:7,tocIndex:6},{value:"focusInput",paraId:7,tocIndex:6},{value:"() => void",paraId:7,tocIndex:6},{value:"\u805A\u7126\u8F93\u5165\u6846",paraId:7,tocIndex:6},{value:"getScrollInfo",paraId:7,tocIndex:6},{value:"() => { isTop: boolean; isBottom: boolean; scrollOffset: number; scrollSize: number; viewportSize: number; }",paraId:7,tocIndex:6},{value:"\u83B7\u53D6\u6EDA\u52A8\u4FE1\u606F",paraId:7,tocIndex:6},{value:"initCopilotTools",paraId:7,tocIndex:6},{value:"() => void",paraId:7,tocIndex:6},{value:"\u521D\u59CB\u5316 copilot \u5DE5\u5177",paraId:7,tocIndex:6},{value:"selectCopilotTool",paraId:7,tocIndex:6},{value:"(tool: any) => void",paraId:7,tocIndex:6},{value:"\u9009\u62E9 copilot \u5DE5\u5177",paraId:7,tocIndex:6},{value:"closeCopilotTool",paraId:7,tocIndex:6},{value:"() => void",paraId:7,tocIndex:6},{value:"\u5173\u95ED copilot \u5DE5\u5177",paraId:7,tocIndex:6},{value:"updataMessageList",paraId:7,tocIndex:6},{value:"(scroll?: boolean) => void",paraId:7,tocIndex:6},{value:"\u66F4\u65B0\u6D88\u606F\u5217\u8868",paraId:7,tocIndex:6},{value:"updateMessage",paraId:7,tocIndex:6},{value:"(messageId: any) => void",paraId:7,tocIndex:6},{value:"\u66F4\u65B0\u5355\u6761\u6D88\u606F",paraId:7,tocIndex:6}]},93610:function(t,e,n){n.r(e),n.d(e,{texts:function(){return o}});const o=[{value:"\u672C\u793A\u4F8B\u5C55\u793A\u4E86 MarkDown \u7EC4\u4EF6\u5982\u4F55\u6E32\u67D3 LaTeX \u6570\u5B66\u516C\u5F0F\u548C Mermaid \u56FE\u8868\u3002",paraId:0,tocIndex:0},{value:"\u2705 \u652F\u6301\u884C\u5185\u548C\u5757\u7EA7 LaTeX \u6570\u5B66\u516C\u5F0F",paraId:1,tocIndex:1},{value:"\u2705 \u652F\u6301\u591A\u79CD Mermaid \u56FE\u8868\u7C7B\u578B",paraId:1,tocIndex:1},{value:"\u2705 \u6570\u5B66\u516C\u5F0F\u548C\u56FE\u8868\u53EF\u4EE5\u6DF7\u5408\u4F7F\u7528",paraId:1,tocIndex:1},{value:"\u2705 \u4FDD\u6301\u539F\u6709\u7684\u4EE3\u7801\u9AD8\u4EAE\u548C Markdown \u7279\u6027",paraId:1,tocIndex:1},{value:"\u5207\u6362\u4E0D\u540C\u7684 Tab \u9875\u67E5\u770B\u4E0D\u540C\u7684\u793A\u4F8B\uFF1A",paraId:2,tocIndex:2},{value:"LaTeX \u516C\u5F0F\u793A\u4F8B",paraId:3,tocIndex:2},{value:"\uFF1A\u5C55\u793A\u5404\u79CD\u6570\u5B66\u516C\u5F0F\u7684\u6E32\u67D3\u6548\u679C",paraId:3,tocIndex:2},{value:"Mermaid \u56FE\u8868\u793A\u4F8B",paraId:3,tocIndex:2},{value:"\uFF1A\u5C55\u793A\u6D41\u7A0B\u56FE\u3001\u5E8F\u5217\u56FE\u3001\u7C7B\u56FE\u7B49",paraId:3,tocIndex:2},{value:"\u7EFC\u5408\u793A\u4F8B",paraId:3,tocIndex:2},{value:"\uFF1A\u5C55\u793A\u6570\u5B66\u516C\u5F0F\u548C\u56FE\u8868\u6DF7\u5408\u4F7F\u7528\u7684\u573A\u666F",paraId:3,tocIndex:2}]},70332:function(t,e,n){n.r(e),n.d(e,{texts:function(){return o}});const o=[{value:"\u5C55\u793A ",paraId:0,tocIndex:1},{value:"AssistantChatInput",paraId:0,tocIndex:1},{value:" \u8F93\u5165\u6846\u7EC4\u4EF6\u7684\u72EC\u7ACB\u4F7F\u7528\uFF0C\u5305\u62EC\u5404\u79CD\u72B6\u6001\u63A7\u5236\u548C\u4E8B\u4EF6\u56DE\u8C03\u3002",paraId:0,tocIndex:1},{value:"\u529F\u80FD\u7279\u6027\uFF1A",paraId:1,tocIndex:1},{value:"\u8F93\u5165\u6846\u72B6\u6001\u63A7\u5236\uFF08\u7981\u7528/\u542F\u7528\uFF09",paraId:2,tocIndex:1},{value:"\u81EA\u5B9A\u4E49 placeholder",paraId:2,tocIndex:1},{value:"\u8F93\u5165\u503C\u5B9E\u65F6\u76D1\u542C",paraId:2,tocIndex:1},{value:"\u901A\u8FC7 ref \u63A7\u5236\u8F93\u5165\u6846",paraId:2,tocIndex:1},{value:"\u4E8B\u4EF6\u65E5\u5FD7\u5C55\u793A",paraId:2,tocIndex:1},{value:"\u5C55\u793A ",paraId:3,tocIndex:2},{value:"AssistantChatApp",paraId:3,tocIndex:2},{value:" \u5BF9\u8BDD\u5217\u8868\u7EC4\u4EF6\u7684\u72EC\u7ACB\u4F7F\u7528\uFF0C\u652F\u6301\u591A\u79CD\u6D88\u606F\u7C7B\u578B\u548C\u5361\u7247\u7EC4\u4EF6\u3002",paraId:3,tocIndex:2},{value:"\u529F\u80FD\u7279\u6027\uFF1A",paraId:4,tocIndex:2},{value:"\u7528\u6237\u6D88\u606F\u548C AI \u56DE\u590D\u5C55\u793A",paraId:5,tocIndex:2},{value:"\u591A\u79CD\u5361\u7247\u7EC4\u4EF6\uFF08LlmGenerateCardV5\u3001AgentCommonCard\u3001AgentCardRender\uFF09",paraId:5,tocIndex:2},{value:"\u6D88\u606F\u5361\u7247\u5BBD\u5EA6\u914D\u7F6E",paraId:5,tocIndex:2},{value:"\u6EDA\u52A8\u63A7\u5236",paraId:5,tocIndex:2},{value:"\u52A8\u6001\u6DFB\u52A0\u6D88\u606F",paraId:5,tocIndex:2},{value:"\u5B8C\u6574\u7684\u804A\u5929\u6D41\u7A0B\u6F14\u793A\uFF0C\u5305\u62EC\u7528\u6237\u8F93\u5165\u3001AI \u6D41\u5F0F\u56DE\u590D\u3001\u591A\u8F6E\u5BF9\u8BDD\u7B49\u529F\u80FD\u3002",paraId:6,tocIndex:3},{value:"\u529F\u80FD\u7279\u6027\uFF1A",paraId:7,tocIndex:3},{value:"\u5B8C\u6574\u7684\u53D1\u9001-\u63A5\u6536\u6D41\u7A0B",paraId:8,tocIndex:3},{value:"\u6A21\u62DF\u6D41\u5F0F\u63A8\u9001\u6548\u679C\uFF08\u9010\u5B57\u663E\u793A\uFF09",paraId:8,tocIndex:3},{value:"\u505C\u6B62\u751F\u6210\u529F\u80FD",paraId:8,tocIndex:3},{value:"\u591A\u8F6E\u5BF9\u8BDD\u652F\u6301",paraId:8,tocIndex:3},{value:"\u7A7A\u72B6\u6001\u5C55\u793A",paraId:8,tocIndex:3},{value:"Schema \u8F93\u5165\u7EC4\u4EF6\uFF0C\u652F\u6301\u52A8\u6001\u8868\u5355\u751F\u6210\u548C\u9A8C\u8BC1\u3002",paraId:9,tocIndex:4},{value:"\u62BD\u5C49\u7EC4\u4EF6\uFF0C\u7528\u4E8E\u4FA7\u8FB9\u680F\u5C55\u793A\u3002",paraId:10,tocIndex:5},{value:"Agent Schema \u8868\u5355\u7EC4\u4EF6\u3002",paraId:11,tocIndex:6}]},93649:function(t,e){e.Z=`import React from 'react';
2
+ import AgentSchemaForm from '../src/components/AgentSchemaForm';
3
+
4
+ const AgentSchemaFormDemo = () => {
5
+ // \u793A\u4F8B schema\uFF0C\u5305\u542B PaulButtonGroup \u7684\u4F7F\u7528
6
+ const sampleSchema = {
7
+ type: 'object',
8
+ properties: {
9
+ title: {
10
+ type: 'string',
11
+ title: '\u6807\u9898',
12
+ 'x-decorator': 'FormItem',
13
+ 'x-component': 'Input',
14
+ 'x-component-props': {
15
+ placeholder: '\u8BF7\u8F93\u5165\u6807\u9898',
16
+ },
17
+ },
18
+ description: {
19
+ type: 'string',
20
+ title: '\u63CF\u8FF0',
21
+ 'x-decorator': 'FormItem',
22
+ 'x-component': 'Input.TextArea',
23
+ 'x-component-props': {
24
+ placeholder: '\u8BF7\u8F93\u5165\u63CF\u8FF0',
25
+ rows: 4,
26
+ },
27
+ },
28
+ category: {
29
+ type: 'string',
30
+ title: '\u5206\u7C7B',
31
+ enum: ['\u6280\u672F', '\u4EA7\u54C1', '\u8BBE\u8BA1', '\u8FD0\u8425'],
32
+ 'x-decorator': 'FormItem',
33
+ 'x-component': 'Select',
34
+ 'x-component-props': {
35
+ placeholder: '\u8BF7\u9009\u62E9\u5206\u7C7B',
36
+ },
37
+ },
38
+ publishDate: {
39
+ type: 'string',
40
+ title: '\u53D1\u5E03\u65E5\u671F',
41
+ 'x-decorator': 'FormItem',
42
+ 'x-component': 'DatePicker',
43
+ 'x-component-props': {
44
+ placeholder: '\u8BF7\u9009\u62E9\u53D1\u5E03\u65E5\u671F',
45
+ format: 'YYYY-MM-DD',
46
+ style: { width: '100%' },
47
+ },
48
+ },
49
+ publishDateTime: {
50
+ type: 'string',
51
+ title: '\u53D1\u5E03\u65F6\u95F4',
52
+ 'x-decorator': 'FormItem',
53
+ 'x-component': 'DatePicker',
54
+ 'x-component-props': {
55
+ placeholder: '\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4',
56
+ showTime: true,
57
+ format: 'YYYY-MM-DD HH:mm:ss',
58
+ style: { width: '100%' },
59
+ },
60
+ },
61
+ buttonGroup: {
62
+ title: '\u64CD\u4F5C\u6309\u94AE',
63
+ 'x-component': 'PaulButtonGroup',
64
+ 'x-component-props': {
65
+ buttonGroupConfig: [
66
+ {
67
+ opType: 'save',
68
+ title: '\u4FDD\u5B58',
69
+ type: 'default',
70
+ onClickAction: {
71
+ modalProps: {
72
+ title: '\u786E\u8BA4\u4FDD\u5B58',
73
+ okText: '\u4FDD\u5B58',
74
+ cancelText: '\u53D6\u6D88',
75
+ },
76
+ formSchema: {
77
+ fields: [
78
+ {
79
+ name: 'saveRemark',
80
+ label: '\u4FDD\u5B58\u5907\u6CE8',
81
+ component: 'Input.TextArea',
82
+ componentProps: {
83
+ placeholder: '\u8BF7\u8F93\u5165\u4FDD\u5B58\u5907\u6CE8',
84
+ rows: 3,
85
+ },
86
+ rules: [
87
+ {
88
+ required: true,
89
+ message: '\u8BF7\u8F93\u5165\u4FDD\u5B58\u5907\u6CE8',
90
+ },
91
+ ],
92
+ },
93
+ ],
94
+ },
95
+ },
96
+ },
97
+ {
98
+ opType: 'publish',
99
+ title: '\u53D1\u5E03',
100
+ type: 'primary',
101
+ onClickAction: {
102
+ modalProps: {
103
+ title: '\u53D1\u5E03\u786E\u8BA4',
104
+ okText: '\u786E\u8BA4\u53D1\u5E03',
105
+ cancelText: '\u53D6\u6D88',
106
+ },
107
+ formSchema: {
108
+ fields: [
109
+ {
110
+ name: 'publishChannel',
111
+ label: '\u53D1\u5E03\u6E20\u9053',
112
+ component: 'Selector',
113
+ componentProps: {
114
+ options: [
115
+ { label: '\u5185\u90E8\u6D4B\u8BD5', value: 'internal' },
116
+ { label: '\u516C\u5F00\u53D1\u5E03', value: 'public' },
117
+ ],
118
+ },
119
+ rules: [
120
+ {
121
+ required: true,
122
+ message: '\u8BF7\u9009\u62E9\u53D1\u5E03\u6E20\u9053',
123
+ },
124
+ ],
125
+ },
126
+ {
127
+ name: 'publishTime',
128
+ label: '\u53D1\u5E03\u65F6\u95F4',
129
+ component: 'Input',
130
+ componentProps: {
131
+ placeholder: '\u7ACB\u5373\u53D1\u5E03\u6216\u6307\u5B9A\u65F6\u95F4',
132
+ },
133
+ },
134
+ ],
135
+ },
136
+ },
137
+ },
138
+ {
139
+ opType: 'createSubmit',
140
+ title: '\u76F4\u63A5\u63D0\u4EA4',
141
+ type: 'primary',
142
+ 'x-component-props': {
143
+ style: { backgroundColor: '#52c41a' },
144
+ },
145
+ },
146
+ ],
147
+ enterParamsConfig: {
148
+ path: 'submitParams',
149
+ },
150
+ },
151
+ },
152
+ },
153
+ };
154
+
155
+ // \u793A\u4F8B\u521D\u59CB\u503C
156
+ const sampleValues = {
157
+ title: 'AgentSchemaForm \u793A\u4F8B',
158
+ description: '\u8FD9\u662F\u4E00\u4E2A\u5305\u542B PaulButtonGroup \u7684\u8868\u5355\u793A\u4F8B',
159
+ category: '\u6280\u672F',
160
+ publishDate: '2024-01-15',
161
+ publishDateTime: '2024-01-15 14:30:00',
162
+ buttonGroup: [
163
+ {
164
+ title: '\u4FDD\u5B58\u8349\u7A3F',
165
+ submitParams: {
166
+ opType: 'save',
167
+ action: 'saveDraft',
168
+ },
169
+ },
170
+ {
171
+ title: '\u53D1\u5E03\u5185\u5BB9',
172
+ submitParams: {
173
+ opType: 'publish',
174
+ action: 'publish',
175
+ },
176
+ },
177
+ {
178
+ title: '\u63D0\u4EA4\u5BA1\u6838',
179
+ submitParams: {
180
+ opType: 'createSubmit',
181
+ // action: 'submit',
182
+ },
183
+ },
184
+ ],
185
+ };
186
+
187
+ // \u63D0\u4EA4\u914D\u7F6E
188
+ const submitConfig = {
189
+ visible: true,
190
+ text: '\u8868\u5355\u63D0\u4EA4',
191
+ url: '/api/submit',
192
+ style: {
193
+ marginTop: '16px',
194
+ },
195
+ };
196
+
197
+ // \u524D\u7AEF\u63D0\u4EA4\u56DE\u8C03\u914D\u7F6E
198
+ const onSubmitConfig = {
199
+ text: '\u81EA\u5B9A\u4E49\u63D0\u4EA4',
200
+ };
201
+
202
+ // \u6A21\u62DF\u4E0A\u4E0B\u6587
203
+ const mockContext = {
204
+ commonLog: (params: any) => {
205
+ console.log('\u65E5\u5FD7\u8BB0\u5F55:', params);
206
+ },
207
+ meta: {
208
+ originData: {
209
+ dialogId: 'demo-dialog-123',
210
+ },
211
+ },
212
+ };
213
+
214
+ return (
215
+ <div style={{ padding: '24px', maxWidth: '800px', margin: '0 auto' }}>
216
+ <h1>AgentSchemaForm Demo</h1>
217
+ <p>\u8FD9\u4E2A\u793A\u4F8B\u5C55\u793A\u4E86\u5982\u4F55\u4F7F\u7528 AgentSchemaForm \u7EC4\u4EF6\uFF0C\u5305\u542B PaulButtonGroup \u7684\u5404\u79CD\u4F7F\u7528\u573A\u666F\u3002</p>
218
+
219
+ <div
220
+ style={{
221
+ marginTop: '32px',
222
+ border: '1px solid #d9d9d9',
223
+ borderRadius: '6px',
224
+ padding: '16px',
225
+ }}
226
+ >
227
+ <h2 style={{ marginTop: 0 }}>\u57FA\u672C\u7528\u6CD5</h2>
228
+ <AgentSchemaForm
229
+ bizId="demo-biz-001"
230
+ bizDomain="demo"
231
+ agentId="demo-agent-001"
232
+ cardSchema={JSON.stringify(sampleSchema)}
233
+ values={sampleValues}
234
+ submitConfig={submitConfig}
235
+ onSubmitConfig={onSubmitConfig}
236
+ editable={1} // FORM_EDITABLE.EDITABLE
237
+ ctx={mockContext}
238
+ />
239
+ </div>
240
+
241
+ <div style={{ marginTop: '32px' }}>
242
+ <h2>Schema \u7ED3\u6784\u8BF4\u660E</h2>
243
+ <pre
244
+ style={{
245
+ backgroundColor: '#f5f5f5',
246
+ padding: '16px',
247
+ borderRadius: '4px',
248
+ overflow: 'auto',
249
+ }}
250
+ >
251
+ {\`// PaulButtonGroup \u914D\u7F6E\u7ED3\u6784
252
+ {
253
+ "x-component": "PaulButtonGroup",
254
+ "x-component-props": {
255
+ "buttonGroupConfig": [
256
+ {
257
+ "opType": "save", // \u64CD\u4F5C\u7C7B\u578B
258
+ "title": "\u4FDD\u5B58", // \u6309\u94AE\u6587\u672C
259
+ "type": "default", // \u6309\u94AE\u7C7B\u578B
260
+ "onClickAction": { // \u70B9\u51FB\u52A8\u4F5C\u914D\u7F6E
261
+ "modalProps": { // \u5F39\u7A97\u914D\u7F6E
262
+ "title": "\u786E\u8BA4\u4FDD\u5B58",
263
+ "okText": "\u4FDD\u5B58",
264
+ "cancelText": "\u53D6\u6D88"
265
+ },
266
+ "formSchema": { // \u5F39\u7A97\u8868\u5355\u914D\u7F6E
267
+ "fields": [...]
268
+ }
269
+ }
270
+ }
271
+ ],
272
+ "enterParamsConfig": {
273
+ "path": "submitParams" // \u53C2\u6570\u8DEF\u5F84\u914D\u7F6E
274
+ }
275
+ }
276
+ }\`}
277
+ </pre>
278
+ </div>
279
+
280
+ <div style={{ marginTop: '32px' }}>
281
+ <h2>\u652F\u6301\u7684\u64CD\u4F5C\u7C7B\u578B</h2>
282
+ <ul>
283
+ <li>
284
+ <strong>createSubmit</strong>: \u76F4\u63A5\u63D0\u4EA4\u8868\u5355\uFF0C\u4E0D\u663E\u793A\u5F39\u7A97
285
+ </li>
286
+ <li>
287
+ <strong>save</strong>: \u4FDD\u5B58\u64CD\u4F5C\uFF0C\u53EF\u914D\u7F6E\u786E\u8BA4\u5F39\u7A97
288
+ </li>
289
+ <li>
290
+ <strong>publish</strong>: \u53D1\u5E03\u64CD\u4F5C\uFF0C\u53EF\u914D\u7F6E\u786E\u8BA4\u5F39\u7A97
291
+ </li>
292
+ <li>
293
+ <strong>\u81EA\u5B9A\u4E49</strong>: \u5176\u4ED6\u81EA\u5B9A\u4E49\u64CD\u4F5C\u7C7B\u578B
294
+ </li>
295
+ </ul>
296
+ </div>
297
+ </div>
298
+ );
299
+ };
300
+
301
+ export default AgentSchemaFormDemo;
302
+ `},23730:function(t,e){e.Z=`import { registerAssistChatForm } from '@alife/paul-ai-assistant';
303
+ import axios from 'axios';
304
+
305
+ // URL \u62E6\u622A
306
+ axios.interceptors.request.use(
307
+ (config: any) => {
308
+ console.log('config', config);
309
+ if (config.url.indexOf('pre-cse-api.gts.work') === -1) {
310
+ config.url = \`https://pre-cse-api.gts.work\${config.url}\`;
311
+ }
312
+ return config;
313
+ },
314
+ function (error) {
315
+ // \u5BF9\u8BF7\u6C42\u9519\u8BEF\u505A\u4E9B\u4EC0\u4E48
316
+ return Promise.reject(error);
317
+ },
318
+ );
319
+
320
+ registerAssistChatForm?.();
321
+ `},19783:function(t,e){e.Z=`// LaTeX \u6570\u5B66\u516C\u5F0F\u793A\u4F8B\u6570\u636E
322
+ export const latexData = \`
323
+ # LaTeX \u6570\u5B66\u516C\u5F0F\u6E32\u67D3\u793A\u4F8B
324
+
325
+ ## \u4EE3\u7801\u5757\u683C\u5F0F\uFF08\\\\\\\`\\\\\\\`\\\\\\\`latex\uFF09
326
+
327
+ \u4F7F\u7528\u4EE3\u7801\u5757\u683C\u5F0F\u7684 LaTeX \u516C\u5F0F\uFF1A
328
+
329
+ \\\`\\\`\\\`latex
330
+ E = mc^2
331
+ \\\`\\\`\\\`
332
+
333
+ \u590D\u6742\u79EF\u5206\u516C\u5F0F\uFF1A
334
+
335
+ \\\`\\\`\\\`latex
336
+ \\\\int_{-\\\\infty}^{\\\\infty} e^{-x^2} \\\\, dx = \\\\sqrt{\\\\pi}
337
+ \\\`\\\`\\\`
338
+
339
+ \u77E9\u9635\u8868\u793A\uFF1A
340
+
341
+ \\\`\\\`\\\`latex
342
+ \\\\begin{bmatrix}
343
+ a & b \\\\\\\\
344
+ c & d
345
+ \\\\end{bmatrix}
346
+ \\\`\\\`\\\`
347
+
348
+ ## \u884C\u5185\u516C\u5F0F\uFF08$...$\uFF09
349
+
350
+ \u8FD9\u662F\u4E00\u4E2A\u884C\u5185\u516C\u5F0F\u793A\u4F8B\uFF1A$E = mc^2$\uFF0C\u8FD9\u662F\u7231\u56E0\u65AF\u5766\u7684\u8D28\u80FD\u65B9\u7A0B\u3002
351
+
352
+ \u5E38\u89C1\u7684\u6570\u5B66\u8868\u8FBE\u5F0F\uFF1A$a^2 + b^2 = c^2$\uFF08\u52FE\u80A1\u5B9A\u7406\uFF09
353
+
354
+ ## \u5757\u7EA7\u516C\u5F0F\uFF08$$...$$\uFF09
355
+
356
+ ### \u79EF\u5206\u516C\u5F0F
357
+
358
+ $$
359
+ \\\\int_0^\\\\infty e^{-x^2} dx = \\\\frac{\\\\sqrt{\\\\pi}}{2}
360
+ $$
361
+
362
+ ### \u4E8C\u6B21\u65B9\u7A0B\u6C42\u6839\u516C\u5F0F
363
+
364
+ $$
365
+ x = \\\\frac{-b \\\\pm \\\\sqrt{b^2 - 4ac}}{2a}
366
+ $$
367
+
368
+ ### \u77E9\u9635\u8868\u793A
369
+
370
+ $$
371
+ \\\\begin{bmatrix}
372
+ a & b \\\\\\\\
373
+ c & d
374
+ \\\\end{bmatrix}
375
+ \\\\begin{bmatrix}
376
+ x \\\\\\\\
377
+ y
378
+ \\\\end{bmatrix}
379
+ =
380
+ \\\\begin{bmatrix}
381
+ ax + by \\\\\\\\
382
+ cx + dy
383
+ \\\\end{bmatrix}
384
+ $$
385
+
386
+ ### \u6C42\u548C\u4E0E\u6781\u9650
387
+
388
+ $$
389
+ \\\\sum_{i=1}^{n} i = \\\\frac{n(n+1)}{2}
390
+ $$
391
+
392
+ $$
393
+ \\\\lim_{x \\\\to \\\\infty} \\\\frac{1}{x} = 0
394
+ $$
395
+
396
+ ### \u5206\u5F0F\u4E0E\u6839\u5F0F
397
+
398
+ $$
399
+ \\\\frac{\\\\partial f}{\\\\partial x} = \\\\lim_{h \\\\to 0} \\\\frac{f(x+h) - f(x)}{h}
400
+ $$
401
+
402
+ $$
403
+ \\\\sqrt[n]{x^n + y^n} \\\\leq \\\\sqrt[n]{2} \\\\cdot \\\\max(x, y)
404
+ $$
405
+
406
+ ### \u5E0C\u814A\u5B57\u6BCD
407
+
408
+ $$
409
+ \\\\alpha, \\\\beta, \\\\gamma, \\\\delta, \\\\epsilon, \\\\theta, \\\\lambda, \\\\mu, \\\\pi, \\\\sigma, \\\\omega
410
+ $$
411
+
412
+ $$
413
+ \\\\Gamma, \\\\Delta, \\\\Theta, \\\\Lambda, \\\\Pi, \\\\Sigma, \\\\Omega
414
+ $$
415
+ \`;
416
+
417
+ // Mermaid \u56FE\u8868\u793A\u4F8B\u6570\u636E
418
+ export const mermaidData = \`
419
+ # Mermaid \u56FE\u8868\u6E32\u67D3\u793A\u4F8B
420
+
421
+ ## \u6D41\u7A0B\u56FE (Flowchart)
422
+
423
+ \\\`\\\`\\\`mermaid
424
+ graph TD
425
+ A[\u5F00\u59CB] --> B{\u662F\u5426\u767B\u5F55}
426
+ B -->|\u662F| C[\u8FDB\u5165\u7CFB\u7EDF]
427
+ B -->|\u5426| D[\u8DF3\u8F6C\u767B\u5F55\u9875]
428
+ C --> E{\u6743\u9650\u68C0\u67E5}
429
+ E -->|\u6709\u6743\u9650| F[\u663E\u793A\u5185\u5BB9]
430
+ E -->|\u65E0\u6743\u9650| G[\u63D0\u793A\u9519\u8BEF]
431
+ D --> H[\u8F93\u5165\u8D26\u53F7\u5BC6\u7801]
432
+ H --> I{\u9A8C\u8BC1}
433
+ I -->|\u6210\u529F| C
434
+ I -->|\u5931\u8D25| H
435
+ F --> Z[\u7ED3\u675F]
436
+ G --> Z
437
+ \\\`\\\`\\\`
438
+
439
+ ## \u5E8F\u5217\u56FE (Sequence Diagram)
440
+
441
+ \\\`\\\`\\\`mermaid
442
+ sequenceDiagram
443
+ participant User as \u7528\u6237
444
+ participant Browser as \u6D4F\u89C8\u5668
445
+ participant Server as \u670D\u52A1\u5668
446
+ participant DB as \u6570\u636E\u5E93
447
+
448
+ User->>Browser: \u8F93\u5165 URL
449
+ Browser->>Server: \u53D1\u9001 HTTP \u8BF7\u6C42
450
+ Server->>DB: \u67E5\u8BE2\u6570\u636E
451
+ DB-->>Server: \u8FD4\u56DE\u6570\u636E
452
+ Server-->>Browser: \u8FD4\u56DE HTML
453
+ Browser-->>User: \u6E32\u67D3\u9875\u9762
454
+
455
+ Note over User,Browser: \u7528\u6237\u4EA4\u4E92
456
+ User->>Browser: \u70B9\u51FB\u6309\u94AE
457
+ Browser->>Server: AJAX \u8BF7\u6C42
458
+ Server->>DB: \u66F4\u65B0\u6570\u636E
459
+ DB-->>Server: \u786E\u8BA4
460
+ Server-->>Browser: JSON \u54CD\u5E94
461
+ Browser-->>User: \u66F4\u65B0\u754C\u9762
462
+ \\\`\\\`\\\`
463
+
464
+ ## \u7C7B\u56FE (Class Diagram)
465
+
466
+ \\\`\\\`\\\`mermaid
467
+ classDiagram
468
+ class Animal {
469
+ +String name
470
+ +int age
471
+ +makeSound()
472
+ +move()
473
+ }
474
+
475
+ class Dog {
476
+ +String breed
477
+ +bark()
478
+ +fetch()
479
+ }
480
+
481
+ class Cat {
482
+ +String color
483
+ +meow()
484
+ +scratch()
485
+ }
486
+
487
+ class Bird {
488
+ +int wingspan
489
+ +fly()
490
+ +chirp()
491
+ }
492
+
493
+ Animal <|-- Dog
494
+ Animal <|-- Cat
495
+ Animal <|-- Bird
496
+ \\\`\\\`\\\`
497
+
498
+ ## \u72B6\u6001\u56FE (State Diagram)
499
+
500
+ \\\`\\\`\\\`mermaid
501
+ stateDiagram-v2
502
+ [*] --> \u5F85\u5904\u7406
503
+ \u5F85\u5904\u7406 --> \u5904\u7406\u4E2D: \u5F00\u59CB\u5904\u7406
504
+ \u5904\u7406\u4E2D --> \u5DF2\u5B8C\u6210: \u5904\u7406\u6210\u529F
505
+ \u5904\u7406\u4E2D --> \u5931\u8D25: \u5904\u7406\u5931\u8D25
506
+ \u5931\u8D25 --> \u5F85\u5904\u7406: \u91CD\u8BD5
507
+ \u5DF2\u5B8C\u6210 --> [*]
508
+ \u5931\u8D25 --> [*]: \u653E\u5F03
509
+ \\\`\\\`\\\`
510
+
511
+ ## \u7518\u7279\u56FE (Gantt Chart)
512
+
513
+ \\\`\\\`\\\`mermaid
514
+ gantt
515
+ title \u9879\u76EE\u5F00\u53D1\u8BA1\u5212
516
+ dateFormat YYYY-MM-DD
517
+
518
+ section \u8BBE\u8BA1\u9636\u6BB5
519
+ \u9700\u6C42\u5206\u6790 :done, des1, 2024-01-01, 2024-01-07
520
+ UI\u8BBE\u8BA1 :done, des2, 2024-01-08, 2024-01-14
521
+ \u539F\u578B\u8BBE\u8BA1 :done, des3, 2024-01-08, 2024-01-14
522
+
523
+ section \u5F00\u53D1\u9636\u6BB5
524
+ \u524D\u7AEF\u5F00\u53D1 :active, dev1, 2024-01-15, 2024-02-15
525
+ \u540E\u7AEF\u5F00\u53D1 :active, dev2, 2024-01-15, 2024-02-20
526
+ \u6570\u636E\u5E93\u8BBE\u8BA1 :crit, dev3, 2024-01-15, 2024-01-25
527
+
528
+ section \u6D4B\u8BD5\u9636\u6BB5
529
+ \u5355\u5143\u6D4B\u8BD5 :test1, 2024-02-16, 2024-02-23
530
+ \u96C6\u6210\u6D4B\u8BD5 :test2, 2024-02-21, 2024-02-28
531
+ \u6027\u80FD\u6D4B\u8BD5 :test3, 2024-02-24, 2024-03-01
532
+
533
+ section \u4E0A\u7EBF\u9636\u6BB5
534
+ \u9884\u53D1\u5E03\u73AF\u5883 :deploy1, 2024-03-02, 2024-03-05
535
+ \u751F\u4EA7\u73AF\u5883 :crit, deploy2, 2024-03-06, 2024-03-08
536
+ \\\`\\\`\\\`
537
+
538
+ ## \u997C\u56FE (Pie Chart)
539
+
540
+ \\\`\\\`\\\`mermaid
541
+ pie title \u7F16\u7A0B\u8BED\u8A00\u4F7F\u7528\u5360\u6BD4
542
+ "JavaScript" : 35
543
+ "TypeScript" : 25
544
+ "Python" : 20
545
+ "Java" : 12
546
+ "Go" : 8
547
+ \\\`\\\`\\\`
548
+ \`;
549
+
550
+ // \u7EFC\u5408\u793A\u4F8B\u6570\u636E
551
+ export const comprehensiveData = \`
552
+ # MarkDown \u7EC4\u4EF6\u7EFC\u5408\u793A\u4F8B
553
+
554
+ \u672C\u793A\u4F8B\u5C55\u793A\u4E86 MarkDown \u7EC4\u4EF6\u540C\u65F6\u652F\u6301 LaTeX \u6570\u5B66\u516C\u5F0F\u548C Mermaid \u56FE\u8868\u7684\u80FD\u529B\u3002
555
+
556
+ ## 1. \u6570\u5B66\u5EFA\u6A21\u573A\u666F
557
+
558
+ \u5728\u673A\u5668\u5B66\u4E60\u4E2D\uFF0C\u6211\u4EEC\u7ECF\u5E38\u9700\u8981\u4F7F\u7528\u6570\u5B66\u516C\u5F0F\u548C\u6D41\u7A0B\u56FE\u6765\u63CF\u8FF0\u7B97\u6CD5\u3002
559
+
560
+ ### \u7EBF\u6027\u56DE\u5F52\u6A21\u578B
561
+
562
+ \u7EBF\u6027\u56DE\u5F52\u7684\u76EE\u6807\u662F\u627E\u5230\u6700\u4F73\u62DF\u5408\u76F4\u7EBF\uFF0C\u4F7F\u5F97\u9884\u6D4B\u503C\u4E0E\u5B9E\u9645\u503C\u4E4B\u95F4\u7684\u8BEF\u5DEE\u6700\u5C0F\u3002
563
+
564
+ **\u635F\u5931\u51FD\u6570**\uFF08\u5747\u65B9\u8BEF\u5DEE\uFF09\uFF1A
565
+
566
+ $$
567
+ L(w, b) = \\\\frac{1}{2m} \\\\sum_{i=1}^{m} (h_w(x^{(i)}) - y^{(i)})^2
568
+ $$
569
+
570
+ \u5176\u4E2D\uFF0C$h_w(x) = wx + b$ \u662F\u5047\u8BBE\u51FD\u6570\uFF0C$m$ \u662F\u6837\u672C\u6570\u91CF\u3002
571
+
572
+ **\u68AF\u5EA6\u4E0B\u964D\u66F4\u65B0\u89C4\u5219**\uFF1A
573
+
574
+ $$
575
+ \\\\begin{aligned}
576
+ w &:= w - \\\\alpha \\\\frac{\\\\partial L}{\\\\partial w} \\\\\\\\
577
+ b &:= b - \\\\alpha \\\\frac{\\\\partial L}{\\\\partial b}
578
+ \\\\end{aligned}
579
+ $$
580
+
581
+ \u5176\u4E2D $\\\\alpha$ \u662F\u5B66\u4E60\u7387\u3002
582
+
583
+ ### \u8BAD\u7EC3\u6D41\u7A0B
584
+
585
+ \\\`\\\`\\\`mermaid
586
+ graph TD
587
+ A[\u521D\u59CB\u5316\u53C2\u6570 w, b] --> B[\u8F93\u5165\u8BAD\u7EC3\u6570\u636E]
588
+ B --> C[\u524D\u5411\u4F20\u64AD\u8BA1\u7B97\u9884\u6D4B\u503C]
589
+ C --> D[\u8BA1\u7B97\u635F\u5931\u51FD\u6570 L]
590
+ D --> E{\u635F\u5931\u662F\u5426\u6536\u655B?}
591
+ E -->|\u5426| F[\u53CD\u5411\u4F20\u64AD\u8BA1\u7B97\u68AF\u5EA6]
592
+ F --> G[\u66F4\u65B0\u53C2\u6570 w, b]
593
+ G --> C
594
+ E -->|\u662F| H[\u4FDD\u5B58\u6A21\u578B]
595
+ H --> I[\u7ED3\u675F\u8BAD\u7EC3]
596
+ \\\`\\\`\\\`
597
+
598
+ ## 2. \u8F6F\u4EF6\u67B6\u6784\u573A\u666F
599
+
600
+ ### \u5FAE\u670D\u52A1\u67B6\u6784\u7EC4\u4EF6\u5173\u7CFB
601
+
602
+ \\\`\\\`\\\`mermaid
603
+ graph LR
604
+ A[API Gateway] --> B[\u7528\u6237\u670D\u52A1]
605
+ A --> C[\u8BA2\u5355\u670D\u52A1]
606
+ A --> D[\u652F\u4ED8\u670D\u52A1]
607
+
608
+ B --> E[MySQL]
609
+ C --> F[MongoDB]
610
+ D --> G[Redis]
611
+
612
+ B --> H[\u6D88\u606F\u961F\u5217]
613
+ C --> H
614
+ D --> H
615
+
616
+ H --> I[\u65E5\u5FD7\u670D\u52A1]
617
+ H --> J[\u76D1\u63A7\u670D\u52A1]
618
+ \\\`\\\`\\\`
619
+
620
+ ### \u6027\u80FD\u5206\u6790
621
+
622
+ \u5047\u8BBE\u6BCF\u4E2A\u670D\u52A1\u7684\u54CD\u5E94\u65F6\u95F4\u670D\u4ECE\u6B63\u6001\u5206\u5E03 $N(\\\\mu, \\\\sigma^2)$\uFF0C\u7CFB\u7EDF\u603B\u54CD\u5E94\u65F6\u95F4\u4E3A\uFF1A
623
+
624
+ $$
625
+ T_{total} = \\\\sum_{i=1}^{n} T_i + T_{network}
626
+ $$
627
+
628
+ \u5176\u4E2D $T_{network}$ \u662F\u7F51\u7EDC\u5EF6\u8FDF\u3002
629
+
630
+ \u5728\u5E76\u53D1\u60C5\u51B5\u4E0B\uFF0C\u6839\u636E\u5229\u7279\u5C14\u6CD5\u5219\uFF08Little's Law\uFF09\uFF1A
631
+
632
+ $$
633
+ L = \\\\lambda W
634
+ $$
635
+
636
+ - $L$: \u7CFB\u7EDF\u4E2D\u7684\u5E73\u5747\u8BF7\u6C42\u6570
637
+ - $\\\\lambda$: \u8BF7\u6C42\u5230\u8FBE\u7387
638
+ - $W$: \u5E73\u5747\u54CD\u5E94\u65F6\u95F4
639
+
640
+ ## 3. \u7B97\u6CD5\u590D\u6742\u5EA6\u5206\u6790
641
+
642
+ ### \u5FEB\u901F\u6392\u5E8F
643
+
644
+ **\u65F6\u95F4\u590D\u6742\u5EA6**\uFF1A
645
+
646
+ - \u6700\u4F18\u60C5\u51B5\uFF1A$O(n \\\\log n)$
647
+ - \u5E73\u5747\u60C5\u51B5\uFF1A$O(n \\\\log n)$
648
+ - \u6700\u574F\u60C5\u51B5\uFF1A$O(n^2)$
649
+
650
+ **\u9012\u5F52\u5173\u7CFB\u5F0F**\uFF1A
651
+
652
+ $$
653
+ T(n) = 2T(\\\\frac{n}{2}) + O(n)
654
+ $$
655
+
656
+ \u6839\u636E\u4E3B\u5B9A\u7406\uFF0C$T(n) = O(n \\\\log n)$
657
+
658
+ ### \u6267\u884C\u6D41\u7A0B
659
+
660
+ \\\`\\\`\\\`mermaid
661
+ sequenceDiagram
662
+ participant Main as \u4E3B\u7A0B\u5E8F
663
+ participant QS as \u5FEB\u901F\u6392\u5E8F
664
+ participant Partition as \u5206\u533A\u51FD\u6570
665
+
666
+ Main->>QS: quickSort(arr, 0, n-1)
667
+ QS->>Partition: partition(arr, low, high)
668
+ Partition-->>QS: pivotIndex
669
+
670
+ Note over QS: \u9012\u5F52\u6392\u5E8F\u5DE6\u534A\u90E8\u5206
671
+ QS->>QS: quickSort(arr, low, pivotIndex-1)
672
+
673
+ Note over QS: \u9012\u5F52\u6392\u5E8F\u53F3\u534A\u90E8\u5206
674
+ QS->>QS: quickSort(arr, pivotIndex+1, high)
675
+
676
+ QS-->>Main: \u6392\u5E8F\u5B8C\u6210
677
+ \\\`\\\`\\\`
678
+
679
+ ## 4. \u6982\u7387\u7EDF\u8BA1\u573A\u666F
680
+
681
+ ### \u8D1D\u53F6\u65AF\u5B9A\u7406
682
+
683
+ $$
684
+ P(A|B) = \\\\frac{P(B|A) \\\\cdot P(A)}{P(B)}
685
+ $$
686
+
687
+ **\u51B3\u7B56\u6811\u5206\u7C7B\u6D41\u7A0B**\uFF1A
688
+
689
+ \\\`\\\`\\\`mermaid
690
+ graph TD
691
+ A[\u5F00\u59CB] --> B{\u7279\u5F81 1 > \u9608\u503C?}
692
+ B -->|\u662F| C{\u7279\u5F81 2 > \u9608\u503C?}
693
+ B -->|\u5426| D{\u7279\u5F81 3 > \u9608\u503C?}
694
+ C -->|\u662F| E[\u7C7B\u522B A: P=0.85]
695
+ C -->|\u5426| F[\u7C7B\u522B B: P=0.75]
696
+ D -->|\u662F| G[\u7C7B\u522B C: P=0.90]
697
+ D -->|\u5426| H[\u7C7B\u522B D: P=0.80]
698
+ \\\`\\\`\\\`
699
+
700
+ ### \u6B63\u6001\u5206\u5E03
701
+
702
+ \u6982\u7387\u5BC6\u5EA6\u51FD\u6570\uFF1A
703
+
704
+ $$
705
+ f(x) = \\\\frac{1}{\\\\sigma\\\\sqrt{2\\\\pi}} e^{-\\\\frac{1}{2}(\\\\frac{x-\\\\mu}{\\\\sigma})^2}
706
+ $$
707
+
708
+ ---
709
+
710
+ \u901A\u8FC7\u4EE5\u4E0A\u793A\u4F8B\uFF0C\u4F60\u53EF\u4EE5\u770B\u5230 MarkDown \u7EC4\u4EF6\u80FD\u591F\u65E0\u7F1D\u5730\u5C06\u6570\u5B66\u516C\u5F0F\u548C\u56FE\u8868\u7ED3\u5408\u5728\u4E00\u8D77\uFF0C\u975E\u5E38\u9002\u5408\u7528\u4E8E\u6280\u672F\u6587\u6863\u3001\u7B97\u6CD5\u8BF4\u660E\u3001\u7CFB\u7EDF\u8BBE\u8BA1\u7B49\u573A\u666F\u3002
711
+ \`;
712
+ `},57782:function(t,e){e.Z=`import React from 'react';
713
+ import MarkDown from '../../src/components/MarkDown';
714
+ import { latexData, mermaidData, comprehensiveData } from './data';
715
+ import './index.scss';
716
+
717
+ const MarkdownLatexMermaidDemo = () => {
718
+ const [activeTab, setActiveTab] = React.useState<'latex' | 'mermaid' | 'comprehensive'>('latex');
719
+
720
+ const dataMap = {
721
+ latex: latexData,
722
+ mermaid: mermaidData,
723
+ comprehensive: comprehensiveData,
724
+ };
725
+
726
+ const currentData = dataMap[activeTab];
727
+
728
+ console.log('[Demo] \u5F53\u524D Tab:', activeTab);
729
+ console.log('[Demo] \u6570\u636E\u957F\u5EA6:', currentData.length);
730
+ console.log('[Demo] \u6570\u636E\u524D100\u4E2A\u5B57\u7B26:', currentData.substring(0, 100));
731
+
732
+ return (
733
+ <div className="markdown-demo-container">
734
+ <div className="demo-tabs">
735
+ <button
736
+ className={activeTab === 'latex' ? 'active' : ''}
737
+ onClick={() => {
738
+ console.log('[Demo] \u5207\u6362\u5230 LaTeX');
739
+ setActiveTab('latex');
740
+ }}
741
+ >
742
+ LaTeX \u516C\u5F0F\u793A\u4F8B
743
+ </button>
744
+ <button
745
+ className={activeTab === 'mermaid' ? 'active' : ''}
746
+ onClick={() => {
747
+ console.log('[Demo] \u5207\u6362\u5230 Mermaid');
748
+ setActiveTab('mermaid');
749
+ }}
750
+ >
751
+ Mermaid \u56FE\u8868\u793A\u4F8B
752
+ </button>
753
+ <button
754
+ className={activeTab === 'comprehensive' ? 'active' : ''}
755
+ onClick={() => {
756
+ console.log('[Demo] \u5207\u6362\u5230\u7EFC\u5408\u793A\u4F8B');
757
+ setActiveTab('comprehensive');
758
+ }}
759
+ >
760
+ \u7EFC\u5408\u793A\u4F8B
761
+ </button>
762
+ </div>
763
+
764
+ <div className="demo-content">
765
+ <MarkDown data={currentData} />
766
+ </div>
767
+ </div>
768
+ );
769
+ };
770
+
771
+ export default MarkdownLatexMermaidDemo;
772
+ `},53925:function(t,e){e.Z=`import { useState } from 'react';
773
+ import { Button } from '@alife/magic-basic';
774
+ import { AssistantDrawer } from '@alife/paul-ai-assistant';
775
+
776
+ function AssistantDrawerDemo(props: any) {
777
+ const [visible, setVisible] = useState(false);
778
+ return (
779
+ <div>
780
+ <Button onClick={() => setVisible(true)}>\u6253\u5F00Drawer</Button>
781
+ <AssistantDrawer
782
+ width={520}
783
+ backgroundColor="white"
784
+ title="\u6D4B\u8BD5AssistantDrawer"
785
+ visible={visible}
786
+ onClose={() => setVisible(false)}
787
+ footer={<Button onClick={() => setVisible(false)}>\u5173\u95ED</Button>}
788
+ >
789
+ <div>AssistantDrawerDemo</div>
790
+ </AssistantDrawer>
791
+ </div>
792
+ );
793
+ }
794
+
795
+ export default AssistantDrawerDemo;
796
+ `},11633:function(t,e){e.Z=`import { useRef, useState, useCallback } from 'react';
797
+ import { Button, Card, Switch, Input, Divider } from '@alife/magic-basic';
798
+ import PaulAiAssistant from '@alife/paul-ai-assistant';
799
+ import '../config';
800
+
801
+ /**
802
+ * \u8F93\u5165\u6846\u72EC\u7ACB Demo
803
+ * \u5C55\u793A AssistantChatInput \u7EC4\u4EF6\u7684\u72EC\u7ACB\u4F7F\u7528\u548C\u5404\u79CD\u529F\u80FD
804
+ */
805
+ const ChatInputDemo = () => {
806
+ // \u6DFB\u52A0\u6837\u5F0F\u8986\u76D6\uFF0C\u89E3\u51B3 position: absolute \u5BFC\u81F4\u7684\u5C55\u793A\u95EE\u9898
807
+ const demoStyle = \`
808
+ .chat-input-demo-container .assistant-chat-paul-ai-input {
809
+ position: static !important;
810
+ }
811
+ \`;
812
+
813
+ const assistantRef = useRef<any>(null);
814
+
815
+ // \u8F93\u5165\u6846\u72B6\u6001
816
+ const [inputValue, setInputValue] = useState('');
817
+ const [inputDisabled, setInputDisabled] = useState(false);
818
+ const [customPlaceholder, setCustomPlaceholder] = useState('\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898...');
819
+
820
+ // \u65E5\u5FD7\u4FE1\u606F
821
+ const [logs, setLogs] = useState<string[]>([]);
822
+
823
+ // \u6DFB\u52A0\u65E5\u5FD7
824
+ const addLog = useCallback((message: string) => {
825
+ setLogs(prev => [...prev.slice(-9), \`[\${new Date().toLocaleTimeString()}] \${message}\`]);
826
+ }, []);
827
+
828
+ // \u63A7\u5236\u6309\u94AE\u64CD\u4F5C
829
+ const handleFocusInput = () => {
830
+ assistantRef.current?.focusInput();
831
+ addLog('\u805A\u7126\u8F93\u5165\u6846');
832
+ };
833
+
834
+ const handleDisableInput = () => {
835
+ assistantRef.current?.disableInput(true);
836
+ setInputDisabled(true);
837
+ addLog('\u7981\u7528\u8F93\u5165\u6846');
838
+ };
839
+
840
+ const handleEnableInput = () => {
841
+ assistantRef.current?.disableInput(false);
842
+ setInputDisabled(false);
843
+ addLog('\u542F\u7528\u8F93\u5165\u6846');
844
+ };
845
+
846
+ const handleUpdatePlaceholder = () => {
847
+ const newPlaceholder = '\u8FD9\u662F\u81EA\u5B9A\u4E49\u7684 placeholder';
848
+ assistantRef.current?.setPlaceholder(newPlaceholder);
849
+ setCustomPlaceholder(newPlaceholder);
850
+ addLog(\`\u66F4\u65B0 placeholder: \${newPlaceholder}\`);
851
+ };
852
+
853
+ const handleUpdateInputValue = () => {
854
+ const newValue = '\u8FD9\u662F\u901A\u8FC7\u4EE3\u7801\u8BBE\u7F6E\u7684\u8F93\u5165\u503C';
855
+ assistantRef.current?.updateInputValue(newValue);
856
+ setInputValue(newValue);
857
+ addLog(\`\u66F4\u65B0\u8F93\u5165\u503C: \${newValue}\`);
858
+ };
859
+
860
+ // \u8F93\u5165\u503C\u53D8\u5316\u56DE\u8C03\uFF08\u4F7F\u7528 useCallback \u907F\u514D\u65E0\u9650\u5FAA\u73AF\uFF09
861
+ const handleInputValueChange = useCallback((value: string) => {
862
+ setInputValue(value);
863
+ }, []);
864
+
865
+ // \u8F93\u5165\u6846\u7981\u7528\u72B6\u6001\u53D8\u5316\u56DE\u8C03\uFF08\u4F7F\u7528 useCallback \u907F\u514D\u65E0\u9650\u5FAA\u73AF\uFF09
866
+ const handleInputDisabledChange = useCallback((disabled: boolean) => {
867
+ setInputDisabled(disabled);
868
+ addLog(\`\u8F93\u5165\u6846\u72B6\u6001\u53D8\u5316: \${disabled ? '\u7981\u7528' : '\u542F\u7528'}\`);
869
+ }, [addLog]);
870
+
871
+ return (
872
+ <>
873
+ {/* \u6CE8\u5165\u6837\u5F0F */}
874
+ <style>{demoStyle}</style>
875
+
876
+ <div style={{ display: 'flex', gap: '16px' }}>
877
+ {/* \u5DE6\u4FA7\uFF1A\u8F93\u5165\u6846\u5C55\u793A */}
878
+ <Card
879
+ title="\u8F93\u5165\u6846\u5C55\u793A"
880
+ style={{ flex: 1 }}
881
+ contentHeight="400px"
882
+ >
883
+ <div className="chat-input-demo-container" style={{ height: '100%', display: 'flex', flexDirection: 'column' }}>
884
+ <div style={{ flex: 1, position: 'relative' }}>
885
+ {/* \u8FD9\u91CC\u53EA\u663E\u793A\u8F93\u5165\u6846\uFF0C\u4E0D\u663E\u793A\u6D88\u606F\u5217\u8868 */}
886
+ <PaulAiAssistant
887
+ ref={assistantRef}
888
+ bizDomain="CSE"
889
+ bizId="chat_input_demo"
890
+ dataSource={[]} // \u7A7A\u6D88\u606F\u5217\u8868
891
+ placeholder={customPlaceholder}
892
+ emptyContent={
893
+ <div style={{
894
+ textAlign: 'center',
895
+ padding: '40px',
896
+ color: '#999'
897
+ }}>
898
+ <p>\u8F93\u5165\u6846\u72EC\u7ACB\u4F7F\u7528\u793A\u4F8B</p>
899
+ <p style={{ fontSize: '12px' }}>\u4F7F\u7528\u53F3\u4FA7\u63A7\u5236\u9762\u677F\u4F53\u9A8C\u5404\u79CD\u529F\u80FD</p>
900
+ </div>
901
+ }
902
+ log={(eventName, logData) => {
903
+ addLog(\`\u4E8B\u4EF6: \${eventName}\`);
904
+ console.log('log', eventName, logData);
905
+ }}
906
+ onChangeInputValue={handleInputValueChange}
907
+ onChangeInputDiasbled={handleInputDisabledChange}
908
+ />
909
+ </div>
910
+ </div>
911
+ </Card>
912
+
913
+ {/* \u53F3\u4FA7\uFF1A\u63A7\u5236\u9762\u677F */}
914
+ <Card
915
+ title="\u63A7\u5236\u9762\u677F"
916
+ style={{ width: '360px' }}
917
+ contentHeight="400px"
918
+ >
919
+ <div style={{ display: 'flex', flexDirection: 'column', gap: '12px' }}>
920
+ {/* \u72B6\u6001\u4FE1\u606F */}
921
+ <div>
922
+ <div style={{ fontSize: '12px', color: '#666', marginBottom: '8px' }}>
923
+ \u5F53\u524D\u72B6\u6001
924
+ </div>
925
+ <div style={{ fontSize: '12px', lineHeight: '20px' }}>
926
+ <div>\u8F93\u5165\u503C: {inputValue || '(\u7A7A)'}</div>
927
+ <div>
928
+ \u7981\u7528\u72B6\u6001:
929
+ <span style={{ color: inputDisabled ? '#ff4d4f' : '#52c41a' }}>
930
+ {inputDisabled ? ' \u5DF2\u7981\u7528' : ' \u5DF2\u542F\u7528'}
931
+ </span>
932
+ </div>
933
+ <div>Placeholder: {customPlaceholder}</div>
934
+ </div>
935
+ </div>
936
+
937
+ <Divider />
938
+
939
+ {/* \u63A7\u5236\u6309\u94AE */}
940
+ <div>
941
+ <div style={{ fontSize: '12px', color: '#666', marginBottom: '8px' }}>
942
+ \u8F93\u5165\u6846\u63A7\u5236
943
+ </div>
944
+ <div style={{ display: 'flex', flexDirection: 'column', gap: '8px' }}>
945
+ <Button onClick={handleFocusInput} size="small">
946
+ \u805A\u7126\u8F93\u5165\u6846
947
+ </Button>
948
+ <Button
949
+ onClick={handleDisableInput}
950
+ size="small"
951
+ disabled={inputDisabled}
952
+ >
953
+ \u7981\u7528\u8F93\u5165\u6846
954
+ </Button>
955
+ <Button
956
+ onClick={handleEnableInput}
957
+ size="small"
958
+ disabled={!inputDisabled}
959
+ >
960
+ \u542F\u7528\u8F93\u5165\u6846
961
+ </Button>
962
+ <Button onClick={handleUpdatePlaceholder} size="small">
963
+ \u81EA\u5B9A\u4E49 Placeholder
964
+ </Button>
965
+ <Button onClick={handleUpdateInputValue} size="small">
966
+ \u8BBE\u7F6E\u8F93\u5165\u503C
967
+ </Button>
968
+ </div>
969
+ </div>
970
+
971
+ <Divider />
972
+
973
+ {/* \u4E8B\u4EF6\u65E5\u5FD7 */}
974
+ <div style={{ flex: 1, overflow: 'hidden', display: 'flex', flexDirection: 'column' }}>
975
+ <div style={{ fontSize: '12px', color: '#666', marginBottom: '8px' }}>
976
+ \u4E8B\u4EF6\u65E5\u5FD7
977
+ </div>
978
+ <div style={{
979
+ flex: 1,
980
+ fontSize: '11px',
981
+ fontFamily: 'monospace',
982
+ backgroundColor: '#f5f5f5',
983
+ padding: '8px',
984
+ borderRadius: '4px',
985
+ overflow: 'auto',
986
+ maxHeight: '120px'
987
+ }}>
988
+ {logs.length === 0 ? (
989
+ <div style={{ color: '#999' }}>\u6682\u65E0\u65E5\u5FD7</div>
990
+ ) : (
991
+ logs.map((log, index) => (
992
+ <div key={index} style={{ marginBottom: '4px' }}>
993
+ {log}
994
+ </div>
995
+ ))
996
+ )}
997
+ </div>
998
+ </div>
999
+ </div>
1000
+ </Card>
1001
+ </div>
1002
+ </>
1003
+ );
1004
+ };
1005
+
1006
+ export default ChatInputDemo;
1007
+ `},89:function(t,e){e.Z=`import { useRef, useState, useCallback } from 'react';
1008
+ import { Button, Card, Radio, Divider } from '@alife/magic-basic';
1009
+ import PaulAiAssistant from '@alife/paul-ai-assistant';
1010
+ import { mockChatList, mock } from './data';
1011
+ import '../config';
1012
+
1013
+ /**
1014
+ * \u5BF9\u8BDD\u5217\u8868\u72EC\u7ACB Demo
1015
+ * \u5C55\u793A AssistantChatApp \u7EC4\u4EF6\u7684\u72EC\u7ACB\u4F7F\u7528\u548C\u5404\u79CD\u6D88\u606F\u7C7B\u578B
1016
+ */
1017
+ const ChatListDemo = () => {
1018
+ const assistantRef = useRef<any>(null);
1019
+
1020
+ // \u6D88\u606F\u5217\u8868\u6570\u636E
1021
+ const [dataSource, setDataSource] = useState(mockChatList);
1022
+
1023
+ // \u6D88\u606F\u5361\u7247\u5BBD\u5EA6
1024
+ const [messageCardWidth, setMessageCardWidth] = useState<'large' | 'medium' | 'small'>('medium');
1025
+
1026
+ // \u65E5\u5FD7\u4FE1\u606F
1027
+ const [logs, setLogs] = useState<string[]>([]);
1028
+
1029
+ // \u6DFB\u52A0\u65E5\u5FD7
1030
+ const addLog = useCallback((message: string) => {
1031
+ setLogs(prev => [...prev.slice(-9), \`[\${new Date().toLocaleTimeString()}] \${message}\`]);
1032
+ }, []);
1033
+
1034
+ // \u5207\u6362\u6570\u636E\u6E90
1035
+ const handleSwitchDataSource = (type: 'simple' | 'complex') => {
1036
+ if (type === 'simple') {
1037
+ setDataSource(mockChatList);
1038
+ addLog('\u5207\u6362\u5230\u7B80\u5355\u6D88\u606F\u5217\u8868');
1039
+ } else {
1040
+ setDataSource(mock);
1041
+ addLog('\u5207\u6362\u5230\u590D\u6742\u6D88\u606F\u5217\u8868\uFF08\u5305\u542B\u8868\u5355\u5361\u7247\uFF09');
1042
+ }
1043
+ };
1044
+
1045
+ // \u6EDA\u52A8\u63A7\u5236
1046
+ const handleScrollToTop = () => {
1047
+ const scrollInfo = assistantRef.current?.getScrollInfo();
1048
+ if (scrollInfo) {
1049
+ addLog(\`\u5F53\u524D\u6EDA\u52A8\u4F4D\u7F6E: \${scrollInfo.scrollOffset}px\`);
1050
+ }
1051
+ };
1052
+
1053
+ const handleScrollToBottom = () => {
1054
+ assistantRef.current?.chatAppRef?.current?.scrollToEnd({ smooth: true, scrollDelay: 0 });
1055
+ addLog('\u6EDA\u52A8\u5230\u5E95\u90E8');
1056
+ };
1057
+
1058
+ // \u6DFB\u52A0\u65B0\u6D88\u606F
1059
+ const handleAddMessage = () => {
1060
+ const newMessage = {
1061
+ id: Date.now(),
1062
+ type: 2,
1063
+ userInfo: {
1064
+ userId: 1069,
1065
+ username: "\u6D4B\u8BD5\u7528\u6237",
1066
+ avatar: null,
1067
+ role: 2
1068
+ },
1069
+ timestamp: Date.now(),
1070
+ subjectId: "demo_chat_001",
1071
+ dataInfo: {
1072
+ content: \`\u8FD9\u662F\u65B0\u6DFB\u52A0\u7684\u6D4B\u8BD5\u6D88\u606F \${new Date().toLocaleTimeString()}\`
1073
+ },
1074
+ dialogId: Date.now()
1075
+ };
1076
+ setDataSource(prev => [...prev, newMessage]);
1077
+ addLog('\u6DFB\u52A0\u65B0\u6D88\u606F');
1078
+
1079
+ // \u6EDA\u52A8\u5230\u5E95\u90E8
1080
+ setTimeout(() => {
1081
+ handleScrollToBottom();
1082
+ }, 100);
1083
+ };
1084
+
1085
+ return (
1086
+ <div style={{ display: 'flex', gap: '16px' }}>
1087
+ {/* \u5DE6\u4FA7\uFF1A\u6D88\u606F\u5217\u8868\u5C55\u793A */}
1088
+ <Card
1089
+ title="\u6D88\u606F\u5217\u8868\u5C55\u793A"
1090
+ style={{ flex: 1 }}
1091
+ contentHeight="500px"
1092
+ >
1093
+ <div style={{ height: '100%' }}>
1094
+ <PaulAiAssistant
1095
+ ref={assistantRef}
1096
+ bizDomain="CSE"
1097
+ bizId="chat_list_demo"
1098
+ dataSource={dataSource}
1099
+ messageCardWidth={messageCardWidth}
1100
+ hiddenChatInput // \u9690\u85CF\u8F93\u5165\u6846\uFF0C\u53EA\u5C55\u793A\u6D88\u606F\u5217\u8868
1101
+ log={(eventName, logData) => {
1102
+ addLog(\`\u4E8B\u4EF6: \${eventName}\`);
1103
+ console.log('log', eventName, logData);
1104
+ }}
1105
+ />
1106
+ </div>
1107
+ </Card>
1108
+
1109
+ {/* \u53F3\u4FA7\uFF1A\u63A7\u5236\u9762\u677F */}
1110
+ <Card
1111
+ title="\u63A7\u5236\u9762\u677F"
1112
+ style={{ width: '360px' }}
1113
+ contentHeight="500px"
1114
+ >
1115
+ <div style={{ display: 'flex', flexDirection: 'column', gap: '12px' }}>
1116
+ {/* \u72B6\u6001\u4FE1\u606F */}
1117
+ <div>
1118
+ <div style={{ fontSize: '12px', color: '#666', marginBottom: '8px' }}>
1119
+ \u5F53\u524D\u72B6\u6001
1120
+ </div>
1121
+ <div style={{ fontSize: '12px', lineHeight: '20px' }}>
1122
+ <div>\u6D88\u606F\u6570\u91CF: {dataSource.length}</div>
1123
+ <div>\u5361\u7247\u5BBD\u5EA6: {messageCardWidth}</div>
1124
+ </div>
1125
+ </div>
1126
+
1127
+ <Divider />
1128
+
1129
+ {/* \u6570\u636E\u6E90\u5207\u6362 */}
1130
+ <div>
1131
+ <div style={{ fontSize: '12px', color: '#666', marginBottom: '8px' }}>
1132
+ \u6570\u636E\u6E90\u5207\u6362
1133
+ </div>
1134
+ <div style={{ display: 'flex', flexDirection: 'column', gap: '8px' }}>
1135
+ <Button
1136
+ onClick={() => handleSwitchDataSource('simple')}
1137
+ size="small"
1138
+ >
1139
+ \u7B80\u5355\u6D88\u606F\u5217\u8868
1140
+ </Button>
1141
+ <Button
1142
+ onClick={() => handleSwitchDataSource('complex')}
1143
+ size="small"
1144
+ >
1145
+ \u590D\u6742\u6D88\u606F\u5217\u8868\uFF08\u8868\u5355\u5361\u7247\uFF09
1146
+ </Button>
1147
+ </div>
1148
+ </div>
1149
+
1150
+ <Divider />
1151
+
1152
+ {/* \u5361\u7247\u5BBD\u5EA6\u8BBE\u7F6E */}
1153
+ <div>
1154
+ <div style={{ fontSize: '12px', color: '#666', marginBottom: '8px' }}>
1155
+ \u5361\u7247\u5BBD\u5EA6\u8BBE\u7F6E
1156
+ </div>
1157
+ <Radio.Group
1158
+ value={messageCardWidth}
1159
+ onChange={(value) => {
1160
+ setMessageCardWidth(value as any);
1161
+ addLog(\`\u5207\u6362\u5361\u7247\u5BBD\u5EA6: \${value}\`);
1162
+ }}
1163
+ >
1164
+ <Radio value="small">\u5C0F (50%)</Radio>
1165
+ <Radio value="medium">\u4E2D (80%)</Radio>
1166
+ <Radio value="large">\u5927 (100%)</Radio>
1167
+ </Radio.Group>
1168
+ </div>
1169
+
1170
+ <Divider />
1171
+
1172
+ {/* \u6D88\u606F\u64CD\u4F5C */}
1173
+ <div>
1174
+ <div style={{ fontSize: '12px', color: '#666', marginBottom: '8px' }}>
1175
+ \u6D88\u606F\u64CD\u4F5C
1176
+ </div>
1177
+ <div style={{ display: 'flex', flexDirection: 'column', gap: '8px' }}>
1178
+ <Button onClick={handleAddMessage} size="small">
1179
+ \u6DFB\u52A0\u65B0\u6D88\u606F
1180
+ </Button>
1181
+ <Button onClick={handleScrollToBottom} size="small">
1182
+ \u6EDA\u52A8\u5230\u5E95\u90E8
1183
+ </Button>
1184
+ <Button onClick={handleScrollToTop} size="small">
1185
+ \u83B7\u53D6\u6EDA\u52A8\u4FE1\u606F
1186
+ </Button>
1187
+ </div>
1188
+ </div>
1189
+
1190
+ <Divider />
1191
+
1192
+ {/* \u4E8B\u4EF6\u65E5\u5FD7 */}
1193
+ <div style={{ flex: 1, overflow: 'hidden', display: 'flex', flexDirection: 'column' }}>
1194
+ <div style={{ fontSize: '12px', color: '#666', marginBottom: '8px' }}>
1195
+ \u4E8B\u4EF6\u65E5\u5FD7
1196
+ </div>
1197
+ <div style={{
1198
+ flex: 1,
1199
+ fontSize: '11px',
1200
+ fontFamily: 'monospace',
1201
+ backgroundColor: '#f5f5f5',
1202
+ padding: '8px',
1203
+ borderRadius: '4px',
1204
+ overflow: 'auto',
1205
+ maxHeight: '120px'
1206
+ }}>
1207
+ {logs.length === 0 ? (
1208
+ <div style={{ color: '#999' }}>\u6682\u65E0\u65E5\u5FD7</div>
1209
+ ) : (
1210
+ logs.map((log, index) => (
1211
+ <div key={index} style={{ marginBottom: '4px' }}>
1212
+ {log}
1213
+ </div>
1214
+ ))
1215
+ )}
1216
+ </div>
1217
+ </div>
1218
+ </div>
1219
+ </Card>
1220
+ </div>
1221
+ );
1222
+ };
1223
+
1224
+ export default ChatListDemo;
1225
+ `},88321:function(t,e){e.Z=`import { useRef, useState, useCallback } from 'react';
1226
+ import { Card, message } from '@alife/magic-basic';
1227
+ import PaulAiAssistant from '@alife/paul-ai-assistant';
1228
+ import '../config';
1229
+
1230
+ /**
1231
+ * \u7EFC\u5408\u573A\u666F Demo
1232
+ * \u5C55\u793A\u5B8C\u6574\u7684\u804A\u5929\u6D41\u7A0B\uFF1A\u7528\u6237\u8F93\u5165 \u2192 AI \u56DE\u590D\uFF08\u542B\u6D41\u5F0F\u63A8\u9001\uFF09
1233
+ */
1234
+ const ChatScenarioDemo = () => {
1235
+ const assistantRef = useRef<any>(null);
1236
+ const [messages, setMessages] = useState<any[]>([]);
1237
+ const [isGenerating, setIsGenerating] = useState(false);
1238
+ const messageIdCounter = useRef(1000);
1239
+
1240
+ // \u6A21\u62DF AI \u56DE\u590D\u7684\u793A\u4F8B\u6587\u672C
1241
+ const aiResponses = [
1242
+ "\u60A8\u597D\uFF01\u6211\u662F Paul AI \u52A9\u624B\uFF0C\u5F88\u9AD8\u5174\u4E3A\u60A8\u670D\u52A1\u3002\u6709\u4EC0\u4E48\u53EF\u4EE5\u5E2E\u52A9\u60A8\u7684\u5417\uFF1F",
1243
+ "PaulAiAssistant \u7EC4\u4EF6\u5E93\u63D0\u4F9B\u4E86\u4E30\u5BCC\u7684\u529F\u80FD\uFF0C\u5305\u62EC\u667A\u80FD\u5BF9\u8BDD\u3001\u6D88\u606F\u5C55\u793A\u3001\u5DE5\u5177\u96C6\u6210\u7B49\u3002\u60A8\u53EF\u4EE5\u901A\u8FC7\u7B80\u5355\u7684\u914D\u7F6E\u5C31\u80FD\u96C6\u6210\u5230\u60A8\u7684\u9879\u76EE\u4E2D\u3002",
1244
+ "\u5173\u4E8E\u8FD9\u4E2A\u95EE\u9898\uFF0C\u6211\u5EFA\u8BAE\u60A8\u53EF\u4EE5\u67E5\u770B\u5B98\u65B9\u6587\u6863\uFF0C\u91CC\u9762\u6709\u8BE6\u7EC6\u7684\u4F7F\u7528\u8BF4\u660E\u548C\u793A\u4F8B\u4EE3\u7801\u3002\u5982\u679C\u8FD8\u6709\u7591\u95EE\uFF0C\u6B22\u8FCE\u7EE7\u7EED\u63D0\u95EE\uFF01",
1245
+ "\u6211\u5DF2\u7ECF\u4E3A\u60A8\u51C6\u5907\u4E86\u76F8\u5173\u7684\u4FE1\u606F\u3002\u5982\u679C\u9700\u8981\u66F4\u8BE6\u7EC6\u7684\u8BF4\u660E\uFF0C\u8BF7\u544A\u8BC9\u6211\u5177\u4F53\u7684\u9700\u6C42\u3002",
1246
+ "\u597D\u7684\uFF0C\u6211\u7406\u89E3\u4E86\u3002\u8BA9\u6211\u6765\u5E2E\u60A8\u89E3\u51B3\u8FD9\u4E2A\u95EE\u9898\u3002",
1247
+ ];
1248
+
1249
+ // \u751F\u6210\u552F\u4E00 ID
1250
+ const getNextId = () => {
1251
+ messageIdCounter.current += 1;
1252
+ return messageIdCounter.current;
1253
+ };
1254
+
1255
+ // \u6A21\u62DF\u6D41\u5F0F\u63A8\u9001 AI \u56DE\u590D
1256
+ const simulateStreamingResponse = (userMessage: string) => {
1257
+ const aiResponseText = aiResponses[Math.floor(Math.random() * aiResponses.length)];
1258
+ const responseId = getNextId();
1259
+
1260
+ // \u5148\u6DFB\u52A0\u4E00\u4E2A "\u6B63\u5728\u751F\u6210" \u7684\u6D88\u606F
1261
+ const streamingMessage = {
1262
+ id: responseId,
1263
+ type: 101,
1264
+ userInfo: {
1265
+ userId: 0,
1266
+ username: null,
1267
+ avatar: null,
1268
+ role: 3
1269
+ },
1270
+ timestamp: Date.now(),
1271
+ subjectId: "demo_scenario",
1272
+ dataInfo: {
1273
+ component: [{ name: "LlmGenerateCardV5" }],
1274
+ props: [{
1275
+ name: "LlmGenerateCardV5",
1276
+ value: {
1277
+ finished: false,
1278
+ headerTips: {
1279
+ tipsContent: "\u5185\u5BB9\u4E3AAI\u751F\u6210\uFF0C\u8BF7\u7406\u89E3\u5BA2\u6237\u95EE\u9898\u540E\u5224\u65AD\u662F\u5426\u53EF\u7528\uFF01",
1280
+ showTips: false
1281
+ },
1282
+ content: ""
1283
+ }
1284
+ }]
1285
+ },
1286
+ headerInfo: {
1287
+ component: "OperationCard",
1288
+ props: [
1289
+ { name: "Feedback", value: {} },
1290
+ { name: "Copy", value: { type: "beFormat" } }
1291
+ ],
1292
+ extInfo: {
1293
+ headerTag: {
1294
+ backgroundColor: "#EBF4F5",
1295
+ color: "#099BAB",
1296
+ text: "\u667A\u80FD\u95EE\u7B54"
1297
+ }
1298
+ }
1299
+ },
1300
+ dialogId: responseId
1301
+ };
1302
+
1303
+ setMessages(prev => [...prev, streamingMessage]);
1304
+ setIsGenerating(true);
1305
+
1306
+ // \u7981\u7528\u8F93\u5165\u6846
1307
+ assistantRef.current?.disableInput(true);
1308
+
1309
+ // \u6A21\u62DF\u6D41\u5F0F\u63A8\u9001\uFF0C\u9010\u5B57\u663E\u793A
1310
+ let currentText = "";
1311
+ let charIndex = 0;
1312
+
1313
+ const interval = setInterval(() => {
1314
+ if (charIndex < aiResponseText.length) {
1315
+ currentText += aiResponseText[charIndex];
1316
+ charIndex++;
1317
+
1318
+ setMessages(prev => {
1319
+ const updated = [...prev];
1320
+ const lastMessage = updated[updated.length - 1];
1321
+ if (lastMessage.id === responseId) {
1322
+ lastMessage.dataInfo.props[0].value.content = currentText;
1323
+ }
1324
+ return updated;
1325
+ });
1326
+ } else {
1327
+ // \u5B8C\u6210\u751F\u6210
1328
+ clearInterval(interval);
1329
+ setMessages(prev => {
1330
+ const updated = [...prev];
1331
+ const lastMessage = updated[updated.length - 1];
1332
+ if (lastMessage.id === responseId) {
1333
+ lastMessage.dataInfo.props[0].value.finished = true;
1334
+ }
1335
+ return updated;
1336
+ });
1337
+ setIsGenerating(false);
1338
+
1339
+ // \u542F\u7528\u8F93\u5165\u6846
1340
+ assistantRef.current?.disableInput(false);
1341
+
1342
+ // \u805A\u7126\u8F93\u5165\u6846
1343
+ setTimeout(() => {
1344
+ assistantRef.current?.focusInput();
1345
+ }, 100);
1346
+ }
1347
+ }, 30); // \u6BCF30ms\u663E\u793A\u4E00\u4E2A\u5B57\u7B26
1348
+ };
1349
+
1350
+ // \u53D1\u9001\u6D88\u606F\u5904\u7406
1351
+ const handleSendMessage = useCallback((inputValue: string) => {
1352
+ if (!inputValue?.trim()) {
1353
+ message.warning('\u8BF7\u8F93\u5165\u6D88\u606F\u5185\u5BB9');
1354
+ return;
1355
+ }
1356
+
1357
+ if (isGenerating) {
1358
+ message.warning('AI \u6B63\u5728\u751F\u6210\u56DE\u590D\uFF0C\u8BF7\u7A0D\u5019');
1359
+ return;
1360
+ }
1361
+
1362
+ // \u6DFB\u52A0\u7528\u6237\u6D88\u606F
1363
+ const userMessageId = getNextId();
1364
+ const userMessage = {
1365
+ id: userMessageId,
1366
+ type: 2,
1367
+ userInfo: {
1368
+ userId: 1069,
1369
+ username: "\u6D4B\u8BD5\u7528\u6237",
1370
+ avatar: null,
1371
+ role: 2
1372
+ },
1373
+ timestamp: Date.now(),
1374
+ subjectId: "demo_scenario",
1375
+ dataInfo: {
1376
+ content: inputValue
1377
+ },
1378
+ dialogId: userMessageId
1379
+ };
1380
+
1381
+ setMessages(prev => [...prev, userMessage]);
1382
+
1383
+ // \u6E05\u7A7A\u8F93\u5165\u6846
1384
+ assistantRef.current?.updateInputValue('');
1385
+
1386
+ // \u6A21\u62DF AI \u56DE\u590D\uFF08\u5EF6\u8FDF 500ms\uFF09
1387
+ setTimeout(() => {
1388
+ simulateStreamingResponse(inputValue);
1389
+ }, 500);
1390
+ }, [isGenerating]);
1391
+
1392
+ // \u505C\u6B62\u751F\u6210
1393
+ const handleStopGeneration = useCallback(() => {
1394
+ setIsGenerating(false);
1395
+ assistantRef.current?.disableInput(false);
1396
+ message.success('\u5DF2\u505C\u6B62\u751F\u6210');
1397
+ }, []);
1398
+
1399
+ return (
1400
+ <Card
1401
+ title={
1402
+ <div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
1403
+ <span>\u7EFC\u5408\u573A\u666F\u6F14\u793A - \u5B8C\u6574\u804A\u5929\u6D41\u7A0B</span>
1404
+ {isGenerating && (
1405
+ <span style={{ fontSize: '12px', color: '#ff4d4f' }}>
1406
+ AI \u6B63\u5728\u751F\u6210\u56DE\u590D\u4E2D...
1407
+ </span>
1408
+ )}
1409
+ </div>
1410
+ }
1411
+ contentHeight="600px"
1412
+ >
1413
+ <div style={{ height: '100%', display: 'flex', flexDirection: 'column' }}>
1414
+ <div style={{
1415
+ padding: '12px',
1416
+ backgroundColor: '#f0f9ff',
1417
+ borderRadius: '4px',
1418
+ marginBottom: '12px',
1419
+ fontSize: '13px',
1420
+ lineHeight: '20px'
1421
+ }}>
1422
+ <div style={{ fontWeight: 'bold', marginBottom: '4px' }}>
1423
+ \u{1F4A1} \u4F7F\u7528\u8BF4\u660E
1424
+ </div>
1425
+ <div style={{ color: '#666' }}>
1426
+ \u2022 \u5728\u4E0B\u65B9\u8F93\u5165\u6846\u8F93\u5165\u6D88\u606F\u5E76\u6309 Enter \u53D1\u9001<br/>
1427
+ \u2022 \u7CFB\u7EDF\u4F1A\u81EA\u52A8\u6A21\u62DF AI \u6D41\u5F0F\u56DE\u590D\uFF08\u9010\u5B57\u663E\u793A\uFF09<br/>
1428
+ \u2022 \u751F\u6210\u8FC7\u7A0B\u4E2D\u53EF\u70B9\u51FB\u505C\u6B62\u6309\u94AE\u4E2D\u65AD<br/>
1429
+ \u2022 \u652F\u6301\u591A\u8F6E\u5BF9\u8BDD\uFF0C\u5FEB\u6765\u8BD5\u8BD5\u5427\uFF01
1430
+ </div>
1431
+ </div>
1432
+
1433
+ <div style={{ flex: 1 }}>
1434
+ <PaulAiAssistant
1435
+ ref={assistantRef}
1436
+ bizDomain="CSE"
1437
+ bizId="chat_scenario_demo"
1438
+ dataSource={messages}
1439
+ placeholder="\u8BF7\u8F93\u5165\u60A8\u7684\u95EE\u9898..."
1440
+ emptyContent={
1441
+ <div style={{
1442
+ textAlign: 'center',
1443
+ padding: '80px 20px',
1444
+ color: '#999'
1445
+ }}>
1446
+ <div style={{ fontSize: '16px', marginBottom: '8px', fontWeight: 500 }}>
1447
+ \u6B22\u8FCE\u4F7F\u7528 PaulAiAssistant
1448
+ </div>
1449
+ <div style={{ fontSize: '13px' }}>
1450
+ \u5728\u4E0B\u65B9\u8F93\u5165\u6846\u53D1\u9001\u6D88\u606F\u5F00\u59CB\u5BF9\u8BDD
1451
+ </div>
1452
+ </div>
1453
+ }
1454
+ onClickSendMessage={() => {
1455
+ const inputValue = assistantRef.current?.chatInputRef?.current?.sendMessageValue;
1456
+ handleSendMessage(inputValue);
1457
+ }}
1458
+ stopLlmMessage={handleStopGeneration}
1459
+ log={(eventName, logData) => {
1460
+ console.log('log', eventName, logData);
1461
+ }}
1462
+ />
1463
+ </div>
1464
+ </div>
1465
+ </Card>
1466
+ );
1467
+ };
1468
+
1469
+ export default ChatScenarioDemo;
1470
+ `},4453:function(t,e){e.Z=`const cardSchema = {
1471
+ properties: {
1472
+ NO_NAME_FIELD_$1: {
1473
+ 'x-component': 'mega-layout',
1474
+ name: 'NO_NAME_FIELD_$1',
1475
+ 'x-component-props': {
1476
+ labelAlign: 'top',
1477
+ labelCol: 24,
1478
+ },
1479
+ type: 'object',
1480
+ key: 'NO_NAME_FIELD_$1',
1481
+ properties: {
1482
+ senderEmail: {
1483
+ default: '',
1484
+ key: 'senderEmail',
1485
+ name: '\u53D1\u4EF6\u4EBA\u90AE\u7BB1',
1486
+ title: '\u53D1\u4EF6\u4EBA\u90AE\u7BB1',
1487
+ 'x-component': 'input',
1488
+ 'x-component-props': {
1489
+ placeholder: '\u8BF7\u8F93\u5165\u6536\u4EF6\u4EBA\u90AE\u7BB1\u5730\u5740\uFF08\u201C\u8D26\u53F7@\u57DF\u540D\u201D\u7684\u683C\u5F0F\uFF09',
1490
+ },
1491
+ },
1492
+ sendTime: {
1493
+ default: '',
1494
+ key: 'sendTime',
1495
+ name: '\u5177\u4F53\u53D1\u9001\u65F6\u95F4',
1496
+ title: '\u5177\u4F53\u53D1\u9001\u65F6\u95F4',
1497
+ 'x-component': 'DatePicker',
1498
+ 'x-component-props': {
1499
+ // showTime: true,
1500
+ // format: 'YYYY-MM-DD',
1501
+ placeholder: '\u7CBE\u786E\u5230\u79D2\u7684\u201Dyyyy-MM-dd hh:mm:ss\u201C\u683C\u5F0F',
1502
+ },
1503
+ },
1504
+ },
1505
+ },
1506
+ },
1507
+ type: 'object',
1508
+ };
1509
+ export const mock = [
1510
+ {
1511
+ userInfo: {
1512
+ role: 3,
1513
+ userName: '\u7528\u6237',
1514
+ userId: '1793905311094920',
1515
+ },
1516
+ headerInfo: {
1517
+ component: 'OperationCard',
1518
+ props: [
1519
+ {
1520
+ name: 'AgentExecutionView',
1521
+ value: {},
1522
+ },
1523
+ {
1524
+ name: 'AgentLogTrace',
1525
+ value: {},
1526
+ },
1527
+ {
1528
+ name: 'AgentTroubleShoot',
1529
+ value: {},
1530
+ },
1531
+ {
1532
+ name: 'ToUse',
1533
+ value: {
1534
+ type: 'beFormat',
1535
+ },
1536
+ },
1537
+ ],
1538
+ extInfo: {
1539
+ headerTag: {
1540
+ backgroundColor: '#EFE8F9',
1541
+ color: '#5F13C4',
1542
+ },
1543
+ },
1544
+ },
1545
+ dataInfo: {
1546
+ component: [
1547
+ {
1548
+ name: 'AgentCardRender',
1549
+ },
1550
+ ],
1551
+ props: [
1552
+ {
1553
+ name: 'AgentCardRender',
1554
+ value: {
1555
+ agentId: 336,
1556
+ enableCard: true,
1557
+ cardName: '\u673A\u623F\u5730\u5740\u67E5\u8BE2\u8868\u5355',
1558
+ messageType: 'get_info',
1559
+ cardId: 'bb48efe5-a5d6-4802-a7ea-8bca9bc953f2',
1560
+ headerTips: {
1561
+ tipsContent: '\u5185\u5BB9\u4E3AAI\u751F\u6210\uFF0C\u8BF7\u7406\u89E3\u5BA2\u6237\u95EE\u9898\u540E\u5224\u65AD\u662F\u5426\u53EF\u7528\uFF01',
1562
+ },
1563
+ cardSchema,
1564
+
1565
+ summary:
1566
+ '\u60A8\u597D\uFF0C\u8BF7\u60A8\u63D0\u4F9B\u53D1\u4EF6\u4EBA\u90AE\u7BB1\u548C\u5177\u4F53\u53D1\u9001\u65F6\u95F4\uFF0C\u4EE5\u4FBF\u8FDB\u4E00\u6B65\u4E3A\u60A8\u67E5\u8BE2\uFF1A\\n\u53D1\u4EF6\u4EBA\u90AE\u7BB1\uFF1A\\n\u5177\u4F53\u53D1\u9001\u65F6\u95F4\uFF1A',
1567
+ values: {
1568
+ sendTime: '2025-01-12 00:00:00',
1569
+ senderEmail: 'awdf@asdf.com',
1570
+ },
1571
+ status: {
1572
+ disabled: false,
1573
+ },
1574
+ },
1575
+ },
1576
+ ],
1577
+ },
1578
+ id: 851,
1579
+ type: 101,
1580
+ dialogId: 851,
1581
+ subjectId: '38c8cdff-2dc7-44d0-b7ec-e2e89b5a297f',
1582
+ ticketId: '38c8cdff-2dc7-44d0-b7ec-e2e89b5a297f',
1583
+ timestamp: 1742194245000,
1584
+ },
1585
+ {
1586
+ userInfo: {
1587
+ role: 2,
1588
+ userName: '\u7528\u6237',
1589
+ userId: '1793905311094920',
1590
+ },
1591
+ dataInfo: {
1592
+ content:
1593
+ '\u7528\u6237\u8F93\u5165\u4EA7\u54C1\u540D\u79F0\uFF1Aswas\uFF0C\u5B9E\u4F8Bid\uFF1Aa5f1bf87f776496ab9f79b84dc000a7c \u7528\u6237\u8F93\u5165\u4EA7\u54C1\u540D\u79F0\uFF1Aswas\uFF0C\u5B9E\u4F8Bid\uFF1Aa5f1bf87f776496ab9f79b84dc000a7c',
1594
+ },
1595
+ id: 852,
1596
+ type: 2,
1597
+ dialogId: 852,
1598
+ subjectId: '38c8cdff-2dc7-44d0-b7ec-e2e89b5a297f',
1599
+ ticketId: '38c8cdff-2dc7-44d0-b7ec-e2e89b5a297f',
1600
+ timestamp: 1742194257000,
1601
+ },
1602
+ {
1603
+ userInfo: {
1604
+ role: 3,
1605
+ userName: '\u7528\u6237',
1606
+ userId: '1793905311094920',
1607
+ },
1608
+ headerInfo: {
1609
+ component: 'OperationCard',
1610
+ props: [
1611
+ {
1612
+ name: 'AgentExecutionView',
1613
+ value: {},
1614
+ },
1615
+ {
1616
+ name: 'AgentLogTrace',
1617
+ value: {},
1618
+ },
1619
+ {
1620
+ name: 'AgentTroubleShoot',
1621
+ value: {},
1622
+ },
1623
+ ],
1624
+ extInfo: {
1625
+ headerTag: {
1626
+ backgroundColor: '#EFE8F9',
1627
+ color: '#5F13C4',
1628
+ },
1629
+ },
1630
+ },
1631
+ dataInfo: {
1632
+ component: [
1633
+ {
1634
+ name: 'AgentCommonCard',
1635
+ },
1636
+ ],
1637
+ props: [
1638
+ {
1639
+ name: 'AgentCommonCard',
1640
+ value: {
1641
+ summary:
1642
+ '**\u673A\u623F\u5730\u5740\u4E3A**\uFF1A\u676D\u5DDE\u5E02\u8427\u5C71\u533A\u5EFA\u8BBE\u56DB\u8DEF4083\u53F7\u7533\u65B0SK\u5305\u88C5\u5382\u4E1C\u5317\u95E8\\n**\u4E3A\u60A8\u63D0\u4F9B\u5B9E\u4F8B\u4FE1\u606F\u5982\u4E0B\uFF1A**\\n**\u5B9E\u4F8BID**\uFF1Aa5f1bf87f776496ab9f79b84dc000a7c\\n**\u5B9E\u4F8B\u540D**\uFF1ABT-Panel-csyq\\n**\u6240\u5C5E\u533A\u57DF**\uFF1A\u6D59\u6C5F\u7701',
1643
+ messageType: 'message',
1644
+ finished: true,
1645
+ headerTips: {
1646
+ tipsContent: '\u5185\u5BB9\u4E3AAI\u751F\u6210\uFF0C\u8BF7\u7406\u89E3\u5BA2\u6237\u95EE\u9898\u540E\u5224\u65AD\u662F\u5426\u53EF\u7528\uFF01',
1647
+ },
1648
+ },
1649
+ },
1650
+ ],
1651
+ },
1652
+ id: 853,
1653
+ type: 101,
1654
+ dialogId: 853,
1655
+ subjectId: '38c8cdff-2dc7-44d0-b7ec-e2e89b5a297f',
1656
+ ticketId: '38c8cdff-2dc7-44d0-b7ec-e2e89b5a297f',
1657
+ timestamp: 1742194258000,
1658
+ },
1659
+ ];
1660
+
1661
+
1662
+ export const mockLong = [
1663
+ {
1664
+ "id": 6031,
1665
+ "type": 2,
1666
+ "userInfo": {
1667
+ "userId": 1069,
1668
+ "username": "\u5F20\u4EAE(\u6EDE\u96E8)",
1669
+ "avatar": null,
1670
+ "role": 2
1671
+ },
1672
+ "timestamp": 1753791520000,
1673
+ "subjectId": "1_1069_01K1B1XDCXZHEJRRQWVKR1G3YR",
1674
+ "extInfo": {
1675
+ "extDialogId": null,
1676
+ "traceId": "e357a1740d3dedc59a0691078b024431"
1677
+ },
1678
+ "dataInfo": {
1679
+ "content": "\u9ED8\u5199\u957F\u6068\u6B4C"
1680
+ },
1681
+ "headerInfo": {
1682
+ "component": "OperationCard",
1683
+ "props": [
1684
+ {
1685
+ "name": "TraceDetail"
1686
+ },
1687
+ {
1688
+ "name": "AgentTestCase",
1689
+ "value": {
1690
+ "requestId": "e357a1740d3dedc59a0691078b024431"
1691
+ }
1692
+ }
1693
+ ]
1694
+ },
1695
+ "dialogId": 6031
1696
+ },
1697
+ {
1698
+ "id": 6032,
1699
+ "type": 101,
1700
+ "userInfo": {
1701
+ "userId": 0,
1702
+ "username": null,
1703
+ "avatar": null,
1704
+ "role": 3
1705
+ },
1706
+ "timestamp": 1753791521000,
1707
+ "subjectId": "1_1069_01K1B1XDCXZHEJRRQWVKR1G3YR",
1708
+ "extInfo": {
1709
+ "extDialogId": null,
1710
+ "traceId": "e357a1740d3dedc59a0691078b024431"
1711
+ },
1712
+ "dataInfo": {
1713
+ "component": [
1714
+ {
1715
+ "name": "LlmGenerateCardV5"
1716
+ }
1717
+ ],
1718
+ "props": [
1719
+ {
1720
+ "name": "LlmGenerateCardV5",
1721
+ "value": {
1722
+ "thirdPartyModel": {},
1723
+ "showQuestion": {},
1724
+ "finished": true,
1725
+ "headerTips": {
1726
+ "tipsContent": "\u5185\u5BB9\u4E3AAI\u751F\u6210\uFF0C\u8BF7\u7406\u89E3\u5BA2\u6237\u95EE\u9898\u540E\u5224\u65AD\u662F\u5426\u53EF\u7528\uFF01",
1727
+ "showTips": false
1728
+ },
1729
+ "content": "\u300A\u957F\u6068\u6B4C\u300B\u662F\u5510\u4EE3\u8BD7\u4EBA\u767D\u5C45\u6613\u521B\u4F5C\u7684\u4E00\u9996\u957F\u7BC7\u53D9\u4E8B\u8BD7\uFF0C\u5168\u8BD7\u8F83\u957F\uFF0C\u4EE5\u4E0B\u662F\u5176\u4E2D\u7684\u5F00\u5934\u90E8\u5206\uFF1A\\n\\n\u6C49\u7687\u91CD\u8272\u601D\u503E\u56FD\uFF0C\u5FA1\u5B87\u591A\u5E74\u6C42\u4E0D\u5F97\u3002\\n\u6768\u5BB6\u6709\u5973\u521D\u957F\u6210\uFF0C\u517B\u5728\u6DF1\u95FA\u4EBA\u672A\u8BC6\u3002\\n\u5929\u751F\u4E3D\u8D28\u96BE\u81EA\u5F03\uFF0C\u4E00\u671D\u9009\u5728\u541B\u738B\u4FA7\u3002\\n\u56DE\u7738\u4E00\u7B11\u767E\u5A9A\u751F\uFF0C\u516D\u5BAB\u7C89\u9EDB\u65E0\u989C\u8272\u3002\\n\u6625\u5BD2\u8D50\u6D74\u534E\u6E05\u6C60\uFF0C\u6E29\u6CC9\u6C34\u6ED1\u6D17\u51DD\u8102\u3002\\n\u4F8D\u513F\u6276\u8D77\u5A07\u65E0\u529B\uFF0C\u59CB\u662F\u65B0\u627F\u6069\u6CFD\u65F6\u3002\\n\u4E91\u9B13\u82B1\u989C\u91D1\u6B65\u6447\uFF0C\u8299\u84C9\u5E10\u6696\u5EA6\u6625\u5BB5\u3002\\n\u6625\u5BB5\u82E6\u77ED\u65E5\u9AD8\u8D77\uFF0C\u4ECE\u6B64\u541B\u738B\u4E0D\u65E9\u671D\u3002\\n\\n\u8FD9\u9996\u8BD7\u8FD8\u6709\u8BB8\u591A\u5185\u5BB9\uFF0C\u8BB2\u8FF0\u4E86\u5510\u7384\u5B97\u4E0E\u6768\u8D35\u5983\u7684\u7231\u60C5\u6545\u4E8B\u4EE5\u53CA\u5B89\u53F2\u4E4B\u4E71\u540E\u7684\u60B2\u5267\u7ED3\u5C40\u3002\u7531\u4E8E\u5168\u8BD7\u975E\u5E38\u957F\uFF0C\u8FD9\u91CC\u53EA\u63D0\u4F9B\u4E86\u4E00\u5C0F\u90E8\u5206\u5185\u5BB9\u3002\u5982\u679C\u4F60\u9700\u8981\u66F4\u591A\u6BB5\u843D\u6216\u7279\u5B9A\u7684\u90E8\u5206\uFF0C\u8BF7\u544A\u8BC9\u6211\uFF01"
1730
+ }
1731
+ }
1732
+ ]
1733
+ },
1734
+ "headerInfo": {
1735
+ "component": "OperationCard",
1736
+ "props": [
1737
+ {
1738
+ "name": "Feedback",
1739
+ "value": {}
1740
+ },
1741
+ {
1742
+ "name": "Copy",
1743
+ "value": {
1744
+ "type": "beFormat",
1745
+ "content": "\u300A\u957F\u6068\u6B4C\u300B\u662F\u5510\u4EE3\u8BD7\u4EBA\u767D\u5C45\u6613\u521B\u4F5C\u7684\u4E00\u9996\u957F\u7BC7\u53D9\u4E8B\u8BD7\uFF0C\u5168\u8BD7\u8F83\u957F\uFF0C\u4EE5\u4E0B\u662F\u5176\u4E2D\u7684\u5F00\u5934\u90E8\u5206\uFF1A\\n\\n\u6C49\u7687\u91CD\u8272\u601D\u503E\u56FD\uFF0C\u5FA1\u5B87\u591A\u5E74\u6C42\u4E0D\u5F97\u3002\\n\u6768\u5BB6\u6709\u5973\u521D\u957F\u6210\uFF0C\u517B\u5728\u6DF1\u95FA\u4EBA\u672A\u8BC6\u3002\\n\u5929\u751F\u4E3D\u8D28\u96BE\u81EA\u5F03\uFF0C\u4E00\u671D\u9009\u5728\u541B\u738B\u4FA7\u3002\\n\u56DE\u7738\u4E00\u7B11\u767E\u5A9A\u751F\uFF0C\u516D\u5BAB\u7C89\u9EDB\u65E0\u989C\u8272\u3002\\n\u6625\u5BD2\u8D50\u6D74\u534E\u6E05\u6C60\uFF0C\u6E29\u6CC9\u6C34\u6ED1\u6D17\u51DD\u8102\u3002\\n\u4F8D\u513F\u6276\u8D77\u5A07\u65E0\u529B\uFF0C\u59CB\u662F\u65B0\u627F\u6069\u6CFD\u65F6\u3002\\n\u4E91\u9B13\u82B1\u989C\u91D1\u6B65\u6447\uFF0C\u8299\u84C9\u5E10\u6696\u5EA6\u6625\u5BB5\u3002\\n\u6625\u5BB5\u82E6\u77ED\u65E5\u9AD8\u8D77\uFF0C\u4ECE\u6B64\u541B\u738B\u4E0D\u65E9\u671D\u3002\\n\\n\u8FD9\u9996\u8BD7\u8FD8\u6709\u8BB8\u591A\u5185\u5BB9\uFF0C\u8BB2\u8FF0\u4E86\u5510\u7384\u5B97\u4E0E\u6768\u8D35\u5983\u7684\u7231\u60C5\u6545\u4E8B\u4EE5\u53CA\u5B89\u53F2\u4E4B\u4E71\u540E\u7684\u60B2\u5267\u7ED3\u5C40\u3002\u7531\u4E8E\u5168\u8BD7\u975E\u5E38\u957F\uFF0C\u8FD9\u91CC\u53EA\u63D0\u4F9B\u4E86\u4E00\u5C0F\u90E8\u5206\u5185\u5BB9\u3002\u5982\u679C\u4F60\u9700\u8981\u66F4\u591A\u6BB5\u843D\u6216\u7279\u5B9A\u7684\u90E8\u5206\uFF0C\u8BF7\u544A\u8BC9\u6211\uFF01"
1746
+ }
1747
+ }
1748
+ ],
1749
+ "extInfo": {
1750
+ "headerTag": {
1751
+ "backgroundColor": "#EBF4F5",
1752
+ "color": "#099BAB",
1753
+ "text": "\u667A\u80FD\u95EE\u7B54"
1754
+ }
1755
+ }
1756
+ },
1757
+ "dialogId": 6032
1758
+ },
1759
+ {
1760
+ "id": 6034,
1761
+ "type": 2,
1762
+ "userInfo": {
1763
+ "userId": 1069,
1764
+ "username": "\u5F20\u4EAE(\u6EDE\u96E8)",
1765
+ "avatar": null,
1766
+ "role": 2
1767
+ },
1768
+ "timestamp": 1753791559000,
1769
+ "subjectId": "1_1069_01K1B1XDCXZHEJRRQWVKR1G3YR",
1770
+ "extInfo": {
1771
+ "extDialogId": null,
1772
+ "traceId": "d08ae1f6048dfa849aa9176f4c305c64"
1773
+ },
1774
+ "dataInfo": {
1775
+ "content": "\u5168\u6587\u80CC\u8BF5"
1776
+ },
1777
+ "headerInfo": {
1778
+ "component": "OperationCard",
1779
+ "props": [
1780
+ {
1781
+ "name": "TraceDetail"
1782
+ },
1783
+ {
1784
+ "name": "AgentTestCase",
1785
+ "value": {
1786
+ "requestId": "d08ae1f6048dfa849aa9176f4c305c64"
1787
+ }
1788
+ }
1789
+ ]
1790
+ },
1791
+ "dialogId": 6034
1792
+ },
1793
+ {
1794
+ "id": 6035,
1795
+ "type": 101,
1796
+ "userInfo": {
1797
+ "userId": 0,
1798
+ "username": null,
1799
+ "avatar": null,
1800
+ "role": 3
1801
+ },
1802
+ "timestamp": 1753791559000,
1803
+ "subjectId": "1_1069_01K1B1XDCXZHEJRRQWVKR1G3YR",
1804
+ "extInfo": {
1805
+ "extDialogId": null,
1806
+ "traceId": "d08ae1f6048dfa849aa9176f4c305c64"
1807
+ },
1808
+ "dataInfo": {
1809
+ "component": [
1810
+ {
1811
+ "name": "LlmGenerateCardV5"
1812
+ }
1813
+ ],
1814
+ "props": [
1815
+ {
1816
+ "name": "LlmGenerateCardV5",
1817
+ "value": {
1818
+ "thirdPartyModel": {},
1819
+ "showQuestion": {},
1820
+ "finished": true,
1821
+ "headerTips": {
1822
+ "tipsContent": "\u5185\u5BB9\u4E3AAI\u751F\u6210\uFF0C\u8BF7\u7406\u89E3\u5BA2\u6237\u95EE\u9898\u540E\u5224\u65AD\u662F\u5426\u53EF\u7528\uFF01",
1823
+ "showTips": false
1824
+ },
1825
+ "content": "\u300A\u957F\u6068\u6B4C\u300B\u662F\u5510\u4EE3\u8BD7\u4EBA\u767D\u5C45\u6613\u521B\u4F5C\u7684\u4E00\u9996\u957F\u7BC7\u53D9\u4E8B\u8BD7\uFF0C\u5168\u8BD7\u5982\u4E0B\uFF1A\\n\\n\u6C49\u7687\u91CD\u8272\u601D\u503E\u56FD\uFF0C\u5FA1\u5B87\u591A\u5E74\u6C42\u4E0D\u5F97\u3002\\n\u6768\u5BB6\u6709\u5973\u521D\u957F\u6210\uFF0C\u517B\u5728\u6DF1\u95FA\u4EBA\u672A\u8BC6\u3002\\n\u5929\u751F\u4E3D\u8D28\u96BE\u81EA\u5F03\uFF0C\u4E00\u671D\u9009\u5728\u541B\u738B\u4FA7\u3002\\n\u56DE\u7738\u4E00\u7B11\u767E\u5A9A\u751F\uFF0C\u516D\u5BAB\u7C89\u9EDB\u65E0\u989C\u8272\u3002\\n\u6625\u5BD2\u8D50\u6D74\u534E\u6E05\u6C60\uFF0C\u6E29\u6CC9\u6C34\u6ED1\u6D17\u51DD\u8102\u3002\\n\u4F8D\u513F\u6276\u8D77\u5A07\u65E0\u529B\uFF0C\u59CB\u662F\u65B0\u627F\u6069\u6CFD\u65F6\u3002\\n\u4E91\u9B13\u82B1\u989C\u91D1\u6B65\u6447\uFF0C\u8299\u84C9\u5E10\u6696\u5EA6\u6625\u5BB5\u3002\\n\u6625\u5BB5\u82E6\u77ED\u65E5\u9AD8\u8D77\uFF0C\u4ECE\u6B64\u541B\u738B\u4E0D\u65E9\u671D\u3002\\n\u627F\u6B22\u4F8D\u5BB4\u65E0\u95F2\u6687\uFF0C\u6625\u4ECE\u6625\u6E38\u591C\u4E13\u591C\u3002\\n\u540E\u5BAB\u4F73\u4E3D\u4E09\u5343\u4EBA\uFF0C\u4E09\u5343\u5BA0\u7231\u5728\u4E00\u8EAB\u3002\\n\u91D1\u5C4B\u5986\u6210\u5A07\u4F8D\u591C\uFF0C\u7389\u697C\u5BB4\u7F62\u9189\u548C\u6625\u3002\\n\u59CA\u59B9\u5F1F\u5144\u7686\u5217\u571F\uFF0C\u53EF\u601C\u5149\u5F69\u751F\u95E8\u6237\u3002\\n\u9042\u4EE4\u5929\u4E0B\u7236\u6BCD\u5FC3\uFF0C\u4E0D\u91CD\u751F\u7537\u91CD\u751F\u5973\u3002\\n\u9A8A\u5BAB\u9AD8\u5904\u5165\u9752\u4E91\uFF0C\u4ED9\u4E50\u98CE\u98D8\u5904\u5904\u95FB\u3002\\n\u7F13\u6B4C\u6162\u821E\u51DD\u4E1D\u7AF9\uFF0C\u5C3D\u65E5\u541B\u738B\u770B\u4E0D\u8DB3\u3002\\n\u6E14\u9633\u9F19\u9F13\u52A8\u5730\u6765\uFF0C\u60CA\u7834\u9713\u88F3\u7FBD\u8863\u66F2\u3002\\n\\n\u4E5D\u91CD\u57CE\u9619\u70DF\u5C18\u751F\uFF0C\u5343\u4E58\u4E07\u9A91\u897F\u5357\u884C\u3002\\n\u7FE0\u534E\u6447\u6447\u884C\u590D\u6B62\uFF0C\u897F\u51FA\u90FD\u95E8\u767E\u4F59\u91CC\u3002\\n\u516D\u519B\u4E0D\u53D1\u65E0\u5948\u4F55\uFF0C\u5B9B\u8F6C\u86FE\u7709\u9A6C\u524D\u6B7B\u3002\\n\u82B1\u94BF\u59D4\u5730\u65E0\u4EBA\u6536\uFF0C\u7FE0\u7FD8\u91D1\u96C0\u7389\u6414\u5934\u3002\\n\u541B\u738B\u63A9\u9762\u6551\u4E0D\u5F97\uFF0C\u56DE\u770B\u8840\u6CEA\u76F8\u548C\u6D41\u3002\\n\u9EC4\u57C3\u6563\u6F2B\u98CE\u8427\u7D22\uFF0C\u4E91\u6808\u8426\u7EA1\u767B\u5251\u9601\u3002\\n\u5CE8\u5D4B\u5C71\u4E0B\u5C11\u4EBA\u884C\uFF0C\u65CC\u65D7\u65E0\u5149\u65E5\u8272\u8584\u3002\\n\u8700\u6C5F\u6C34\u78A7\u8700\u5C71\u9752\uFF0C\u5723\u4E3B\u671D\u671D\u66AE\u66AE\u60C5\u3002\\n\u884C\u5BAB\u89C1\u6708\u4F24\u5FC3\u8272\uFF0C\u591C\u96E8\u95FB\u94C3\u80A0\u65AD\u58F0\u3002\\n\u5929\u65CB\u5730\u8F6C\u56DE\u9F99\u9A6D\uFF0C\u5230\u6B64\u8E0C\u8E87\u4E0D\u80FD\u53BB\u3002\\n\u9A6C\u5D6C\u5761\u4E0B\u6CE5\u571F\u4E2D\uFF0C\u4E0D\u89C1\u7389\u989C\u7A7A\u6B7B\u5904\u3002\\n\u541B\u81E3\u76F8\u987E\u5C3D\u6CBE\u8863\uFF0C\u4E1C\u671B\u90FD\u95E8\u4FE1\u9A6C\u5F52\u3002\\n\u5F52\u6765\u6C60\u82D1\u7686\u4F9D\u65E7\uFF0C\u592A\u6DB2\u8299\u84C9\u672A\u592E\u67F3\u3002\\n\u8299\u84C9\u5982\u9762\u67F3\u5982\u7709\uFF0C\u5BF9\u6B64\u5982\u4F55\u4E0D\u6CEA\u5782\uFF1F\\n\u6625\u98CE\u6843\u674E\u82B1\u5F00\u65E5\uFF0C\u79CB\u96E8\u68A7\u6850\u53F6\u843D\u65F6\u3002\\n\u897F\u5BAB\u5357\u5185\u591A\u79CB\u8349\uFF0C\u843D\u53F6\u6EE1\u9636\u7EA2\u4E0D\u626B\u3002\\n\u68A8\u56ED\u5F1F\u5B50\u767D\u53D1\u65B0\uFF0C\u6912\u623F\u963F\u76D1\u9752\u5A25\u8001\u3002\\n\u5915\u6BBF\u8424\u98DE\u601D\u6084\u7136\uFF0C\u5B64\u706F\u6311\u5C3D\u672A\u6210\u7720\u3002\\n\u8FDF\u8FDF\u949F\u9F13\u521D\u957F\u591C\uFF0C\u803F\u803F\u661F\u6CB3\u6B32\u66D9\u5929\u3002\\n\u9E33\u9E2F\u74E6\u51B7\u971C\u534E\u91CD\uFF0C\u7FE1\u7FE0\u887E\u5BD2\u8C01\u4E0E\u5171\uFF1F\\n\u60A0\u60A0\u751F\u6B7B\u522B\u7ECF\u5E74\uFF0C\u9B42\u9B44\u4E0D\u66FE\u6765\u5165\u68A6\u3002\\n\\n\u4E34\u909B\u9053\u58EB\u9E3F\u90FD\u5BA2\uFF0C\u80FD\u4EE5\u7CBE\u8BDA\u81F4\u9B42\u9B44\u3002\\n\u4E3A\u611F\u541B\u738B\u8F97\u8F6C\u601D\uFF0C\u9042\u6559\u65B9\u58EB\u6BB7\u52E4\u89C5\u3002\\n\u6392\u7A7A\u9A6D\u6C14\u5954\u5982\u7535\uFF0C\u5347\u5929\u5165\u5730\u6C42\u4E4B\u904D\u3002\\n\u4E0A\u7A77\u78A7\u843D\u4E0B\u9EC4\u6CC9\uFF0C\u4E24\u5904\u832B\u832B\u7686\u4E0D\u89C1\u3002\\n\u5FFD\u95FB\u6D77\u4E0A\u6709\u4ED9\u5C71\uFF0C\u5C71\u5728\u865A\u65E0\u7F25\u7F08\u95F4\u3002\\n\u697C\u9601\u73B2\u73D1\u4E94\u4E91\u8D77\uFF0C\u5176\u4E2D\u7EF0\u7EA6\u591A\u4ED9\u5B50\u3002\\n\u4E2D\u6709\u4E00\u4EBA\u5B57\u592A\u771F\uFF0C\u96EA\u80A4\u82B1\u8C8C\u53C2\u5DEE\u662F\u3002\\n\u91D1\u9619\u897F\u53A2\u53E9\u7389\u6243\uFF0C\u8F6C\u6559\u5C0F\u7389\u62A5\u53CC\u6210\u3002\\n\u95FB\u9053\u6C49\u5BB6\u5929\u5B50\u4F7F\uFF0C\u4E5D\u534E\u5E10\u91CC\u68A6\u9B42\u60CA\u3002\\n\u63FD\u8863\u63A8\u6795\u8D77\u5F98\u5F8A\uFF0C\u73E0\u7B94\u94F6\u5C4F\u8FE4\u9026\u5F00\u3002\\n\u4E91\u9B13\u534A\u504F\u65B0\u7761\u89C9\uFF0C\u82B1\u51A0\u4E0D\u6574\u4E0B\u5802\u6765\u3002\\n\u98CE\u5439\u4ED9\u8882\u98D8\u98D6\u4E3E\uFF0C\u72B9\u4F3C\u9713\u88F3\u7FBD\u8863\u821E\u3002\\n\u7389\u5BB9\u5BC2\u5BDE\u6CEA\u9611\u5E72\uFF0C\u68A8\u82B1\u4E00\u679D\u6625\u5E26\u96E8\u3002\\n\u542B\u60C5\u51DD\u7747\u8C22\u541B\u738B\uFF0C\u4E00\u522B\u97F3\u5BB9\u4E24\u6E3A\u832B\u3002\\n\u662D\u9633\u6BBF\u91CC\u6069\u7231\u7EDD\uFF0C\u84EC\u83B1\u5BAB\u4E2D\u65E5\u6708\u957F\u3002\\n\u56DE\u5934\u4E0B\u671B\u4EBA\u5BF0\u5904\uFF0C\u4E0D\u89C1\u957F\u5B89\u89C1\u5C18\u96FE\u3002\\n\u60DF\u5C06\u65E7\u7269\u8868\u6DF1\u60C5\uFF0C\u94BF\u5408\u91D1\u9497\u5BC4\u5C06\u53BB\u3002\\n\u9497\u7559\u4E00\u80A1\u5408\u4E00\u6247\uFF0C\u9497\u64D8\u9EC4\u91D1\u5408\u5206\u94BF\u3002\\n\u4F46\u6559\u5FC3\u4F3C\u91D1\u94BF\u575A\uFF0C\u5929\u4E0A\u4EBA\u95F4\u4F1A\u76F8\u89C1\u3002\\n\u4E34\u522B\u6BB7\u52E4\u91CD\u5BC4\u8BCD\uFF0C\u8BCD\u4E2D\u6709\u8A93\u4E24\u5FC3\u77E5\u3002\\n\u4E03\u6708\u4E03\u65E5\u957F\u751F\u6BBF\uFF0C\u591C\u534A\u65E0\u4EBA\u79C1\u8BED\u65F6\u3002\\n\u5728\u5929\u613F\u4F5C\u6BD4\u7FFC\u9E1F\uFF0C\u5728\u5730\u613F\u4E3A\u8FDE\u7406\u679D\u3002\\n\u5929\u957F\u5730\u4E45\u6709\u65F6\u5C3D\uFF0C\u6B64\u6068\u7EF5\u7EF5\u65E0\u7EDD\u671F\u3002\\n\\n\u8FD9\u5C31\u662F\u300A\u957F\u6068\u6B4C\u300B\u7684\u5168\u6587\u3002\u5E0C\u671B\u5BF9\u4F60\u6709\u6240\u5E2E\u52A9\uFF01"
1826
+ }
1827
+ }
1828
+ ]
1829
+ },
1830
+ "headerInfo": {
1831
+ "component": "OperationCard",
1832
+ "props": [
1833
+ {
1834
+ "name": "Feedback",
1835
+ "value": {}
1836
+ },
1837
+ {
1838
+ "name": "Copy",
1839
+ "value": {
1840
+ "type": "beFormat",
1841
+ "content": "\u300A\u957F\u6068\u6B4C\u300B\u662F\u5510\u4EE3\u8BD7\u4EBA\u767D\u5C45\u6613\u521B\u4F5C\u7684\u4E00\u9996\u957F\u7BC7\u53D9\u4E8B\u8BD7\uFF0C\u5168\u8BD7\u5982\u4E0B\uFF1A\\n\\n\u6C49\u7687\u91CD\u8272\u601D\u503E\u56FD\uFF0C\u5FA1\u5B87\u591A\u5E74\u6C42\u4E0D\u5F97\u3002\\n\u6768\u5BB6\u6709\u5973\u521D\u957F\u6210\uFF0C\u517B\u5728\u6DF1\u95FA\u4EBA\u672A\u8BC6\u3002\\n\u5929\u751F\u4E3D\u8D28\u96BE\u81EA\u5F03\uFF0C\u4E00\u671D\u9009\u5728\u541B\u738B\u4FA7\u3002\\n\u56DE\u7738\u4E00\u7B11\u767E\u5A9A\u751F\uFF0C\u516D\u5BAB\u7C89\u9EDB\u65E0\u989C\u8272\u3002\\n\u6625\u5BD2\u8D50\u6D74\u534E\u6E05\u6C60\uFF0C\u6E29\u6CC9\u6C34\u6ED1\u6D17\u51DD\u8102\u3002\\n\u4F8D\u513F\u6276\u8D77\u5A07\u65E0\u529B\uFF0C\u59CB\u662F\u65B0\u627F\u6069\u6CFD\u65F6\u3002\\n\u4E91\u9B13\u82B1\u989C\u91D1\u6B65\u6447\uFF0C\u8299\u84C9\u5E10\u6696\u5EA6\u6625\u5BB5\u3002\\n\u6625\u5BB5\u82E6\u77ED\u65E5\u9AD8\u8D77\uFF0C\u4ECE\u6B64\u541B\u738B\u4E0D\u65E9\u671D\u3002\\n\u627F\u6B22\u4F8D\u5BB4\u65E0\u95F2\u6687\uFF0C\u6625\u4ECE\u6625\u6E38\u591C\u4E13\u591C\u3002\\n\u540E\u5BAB\u4F73\u4E3D\u4E09\u5343\u4EBA\uFF0C\u4E09\u5343\u5BA0\u7231\u5728\u4E00\u8EAB\u3002\\n\u91D1\u5C4B\u5986\u6210\u5A07\u4F8D\u591C\uFF0C\u7389\u697C\u5BB4\u7F62\u9189\u548C\u6625\u3002\\n\u59CA\u59B9\u5F1F\u5144\u7686\u5217\u571F\uFF0C\u53EF\u601C\u5149\u5F69\u751F\u95E8\u6237\u3002\\n\u9042\u4EE4\u5929\u4E0B\u7236\u6BCD\u5FC3\uFF0C\u4E0D\u91CD\u751F\u7537\u91CD\u751F\u5973\u3002\\n\u9A8A\u5BAB\u9AD8\u5904\u5165\u9752\u4E91\uFF0C\u4ED9\u4E50\u98CE\u98D8\u5904\u5904\u95FB\u3002\\n\u7F13\u6B4C\u6162\u821E\u51DD\u4E1D\u7AF9\uFF0C\u5C3D\u65E5\u541B\u738B\u770B\u4E0D\u8DB3\u3002\\n\u6E14\u9633\u9F19\u9F13\u52A8\u5730\u6765\uFF0C\u60CA\u7834\u9713\u88F3\u7FBD\u8863\u66F2\u3002\\n\\n\u4E5D\u91CD\u57CE\u9619\u70DF\u5C18\u751F\uFF0C\u5343\u4E58\u4E07\u9A91\u897F\u5357\u884C\u3002\\n\u7FE0\u534E\u6447\u6447\u884C\u590D\u6B62\uFF0C\u897F\u51FA\u90FD\u95E8\u767E\u4F59\u91CC\u3002\\n\u516D\u519B\u4E0D\u53D1\u65E0\u5948\u4F55\uFF0C\u5B9B\u8F6C\u86FE\u7709\u9A6C\u524D\u6B7B\u3002\\n\u82B1\u94BF\u59D4\u5730\u65E0\u4EBA\u6536\uFF0C\u7FE0\u7FD8\u91D1\u96C0\u7389\u6414\u5934\u3002\\n\u541B\u738B\u63A9\u9762\u6551\u4E0D\u5F97\uFF0C\u56DE\u770B\u8840\u6CEA\u76F8\u548C\u6D41\u3002\\n\u9EC4\u57C3\u6563\u6F2B\u98CE\u8427\u7D22\uFF0C\u4E91\u6808\u8426\u7EA1\u767B\u5251\u9601\u3002\\n\u5CE8\u5D4B\u5C71\u4E0B\u5C11\u4EBA\u884C\uFF0C\u65CC\u65D7\u65E0\u5149\u65E5\u8272\u8584\u3002\\n\u8700\u6C5F\u6C34\u78A7\u8700\u5C71\u9752\uFF0C\u5723\u4E3B\u671D\u671D\u66AE\u66AE\u60C5\u3002\\n\u884C\u5BAB\u89C1\u6708\u4F24\u5FC3\u8272\uFF0C\u591C\u96E8\u95FB\u94C3\u80A0\u65AD\u58F0\u3002\\n\u5929\u65CB\u5730\u8F6C\u56DE\u9F99\u9A6D\uFF0C\u5230\u6B64\u8E0C\u8E87\u4E0D\u80FD\u53BB\u3002\\n\u9A6C\u5D6C\u5761\u4E0B\u6CE5\u571F\u4E2D\uFF0C\u4E0D\u89C1\u7389\u989C\u7A7A\u6B7B\u5904\u3002\\n\u541B\u81E3\u76F8\u987E\u5C3D\u6CBE\u8863\uFF0C\u4E1C\u671B\u90FD\u95E8\u4FE1\u9A6C\u5F52\u3002\\n\u5F52\u6765\u6C60\u82D1\u7686\u4F9D\u65E7\uFF0C\u592A\u6DB2\u8299\u84C9\u672A\u592E\u67F3\u3002\\n\u8299\u84C9\u5982\u9762\u67F3\u5982\u7709\uFF0C\u5BF9\u6B64\u5982\u4F55\u4E0D\u6CEA\u5782\uFF1F\\n\u6625\u98CE\u6843\u674E\u82B1\u5F00\u65E5\uFF0C\u79CB\u96E8\u68A7\u6850\u53F6\u843D\u65F6\u3002\\n\u897F\u5BAB\u5357\u5185\u591A\u79CB\u8349\uFF0C\u843D\u53F6\u6EE1\u9636\u7EA2\u4E0D\u626B\u3002\\n\u68A8\u56ED\u5F1F\u5B50\u767D\u53D1\u65B0\uFF0C\u6912\u623F\u963F\u76D1\u9752\u5A25\u8001\u3002\\n\u5915\u6BBF\u8424\u98DE\u601D\u6084\u7136\uFF0C\u5B64\u706F\u6311\u5C3D\u672A\u6210\u7720\u3002\\n\u8FDF\u8FDF\u949F\u9F13\u521D\u957F\u591C\uFF0C\u803F\u803F\u661F\u6CB3\u6B32\u66D9\u5929\u3002\\n\u9E33\u9E2F\u74E6\u51B7\u971C\u534E\u91CD\uFF0C\u7FE1\u7FE0\u887E\u5BD2\u8C01\u4E0E\u5171\uFF1F\\n\u60A0\u60A0\u751F\u6B7B\u522B\u7ECF\u5E74\uFF0C\u9B42\u9B44\u4E0D\u66FE\u6765\u5165\u68A6\u3002\\n\\n\u4E34\u909B\u9053\u58EB\u9E3F\u90FD\u5BA2\uFF0C\u80FD\u4EE5\u7CBE\u8BDA\u81F4\u9B42\u9B44\u3002\\n\u4E3A\u611F\u541B\u738B\u8F97\u8F6C\u601D\uFF0C\u9042\u6559\u65B9\u58EB\u6BB7\u52E4\u89C5\u3002\\n\u6392\u7A7A\u9A6D\u6C14\u5954\u5982\u7535\uFF0C\u5347\u5929\u5165\u5730\u6C42\u4E4B\u904D\u3002\\n\u4E0A\u7A77\u78A7\u843D\u4E0B\u9EC4\u6CC9\uFF0C\u4E24\u5904\u832B\u832B\u7686\u4E0D\u89C1\u3002\\n\u5FFD\u95FB\u6D77\u4E0A\u6709\u4ED9\u5C71\uFF0C\u5C71\u5728\u865A\u65E0\u7F25\u7F08\u95F4\u3002\\n\u697C\u9601\u73B2\u73D1\u4E94\u4E91\u8D77\uFF0C\u5176\u4E2D\u7EF0\u7EA6\u591A\u4ED9\u5B50\u3002\\n\u4E2D\u6709\u4E00\u4EBA\u5B57\u592A\u771F\uFF0C\u96EA\u80A4\u82B1\u8C8C\u53C2\u5DEE\u662F\u3002\\n\u91D1\u9619\u897F\u53A2\u53E9\u7389\u6243\uFF0C\u8F6C\u6559\u5C0F\u7389\u62A5\u53CC\u6210\u3002\\n\u95FB\u9053\u6C49\u5BB6\u5929\u5B50\u4F7F\uFF0C\u4E5D\u534E\u5E10\u91CC\u68A6\u9B42\u60CA\u3002\\n\u63FD\u8863\u63A8\u6795\u8D77\u5F98\u5F8A\uFF0C\u73E0\u7B94\u94F6\u5C4F\u8FE4\u9026\u5F00\u3002\\n\u4E91\u9B13\u534A\u504F\u65B0\u7761\u89C9\uFF0C\u82B1\u51A0\u4E0D\u6574\u4E0B\u5802\u6765\u3002\\n\u98CE\u5439\u4ED9\u8882\u98D8\u98D6\u4E3E\uFF0C\u72B9\u4F3C\u9713\u88F3\u7FBD\u8863\u821E\u3002\\n\u7389\u5BB9\u5BC2\u5BDE\u6CEA\u9611\u5E72\uFF0C\u68A8\u82B1\u4E00\u679D\u6625\u5E26\u96E8\u3002\\n\u542B\u60C5\u51DD\u7747\u8C22\u541B\u738B\uFF0C\u4E00\u522B\u97F3\u5BB9\u4E24\u6E3A\u832B\u3002\\n\u662D\u9633\u6BBF\u91CC\u6069\u7231\u7EDD\uFF0C\u84EC\u83B1\u5BAB\u4E2D\u65E5\u6708\u957F\u3002\\n\u56DE\u5934\u4E0B\u671B\u4EBA\u5BF0\u5904\uFF0C\u4E0D\u89C1\u957F\u5B89\u89C1\u5C18\u96FE\u3002\\n\u60DF\u5C06\u65E7\u7269\u8868\u6DF1\u60C5\uFF0C\u94BF\u5408\u91D1\u9497\u5BC4\u5C06\u53BB\u3002\\n\u9497\u7559\u4E00\u80A1\u5408\u4E00\u6247\uFF0C\u9497\u64D8\u9EC4\u91D1\u5408\u5206\u94BF\u3002\\n\u4F46\u6559\u5FC3\u4F3C\u91D1\u94BF\u575A\uFF0C\u5929\u4E0A\u4EBA\u95F4\u4F1A\u76F8\u89C1\u3002\\n\u4E34\u522B\u6BB7\u52E4\u91CD\u5BC4\u8BCD\uFF0C\u8BCD\u4E2D\u6709\u8A93\u4E24\u5FC3\u77E5\u3002\\n\u4E03\u6708\u4E03\u65E5\u957F\u751F\u6BBF\uFF0C\u591C\u534A\u65E0\u4EBA\u79C1\u8BED\u65F6\u3002\\n\u5728\u5929\u613F\u4F5C\u6BD4\u7FFC\u9E1F\uFF0C\u5728\u5730\u613F\u4E3A\u8FDE\u7406\u679D\u3002\\n\u5929\u957F\u5730\u4E45\u6709\u65F6\u5C3D\uFF0C\u6B64\u6068\u7EF5\u7EF5\u65E0\u7EDD\u671F\u3002\\n\\n\u8FD9\u5C31\u662F\u300A\u957F\u6068\u6B4C\u300B\u7684\u5168\u6587\u3002\u5E0C\u671B\u5BF9\u4F60\u6709\u6240\u5E2E\u52A9\uFF01"
1842
+ }
1843
+ }
1844
+ ],
1845
+ "extInfo": {
1846
+ "headerTag": {
1847
+ "backgroundColor": "#EBF4F5",
1848
+ "color": "#099BAB",
1849
+ "text": "\u667A\u80FD\u95EE\u7B54"
1850
+ }
1851
+ }
1852
+ },
1853
+ "dialogId": 6035
1854
+ }
1855
+ ]
1856
+
1857
+ export const mockWrong = [
1858
+ {
1859
+ "id": 6091,
1860
+ "type": 2,
1861
+ "userInfo": {
1862
+ "userId": 1069,
1863
+ "username": "\u5F20\u4EAE(\u6EDE\u96E8)",
1864
+ "avatar": null,
1865
+ "role": 2
1866
+ },
1867
+ "timestamp": 1753793550000,
1868
+ "subjectId": "1_1069_01K1B3VMNY1ZDVRYFD4DNWQQVF",
1869
+ "extInfo": {
1870
+ "extDialogId": null,
1871
+ "traceId": "c7fd57f208bf6c2c39eab8ce75ebd8bc"
1872
+ },
1873
+ "dataInfo": {
1874
+ "content": "\u8FC7\u53BB30\u5929\u6709\u54EA\u4E9B\u5BA2\u6237\u670D\u52A1\u5B58\u5728\u4F18\u5316\u7A7A\u95F4\uFF1F"
1875
+ },
1876
+ "headerInfo": {
1877
+ "component": "OperationCard",
1878
+ "props": [
1879
+ {
1880
+ "name": "TraceDetail"
1881
+ },
1882
+ {
1883
+ "name": "AgentTestCase",
1884
+ "value": {
1885
+ "requestId": "c7fd57f208bf6c2c39eab8ce75ebd8bc"
1886
+ }
1887
+ }
1888
+ ]
1889
+ },
1890
+ "dialogId": 6091
1891
+ },
1892
+ {
1893
+ "id": 6092,
1894
+ "type": 101,
1895
+ "userInfo": {
1896
+ "userId": 0,
1897
+ "username": null,
1898
+ "avatar": null,
1899
+ "role": 3
1900
+ },
1901
+ "timestamp": 1753793551000,
1902
+ "subjectId": "1_1069_01K1B3VMNY1ZDVRYFD4DNWQQVF",
1903
+ "extInfo": {
1904
+ "extDialogId": null,
1905
+ "traceId": "c7fd57f208bf6c2c39eab8ce75ebd8bc"
1906
+ },
1907
+ "dataInfo": {
1908
+ "component": [
1909
+ {
1910
+ "name": "PaulAIAgentCardRender"
1911
+ }
1912
+ ],
1913
+ "props": [
1914
+ {
1915
+ "name": "PaulAIAgentCardRender",
1916
+ "value": {
1917
+ "cardSchema": {
1918
+ "data": {
1919
+ "cardData": {
1920
+ "contents": [
1921
+ {
1922
+ "text": "\u751F\u6210SQL\u62A5\u9519\uFF0C\u8BF7\u8054\u7CFB\u7814\u53D1\u6392\u67E5\u3002",
1923
+ "type": "MARKDOWN"
1924
+ },
1925
+ {},
1926
+ {
1927
+ "text": "\\n\\n---\\n1. \u6570\u636E\u66F4\u65B0\u65F6\u95F4\u4E3A\uFF1A**2025-07-29 00:45:43**\\n2. \u5F53\u524D\u9650\u5236\u4E86\u6570\u636E\u8FD4\u56DE\u6761\u6570\u4E3A10\u6761\uFF0C\u4E0D\u4EE3\u8868\u5168\u90E8\u6570\u636E",
1928
+ "type": "MARKDOWN"
1929
+ }
1930
+ ]
1931
+ }
1932
+ }
1933
+ },
1934
+ "trace": {
1935
+ "data": [
1936
+ {
1937
+ "result": {
1938
+ "result": "\u8BC6\u522B\u5230\u5E94\u7528\uFF0C\u6267\u884C **CRE-ChatBI**",
1939
+ "type": "markdown",
1940
+ "status": "RUNNING"
1941
+ },
1942
+ "showTitle": "\u6267\u884C\u5E94\u7528",
1943
+ "type": "markdown",
1944
+ "status": "SUCCESS"
1945
+ },
1946
+ {
1947
+ "result": {
1948
+ "result": "\u8FC7\u53BB30\u5929\u6709\u54EA\u4E9B\u5BA2\u6237\u670D\u52A1\u5B58\u5728\u4F18\u5316\u7A7A\u95F4\uFF1F",
1949
+ "showTitle": "\u7528\u6237\u95EE\u53E5",
1950
+ "type": "markdown",
1951
+ "status": "SUCCESS"
1952
+ },
1953
+ "showTitle": "\u7528\u6237\u95EE\u53E5",
1954
+ "type": "markdown",
1955
+ "status": "SUCCESS"
1956
+ },
1957
+ {
1958
+ "result": {
1959
+ "result": "\u4E1A\u52A1\u57DF\u662F\uFF1A\u901A\u7528\u573A\u666F",
1960
+ "showTitle": "\u4E1A\u52A1\u57DF\u4FE1\u606F",
1961
+ "type": "markdown",
1962
+ "status": "SUCCESS"
1963
+ },
1964
+ "showTitle": "\u4E1A\u52A1\u57DF\u4FE1\u606F",
1965
+ "type": "markdown",
1966
+ "status": "SUCCESS"
1967
+ },
1968
+ {
1969
+ "result": {
1970
+ "result": "\u67E5\u8BE2\u8FC7\u53BB30\u5929\u5185\u5BA2\u6237\u670D\u52A1\u5B58\u5728\u4F18\u5316\u7A7A\u95F4\u7684\u5BA2\u6237cid\u3001\u5BA2\u6237\u540D\u79F0\u3001\u5BA2\u6237\u7B80\u79F0\uFF0C\u4EE5\u53CA\u5BF9\u5E94\u7684\u670D\u52A1\u4F18\u5316\u76F8\u5173\u4E8B\u4EF6\u7684\u6570\u91CF\u548C\u7C7B\u578B\u3002\u9700\u8981\u7B5B\u9009\u51FA\u4E8B\u4EF6\u7684\u751F\u6210\u65F6\u95F4gmt_create\u5728\u8FD130\u5929\u5185\uFF0C\u5E76\u6309\u7167\u5BA2\u6237cid\u8FDB\u884C\u5206\u7EC4\u7EDF\u8BA1\u4F18\u5316\u7A7A\u95F4\u4E8B\u4EF6\u7684\u6570\u91CF\uFF0C\u6700\u540E\u6309\u7167\u4F18\u5316\u7A7A\u95F4\u4E8B\u4EF6\u6570\u91CF\u964D\u5E8F\u6392\u5E8F\u3002\u6CE8\u610F\uFF0C\u4F18\u5316\u7A7A\u95F4\u4E8B\u4EF6\u662F\u6307biz_impact\u5B57\u6BB5\u8868\u793A\u5B58\u5728\u4E1A\u52A1\u5F71\u54CD\u4E14handle_level=true\u7684\u4E8B\u4EF6\u3002",
1971
+ "showTitle": "\u6539\u5199\u95EE\u53E5\u4FE1\u606F",
1972
+ "type": "markdown",
1973
+ "status": "SUCCESS"
1974
+ },
1975
+ "showTitle": "\u6539\u5199\u95EE\u53E5\u4FE1\u606F",
1976
+ "type": "markdown",
1977
+ "status": "SUCCESS"
1978
+ },
1979
+ {
1980
+ "result": {
1981
+ "result": "ads_clouddoc_event,gts_customer_all_info",
1982
+ "showTitle": "\u53EC\u56DE\u8868\u4FE1\u606F",
1983
+ "type": "markdown",
1984
+ "status": "SUCCESS"
1985
+ },
1986
+ "showTitle": "\u53EC\u56DE\u8868\u4FE1\u606F",
1987
+ "type": "markdown",
1988
+ "status": "SUCCESS"
1989
+ },
1990
+ {
1991
+ "result": {
1992
+ "result": "SQL\u6B63\u5728\u751F\u6210\u4E2D\uFF0C\u8BF7\u7B49\u5F85...",
1993
+ "showTitle": "\u751F\u6210SQL\u4FE1\u606F",
1994
+ "type": "markdown",
1995
+ "status": "SUCCESS"
1996
+ },
1997
+ "showTitle": "\u751F\u6210SQL\u4FE1\u606F",
1998
+ "type": "markdown",
1999
+ "status": "SUCCESS"
2000
+ }
2001
+ ],
2002
+ "traceName": "\u601D\u8003\u8FC7\u7A0B",
2003
+ "status": "SUCCESS"
2004
+ },
2005
+ "cardType": "TEMPLATE",
2006
+ "headerTips": {
2007
+ "tipsContent": "\u5185\u5BB9\u4E3AAI\u751F\u6210\uFF0C\u8BF7\u7406\u89E3\u5BA2\u6237\u95EE\u9898\u540E\u5224\u65AD\u662F\u5426\u53EF\u7528\uFF01"
2008
+ },
2009
+ "submitConfig": {
2010
+ "allowReentry": "true"
2011
+ },
2012
+ "status": {
2013
+ "disabled": false
2014
+ }
2015
+ }
2016
+ }
2017
+ ]
2018
+ },
2019
+ "headerInfo": {
2020
+ "component": "OperationCard",
2021
+ "props": [
2022
+ {
2023
+ "name": "Feedback",
2024
+ "value": {}
2025
+ },
2026
+ {
2027
+ "name": "Copy",
2028
+ "value": {
2029
+ "type": "copy",
2030
+ "isHide": true
2031
+ }
2032
+ }
2033
+ ],
2034
+ "extInfo": {
2035
+ "headerTag": {
2036
+ "backgroundColor": "#EFE8F9",
2037
+ "color": "#5F13C4",
2038
+ "text": "CRE-ChatBI"
2039
+ }
2040
+ }
2041
+ },
2042
+ "dialogId": 6092
2043
+ }
2044
+ ]
2045
+
2046
+ // \u5BF9\u8BDD\u5217\u8868 Demo \u7528\u7684\u7B80\u5355\u6D88\u606F\u6570\u636E
2047
+ export const mockChatList = [
2048
+ {
2049
+ id: 1,
2050
+ type: 2,
2051
+ userInfo: {
2052
+ userId: 1069,
2053
+ username: "\u5F20\u4EAE(\u6EDE\u96E8)",
2054
+ avatar: null,
2055
+ role: 2
2056
+ },
2057
+ timestamp: 1733750400000,
2058
+ subjectId: "demo_chat_001",
2059
+ dataInfo: {
2060
+ content: "\u4F60\u597D\uFF0C\u8BF7\u5E2E\u6211\u4ECB\u7ECD\u4E00\u4E0B PaulAiAssistant \u7EC4\u4EF6\u7684\u4E3B\u8981\u529F\u80FD"
2061
+ },
2062
+ dialogId: 1
2063
+ },
2064
+ {
2065
+ id: 2,
2066
+ type: 101,
2067
+ userInfo: {
2068
+ userId: 0,
2069
+ username: null,
2070
+ avatar: null,
2071
+ role: 3
2072
+ },
2073
+ timestamp: 1733750401000,
2074
+ subjectId: "demo_chat_001",
2075
+ dataInfo: {
2076
+ component: [
2077
+ {
2078
+ name: "LlmGenerateCardV5"
2079
+ }
2080
+ ],
2081
+ props: [
2082
+ {
2083
+ name: "LlmGenerateCardV5",
2084
+ value: {
2085
+ finished: true,
2086
+ headerTips: {
2087
+ tipsContent: "\u5185\u5BB9\u4E3AAI\u751F\u6210\uFF0C\u8BF7\u7406\u89E3\u5BA2\u6237\u95EE\u9898\u540E\u5224\u65AD\u662F\u5426\u53EF\u7528\uFF01",
2088
+ showTips: false
2089
+ },
2090
+ content: "PaulAiAssistant \u662F\u4E00\u4E2A\u57FA\u4E8E React \u7684\u667A\u80FD\u8F85\u52A9\u7EC4\u4EF6\u5E93\uFF0C\u4E3B\u8981\u63D0\u4F9B\u4EE5\u4E0B\u529F\u80FD\uFF1A\\n\\n1. **\u667A\u80FD\u5BF9\u8BDD**\uFF1A\u652F\u6301\u7528\u6237\u4E0E AI \u8FDB\u884C\u591A\u8F6E\u5BF9\u8BDD\u4EA4\u4E92\\n2. **\u6D88\u606F\u5C55\u793A**\uFF1A\u652F\u6301\u591A\u79CD\u6D88\u606F\u7C7B\u578B\u7684\u6E32\u67D3\uFF0C\u5305\u62EC\u6587\u672C\u3001\u5361\u7247\u3001\u8868\u5355\u7B49\\n3. **\u5DE5\u5177\u96C6\u6210**\uFF1A\u53EF\u96C6\u6210\u5404\u79CD\u5DE5\u5177\u548C\u5E94\u7528\uFF0C\u63D0\u4F9B\u4E30\u5BCC\u7684\u4EA4\u4E92\u80FD\u529B\\n4. **\u81EA\u5B9A\u4E49\u6269\u5C55**\uFF1A\u652F\u6301\u81EA\u5B9A\u4E49\u5361\u7247\u7EC4\u4EF6\u3001\u64CD\u4F5C\u6309\u94AE\u7B49\\n5. **\u5206\u4EAB\u529F\u80FD**\uFF1A\u652F\u6301\u6D88\u606F\u5206\u4EAB\u548C\u5BFC\u51FA\\n\\n\u7EC4\u4EF6\u8BBE\u8BA1\u7B80\u6D01\uFF0C\u6613\u4E8E\u96C6\u6210\u5230\u73B0\u6709\u9879\u76EE\u4E2D\u3002"
2091
+ }
2092
+ }
2093
+ ]
2094
+ },
2095
+ headerInfo: {
2096
+ component: "OperationCard",
2097
+ props: [
2098
+ {
2099
+ name: "Feedback",
2100
+ value: {}
2101
+ },
2102
+ {
2103
+ name: "Copy",
2104
+ value: {
2105
+ type: "beFormat"
2106
+ }
2107
+ }
2108
+ ],
2109
+ extInfo: {
2110
+ headerTag: {
2111
+ backgroundColor: "#EBF4F5",
2112
+ color: "#099BAB",
2113
+ text: "\u667A\u80FD\u95EE\u7B54"
2114
+ }
2115
+ }
2116
+ },
2117
+ dialogId: 2
2118
+ },
2119
+ {
2120
+ id: 3,
2121
+ type: 2,
2122
+ userInfo: {
2123
+ userId: 1069,
2124
+ username: "\u5F20\u4EAE(\u6EDE\u96E8)",
2125
+ avatar: null,
2126
+ role: 2
2127
+ },
2128
+ timestamp: 1733750420000,
2129
+ subjectId: "demo_chat_001",
2130
+ dataInfo: {
2131
+ content: "\u5982\u4F55\u81EA\u5B9A\u4E49\u6D88\u606F\u5361\u7247\uFF1F"
2132
+ },
2133
+ dialogId: 3
2134
+ },
2135
+ {
2136
+ id: 4,
2137
+ type: 101,
2138
+ userInfo: {
2139
+ userId: 0,
2140
+ username: null,
2141
+ avatar: null,
2142
+ role: 3
2143
+ },
2144
+ timestamp: 1733750421000,
2145
+ subjectId: "demo_chat_001",
2146
+ dataInfo: {
2147
+ component: [
2148
+ {
2149
+ name: "AgentCommonCard"
2150
+ }
2151
+ ],
2152
+ props: [
2153
+ {
2154
+ name: "AgentCommonCard",
2155
+ value: {
2156
+ summary: "\u60A8\u53EF\u4EE5\u901A\u8FC7 \`cardComponentMap\` \u5C5E\u6027\u6765\u81EA\u5B9A\u4E49\u6D88\u606F\u5361\u7247\u7EC4\u4EF6\u3002\\n\\n\u793A\u4F8B\u4EE3\u7801\uFF1A\\n\`\`\`tsx\\n<PaulAiAssistant\\n cardComponentMap={{\\n AgentCardRender: (props) => <YourCustomCard {...props} />\\n }}\\n/>\\n\`\`\`\\n\\n\u8FD9\u6837\u5C31\u53EF\u4EE5\u5B8C\u5168\u63A7\u5236\u5361\u7247\u7684\u6E32\u67D3\u903B\u8F91\u4E86\u3002",
2157
+ messageType: "message",
2158
+ finished: true,
2159
+ headerTips: {
2160
+ tipsContent: "\u5185\u5BB9\u4E3AAI\u751F\u6210\uFF0C\u8BF7\u7406\u89E3\u5BA2\u6237\u95EE\u9898\u540E\u5224\u65AD\u662F\u5426\u53EF\u7528\uFF01"
2161
+ }
2162
+ }
2163
+ }
2164
+ ]
2165
+ },
2166
+ headerInfo: {
2167
+ component: "OperationCard",
2168
+ props: [
2169
+ {
2170
+ name: "Feedback",
2171
+ value: {}
2172
+ },
2173
+ {
2174
+ name: "Copy",
2175
+ value: {
2176
+ type: "beFormat"
2177
+ }
2178
+ }
2179
+ ],
2180
+ extInfo: {
2181
+ headerTag: {
2182
+ backgroundColor: "#EBF4F5",
2183
+ color: "#099BAB",
2184
+ text: "\u667A\u80FD\u95EE\u7B54"
2185
+ }
2186
+ }
2187
+ },
2188
+ dialogId: 4
2189
+ }
2190
+ ];
2191
+
2192
+ // \u6D41\u5F0F\u6D88\u606F\u793A\u4F8B\u6570\u636E\uFF08\u7528\u4E8E\u7EFC\u5408\u573A\u666F Demo\uFF09
2193
+ export const mockStreamingMessage = {
2194
+ id: 999,
2195
+ type: 101,
2196
+ userInfo: {
2197
+ userId: 0,
2198
+ username: null,
2199
+ avatar: null,
2200
+ role: 3
2201
+ },
2202
+ timestamp: Date.now(),
2203
+ subjectId: "demo_streaming",
2204
+ dataInfo: {
2205
+ component: [
2206
+ {
2207
+ name: "LlmGenerateCardV5"
2208
+ }
2209
+ ],
2210
+ props: [
2211
+ {
2212
+ name: "LlmGenerateCardV5",
2213
+ value: {
2214
+ finished: false,
2215
+ headerTips: {
2216
+ tipsContent: "\u5185\u5BB9\u4E3AAI\u751F\u6210\uFF0C\u8BF7\u7406\u89E3\u5BA2\u6237\u95EE\u9898\u540E\u5224\u65AD\u662F\u5426\u53EF\u7528\uFF01",
2217
+ showTips: false
2218
+ },
2219
+ content: "\u6B63\u5728\u751F\u6210\u56DE\u590D\u4E2D..."
2220
+ }
2221
+ }
2222
+ ]
2223
+ },
2224
+ headerInfo: {
2225
+ component: "OperationCard",
2226
+ props: [
2227
+ {
2228
+ name: "Feedback",
2229
+ value: {}
2230
+ },
2231
+ {
2232
+ name: "Copy",
2233
+ value: {
2234
+ type: "beFormat"
2235
+ }
2236
+ }
2237
+ ],
2238
+ extInfo: {
2239
+ headerTag: {
2240
+ backgroundColor: "#EBF4F5",
2241
+ color: "#099BAB",
2242
+ text: "\u667A\u80FD\u95EE\u7B54"
2243
+ }
2244
+ }
2245
+ },
2246
+ dialogId: 999
2247
+ };`},82299:function(t,e){e.Z=`import PaulAiAssistant, { AgentCardRender } from '@alife/paul-ai-assistant';
2248
+ import '../config';
2249
+ import { mockLong } from './data';
2250
+
2251
+ const App = () => {
2252
+ return (
2253
+ <>
2254
+ <div style={{ height: '500px' }}>
2255
+ <PaulAiAssistant
2256
+ bizDomain={'CSE'}
2257
+ bizId={'001FL1W73R'}
2258
+ dataSource={mockLong}
2259
+ showExternalThinkMode={true}
2260
+ // mode="tool"
2261
+ // hiddenChatInput
2262
+ imConnectCallback={() => {
2263
+ console.log('sssss');
2264
+ }}
2265
+ cardComponentMap={{
2266
+ AgentCardRender: (cardProps) => {
2267
+ return (
2268
+ <AgentCardRender
2269
+ {...cardProps}
2270
+ onSubmitConfig={{
2271
+ onSubmit: (v, enableSubmit) => {
2272
+ console.log('====>', v);
2273
+ enableSubmit?.();
2274
+ },
2275
+ }}
2276
+ />
2277
+ );
2278
+ },
2279
+ }}
2280
+ emptyContent={<div>\u60A8\u597D\uFF0C\u6709\u4EC0\u4E48\u53EF\u4EE5\u5E2E\u52A9\u60A8\u7684</div>}
2281
+ log={(eventName, logData) => {
2282
+ console.log('log', eventName, logData);
2283
+ }}
2284
+ />
2285
+ </div>
2286
+ </>
2287
+ );
2288
+ };
2289
+
2290
+ export default App;
2291
+ `},22516:function(t,e){e.Z=`import { useState } from 'react';
2292
+ import { Divider } from '@alife/magic-basic';
2293
+ import { SchemaInput } from '@alife/paul-ai-assistant';
2294
+
2295
+ function SchemaInputDemo() {
2296
+ const [testValue, setTestValue] = useState({ test: 'test arg', try: { a: 'try a try' } });
2297
+ const schema = {
2298
+ "type": "object",
2299
+ "properties": {
2300
+ "test": {
2301
+ "type": "string",
2302
+ "required": false
2303
+ },
2304
+ "test2": {
2305
+ "type": "array",
2306
+ "required": true,
2307
+ "items": {
2308
+ "type": "string",
2309
+ "required": false
2310
+ }
2311
+ },
2312
+ "try": {
2313
+ "type": "object",
2314
+ "properties": {
2315
+ "a": {
2316
+ "type": "string",
2317
+ "required": false
2318
+ }
2319
+ }
2320
+ }
2321
+ }
2322
+ }
2323
+
2324
+ const testSchemaInput = (
2325
+ <>
2326
+ <div>
2327
+ {/* \u6DFB\u52A0\u4E00\u4E2ATextArea\u8F93\u5165\u6846\u7528\u4E8E\u5BFC\u5165testValue\u503C */}
2328
+ <div style={{ marginBottom: 8 }}>
2329
+ <b>\u5BFC\u5165\u6D4B\u8BD5\u6570\u636E\uFF08testValue\uFF09\uFF1A</b>
2330
+ </div>
2331
+ <textarea
2332
+ style={{ width: '100%', minHeight: 80, fontFamily: 'monospace', marginBottom: 8 }}
2333
+ value={typeof testValue === 'string' ? testValue : JSON.stringify(testValue, null, 2)}
2334
+ onChange={(e) => {
2335
+ try {
2336
+ setTestValue(JSON.parse(e.target.value));
2337
+ } catch {
2338
+ setTestValue(e.target.value);
2339
+ }
2340
+ }}
2341
+ placeholder="\u7C98\u8D34\u4F60\u7684\u6D4B\u8BD5 JSON \u6570\u636E..."
2342
+ />
2343
+ {/* \u8BF4\u660E\uFF1A\u6B64\u8F93\u5165\u6846\u652F\u6301\u76F4\u63A5\u7C98\u8D34 JSON \u5B57\u7B26\u4E32\uFF0C\u81EA\u52A8\u89E3\u6790\u4E3A\u5BF9\u8C61 */}
2344
+ <Divider />
2345
+ <div style={{ marginBottom: 8 }}>
2346
+ <b>Schema\u8F93\u5165</b>
2347
+ </div>
2348
+ <SchemaInput schema={schema} value={testValue} onChange={(value) => setTestValue(value)} />
2349
+ </div>
2350
+ <Divider />
2351
+ </>
2352
+ );
2353
+ return <div>{testSchemaInput}</div>;
2354
+ }
2355
+
2356
+ export default SchemaInputDemo;
2357
+ `},55919:function(t,e){e.Z=`import * as React from 'react';
2358
+
2359
+ const style: React.CSSProperties = {
2360
+ display: 'flex',
2361
+ flexDirection: 'column',
2362
+ alignItems: 'center',
2363
+ justifyContent: 'center',
2364
+ color: '#333',
2365
+ height: '100%',
2366
+ };
2367
+
2368
+ const AssistentError = ({ errorMessage }) => {
2369
+ return (
2370
+ <div style={style}>
2371
+ <svg width="90px" height="64px" viewBox="0 0 90 64" version="1.1">
2372
+ <defs>
2373
+ <linearGradient
2374
+ x1="58.0750164%"
2375
+ y1="7.63747166%"
2376
+ x2="50%"
2377
+ y2="81.2520898%"
2378
+ id="linearGradient-1"
2379
+ >
2380
+ <stop stopColor="#F3F3F3" offset="0%" />
2381
+ <stop stopColor="#D3D4D6" offset="100%" />
2382
+ </linearGradient>
2383
+ <linearGradient
2384
+ x1="77.7409531%"
2385
+ y1="7.63747166%"
2386
+ x2="50%"
2387
+ y2="81.2520898%"
2388
+ id="linearGradient-2"
2389
+ >
2390
+ <stop stopColor="#F3F3F3" offset="0%" />
2391
+ <stop stopColor="#D3D4D6" offset="100%" />
2392
+ </linearGradient>
2393
+ <linearGradient
2394
+ x1="90.2501741%"
2395
+ y1="7.63747166%"
2396
+ x2="50%"
2397
+ y2="81.2520898%"
2398
+ id="linearGradient-3"
2399
+ >
2400
+ <stop stopColor="#737373" offset="0%" />
2401
+ <stop stopColor="#A2A2A2" offset="100%" />
2402
+ </linearGradient>
2403
+ </defs>
2404
+ <g id="\u5BA2\u670D\u5DE5\u4F5C\u53F0-\u9875\u9762\u51FA\u9519" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
2405
+ <g id="\u63A8\u8350\u5DE5\u5177" transform="translate(-1155.000000, -400.000000)">
2406
+ <g id="\u7F16\u7EC4-9\u5907\u4EFD-16" transform="translate(1110.000000, 400.300000)">
2407
+ <g id="\u7F16\u7EC4-20" transform="translate(45.000000, 0.000000)">
2408
+ <rect id="\u77E9\u5F62" x="0" y="3.7" width="90" height="60" />
2409
+ <g id="\u7F16\u7EC4-5" transform="translate(1.125000, 0.000000)">
2410
+ <g id="\u7F16\u7EC4-9">
2411
+ <ellipse
2412
+ id="\u692D\u5706\u5F62"
2413
+ fill="#EFEFEF"
2414
+ cx="44.4375"
2415
+ cy="52.2215909"
2416
+ rx="44.4375"
2417
+ ry="11.2215909"
2418
+ />
2419
+ <path
2420
+ d="M9.475,0 L30.5544646,0 C31.1067493,-1.35899025e-15 31.5544646,0.44771525 31.5544646,1 C31.5544646,1.16287199 31.5146822,1.32327899 31.4385761,1.46727599 L25.1521552,13.361525 C24.9912687,13.6659311 24.9982968,14.031695 25.1707586,14.3296958 L31.9429732,26.031566 C32.1121124,26.3238256 32.1223333,26.6817062 31.9701497,26.9831426 L25.1442867,40.5034205 C24.9883989,40.8121941 25.0031474,41.1796017 25.1832832,41.4748867 L31.2863295,51.4792156 C31.5739508,51.9506945 31.4249047,52.5660669 30.9534257,52.8536882 C30.7965692,52.9493771 30.6163812,53 30.4326413,53 L9.475,53 C8.92271525,53 8.475,52.5522847 8.475,52 L8.475,1 C8.475,0.44771525 8.92271525,1.01453063e-16 9.475,0 Z"
2421
+ id="\u77E9\u5F62"
2422
+ fill="url(#linearGradient-1)"
2423
+ fillRule="nonzero"
2424
+ />
2425
+ <path
2426
+ d="M34.893583,0 L69.9069335,0 C70.2762543,3.76246082e-16 70.615508,0.203557923 70.789298,0.529433486 L77.6308389,13.3580831 C77.7941363,13.6642839 77.7870128,14.0332538 77.6120182,14.3329234 L70.7823375,26.028413 C70.6107085,26.3223191 70.6003474,26.6833392 70.7548379,26.9866047 L77.6388049,40.4998693 C77.7970458,40.810497 77.7820983,41.1811132 77.5993559,41.4779885 L70.7998295,52.5242013 C70.6178177,52.8198896 70.2954524,53 69.948235,53 L34.893583,53 C34.3412983,53 33.893583,52.5522847 33.893583,52 L33.893583,1 C33.893583,0.44771525 34.3412983,1.01453063e-16 34.893583,0 Z"
2427
+ id="\u77E9\u5F62\u5907\u4EFD-3"
2428
+ fill="url(#linearGradient-2)"
2429
+ fillRule="nonzero"
2430
+ transform="translate(55.893583, 26.500000) scale(-1, 1) translate(-55.893583, -26.500000) "
2431
+ />
2432
+ <path
2433
+ d="M34.875,18.2 C40.674,18.2 45.375,22.901 45.375,28.7 C45.375,34.499 40.674,39.2 34.875,39.2 C29.076,39.2 24.375,34.499 24.375,28.7 C24.375,22.901 29.076,18.2 34.875,18.2 Z M34.875,22.7 C34.4607864,22.7 34.125,23.0357864 34.125,23.45 L34.125,27.95 L29.625,27.95 C29.2107864,27.95 28.875,28.2857864 28.875,28.7 C28.875,29.1142136 29.2107864,29.45 29.625,29.45 L34.125,29.45 L34.125,33.95 C34.125,34.3642136 34.4607864,34.7 34.875,34.7 C35.2892136,34.7 35.625,34.3642136 35.625,33.95 L35.625,29.45 L40.125,29.45 C40.5392136,29.45 40.875,29.1142136 40.875,28.7 C40.875,28.2857864 40.5392136,27.95 40.125,27.95 L35.625,27.95 L35.625,23.45 C35.625,23.0357864 35.2892136,22.7 34.875,22.7 Z"
2434
+ id="\u5F62\u72B6"
2435
+ fill="url(#linearGradient-3)"
2436
+ fillRule="nonzero"
2437
+ transform="translate(34.875000, 28.700000) rotate(-45.000000) translate(-34.875000, -28.700000) "
2438
+ />
2439
+ <rect
2440
+ id="\u77E9\u5F62"
2441
+ fill="#EDEDED"
2442
+ x="54.7321429"
2443
+ y="15.7"
2444
+ width="17.1428571"
2445
+ height="4"
2446
+ rx="2"
2447
+ />
2448
+ <rect
2449
+ id="\u77E9\u5F62\u5907\u4EFD-4"
2450
+ fill="#EDEDED"
2451
+ x="54.7321429"
2452
+ y="25.7"
2453
+ width="17.1428571"
2454
+ height="4"
2455
+ rx="2"
2456
+ />
2457
+ <rect
2458
+ id="\u77E9\u5F62\u5907\u4EFD-5"
2459
+ fill="#EDEDED"
2460
+ x="47.875"
2461
+ y="35.7"
2462
+ width="24"
2463
+ height="4"
2464
+ rx="2"
2465
+ />
2466
+ </g>
2467
+ <g id="\u7F16\u7EC4-5" transform="translate(8.475000, 0.000000)" />
2468
+ </g>
2469
+ </g>
2470
+ </g>
2471
+ </g>
2472
+ </g>
2473
+ </svg>
2474
+ <div style={{ margin: 4 }}>{errorMessage || '\u5F53\u524D\u670D\u52A1\u4E0D\u53EF\u7528\uFF0C\u7D27\u6025\u95EE\u9898\u53EF\u8054\u7CFB\u5E73\u53F0\u8D1F\u8D23\u4EBA'}</div>
2475
+ </div>
2476
+ );
2477
+ };
2478
+
2479
+ export default AssistentError;
2480
+ `},3864:function(t,e){e.Z=`import * as React from 'react';
2481
+
2482
+ const style: React.CSSProperties = {
2483
+ display: 'flex',
2484
+ flexDirection: 'column',
2485
+ alignItems: 'center',
2486
+ justifyContent: 'center',
2487
+ color: '#333',
2488
+ height: '100%',
2489
+ };
2490
+
2491
+ const ErrorBoundaryFallback = ({ errorMessage }) => {
2492
+ return (
2493
+ <div style={style}>
2494
+ <svg width="90px" height="64px" viewBox="0 0 90 64" version="1.1">
2495
+ <defs>
2496
+ <linearGradient
2497
+ x1="58.0750164%"
2498
+ y1="7.63747166%"
2499
+ x2="50%"
2500
+ y2="81.2520898%"
2501
+ id="linearGradient-1"
2502
+ >
2503
+ <stop stopColor="#F3F3F3" offset="0%" />
2504
+ <stop stopColor="#D3D4D6" offset="100%" />
2505
+ </linearGradient>
2506
+ <linearGradient
2507
+ x1="77.7409531%"
2508
+ y1="7.63747166%"
2509
+ x2="50%"
2510
+ y2="81.2520898%"
2511
+ id="linearGradient-2"
2512
+ >
2513
+ <stop stopColor="#F3F3F3" offset="0%" />
2514
+ <stop stopColor="#D3D4D6" offset="100%" />
2515
+ </linearGradient>
2516
+ <linearGradient
2517
+ x1="90.2501741%"
2518
+ y1="7.63747166%"
2519
+ x2="50%"
2520
+ y2="81.2520898%"
2521
+ id="linearGradient-3"
2522
+ >
2523
+ <stop stopColor="#737373" offset="0%" />
2524
+ <stop stopColor="#A2A2A2" offset="100%" />
2525
+ </linearGradient>
2526
+ </defs>
2527
+ <g id="\u5BA2\u670D\u5DE5\u4F5C\u53F0-\u9875\u9762\u51FA\u9519" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
2528
+ <g id="\u63A8\u8350\u5DE5\u5177" transform="translate(-1155.000000, -400.000000)">
2529
+ <g id="\u7F16\u7EC4-9\u5907\u4EFD-16" transform="translate(1110.000000, 400.300000)">
2530
+ <g id="\u7F16\u7EC4-20" transform="translate(45.000000, 0.000000)">
2531
+ <rect id="\u77E9\u5F62" x="0" y="3.7" width="90" height="60" />
2532
+ <g id="\u7F16\u7EC4-5" transform="translate(1.125000, 0.000000)">
2533
+ <g id="\u7F16\u7EC4-9">
2534
+ <ellipse
2535
+ id="\u692D\u5706\u5F62"
2536
+ fill="#EFEFEF"
2537
+ cx="44.4375"
2538
+ cy="52.2215909"
2539
+ rx="44.4375"
2540
+ ry="11.2215909"
2541
+ />
2542
+ <path
2543
+ d="M9.475,0 L30.5544646,0 C31.1067493,-1.35899025e-15 31.5544646,0.44771525 31.5544646,1 C31.5544646,1.16287199 31.5146822,1.32327899 31.4385761,1.46727599 L25.1521552,13.361525 C24.9912687,13.6659311 24.9982968,14.031695 25.1707586,14.3296958 L31.9429732,26.031566 C32.1121124,26.3238256 32.1223333,26.6817062 31.9701497,26.9831426 L25.1442867,40.5034205 C24.9883989,40.8121941 25.0031474,41.1796017 25.1832832,41.4748867 L31.2863295,51.4792156 C31.5739508,51.9506945 31.4249047,52.5660669 30.9534257,52.8536882 C30.7965692,52.9493771 30.6163812,53 30.4326413,53 L9.475,53 C8.92271525,53 8.475,52.5522847 8.475,52 L8.475,1 C8.475,0.44771525 8.92271525,1.01453063e-16 9.475,0 Z"
2544
+ id="\u77E9\u5F62"
2545
+ fill="url(#linearGradient-1)"
2546
+ fillRule="nonzero"
2547
+ />
2548
+ <path
2549
+ d="M34.893583,0 L69.9069335,0 C70.2762543,3.76246082e-16 70.615508,0.203557923 70.789298,0.529433486 L77.6308389,13.3580831 C77.7941363,13.6642839 77.7870128,14.0332538 77.6120182,14.3329234 L70.7823375,26.028413 C70.6107085,26.3223191 70.6003474,26.6833392 70.7548379,26.9866047 L77.6388049,40.4998693 C77.7970458,40.810497 77.7820983,41.1811132 77.5993559,41.4779885 L70.7998295,52.5242013 C70.6178177,52.8198896 70.2954524,53 69.948235,53 L34.893583,53 C34.3412983,53 33.893583,52.5522847 33.893583,52 L33.893583,1 C33.893583,0.44771525 34.3412983,1.01453063e-16 34.893583,0 Z"
2550
+ id="\u77E9\u5F62\u5907\u4EFD-3"
2551
+ fill="url(#linearGradient-2)"
2552
+ fillRule="nonzero"
2553
+ transform="translate(55.893583, 26.500000) scale(-1, 1) translate(-55.893583, -26.500000) "
2554
+ />
2555
+ <path
2556
+ d="M34.875,18.2 C40.674,18.2 45.375,22.901 45.375,28.7 C45.375,34.499 40.674,39.2 34.875,39.2 C29.076,39.2 24.375,34.499 24.375,28.7 C24.375,22.901 29.076,18.2 34.875,18.2 Z M34.875,22.7 C34.4607864,22.7 34.125,23.0357864 34.125,23.45 L34.125,27.95 L29.625,27.95 C29.2107864,27.95 28.875,28.2857864 28.875,28.7 C28.875,29.1142136 29.2107864,29.45 29.625,29.45 L34.125,29.45 L34.125,33.95 C34.125,34.3642136 34.4607864,34.7 34.875,34.7 C35.2892136,34.7 35.625,34.3642136 35.625,33.95 L35.625,29.45 L40.125,29.45 C40.5392136,29.45 40.875,29.1142136 40.875,28.7 C40.875,28.2857864 40.5392136,27.95 40.125,27.95 L35.625,27.95 L35.625,23.45 C35.625,23.0357864 35.2892136,22.7 34.875,22.7 Z"
2557
+ id="\u5F62\u72B6"
2558
+ fill="url(#linearGradient-3)"
2559
+ fillRule="nonzero"
2560
+ transform="translate(34.875000, 28.700000) rotate(-45.000000) translate(-34.875000, -28.700000) "
2561
+ />
2562
+ <rect
2563
+ id="\u77E9\u5F62"
2564
+ fill="#EDEDED"
2565
+ x="54.7321429"
2566
+ y="15.7"
2567
+ width="17.1428571"
2568
+ height="4"
2569
+ rx="2"
2570
+ />
2571
+ <rect
2572
+ id="\u77E9\u5F62\u5907\u4EFD-4"
2573
+ fill="#EDEDED"
2574
+ x="54.7321429"
2575
+ y="25.7"
2576
+ width="17.1428571"
2577
+ height="4"
2578
+ rx="2"
2579
+ />
2580
+ <rect
2581
+ id="\u77E9\u5F62\u5907\u4EFD-5"
2582
+ fill="#EDEDED"
2583
+ x="47.875"
2584
+ y="35.7"
2585
+ width="24"
2586
+ height="4"
2587
+ rx="2"
2588
+ />
2589
+ </g>
2590
+ <g id="\u7F16\u7EC4-5" transform="translate(8.475000, 0.000000)" />
2591
+ </g>
2592
+ </g>
2593
+ </g>
2594
+ </g>
2595
+ </g>
2596
+ </svg>
2597
+ {errorMessage || '\u5F53\u524D\u670D\u52A1\u4E0D\u53EF\u7528'}
2598
+ </div>
2599
+ );
2600
+ };
2601
+
2602
+ export default ErrorBoundaryFallback;
2603
+ `},23566:function(t,e){e.Z=`import * as React from 'react';
2604
+ import ErrorBoundaryFallback from './ErrorBoundaryFallback';
2605
+
2606
+ export interface IProps {
2607
+ children?: React.ReactNode;
2608
+ Fallback?: React.ComponentType<any>;
2609
+ onError?: (error?: Error, componentStack?: string) => void;
2610
+ onLog?: (error?: Error, componentStack?: string) => void;
2611
+ errorMessage?: string | React.ReactElement;
2612
+ }
2613
+
2614
+ export interface IErrorInfo {
2615
+ componentStack: string;
2616
+ }
2617
+
2618
+ export interface IState {
2619
+ error?: Error | null;
2620
+ info?: IErrorInfo;
2621
+ }
2622
+
2623
+ class ErrorBoundary extends React.Component<IProps, IState> {
2624
+ static defaultProps: IProps = {
2625
+ Fallback: ErrorBoundaryFallback,
2626
+ };
2627
+
2628
+ constructor(props) {
2629
+ super(props);
2630
+ this.state = {
2631
+ error: null,
2632
+ info: {
2633
+ componentStack: '',
2634
+ },
2635
+ };
2636
+ }
2637
+
2638
+ componentDidCatch(error: Error, info: IErrorInfo): void {
2639
+ const { onError, onLog } = this.props;
2640
+
2641
+ if (typeof onLog === 'function') {
2642
+ onLog.call(this, error, info.componentStack);
2643
+ }
2644
+ if (typeof onError === 'function') {
2645
+ try {
2646
+ onError.call(this, error, info.componentStack);
2647
+ } catch (ignoredError) {
2648
+ // error\u5FFD\u7565
2649
+ }
2650
+ }
2651
+
2652
+ this.setState({ error, info });
2653
+ }
2654
+
2655
+ render() {
2656
+ const { children, Fallback, errorMessage } = this.props;
2657
+ const { error, info } = this.state;
2658
+
2659
+ if (error !== null && typeof Fallback === 'function') {
2660
+ return (
2661
+ <Fallback
2662
+ componentStack={info && info.componentStack}
2663
+ error={error}
2664
+ errorMessage={errorMessage}
2665
+ />
2666
+ );
2667
+ }
2668
+
2669
+ return children || null;
2670
+ }
2671
+ }
2672
+
2673
+ export default ErrorBoundary;
2674
+ `},90550:function(t,e){e.Z=`import React, { useState } from 'react';
2675
+ import { customRequest } from '@alife/magic-request';
2676
+ // import { Button } from '@alife/magic-basic';
2677
+ import { Submit } from '@formily/antd';
2678
+ import { CHAT_TYPE, REQUEST_SUCCESS_CODE } from '../../constants/common';
2679
+ import type { IChatCardBaseProps } from '../../interface/IChatCard';
2680
+
2681
+ export interface IAgentCardSubmitProps extends IChatCardBaseProps {
2682
+ agentId?: string;
2683
+ label?: string;
2684
+ // schema\u914D\u7F6E\u5C5E\u6027
2685
+ submitConfig?: {
2686
+ visible?: boolean;
2687
+ url?: string;
2688
+ text?: string;
2689
+ style?: any;
2690
+ };
2691
+ // \u524D\u7AEF\u914D\u7F6E\u5C5E\u6027
2692
+ onSubmitConfig?: {
2693
+ url?: string;
2694
+ text?: string;
2695
+ style?: any;
2696
+ onSubmit?: (v: any, enableSubmit?: () => void) => void;
2697
+ };
2698
+ }
2699
+ const AgentCardSubmit = (props: IAgentCardSubmitProps) => {
2700
+ const {
2701
+ bizId,
2702
+ bizDomain,
2703
+ agentId,
2704
+ submitConfig,
2705
+
2706
+ onSubmitConfig,
2707
+ ...others
2708
+ } = props || {};
2709
+ const { dialogId, extInfo } = props?.ctx?.meta?.originData || {};
2710
+ const [submitDisabled, setSubmitDisabled] = useState<boolean>(false);
2711
+
2712
+ const enableSubmit = () => {
2713
+ setSubmitDisabled(false);
2714
+ };
2715
+
2716
+ const onSubmitDefault = (inputForm) => {
2717
+ const data = {
2718
+ "subjectId": bizId,
2719
+ "dialogId": dialogId,
2720
+ "formData": inputForm
2721
+ // "content": query,
2722
+ // bizId,
2723
+ // bizDomain,
2724
+ // model: agentId,
2725
+ // chatType: CHAT_TYPE.AGENT_REENTRANT,
2726
+ // params: {
2727
+ // inputForm,
2728
+ // preMessageId: dialogId,
2729
+ // preRequestId: extInfo?.traceId,
2730
+ // },
2731
+ };
2732
+ const url =
2733
+ submitConfig?.url ||
2734
+ onSubmitConfig?.url ||
2735
+ '/cognipilot/api/assistant/chat';
2736
+ customRequest({
2737
+ method: 'POST',
2738
+ url,
2739
+ query: data,
2740
+ })
2741
+ .then((res: any) => {
2742
+ if (res?.code !== REQUEST_SUCCESS_CODE) {
2743
+ // \u8868\u5355\u63D0\u4EA4\u5931\u8D25
2744
+ }
2745
+ })
2746
+ .catch(() => {
2747
+ // \u8868\u5355\u63D0\u4EA4\u5931\u8D25
2748
+ })
2749
+ .finally(() => {
2750
+ enableSubmit();
2751
+ });
2752
+ };
2753
+ // \u63D0\u4EA4\u8868\u5355
2754
+ const onSubmit = async (formValues) => {
2755
+ setSubmitDisabled(true);
2756
+ if (typeof onSubmitConfig?.onSubmit === 'function') {
2757
+ onSubmitConfig?.onSubmit(formValues, enableSubmit);
2758
+ } else {
2759
+ onSubmitDefault(formValues);
2760
+ }
2761
+ };
2762
+ return (
2763
+ <Submit {...others} type="primary" disabled={submitDisabled} onSubmit={onSubmit}>
2764
+ {props?.label || submitConfig?.text || onSubmitConfig?.text || '\u63D0\u4EA4'}
2765
+ </Submit>
2766
+ );
2767
+ };
2768
+ export default AgentCardSubmit;
2769
+ `},43828:function(t,e){e.Z=`// \u622A\u56FE\u6A21\u5F0F\u6837\u5F0F
2770
+ .agent-schema-form-screenshot-container {
2771
+ position: relative;
2772
+ width: 100%;
2773
+
2774
+ img {
2775
+ display: block;
2776
+ width: 100%;
2777
+ height: auto;
2778
+ border-radius: 6px;
2779
+ }
2780
+
2781
+ &.agent-schema-form-error {
2782
+ .agent-schema-form-error-tip {
2783
+ width: 250px;
2784
+ text-align: center;
2785
+ margin-top: 10px;
2786
+ }
2787
+ }
2788
+
2789
+ .agent-schema-form-copy-text-wrapper {
2790
+ position: absolute;
2791
+ bottom: 12px;
2792
+ right: 12px;
2793
+ z-index: 10;
2794
+
2795
+ .agent-schema-form-copy-icon {
2796
+ display: flex;
2797
+ align-items: center;
2798
+ justify-content: center;
2799
+ width: 32px;
2800
+ height: 32px;
2801
+ cursor: pointer;
2802
+
2803
+ .magic-icon {
2804
+ color: #474a52;
2805
+ font-size: 20px;
2806
+
2807
+ &:hover {
2808
+ color: #1b58f4;
2809
+ }
2810
+ }
2811
+ }
2812
+ }
2813
+ }
2814
+
2815
+ // \u7EAF\u6587\u5B57\u6A21\u5F0F\u6837\u5F0F
2816
+ .agent-schema-form-text-container {
2817
+ padding: 16px;
2818
+ background: #fafbfc;
2819
+ border: 1px solid #e6e8eb;
2820
+ border-radius: 6px;
2821
+ line-height: 1.6;
2822
+ color: #1f2329;
2823
+
2824
+ .agent-schema-form-text-item {
2825
+ margin-bottom: 8px;
2826
+ word-break: break-word;
2827
+
2828
+ &:last-child {
2829
+ margin-bottom: 0;
2830
+ }
2831
+ }
2832
+ }
2833
+
2834
+ // \u6587\u672C\u5F39\u7A97\u5185\u5BB9\u6837\u5F0F
2835
+ .agent-schema-form-text-modal-content {
2836
+ max-height: 400px;
2837
+ overflow-y: auto;
2838
+ padding: 16px;
2839
+ background: #fafbfc;
2840
+ border-radius: 4px;
2841
+ line-height: 1.6;
2842
+ color: #1f2329;
2843
+ user-select: text;
2844
+
2845
+ .agent-schema-form-text-item {
2846
+ margin-bottom: 12px;
2847
+ word-break: break-word;
2848
+ white-space: pre-wrap;
2849
+
2850
+ &:last-child {
2851
+ margin-bottom: 0;
2852
+ }
2853
+ }
2854
+ }
2855
+ `},48256:function(t,e){e.Z=`import React, { useEffect, useState } from 'react';
2856
+ import { Button, message, Modal, Tooltip } from '@alife/magic-basic';
2857
+ import { getPreviewUrl } from '@/utils/uploadImage';
2858
+ import { CSECustomIcon } from '../../utils/CSEIconTool';
2859
+ import './ScreenshotView.scss';
2860
+
2861
+ interface ScreenshotViewProps {
2862
+ fileKey?: string;
2863
+ extractedTexts?: string[];
2864
+ }
2865
+
2866
+ /**
2867
+ * AgentSchemaForm \u622A\u56FE\u6A21\u5F0F\u89C6\u56FE\u7EC4\u4EF6
2868
+ * \u5904\u7406\u622A\u56FE\u5C55\u793A\u3001\u9519\u8BEF\u63D0\u793A\u3001\u7EAF\u6587\u5B57\u5C55\u793A\u548C\u6587\u672C\u590D\u5236\u7B49\u529F\u80FD
2869
+ */
2870
+ const ScreenshotView: React.FC<ScreenshotViewProps> = ({ fileKey, extractedTexts }) => {
2871
+ const [textModalVisible, setTextModalVisible] = useState(false);
2872
+ const [imageUrl, setImageUrl] = useState('');
2873
+ const [imageLoading, setImageLoading] = useState(false);
2874
+ const [imageError, setImageError] = useState(false);
2875
+
2876
+ const SCREENSHOT_ERROR_IMAGE =
2877
+ 'https://img.alicdn.com/imgextra/i4/O1CN0166R6uV1Do2s0myH8n_!!6000000000262-2-tps-386-308.png';
2878
+
2879
+ // \u5904\u7406\u590D\u5236\u6587\u672C
2880
+ const handleCopyText = (text: string) => {
2881
+ navigator.clipboard.writeText(text).then(() => {
2882
+ message.success('\u590D\u5236\u6210\u529F');
2883
+ });
2884
+ };
2885
+
2886
+ useEffect(() => {
2887
+ if (fileKey) {
2888
+ setImageLoading(true);
2889
+ setImageError(false);
2890
+ // \u83B7\u53D6\u56FE\u7247\u94FE\u63A5
2891
+ getPreviewUrl(fileKey)
2892
+ .then((res: any) => {
2893
+ setImageUrl(res?.data);
2894
+ setImageLoading(false);
2895
+ setImageError(false);
2896
+ })
2897
+ .catch((error) => {
2898
+ console.error('Failed to get preview URL:', error);
2899
+ setImageError(true);
2900
+ setImageLoading(false);
2901
+ });
2902
+ }
2903
+ }, [fileKey]);
2904
+
2905
+ const renderImageError = () => {
2906
+ // \u56FE\u7247\u52A0\u8F7D\u5931\u8D25\uFF0C\u4F18\u5148\u5C55\u793A\u6587\u672C\u7684\u683C\u5F0F
2907
+ if (extractedTexts && extractedTexts.length > 0) {
2908
+ return (
2909
+ <div className="agent-schema-form-text-container">
2910
+ {extractedTexts.map((text, index) => (
2911
+ <div key={index} className="agent-schema-form-text-item">
2912
+ {text}
2913
+ </div>
2914
+ ))}
2915
+ </div>
2916
+ );
2917
+ }
2918
+
2919
+ return (
2920
+ <div className="agent-schema-form-error">
2921
+ <img width={200} src={SCREENSHOT_ERROR_IMAGE} alt="\u622A\u56FE\u52A0\u8F7D\u5931\u8D25" />
2922
+ <div
2923
+ className="agent-schema-form-error-tip"
2924
+ style={{ width: '200px', textAlign: 'center', marginTop: '10px' }}
2925
+ >
2926
+ \u5206\u4EAB\u5185\u5BB9\u65E0\u6CD5\u6B63\u5E38\u52A0\u8F7D
2927
+ </div>
2928
+ </div>
2929
+ );
2930
+ };
2931
+
2932
+ // \u60C5\u51B51: screenshot \u548C extractedTexts \u90FD\u4E3A\u7A7A - \u663E\u793A\u9519\u8BEF\u5360\u4F4D\u56FE
2933
+ if (!fileKey && (!extractedTexts || extractedTexts.length === 0)) {
2934
+ return (
2935
+ <div className="agent-schema-form-screenshot-container agent-schema-form-error">
2936
+ <img width={250} src={SCREENSHOT_ERROR_IMAGE} alt="\u622A\u56FE\u5931\u8D25" />
2937
+ <div className="agent-schema-form-error-tip">\u5206\u4EAB\u51FA\u4E86\u95EE\u9898\uFF0C\u8BF7\u8054\u7CFB\u5206\u4EAB\u4EBA\u91CD\u65B0\u751F\u6210</div>
2938
+ </div>
2939
+ );
2940
+ }
2941
+
2942
+ // \u60C5\u51B52: screenshot \u4E0D\u5B58\u5728\u4F46 extractedTexts \u5B58\u5728 - \u663E\u793A\u7EAF\u6587\u5B57\u7248\u672C
2943
+ if (!fileKey && extractedTexts && extractedTexts.length > 0) {
2944
+ return (
2945
+ <div className="agent-schema-form-text-container">
2946
+ {extractedTexts.map((text, index) => (
2947
+ <div key={index} className="agent-schema-form-text-item">
2948
+ {text}
2949
+ </div>
2950
+ ))}
2951
+ </div>
2952
+ );
2953
+ }
2954
+
2955
+ // \u60C5\u51B53: screenshot \u548C extractedTexts \u90FD\u5B58\u5728 - \u663E\u793A\u622A\u56FE + \u590D\u5236\u6587\u672C icon
2956
+ if (fileKey && extractedTexts && extractedTexts.length > 0) {
2957
+ const fullText = extractedTexts.join('\\n');
2958
+ return (
2959
+ <div className="agent-schema-form-screenshot-container">
2960
+ {imageLoading && <div style={{ textAlign: 'center', padding: '20px' }}>\u52A0\u8F7D\u4E2D...</div>}
2961
+ {imageError && renderImageError()}
2962
+ {!imageLoading && !imageError && imageUrl && (
2963
+ <img width="100%" src={imageUrl} alt="Screenshot" onError={() => setImageError(true)} />
2964
+ )}
2965
+ {!imageError && !imageLoading && (
2966
+ <div className="agent-schema-form-copy-text-wrapper">
2967
+ <Tooltip title="\u590D\u5236\u6587\u672C">
2968
+ <div
2969
+ className="agent-schema-form-copy-icon"
2970
+ onClick={() => setTextModalVisible(true)}
2971
+ >
2972
+ <CSECustomIcon type="iconfuzhi7" size="small" />
2973
+ </div>
2974
+ </Tooltip>
2975
+ </div>
2976
+ )}
2977
+ <Modal
2978
+ title="\u6587\u672C\u5185\u5BB9"
2979
+ open={textModalVisible}
2980
+ onCancel={() => setTextModalVisible(false)}
2981
+ footer={[
2982
+ <Button
2983
+ key="copy"
2984
+ type="primary"
2985
+ onClick={() => {
2986
+ handleCopyText(fullText);
2987
+ }}
2988
+ >
2989
+ \u590D\u5236\u5168\u90E8
2990
+ </Button>,
2991
+ <Button key="close" onClick={() => setTextModalVisible(false)}>
2992
+ \u5173\u95ED
2993
+ </Button>,
2994
+ ]}
2995
+ width={600}
2996
+ >
2997
+ <div
2998
+ className="agent-schema-form-text-modal-content"
2999
+ onMouseUp={() => {
3000
+ const selection = window.getSelection();
3001
+ if (selection && selection.toString()) {
3002
+ const selectedText = selection.toString();
3003
+ navigator.clipboard.writeText(selectedText).then(() => {
3004
+ message.success('\u5DF2\u590D\u5236\u9009\u4E2D\u6587\u672C');
3005
+ });
3006
+ }
3007
+ }}
3008
+ >
3009
+ {extractedTexts.map((text, index) => (
3010
+ <div key={index} className="agent-schema-form-text-item">
3011
+ {text}
3012
+ </div>
3013
+ ))}
3014
+ </div>
3015
+ </Modal>
3016
+ </div>
3017
+ );
3018
+ }
3019
+
3020
+ // \u60C5\u51B54: \u53EA\u6709 screenshot\uFF0C\u6CA1\u6709 extractedTexts - \u4EC5\u663E\u793A\u622A\u56FE
3021
+ if (fileKey) {
3022
+ return (
3023
+ <div className="agent-schema-form-screenshot-container">
3024
+ {imageLoading && <div style={{ textAlign: 'center', padding: '20px' }}>\u52A0\u8F7D\u4E2D...</div>}
3025
+ {imageError && renderImageError()}
3026
+ {!imageLoading && !imageError && imageUrl && (
3027
+ <img width="100%" src={imageUrl} alt="Screenshot" onError={() => setImageError(true)} />
3028
+ )}
3029
+ </div>
3030
+ );
3031
+ }
3032
+
3033
+ return null;
3034
+ };
3035
+
3036
+ export default ScreenshotView;
3037
+ `},32669:function(t,e){e.Z=`import type { IChatCardBaseProps } from '../../interface/IChatCard';
3038
+
3039
+ // \u8868\u5355\u72B6\u6001
3040
+ export const enum FORM_EDITABLE {
3041
+ DISABLED = 0, // \u7981\u7528
3042
+ EDITABLE = 1, // \u7F16\u8F91
3043
+ READPRETTY = 2, // \u6587\u672C\u5C55\u793A
3044
+ READONLY = 3, // \u53EA\u8BFB
3045
+ }
3046
+
3047
+ export const PATTERN = {
3048
+ 0: 'disabled',
3049
+ 1: 'editable',
3050
+ 2: 'readPretty',
3051
+ 3: 'readOnly',
3052
+ };
3053
+
3054
+ export interface IBaseAgentSchemaFormProps extends IChatCardBaseProps {
3055
+ agentId?: string;
3056
+ cardId?: string;
3057
+ cardSchema?: any;
3058
+ values?: any;
3059
+ editable?: FORM_EDITABLE;
3060
+ // schema\u914D\u7F6E\u5C5E\u6027
3061
+ submitConfig?: {
3062
+ visible?: boolean;
3063
+ url?: string;
3064
+ text?: string;
3065
+ style?: any;
3066
+ };
3067
+ status?: any;
3068
+ }
3069
+ export interface AgentSchemaFormProps extends IBaseAgentSchemaFormProps {
3070
+ // \u524D\u7AEF\u914D\u7F6E\u5C5E\u6027
3071
+ onSubmitConfig?: {
3072
+ url?: string;
3073
+ text?: string;
3074
+ style?: any;
3075
+ // \u63D0\u4EA4\u8868\u5355\u56DE\u8C03
3076
+ onSubmit?: (v: any, enableSubmit?: () => void) => void;
3077
+ };
3078
+ formComponentMap?: any;
3079
+ MemoryMicroComponent?: any;
3080
+ }
3081
+ `},32772:function(t,e){e.Z=`/**
3082
+ * @author linhuiw\u3001\u6D1B\u8428
3083
+ * @description AgentSchemaForm \u6E32\u67D3\u8868\u5355
3084
+ */
3085
+ import React, { useCallback, useEffect, useMemo, useState } from 'react';
3086
+ import { ButtonGroup, SchemaForm } from '@alife/magic-pro';
3087
+ import AssistentError from '../../AssistantChat/AssistentError';
3088
+ import ErrorBoundary from '../../ErrorBoundary';
3089
+ import { JsonParse, JsonStringify } from '../../utils/formatData';
3090
+ import { formDataFormat } from '../../utils/formDataFormat';
3091
+ import { AesCustomLogEventEnum } from '../../utils/log';
3092
+ import AgentCardSubmit from '../AgentCardSubmit';
3093
+ import AgentText from '../AgentText';
3094
+ import PaulButtonGroup from '../PaulButtonGroup';
3095
+ import { PATTERN } from './_interface';
3096
+ import type { AgentSchemaFormProps } from './_interface';
3097
+ import ScreenshotView from './ScreenshotView';
3098
+ import './index.scss';
3099
+
3100
+ const AgentSchemaForm = (props: AgentSchemaFormProps) => {
3101
+ const {
3102
+ bizId,
3103
+ bizDomain,
3104
+ agentId,
3105
+ cardId,
3106
+ cardSchema,
3107
+ values,
3108
+ submitConfig,
3109
+ editable,
3110
+ onSubmitConfig,
3111
+ formComponentMap,
3112
+ MemoryMicroComponent,
3113
+ ctx,
3114
+ } = props || {};
3115
+ const { commonLog } = props?.ctx || {};
3116
+
3117
+ const [schema, setSchema] = useState<any>();
3118
+ const [formValues, setFormValues] = useState<any>(values);
3119
+
3120
+ const { imageUrl, fileKey, extractedTexts, needScreenshot } = cardSchema;
3121
+
3122
+ // \u83B7\u53D6\u8868\u5355\u7684\u5361\u7247\u5E03\u5C40\u7684 UI \u5F62\u6001
3123
+ // const cardSchema = {
3124
+ // "properties": {
3125
+ // // key \u503C\u4E0D\u786E\u5B9A\uFF0C\u53EF\u80FD\u662F wut277nnzai \u4E5F\u53EF\u80FD\u662F\u5176\u4ED6\u503C
3126
+ // "wut277nnzai": {
3127
+ // "x-pattern": "readOnly" || "editable" || "disabled" || "readPretty"
3128
+ // }
3129
+ // }
3130
+ // }
3131
+ const cardSchemaPattern = useMemo(() => {
3132
+ const properties = cardSchema?.['properties'];
3133
+ if (!properties) return undefined;
3134
+
3135
+ // \u52A8\u6001\u83B7\u53D6\u7B2C\u4E00\u4E2A\u5C5E\u6027\u7684key\uFF0C\u800C\u4E0D\u662F\u5199\u6B7B 'wut277nnzai'
3136
+ const firstPropertyKey = Object.keys(properties)[0];
3137
+ return firstPropertyKey ? properties[firstPropertyKey]?.['x-pattern'] : undefined;
3138
+ }, [cardSchema]);
3139
+
3140
+ const pattern: any = PATTERN[editable] || cardSchemaPattern || 'editable';
3141
+
3142
+ useEffect(() => {
3143
+ if (cardSchema) {
3144
+ const formatSchema = JsonParse(cardSchema);
3145
+ setSchema(formatSchema);
3146
+ } else if (cardId) {
3147
+ fetch(\`https://query.aliyun.com/rest/card_market.getCard?id=\${cardId}\`, {
3148
+ method: 'GET',
3149
+ })
3150
+ .then((response) => response.json())
3151
+ .then((res) => {
3152
+ if (res.success) {
3153
+ setSchema(res?.data?.schema);
3154
+ }
3155
+ });
3156
+ }
3157
+ }, [cardId, JsonStringify(cardSchema)]);
3158
+
3159
+ useEffect(() => {
3160
+ setFormValues(values);
3161
+ }, [values]);
3162
+
3163
+ const getFormValues = useCallback(() => {
3164
+ return formValues || values;
3165
+ }, [formValues, values]);
3166
+
3167
+ const PaulButtonGroupCallback = useCallback(
3168
+ (schemaProps) => (
3169
+ <PaulButtonGroup
3170
+ submitConfig={submitConfig}
3171
+ onSubmitConfig={onSubmitConfig}
3172
+ {...schemaProps}
3173
+ bizId={bizId}
3174
+ bizDomain={bizDomain}
3175
+ agentId={agentId}
3176
+ ctx={props?.ctx}
3177
+ getFormValues={getFormValues}
3178
+ />
3179
+ ),
3180
+ [bizId, bizDomain, agentId, getFormValues, JsonStringify(props?.ctx?.meta?.originData)],
3181
+ );
3182
+ const AgentCardSubmitCallback = useCallback(
3183
+ (schemaProps) => (
3184
+ <AgentCardSubmit
3185
+ submitConfig={submitConfig}
3186
+ onSubmitConfig={onSubmitConfig}
3187
+ {...schemaProps}
3188
+ bizId={bizId}
3189
+ bizDomain={bizDomain}
3190
+ agentId={agentId}
3191
+ ctx={props?.ctx}
3192
+ />
3193
+ ),
3194
+ [
3195
+ bizId,
3196
+ bizDomain,
3197
+ agentId,
3198
+ JsonStringify(submitConfig),
3199
+ JsonStringify(onSubmitConfig),
3200
+ JsonStringify(props?.ctx?.meta?.originData),
3201
+ ],
3202
+ );
3203
+ const MemoryMicroComponentCallback = useCallback(
3204
+ (schemaProps) => (
3205
+ <MemoryMicroComponent
3206
+ {...schemaProps}
3207
+ bizId={bizId}
3208
+ bizDomain={bizDomain}
3209
+ agentId={agentId}
3210
+ ctx={props?.ctx}
3211
+ />
3212
+ ),
3213
+ [bizId, bizDomain, agentId, JsonStringify(props?.ctx?.meta?.originData)],
3214
+ );
3215
+
3216
+ return (
3217
+ <ErrorBoundary
3218
+ errorMessage="\u8868\u5355\u6E32\u67D3\u5F02\u5E38\uFF0C\u7D27\u6025\u95EE\u9898\u8BF7\u8054\u7CFB\u5E73\u53F0\u8D1F\u8D23\u4EBA"
3219
+ Fallback={AssistentError}
3220
+ onLog={(error) => {
3221
+ commonLog?.({
3222
+ eventName: AesCustomLogEventEnum.CARD_RENDER_ERROR,
3223
+ subEventName: 'AgentSchemaForm',
3224
+ dataJson: error?.message,
3225
+ });
3226
+ }}
3227
+ >
3228
+ {needScreenshot ? (
3229
+ <ScreenshotView fileKey={fileKey} extractedTexts={extractedTexts} />
3230
+ ) : (
3231
+ <div className={\`agent-schema-form-container\`}>
3232
+ {schema && (
3233
+ <SchemaForm
3234
+ key={\`\${JsonStringify(schema)}-\${JsonStringify(values)}-\${pattern}\`}
3235
+ pattern={pattern}
3236
+ onChange={(data: any) => {
3237
+ setFormValues(data);
3238
+ }}
3239
+ components={{
3240
+ Text: AgentText,
3241
+ PaulButtonGroup: PaulButtonGroupCallback,
3242
+ Submit: AgentCardSubmitCallback,
3243
+ MemoryMicroComponent: MemoryMicroComponentCallback,
3244
+ // \u65B0\u589E\u7EC4\u4EF6\u6CE8\u5165\u903B\u8F91
3245
+ ...(formComponentMap &&
3246
+ Object.entries(formComponentMap).reduce((acc, [key, Component]: any) => {
3247
+ acc[key] = (schemaProps: any) => (
3248
+ <Component
3249
+ {...schemaProps}
3250
+ bizId={bizId}
3251
+ bizDomain={bizDomain}
3252
+ agentId={agentId}
3253
+ editable={editable}
3254
+ ctx={props?.ctx}
3255
+ />
3256
+ );
3257
+ return acc;
3258
+ }, {} as Record<string, React.ComponentType<any>>)),
3259
+ }}
3260
+ schema={schema}
3261
+ value={values}
3262
+ effects={($, { setFieldState }) => {
3263
+ formDataFormat($, { setFieldState });
3264
+ }}
3265
+ expressionScope={{
3266
+ $agentId: agentId,
3267
+ }}
3268
+ >
3269
+ {submitConfig?.visible && (
3270
+ // @ts-ignore
3271
+ <ButtonGroup className="agent-schema-form-submit-button">
3272
+ <AgentCardSubmit
3273
+ bizId={bizId}
3274
+ bizDomain={bizDomain}
3275
+ agentId={agentId}
3276
+ ctx={props?.ctx}
3277
+ submitConfig={submitConfig}
3278
+ onSubmitConfig={onSubmitConfig}
3279
+ />
3280
+ </ButtonGroup>
3281
+ )}
3282
+ </SchemaForm>
3283
+ )}
3284
+ </div>
3285
+ )}
3286
+ </ErrorBoundary>
3287
+ );
3288
+ };
3289
+
3290
+ export default AgentSchemaForm;
3291
+ `},33810:function(t,e){e.Z=`import React from 'react';
3292
+ import './index.scss';
3293
+
3294
+ const AgentText = (props) => {
3295
+ return <div className="agent-tool-form-Agent-container">{props?.value}</div>;
3296
+ };
3297
+
3298
+ export default AgentText;
3299
+ `},77526:function(t,e){e.Z=`.assist-chat-markdown-content {
3300
+ position: relative;
3301
+ overflow: auto;
3302
+ line-height: 1.8;
3303
+
3304
+ table {
3305
+ display: table;
3306
+ border: unset !important;
3307
+ padding: unset !important;
3308
+ border-collapse: separate; // \u9700\u8981\u8BBE\u7F6E\u4E3A separate \u624D\u80FD\u5E94\u7528\u5706\u89D2
3309
+ border-spacing: 0; // \u79FB\u9664\u5355\u5143\u683C\u95F4\u8DDD
3310
+ border-radius: 8px; // \u4E3A\u6574\u4E2A\u8868\u683C\u8BBE\u7F6E\u5706\u89D2
3311
+ overflow: hidden; // \u786E\u4FDD\u5706\u89D2\u6548\u679C\u53EF\u89C1
3312
+
3313
+ thead tr {
3314
+ background: #f5f5f5;
3315
+
3316
+ th {
3317
+ font-weight: 500;
3318
+ font-size: 12px;
3319
+ color: #474a52;
3320
+ line-height: 18px;
3321
+ padding: 9px 16px;
3322
+
3323
+ // \u4E3A\u8868\u5934\u5355\u5143\u683C\u8BBE\u7F6E\u5706\u89D2
3324
+ &:first-child {
3325
+ border-top-left-radius: 8px;
3326
+ }
3327
+
3328
+ &:last-child {
3329
+ border-top-right-radius: 8px;
3330
+ }
3331
+ }
3332
+ }
3333
+
3334
+ tbody tr {
3335
+ // \u4E3A\u6700\u540E\u4E00\u884C\u7684\u5355\u5143\u683C\u8BBE\u7F6E\u5E95\u90E8\u5706\u89D2
3336
+ &:last-child {
3337
+ td:first-child {
3338
+ border-bottom-left-radius: 8px;
3339
+ }
3340
+
3341
+ td:last-child {
3342
+ border-bottom-right-radius: 8px;
3343
+ }
3344
+ }
3345
+
3346
+ td {
3347
+ border-top: none;
3348
+ font-weight: 400;
3349
+ font-size: 12px;
3350
+ color: #474a52;
3351
+ line-height: 20px;
3352
+ padding: 10px 16px;
3353
+ }
3354
+ }
3355
+
3356
+ tr,
3357
+ td,
3358
+ th {
3359
+ border: 1px solid #e6e8eb;
3360
+ }
3361
+
3362
+ thead tr th,
3363
+ tbody tr td {
3364
+ &:not(:first-child) {
3365
+ border-left: none;
3366
+ }
3367
+ }
3368
+
3369
+ // \u786E\u4FDD\u6700\u540E\u4E00\u884C\u6709\u5E95\u90E8\u8FB9\u6846
3370
+ tbody:last-child tr:last-child td {
3371
+ border-bottom: 1px solid #e6e8eb;
3372
+ }
3373
+ }
3374
+
3375
+ img {
3376
+ max-width: 100% !important;
3377
+ }
3378
+
3379
+ b,
3380
+ strong {
3381
+ color: #1f2024;
3382
+ }
3383
+
3384
+ h1 {
3385
+ font-size: 24px;
3386
+ }
3387
+
3388
+ h2 {
3389
+ font-size: 20px;
3390
+ }
3391
+
3392
+ h3 {
3393
+ font-size: 18px;
3394
+ }
3395
+
3396
+ h4 {
3397
+ font-size: 16px;
3398
+ }
3399
+
3400
+ h5,
3401
+ h6 {
3402
+ font-size: 14px;
3403
+ }
3404
+
3405
+ ol {
3406
+ padding-left: 20px;
3407
+ }
3408
+
3409
+ blockquote {
3410
+ margin: 0 0 1em;
3411
+ }
3412
+
3413
+ li {
3414
+ padding-left: 0;
3415
+ margin: 4px 0;
3416
+ }
3417
+
3418
+ hr {
3419
+ background: #e6e8eb;
3420
+ height: 1px;
3421
+ border: none;
3422
+ margin: 14px 0;
3423
+ }
3424
+
3425
+ // Mermaid \u56FE\u8868\u6837\u5F0F
3426
+ .mermaid-wrapper {
3427
+ margin: 16px 0;
3428
+ text-align: center;
3429
+ background: transparent;
3430
+
3431
+ svg {
3432
+ max-width: 100%;
3433
+ height: auto;
3434
+ display: inline-block;
3435
+ }
3436
+ }
3437
+
3438
+ // LaTeX \u4EE3\u7801\u5757\u6837\u5F0F\uFF08\`\`\`latex \u683C\u5F0F\uFF09
3439
+ .latex-wrapper {
3440
+ margin: 0;
3441
+ padding: 0;
3442
+ background: transparent;
3443
+ text-align: center;
3444
+ overflow-x: auto;
3445
+
3446
+ .katex {
3447
+ font-size: 1.1em;
3448
+ }
3449
+ }
3450
+
3451
+ // \u79FB\u9664 LaTeX \u4EE3\u7801\u5757\u7236\u7EA7 pre \u6807\u7B7E\u7684 border \u548C\u80CC\u666F
3452
+ pre:has(.latex-wrapper) {
3453
+ border: none !important;
3454
+ background: transparent !important;
3455
+ padding: 0 !important;
3456
+ margin: 0 !important;
3457
+ }
3458
+
3459
+ // LaTeX \u516C\u5F0F\u6837\u5F0F\uFF08$...$ \u548C $$...$$ \u683C\u5F0F\uFF09
3460
+ .katex-display {
3461
+ margin: 16px 0;
3462
+ overflow: auto hidden;
3463
+
3464
+ > .katex {
3465
+ text-align: center;
3466
+ }
3467
+ }
3468
+
3469
+ .katex {
3470
+ font-size: 1.1em;
3471
+ }
3472
+
3473
+ // \u884C\u5185\u516C\u5F0F\u6837\u5F0F\u4F18\u5316
3474
+ p .katex {
3475
+ font-size: 1em;
3476
+ }
3477
+ }
3478
+ `},12485:function(t,e){e.Z=`import React, { useEffect, useRef } from 'react';
3479
+ import { previewImg } from '@alife/goc-utils';
3480
+ import type { MarkDownProps } from '@alife/magic-chat-ui';
3481
+ import { MarkDown } from '@alife/magic-chat-ui';
3482
+ import katex from 'katex';
3483
+ import mermaid from 'mermaid';
3484
+ import rehypeHighlight from 'rehype-highlight';
3485
+ import rehypeKatex from 'rehype-katex';
3486
+ import rehypeRaw from 'rehype-raw';
3487
+ import remarkGfm from 'remark-gfm';
3488
+ import remarkMath from 'remark-math';
3489
+ import 'katex/dist/katex.min.css';
3490
+ import './index.scss';
3491
+
3492
+ export interface IProps extends MarkDownProps {
3493
+ logKey?: string;
3494
+ logParams?: Record<string, any>;
3495
+ [key: string]: any;
3496
+ }
3497
+
3498
+ // LaTeX \u6E32\u67D3\u7EC4\u4EF6
3499
+ const LatexBlock = ({ children }: { children: string }) => {
3500
+ const ref = useRef<HTMLDivElement>(null);
3501
+ const [html, setHtml] = React.useState<string>('');
3502
+
3503
+ useEffect(() => {
3504
+ try {
3505
+ const trimmedContent = String(children).trim();
3506
+
3507
+ // \u4F7F\u7528 KaTeX \u6E32\u67D3 LaTeX \u516C\u5F0F\uFF08\u5757\u7EA7\u663E\u793A\uFF09
3508
+ const renderedHtml = katex.renderToString(trimmedContent, {
3509
+ displayMode: true, // \u5757\u7EA7\u663E\u793A
3510
+ throwOnError: false, // \u9047\u5230\u9519\u8BEF\u4E0D\u629B\u51FA\u5F02\u5E38
3511
+ output: 'html',
3512
+ });
3513
+
3514
+ setHtml(renderedHtml);
3515
+ } catch (error) {
3516
+ console.error('[LatexBlock] \u6E32\u67D3\u5931\u8D25:', error);
3517
+ setHtml(\`<div class="latex-error">LaTeX \u6E32\u67D3\u9519\u8BEF: \${error}</div>\`);
3518
+ }
3519
+ }, [children]);
3520
+
3521
+ return <div ref={ref} className="latex-wrapper" dangerouslySetInnerHTML={{ __html: html }} />;
3522
+ };
3523
+
3524
+ // Mermaid \u6E32\u67D3\u7EC4\u4EF6
3525
+ const MermaidBlock = ({ children }: { children: string }) => {
3526
+ const ref = useRef<HTMLDivElement>(null);
3527
+ const [svg, setSvg] = React.useState<string>('');
3528
+ const renderTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null); // \u9632\u6296\u5B9A\u65F6\u5668
3529
+ const lastSuccessContentRef = useRef<string>(''); // \u4E0A\u6B21\u6210\u529F\u6E32\u67D3\u7684\u5185\u5BB9
3530
+
3531
+ useEffect(() => {
3532
+ const trimmedContent = String(children).trim();
3533
+
3534
+ // \u6E05\u9664\u4E4B\u524D\u7684\u5B9A\u65F6\u5668
3535
+ if (renderTimerRef.current) {
3536
+ clearTimeout(renderTimerRef.current);
3537
+ }
3538
+
3539
+ // \u9632\u6296\uFF1A\u5EF6\u8FDF\u6E32\u67D3\uFF0C\u907F\u514D\u6D41\u5F0F\u8F93\u51FA\u65F6\u7684\u9891\u7E41\u6E32\u67D3
3540
+ // \u5982\u679C\u5185\u5BB9\u8FD8\u5728\u5FEB\u901F\u53D8\u5316\u4E2D\uFF08\u6D41\u5F0F\u8F93\u51FA\uFF09\uFF0C\u7B49\u5F85 300ms \u540E\u518D\u6E32\u67D3
3541
+ renderTimerRef.current = setTimeout(() => {
3542
+ const renderMermaid = async () => {
3543
+ try {
3544
+ mermaid.initialize({
3545
+ startOnLoad: false,
3546
+ theme: 'default',
3547
+ securityLevel: 'loose',
3548
+ suppressErrorRendering: true, // \u963B\u6B62 mermaid \u5728 DOM \u4E2D\u63D2\u5165\u9519\u8BEF SVG
3549
+ fontFamily: 'inherit', // \u7EE7\u627F\u7236\u5143\u7D20\u5B57\u4F53
3550
+ logLevel: 'error', // \u53EA\u8F93\u51FA\u9519\u8BEF\u65E5\u5FD7\uFF0C\u51CF\u5C11\u63A7\u5236\u53F0\u566A\u97F3
3551
+ });
3552
+
3553
+ const id = \`mermaid-\${Date.now()}-\${Math.random().toString().replace('.', '')}\`;
3554
+
3555
+ const { svg: renderedSvg, bindFunctions } = await mermaid.render(id, trimmedContent);
3556
+
3557
+ // \u6E32\u67D3\u6210\u529F\uFF1A\u66F4\u65B0 SVG \u548C\u6210\u529F\u5185\u5BB9\u8BB0\u5F55
3558
+ setSvg(renderedSvg);
3559
+ lastSuccessContentRef.current = trimmedContent;
3560
+
3561
+ // \u7ED1\u5B9A\u4EA4\u4E92\u529F\u80FD\uFF08\u5982\u70B9\u51FB\u4E8B\u4EF6\u3001\u5DE5\u5177\u63D0\u793A\u7B49\uFF09
3562
+ if (bindFunctions && ref.current) {
3563
+ try {
3564
+ bindFunctions(ref.current);
3565
+ } catch (bindError) {
3566
+ console.warn('[MermaidBlock] \u7ED1\u5B9A\u4EA4\u4E92\u529F\u80FD\u5931\u8D25:', bindError);
3567
+ }
3568
+ }
3569
+ } catch (err) {
3570
+ // \u6E32\u67D3\u5F02\u5E38\uFF1A\u4FDD\u6301\u4E4B\u524D\u6210\u529F\u7684\u6E32\u67D3\u7ED3\u679C
3571
+ console.warn('[MermaidBlock] \u6E32\u67D3\u5931\u8D25\uFF08\u53EF\u80FD\u662F\u6D41\u5F0F\u8F93\u51FA\u4E2D\uFF09\uFF0C\u4FDD\u6301\u4E4B\u524D\u7684\u6E32\u67D3\u7ED3\u679C:', err);
3572
+ // \u4E0D\u8C03\u7528 setSvg('')\uFF0C\u4FDD\u6301\u4E4B\u524D\u7684\u6E32\u67D3\u7ED3\u679C
3573
+ }
3574
+ };
3575
+
3576
+ renderMermaid();
3577
+ }, 100); // 100ms \u9632\u6296\u5EF6\u8FDF
3578
+
3579
+ // \u6E05\u7406\u51FD\u6570\uFF1A\u6E05\u9664\u9632\u6296\u5B9A\u65F6\u5668
3580
+ return () => {
3581
+ if (renderTimerRef.current) {
3582
+ clearTimeout(renderTimerRef.current);
3583
+ }
3584
+ };
3585
+ }, [children]);
3586
+
3587
+ // \u53EA\u5728\u6709\u6709\u6548 SVG \u5185\u5BB9\u65F6\u624D\u6E32\u67D3
3588
+ if (!svg) {
3589
+ return null;
3590
+ }
3591
+
3592
+ return <div ref={ref} className="mermaid-wrapper" dangerouslySetInnerHTML={{ __html: svg }} />;
3593
+ };
3594
+
3595
+ // \u81EA\u5B9A\u4E49\u4EE3\u7801\u5757\u7EC4\u4EF6
3596
+ const CodeBlock = ({ inline, className, children, ...props }: any) => {
3597
+ const match = /language-(\\w+)/.exec(className || '');
3598
+ const language = match ? match[1] : '';
3599
+
3600
+ // \u6E32\u67D3 LaTeX \u516C\u5F0F\u5757
3601
+ if (language === 'latex' && !inline) {
3602
+ return <LatexBlock>{children}</LatexBlock>;
3603
+ }
3604
+
3605
+ // \u6E32\u67D3 Mermaid \u56FE\u8868
3606
+ if (language === 'mermaid' && !inline) {
3607
+ return <MermaidBlock>{children}</MermaidBlock>;
3608
+ }
3609
+
3610
+ // \u666E\u901A\u4EE3\u7801\u5757\uFF0C\u4F7F\u7528\u9ED8\u8BA4\u6E32\u67D3
3611
+ return (
3612
+ <code className={className} {...props}>
3613
+ {children}
3614
+ </code>
3615
+ );
3616
+ };
3617
+
3618
+ export default ({ data, linkTarget = '_blank', className = '', ...otherProps }: IProps) => {
3619
+ // \u4ECE otherProps \u4E2D\u63D0\u53D6\u5E76\u6392\u9664\u5DF2\u5904\u7406\u7684 props
3620
+ const {
3621
+ remarkPlugins: extraRemarkPlugins,
3622
+ rehypePlugins: extraRehypePlugins,
3623
+ components: extraComponents,
3624
+ ...restProps
3625
+ } = otherProps;
3626
+
3627
+ const finalRemarkPlugins = [
3628
+ [remarkGfm, { singleTilde: false }] as any, // \u7EE7\u627F\u9ED8\u8BA4\uFF1AGitHub Flavored Markdown
3629
+ remarkMath as any, // \u65B0\u589E\uFF1ALaTeX \u6570\u5B66\u516C\u5F0F\u89E3\u6790
3630
+ ...(extraRemarkPlugins || []),
3631
+ ];
3632
+
3633
+ const finalRehypePlugins = [
3634
+ [rehypeHighlight, { ignoreMissing: true, detect: true }] as any, // \u7EE7\u627F\u9ED8\u8BA4\uFF1A\u4EE3\u7801\u9AD8\u4EAE
3635
+ rehypeRaw as any, // \u7EE7\u627F\u9ED8\u8BA4\uFF1A\u652F\u6301 HTML
3636
+ rehypeKatex as any, // \u65B0\u589E\uFF1ALaTeX \u516C\u5F0F\u6E32\u67D3
3637
+ ...(extraRehypePlugins || []),
3638
+ ];
3639
+
3640
+ const finalComponents = {
3641
+ code: CodeBlock, // \u81EA\u5B9A\u4E49\u4EE3\u7801\u5757\uFF0C\u652F\u6301 Mermaid
3642
+ ...(extraComponents || {}),
3643
+ };
3644
+
3645
+ return (
3646
+ <MarkDown
3647
+ hasOptions
3648
+ previewImg={previewImg}
3649
+ linkTarget={linkTarget}
3650
+ transformLinkUri={(url) => url}
3651
+ className={\`assist-chat-markdown-content \${className}\`}
3652
+ remarkPlugins={finalRemarkPlugins}
3653
+ rehypePlugins={finalRehypePlugins}
3654
+ components={finalComponents}
3655
+ {...restProps}
3656
+ >
3657
+ {data}
3658
+ </MarkDown>
3659
+ );
3660
+ };
3661
+ `},66507:function(t,e){e.Z=`import React, { useState } from 'react';
3662
+ import { Select } from '@alife/magic-basic';
3663
+ import { customRequest } from '@alife/magic-request';
3664
+ import { useDebounceFn } from 'ahooks';
3665
+ import { get } from 'lodash';
3666
+
3667
+ export default (props: any) => {
3668
+ const { value, onChange, apiConfig, fieldMapping, ...restProps } = props;
3669
+
3670
+ const [loading, setLoading] = useState(false);
3671
+ const [options, setOptions] = useState([]);
3672
+
3673
+ const fetchOptions = async (searchText: string) => {
3674
+ if (!searchText) {
3675
+ setOptions([]);
3676
+ return;
3677
+ }
3678
+ setLoading(true);
3679
+
3680
+ try {
3681
+ // 1. \u6784\u9020\u52A8\u6001\u641C\u7D22\u53C2\u6570
3682
+ let dynamicSearchParam = {};
3683
+ const { searchParamKey } = apiConfig;
3684
+ if (typeof searchParamKey === 'object' && searchParamKey !== null) {
3685
+ // \u5982\u679C\u662F\u5BF9\u8C61\u7C7B\u578B
3686
+ const keyName = searchParamKey.name;
3687
+ const val = searchParamKey.wrapAs === 'array' ? [searchText] : searchText;
3688
+ dynamicSearchParam = { [keyName]: val };
3689
+ } else if (typeof searchParamKey === 'string') {
3690
+ // \u5982\u679C\u662F\u5B57\u7B26\u4E32\u7C7B\u578B
3691
+ dynamicSearchParam = { [searchParamKey]: searchText };
3692
+ }
3693
+ // 1.1 \u5408\u5E76\u9759\u6001\u53C2\u6570\u548C\u52A8\u6001\u53C2\u6570
3694
+ const params = { ...apiConfig.extraParams, ...dynamicSearchParam };
3695
+
3696
+ // 2. \u53D1\u8D77\u8BF7\u6C42
3697
+ const response = await customRequest({
3698
+ url: apiConfig.url,
3699
+ method: apiConfig.method || 'GET',
3700
+ query: params,
3701
+ });
3702
+
3703
+ // 3. \u89E3\u6790\u6570\u636E
3704
+ const userList = get(response, fieldMapping.dataPath, []);
3705
+ const formattedOptions: any = userList.map((user) => ({
3706
+ value: user[fieldMapping.valueField],
3707
+ label: user[fieldMapping.labelField],
3708
+ }));
3709
+ setOptions(formattedOptions);
3710
+ } catch (error) {
3711
+ console.error('Failed to fetch options:', error);
3712
+ setOptions([]);
3713
+ } finally {
3714
+ setLoading(false);
3715
+ }
3716
+ };
3717
+
3718
+ const { run: debouncedFetchUsers } = useDebounceFn(fetchOptions, { wait: 500 });
3719
+
3720
+ return (
3721
+ <Select
3722
+ value={value}
3723
+ onChange={onChange}
3724
+ options={options}
3725
+ loading={loading}
3726
+ onSearch={debouncedFetchUsers}
3727
+ showSearch
3728
+ filterOption={false}
3729
+ {...restProps}
3730
+ />
3731
+ );
3732
+ };
3733
+ `},30725:function(t,e){e.Z=`.paul-button-group-modal {
3734
+
3735
+ .ant-modal-header {
3736
+ border-bottom: 0;
3737
+ }
3738
+
3739
+ .ant-modal-footer {
3740
+ border-top: 0;
3741
+ }
3742
+
3743
+ .ant-modal-body {
3744
+ padding: 0 12px;
3745
+ }
3746
+
3747
+ .ant-form-item {
3748
+ margin-bottom: 12px;
3749
+ }
3750
+
3751
+ }
3752
+ `},16913:function(t,e){e.Z=`/**
3753
+ * @author linhuiw\u3001\u6D1B\u8428
3754
+ * @description \u6309\u94AE\u7EC4\u7EC4\u4EF6
3755
+ * value: { {configId: 29, opType: 'createSubmit'}, title: "\u63D0\u4EA4" }
3756
+ */
3757
+ import React, { useCallback, useMemo, useState } from 'react';
3758
+ import { Button, Form, Input, Modal, Space } from '@alife/magic-basic';
3759
+ import { customRequest } from '@alife/magic-request';
3760
+ import { REQUEST_SUCCESS_CODE } from '../../constants/common';
3761
+ import Select from './Select';
3762
+ import './index.scss';
3763
+
3764
+ // \u7EC4\u4EF6\u6620\u5C04\u8868\uFF0C\u7528\u4E8E\u6839\u636E schema \u7684 component \u5B57\u7B26\u4E32\u52A8\u6001\u6E32\u67D3\u7EC4\u4EF6
3765
+ const componentMap: { [key: string]: React.ComponentType<any> } = {
3766
+ 'Input.TextArea': Input.TextArea,
3767
+ Selector: Select,
3768
+ // \u672A\u6765\u53EF\u4EE5\u6269\u5C55\u66F4\u591A\u81EA\u5B9A\u4E49\u8868\u5355\u7EC4\u4EF6
3769
+ };
3770
+
3771
+ /**
3772
+ * \u52A8\u6001\u6E32\u67D3\u8868\u5355\u9879
3773
+ * @param fieldSchema - \u5355\u4E2A\u5B57\u6BB5\u7684 schema
3774
+ */
3775
+ const renderFormItem = (fieldSchema: any) => {
3776
+ const { name, label, component, componentProps, rules } = fieldSchema;
3777
+ const FormComponent = componentMap[component];
3778
+
3779
+ if (!FormComponent) {
3780
+ console.error(\`Component not found for type: \${component}\`);
3781
+ return null;
3782
+ }
3783
+
3784
+ return (
3785
+ <Form.Item key={name} name={name} label={label} rules={rules}>
3786
+ <FormComponent {...componentProps} />
3787
+ </Form.Item>
3788
+ );
3789
+ };
3790
+
3791
+ // \u4E3A props \u5B9A\u4E49\u4E00\u4E2A\u66F4\u6E05\u6670\u7684\u63A5\u53E3
3792
+ interface PaulButtonGroupProps {
3793
+ buttonGroupConfig: any[]; // ButtonGroup \u7684Schema\u7684\u914D\u7F6E
3794
+ enterParamsConfig: any; // \u5165\u53C2\u89E3\u6790\u7684Schema\u914D\u7F6E
3795
+ offset?: number;
3796
+ getFormValues: any;
3797
+ // \u53EF\u4EE5\u4ECE x-component-props \u7EE7\u627F\u5176\u4ED6\u5C5E\u6027
3798
+ [key: string]: any;
3799
+ }
3800
+
3801
+ export default (props: PaulButtonGroupProps) => {
3802
+ const {
3803
+ bizId,
3804
+ value, // \u540E\u7AEF\u524D\u7F6E\u6B65\u9AA4\u5165\u53C2
3805
+ buttonGroupConfig = [], // \u4ECE props \u83B7\u53D6\u6309\u94AE\u914D\u7F6E\uFF0C\u5E76\u63D0\u4F9B\u9ED8\u8BA4\u7A7A\u6570\u7EC4
3806
+ enterParamsConfig = {}, // \u5165\u53C2\u914D\u7F6E
3807
+ onSubmitConfig,
3808
+ } = props;
3809
+
3810
+ const { dialogId } = props?.ctx?.meta?.originData || {};
3811
+
3812
+ const [modalVisible, setModalVisible] = useState(false);
3813
+ const [currentButtonConfig, setCurrentButtonConfig] = useState<any>(null);
3814
+ const [currentParams, setCurrentParams] = useState<any>(null);
3815
+ const [submitDisabled, setSubmitDisabled] = useState<boolean>(false);
3816
+
3817
+ const [form] = Form.useForm();
3818
+
3819
+ const onSubmitDefault = useCallback(
3820
+ (inputForm) => {
3821
+ const data = {
3822
+ subjectId: bizId,
3823
+ dialogId: dialogId,
3824
+ formData: inputForm,
3825
+ };
3826
+ const url = '/cognipilot/api/assistant/chat';
3827
+ customRequest({
3828
+ method: 'POST',
3829
+ url,
3830
+ query: data,
3831
+ })
3832
+ .then((res: any) => {
3833
+ if (res?.code !== REQUEST_SUCCESS_CODE) {
3834
+ // \u8868\u5355\u63D0\u4EA4\u5931\u8D25
3835
+ }
3836
+ })
3837
+ .catch(() => {
3838
+ // \u8868\u5355\u63D0\u4EA4\u5931\u8D25
3839
+ })
3840
+ .finally(() => {
3841
+ setSubmitDisabled(false);
3842
+ });
3843
+ },
3844
+ [bizId, dialogId],
3845
+ );
3846
+
3847
+ // \u5904\u7406\u8868\u5355\u63D0\u4EA4
3848
+ const onSubmit = useCallback(
3849
+ async (formValues) => {
3850
+ setSubmitDisabled(true);
3851
+ if (typeof onSubmitConfig?.onSubmit === 'function') {
3852
+ onSubmitConfig?.onSubmit(formValues, () => setSubmitDisabled(false));
3853
+ } else {
3854
+ onSubmitDefault(formValues);
3855
+ }
3856
+ },
3857
+ [onSubmitDefault, onSubmitConfig],
3858
+ );
3859
+
3860
+ // \u70B9\u51FB\u6309\u94AE\u65F6\u7684\u6838\u5FC3\u5904\u7406\u903B\u8F91
3861
+ const handleButtonClick = useCallback(
3862
+ (buttonConfig: any, params: any) => {
3863
+ setCurrentParams(params);
3864
+
3865
+ if (buttonConfig?.opType === 'createSubmit') {
3866
+ const values = props.getFormValues();
3867
+
3868
+ onSubmit({ ...params, ...values });
3869
+ } else if (buttonConfig.onClickAction) {
3870
+ // \u5982\u679C\u6709 action\uFF0C\u5219\u8BBE\u7F6E\u5F53\u524D\u914D\u7F6E\u5E76\u663E\u793A\u5F39\u7A97
3871
+ setCurrentButtonConfig(buttonConfig);
3872
+ setModalVisible(true);
3873
+ } else {
3874
+ // \u5426\u5219\uFF0C\u76F4\u63A5\u63D0\u4EA4
3875
+ onSubmit(params);
3876
+ }
3877
+ },
3878
+ [onSubmit],
3879
+ );
3880
+
3881
+ // \u5904\u7406\u5F39\u7A97\u786E\u8BA4\u4E8B\u4EF6
3882
+ const handleOk = () => {
3883
+ form
3884
+ .validateFields()
3885
+ .then((vals) => {
3886
+ onSubmit({ ...currentParams, ...vals });
3887
+ form.resetFields();
3888
+ setModalVisible(false);
3889
+ setCurrentButtonConfig(null);
3890
+ setCurrentParams(null);
3891
+ })
3892
+ .catch(() => {
3893
+ // \u8868\u5355\u6821\u9A8C\u5931\u8D25
3894
+ });
3895
+ };
3896
+
3897
+ // \u5904\u7406\u5F39\u7A97\u53D6\u6D88\u4E8B\u4EF6
3898
+ const handleCancel = () => {
3899
+ form.resetFields();
3900
+ setModalVisible(false);
3901
+ setCurrentButtonConfig(null);
3902
+ };
3903
+
3904
+ // \u4F7F\u7528 useMemo \u6E32\u67D3\u6309\u94AE\u7EC4\uFF0C\u4EE5\u907F\u514D\u4E0D\u5FC5\u8981\u7684\u91CD\u6E32\u67D3
3905
+ const btns = useMemo(() => {
3906
+ return (Array.isArray(value) ? value : [])
3907
+ .map((btn: any) => {
3908
+ let btnConfig: any = null;
3909
+ if (btn?.useFrontConfig) {
3910
+ btnConfig = buttonGroupConfig.find(
3911
+ (item) => item.opType === btn?.[enterParamsConfig.path]?.opType,
3912
+ );
3913
+ } else if (btn?.submitParams) {
3914
+ btnConfig = {
3915
+ title: btn?.title,
3916
+ ...btn?.submitParams,
3917
+ 'x-component-props': btn?.['x-component-props'] || {},
3918
+ };
3919
+ } else {
3920
+ btnConfig = buttonGroupConfig.find(
3921
+ (item) => item.opType === btn?.[enterParamsConfig.path]?.opType,
3922
+ );
3923
+ }
3924
+
3925
+ return (
3926
+ btnConfig && (
3927
+ <Button
3928
+ key={btnConfig.opType}
3929
+ onClick={() =>
3930
+ handleButtonClick(btnConfig, btn?.[enterParamsConfig.path || 'submitParams'])
3931
+ }
3932
+ disabled={submitDisabled}
3933
+ {...btnConfig?.['x-component-props']}
3934
+ >
3935
+ {btnConfig.title}
3936
+ </Button>
3937
+ )
3938
+ );
3939
+ })
3940
+ .filter(Boolean);
3941
+ }, [buttonGroupConfig, value, enterParamsConfig, submitDisabled, handleButtonClick]); // \u4F9D\u8D56\u9879\u662F buttonGroupConfig \u6570\u7EC4
3942
+
3943
+ const actionSchema = currentButtonConfig?.onClickAction;
3944
+
3945
+ return (
3946
+ <>
3947
+ <Space>{btns}</Space>
3948
+
3949
+ {/* \u4EC5\u5728 actionSchema \u5B58\u5728\u65F6\u6E32\u67D3 Modal\uFF0C\u786E\u4FDD\u5176\u5185\u5BB9\u662F\u6700\u65B0\u7684 */}
3950
+ {actionSchema && (
3951
+ <Modal
3952
+ wrapClassName="paul-button-group-modal"
3953
+ title={actionSchema.modalProps?.title || '\u64CD\u4F5C\u786E\u8BA4'}
3954
+ open={modalVisible}
3955
+ onOk={handleOk}
3956
+ onCancel={handleCancel}
3957
+ okText={actionSchema.modalProps?.okText || '\u786E\u5B9A'}
3958
+ cancelText={actionSchema.modalProps?.cancelText || '\u53D6\u6D88'}
3959
+ destroyOnClose // \u5173\u95ED\u65F6\u9500\u6BC1\u5185\u90E8\u7EC4\u4EF6\uFF0C\u907F\u514D\u72B6\u6001\u6B8B\u7559
3960
+ >
3961
+ <Form form={form} layout="vertical">
3962
+ {Array.isArray(actionSchema.formSchema?.fields) &&
3963
+ actionSchema.formSchema?.fields.map(renderFormItem)}
3964
+ </Form>
3965
+ </Modal>
3966
+ )}
3967
+ </>
3968
+ );
3969
+ };
3970
+ `},4202:function(t,e){e.Z=`export const REQUERT_SUCCESS_CODE = 0;
3971
+
3972
+ export const REQUEST_SUCCESS_CODE = '200';
3973
+
3974
+ export const initPlaceholder = '\u8BF7\u8F93\u5165\uFF0C\u6362\u884C command+\u56DE\u8F66 / ctrl+\u56DE\u8F66';
3975
+
3976
+ export const DEFAULT_AGENT_ICON = 'iconagent-tool-o';
3977
+ // \u56DE\u8F66
3978
+ export const ENTER_KEY_CODE = 13;
3979
+
3980
+ export const CHAT_TYPE = {
3981
+ GENERATE: 'GENERATE',
3982
+ SEARCH: 'SEARCH',
3983
+ TOOL: 'TOOL',
3984
+ AGENT: 'AGENT',
3985
+ AGENT_REENTRANT: 'AGENT_REENTRANT',
3986
+ };
3987
+
3988
+ export const BIZ_DOMAIN_TYPE = {
3989
+ /**
3990
+ * \u5DE5\u5355
3991
+ */
3992
+ CSE: 'CSE',
3993
+ /**
3994
+ * \u70ED\u7EBF
3995
+ */
3996
+ CSE_HOTLINE_IM: 'CSE_HOTLINE_IM',
3997
+ /**
3998
+ * AES
3999
+ */
4000
+ AES: 'AES',
4001
+ /**
4002
+ * \u4E91\u53F0
4003
+ */
4004
+ YUN_TAI: 'YUN_TAI',
4005
+ /**
4006
+ * \u4E91\u4F01
4007
+ */
4008
+ PUBLIC_AES_YUNQI: 'PUBLIC_AES_YUNQI',
4009
+ };
4010
+
4011
+ /**
4012
+ * \u5DE5\u5177\u7C7B\u578B
4013
+ */
4014
+ export const AGENT_TPYE = {
4015
+ TOOL_V2: ['COMMON_TOOL_V2'], // \u5DE5\u5177 3
4016
+ TOOL: ['COMMON_TOOL'], // \u5DE5\u5177 2
4017
+ AGENT_SINGLE: ['AGENT_TASK'], // \u5355\u8F6E 0
4018
+ AGENT_MULTI: ['AGENT_PLAN', 'AGENT_RULE'], // \u591A\u8F6E 1
4019
+ };
4020
+
4021
+ /**
4022
+ * \u667A\u80FD\u5DE5\u5177\u7C7B\u578B
4023
+ */
4024
+ export const COPILOT_TOOL_TYPE_ENUM = {
4025
+ // \u6211\u6536\u85CF\u7684
4026
+ CUSTOM_AGENT: 'CUSTOM_AGENT',
4027
+ // \u4E1A\u52A1\u6D41\u5E02\u573A
4028
+ AGENT: 'AGENT',
4029
+ // \u5DE5\u5177
4030
+ TOOL: 'TOOL',
4031
+ // \u56FA\u5B9A\u7684\u4E1A\u52A1\u6D41
4032
+ SHOW_AGENT: 'SHOW_AGENT',
4033
+ // \u4E1A\u52A1\u6D41\u5927\u8D5B
4034
+ COMPETITION_AGENT: 'COMPETITION_AGENT',
4035
+ };
4036
+ /**
4037
+ * \u5927\u6A21\u578B\u641C\u7D22\u7C7B\u578B
4038
+ */
4039
+ export const SEARCH_TYPE = {
4040
+ DOC_CHAT_SEARCH: 'DOC_CHAT_SEARCH', // \u6587\u6863\u70B9\u51FB\u751F\u6210\u65B9\u6848\u95EE\u7B54
4041
+ COMMON_SEARCH: 'COMMON_SEARCH', // \u666E\u901A\u95EE\u7B54
4042
+ REWRITE_SEARCH: 'REWRITE_SEARCH', // \u70B9\u51FB\u6539\u5199\u7684\u5185\u5BB9\u95EE\u7B54
4043
+ INTELLIGENCE_CHAT_SEARCH: 'INTELLIGENCE_CHAT_SEARCH', // \u70B9\u51FB\u667A\u80FD\u641C\u7D22\u95EE\u7B54
4044
+ ORIGINAL_SENTENCE_SEARCH: 'ORIGINAL_SENTENCE_SEARCH', // \u539F\u53E5\u641C\u7D22
4045
+ GUESS_SEARCH: 'GUESS_SEARCH', // \u731C\u95EE
4046
+ THIRD_PARTY_MODEL_SEARCH: 'THIRD_PARTY_MODEL_SEARCH', // \u4E09\u65B9\u6A21\u578B
4047
+ SUB_PROBLEM_SEARCH: 'SUB_PROBLEM_SEARCH', // \u5B50\u95EE\u9898\u641C\u7D22
4048
+ };
4049
+ export enum ChatTypeEnum {
4050
+ // \u804A\u5929\u6A21\u5F0F
4051
+ Chat = 'chat',
4052
+ // \u5DE5\u5177\u6A21\u5F0F
4053
+ Tool = 'tool',
4054
+ // \u5DE5\u5177\u5355\u5361\u7247\u6A21\u5F0F
4055
+ ToolExecution = 'toolExecution',
4056
+ }
4057
+ `},39374:function(t,e){e.Z=`import { createFromIconfontCN } from '@alife/magic-icons';
4058
+
4059
+ declare global {
4060
+ interface Window {
4061
+ uniqueIconfontSymbolUrl?: string;
4062
+ }
4063
+ }
4064
+
4065
+ const CSECustomIcon = createFromIconfontCN({
4066
+ scriptUrl: window?.uniqueIconfontSymbolUrl || '//at.alicdn.com/t/a/font_2186508_s77dlziunf.js',
4067
+ });
4068
+
4069
+ export { CSECustomIcon };
4070
+ `},46825:function(t,e){e.Z=`import { LifeCycleTypes } from '@alife/magic-pro';
4071
+ import moment from 'moment';
4072
+
4073
+ const formatComponentsArr = ['datepicker', 'datepicker2', 'rangepicker', 'rangetimepicker']; // \u8868\u5355\u91CC\u7684\u65F6\u95F4\u7EC4\u4EF6
4074
+ const dateFormat = 'YYYY-MM-DD';
4075
+ const timeFormat = 'YYYY-MM-DD HH:mm:ss';
4076
+
4077
+ // \u5904\u7406\u65F6\u95F4\u683C\u5F0F
4078
+ const handleFormat = (value, format = dateFormat) => {
4079
+ if (value && Array.isArray(value)) {
4080
+ return value?.map((tms) => {
4081
+ return moment(tms).format(format);
4082
+ });
4083
+ }
4084
+ if (value) {
4085
+ return moment(value).format(format);
4086
+ }
4087
+ };
4088
+
4089
+ export const formDataFormat = ($, { setFieldState }) => {
4090
+ $(LifeCycleTypes?.ON_FIELD_VALUE_CHANGE, '*').subscribe((_e) => {
4091
+ const { props: eProps = {}, name, value } = _e || {};
4092
+ const { 'x-component': xComponent, 'x-component-props': xComponentProps } = eProps || {};
4093
+
4094
+ // \u65F6\u95F4\u7EC4\u4EF6 \u540E\u7AEF\u5E0C\u671B\u63D0\u4EA4\u7684\u503C \u4F9D\u636Eformat\u4F20\u5165
4095
+ // todo \u53BB\u6389\u7279\u6B8A\u903B\u8F91\u6539\u4E3A\u5C01\u88C5\u7EC4\u4EF6
4096
+ if (xComponent && formatComponentsArr.includes(xComponent)) {
4097
+ let formatValue;
4098
+ const showTimeFormat = xComponentProps?.showTime ? timeFormat : dateFormat;
4099
+ switch (xComponent) {
4100
+ case 'datepicker':
4101
+ case 'datepicker2':
4102
+ formatValue = handleFormat(value, showTimeFormat);
4103
+ break;
4104
+ case 'rangepicker':
4105
+ formatValue = handleFormat(value, showTimeFormat);
4106
+ break;
4107
+ case 'rangetimepicker':
4108
+ formatValue = handleFormat(value, timeFormat);
4109
+ break;
4110
+ default:
4111
+ break;
4112
+ }
4113
+ setFieldState(name, (_state) => {
4114
+ _state.value = formatValue;
4115
+ });
4116
+ }
4117
+ });
4118
+ };
4119
+ `},69139:function(t,e){e.Z=`import React from 'react';
4120
+ import { urlToLink } from '@alife/goc-utils';
4121
+
4122
+ /**
4123
+ * markdown\u6570\u636E\u683C\u5F0F\u5316
4124
+ * @param content - markdown\u5185\u5BB9
4125
+ * @param apiHost - API\u4E3B\u673A\u5730\u5740\uFF0C\u7528\u4E8E\u8F6C\u6362XHS CDN\u56FE\u7247URL
4126
+ */
4127
+ export const formatMarkdownData = (content, apiHost?: string) => {
4128
+ if (content) {
4129
+ const str = String(content)?.replace('[DONE]', '').replace(/~/g, '\uFF5E').replace(/\uFF5E\uFF5E/g, '~~');
4130
+ /**
4131
+ * .replace(/\\[\\[(\\d+)\\]\\((.*?)\\)\\]/g, '[$1]($2)') \u5339\u914Dmarkdown\u8BED\u6CD5\u5E26\u94FE\u63A5\u7684\u89D2\u6807,\u5E76\u4E14\u6709[]\u5B57\u7B26\u5305\u88F9\uFF0C
4132
+ * \u5982\uFF1A[[1](\u94FE\u63A5)], \u66FF\u6362\u6210 "[[1]](\u94FE\u63A5)" \u683C\u5F0F, ReactMarkdown\u7EC4\u4EF6\u6E32\u67D3\u65F6\uFF0C\u4EE5\u6B64\u5224\u65AD\u4F9D\u636E\uFF0C\u4E3A\u89D2\u6807\u5199\u7279\u6B8A\u7684\u6837\u5F0F
4133
+ */
4134
+ const withReferenceLinks = str?.replace(/\\[\\[(\\d+)\\]\\((.*?)\\)\\]/g, '[[$1]]($2)');
4135
+
4136
+ /**
4137
+ * Transform XHS CDN image URLs to use internal proxy
4138
+ * Matches markdown image syntax: ![alt](url)
4139
+ * Only enabled when window._grayConfig.cdnProxy is true
4140
+ */
4141
+ let withTransformedImages = withReferenceLinks;
4142
+
4143
+ // Check gray config before transforming images
4144
+ if ((window as any)?._grayConfig?.cdnProxy === true) {
4145
+ withTransformedImages = withReferenceLinks?.replace(
4146
+ /!\\[([^\\]]*)\\]\\(([^)]+)\\)/g,
4147
+ (match, altText, imageUrl) => {
4148
+ // Check if URL contains XHS CDN host
4149
+ if (imageUrl.includes('sns-webpic-qc.xhscdn.com') && apiHost) {
4150
+ const encodedUrl = encodeURIComponent(imageUrl);
4151
+ const proxyUrl = \`\${apiHost}/application/api/tools/image-view/viewImageContent?imageUrl=\${encodedUrl}\`;
4152
+
4153
+ return \`![\${altText}](\${proxyUrl})\`;
4154
+ }
4155
+ return match; // Keep original if not XHS CDN or no apiHost provided
4156
+ }
4157
+ );
4158
+ }
4159
+
4160
+ return withTransformedImages;
4161
+ } else {
4162
+ return '';
4163
+ }
4164
+ };
4165
+
4166
+ /** \u6570\u636E\u683C\u5F0F\u5316\u4E3Ajson */
4167
+ export const JsonParse = (data) => {
4168
+ let result = data;
4169
+ try {
4170
+ if (data) {
4171
+ if (typeof data === 'string') {
4172
+ result = JSON.parse(data);
4173
+ } else if (typeof data === 'object') {
4174
+ result = data;
4175
+ }
4176
+ }
4177
+ } catch (error) {
4178
+ console.error(error);
4179
+ }
4180
+ return result;
4181
+ };
4182
+
4183
+ /** json\u6570\u636Estringify */
4184
+ export const JsonStringify = (obj) => {
4185
+ let result = obj;
4186
+ try {
4187
+ if (obj) {
4188
+ if (typeof obj === 'string') {
4189
+ result = obj;
4190
+ } else if (typeof obj === 'object') {
4191
+ result = JSON.stringify(obj);
4192
+ }
4193
+ }
4194
+ } catch (error) {
4195
+ console.error(error);
4196
+ }
4197
+ return result;
4198
+ };
4199
+
4200
+ // \u5339\u914DHTML\u6807\u7B7E
4201
+ export const htmlReg =
4202
+ /<(br|basefont|hr|input|source|frame|param|area|meta|!--|col|link|option|base|img|wbr|!DOCTYPE).*?>|<(a|abbr|acronym|address|applet|article|aside|audio|b|bdi|bdo|big|blockquote|body|button|canvas|caption|center|cite|code|colgroup|command|datalist|dd|del|details|dfn|dialog|dir|div|dl|dt|em|embed|fieldset|figcaption|figure|font|footer|form|frameset|head|header|hgroup|h1|h2|h3|h4|h5|h6|html|i|iframe|ins|kbd|keygen|label|legend|li|map|mark|menu|meter|nav|noframes|noscript|object|ol|optgroup|output|p|pre|progress|q|rp|rt|ruby|s|samp|script|section|select|small|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|track|tt|u|ul|var|video).*?<\\/\\2>/i;
4203
+
4204
+ // \u5339\u914DURL
4205
+ // eslint-disable-next-line no-useless-escape
4206
+ export const urlPattern = /\\b(?:https?|ftp):\\/\\/[a-z0-9-+&@#\\/%?=~_|!:,.;]*[a-z0-9-+&@#\\/%=~_|]/gim;
4207
+
4208
+ // \u8BC6\u522BURL\u94FE\u63A5, \u8FD4\u56DEHtml
4209
+ export const formatTextContentHtml = (content, subset = ['<', '>', '&']) => {
4210
+ if (!content) return null;
4211
+
4212
+ if (typeof content !== 'string') return content;
4213
+
4214
+ return (
4215
+ <span
4216
+ dangerouslySetInnerHTML={{
4217
+ __html: urlToLink(content, subset),
4218
+ }}
4219
+ />
4220
+ );
4221
+ };
4222
+
4223
+ export const formatToLowerCase = (str) => {
4224
+ try {
4225
+ if (typeof str !== 'string') {
4226
+ return str;
4227
+ }
4228
+ return str.toLowerCase();
4229
+ } catch (error) {}
4230
+ };
4231
+ `},26678:function(t,e){e.Z=`import { isFunc } from '@alife/goc-utils';
4232
+
4233
+ export enum AesCustomLogEventEnum {
4234
+ APUSH_MSG = 'apush-msg',
4235
+ APUSH_CONNECT = 'apush-connect',
4236
+ APUSH_RECONNECT = 'apush-reconnect',
4237
+ APUSH_DISCONNECT = 'apush-disconnect',
4238
+ APUSH_CLOSE = 'apush-close',
4239
+ COPILOT_COMMON_USAGE = 'copilot_common_usage',
4240
+ LLM_COMMON_USAGE = 'llm_common_usage',
4241
+ AGENT_COMMON_USAGE = 'agent_common_usage',
4242
+ CARD_RENDER_ERROR = 'card_render_error',
4243
+ }
4244
+
4245
+ type AesKeyList = 'et' | 'c1' | 'c2' | 'c3' | 'c4' | 'c5' | 'c6' | 'c7' | 'c8' | 'c9' | 'c10';
4246
+
4247
+ type ICustomPayload = {
4248
+ readonly [key in AesKeyList]?: any;
4249
+ };
4250
+
4251
+ export const setAesCustomEvent = (eventName: string, payload: ICustomPayload = {}) => {
4252
+ if (isFunc((window as any).AESPluginEvent)) {
4253
+ (window as any).AESPluginEvent(eventName, {
4254
+ et: 'OTHER',
4255
+ ...(payload || {}),
4256
+ });
4257
+ }
4258
+ };
4259
+
4260
+ export const setGoldLog = (logKey = '', action = '', param: Record<string, any> = {}) => {
4261
+ if (logKey === '' || action === '') {
4262
+ return;
4263
+ }
4264
+ let paramStr = '';
4265
+ Object.keys(param || {}).forEach((key) => {
4266
+ paramStr += \`\${key}=\${param[key]}&\`;
4267
+ });
4268
+ if ((window as any).goldlog) {
4269
+ (window as any).goldlog.record(logKey, action, paramStr, 'GET');
4270
+ }
4271
+ };
4272
+ `}}]);