@touchvue/chat 1.0.0-beta.4 → 1.0.0-beta.40

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 (899) hide show
  1. package/README.md +70 -70
  2. package/es/_virtual/_plugin-vue_export-helper.mjs +10 -0
  3. package/es/_virtual/_plugin-vue_export-helper.mjs.map +1 -0
  4. package/es/index.mjs.map +1 -1
  5. package/es/node_modules/.pnpm/dompurify@3.3.0/node_modules/dompurify/dist/purify.es.mjs +1380 -0
  6. package/es/node_modules/.pnpm/dompurify@3.3.0/node_modules/dompurify/dist/purify.es.mjs.map +1 -0
  7. package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.mjs +469 -0
  8. package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.mjs.map +1 -0
  9. package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.mjs +63 -0
  10. package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.mjs.map +1 -0
  11. package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.mjs +9 -0
  12. package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.mjs.map +1 -0
  13. package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.mjs +9 -0
  14. package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.mjs.map +1 -0
  15. package/es/node_modules/.pnpm/html2canvas@1.4.1/node_modules/html2canvas/dist/html2canvas.esm.mjs +7824 -0
  16. package/es/node_modules/.pnpm/html2canvas@1.4.1/node_modules/html2canvas/dist/html2canvas.esm.mjs.map +1 -0
  17. package/es/node_modules/.pnpm/{linkify-it@3.0.3 → linkify-it@5.0.0}/node_modules/linkify-it/index.mjs +162 -157
  18. package/es/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.mjs.map +1 -0
  19. package/es/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.mjs +195 -0
  20. package/es/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.mjs.map +1 -0
  21. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/common/html_blocks.mjs +6 -3
  22. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.mjs.map +1 -0
  23. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.mjs +26 -0
  24. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.mjs.map +1 -0
  25. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.mjs +291 -0
  26. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.mjs.map +1 -0
  27. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.mjs +6 -0
  28. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.mjs.map +1 -0
  29. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +81 -0
  30. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs.map +1 -0
  31. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/helpers/parse_link_label.mjs +18 -10
  32. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.mjs.map +1 -0
  33. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +70 -0
  34. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.mjs.map +1 -0
  35. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/index.mjs +81 -107
  36. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.mjs.map +1 -0
  37. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.mjs +135 -0
  38. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.mjs.map +1 -0
  39. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.mjs +63 -0
  40. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.mjs.map +1 -0
  41. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.mjs +197 -0
  42. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.mjs.map +1 -0
  43. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/presets/commonmark.mjs +24 -11
  44. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.mjs.map +1 -0
  45. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/presets/default.mjs +21 -10
  46. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.mjs.map +1 -0
  47. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/presets/zero.mjs +25 -11
  48. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.mjs.map +1 -0
  49. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/renderer.mjs +72 -95
  50. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.mjs.map +1 -0
  51. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/ruler.mjs +37 -50
  52. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.mjs.map +1 -0
  53. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_block/blockquote.mjs +48 -121
  54. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.mjs.map +1 -0
  55. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_block/code.mjs +13 -12
  56. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.mjs.map +1 -0
  57. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_block/fence.mjs +30 -29
  58. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.mjs.map +1 -0
  59. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.mjs +55 -0
  60. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.mjs.map +1 -0
  61. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.mjs +44 -0
  62. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.mjs.map +1 -0
  63. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.mjs +73 -0
  64. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.mjs.map +1 -0
  65. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_block/lheading.mjs +33 -29
  66. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.mjs.map +1 -0
  67. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_block/list.mjs +92 -123
  68. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.mjs.map +1 -0
  69. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.mjs +49 -0
  70. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.mjs.map +1 -0
  71. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.mjs +211 -0
  72. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.mjs.map +1 -0
  73. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_block/state_block.mjs +49 -61
  74. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.mjs.map +1 -0
  75. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.mjs +232 -0
  76. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.mjs.map +1 -0
  77. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_core/block.mjs +5 -5
  78. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.mjs.map +1 -0
  79. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_core/inline.mjs +6 -6
  80. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.mjs.map +1 -0
  81. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.mjs +138 -0
  82. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.mjs.map +1 -0
  83. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_core/normalize.mjs +8 -7
  84. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.mjs.map +1 -0
  85. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_core/replacements.mjs +32 -25
  86. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.mjs.map +1 -0
  87. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +50 -55
  88. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.mjs.map +1 -0
  89. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_core/state_core.mjs +5 -7
  90. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.mjs.map +1 -0
  91. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.mjs +46 -0
  92. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.mjs.map +1 -0
  93. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.mjs +75 -0
  94. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.mjs.map +1 -0
  95. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/backticks.mjs +20 -18
  96. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.mjs.map +1 -0
  97. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs +33 -34
  98. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs.map +1 -0
  99. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/emphasis.mjs +48 -52
  100. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.mjs.map +1 -0
  101. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.mjs +55 -0
  102. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.mjs.map +1 -0
  103. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.mjs +73 -0
  104. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.mjs.map +1 -0
  105. package/es/node_modules/.pnpm/{markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text_collapse.mjs → markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs} +17 -9
  106. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs.map +1 -0
  107. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +54 -0
  108. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.mjs.map +1 -0
  109. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/image.mjs +31 -43
  110. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.mjs.map +1 -0
  111. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/link.mjs +34 -41
  112. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.mjs.map +1 -0
  113. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.mjs +59 -0
  114. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.mjs.map +1 -0
  115. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/newline.mjs +11 -13
  116. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.mjs.map +1 -0
  117. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +31 -62
  118. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.mjs.map +1 -0
  119. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs +42 -42
  120. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs.map +1 -0
  121. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.mjs +89 -0
  122. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.mjs.map +1 -0
  123. package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/token.mjs +22 -29
  124. package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.mjs.map +1 -0
  125. package/es/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.mjs +5 -0
  126. package/es/{_virtual → node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl}/index.mjs.map +1 -1
  127. package/es/node_modules/.pnpm/{mdurl@1.0.1/node_modules/mdurl → mdurl@2.0.0/node_modules/mdurl/lib}/decode.mjs +32 -40
  128. package/es/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.mjs.map +1 -0
  129. package/es/node_modules/.pnpm/{mdurl@1.0.1/node_modules/mdurl → mdurl@2.0.0/node_modules/mdurl/lib}/encode.mjs +22 -29
  130. package/es/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.mjs.map +1 -0
  131. package/es/node_modules/.pnpm/{mdurl@1.0.1/node_modules/mdurl → mdurl@2.0.0/node_modules/mdurl/lib}/format.mjs +5 -5
  132. package/es/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.mjs.map +1 -0
  133. package/es/node_modules/.pnpm/{mdurl@1.0.1/node_modules/mdurl → mdurl@2.0.0/node_modules/mdurl/lib}/parse.mjs +101 -84
  134. package/es/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.mjs.map +1 -0
  135. package/es/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.mjs +443 -0
  136. package/es/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.mjs.map +1 -0
  137. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.mjs +4 -0
  138. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.mjs.map +1 -0
  139. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.mjs +4 -0
  140. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.mjs.map +1 -0
  141. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.mjs +4 -0
  142. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.mjs.map +1 -0
  143. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.mjs +4 -0
  144. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.mjs.map +1 -0
  145. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.mjs +4 -0
  146. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.mjs.map +1 -0
  147. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.mjs +7 -0
  148. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.mjs.map +1 -0
  149. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.mjs +4 -0
  150. package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.mjs.map +1 -0
  151. package/es/package.json.css +1 -1
  152. package/es/package.json.mjs +1 -1
  153. package/es/packages/components/index.mjs +1 -1
  154. package/es/packages/components/resolver.mjs.map +1 -1
  155. package/es/packages/components/touchchat/component/AiRobot/HelloChat.vue.mjs +3 -2
  156. package/es/packages/components/touchchat/component/AiRobot/HelloChat.vue.mjs.map +1 -1
  157. package/es/packages/components/touchchat/component/AiRobot/HelloChat.vue2.mjs +219 -159
  158. package/es/packages/components/touchchat/component/AiRobot/HelloChat.vue2.mjs.map +1 -1
  159. package/es/packages/components/touchchat/component/AiRobot/face.vue.mjs +3 -2
  160. package/es/packages/components/touchchat/component/AiRobot/face.vue.mjs.map +1 -1
  161. package/es/packages/components/touchchat/component/AiRobot/face.vue2.mjs +27 -13
  162. package/es/packages/components/touchchat/component/AiRobot/face.vue2.mjs.map +1 -1
  163. package/es/packages/components/touchchat/component/AiRobot/letter.vue.mjs +3 -2
  164. package/es/packages/components/touchchat/component/AiRobot/letter.vue.mjs.map +1 -1
  165. package/es/packages/components/touchchat/component/AiRobot/letter.vue2.mjs +169 -40
  166. package/es/packages/components/touchchat/component/AiRobot/letter.vue2.mjs.map +1 -1
  167. package/es/packages/components/touchchat/component/AiRobot/meterialPrepare.vue.mjs +3 -2
  168. package/es/packages/components/touchchat/component/AiRobot/meterialPrepare.vue.mjs.map +1 -1
  169. package/es/packages/components/touchchat/component/AiRobot/meterialPrepare.vue2.mjs +15 -10
  170. package/es/packages/components/touchchat/component/AiRobot/meterialPrepare.vue2.mjs.map +1 -1
  171. package/es/packages/components/touchchat/component/AiRobot/start.vue.mjs +3 -2
  172. package/es/packages/components/touchchat/component/AiRobot/start.vue.mjs.map +1 -1
  173. package/es/packages/components/touchchat/component/AiRobot/start.vue2.mjs +18 -11
  174. package/es/packages/components/touchchat/component/AiRobot/start.vue2.mjs.map +1 -1
  175. package/es/packages/components/touchchat/component/CardView.vue.mjs +3 -2
  176. package/es/packages/components/touchchat/component/CardView.vue.mjs.map +1 -1
  177. package/es/packages/components/touchchat/component/CardView.vue2.mjs +66 -42
  178. package/es/packages/components/touchchat/component/CardView.vue2.mjs.map +1 -1
  179. package/es/packages/components/touchchat/component/FileContent.vue.mjs +7 -0
  180. package/es/packages/components/touchchat/component/FileContent.vue.mjs.map +1 -0
  181. package/es/packages/components/touchchat/component/FileContent.vue2.mjs +201 -0
  182. package/es/packages/components/touchchat/component/FileContent.vue2.mjs.map +1 -0
  183. package/es/packages/components/touchchat/component/FileView.vue.mjs +3 -2
  184. package/es/packages/components/touchchat/component/FileView.vue.mjs.map +1 -1
  185. package/es/packages/components/touchchat/component/FileView.vue2.mjs +17 -4
  186. package/es/packages/components/touchchat/component/FileView.vue2.mjs.map +1 -1
  187. package/es/packages/components/touchchat/component/HelloChat.vue.mjs +3 -2
  188. package/es/packages/components/touchchat/component/HelloChat.vue.mjs.map +1 -1
  189. package/es/packages/components/touchchat/component/HelloChat.vue2.mjs +26 -14
  190. package/es/packages/components/touchchat/component/HelloChat.vue2.mjs.map +1 -1
  191. package/es/packages/components/touchchat/component/ImageFile.vue.mjs +7 -0
  192. package/es/packages/components/touchchat/component/ImageFile.vue.mjs.map +1 -0
  193. package/es/packages/components/touchchat/component/ImageFile.vue2.mjs +162 -0
  194. package/es/packages/components/touchchat/component/ImageFile.vue2.mjs.map +1 -0
  195. package/es/packages/components/touchchat/component/ImageView.vue.mjs +3 -2
  196. package/es/packages/components/touchchat/component/ImageView.vue.mjs.map +1 -1
  197. package/es/packages/components/touchchat/component/ImageView.vue2.mjs +1 -1
  198. package/es/packages/components/touchchat/component/ImageView.vue2.mjs.map +1 -1
  199. package/es/packages/components/touchchat/component/LinkView.vue.mjs +3 -2
  200. package/es/packages/components/touchchat/component/LinkView.vue.mjs.map +1 -1
  201. package/es/packages/components/touchchat/component/LinkView.vue2.mjs +19 -5
  202. package/es/packages/components/touchchat/component/LinkView.vue2.mjs.map +1 -1
  203. package/es/packages/components/touchchat/component/MarkLayer.vue.mjs +7 -0
  204. package/es/packages/components/touchchat/component/MarkLayer.vue.mjs.map +1 -0
  205. package/es/packages/components/touchchat/component/MarkLayer.vue2.mjs +56 -0
  206. package/es/packages/components/touchchat/component/MarkLayer.vue2.mjs.map +1 -0
  207. package/es/packages/components/touchchat/component/ModuleSelect.vue.mjs +7 -0
  208. package/es/packages/components/touchchat/component/ModuleSelect.vue.mjs.map +1 -0
  209. package/es/packages/components/touchchat/component/ModuleSelect.vue2.mjs +121 -0
  210. package/es/packages/components/touchchat/component/ModuleSelect.vue2.mjs.map +1 -0
  211. package/es/packages/components/touchchat/component/PDFFile.vue.mjs +7 -0
  212. package/es/packages/components/touchchat/component/PDFFile.vue.mjs.map +1 -0
  213. package/es/packages/components/touchchat/component/PDFFile.vue2.mjs +205 -0
  214. package/es/packages/components/touchchat/component/PDFFile.vue2.mjs.map +1 -0
  215. package/es/packages/components/touchchat/component/RealtimeVoice.vue.mjs +7 -0
  216. package/es/packages/components/touchchat/component/RealtimeVoice.vue.mjs.map +1 -0
  217. package/es/packages/components/touchchat/component/RealtimeVoice.vue2.mjs +160 -0
  218. package/es/packages/components/touchchat/component/RealtimeVoice.vue2.mjs.map +1 -0
  219. package/es/packages/components/touchchat/component/Screenshot.vue.mjs +7 -0
  220. package/es/packages/components/touchchat/component/Screenshot.vue.mjs.map +1 -0
  221. package/es/packages/components/touchchat/component/Screenshot.vue2.mjs +199 -0
  222. package/es/packages/components/touchchat/component/Screenshot.vue2.mjs.map +1 -0
  223. package/es/packages/components/touchchat/component/ThoughtChain.vue.mjs +7 -0
  224. package/es/packages/components/touchchat/component/ThoughtChain.vue.mjs.map +1 -0
  225. package/es/packages/components/touchchat/component/ThoughtChain.vue2.mjs +69 -0
  226. package/es/packages/components/touchchat/component/ThoughtChain.vue2.mjs.map +1 -0
  227. package/es/packages/components/touchchat/component/UploadView.vue.mjs +7 -0
  228. package/es/packages/components/touchchat/component/UploadView.vue.mjs.map +1 -0
  229. package/es/packages/components/touchchat/component/UploadView.vue2.mjs +146 -0
  230. package/es/packages/components/touchchat/component/UploadView.vue2.mjs.map +1 -0
  231. package/es/packages/components/touchchat/component/UploadView_api.vue.mjs +7 -0
  232. package/es/packages/components/touchchat/component/UploadView_api.vue.mjs.map +1 -0
  233. package/es/packages/components/touchchat/component/UploadView_api.vue2.mjs +166 -0
  234. package/es/packages/components/touchchat/component/UploadView_api.vue2.mjs.map +1 -0
  235. package/es/packages/components/touchchat/component/VoiceView.vue.mjs +7 -0
  236. package/es/packages/components/touchchat/component/VoiceView.vue.mjs.map +1 -0
  237. package/es/packages/components/touchchat/component/VoiceView.vue2.mjs +165 -0
  238. package/es/packages/components/touchchat/component/VoiceView.vue2.mjs.map +1 -0
  239. package/es/packages/components/touchchat/img/file/doc.png.mjs +4 -0
  240. package/es/packages/components/touchchat/img/file/doc.png.mjs.map +1 -0
  241. package/es/packages/components/touchchat/img/file/docx.png.mjs +4 -0
  242. package/es/packages/components/touchchat/img/file/docx.png.mjs.map +1 -0
  243. package/es/packages/components/touchchat/img/file/gif.png.mjs +4 -0
  244. package/es/packages/components/touchchat/img/file/gif.png.mjs.map +1 -0
  245. package/es/packages/components/touchchat/img/file/html.png.mjs +4 -0
  246. package/es/packages/components/touchchat/img/file/html.png.mjs.map +1 -0
  247. package/es/packages/components/touchchat/img/file/jpg.png.mjs +4 -0
  248. package/es/packages/components/touchchat/img/file/jpg.png.mjs.map +1 -0
  249. package/es/packages/components/touchchat/img/file/mp3.png.mjs +4 -0
  250. package/es/packages/components/touchchat/img/file/mp3.png.mjs.map +1 -0
  251. package/es/packages/components/touchchat/img/file/mp4.png.mjs +4 -0
  252. package/es/packages/components/touchchat/img/file/mp4.png.mjs.map +1 -0
  253. package/es/packages/components/touchchat/img/file/music.png.mjs +4 -0
  254. package/es/packages/components/touchchat/img/file/music.png.mjs.map +1 -0
  255. package/es/packages/components/touchchat/img/file/pdf.png.mjs +4 -0
  256. package/es/packages/components/touchchat/img/file/pdf.png.mjs.map +1 -0
  257. package/es/packages/components/touchchat/img/file/png.png.mjs +4 -0
  258. package/es/packages/components/touchchat/img/file/png.png.mjs.map +1 -0
  259. package/es/packages/components/touchchat/img/file/ppt.png.mjs +4 -0
  260. package/es/packages/components/touchchat/img/file/ppt.png.mjs.map +1 -0
  261. package/es/packages/components/touchchat/img/file/pptx.png.mjs +4 -0
  262. package/es/packages/components/touchchat/img/file/pptx.png.mjs.map +1 -0
  263. package/es/packages/components/touchchat/img/file/txt.png.mjs +4 -0
  264. package/es/packages/components/touchchat/img/file/txt.png.mjs.map +1 -0
  265. package/es/packages/components/touchchat/img/file/xls.png.mjs +4 -0
  266. package/es/packages/components/touchchat/img/file/xls.png.mjs.map +1 -0
  267. package/es/packages/components/touchchat/img/file/xlsx.png.mjs +4 -0
  268. package/es/packages/components/touchchat/img/file/xlsx.png.mjs.map +1 -0
  269. package/es/packages/components/touchchat/img/svg/reset.svg.mjs +4 -0
  270. package/es/packages/components/touchchat/img/svg/reset.svg.mjs.map +1 -0
  271. package/es/packages/components/touchchat/index.mjs +5 -5
  272. package/es/packages/components/touchchat/index.mjs.map +1 -1
  273. package/es/packages/components/touchchat/src/AiChat/AgentsView.vue.mjs +7 -0
  274. package/es/packages/components/touchchat/src/AiChat/AgentsView.vue.mjs.map +1 -0
  275. package/es/packages/components/touchchat/src/AiChat/AgentsView.vue2.mjs +59 -0
  276. package/es/packages/components/touchchat/src/AiChat/AgentsView.vue2.mjs.map +1 -0
  277. package/es/packages/components/touchchat/src/AiChat/AiMessage.vue.mjs +3 -2
  278. package/es/packages/components/touchchat/src/AiChat/AiMessage.vue.mjs.map +1 -1
  279. package/es/packages/components/touchchat/src/AiChat/AiMessage.vue2.mjs +218 -131
  280. package/es/packages/components/touchchat/src/AiChat/AiMessage.vue2.mjs.map +1 -1
  281. package/es/packages/components/touchchat/src/AiChat/Chat/TouchChat.mjs +18 -0
  282. package/es/packages/components/touchchat/src/AiChat/Chat/TouchChat.mjs.map +1 -0
  283. package/es/packages/components/touchchat/src/AiChat/ChatInput.vue.mjs +3 -2
  284. package/es/packages/components/touchchat/src/AiChat/ChatInput.vue.mjs.map +1 -1
  285. package/es/packages/components/touchchat/src/AiChat/ChatInput.vue2.mjs +444 -44
  286. package/es/packages/components/touchchat/src/AiChat/ChatInput.vue2.mjs.map +1 -1
  287. package/es/packages/components/touchchat/src/AiChat/HistoryList.vue.mjs +3 -2
  288. package/es/packages/components/touchchat/src/AiChat/HistoryList.vue.mjs.map +1 -1
  289. package/es/packages/components/touchchat/src/AiChat/HistoryList.vue2.mjs +180 -98
  290. package/es/packages/components/touchchat/src/AiChat/HistoryList.vue2.mjs.map +1 -1
  291. package/es/packages/components/touchchat/src/AiChat/HistorySidebar.vue.mjs +3 -2
  292. package/es/packages/components/touchchat/src/AiChat/HistorySidebar.vue.mjs.map +1 -1
  293. package/es/packages/components/touchchat/src/AiChat/HistorySidebar.vue2.mjs +29 -12
  294. package/es/packages/components/touchchat/src/AiChat/HistorySidebar.vue2.mjs.map +1 -1
  295. package/es/packages/components/touchchat/src/AiChat/MessageActions.vue.mjs +3 -2
  296. package/es/packages/components/touchchat/src/AiChat/MessageActions.vue.mjs.map +1 -1
  297. package/es/packages/components/touchchat/src/AiChat/MessageActions.vue2.mjs +134 -61
  298. package/es/packages/components/touchchat/src/AiChat/MessageActions.vue2.mjs.map +1 -1
  299. package/es/packages/components/touchchat/src/AiChat/SiderBarView.vue.mjs +3 -2
  300. package/es/packages/components/touchchat/src/AiChat/SiderBarView.vue.mjs.map +1 -1
  301. package/es/packages/components/touchchat/src/AiChat/SiderBarView.vue2.mjs +14 -8
  302. package/es/packages/components/touchchat/src/AiChat/SiderBarView.vue2.mjs.map +1 -1
  303. package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue.mjs +7 -0
  304. package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue.mjs.map +1 -0
  305. package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue2.mjs +995 -0
  306. package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue2.mjs.map +1 -0
  307. package/es/packages/components/touchchat/src/AiChat/TouchChat.vue.mjs +3 -2
  308. package/es/packages/components/touchchat/src/AiChat/TouchChat.vue.mjs.map +1 -1
  309. package/es/packages/components/touchchat/src/AiChat/TouchChat.vue2.mjs +753 -384
  310. package/es/packages/components/touchchat/src/AiChat/TouchChat.vue2.mjs.map +1 -1
  311. package/es/packages/components/touchchat/src/AiChat/TouchHistory.vue.mjs +3 -2
  312. package/es/packages/components/touchchat/src/AiChat/TouchHistory.vue.mjs.map +1 -1
  313. package/es/packages/components/touchchat/src/AiChat/TouchHistory.vue2.mjs +327 -123
  314. package/es/packages/components/touchchat/src/AiChat/TouchHistory.vue2.mjs.map +1 -1
  315. package/es/packages/components/touchchat/src/AiChat/UserMessage.vue.mjs +3 -2
  316. package/es/packages/components/touchchat/src/AiChat/UserMessage.vue.mjs.map +1 -1
  317. package/es/packages/components/touchchat/src/AiChat/UserMessage.vue2.mjs +128 -61
  318. package/es/packages/components/touchchat/src/AiChat/UserMessage.vue2.mjs.map +1 -1
  319. package/es/packages/components/touchchat/src/index.vue.mjs +3 -2
  320. package/es/packages/components/touchchat/src/index.vue.mjs.map +1 -1
  321. package/es/packages/components/touchchat/src/index.vue2.mjs +221 -128
  322. package/es/packages/components/touchchat/src/index.vue2.mjs.map +1 -1
  323. package/es/packages/components/touchchat/src/types/a2a.mjs +11 -0
  324. package/es/packages/components/touchchat/src/types/a2a.mjs.map +1 -0
  325. package/es/packages/components/touchchat/utils/a2aService.mjs +309 -0
  326. package/es/packages/components/touchchat/utils/a2aService.mjs.map +1 -0
  327. package/es/packages/components/touchchat/utils/fetchStream.mjs +6 -1
  328. package/es/packages/components/touchchat/utils/fetchStream.mjs.map +1 -1
  329. package/es/packages/components/touchchat/utils/markdown.mjs +3 -3
  330. package/es/packages/components/touchchat/utils/markdown.mjs.map +1 -1
  331. package/es/packages/utils/config.mjs.map +1 -1
  332. package/es/packages/utils/types.mjs.map +1 -1
  333. package/global.d.ts +2 -2
  334. package/lib/_virtual/_plugin-vue_export-helper.js +14 -0
  335. package/lib/_virtual/_plugin-vue_export-helper.js.map +1 -0
  336. package/lib/index.js.map +1 -1
  337. package/lib/node_modules/.pnpm/dompurify@3.3.0/node_modules/dompurify/dist/purify.es.js +1384 -0
  338. package/lib/node_modules/.pnpm/dompurify@3.3.0/node_modules/dompurify/dist/purify.es.js.map +1 -0
  339. package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js +477 -0
  340. package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js.map +1 -0
  341. package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.js +66 -0
  342. package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.js.map +1 -0
  343. package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.js +13 -0
  344. package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.js.map +1 -0
  345. package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js +13 -0
  346. package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +1 -0
  347. package/lib/node_modules/.pnpm/html2canvas@1.4.1/node_modules/html2canvas/dist/html2canvas.esm.js +7828 -0
  348. package/lib/node_modules/.pnpm/html2canvas@1.4.1/node_modules/html2canvas/dist/html2canvas.esm.js.map +1 -0
  349. package/lib/node_modules/.pnpm/{linkify-it@3.0.3 → linkify-it@5.0.0}/node_modules/linkify-it/index.js +163 -156
  350. package/lib/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.js.map +1 -0
  351. package/lib/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.js +199 -0
  352. package/lib/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.js.map +1 -0
  353. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/common/html_blocks.js +8 -3
  354. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.js.map +1 -0
  355. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.js +29 -0
  356. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.js.map +1 -0
  357. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.js +308 -0
  358. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.js.map +1 -0
  359. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.js +12 -0
  360. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.js.map +1 -0
  361. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.js +85 -0
  362. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.js.map +1 -0
  363. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/helpers/parse_link_label.js +20 -10
  364. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.js.map +1 -0
  365. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.js +74 -0
  366. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.js.map +1 -0
  367. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/index.js +81 -106
  368. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.js.map +1 -0
  369. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/parser_block.js +42 -43
  370. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.js.map +1 -0
  371. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/parser_core.js +21 -25
  372. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.js.map +1 -0
  373. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/parser_inline.js +69 -67
  374. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.js.map +1 -0
  375. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/presets/commonmark.js +26 -11
  376. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.js.map +1 -0
  377. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/presets/default.js +23 -10
  378. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.js.map +1 -0
  379. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/presets/zero.js +27 -11
  380. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.js.map +1 -0
  381. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/renderer.js +79 -100
  382. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.js.map +1 -0
  383. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/ruler.js +39 -50
  384. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.js.map +1 -0
  385. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_block/blockquote.js +50 -121
  386. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.js.map +1 -0
  387. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_block/code.js +15 -12
  388. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.js.map +1 -0
  389. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_block/fence.js +32 -29
  390. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.js.map +1 -0
  391. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.js +59 -0
  392. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.js.map +1 -0
  393. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.js +48 -0
  394. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.js.map +1 -0
  395. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.js +77 -0
  396. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.js.map +1 -0
  397. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_block/lheading.js +35 -29
  398. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.js.map +1 -0
  399. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_block/list.js +96 -125
  400. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.js.map +1 -0
  401. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.js +53 -0
  402. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.js.map +1 -0
  403. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.js +215 -0
  404. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.js.map +1 -0
  405. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_block/state_block.js +56 -66
  406. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.js.map +1 -0
  407. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js +236 -0
  408. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js.map +1 -0
  409. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_core/block.js +7 -5
  410. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.js.map +1 -0
  411. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.js +18 -0
  412. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.js.map +1 -0
  413. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.js +142 -0
  414. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.js.map +1 -0
  415. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_core/normalize.js +10 -7
  416. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.js.map +1 -0
  417. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_core/replacements.js +34 -25
  418. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.js.map +1 -0
  419. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_core/smartquotes.js +52 -55
  420. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.js.map +1 -0
  421. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_core/state_core.js +7 -7
  422. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.js.map +1 -0
  423. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.js +50 -0
  424. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.js.map +1 -0
  425. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.js +79 -0
  426. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.js.map +1 -0
  427. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/backticks.js +22 -18
  428. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.js.map +1 -0
  429. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +35 -34
  430. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.js.map +1 -0
  431. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/emphasis.js +48 -52
  432. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.js.map +1 -0
  433. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js +59 -0
  434. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js.map +1 -0
  435. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.js +77 -0
  436. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.js.map +1 -0
  437. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.js +45 -0
  438. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.js.map +1 -0
  439. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.js +58 -0
  440. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.js.map +1 -0
  441. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/image.js +34 -44
  442. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.js.map +1 -0
  443. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/link.js +37 -42
  444. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.js.map +1 -0
  445. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.js +63 -0
  446. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.js.map +1 -0
  447. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/newline.js +14 -14
  448. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.js.map +1 -0
  449. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.js +129 -0
  450. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.js.map +1 -0
  451. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/rules_inline/strikethrough.js +42 -42
  452. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.js.map +1 -0
  453. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.js +93 -0
  454. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.js.map +1 -0
  455. package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/token.js +24 -29
  456. package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.js.map +1 -0
  457. package/lib/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.js +14 -0
  458. package/lib/{_virtual → node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl}/index.js.map +1 -1
  459. package/lib/node_modules/.pnpm/{mdurl@1.0.1/node_modules/mdurl → mdurl@2.0.0/node_modules/mdurl/lib}/decode.js +34 -40
  460. package/lib/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.js.map +1 -0
  461. package/lib/node_modules/.pnpm/{mdurl@1.0.1/node_modules/mdurl → mdurl@2.0.0/node_modules/mdurl/lib}/encode.js +23 -28
  462. package/lib/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.js.map +1 -0
  463. package/lib/node_modules/.pnpm/{mdurl@1.0.1/node_modules/mdurl → mdurl@2.0.0/node_modules/mdurl/lib}/format.js +7 -5
  464. package/lib/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.js.map +1 -0
  465. package/lib/node_modules/.pnpm/{mdurl@1.0.1/node_modules/mdurl → mdurl@2.0.0/node_modules/mdurl/lib}/parse.js +103 -84
  466. package/lib/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.js.map +1 -0
  467. package/lib/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js +453 -0
  468. package/lib/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js.map +1 -0
  469. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.js +8 -0
  470. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.js.map +1 -0
  471. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.js +8 -0
  472. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.js.map +1 -0
  473. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.js +8 -0
  474. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.js.map +1 -0
  475. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.js +8 -0
  476. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.js.map +1 -0
  477. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.js +8 -0
  478. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.js.map +1 -0
  479. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.js +18 -0
  480. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.js.map +1 -0
  481. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.js +8 -0
  482. package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.js.map +1 -0
  483. package/lib/package.json.css +1 -1
  484. package/lib/package.json.js +1 -1
  485. package/lib/packages/components/index.js +2 -2
  486. package/lib/packages/components/resolver.js.map +1 -1
  487. package/lib/packages/components/touchchat/component/AiRobot/HelloChat.vue.js +3 -2
  488. package/lib/packages/components/touchchat/component/AiRobot/HelloChat.vue.js.map +1 -1
  489. package/lib/packages/components/touchchat/component/AiRobot/HelloChat.vue2.js +219 -159
  490. package/lib/packages/components/touchchat/component/AiRobot/HelloChat.vue2.js.map +1 -1
  491. package/lib/packages/components/touchchat/component/AiRobot/face.vue.js +3 -2
  492. package/lib/packages/components/touchchat/component/AiRobot/face.vue.js.map +1 -1
  493. package/lib/packages/components/touchchat/component/AiRobot/face.vue2.js +26 -12
  494. package/lib/packages/components/touchchat/component/AiRobot/face.vue2.js.map +1 -1
  495. package/lib/packages/components/touchchat/component/AiRobot/letter.vue.js +3 -2
  496. package/lib/packages/components/touchchat/component/AiRobot/letter.vue.js.map +1 -1
  497. package/lib/packages/components/touchchat/component/AiRobot/letter.vue2.js +168 -39
  498. package/lib/packages/components/touchchat/component/AiRobot/letter.vue2.js.map +1 -1
  499. package/lib/packages/components/touchchat/component/AiRobot/meterialPrepare.vue.js +3 -2
  500. package/lib/packages/components/touchchat/component/AiRobot/meterialPrepare.vue.js.map +1 -1
  501. package/lib/packages/components/touchchat/component/AiRobot/meterialPrepare.vue2.js +15 -10
  502. package/lib/packages/components/touchchat/component/AiRobot/meterialPrepare.vue2.js.map +1 -1
  503. package/lib/packages/components/touchchat/component/AiRobot/start.vue.js +3 -2
  504. package/lib/packages/components/touchchat/component/AiRobot/start.vue.js.map +1 -1
  505. package/lib/packages/components/touchchat/component/AiRobot/start.vue2.js +17 -10
  506. package/lib/packages/components/touchchat/component/AiRobot/start.vue2.js.map +1 -1
  507. package/lib/packages/components/touchchat/component/CardView.vue.js +3 -2
  508. package/lib/packages/components/touchchat/component/CardView.vue.js.map +1 -1
  509. package/lib/packages/components/touchchat/component/CardView.vue2.js +66 -42
  510. package/lib/packages/components/touchchat/component/CardView.vue2.js.map +1 -1
  511. package/lib/packages/components/touchchat/component/FileContent.vue.js +11 -0
  512. package/lib/packages/components/touchchat/component/FileContent.vue.js.map +1 -0
  513. package/lib/packages/components/touchchat/component/FileContent.vue2.js +205 -0
  514. package/lib/packages/components/touchchat/component/FileContent.vue2.js.map +1 -0
  515. package/lib/packages/components/touchchat/component/FileView.vue.js +3 -2
  516. package/lib/packages/components/touchchat/component/FileView.vue.js.map +1 -1
  517. package/lib/packages/components/touchchat/component/FileView.vue2.js +16 -3
  518. package/lib/packages/components/touchchat/component/FileView.vue2.js.map +1 -1
  519. package/lib/packages/components/touchchat/component/HelloChat.vue.js +3 -2
  520. package/lib/packages/components/touchchat/component/HelloChat.vue.js.map +1 -1
  521. package/lib/packages/components/touchchat/component/HelloChat.vue2.js +26 -14
  522. package/lib/packages/components/touchchat/component/HelloChat.vue2.js.map +1 -1
  523. package/lib/packages/components/touchchat/component/ImageFile.vue.js +11 -0
  524. package/lib/packages/components/touchchat/component/ImageFile.vue.js.map +1 -0
  525. package/lib/packages/components/touchchat/component/ImageFile.vue2.js +166 -0
  526. package/lib/packages/components/touchchat/component/ImageFile.vue2.js.map +1 -0
  527. package/lib/packages/components/touchchat/component/ImageView.vue.js +3 -2
  528. package/lib/packages/components/touchchat/component/ImageView.vue.js.map +1 -1
  529. package/lib/packages/components/touchchat/component/ImageView.vue2.js +1 -1
  530. package/lib/packages/components/touchchat/component/ImageView.vue2.js.map +1 -1
  531. package/lib/packages/components/touchchat/component/LinkView.vue.js +3 -2
  532. package/lib/packages/components/touchchat/component/LinkView.vue.js.map +1 -1
  533. package/lib/packages/components/touchchat/component/LinkView.vue2.js +18 -4
  534. package/lib/packages/components/touchchat/component/LinkView.vue2.js.map +1 -1
  535. package/lib/packages/components/touchchat/component/MarkLayer.vue.js +11 -0
  536. package/lib/packages/components/touchchat/component/MarkLayer.vue.js.map +1 -0
  537. package/lib/packages/components/touchchat/component/MarkLayer.vue2.js +60 -0
  538. package/lib/packages/components/touchchat/component/MarkLayer.vue2.js.map +1 -0
  539. package/lib/packages/components/touchchat/component/ModuleSelect.vue.js +11 -0
  540. package/lib/packages/components/touchchat/component/ModuleSelect.vue.js.map +1 -0
  541. package/lib/packages/components/touchchat/component/ModuleSelect.vue2.js +125 -0
  542. package/lib/packages/components/touchchat/component/ModuleSelect.vue2.js.map +1 -0
  543. package/lib/packages/components/touchchat/component/PDFFile.vue.js +11 -0
  544. package/lib/packages/components/touchchat/component/PDFFile.vue.js.map +1 -0
  545. package/lib/packages/components/touchchat/component/PDFFile.vue2.js +209 -0
  546. package/lib/packages/components/touchchat/component/PDFFile.vue2.js.map +1 -0
  547. package/lib/packages/components/touchchat/component/RealtimeVoice.vue.js +11 -0
  548. package/lib/packages/components/touchchat/component/RealtimeVoice.vue.js.map +1 -0
  549. package/lib/packages/components/touchchat/component/RealtimeVoice.vue2.js +164 -0
  550. package/lib/packages/components/touchchat/component/RealtimeVoice.vue2.js.map +1 -0
  551. package/lib/packages/components/touchchat/component/Screenshot.vue.js +11 -0
  552. package/lib/packages/components/touchchat/component/Screenshot.vue.js.map +1 -0
  553. package/lib/packages/components/touchchat/component/Screenshot.vue2.js +203 -0
  554. package/lib/packages/components/touchchat/component/Screenshot.vue2.js.map +1 -0
  555. package/lib/packages/components/touchchat/component/ThoughtChain.vue.js +11 -0
  556. package/lib/packages/components/touchchat/component/ThoughtChain.vue.js.map +1 -0
  557. package/lib/packages/components/touchchat/component/ThoughtChain.vue2.js +73 -0
  558. package/lib/packages/components/touchchat/component/ThoughtChain.vue2.js.map +1 -0
  559. package/lib/packages/components/touchchat/component/UploadView.vue.js +11 -0
  560. package/lib/packages/components/touchchat/component/UploadView.vue.js.map +1 -0
  561. package/lib/packages/components/touchchat/component/UploadView.vue2.js +150 -0
  562. package/lib/packages/components/touchchat/component/UploadView.vue2.js.map +1 -0
  563. package/lib/packages/components/touchchat/component/UploadView_api.vue.js +11 -0
  564. package/lib/packages/components/touchchat/component/UploadView_api.vue.js.map +1 -0
  565. package/lib/packages/components/touchchat/component/UploadView_api.vue2.js +170 -0
  566. package/lib/packages/components/touchchat/component/UploadView_api.vue2.js.map +1 -0
  567. package/lib/packages/components/touchchat/component/VoiceView.vue.js +11 -0
  568. package/lib/packages/components/touchchat/component/VoiceView.vue.js.map +1 -0
  569. package/lib/packages/components/touchchat/component/VoiceView.vue2.js +169 -0
  570. package/lib/packages/components/touchchat/component/VoiceView.vue2.js.map +1 -0
  571. package/lib/packages/components/touchchat/img/file/doc.png.js +8 -0
  572. package/lib/packages/components/touchchat/img/file/doc.png.js.map +1 -0
  573. package/lib/packages/components/touchchat/img/file/docx.png.js +8 -0
  574. package/lib/packages/components/touchchat/img/file/docx.png.js.map +1 -0
  575. package/lib/packages/components/touchchat/img/file/gif.png.js +8 -0
  576. package/lib/packages/components/touchchat/img/file/gif.png.js.map +1 -0
  577. package/lib/packages/components/touchchat/img/file/html.png.js +8 -0
  578. package/lib/packages/components/touchchat/img/file/html.png.js.map +1 -0
  579. package/lib/packages/components/touchchat/img/file/jpg.png.js +8 -0
  580. package/lib/packages/components/touchchat/img/file/jpg.png.js.map +1 -0
  581. package/lib/packages/components/touchchat/img/file/mp3.png.js +8 -0
  582. package/lib/packages/components/touchchat/img/file/mp3.png.js.map +1 -0
  583. package/lib/packages/components/touchchat/img/file/mp4.png.js +8 -0
  584. package/lib/packages/components/touchchat/img/file/mp4.png.js.map +1 -0
  585. package/lib/packages/components/touchchat/img/file/music.png.js +8 -0
  586. package/lib/packages/components/touchchat/img/file/music.png.js.map +1 -0
  587. package/lib/packages/components/touchchat/img/file/pdf.png.js +8 -0
  588. package/lib/packages/components/touchchat/img/file/pdf.png.js.map +1 -0
  589. package/lib/packages/components/touchchat/img/file/png.png.js +8 -0
  590. package/lib/packages/components/touchchat/img/file/png.png.js.map +1 -0
  591. package/lib/packages/components/touchchat/img/file/ppt.png.js +8 -0
  592. package/lib/packages/components/touchchat/img/file/ppt.png.js.map +1 -0
  593. package/lib/packages/components/touchchat/img/file/pptx.png.js +8 -0
  594. package/lib/packages/components/touchchat/img/file/pptx.png.js.map +1 -0
  595. package/lib/packages/components/touchchat/img/file/txt.png.js +8 -0
  596. package/lib/packages/components/touchchat/img/file/txt.png.js.map +1 -0
  597. package/lib/packages/components/touchchat/img/file/xls.png.js +8 -0
  598. package/lib/packages/components/touchchat/img/file/xls.png.js.map +1 -0
  599. package/lib/packages/components/touchchat/img/file/xlsx.png.js +8 -0
  600. package/lib/packages/components/touchchat/img/file/xlsx.png.js.map +1 -0
  601. package/lib/packages/components/touchchat/img/svg/reset.svg.js +8 -0
  602. package/lib/packages/components/touchchat/img/svg/reset.svg.js.map +1 -0
  603. package/lib/packages/components/touchchat/index.js +6 -6
  604. package/lib/packages/components/touchchat/index.js.map +1 -1
  605. package/lib/packages/components/touchchat/src/AiChat/AgentsView.vue.js +11 -0
  606. package/lib/packages/components/touchchat/src/AiChat/AgentsView.vue.js.map +1 -0
  607. package/lib/packages/components/touchchat/src/AiChat/AgentsView.vue2.js +63 -0
  608. package/lib/packages/components/touchchat/src/AiChat/AgentsView.vue2.js.map +1 -0
  609. package/lib/packages/components/touchchat/src/AiChat/AiMessage.vue.js +3 -2
  610. package/lib/packages/components/touchchat/src/AiChat/AiMessage.vue.js.map +1 -1
  611. package/lib/packages/components/touchchat/src/AiChat/AiMessage.vue2.js +217 -130
  612. package/lib/packages/components/touchchat/src/AiChat/AiMessage.vue2.js.map +1 -1
  613. package/lib/packages/components/touchchat/src/AiChat/Chat/TouchChat.js +21 -0
  614. package/lib/packages/components/touchchat/src/AiChat/Chat/TouchChat.js.map +1 -0
  615. package/lib/packages/components/touchchat/src/AiChat/ChatInput.vue.js +3 -2
  616. package/lib/packages/components/touchchat/src/AiChat/ChatInput.vue.js.map +1 -1
  617. package/lib/packages/components/touchchat/src/AiChat/ChatInput.vue2.js +443 -43
  618. package/lib/packages/components/touchchat/src/AiChat/ChatInput.vue2.js.map +1 -1
  619. package/lib/packages/components/touchchat/src/AiChat/HistoryList.vue.js +3 -2
  620. package/lib/packages/components/touchchat/src/AiChat/HistoryList.vue.js.map +1 -1
  621. package/lib/packages/components/touchchat/src/AiChat/HistoryList.vue2.js +179 -97
  622. package/lib/packages/components/touchchat/src/AiChat/HistoryList.vue2.js.map +1 -1
  623. package/lib/packages/components/touchchat/src/AiChat/HistorySidebar.vue.js +3 -2
  624. package/lib/packages/components/touchchat/src/AiChat/HistorySidebar.vue.js.map +1 -1
  625. package/lib/packages/components/touchchat/src/AiChat/HistorySidebar.vue2.js +28 -11
  626. package/lib/packages/components/touchchat/src/AiChat/HistorySidebar.vue2.js.map +1 -1
  627. package/lib/packages/components/touchchat/src/AiChat/MessageActions.vue.js +3 -2
  628. package/lib/packages/components/touchchat/src/AiChat/MessageActions.vue.js.map +1 -1
  629. package/lib/packages/components/touchchat/src/AiChat/MessageActions.vue2.js +133 -60
  630. package/lib/packages/components/touchchat/src/AiChat/MessageActions.vue2.js.map +1 -1
  631. package/lib/packages/components/touchchat/src/AiChat/SiderBarView.vue.js +3 -2
  632. package/lib/packages/components/touchchat/src/AiChat/SiderBarView.vue.js.map +1 -1
  633. package/lib/packages/components/touchchat/src/AiChat/SiderBarView.vue2.js +14 -8
  634. package/lib/packages/components/touchchat/src/AiChat/SiderBarView.vue2.js.map +1 -1
  635. package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue.js +11 -0
  636. package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue.js.map +1 -0
  637. package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue2.js +999 -0
  638. package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue2.js.map +1 -0
  639. package/lib/packages/components/touchchat/src/AiChat/TouchChat.vue.js +3 -2
  640. package/lib/packages/components/touchchat/src/AiChat/TouchChat.vue.js.map +1 -1
  641. package/lib/packages/components/touchchat/src/AiChat/TouchChat.vue2.js +752 -383
  642. package/lib/packages/components/touchchat/src/AiChat/TouchChat.vue2.js.map +1 -1
  643. package/lib/packages/components/touchchat/src/AiChat/TouchHistory.vue.js +3 -2
  644. package/lib/packages/components/touchchat/src/AiChat/TouchHistory.vue.js.map +1 -1
  645. package/lib/packages/components/touchchat/src/AiChat/TouchHistory.vue2.js +326 -122
  646. package/lib/packages/components/touchchat/src/AiChat/TouchHistory.vue2.js.map +1 -1
  647. package/lib/packages/components/touchchat/src/AiChat/UserMessage.vue.js +3 -2
  648. package/lib/packages/components/touchchat/src/AiChat/UserMessage.vue.js.map +1 -1
  649. package/lib/packages/components/touchchat/src/AiChat/UserMessage.vue2.js +127 -60
  650. package/lib/packages/components/touchchat/src/AiChat/UserMessage.vue2.js.map +1 -1
  651. package/lib/packages/components/touchchat/src/index.vue.js +3 -2
  652. package/lib/packages/components/touchchat/src/index.vue.js.map +1 -1
  653. package/lib/packages/components/touchchat/src/index.vue2.js +220 -127
  654. package/lib/packages/components/touchchat/src/index.vue2.js.map +1 -1
  655. package/lib/packages/components/touchchat/src/types/a2a.js +13 -0
  656. package/lib/packages/components/touchchat/src/types/a2a.js.map +1 -0
  657. package/lib/packages/components/touchchat/utils/a2aService.js +312 -0
  658. package/lib/packages/components/touchchat/utils/a2aService.js.map +1 -0
  659. package/lib/packages/components/touchchat/utils/fetchStream.js +6 -1
  660. package/lib/packages/components/touchchat/utils/fetchStream.js.map +1 -1
  661. package/lib/packages/components/touchchat/utils/markdown.js +2 -2
  662. package/lib/packages/components/touchchat/utils/markdown.js.map +1 -1
  663. package/lib/packages/utils/config.js.map +1 -1
  664. package/lib/packages/utils/types.js.map +1 -1
  665. package/package.json +1 -1
  666. package/theme/components/index.css +867 -50
  667. package/theme/font/iconfont.woff +0 -0
  668. package/theme/font/iconfont.woff2 +0 -0
  669. package/theme/index.css +867 -50
  670. package/theme/skin/default.css +867 -50
  671. package/types/global.d.ts +2 -2
  672. package/es/_virtual/emphasis.mjs +0 -4
  673. package/es/_virtual/emphasis.mjs.map +0 -1
  674. package/es/_virtual/html_re.mjs +0 -4
  675. package/es/_virtual/html_re.mjs.map +0 -1
  676. package/es/_virtual/index.mjs +0 -4
  677. package/es/_virtual/index2.mjs +0 -4
  678. package/es/_virtual/index2.mjs.map +0 -1
  679. package/es/_virtual/index3.mjs +0 -4
  680. package/es/_virtual/index3.mjs.map +0 -1
  681. package/es/_virtual/strikethrough.mjs +0 -4
  682. package/es/_virtual/strikethrough.mjs.map +0 -1
  683. package/es/_virtual/utils.mjs +0 -4
  684. package/es/_virtual/utils.mjs.map +0 -1
  685. package/es/node_modules/.pnpm/entities@2.1.0/node_modules/entities/lib/maps/entities.json.mjs +0 -4253
  686. package/es/node_modules/.pnpm/entities@2.1.0/node_modules/entities/lib/maps/entities.json.mjs.map +0 -1
  687. package/es/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/index.mjs.map +0 -1
  688. package/es/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/lib/re.mjs +0 -196
  689. package/es/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/lib/re.mjs.map +0 -1
  690. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/index.mjs +0 -9
  691. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/index.mjs.map +0 -1
  692. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/entities.mjs +0 -7
  693. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/entities.mjs.map +0 -1
  694. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_blocks.mjs.map +0 -1
  695. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_re.mjs +0 -29
  696. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_re.mjs.map +0 -1
  697. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/utils.mjs +0 -324
  698. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/utils.mjs.map +0 -1
  699. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/index.mjs +0 -11
  700. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/index.mjs.map +0 -1
  701. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +0 -83
  702. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs.map +0 -1
  703. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_label.mjs.map +0 -1
  704. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +0 -56
  705. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_title.mjs.map +0 -1
  706. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/index.mjs.map +0 -1
  707. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_block.mjs +0 -138
  708. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_block.mjs.map +0 -1
  709. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_core.mjs +0 -69
  710. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_core.mjs.map +0 -1
  711. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_inline.mjs +0 -197
  712. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_inline.mjs.map +0 -1
  713. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/commonmark.mjs.map +0 -1
  714. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/default.mjs.map +0 -1
  715. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/zero.mjs.map +0 -1
  716. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/renderer.mjs.map +0 -1
  717. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/ruler.mjs.map +0 -1
  718. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/blockquote.mjs.map +0 -1
  719. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/code.mjs.map +0 -1
  720. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/fence.mjs.map +0 -1
  721. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/heading.mjs +0 -57
  722. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/heading.mjs.map +0 -1
  723. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/hr.mjs +0 -47
  724. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/hr.mjs.map +0 -1
  725. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/html_block.mjs +0 -76
  726. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/html_block.mjs.map +0 -1
  727. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/lheading.mjs.map +0 -1
  728. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/list.mjs.map +0 -1
  729. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/paragraph.mjs +0 -50
  730. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/paragraph.mjs.map +0 -1
  731. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/reference.mjs +0 -197
  732. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/reference.mjs.map +0 -1
  733. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/state_block.mjs.map +0 -1
  734. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/table.mjs +0 -223
  735. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/table.mjs.map +0 -1
  736. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/block.mjs.map +0 -1
  737. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/inline.mjs.map +0 -1
  738. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/linkify.mjs +0 -132
  739. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/linkify.mjs.map +0 -1
  740. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/normalize.mjs.map +0 -1
  741. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/replacements.mjs.map +0 -1
  742. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/smartquotes.mjs.map +0 -1
  743. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/state_core.mjs.map +0 -1
  744. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/autolink.mjs +0 -74
  745. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/autolink.mjs.map +0 -1
  746. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/backticks.mjs.map +0 -1
  747. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs.map +0 -1
  748. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/emphasis.mjs.map +0 -1
  749. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/entity.mjs +0 -51
  750. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/entity.mjs.map +0 -1
  751. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/escape.mjs +0 -54
  752. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/escape.mjs.map +0 -1
  753. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +0 -48
  754. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/html_inline.mjs.map +0 -1
  755. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/image.mjs.map +0 -1
  756. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/link.mjs.map +0 -1
  757. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/newline.mjs.map +0 -1
  758. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/state_inline.mjs.map +0 -1
  759. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs.map +0 -1
  760. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text.mjs +0 -56
  761. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text.mjs.map +0 -1
  762. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text_collapse.mjs.map +0 -1
  763. package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/token.mjs.map +0 -1
  764. package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/decode.mjs.map +0 -1
  765. package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/encode.mjs.map +0 -1
  766. package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/format.mjs.map +0 -1
  767. package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/index.mjs +0 -13
  768. package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/index.mjs.map +0 -1
  769. package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/parse.mjs.map +0 -1
  770. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cc/regex.mjs +0 -12
  771. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cc/regex.mjs.map +0 -1
  772. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cf/regex.mjs +0 -12
  773. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cf/regex.mjs.map +0 -1
  774. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/P/regex.mjs +0 -4
  775. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/P/regex.mjs.map +0 -1
  776. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Z/regex.mjs +0 -12
  777. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Z/regex.mjs.map +0 -1
  778. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/index.mjs +0 -23
  779. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/index.mjs.map +0 -1
  780. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/properties/Any/regex.mjs +0 -12
  781. package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/properties/Any/regex.mjs.map +0 -1
  782. package/es/packages/components/touchchat/src/AiChat/Scene.vue.mjs +0 -6
  783. package/es/packages/components/touchchat/src/AiChat/Scene.vue.mjs.map +0 -1
  784. package/es/packages/components/touchchat/src/AiChat/Scene.vue2.mjs +0 -42
  785. package/es/packages/components/touchchat/src/AiChat/Scene.vue2.mjs.map +0 -1
  786. package/lib/_virtual/emphasis.js +0 -6
  787. package/lib/_virtual/emphasis.js.map +0 -1
  788. package/lib/_virtual/html_re.js +0 -6
  789. package/lib/_virtual/html_re.js.map +0 -1
  790. package/lib/_virtual/index.js +0 -6
  791. package/lib/_virtual/index2.js +0 -6
  792. package/lib/_virtual/index2.js.map +0 -1
  793. package/lib/_virtual/index3.js +0 -6
  794. package/lib/_virtual/index3.js.map +0 -1
  795. package/lib/_virtual/strikethrough.js +0 -6
  796. package/lib/_virtual/strikethrough.js.map +0 -1
  797. package/lib/_virtual/utils.js +0 -6
  798. package/lib/_virtual/utils.js.map +0 -1
  799. package/lib/node_modules/.pnpm/entities@2.1.0/node_modules/entities/lib/maps/entities.json.js +0 -6380
  800. package/lib/node_modules/.pnpm/entities@2.1.0/node_modules/entities/lib/maps/entities.json.js.map +0 -1
  801. package/lib/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/index.js.map +0 -1
  802. package/lib/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/lib/re.js +0 -198
  803. package/lib/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/lib/re.js.map +0 -1
  804. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/index.js +0 -13
  805. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/index.js.map +0 -1
  806. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/entities.js +0 -9
  807. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/entities.js.map +0 -1
  808. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_blocks.js.map +0 -1
  809. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_re.js +0 -33
  810. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_re.js.map +0 -1
  811. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/utils.js +0 -326
  812. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/utils.js.map +0 -1
  813. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/index.js +0 -15
  814. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/index.js.map +0 -1
  815. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_destination.js +0 -85
  816. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_destination.js.map +0 -1
  817. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_label.js.map +0 -1
  818. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_title.js +0 -58
  819. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_title.js.map +0 -1
  820. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/index.js.map +0 -1
  821. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_block.js.map +0 -1
  822. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_core.js.map +0 -1
  823. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_inline.js.map +0 -1
  824. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/commonmark.js.map +0 -1
  825. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/default.js.map +0 -1
  826. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/zero.js.map +0 -1
  827. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/renderer.js.map +0 -1
  828. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/ruler.js.map +0 -1
  829. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/blockquote.js.map +0 -1
  830. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/code.js.map +0 -1
  831. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/fence.js.map +0 -1
  832. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/heading.js +0 -59
  833. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/heading.js.map +0 -1
  834. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/hr.js +0 -49
  835. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/hr.js.map +0 -1
  836. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/html_block.js +0 -78
  837. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/html_block.js.map +0 -1
  838. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/lheading.js.map +0 -1
  839. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/list.js.map +0 -1
  840. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/paragraph.js +0 -52
  841. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/paragraph.js.map +0 -1
  842. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/reference.js +0 -199
  843. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/reference.js.map +0 -1
  844. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/state_block.js.map +0 -1
  845. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/table.js +0 -225
  846. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/table.js.map +0 -1
  847. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/block.js.map +0 -1
  848. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/inline.js +0 -16
  849. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/inline.js.map +0 -1
  850. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/linkify.js +0 -134
  851. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/linkify.js.map +0 -1
  852. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/normalize.js.map +0 -1
  853. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/replacements.js.map +0 -1
  854. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/smartquotes.js.map +0 -1
  855. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/state_core.js.map +0 -1
  856. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/autolink.js +0 -76
  857. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/autolink.js.map +0 -1
  858. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/backticks.js.map +0 -1
  859. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/balance_pairs.js.map +0 -1
  860. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/emphasis.js.map +0 -1
  861. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/entity.js +0 -53
  862. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/entity.js.map +0 -1
  863. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/escape.js +0 -56
  864. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/escape.js.map +0 -1
  865. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/html_inline.js +0 -50
  866. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/html_inline.js.map +0 -1
  867. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/image.js.map +0 -1
  868. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/link.js.map +0 -1
  869. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/newline.js.map +0 -1
  870. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/state_inline.js +0 -158
  871. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/state_inline.js.map +0 -1
  872. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/strikethrough.js.map +0 -1
  873. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text.js +0 -58
  874. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text.js.map +0 -1
  875. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text_collapse.js +0 -35
  876. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text_collapse.js.map +0 -1
  877. package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/token.js.map +0 -1
  878. package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/decode.js.map +0 -1
  879. package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/encode.js.map +0 -1
  880. package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/format.js.map +0 -1
  881. package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/index.js +0 -17
  882. package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/index.js.map +0 -1
  883. package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/parse.js.map +0 -1
  884. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cc/regex.js +0 -14
  885. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cc/regex.js.map +0 -1
  886. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cf/regex.js +0 -14
  887. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cf/regex.js.map +0 -1
  888. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/P/regex.js +0 -6
  889. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/P/regex.js.map +0 -1
  890. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Z/regex.js +0 -14
  891. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Z/regex.js.map +0 -1
  892. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/index.js +0 -25
  893. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/index.js.map +0 -1
  894. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/properties/Any/regex.js +0 -14
  895. package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/properties/Any/regex.js.map +0 -1
  896. package/lib/packages/components/touchchat/src/AiChat/Scene.vue.js +0 -10
  897. package/lib/packages/components/touchchat/src/AiChat/Scene.vue.js.map +0 -1
  898. package/lib/packages/components/touchchat/src/AiChat/Scene.vue2.js +0 -46
  899. package/lib/packages/components/touchchat/src/AiChat/Scene.vue2.js.map +0 -1
