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

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