@@ -1,66 +1,46 @@
1
- import { defineComponent, inject, computed, ref, watch, nextTick, onMounted, onBeforeUnmount, provide, openBlock, createElementBlock, createElementVNode, renderSlot, createVNode, createCommentVNode, Fragment, renderList, createBlock, withCtx, unref } from 'vue';
2
- import _sfc_main$2 from './UserMessage.vue2.mjs';
3
- import _sfc_main$3 from './AiMessage.vue2.mjs';
4
- import _sfc_main$5 from './ChatInput.vue2.mjs';
5
- import _sfc_main$4 from './Scene.vue2.mjs';
6
- import _sfc_main$1 from '../../component/HelloChat.vue2.mjs';
1
+ import { defineComponent, inject, ref, watch, nextTick, onMounted, onBeforeUnmount, provide, openBlock, createElementBlock, withModifiers, createElementVNode, renderSlot, createVNode, createCommentVNode, Fragment, renderList, createBlock, unref, withCtx } from 'vue';
2
+ import UserMessage from './UserMessage.vue.mjs';
3
+ import AiMessage from './AiMessage.vue.mjs';
4
+ import ChatInput from './ChatInput.vue.mjs';
5
+ import HelloChat from '../../component/HelloChat.vue.mjs';
7
6
  import { throttle } from '../../../../../node_modules/.pnpm/throttle-debounce@5.0.2/node_modules/throttle-debounce/esm/index.mjs';
8
7
  import { FetchStream } from '../../utils/fetchStream.mjs';
9
- import { ChatRobot } from '../../utils/chatRobot.mjs';
10
8
  import markdown from '../../utils/markdown.mjs';
11
9
  import { showToast } from '../../utils/tools.mjs';
10
+ import { MessageAction, ThinkStatus } from './Chat/TouchChat.mjs';
12
11
 
13
12
  var _sfc_main = /* @__PURE__ */ defineComponent({
14
13
  __name: "TouchChat",
15
14
  props: {
16
- model: {
17
- type: String,
18
- default: "deepseek-v3"
19
- },
20
15
  value: {
21
16
  type: Array,
22
17
  default: () => []
23
- },
24
- placeholder: {
25
- type: String,
26
- default: "\u5FEB\u6765\u548C\u6211\u804A\u5929\u5427~"
27
- },
28
- components: {
29
- type: Object,
30
- default: () => ({})
31
- },
32
- openSSECallback: {
33
- type: Function,
34
- default: null
35
18
  }
36
19
  },
37
20
  emits: ["sendMessage", "toggleSidebar", "beforeSendMessage"],
38
21
  setup(__props, { expose: __expose, emit: __emit }) {
39
22
  const emit = __emit;
40
- const action = inject("action", "");
41
- const headers = inject("headers", void 0);
42
- const body = inject("body", void 0);
43
- const token = inject("token", "");
44
- const wsUrl = inject("wsUrl", "");
45
- const connectionType = inject("connectionType");
46
- const isDeepSeek = inject(
47
- "isDeepSeek",
48
- computed(() => true)
49
- );
50
- const aiChatType = inject("aiChatType", "Flow");
51
23
  const scripts = inject("scripts", []);
52
- const robotUnmatched = inject("robotUnmatched", "\u60A8\u7684\u6D88\u606F\u672A\u5339\u914D\u5230\u4EFB\u4F55\u5185\u5BB9");
53
- const currentScriptIndex = ref(0);
54
- const selectedScriptName = ref("");
55
- const afterSendMessage = inject("afterSendMessage", () => {
56
- console.warn("\u672A\u63D0\u4F9BafterSendMessage\u51FD\u6570");
24
+ const activeScript = ref(null);
25
+ const resultItem = ref(null);
26
+ const unmatchText = inject("unmatchText", "\u60A8\u7684\u6D88\u606F\u672A\u5339\u914D\u5230\u4EFB\u4F55\u5185\u5BB9");
27
+ const modules = inject("modules", []);
28
+ const afterSend = inject("afterSend", () => {
29
+ console.warn("\u672A\u63D0\u4F9BafterSend\u51FD\u6570");
57
30
  });
58
- const sendMessageInject = inject("handleSend", () => {
31
+ const sendMessageInject = inject("send", () => {
59
32
  console.warn("\u672A\u63D0\u4F9BhandleSend\u51FD\u6570");
60
33
  });
61
34
  const beforeSend = inject("beforeSend", () => ({
62
- result: true
35
+ result: true,
36
+ componentName: ""
63
37
  }));
38
+ const bottom = inject("bottom", () => {
39
+ console.warn("\u672A\u63D0\u4F9Bbottom\u51FD\u6570");
40
+ });
41
+ const stop = inject("stop", () => {
42
+ console.warn("\u672A\u63D0\u4F9Bstop\u51FD\u6570");
43
+ });
64
44
  const props = __props;
65
45
  const chatContainer = ref(null);
66
46
  const htmlContentRef = ref([]);
@@ -78,6 +58,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
78
58
  const TouchChatRobot = ref();
79
59
  const isUnmounting = ref(false);
80
60
  const currentComponentName = ref("");
61
+ const fileData = ref([]);
62
+ const activeAgentsName = ref("");
63
+ const moduleInfo = ref(modules[0]);
64
+ const ChatInputRef = ref(null);
65
+ const isDragging = ref(false);
66
+ const typeFlag = ref("");
67
+ const currentMessageProcessor = ref(null);
68
+ watch(
69
+ () => activeAgentsName,
70
+ (val) => {
71
+ if (!val) {
72
+ activeAgentsName.value = localStorage.getItem("activeAgentsName");
73
+ }
74
+ },
75
+ { immediate: true }
76
+ );
81
77
  const messageUtils = {
82
78
  updateMessage: (index, updates) => {
83
79
  if (index < 0 || index >= chatList.value.length)
@@ -99,14 +95,25 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
99
95
  deleteMessageChain: (index) => {
100
96
  if (index < 0 || index >= chatList.value.length)
101
97
  return;
102
- const nextIndex = index + 1;
103
- const deleteCount = nextIndex < chatList.value.length && chatList.value[nextIndex].user === "ai" ? 2 : 1;
104
- chatList.value.splice(index, deleteCount);
98
+ if (chatList.value[index].user === "u") {
99
+ let deleteCount = 1;
100
+ for (let i = index + 1; i < chatList.value.length; i++) {
101
+ if (chatList.value[i].user === "ai") {
102
+ deleteCount++;
103
+ } else {
104
+ break;
105
+ }
106
+ }
107
+ chatList.value.splice(index, deleteCount);
108
+ } else {
109
+ chatList.value.splice(index, 1);
110
+ }
105
111
  },
106
112
  createStandardMessage: (data) => {
107
113
  var _a, _b, _c, _d, _e;
108
114
  return {
109
- chatId: data.chatId || "ai_" + crypto.randomUUID().replace(/-/gi, ""),
115
+ // chatId: data.chatId || 'ai_' + crypto.randomUUID().replace(/-/gi, ''),
116
+ chatId: data.chatId || "ai_" + Math.random().toString(36).slice(2).padEnd(10, "0").slice(0, 10),
110
117
  user: data.user || "ai",
111
118
  type: data.type || "text",
112
119
  content: data.content || "",
@@ -120,33 +127,38 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
120
127
  };
121
128
  }
122
129
  };
123
- const sceneClick = (script) => {
124
- selectedScriptName.value = script.name;
125
- const findAndSendFirstUserMessage = (dataSource) => {
126
- var _a;
127
- const targetScript = dataSource.find((item) => item.name === script.name);
128
- if (targetScript && targetScript.content.length) {
129
- const firstUserMessage = (_a = targetScript.content.find((citem) => citem.user === "i")) == null ? void 0 : _a.data;
130
- if (firstUserMessage) {
131
- sendMessage({
132
- name: firstUserMessage
133
- });
134
- }
135
- }
136
- };
137
- if (scripts.length) {
138
- findAndSendFirstUserMessage(scripts);
139
- }
130
+ const update = (index, message) => {
131
+ chatList.value[index] = { ...chatList.value[index], ...message };
132
+ console.log("update", chatList.value[index]);
133
+ };
134
+ const markdownToHtml = (markdownContent) => {
135
+ var _a;
136
+ return ((_a = markdown) == null ? void 0 : _a.render(markdownContent, { isReasoning: false })) || "";
137
+ };
138
+ const updateModule = (info) => {
139
+ moduleInfo.value = info;
140
+ };
141
+ const handleAgentSelect = (item) => {
142
+ localStorage.setItem("activeAgentsName", item.name);
143
+ const aiMessage = item.intro;
144
+ messageUtils.updateMessage(0, {
145
+ content: "",
146
+ isChating: false
147
+ });
148
+ simulateStreamOutput(0, aiMessage);
140
149
  };
141
- const completeRendered = () => {
142
- console.log("completeRendered", "\u6E32\u67D3\u5B8C\u6210");
150
+ const completeRendered = (chatId) => {
151
+ console.log("completeRendered", "\u6E32\u67D3\u5B8C\u6210", chatId);
152
+ if (currentMessageProcessor.value) {
153
+ currentMessageProcessor.value.handleMessageComplete(chatId);
154
+ }
143
155
  };
144
156
  const toggleSidebarClick = (item, index) => {
145
157
  emit("toggleSidebar", item, index);
146
158
  };
147
159
  const init = () => {
148
160
  try {
149
- if (Array.isArray(props.value) && props.value.length && isDeepSeek.value) {
161
+ if (Array.isArray(props.value) && props.value.length && !scripts.length) {
150
162
  chatList.value = props.value.map((item) => ({
151
163
  ...item,
152
164
  content: item.thinkContent ? item.content || "" : item.content || "",
@@ -154,89 +166,229 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
154
166
  }));
155
167
  nextTick(() => {
156
168
  requestAnimationFrame(() => {
157
- chatList.value.forEach((item, index) => {
158
- currIndex.value = index;
159
- if (item.thinkContent) {
160
- renderContent(item.thinkContent, "thinking");
161
- }
162
- if (item.reasoningContent) {
163
- renderContent(item.reasoningContent, "reasoning");
164
- }
165
- if (item.content) {
166
- renderContent(item.content, "main");
167
- }
168
- });
169
+ if (activeAgentsName.value && chatList.value.length > 0 && chatList.value[0].user === "ai") {
170
+ const aiMessage = chatList.value[0];
171
+ messageUtils.updateMessage(0, {
172
+ content: "",
173
+ isChating: true
174
+ });
175
+ simulateStreamOutput(0, aiMessage.content);
176
+ } else {
177
+ chatList.value.forEach((item) => {
178
+ if (item.thinkContent) {
179
+ renderContent(item.thinkContent, "thinking");
180
+ }
181
+ if (item.reasoningContent) {
182
+ renderContent(item.reasoningContent, "reasoning");
183
+ }
184
+ if (item.content) {
185
+ renderContent(item.content, "main");
186
+ }
187
+ });
188
+ nextTick(() => {
189
+ scrollToBottom();
190
+ });
191
+ }
169
192
  });
170
193
  });
171
194
  }
172
- if (connectionType === "Websocket" && isDeepSeek.value) {
173
- openWebsocket();
174
- }
175
195
  } catch (error) {
176
196
  console.error("\u521D\u59CB\u5316\u5931\u8D25:", error);
177
197
  }
178
198
  };
199
+ const onScrollToBottom = () => {
200
+ bottom();
201
+ };
202
+ const throttledScrollToBottom = throttle(300, onScrollToBottom);
203
+ const handleScroll = () => {
204
+ if (!chatContainer.value)
205
+ return;
206
+ const { scrollTop, scrollHeight, clientHeight } = chatContainer.value;
207
+ if (scrollTop + clientHeight >= scrollHeight) {
208
+ throttledScrollToBottom();
209
+ }
210
+ };
211
+ const simulateStreamOutput = (aiIndex, msg, callback) => {
212
+ const message = typeof msg === "string" ? msg : msg.content;
213
+ const componentName = typeof msg === "string" ? "" : msg.needSequenceProcessing ? msg.needSequenceType : "";
214
+ const isNeedSequenceProcessing = typeof msg === "string" ? false : msg.needSequenceProcessing;
215
+ const fn = () => {
216
+ clearInterval(interval);
217
+ emit("sendMessage", [...chatList.value]);
218
+ if (componentName) {
219
+ chatList.value[aiIndex].componentName = componentName;
220
+ }
221
+ messageUtils.updateMessage(aiIndex, {
222
+ isChating: false
223
+ });
224
+ nextTick(() => {
225
+ renderContent(message, "main", aiIndex);
226
+ nextTick(() => {
227
+ scrollToBottom();
228
+ if (!isNeedSequenceProcessing && callback) {
229
+ callback();
230
+ }
231
+ });
232
+ });
233
+ };
234
+ let index = 0;
235
+ const interval = setInterval(() => {
236
+ if (index < message.length) {
237
+ const newContent = message;
238
+ messageUtils.updateMessage(aiIndex, {
239
+ content: newContent
240
+ });
241
+ nextTick(() => {
242
+ renderContent(newContent, "main", aiIndex);
243
+ nextTick(() => {
244
+ scrollToBottom();
245
+ });
246
+ });
247
+ index++;
248
+ } else {
249
+ fn();
250
+ }
251
+ }, 50);
252
+ };
179
253
  const findMatchingScriptContent = (userInput) => {
180
254
  if (!scripts || scripts.length === 0)
181
255
  return null;
182
- let currentScript = scripts.find((item) => item.name === selectedScriptName.value);
183
- if (!currentScript && scripts.length > 0) {
184
- currentScript = scripts[0];
185
- selectedScriptName.value = currentScript.name;
186
- }
187
- if (!currentScript)
188
- return null;
189
- const firstItem = currentScript.content[0];
190
- if (firstItem.user === "i") {
191
- const isDataMatch2 = firstItem.data && userInput.includes(firstItem.data);
192
- let isSubDataMatch2 = false;
193
- if (firstItem.subData) {
194
- if (Array.isArray(firstItem.subData)) {
195
- isSubDataMatch2 = firstItem.subData.some((item) => userInput.includes(item));
256
+ const agentName = activeAgentsName.value ? activeAgentsName.value : localStorage.getItem("activeAgentsName") || "";
257
+ if (agentName) {
258
+ const agentMatchedScripts = scripts.filter((script) => {
259
+ return script.content.some((item) => item.agents === agentName);
260
+ });
261
+ if (agentMatchedScripts.length > 0) {
262
+ const fileTypeItems = agentMatchedScripts.flatMap((script) => script.content.filter((item) => item.file));
263
+ const fileTypes = fileTypeItems.map((item) => item.file);
264
+ const isFileTypeMatched = fileData.value.some((file) => {
265
+ const nameArr = file.name.split(".");
266
+ const name = nameArr[nameArr.length - 1];
267
+ const isMatched = fileTypes.includes(name);
268
+ return isMatched;
269
+ });
270
+ let matchedScriptContentIndex = -1;
271
+ if (!activeScript.value && isFileTypeMatched) {
272
+ activeScript.value = agentMatchedScripts[0];
196
273
  }
197
- }
198
- if (isDataMatch2 || isSubDataMatch2) {
199
- currentScriptIndex.value = 0;
200
- const responses = [];
201
- let nextIndex = currentScript.content.length;
202
- for (let i = 1; i < currentScript.content.length; i++) {
203
- const item = currentScript.content[i];
204
- if (item.user === "i") {
205
- nextIndex = i;
206
- break;
274
+ if (isFileTypeMatched) {
275
+ for (const script of agentMatchedScripts) {
276
+ for (let i = 0; i < script.content.length; i++) {
277
+ const item = script.content[i];
278
+ if (item.file) {
279
+ const nameArr = fileData.value.map((file) => {
280
+ const fileExtArr = file.name.split(".");
281
+ return fileExtArr[fileExtArr.length - 1];
282
+ });
283
+ if (nameArr.includes(item.file)) {
284
+ matchedScriptContentIndex = i;
285
+ break;
286
+ }
287
+ }
288
+ }
289
+ if (matchedScriptContentIndex !== -1) {
290
+ break;
291
+ }
207
292
  }
208
- if (item.user === "ai") {
209
- responses.push(item);
293
+ const responses = [];
294
+ const matchContent = agentMatchedScripts[0].content;
295
+ for (let j = matchedScriptContentIndex + 1; j < matchContent.length; j++) {
296
+ const nextItem = matchContent[j];
297
+ if (nextItem.user === "i") {
298
+ break;
299
+ }
300
+ if (nextItem.user === "ai") {
301
+ if (nextItem.data && nextItem.type) {
302
+ responses.push({
303
+ ...nextItem,
304
+ // 标记需要先流式输出文字,再调用组件
305
+ needSequenceProcessing: true
306
+ });
307
+ } else {
308
+ responses.push(nextItem);
309
+ }
310
+ }
210
311
  }
312
+ const nextIndex = matchContent.findIndex((contentItem, index) => index > matchedScriptContentIndex && contentItem.user === "i");
313
+ return {
314
+ responses,
315
+ nextIndex: nextIndex === -1 ? matchContent.length : nextIndex
316
+ };
211
317
  }
212
- return { responses, nextIndex };
318
+ } else {
319
+ return {
320
+ responses: [
321
+ {
322
+ user: "ai",
323
+ data: unmatchText
324
+ }
325
+ ],
326
+ nextIndex: -1
327
+ };
213
328
  }
214
329
  }
215
- const currentItem = currentScript.content[currentScriptIndex.value];
216
- if (!currentItem || currentItem.user !== "i") {
217
- return null;
330
+ if (activeScript.value) {
331
+ const result = searchInScript(activeScript.value, userInput);
332
+ if (result) {
333
+ return result;
334
+ }
218
335
  }
219
- const isDataMatch = currentItem.data && userInput.includes(currentItem.data);
220
- let isSubDataMatch = false;
221
- if (currentItem.subData) {
222
- if (Array.isArray(currentItem.subData)) {
223
- isSubDataMatch = currentItem.subData.some((item) => userInput.includes(item));
336
+ for (const script of scripts) {
337
+ const result = searchInScript(script, userInput);
338
+ if (result) {
339
+ activeScript.value = script;
340
+ return result;
224
341
  }
225
342
  }
226
- if (isDataMatch || isSubDataMatch) {
227
- const responses = [];
228
- let nextIndex = currentScript.content.length;
229
- for (let i = currentScriptIndex.value + 1; i < currentScript.content.length; i++) {
230
- const item = currentScript.content[i];
231
- if (item.user === "i") {
232
- nextIndex = i;
233
- break;
343
+ return null;
344
+ };
345
+ const searchInScript = (script, userInput) => {
346
+ for (let i = 0; i < script.content.length; i++) {
347
+ const item = script.content[i];
348
+ if (item.user === "i") {
349
+ const isDataMatch = item.data && userInput.includes(item.data);
350
+ let isSubDataMatch = false;
351
+ if (item.alias) {
352
+ if (Array.isArray(item.alias)) {
353
+ isSubDataMatch = item.alias.some((subItem) => subItem === userInput);
354
+ }
234
355
  }
235
- if (item.user === "ai") {
236
- responses.push(item);
356
+ if (isDataMatch || isSubDataMatch) {
357
+ const responses = [];
358
+ for (let j = i + 1; j < script.content.length; j++) {
359
+ const nextItem = script.content[j];
360
+ if (nextItem.user === "i") {
361
+ break;
362
+ }
363
+ if (nextItem.user === "ai") {
364
+ if (nextItem.data && nextItem.type) {
365
+ responses.push({
366
+ ...nextItem,
367
+ // 标记需要先流式输出文字,再调用组件
368
+ needSequenceProcessing: true
369
+ });
370
+ } else {
371
+ responses.push(nextItem);
372
+ }
373
+ }
374
+ }
375
+ const nextIndex = script.content.findIndex((contentItem, index) => index > i && contentItem.user === "i");
376
+ return { responses, nextIndex: nextIndex === -1 ? script.content.length : nextIndex };
237
377
  }
378
+ } else if (item.user === "ai") {
379
+ scripts.forEach((script2) => {
380
+ if (script2.content.length) {
381
+ const contents = script2.content;
382
+ contents.forEach((item2) => {
383
+ if (item2.agents) {
384
+ if (item2.agents === activeAgentsName.value) {
385
+ activeScript.value = script2;
386
+ }
387
+ }
388
+ });
389
+ }
390
+ });
238
391
  }
239
- return { responses, nextIndex };
240
392
  }
241
393
  return null;
242
394
  };
@@ -253,8 +405,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
253
405
  }));
254
406
  nextTick(() => {
255
407
  requestAnimationFrame(() => {
256
- chatList.value.forEach((item, index) => {
257
- currIndex.value = index;
408
+ chatList.value.forEach((item) => {
258
409
  if (item.thinkContent) {
259
410
  renderContent(item.thinkContent, "thinking");
260
411
  }
@@ -265,69 +416,28 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
265
416
  renderContent(item.content, "main");
266
417
  }
267
418
  });
419
+ nextTick(() => {
420
+ scrollToBottom();
421
+ });
268
422
  });
269
423
  });
270
424
  }
271
425
  },
272
426
  { deep: true, immediate: true }
273
427
  );
274
- const openWebsocket = () => {
275
- if (!wsUrl) {
276
- throw new Error("wsUrl is required");
277
- }
278
- if (!token) {
279
- throw new Error("token is required");
280
- }
281
- let config = {
282
- token,
283
- wsUrl
284
- };
285
- TouchChatRobot.value = new ChatRobot(config);
286
- TouchChatRobot.value && TouchChatRobot.value.addListener("chatCrmSuccess", {
287
- msgCallback: chatCrmSuccess,
288
- statusCallback: () => {
289
- }
290
- });
291
- TouchChatRobot.value && TouchChatRobot.value.addListener("onMessageError", {
292
- msgCallback: () => {
293
- }
294
- });
295
- TouchChatRobot.value && TouchChatRobot.value.addListener("chatCrmError", {
296
- msgCallback: (data) => {
297
- console.log("AI \u5BF9\u8BDD\u8FDE\u63A5\u9519\u8BEF\u56DE\u8C03", data);
298
- }
299
- });
300
- TouchChatRobot.value.connect();
301
- };
302
- const chatCrmSuccess = (data) => {
303
- if (data && data.chatType === "response") {
304
- if (Array.isArray(data.chatInfo)) {
305
- let msgContentList = data.chatInfo.map((item) => item.msgContent);
306
- let msgContent = msgContentList.length ? msgContentList[0] : "";
307
- chatList.value.push({
308
- user: "u",
309
- type: "text",
310
- content: msgContent
311
- });
312
- }
313
- }
314
- };
315
428
  const openSSE = (userContent, insertIndex, type) => {
429
+ var _a, _b, _c, _d, _e, _f, _g;
316
430
  try {
317
431
  if (isUnmounting.value)
318
432
  return;
319
433
  isChating.value = true;
320
- if (props.openSSECallback) {
321
- props.openSSECallback(FetchStream);
322
- return;
323
- }
324
434
  const currentAiMessage = chatList.value.find((item) => item.isChating);
325
435
  if (currentAiMessage) {
326
436
  currentAiMessage.isShowLike = true;
327
437
  currentAiMessage.isShowCopy = true;
328
438
  currentAiMessage.componentName = currentComponentName.value;
329
439
  }
330
- const chatId = (currentAiMessage == null ? void 0 : currentAiMessage.chatId) || "ai_" + crypto.randomUUID().replace(/-/gi, "");
440
+ const chatId = (currentAiMessage == null ? void 0 : currentAiMessage.chatId) || "ai_" + Math.random().toString(36).slice(2).padEnd(10, "0").slice(0, 10);
331
441
  let aiContent = (currentAiMessage == null ? void 0 : currentAiMessage.content) || "";
332
442
  let reasoningContent = (currentAiMessage == null ? void 0 : currentAiMessage.reasoningContent) || "";
333
443
  let allAiContent = "";
@@ -340,11 +450,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
340
450
  content: "",
341
451
  thinkContent: "",
342
452
  reasoningContent: "",
343
- thinkStatus: "thinking" /* THINKING */,
453
+ thinkStatus: ThinkStatus.THINKING,
344
454
  thinkStartTime: Date.now(),
345
455
  isShowLike: true,
346
456
  isShowCopy: true,
347
- componentName: currentComponentName.value
457
+ componentName: currentComponentName.value,
458
+ typeFlag: typeFlag.value
348
459
  };
349
460
  if (insertIndex !== void 0 && insertIndex <= chatList.value.length) {
350
461
  chatList.value.splice(insertIndex, 0, chatItem);
@@ -352,68 +463,109 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
352
463
  chatList.value.push(chatItem);
353
464
  }
354
465
  }
355
- currIndex.value = chatList.value.findIndex((ele) => ele.chatId === chatId);
466
+ currIndex.value = insertIndex != null ? insertIndex : chatList.value.length - 1;
467
+ const BodyConfig = (_b = (_a = moduleInfo.value) == null ? void 0 : _a.config) == null ? void 0 : _b.body();
468
+ if (!inputValue.value && ((_c = BodyConfig == null ? void 0 : BodyConfig.messages) == null ? void 0 : _c.length)) {
469
+ BodyConfig.messages[0].content = userContent;
470
+ BodyConfig.model = enableDeepThinking.value ? "deepseek-reasoner" : "deepseek-v3";
471
+ }
356
472
  fetchStream.value = new FetchStream({
357
- url: action != null ? action : "https://api.apiyi.com/v1/chat/completions",
473
+ url: ((_e = (_d = moduleInfo.value) == null ? void 0 : _d.config) == null ? void 0 : _e.action) ? moduleInfo.value.config.action : "https://api.apiyi.com/v1/chat/completions",
358
474
  requestInit: {
359
- headers: headers != null ? headers : {
475
+ headers: ((_g = (_f = moduleInfo.value) == null ? void 0 : _f.config) == null ? void 0 : _g.headers) ? new Headers(moduleInfo.value.config.headers()) : new Headers({
360
476
  "Content-Type": "application/json",
361
477
  Authorization: "Bearer sk-fe9MtODvds8wpzz05f3417Fe3e9641C1926e6fC588425dEd"
362
- },
363
- body: !isDeepSeek ? JSON.stringify(body) : JSON.stringify({
364
- model: enableDeepThinking.value ? "deepseek-reasoner" : "deepseek-v3",
365
- messages: [
366
- {
367
- role: "user",
368
- content: userContent
369
- }
370
- ],
371
- stream: true
372
- })
478
+ }),
479
+ // body: moduleInfo.value?.config?.body
480
+ // ? JSON.stringify(BodyConfig as Record<string, any>)
481
+ // : JSON.stringify({
482
+ // model: enableDeepThinking.value ? 'deepseek-reasoner' : 'deepseek-v3',
483
+ // messages: [
484
+ // {
485
+ // role: 'user',
486
+ // content: userContent
487
+ // }
488
+ // ],
489
+ // stream: true
490
+ // })
491
+ body: JSON.stringify(BodyConfig)
373
492
  },
374
493
  onmessage: (line) => {
375
- var _a, _b, _c, _d, _e, _f;
494
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h, _i, _j;
376
495
  if (isUnmounting.value)
377
496
  return;
378
497
  let dataString = "";
379
498
  if (line.length) {
380
499
  if (line.includes("data:")) {
381
- dataString = line.split("data:")[1];
500
+ const match = line.match(/\{[\s\S]*\}/);
501
+ dataString = match ? match[0] : "";
382
502
  } else if (line.startsWith("{") && line.endsWith("}")) {
383
503
  dataString = line;
384
504
  }
385
505
  }
386
506
  dataString = dataString.trim();
387
- if (dataString && dataString.startsWith("{") && dataString.endsWith("}")) {
507
+ const respoKey = (_b2 = (_a2 = moduleInfo.value) == null ? void 0 : _a2.config) == null ? void 0 : _b2.respoKey();
508
+ if (dataString && (dataString.startsWith("{") && dataString.endsWith("}") || !(respoKey == null ? void 0 : respoKey.content))) {
388
509
  try {
389
- const result = JSON.parse(dataString);
510
+ const result = !(respoKey == null ? void 0 : respoKey.content) && moduleInfo.value ? dataString : JSON.parse(dataString);
390
511
  const newAiMessage = chatList.value[currIndex.value];
391
- if (isDeepSeek) {
392
- if ((_c = (_b = (_a = result == null ? void 0 : result.choices) == null ? void 0 : _a[0]) == null ? void 0 : _b.delta) == null ? void 0 : _c.content) {
512
+ const deepseekFlag = ((_c2 = moduleInfo.value) == null ? void 0 : _c2.name) === "deepseek-v3";
513
+ if (deepseekFlag || !moduleInfo.value) {
514
+ if ((_f2 = (_e2 = (_d2 = result == null ? void 0 : result.choices) == null ? void 0 : _d2[0]) == null ? void 0 : _e2.delta) == null ? void 0 : _f2.content) {
393
515
  aiContent += result.choices[0].delta.content;
394
- if ((newAiMessage == null ? void 0 : newAiMessage.thinkStatus) === "thinking" /* THINKING */) {
395
- newAiMessage.thinkStatus = "completed" /* COMPLETED */;
516
+ if ((newAiMessage == null ? void 0 : newAiMessage.thinkStatus) === ThinkStatus.THINKING) {
517
+ newAiMessage.thinkStatus = ThinkStatus.COMPLETED;
396
518
  newAiMessage.thinkTime = Date.now() - (newAiMessage.thinkStartTime || Date.now());
397
519
  }
398
520
  }
399
- if ((_f = (_e = (_d = result == null ? void 0 : result.choices) == null ? void 0 : _d[0]) == null ? void 0 : _e.delta) == null ? void 0 : _f.reasoning_content) {
521
+ if ((_i = (_h = (_g2 = result == null ? void 0 : result.choices) == null ? void 0 : _g2[0]) == null ? void 0 : _h.delta) == null ? void 0 : _i.reasoning_content) {
400
522
  reasoningContent += result.choices[0].delta.reasoning_content;
401
523
  if (!(newAiMessage == null ? void 0 : newAiMessage.thinkStatus)) {
402
- newAiMessage.thinkStatus = "thinking" /* THINKING */;
524
+ newAiMessage.thinkStatus = ThinkStatus.THINKING;
403
525
  newAiMessage.thinkStartTime = Date.now();
404
526
  }
405
527
  }
528
+ allAiContent = reasoningContent + aiContent;
406
529
  } else {
407
- if (aiChatType === "Flow") {
408
- if ((result == null ? void 0 : result.message) && (result == null ? void 0 : result.category) === "answer") {
409
- aiContent += result.message;
410
- }
411
- } else if (aiChatType === "Intelligent") {
412
- if ((result == null ? void 0 : result.content) && (result == null ? void 0 : result.category) === "task_stream_content") {
413
- aiContent += result.content;
530
+ if (respoKey && result && result[respoKey.content] && (result[respoKey.category] === respoKey.contentCategory || !result[respoKey.category])) {
531
+ aiContent += result[respoKey.content];
532
+ }
533
+ if (result && result[respoKey.category] === "done") {
534
+ resultItem.value = result;
535
+ }
536
+ if (result && result[respoKey.category] === "error") {
537
+ const errorMessage = (_j = result[respoKey.all]) != null ? _j : "\u5F53\u524D\u7F51\u7EDC\u5F02\u5E38";
538
+ const currentAiMessage2 = chatList.value[currIndex.value];
539
+ if (currentAiMessage2.chatId) {
540
+ currentAiMessage2.content = `<div style="color: red; display: flex; align-items: center;"><svg xmlns="http://www.w3.org/2000/svg" width="15" height="16" viewBox="0 0 15 16" fill="none">
541
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M7.5 15.5C11.6421 15.5 15 12.1421 15 8C15 3.85786 11.6421 0.5 7.5 0.5C3.35786 0.5 0 3.85786 0 8C0 12.1421 3.35786 15.5 7.5 15.5ZM9.7539 4.9506L10.5494 5.7461L8.2951 8.0001L10.5494 10.2539L9.7539 11.0494L7.5001 8.7951L5.2461 11.0494L4.4506 10.2539L6.7051 8.0001L4.4506 5.7461L5.2461 4.9506L7.5001 7.2051L9.7539 4.9506Z" fill="#F93920"/>
542
+ </svg>${errorMessage}</div>`;
543
+ currentAiMessage2.isChating = false;
544
+ currentAiMessage2.componentName = "";
545
+ currentAiMessage2.isShowLike = false;
546
+ currentAiMessage2.isShowCopy = false;
547
+ currentAiMessage2.isError = true;
548
+ nextTick(() => {
549
+ emit("sendMessage", [...chatList.value]);
550
+ });
551
+ afterSend(result);
414
552
  }
415
- if ((result == null ? void 0 : result.message) && (result == null ? void 0 : result.category) === "answer") {
416
- allAiContent = result.message;
553
+ }
554
+ if (aiContent || reasoningContent) {
555
+ allAiContent = aiContent + reasoningContent;
556
+ }
557
+ if (respoKey && result && result[respoKey.all] && result[respoKey.category] === respoKey.allCategory) {
558
+ allAiContent = result[respoKey.all];
559
+ }
560
+ if (respoKey && result && typeof result === "string" && result !== "[DONE]") {
561
+ aiContent += result;
562
+ }
563
+ if (respoKey && result && typeof result === "string" && result === "[DONE]") {
564
+ const index = chatList.value.findIndex((ele) => ele.chatId === chatId);
565
+ if (index !== -1 && chatList.value[index]) {
566
+ isChating.value = false;
567
+ chatList.value[index].isChating = false;
568
+ emit("sendMessage", JSON.parse(JSON.stringify(chatList.value)));
417
569
  }
418
570
  }
419
571
  }
@@ -425,7 +577,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
425
577
  });
426
578
  }
427
579
  if (type === 1) {
428
- scrollToBottom();
580
+ nextTick(() => {
581
+ renderContent(aiContent, "main");
582
+ renderContent(reasoningContent, "reasoning");
583
+ nextTick(() => {
584
+ scrollToBottom();
585
+ });
586
+ });
429
587
  }
430
588
  } catch (error) {
431
589
  console.error("\u89E3\u6790SSE\u6D88\u606F\u5931\u8D25:", error);
@@ -441,12 +599,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
441
599
  if (index !== -1 && chatList.value[index]) {
442
600
  chatList.value[index].isChating = false;
443
601
  chatList.value[index].componentName = currentComponentName.value;
444
- if (aiChatType === "Intelligent" && allAiContent) {
445
- afterSendMessage(allAiContent);
602
+ chatList.value[index].html = markdownToHtml(allAiContent);
603
+ if (allAiContent) {
604
+ if (resultItem.value) {
605
+ resultItem.value.allAiContent = allAiContent;
606
+ afterSend(resultItem.value);
607
+ } else {
608
+ afterSend({ allAiContent });
609
+ }
446
610
  }
447
611
  const waitForRenderComplete = () => {
448
612
  if (renderQueue.value.length === 0 && !isRendering.value) {
449
- if (chatList.value.length > 0 && isDeepSeek) {
613
+ if (chatList.value.length > 0) {
450
614
  emit("sendMessage", JSON.parse(JSON.stringify(chatList.value)));
451
615
  }
452
616
  } else {
@@ -467,6 +631,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
467
631
  } catch (error) {
468
632
  console.error("OpenSSE\u9519\u8BEF:", error);
469
633
  isChating.value = false;
634
+ chatList.value[currIndex.value].content = `<div style="color: red; display: flex; align-items: center;"><svg xmlns="http://www.w3.org/2000/svg" width="15" height="16" viewBox="0 0 15 16" fill="none">
635
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M7.5 15.5C11.6421 15.5 15 12.1421 15 8C15 3.85786 11.6421 0.5 7.5 0.5C3.35786 0.5 0 3.85786 0 8C0 12.1421 3.35786 15.5 7.5 15.5ZM9.7539 4.9506L10.5494 5.7461L8.2951 8.0001L10.5494 10.2539L9.7539 11.0494L7.5001 8.7951L5.2461 11.0494L4.4506 10.2539L6.7051 8.0001L4.4506 5.7461L5.2461 4.9506L7.5001 7.2051L9.7539 4.9506Z" fill="#F93920"/>
636
+ </svg>${"\u8BF7\u6C42\u5931\u8D25"}</div>`;
637
+ chatList.value[currIndex.value].isChating = false;
638
+ chatList.value[currIndex.value].isShowCopy = false;
639
+ chatList.value[currIndex.value].isShowLike = false;
470
640
  showToast("\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5", "error", 3e3);
471
641
  }
472
642
  };
@@ -475,10 +645,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
475
645
  if (isUnmounting.value)
476
646
  return;
477
647
  const currentAiMessage = chatList.value[currIndex.value];
648
+ stop(chatList.value[currIndex.value], currIndex.value);
478
649
  const hasContent = currentAiMessage && (currentAiMessage.content || currentAiMessage.thinkContent || currentAiMessage.reasoningContent);
479
650
  if (currentAiMessage) {
480
- if (currentAiMessage.thinkStatus === "thinking" /* THINKING */) {
481
- currentAiMessage.thinkStatus = "stopped" /* STOPPED */;
651
+ if (currentAiMessage.thinkStatus === ThinkStatus.THINKING) {
652
+ currentAiMessage.thinkStatus = ThinkStatus.STOPPED;
482
653
  currentAiMessage.thinkTime = Date.now() - (currentAiMessage.thinkStartTime || Date.now());
483
654
  }
484
655
  if (!hasContent) {
@@ -493,10 +664,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
493
664
  const updatedAiMessage = {
494
665
  ...currentAiMessage,
495
666
  isChating: false,
496
- content: currentAiMessage.content ? currentAiMessage.content + "\u3002\u3002\u3002" : "",
497
- thinkContent: currentAiMessage.thinkContent ? currentAiMessage.thinkContent + "\u3002\u3002\u3002" : void 0,
498
- reasoningContent: currentAiMessage.reasoningContent ? currentAiMessage.reasoningContent + "\u3002\u3002\u3002" : void 0,
499
- thinkStatus: currentAiMessage.thinkStatus
667
+ content: currentAiMessage.content ? currentAiMessage.content + "..." : "",
668
+ thinkContent: currentAiMessage.thinkContent ? currentAiMessage.thinkContent + "..." : void 0,
669
+ reasoningContent: currentAiMessage.reasoningContent ? currentAiMessage.reasoningContent + "..." : void 0,
670
+ thinkStatus: currentAiMessage.thinkStatus,
671
+ stop: true
500
672
  };
501
673
  chatList.value.splice(currIndex.value, 1, updatedAiMessage);
502
674
  nextTick(() => {
@@ -533,6 +705,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
533
705
  currentAiMessage.componentName = "";
534
706
  currentAiMessage.isShowLike = false;
535
707
  currentAiMessage.isShowCopy = false;
708
+ currentAiMessage.isError = true;
536
709
  nextTick(() => {
537
710
  renderContent(currentAiMessage.content || "", "main");
538
711
  emit("sendMessage", [...chatList.value]);
@@ -577,13 +750,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
577
750
  if (currIndex.value < 0 || currIndex.value >= chatList.value.length)
578
751
  return;
579
752
  const currentItem = chatList.value[currIndex.value];
580
- currentItem.thinkContent = data.thinkContent;
581
- currentItem.content = data.mainContent;
582
- currentItem.reasoningContent = data.reasoningContent;
753
+ if (!currentItem.isError) {
754
+ currentItem.thinkContent = data.thinkContent;
755
+ currentItem.content = data.mainContent;
756
+ currentItem.reasoningContent = data.reasoningContent;
757
+ }
583
758
  nextTick(() => {
584
759
  const thinkingContainer = thinkingContentRef.value[currIndex.value];
585
760
  if (thinkingContainer) {
586
- if (data.thinkContent) {
761
+ if (data.thinkContent && !currentItem.isError) {
587
762
  renderContent(data.thinkContent, "thinking");
588
763
  thinkingContainer.style.display = "block";
589
764
  thinkingContainer.style.visibility = "visible";
@@ -594,7 +769,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
594
769
  }
595
770
  const reasoningContainer = reasoningContentRef.value[currIndex.value];
596
771
  if (reasoningContainer) {
597
- if (data.reasoningContent) {
772
+ if (data.reasoningContent && !currentItem.isError) {
598
773
  renderContent(data.reasoningContent, "reasoning");
599
774
  reasoningContainer.style.display = "block";
600
775
  reasoningContainer.style.visibility = "visible";
@@ -603,7 +778,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
603
778
  reasoningContainer.style.visibility = "hidden";
604
779
  }
605
780
  }
606
- renderContent(data.mainContent, "main");
781
+ renderContent(currentItem.isError ? currentItem.content : data.mainContent, "main");
607
782
  });
608
783
  };
609
784
  const attachCopyButtons = (container) => {
@@ -660,18 +835,19 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
660
835
  container.innerHTML = processors[type](content || "");
661
836
  attachCopyButtons(container);
662
837
  };
663
- const sendMessage = (item) => {
664
- inputValue.value = item.name || "";
665
- handleBeforeSend();
838
+ const sendMessage = (content, fileList, auto, type) => {
839
+ inputValue.value = content || "";
840
+ handleBeforeSend(content, fileList, auto, type);
666
841
  };
667
- const handleBeforeSend = () => {
842
+ const handleBeforeSend = (content, fileList, auto, type) => {
843
+ fileData.value = fileList || [];
668
844
  if (beforeSend) {
669
845
  const fn = beforeSend();
670
846
  if (fn && typeof fn.then === "function") {
671
847
  Promise.resolve(fn).then((res) => {
672
848
  if (res.result) {
673
849
  currentComponentName.value = res.componentName || "";
674
- handleSend();
850
+ handleSend(content, fileList, auto, type);
675
851
  }
676
852
  }).catch((error) => {
677
853
  console.log(error);
@@ -679,17 +855,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
679
855
  } else {
680
856
  if (fn.result) {
681
857
  currentComponentName.value = fn.componentName || "";
682
- handleSend();
858
+ handleSend(content, fileList, auto, type);
683
859
  }
684
860
  }
685
861
  }
686
862
  };
687
- const handleSend = (content) => {
688
- var _a;
863
+ const handleSend = (content, fileList, auto, type) => {
689
864
  emit("beforeSendMessage");
690
- if (!isDeepSeek.value && scripts && Array.isArray(scripts) && scripts.length > 0) {
691
- const userInput = content != null ? content : inputValue.value.trim();
692
- if (!userInput)
865
+ sendMessageInject(inputValue.value, fileData.value);
866
+ typeFlag.value = type || "";
867
+ if (scripts && Array.isArray(scripts) && scripts.length > 0) {
868
+ const userInput = content ? content.replace(/\n/g, "") : inputValue.value.replace(/\n/g, "").trim();
869
+ if (!userInput && !(fileList == null ? void 0 : fileList.length) && auto)
693
870
  return;
694
871
  const userChatId = `user_${Date.now()}`;
695
872
  const userMessage = {
@@ -698,17 +875,21 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
698
875
  type: "text",
699
876
  content: userInput,
700
877
  isShowLike: false,
701
- isShowCopy: true
878
+ isShowCopy: true,
879
+ files: fileList || [],
880
+ typeFlag: type,
881
+ auto: auto || false
702
882
  };
703
883
  chatList.value.push(userMessage);
704
884
  emit("sendMessage", [...chatList.value]);
705
885
  nextTick(() => {
706
- scrollToBottom();
707
886
  renderContent(userMessage.content, "main", chatList.value.length - 1);
887
+ nextTick(() => {
888
+ scrollToBottom();
889
+ });
708
890
  });
709
891
  const result = findMatchingScriptContent(userInput);
710
892
  if (result && result.responses.length > 0) {
711
- currentScriptIndex.value = result.nextIndex;
712
893
  const newAiMessages = [];
713
894
  result.responses.forEach((response, idx) => {
714
895
  const pauseMarker = Array.isArray(response.data) ? "\u200B".repeat(20) : "";
@@ -719,39 +900,81 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
719
900
  user: "ai",
720
901
  type: "text",
721
902
  content: content2 || "",
903
+ // componentName: response.needSequenceProcessing ? '' : response.type || '',
722
904
  componentName: response.type || "",
723
905
  isShowLike: true,
724
- isShowCopy: true
906
+ isShowCopy: true,
907
+ needSequenceType: response.type || "",
908
+ needSequenceProcessing: response.needSequenceProcessing || false,
909
+ typeFlag: type
725
910
  };
726
911
  newAiMessages.push(aiMessage);
727
912
  });
728
- chatList.value.push(...newAiMessages);
729
- emit("sendMessage", [...chatList.value]);
730
- nextTick(() => {
731
- scrollToBottom();
732
- newAiMessages.forEach((msg) => {
733
- const msgIndex = chatList.value.findIndex((item) => item.chatId === msg.chatId);
734
- if (msgIndex !== -1) {
735
- renderContent(msg.content, "main", msgIndex);
913
+ let messageQueue = [...newAiMessages];
914
+ let isProcessing = false;
915
+ let currentMessage = null;
916
+ const processNextMessage = () => {
917
+ if (messageQueue.length > 0 && !isProcessing) {
918
+ isProcessing = true;
919
+ const nextMessage = messageQueue.shift();
920
+ if (nextMessage) {
921
+ currentMessage = nextMessage;
922
+ console.log("\u5F00\u59CB\u5904\u7406\u6D88\u606F:", currentMessage.chatId);
923
+ chatList.value.push(currentMessage);
924
+ emit("sendMessage", [...chatList.value]);
925
+ const msgIndex = chatList.value.length - 1;
926
+ nextTick(() => {
927
+ renderContent((currentMessage == null ? void 0 : currentMessage.content) || "", "main", msgIndex);
928
+ nextTick(() => {
929
+ scrollToBottom();
930
+ if (currentMessage) {
931
+ const messageToProcess = {
932
+ ...currentMessage,
933
+ needSequenceProcessing: true
934
+ };
935
+ simulateStreamOutput(msgIndex, messageToProcess);
936
+ }
937
+ });
938
+ });
736
939
  }
737
- });
738
- });
940
+ }
941
+ };
942
+ const handleMessageComplete = (chatId) => {
943
+ if (currentMessage && currentMessage.chatId === chatId) {
944
+ console.log("\u5E8F\u5217\u6D88\u606F\u5904\u7406\u5B8C\u6210\uFF0C\u5904\u7406\u4E0B\u4E00\u6761:", chatId);
945
+ currentMessage = null;
946
+ isProcessing = false;
947
+ processNextMessage();
948
+ }
949
+ };
950
+ const processorObj = {
951
+ messageQueue,
952
+ isProcessing,
953
+ currentMessage,
954
+ processNextMessage,
955
+ handleMessageComplete
956
+ };
957
+ currentMessageProcessor.value = processorObj;
958
+ processNextMessage();
739
959
  } else {
740
960
  const defaultAiChatId = `ai_${Date.now()}`;
741
961
  const defaultAiMessage = {
742
962
  chatId: defaultAiChatId,
743
963
  user: "ai",
744
964
  type: "text",
745
- content: robotUnmatched,
965
+ content: unmatchText,
746
966
  isShowLike: true,
747
967
  isShowCopy: true
748
968
  };
749
969
  chatList.value.push(defaultAiMessage);
970
+ emit("sendMessage", [...chatList.value]);
750
971
  nextTick(() => {
751
- scrollToBottom();
752
972
  const msgIndex = chatList.value.findIndex((item) => item.chatId === defaultAiChatId);
753
973
  if (msgIndex !== -1) {
754
974
  renderContent(defaultAiMessage.content, "main", msgIndex);
975
+ nextTick(() => {
976
+ scrollToBottom();
977
+ });
755
978
  }
756
979
  });
757
980
  }
@@ -760,33 +983,23 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
760
983
  if (content) {
761
984
  inputValue.value = content;
762
985
  }
763
- if (isChating.value || !inputValue.value.trim())
986
+ if ((isChating.value || !inputValue.value.trim() && !(fileList == null ? void 0 : fileList.length)) && !auto)
764
987
  return;
765
- const userChatId = "user_" + crypto.randomUUID().replace(/-/gi, "");
988
+ const userChatId = "user_" + Math.random().toString(36).slice(2).padEnd(10, "0").slice(0, 10);
766
989
  const userMessage = {
767
990
  chatId: userChatId,
768
991
  user: "u",
769
992
  type: "text",
770
- content: inputValue.value
993
+ content: inputValue.value,
994
+ files: fileList || []
771
995
  };
772
- sendMessageInject(inputValue.value);
773
996
  chatList.value.push(userMessage);
774
997
  const index = chatList.value.length - 1;
775
998
  nextTick(() => {
776
999
  renderContent(userMessage.content, "main", index);
777
1000
  scrollToBottom();
778
1001
  });
779
- if (connectionType === "SSE") {
780
- openSSE(inputValue.value, index + 1, 1);
781
- } else if (connectionType === "Websocket") {
782
- let chatInfo = [
783
- {
784
- type: "text",
785
- msgContent: inputValue.value
786
- }
787
- ];
788
- (_a = TouchChatRobot.value) == null ? void 0 : _a.send(chatInfo);
789
- }
1002
+ openSSE(inputValue.value, index + 1, 1);
790
1003
  inputValue.value = "";
791
1004
  }
792
1005
  };
@@ -826,36 +1039,72 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
826
1039
  }
827
1040
  isChating.value = false;
828
1041
  };
829
- const scrollToBottom = throttle(300, () => {
830
- if (!isMounted.value || isUnmounting.value)
1042
+ const scrollObserver = ref(null);
1043
+ const scrollToBottom = () => {
1044
+ if (!isMounted.value || isUnmounting.value || !chatContainer.value)
831
1045
  return;
832
- const endEl = document.querySelector(".to-chat-item:last-child");
833
- if (endEl == null ? void 0 : endEl.scrollIntoView) {
834
- endEl.scrollIntoView({ behavior: "smooth", block: "end", inline: "nearest" });
835
- }
836
- });
837
- const handleMessageAction = (action2, index) => {
1046
+ nextTick(() => {
1047
+ requestAnimationFrame(() => {
1048
+ const chatContainerEl = chatContainer.value;
1049
+ const lastMessage = chatContainerEl.querySelector(".touchchat-dialog-content > *:last-child");
1050
+ if (lastMessage) {
1051
+ const { height: messageHeight } = lastMessage.getBoundingClientRect();
1052
+ const containerHeight = chatContainerEl.clientHeight;
1053
+ const messageBottom = lastMessage.offsetTop + lastMessage.offsetHeight;
1054
+ if (messageHeight > containerHeight) {
1055
+ chatContainerEl.scrollTop = lastMessage.offsetTop;
1056
+ } else {
1057
+ chatContainerEl.scrollTop = messageBottom - containerHeight;
1058
+ }
1059
+ if (scrollObserver.value) {
1060
+ scrollObserver.value.disconnect();
1061
+ }
1062
+ scrollObserver.value = new MutationObserver(() => {
1063
+ const updatedMessageBottom = lastMessage.offsetTop + lastMessage.offsetHeight;
1064
+ chatContainerEl.scrollTop = Math.max(updatedMessageBottom - containerHeight, chatContainerEl.scrollTop);
1065
+ });
1066
+ scrollObserver.value.observe(lastMessage, {
1067
+ childList: true,
1068
+ subtree: true,
1069
+ characterData: true,
1070
+ attributes: true,
1071
+ // 新增监听属性变化(如高度)
1072
+ attributeFilter: ["style", "class"]
1073
+ // 只监听样式相关属性
1074
+ });
1075
+ } else {
1076
+ chatContainerEl.scrollTo({
1077
+ top: chatContainerEl.scrollHeight,
1078
+ behavior: "smooth"
1079
+ });
1080
+ }
1081
+ });
1082
+ });
1083
+ };
1084
+ const handleMessageAction = (action, index) => {
838
1085
  const message = chatList.value[index];
839
1086
  if (!message)
840
1087
  return;
841
- switch (action2) {
842
- case "copy" /* COPY */:
843
- navigator.clipboard.writeText(message.content).then(() => {
1088
+ switch (action) {
1089
+ case MessageAction.COPY: {
1090
+ const textContent = message.content;
1091
+ navigator.clipboard.writeText(textContent).then(() => {
844
1092
  showToast("\u590D\u5236\u6210\u529F", "info");
845
1093
  }).catch((err) => {
846
1094
  console.error("\u590D\u5236\u5931\u8D25:", err);
847
1095
  showToast("\u590D\u5236\u5931\u8D25", "error");
848
1096
  });
849
1097
  break;
850
- case "edit" /* EDIT */:
1098
+ }
1099
+ case MessageAction.EDIT:
851
1100
  message.isEditing = true;
852
1101
  message.editContent = message.content;
853
1102
  break;
854
- case "delete" /* DELETE */:
1103
+ case MessageAction.DELETE:
855
1104
  messageUtils.deleteMessageChain(index);
856
1105
  emit("sendMessage", chatList.value);
857
1106
  break;
858
- case "retry" /* RETRY */: {
1107
+ case MessageAction.RETRY: {
859
1108
  const aiMessage = chatList.value[index];
860
1109
  const userMessageIndex = index - 1;
861
1110
  const userMessage = chatList.value[userMessageIndex];
@@ -871,7 +1120,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
871
1120
  chatId: aiMessage.chatId,
872
1121
  user: aiMessage.user,
873
1122
  type: aiMessage.type,
874
- thinkStatus: "completed" /* COMPLETED */,
1123
+ thinkStatus: ThinkStatus.COMPLETED,
875
1124
  thinkStartTime: 0,
876
1125
  thinkEndTime: 0
877
1126
  };
@@ -890,13 +1139,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
890
1139
  }
891
1140
  break;
892
1141
  }
893
- case "like" /* LIKE */:
1142
+ case MessageAction.LIKE:
894
1143
  messageUtils.updateMessage(index, {
895
1144
  isLiked: true,
896
1145
  isDisliked: false
897
1146
  });
898
1147
  break;
899
- case "dislike" /* DISLIKE */:
1148
+ case MessageAction.DISLIKE:
900
1149
  messageUtils.updateMessage(index, {
901
1150
  isLiked: false,
902
1151
  isDisliked: true
@@ -934,21 +1183,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
934
1183
  });
935
1184
  };
936
1185
  onMounted(async () => {
937
- init();
1186
+ if (isMounted.value) {
1187
+ init();
1188
+ }
938
1189
  isMounted.value = true;
939
- watch(
940
- isDeepSeek,
941
- () => {
942
- init();
943
- },
944
- { immediate: false }
945
- );
946
1190
  watch(
947
1191
  () => scripts,
948
1192
  () => {
949
- if (!isDeepSeek.value) {
950
- init();
951
- }
1193
+ init();
952
1194
  },
953
1195
  { deep: true, immediate: false }
954
1196
  );
@@ -970,103 +1212,230 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
970
1212
  thinkingContentRef.value = [];
971
1213
  reasoningContentRef.value = [];
972
1214
  }
1215
+ if (scrollObserver.value) {
1216
+ scrollObserver.value.disconnect();
1217
+ scrollObserver.value = null;
1218
+ }
973
1219
  });
974
- provide("parentContext", {
975
- methods: {
976
- sendMessage,
977
- handleMessageAction
1220
+ const handleDragEnter = () => {
1221
+ if (ChatInputRef.value) {
1222
+ ChatInputRef.value.openMarkLayer();
1223
+ }
1224
+ isDragging.value = true;
1225
+ };
1226
+ const handleDragLeave = (e) => {
1227
+ const rect = e.target.getBoundingClientRect();
1228
+ if (e.clientX < rect.left || e.clientX > rect.right || e.clientY < rect.top || e.clientY > rect.bottom) {
1229
+ isDragging.value = false;
1230
+ }
1231
+ };
1232
+ const handleDrop = async (e) => {
1233
+ var _a;
1234
+ isDragging.value = false;
1235
+ const files = (_a = e.dataTransfer) == null ? void 0 : _a.files;
1236
+ if (files && files.length > 0) {
1237
+ const fileList = await Promise.all(
1238
+ Array.from(files).map(async (file) => {
1239
+ let base64 = "";
1240
+ if (file.type.startsWith("image/")) {
1241
+ base64 = await new Promise((resolve) => {
1242
+ const reader = new FileReader();
1243
+ reader.onload = (e2) => {
1244
+ var _a2;
1245
+ resolve((_a2 = e2.target) == null ? void 0 : _a2.result);
1246
+ };
1247
+ reader.readAsDataURL(file);
1248
+ });
1249
+ }
1250
+ return {
1251
+ // id: crypto.randomUUID().replace(/-/gi, ''),
1252
+ id: Math.random().toString(36).slice(2).padEnd(10, "0").slice(0, 10),
1253
+ file,
1254
+ name: file.name,
1255
+ fileType: file.type,
1256
+ fileSize: file.size,
1257
+ lastModified: file.lastModified,
1258
+ preview: URL.createObjectURL(file),
1259
+ base64
1260
+ };
1261
+ })
1262
+ );
1263
+ if (ChatInputRef.value) {
1264
+ ChatInputRef.value.handlePaste(fileList, "drop");
1265
+ }
1266
+ }
1267
+ if (ChatInputRef.value) {
1268
+ ChatInputRef.value.colseMarkLayer();
978
1269
  }
1270
+ };
1271
+ const itemUploadFile = (item, index) => {
1272
+ console.log("itemUploadFile", item, index);
1273
+ if (ChatInputRef.value) {
1274
+ ChatInputRef.value.itemUploadFile(index, "drop");
1275
+ }
1276
+ };
1277
+ provide("touchchat", {
1278
+ send: sendMessage,
1279
+ retry: handleMessageAction
979
1280
  });
980
1281
  __expose({
981
- handleSendOut: (value) => {
982
- handleSend(value);
983
- }
1282
+ send: (value, fileList, auto, type) => {
1283
+ handleSend(value, fileList, auto, type);
1284
+ },
1285
+ handleAgentSelect,
1286
+ retry: (index) => {
1287
+ handleMessageAction(MessageAction.RETRY, index);
1288
+ },
1289
+ update
984
1290
  });
985
1291
  return (_ctx, _cache) => {
986
- return openBlock(), createElementBlock("div", { class: "touchchat-main" }, [
987
- createElementVNode("div", {
988
- ref_key: "chatContainer",
989
- ref: chatContainer,
990
- class: "touchchat-dialog"
991
- }, [
992
- chatList.value.length === 0 ? (openBlock(), createElementBlock("div", {
993
- key: 0,
994
- class: "touchchat-welcome"
995
- }, [
996
- renderSlot(_ctx.$slots, "welcome", {}, () => [
997
- createVNode(_sfc_main$1, { onSendMessage: sendMessage })
1292
+ return openBlock(), createElementBlock("div", {
1293
+ class: "touchchat-main",
1294
+ onDragover: withModifiers(() => {
1295
+ }, ["prevent"]),
1296
+ onDragenter: withModifiers(handleDragEnter, ["prevent"]),
1297
+ onDragleave: handleDragLeave,
1298
+ onDrop: withModifiers(handleDrop, ["prevent"])
1299
+ }, [
1300
+ createElementVNode(
1301
+ "div",
1302
+ {
1303
+ ref_key: "chatContainer",
1304
+ ref: chatContainer,
1305
+ class: "touchchat-dialog",
1306
+ onScroll: handleScroll
1307
+ },
1308
+ [
1309
+ renderSlot(_ctx.$slots, "top"),
1310
+ chatList.value.length === 0 ? (openBlock(), createElementBlock("div", {
1311
+ key: 0,
1312
+ class: "touchchat-welcome"
1313
+ }, [
1314
+ renderSlot(_ctx.$slots, "welcome", {}, () => [
1315
+ createVNode(HelloChat, { onSendMessage: sendMessage })
1316
+ ])
1317
+ ])) : createCommentVNode("v-if", true),
1318
+ createElementVNode("div", { class: "touchchat-dialog-content" }, [
1319
+ (openBlock(true), createElementBlock(
1320
+ Fragment,
1321
+ null,
1322
+ renderList(chatList.value, (item, index) => {
1323
+ return openBlock(), createElementBlock(
1324
+ Fragment,
1325
+ {
1326
+ key: item.chatId
1327
+ },
1328
+ [
1329
+ item.user === "u" ? (openBlock(), createBlock(UserMessage, {
1330
+ key: 0,
1331
+ item,
1332
+ index,
1333
+ onUserMessageFileList: itemUploadFile,
1334
+ onCopy: ($event) => handleMessageAction(unref(MessageAction).COPY, index),
1335
+ onEdit: ($event) => handleMessageAction(unref(MessageAction).EDIT, index),
1336
+ onDelete: ($event) => handleMessageAction(unref(MessageAction).DELETE, index),
1337
+ onSaveEdit: saveEdit,
1338
+ onCancelEdit: ($event) => cancelEdit(index)
1339
+ }, {
1340
+ userAvatar: withCtx(() => [
1341
+ renderSlot(_ctx.$slots, "userAvatar")
1342
+ ]),
1343
+ fn: withCtx(() => [
1344
+ renderSlot(_ctx.$slots, "fn", {
1345
+ item,
1346
+ index
1347
+ })
1348
+ ]),
1349
+ _: 2
1350
+ /* DYNAMIC */
1351
+ }, 1032, ["item", "index", "onCopy", "onEdit", "onDelete", "onCancelEdit"])) : (openBlock(), createBlock(AiMessage, {
1352
+ key: 1,
1353
+ item,
1354
+ index,
1355
+ "enable-deep-thinking": enableDeepThinking.value,
1356
+ "has-retry": activeAgentsName.value || unref(scripts).length > 0 ? false : true,
1357
+ onCopy: ($event) => handleMessageAction(unref(MessageAction).COPY, index),
1358
+ onRetry: ($event) => handleMessageAction(unref(MessageAction).RETRY, index),
1359
+ onLike: ($event) => handleMessageAction(unref(MessageAction).LIKE, index),
1360
+ onDislike: ($event) => handleMessageAction(unref(MessageAction).DISLIKE, index),
1361
+ onContentRendered: attachCopyButtons,
1362
+ onCompleteRendered: (chatId) => completeRendered(chatId),
1363
+ onToggleSidebar: toggleSidebarClick
1364
+ }, {
1365
+ aimsg: withCtx(() => [
1366
+ renderSlot(_ctx.$slots, "aimsg", {
1367
+ item,
1368
+ index
1369
+ })
1370
+ ]),
1371
+ msg: withCtx(() => [
1372
+ renderSlot(_ctx.$slots, "msg", {
1373
+ item,
1374
+ index
1375
+ })
1376
+ ]),
1377
+ aiAvatar: withCtx(() => [
1378
+ renderSlot(_ctx.$slots, "aiAvatar")
1379
+ ]),
1380
+ fn: withCtx(() => [
1381
+ renderSlot(_ctx.$slots, "fn", {
1382
+ item,
1383
+ index
1384
+ })
1385
+ ]),
1386
+ extendsFn: withCtx(() => [
1387
+ renderSlot(_ctx.$slots, "extendsFn", {
1388
+ item,
1389
+ index
1390
+ })
1391
+ ]),
1392
+ _: 2
1393
+ /* DYNAMIC */
1394
+ }, 1032, ["item", "index", "enable-deep-thinking", "has-retry", "onCopy", "onRetry", "onLike", "onDislike", "onCompleteRendered"]))
1395
+ ],
1396
+ 64
1397
+ /* STABLE_FRAGMENT */
1398
+ );
1399
+ }),
1400
+ 128
1401
+ /* KEYED_FRAGMENT */
1402
+ ))
998
1403
  ])
999
- ])) : createCommentVNode("", true),
1000
- createElementVNode("div", { class: "touchchat-dialog-content" }, [
1001
- (openBlock(true), createElementBlock(Fragment, null, renderList(chatList.value, (item, index) => {
1002
- return openBlock(), createElementBlock(Fragment, {
1003
- key: item.chatId
1004
- }, [
1005
- item.user === "u" ? (openBlock(), createBlock(_sfc_main$2, {
1006
- key: 0,
1007
- item,
1008
- index,
1009
- onCopy: ($event) => handleMessageAction("copy" /* COPY */, index),
1010
- onEdit: ($event) => handleMessageAction("edit" /* EDIT */, index),
1011
- onDelete: ($event) => handleMessageAction("delete" /* DELETE */, index),
1012
- onSaveEdit: saveEdit,
1013
- onCancelEdit: ($event) => cancelEdit(index)
1014
- }, {
1015
- userAvatar: withCtx(() => [
1016
- renderSlot(_ctx.$slots, "userAvatar")
1017
- ]),
1018
- _: 2
1019
- }, 1032, ["item", "index", "onCopy", "onEdit", "onDelete", "onCancelEdit"])) : (openBlock(), createBlock(_sfc_main$3, {
1020
- key: 1,
1021
- item,
1022
- index,
1023
- "enable-deep-thinking": enableDeepThinking.value,
1024
- onCopy: ($event) => handleMessageAction("copy" /* COPY */, index),
1025
- onRetry: ($event) => handleMessageAction("retry" /* RETRY */, index),
1026
- onLike: ($event) => handleMessageAction("like" /* LIKE */, index),
1027
- onDislike: ($event) => handleMessageAction("dislike" /* DISLIKE */, index),
1028
- onContentRendered: attachCopyButtons,
1029
- onCompleteRendered: completeRendered,
1030
- onToggleSidebar: toggleSidebarClick
1031
- }, {
1032
- aiMessageContent: withCtx(() => [
1033
- renderSlot(_ctx.$slots, "aiMessageContent", {
1034
- item,
1035
- index
1036
- })
1037
- ]),
1038
- aiAvatar: withCtx(() => [
1039
- renderSlot(_ctx.$slots, "aiAvatar")
1040
- ]),
1041
- _: 2
1042
- }, 1032, ["item", "index", "enable-deep-thinking", "onCopy", "onRetry", "onLike", "onDislike"]))
1043
- ], 64);
1044
- }), 128))
1045
- ])
1046
- ], 512),
1047
- unref(scripts).length > 0 ? (openBlock(), createBlock(_sfc_main$4, {
1404
+ ],
1405
+ 544
1406
+ /* NEED_HYDRATION, NEED_PATCH */
1407
+ ),
1408
+ _ctx.$slots.shortcut ? (openBlock(), createElementBlock("div", {
1048
1409
  key: 0,
1049
- scripts: unref(scripts),
1050
- "selected-script-name": selectedScriptName.value,
1051
- "btn-disable": false,
1052
- onSceneClick: sceneClick
1053
- }, null, 8, ["scripts", "selected-script-name"])) : createCommentVNode("", true),
1054
- createVNode(_sfc_main$5, {
1055
- "input-value": inputValue.value,
1056
- "onUpdate:inputValue": ($event) => inputValue.value = $event,
1057
- "enable-deep-thinking": enableDeepThinking.value,
1058
- "onUpdate:enableDeepThinking": ($event) => enableDeepThinking.value = $event,
1059
- "is-chating": isChating.value,
1060
- onSend: handleBeforeSend,
1061
- onStop: handleStop,
1062
- onToggleDeepThinking: (val) => enableDeepThinking.value = val
1063
- }, {
1064
- input: withCtx(({ disabled }) => [
1065
- renderSlot(_ctx.$slots, "input", { disabled })
1066
- ]),
1067
- _: 3
1068
- }, 8, ["input-value", "onUpdate:inputValue", "enable-deep-thinking", "onUpdate:enableDeepThinking", "is-chating", "onToggleDeepThinking"])
1069
- ]);
1410
+ class: "touchchat-edit-shortcut"
1411
+ }, [
1412
+ renderSlot(_ctx.$slots, "shortcut")
1413
+ ])) : createCommentVNode("v-if", true),
1414
+ renderSlot(_ctx.$slots, "edit", {}, () => [
1415
+ createVNode(ChatInput, {
1416
+ ref_key: "ChatInputRef",
1417
+ ref: ChatInputRef,
1418
+ "input-value": inputValue.value,
1419
+ "onUpdate:inputValue": ($event) => inputValue.value = $event,
1420
+ "enable-deep-thinking": enableDeepThinking.value,
1421
+ "onUpdate:enableDeepThinking": ($event) => enableDeepThinking.value = $event,
1422
+ "is-chating": isChating.value,
1423
+ onSend: handleBeforeSend,
1424
+ onStop: handleStop,
1425
+ onToggleDeepThinking: (val) => enableDeepThinking.value = val,
1426
+ onModuleInfo: updateModule
1427
+ }, {
1428
+ editTop: withCtx(() => [
1429
+ renderSlot(_ctx.$slots, "editTop")
1430
+ ]),
1431
+ editFn: withCtx(() => [
1432
+ renderSlot(_ctx.$slots, "editFn")
1433
+ ]),
1434
+ _: 3
1435
+ /* FORWARDED */
1436
+ }, 8, ["input-value", "onUpdate:inputValue", "enable-deep-thinking", "onUpdate:enableDeepThinking", "is-chating", "onToggleDeepThinking"])
1437
+ ])
1438
+ ], 40, ["onDragover"]);
1070
1439
  };
1071
1440
  }
1072
1441
  });