@touchvue/chat 1.0.0-beta.4 → 1.0.0-beta.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -70
- package/es/_virtual/_plugin-vue_export-helper.mjs +10 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs.map +1 -0
- package/es/index.mjs.map +1 -1
- package/es/node_modules/.pnpm/dompurify@3.3.0/node_modules/dompurify/dist/purify.es.mjs +1380 -0
- package/es/node_modules/.pnpm/dompurify@3.3.0/node_modules/dompurify/dist/purify.es.mjs.map +1 -0
- package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.mjs +469 -0
- package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.mjs.map +1 -0
- package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.mjs +63 -0
- package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.mjs.map +1 -0
- package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.mjs +9 -0
- package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.mjs.map +1 -0
- package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.mjs +9 -0
- package/es/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.mjs.map +1 -0
- package/es/node_modules/.pnpm/html2canvas@1.4.1/node_modules/html2canvas/dist/html2canvas.esm.mjs +7824 -0
- package/es/node_modules/.pnpm/html2canvas@1.4.1/node_modules/html2canvas/dist/html2canvas.esm.mjs.map +1 -0
- package/es/node_modules/.pnpm/{linkify-it@3.0.3 → linkify-it@5.0.0}/node_modules/linkify-it/index.mjs +162 -157
- package/es/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.mjs.map +1 -0
- package/es/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.mjs +195 -0
- package/es/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.mjs.map +1 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.mjs +26 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.mjs.map +1 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.mjs +291 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.mjs.map +1 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.mjs +6 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.mjs.map +1 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +81 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.mjs.map +1 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +70 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.mjs.map +1 -0
- package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/index.mjs +81 -107
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.mjs.map +1 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.mjs +135 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.mjs.map +1 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.mjs +63 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.mjs.map +1 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.mjs +197 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.mjs.map +1 -0
- package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/renderer.mjs +72 -95
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.mjs.map +1 -0
- package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/ruler.mjs +37 -50
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.mjs.map +1 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.mjs +55 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.mjs.map +1 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.mjs +44 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.mjs.map +1 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.mjs +73 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.mjs.map +1 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.mjs +49 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.mjs.map +1 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.mjs +211 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.mjs.map +1 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.mjs +232 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.mjs.map +1 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.mjs +138 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.mjs.map +1 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.mjs +46 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.mjs.map +1 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.mjs +75 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.mjs.map +1 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.mjs +55 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.mjs.map +1 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.mjs +73 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs.map +1 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +54 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.mjs.map +1 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.mjs +59 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.mjs.map +1 -0
- 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
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs.map +1 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.mjs +89 -0
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.mjs.map +1 -0
- package/es/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/token.mjs +22 -29
- package/es/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.mjs.map +1 -0
- package/es/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.mjs +5 -0
- package/es/{_virtual → node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl}/index.mjs.map +1 -1
- package/es/node_modules/.pnpm/{mdurl@1.0.1/node_modules/mdurl → mdurl@2.0.0/node_modules/mdurl/lib}/decode.mjs +32 -40
- package/es/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.mjs.map +1 -0
- package/es/node_modules/.pnpm/{mdurl@1.0.1/node_modules/mdurl → mdurl@2.0.0/node_modules/mdurl/lib}/encode.mjs +22 -29
- package/es/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.mjs.map +1 -0
- package/es/node_modules/.pnpm/{mdurl@1.0.1/node_modules/mdurl → mdurl@2.0.0/node_modules/mdurl/lib}/format.mjs +5 -5
- package/es/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.mjs.map +1 -0
- package/es/node_modules/.pnpm/{mdurl@1.0.1/node_modules/mdurl → mdurl@2.0.0/node_modules/mdurl/lib}/parse.mjs +101 -84
- package/es/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.mjs.map +1 -0
- package/es/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.mjs +443 -0
- package/es/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.mjs.map +1 -0
- package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.mjs +4 -0
- package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.mjs.map +1 -0
- package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.mjs +4 -0
- package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.mjs.map +1 -0
- package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.mjs +4 -0
- package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.mjs.map +1 -0
- package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.mjs +4 -0
- package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.mjs.map +1 -0
- package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.mjs +4 -0
- package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.mjs.map +1 -0
- package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.mjs +7 -0
- package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.mjs.map +1 -0
- package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.mjs +4 -0
- package/es/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.mjs.map +1 -0
- package/es/package.json.css +1 -1
- package/es/package.json.mjs +1 -1
- package/es/packages/components/index.mjs +1 -1
- package/es/packages/components/resolver.mjs.map +1 -1
- package/es/packages/components/touchchat/component/AiRobot/HelloChat.vue.mjs +3 -2
- package/es/packages/components/touchchat/component/AiRobot/HelloChat.vue.mjs.map +1 -1
- package/es/packages/components/touchchat/component/AiRobot/HelloChat.vue2.mjs +219 -159
- package/es/packages/components/touchchat/component/AiRobot/HelloChat.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/component/AiRobot/face.vue.mjs +3 -2
- package/es/packages/components/touchchat/component/AiRobot/face.vue.mjs.map +1 -1
- package/es/packages/components/touchchat/component/AiRobot/face.vue2.mjs +27 -13
- package/es/packages/components/touchchat/component/AiRobot/face.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/component/AiRobot/letter.vue.mjs +3 -2
- package/es/packages/components/touchchat/component/AiRobot/letter.vue.mjs.map +1 -1
- package/es/packages/components/touchchat/component/AiRobot/letter.vue2.mjs +169 -40
- package/es/packages/components/touchchat/component/AiRobot/letter.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/component/AiRobot/meterialPrepare.vue.mjs +3 -2
- package/es/packages/components/touchchat/component/AiRobot/meterialPrepare.vue.mjs.map +1 -1
- package/es/packages/components/touchchat/component/AiRobot/meterialPrepare.vue2.mjs +15 -10
- package/es/packages/components/touchchat/component/AiRobot/meterialPrepare.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/component/AiRobot/start.vue.mjs +3 -2
- package/es/packages/components/touchchat/component/AiRobot/start.vue.mjs.map +1 -1
- package/es/packages/components/touchchat/component/AiRobot/start.vue2.mjs +18 -11
- package/es/packages/components/touchchat/component/AiRobot/start.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/component/CardView.vue.mjs +3 -2
- package/es/packages/components/touchchat/component/CardView.vue.mjs.map +1 -1
- package/es/packages/components/touchchat/component/CardView.vue2.mjs +66 -42
- package/es/packages/components/touchchat/component/CardView.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/component/FileContent.vue.mjs +7 -0
- package/es/packages/components/touchchat/component/FileContent.vue.mjs.map +1 -0
- package/es/packages/components/touchchat/component/FileContent.vue2.mjs +201 -0
- package/es/packages/components/touchchat/component/FileContent.vue2.mjs.map +1 -0
- package/es/packages/components/touchchat/component/FileView.vue.mjs +3 -2
- package/es/packages/components/touchchat/component/FileView.vue.mjs.map +1 -1
- package/es/packages/components/touchchat/component/FileView.vue2.mjs +17 -4
- package/es/packages/components/touchchat/component/FileView.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/component/HelloChat.vue.mjs +3 -2
- package/es/packages/components/touchchat/component/HelloChat.vue.mjs.map +1 -1
- package/es/packages/components/touchchat/component/HelloChat.vue2.mjs +26 -14
- package/es/packages/components/touchchat/component/HelloChat.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/component/ImageFile.vue.mjs +7 -0
- package/es/packages/components/touchchat/component/ImageFile.vue.mjs.map +1 -0
- package/es/packages/components/touchchat/component/ImageFile.vue2.mjs +162 -0
- package/es/packages/components/touchchat/component/ImageFile.vue2.mjs.map +1 -0
- package/es/packages/components/touchchat/component/ImageView.vue.mjs +3 -2
- package/es/packages/components/touchchat/component/ImageView.vue.mjs.map +1 -1
- package/es/packages/components/touchchat/component/ImageView.vue2.mjs +1 -1
- package/es/packages/components/touchchat/component/ImageView.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/component/LinkView.vue.mjs +3 -2
- package/es/packages/components/touchchat/component/LinkView.vue.mjs.map +1 -1
- package/es/packages/components/touchchat/component/LinkView.vue2.mjs +19 -5
- package/es/packages/components/touchchat/component/LinkView.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/component/MarkLayer.vue.mjs +7 -0
- package/es/packages/components/touchchat/component/MarkLayer.vue.mjs.map +1 -0
- package/es/packages/components/touchchat/component/MarkLayer.vue2.mjs +56 -0
- package/es/packages/components/touchchat/component/MarkLayer.vue2.mjs.map +1 -0
- package/es/packages/components/touchchat/component/ModuleSelect.vue.mjs +7 -0
- package/es/packages/components/touchchat/component/ModuleSelect.vue.mjs.map +1 -0
- package/es/packages/components/touchchat/component/ModuleSelect.vue2.mjs +121 -0
- package/es/packages/components/touchchat/component/ModuleSelect.vue2.mjs.map +1 -0
- package/es/packages/components/touchchat/component/PDFFile.vue.mjs +7 -0
- package/es/packages/components/touchchat/component/PDFFile.vue.mjs.map +1 -0
- package/es/packages/components/touchchat/component/PDFFile.vue2.mjs +205 -0
- package/es/packages/components/touchchat/component/PDFFile.vue2.mjs.map +1 -0
- package/es/packages/components/touchchat/component/RealtimeVoice.vue.mjs +7 -0
- package/es/packages/components/touchchat/component/RealtimeVoice.vue.mjs.map +1 -0
- package/es/packages/components/touchchat/component/RealtimeVoice.vue2.mjs +160 -0
- package/es/packages/components/touchchat/component/RealtimeVoice.vue2.mjs.map +1 -0
- package/es/packages/components/touchchat/component/Screenshot.vue.mjs +7 -0
- package/es/packages/components/touchchat/component/Screenshot.vue.mjs.map +1 -0
- package/es/packages/components/touchchat/component/Screenshot.vue2.mjs +199 -0
- package/es/packages/components/touchchat/component/Screenshot.vue2.mjs.map +1 -0
- package/es/packages/components/touchchat/component/ThoughtChain.vue.mjs +7 -0
- package/es/packages/components/touchchat/component/ThoughtChain.vue.mjs.map +1 -0
- package/es/packages/components/touchchat/component/ThoughtChain.vue2.mjs +69 -0
- package/es/packages/components/touchchat/component/ThoughtChain.vue2.mjs.map +1 -0
- package/es/packages/components/touchchat/component/UploadView.vue.mjs +7 -0
- package/es/packages/components/touchchat/component/UploadView.vue.mjs.map +1 -0
- package/es/packages/components/touchchat/component/UploadView.vue2.mjs +146 -0
- package/es/packages/components/touchchat/component/UploadView.vue2.mjs.map +1 -0
- package/es/packages/components/touchchat/component/UploadView_api.vue.mjs +7 -0
- package/es/packages/components/touchchat/component/UploadView_api.vue.mjs.map +1 -0
- package/es/packages/components/touchchat/component/UploadView_api.vue2.mjs +166 -0
- package/es/packages/components/touchchat/component/UploadView_api.vue2.mjs.map +1 -0
- package/es/packages/components/touchchat/component/VoiceView.vue.mjs +7 -0
- package/es/packages/components/touchchat/component/VoiceView.vue.mjs.map +1 -0
- package/es/packages/components/touchchat/component/VoiceView.vue2.mjs +165 -0
- package/es/packages/components/touchchat/component/VoiceView.vue2.mjs.map +1 -0
- package/es/packages/components/touchchat/img/file/doc.png.mjs +4 -0
- package/es/packages/components/touchchat/img/file/doc.png.mjs.map +1 -0
- package/es/packages/components/touchchat/img/file/docx.png.mjs +4 -0
- package/es/packages/components/touchchat/img/file/docx.png.mjs.map +1 -0
- package/es/packages/components/touchchat/img/file/gif.png.mjs +4 -0
- package/es/packages/components/touchchat/img/file/gif.png.mjs.map +1 -0
- package/es/packages/components/touchchat/img/file/html.png.mjs +4 -0
- package/es/packages/components/touchchat/img/file/html.png.mjs.map +1 -0
- package/es/packages/components/touchchat/img/file/jpg.png.mjs +4 -0
- package/es/packages/components/touchchat/img/file/jpg.png.mjs.map +1 -0
- package/es/packages/components/touchchat/img/file/mp3.png.mjs +4 -0
- package/es/packages/components/touchchat/img/file/mp3.png.mjs.map +1 -0
- package/es/packages/components/touchchat/img/file/mp4.png.mjs +4 -0
- package/es/packages/components/touchchat/img/file/mp4.png.mjs.map +1 -0
- package/es/packages/components/touchchat/img/file/music.png.mjs +4 -0
- package/es/packages/components/touchchat/img/file/music.png.mjs.map +1 -0
- package/es/packages/components/touchchat/img/file/pdf.png.mjs +4 -0
- package/es/packages/components/touchchat/img/file/pdf.png.mjs.map +1 -0
- package/es/packages/components/touchchat/img/file/png.png.mjs +4 -0
- package/es/packages/components/touchchat/img/file/png.png.mjs.map +1 -0
- package/es/packages/components/touchchat/img/file/ppt.png.mjs +4 -0
- package/es/packages/components/touchchat/img/file/ppt.png.mjs.map +1 -0
- package/es/packages/components/touchchat/img/file/pptx.png.mjs +4 -0
- package/es/packages/components/touchchat/img/file/pptx.png.mjs.map +1 -0
- package/es/packages/components/touchchat/img/file/txt.png.mjs +4 -0
- package/es/packages/components/touchchat/img/file/txt.png.mjs.map +1 -0
- package/es/packages/components/touchchat/img/file/xls.png.mjs +4 -0
- package/es/packages/components/touchchat/img/file/xls.png.mjs.map +1 -0
- package/es/packages/components/touchchat/img/file/xlsx.png.mjs +4 -0
- package/es/packages/components/touchchat/img/file/xlsx.png.mjs.map +1 -0
- package/es/packages/components/touchchat/img/svg/reset.svg.mjs +4 -0
- package/es/packages/components/touchchat/img/svg/reset.svg.mjs.map +1 -0
- package/es/packages/components/touchchat/index.mjs +5 -5
- package/es/packages/components/touchchat/index.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/AgentsView.vue.mjs +7 -0
- package/es/packages/components/touchchat/src/AiChat/AgentsView.vue.mjs.map +1 -0
- package/es/packages/components/touchchat/src/AiChat/AgentsView.vue2.mjs +59 -0
- package/es/packages/components/touchchat/src/AiChat/AgentsView.vue2.mjs.map +1 -0
- package/es/packages/components/touchchat/src/AiChat/AiMessage.vue.mjs +3 -2
- package/es/packages/components/touchchat/src/AiChat/AiMessage.vue.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/AiMessage.vue2.mjs +218 -131
- package/es/packages/components/touchchat/src/AiChat/AiMessage.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/Chat/TouchChat.mjs +18 -0
- package/es/packages/components/touchchat/src/AiChat/Chat/TouchChat.mjs.map +1 -0
- package/es/packages/components/touchchat/src/AiChat/ChatInput.vue.mjs +3 -2
- package/es/packages/components/touchchat/src/AiChat/ChatInput.vue.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/ChatInput.vue2.mjs +444 -44
- package/es/packages/components/touchchat/src/AiChat/ChatInput.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/HistoryList.vue.mjs +3 -2
- package/es/packages/components/touchchat/src/AiChat/HistoryList.vue.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/HistoryList.vue2.mjs +180 -98
- package/es/packages/components/touchchat/src/AiChat/HistoryList.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/HistorySidebar.vue.mjs +3 -2
- package/es/packages/components/touchchat/src/AiChat/HistorySidebar.vue.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/HistorySidebar.vue2.mjs +29 -12
- package/es/packages/components/touchchat/src/AiChat/HistorySidebar.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/MessageActions.vue.mjs +3 -2
- package/es/packages/components/touchchat/src/AiChat/MessageActions.vue.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/MessageActions.vue2.mjs +134 -61
- package/es/packages/components/touchchat/src/AiChat/MessageActions.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/SiderBarView.vue.mjs +3 -2
- package/es/packages/components/touchchat/src/AiChat/SiderBarView.vue.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/SiderBarView.vue2.mjs +14 -8
- package/es/packages/components/touchchat/src/AiChat/SiderBarView.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue.mjs +7 -0
- package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue.mjs.map +1 -0
- package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue2.mjs +995 -0
- package/es/packages/components/touchchat/src/AiChat/TouchAgent.vue2.mjs.map +1 -0
- package/es/packages/components/touchchat/src/AiChat/TouchChat.vue.mjs +3 -2
- package/es/packages/components/touchchat/src/AiChat/TouchChat.vue.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/TouchChat.vue2.mjs +753 -384
- package/es/packages/components/touchchat/src/AiChat/TouchChat.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/TouchHistory.vue.mjs +3 -2
- package/es/packages/components/touchchat/src/AiChat/TouchHistory.vue.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/TouchHistory.vue2.mjs +327 -123
- package/es/packages/components/touchchat/src/AiChat/TouchHistory.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/UserMessage.vue.mjs +3 -2
- package/es/packages/components/touchchat/src/AiChat/UserMessage.vue.mjs.map +1 -1
- package/es/packages/components/touchchat/src/AiChat/UserMessage.vue2.mjs +128 -61
- package/es/packages/components/touchchat/src/AiChat/UserMessage.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/src/index.vue.mjs +3 -2
- package/es/packages/components/touchchat/src/index.vue.mjs.map +1 -1
- package/es/packages/components/touchchat/src/index.vue2.mjs +221 -128
- package/es/packages/components/touchchat/src/index.vue2.mjs.map +1 -1
- package/es/packages/components/touchchat/src/types/a2a.mjs +11 -0
- package/es/packages/components/touchchat/src/types/a2a.mjs.map +1 -0
- package/es/packages/components/touchchat/utils/a2aService.mjs +309 -0
- package/es/packages/components/touchchat/utils/a2aService.mjs.map +1 -0
- package/es/packages/components/touchchat/utils/fetchStream.mjs +6 -1
- package/es/packages/components/touchchat/utils/fetchStream.mjs.map +1 -1
- package/es/packages/components/touchchat/utils/markdown.mjs +3 -3
- package/es/packages/components/touchchat/utils/markdown.mjs.map +1 -1
- package/es/packages/utils/config.mjs.map +1 -1
- package/es/packages/utils/types.mjs.map +1 -1
- package/global.d.ts +2 -2
- package/lib/_virtual/_plugin-vue_export-helper.js +14 -0
- package/lib/_virtual/_plugin-vue_export-helper.js.map +1 -0
- package/lib/index.js.map +1 -1
- package/lib/node_modules/.pnpm/dompurify@3.3.0/node_modules/dompurify/dist/purify.es.js +1384 -0
- package/lib/node_modules/.pnpm/dompurify@3.3.0/node_modules/dompurify/dist/purify.es.js.map +1 -0
- package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js +477 -0
- package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js.map +1 -0
- package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.js +66 -0
- package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.js.map +1 -0
- package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.js +13 -0
- package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.js.map +1 -0
- package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js +13 -0
- package/lib/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +1 -0
- package/lib/node_modules/.pnpm/html2canvas@1.4.1/node_modules/html2canvas/dist/html2canvas.esm.js +7828 -0
- package/lib/node_modules/.pnpm/html2canvas@1.4.1/node_modules/html2canvas/dist/html2canvas.esm.js.map +1 -0
- package/lib/node_modules/.pnpm/{linkify-it@3.0.3 → linkify-it@5.0.0}/node_modules/linkify-it/index.js +163 -156
- package/lib/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.js.map +1 -0
- package/lib/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.js +199 -0
- package/lib/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.js.map +1 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.js +29 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.js.map +1 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.js +308 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.js.map +1 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.js +12 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.js.map +1 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.js +85 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.js.map +1 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.js +74 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.js.map +1 -0
- package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/index.js +81 -106
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.js.map +1 -0
- package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/renderer.js +79 -100
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.js.map +1 -0
- package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/ruler.js +39 -50
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.js.map +1 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.js +59 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.js.map +1 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.js +48 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.js.map +1 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.js +77 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.js.map +1 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.js +53 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.js.map +1 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.js +215 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.js.map +1 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js +236 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.js.map +1 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.js +18 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.js.map +1 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.js +142 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.js.map +1 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.js +50 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.js.map +1 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.js +79 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.js.map +1 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js +59 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js.map +1 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.js +77 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.js.map +1 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.js +45 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.js.map +1 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.js +58 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.js.map +1 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.js +63 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.js.map +1 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.js +129 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.js.map +1 -0
- 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
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.js.map +1 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.js +93 -0
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.js.map +1 -0
- package/lib/node_modules/.pnpm/{markdown-it@12.3.2 → markdown-it@14.1.0}/node_modules/markdown-it/lib/token.js +24 -29
- package/lib/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.js.map +1 -0
- package/lib/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.js +14 -0
- package/lib/{_virtual → node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl}/index.js.map +1 -1
- package/lib/node_modules/.pnpm/{mdurl@1.0.1/node_modules/mdurl → mdurl@2.0.0/node_modules/mdurl/lib}/decode.js +34 -40
- package/lib/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.js.map +1 -0
- package/lib/node_modules/.pnpm/{mdurl@1.0.1/node_modules/mdurl → mdurl@2.0.0/node_modules/mdurl/lib}/encode.js +23 -28
- package/lib/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.js.map +1 -0
- package/lib/node_modules/.pnpm/{mdurl@1.0.1/node_modules/mdurl → mdurl@2.0.0/node_modules/mdurl/lib}/format.js +7 -5
- package/lib/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.js.map +1 -0
- package/lib/node_modules/.pnpm/{mdurl@1.0.1/node_modules/mdurl → mdurl@2.0.0/node_modules/mdurl/lib}/parse.js +103 -84
- package/lib/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.js.map +1 -0
- package/lib/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js +453 -0
- package/lib/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js.map +1 -0
- package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.js +8 -0
- package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.js.map +1 -0
- package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.js +8 -0
- package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.js.map +1 -0
- package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.js +8 -0
- package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.js.map +1 -0
- package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.js +8 -0
- package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.js.map +1 -0
- package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.js +8 -0
- package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.js.map +1 -0
- package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.js +18 -0
- package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.js.map +1 -0
- package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.js +8 -0
- package/lib/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.js.map +1 -0
- package/lib/package.json.css +1 -1
- package/lib/package.json.js +1 -1
- package/lib/packages/components/index.js +2 -2
- package/lib/packages/components/resolver.js.map +1 -1
- package/lib/packages/components/touchchat/component/AiRobot/HelloChat.vue.js +3 -2
- package/lib/packages/components/touchchat/component/AiRobot/HelloChat.vue.js.map +1 -1
- package/lib/packages/components/touchchat/component/AiRobot/HelloChat.vue2.js +219 -159
- package/lib/packages/components/touchchat/component/AiRobot/HelloChat.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/component/AiRobot/face.vue.js +3 -2
- package/lib/packages/components/touchchat/component/AiRobot/face.vue.js.map +1 -1
- package/lib/packages/components/touchchat/component/AiRobot/face.vue2.js +26 -12
- package/lib/packages/components/touchchat/component/AiRobot/face.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/component/AiRobot/letter.vue.js +3 -2
- package/lib/packages/components/touchchat/component/AiRobot/letter.vue.js.map +1 -1
- package/lib/packages/components/touchchat/component/AiRobot/letter.vue2.js +168 -39
- package/lib/packages/components/touchchat/component/AiRobot/letter.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/component/AiRobot/meterialPrepare.vue.js +3 -2
- package/lib/packages/components/touchchat/component/AiRobot/meterialPrepare.vue.js.map +1 -1
- package/lib/packages/components/touchchat/component/AiRobot/meterialPrepare.vue2.js +15 -10
- package/lib/packages/components/touchchat/component/AiRobot/meterialPrepare.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/component/AiRobot/start.vue.js +3 -2
- package/lib/packages/components/touchchat/component/AiRobot/start.vue.js.map +1 -1
- package/lib/packages/components/touchchat/component/AiRobot/start.vue2.js +17 -10
- package/lib/packages/components/touchchat/component/AiRobot/start.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/component/CardView.vue.js +3 -2
- package/lib/packages/components/touchchat/component/CardView.vue.js.map +1 -1
- package/lib/packages/components/touchchat/component/CardView.vue2.js +66 -42
- package/lib/packages/components/touchchat/component/CardView.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/component/FileContent.vue.js +11 -0
- package/lib/packages/components/touchchat/component/FileContent.vue.js.map +1 -0
- package/lib/packages/components/touchchat/component/FileContent.vue2.js +205 -0
- package/lib/packages/components/touchchat/component/FileContent.vue2.js.map +1 -0
- package/lib/packages/components/touchchat/component/FileView.vue.js +3 -2
- package/lib/packages/components/touchchat/component/FileView.vue.js.map +1 -1
- package/lib/packages/components/touchchat/component/FileView.vue2.js +16 -3
- package/lib/packages/components/touchchat/component/FileView.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/component/HelloChat.vue.js +3 -2
- package/lib/packages/components/touchchat/component/HelloChat.vue.js.map +1 -1
- package/lib/packages/components/touchchat/component/HelloChat.vue2.js +26 -14
- package/lib/packages/components/touchchat/component/HelloChat.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/component/ImageFile.vue.js +11 -0
- package/lib/packages/components/touchchat/component/ImageFile.vue.js.map +1 -0
- package/lib/packages/components/touchchat/component/ImageFile.vue2.js +166 -0
- package/lib/packages/components/touchchat/component/ImageFile.vue2.js.map +1 -0
- package/lib/packages/components/touchchat/component/ImageView.vue.js +3 -2
- package/lib/packages/components/touchchat/component/ImageView.vue.js.map +1 -1
- package/lib/packages/components/touchchat/component/ImageView.vue2.js +1 -1
- package/lib/packages/components/touchchat/component/ImageView.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/component/LinkView.vue.js +3 -2
- package/lib/packages/components/touchchat/component/LinkView.vue.js.map +1 -1
- package/lib/packages/components/touchchat/component/LinkView.vue2.js +18 -4
- package/lib/packages/components/touchchat/component/LinkView.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/component/MarkLayer.vue.js +11 -0
- package/lib/packages/components/touchchat/component/MarkLayer.vue.js.map +1 -0
- package/lib/packages/components/touchchat/component/MarkLayer.vue2.js +60 -0
- package/lib/packages/components/touchchat/component/MarkLayer.vue2.js.map +1 -0
- package/lib/packages/components/touchchat/component/ModuleSelect.vue.js +11 -0
- package/lib/packages/components/touchchat/component/ModuleSelect.vue.js.map +1 -0
- package/lib/packages/components/touchchat/component/ModuleSelect.vue2.js +125 -0
- package/lib/packages/components/touchchat/component/ModuleSelect.vue2.js.map +1 -0
- package/lib/packages/components/touchchat/component/PDFFile.vue.js +11 -0
- package/lib/packages/components/touchchat/component/PDFFile.vue.js.map +1 -0
- package/lib/packages/components/touchchat/component/PDFFile.vue2.js +209 -0
- package/lib/packages/components/touchchat/component/PDFFile.vue2.js.map +1 -0
- package/lib/packages/components/touchchat/component/RealtimeVoice.vue.js +11 -0
- package/lib/packages/components/touchchat/component/RealtimeVoice.vue.js.map +1 -0
- package/lib/packages/components/touchchat/component/RealtimeVoice.vue2.js +164 -0
- package/lib/packages/components/touchchat/component/RealtimeVoice.vue2.js.map +1 -0
- package/lib/packages/components/touchchat/component/Screenshot.vue.js +11 -0
- package/lib/packages/components/touchchat/component/Screenshot.vue.js.map +1 -0
- package/lib/packages/components/touchchat/component/Screenshot.vue2.js +203 -0
- package/lib/packages/components/touchchat/component/Screenshot.vue2.js.map +1 -0
- package/lib/packages/components/touchchat/component/ThoughtChain.vue.js +11 -0
- package/lib/packages/components/touchchat/component/ThoughtChain.vue.js.map +1 -0
- package/lib/packages/components/touchchat/component/ThoughtChain.vue2.js +73 -0
- package/lib/packages/components/touchchat/component/ThoughtChain.vue2.js.map +1 -0
- package/lib/packages/components/touchchat/component/UploadView.vue.js +11 -0
- package/lib/packages/components/touchchat/component/UploadView.vue.js.map +1 -0
- package/lib/packages/components/touchchat/component/UploadView.vue2.js +150 -0
- package/lib/packages/components/touchchat/component/UploadView.vue2.js.map +1 -0
- package/lib/packages/components/touchchat/component/UploadView_api.vue.js +11 -0
- package/lib/packages/components/touchchat/component/UploadView_api.vue.js.map +1 -0
- package/lib/packages/components/touchchat/component/UploadView_api.vue2.js +170 -0
- package/lib/packages/components/touchchat/component/UploadView_api.vue2.js.map +1 -0
- package/lib/packages/components/touchchat/component/VoiceView.vue.js +11 -0
- package/lib/packages/components/touchchat/component/VoiceView.vue.js.map +1 -0
- package/lib/packages/components/touchchat/component/VoiceView.vue2.js +169 -0
- package/lib/packages/components/touchchat/component/VoiceView.vue2.js.map +1 -0
- package/lib/packages/components/touchchat/img/file/doc.png.js +8 -0
- package/lib/packages/components/touchchat/img/file/doc.png.js.map +1 -0
- package/lib/packages/components/touchchat/img/file/docx.png.js +8 -0
- package/lib/packages/components/touchchat/img/file/docx.png.js.map +1 -0
- package/lib/packages/components/touchchat/img/file/gif.png.js +8 -0
- package/lib/packages/components/touchchat/img/file/gif.png.js.map +1 -0
- package/lib/packages/components/touchchat/img/file/html.png.js +8 -0
- package/lib/packages/components/touchchat/img/file/html.png.js.map +1 -0
- package/lib/packages/components/touchchat/img/file/jpg.png.js +8 -0
- package/lib/packages/components/touchchat/img/file/jpg.png.js.map +1 -0
- package/lib/packages/components/touchchat/img/file/mp3.png.js +8 -0
- package/lib/packages/components/touchchat/img/file/mp3.png.js.map +1 -0
- package/lib/packages/components/touchchat/img/file/mp4.png.js +8 -0
- package/lib/packages/components/touchchat/img/file/mp4.png.js.map +1 -0
- package/lib/packages/components/touchchat/img/file/music.png.js +8 -0
- package/lib/packages/components/touchchat/img/file/music.png.js.map +1 -0
- package/lib/packages/components/touchchat/img/file/pdf.png.js +8 -0
- package/lib/packages/components/touchchat/img/file/pdf.png.js.map +1 -0
- package/lib/packages/components/touchchat/img/file/png.png.js +8 -0
- package/lib/packages/components/touchchat/img/file/png.png.js.map +1 -0
- package/lib/packages/components/touchchat/img/file/ppt.png.js +8 -0
- package/lib/packages/components/touchchat/img/file/ppt.png.js.map +1 -0
- package/lib/packages/components/touchchat/img/file/pptx.png.js +8 -0
- package/lib/packages/components/touchchat/img/file/pptx.png.js.map +1 -0
- package/lib/packages/components/touchchat/img/file/txt.png.js +8 -0
- package/lib/packages/components/touchchat/img/file/txt.png.js.map +1 -0
- package/lib/packages/components/touchchat/img/file/xls.png.js +8 -0
- package/lib/packages/components/touchchat/img/file/xls.png.js.map +1 -0
- package/lib/packages/components/touchchat/img/file/xlsx.png.js +8 -0
- package/lib/packages/components/touchchat/img/file/xlsx.png.js.map +1 -0
- package/lib/packages/components/touchchat/img/svg/reset.svg.js +8 -0
- package/lib/packages/components/touchchat/img/svg/reset.svg.js.map +1 -0
- package/lib/packages/components/touchchat/index.js +6 -6
- package/lib/packages/components/touchchat/index.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/AgentsView.vue.js +11 -0
- package/lib/packages/components/touchchat/src/AiChat/AgentsView.vue.js.map +1 -0
- package/lib/packages/components/touchchat/src/AiChat/AgentsView.vue2.js +63 -0
- package/lib/packages/components/touchchat/src/AiChat/AgentsView.vue2.js.map +1 -0
- package/lib/packages/components/touchchat/src/AiChat/AiMessage.vue.js +3 -2
- package/lib/packages/components/touchchat/src/AiChat/AiMessage.vue.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/AiMessage.vue2.js +217 -130
- package/lib/packages/components/touchchat/src/AiChat/AiMessage.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/Chat/TouchChat.js +21 -0
- package/lib/packages/components/touchchat/src/AiChat/Chat/TouchChat.js.map +1 -0
- package/lib/packages/components/touchchat/src/AiChat/ChatInput.vue.js +3 -2
- package/lib/packages/components/touchchat/src/AiChat/ChatInput.vue.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/ChatInput.vue2.js +443 -43
- package/lib/packages/components/touchchat/src/AiChat/ChatInput.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/HistoryList.vue.js +3 -2
- package/lib/packages/components/touchchat/src/AiChat/HistoryList.vue.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/HistoryList.vue2.js +179 -97
- package/lib/packages/components/touchchat/src/AiChat/HistoryList.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/HistorySidebar.vue.js +3 -2
- package/lib/packages/components/touchchat/src/AiChat/HistorySidebar.vue.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/HistorySidebar.vue2.js +28 -11
- package/lib/packages/components/touchchat/src/AiChat/HistorySidebar.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/MessageActions.vue.js +3 -2
- package/lib/packages/components/touchchat/src/AiChat/MessageActions.vue.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/MessageActions.vue2.js +133 -60
- package/lib/packages/components/touchchat/src/AiChat/MessageActions.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/SiderBarView.vue.js +3 -2
- package/lib/packages/components/touchchat/src/AiChat/SiderBarView.vue.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/SiderBarView.vue2.js +14 -8
- package/lib/packages/components/touchchat/src/AiChat/SiderBarView.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue.js +11 -0
- package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue.js.map +1 -0
- package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue2.js +999 -0
- package/lib/packages/components/touchchat/src/AiChat/TouchAgent.vue2.js.map +1 -0
- package/lib/packages/components/touchchat/src/AiChat/TouchChat.vue.js +3 -2
- package/lib/packages/components/touchchat/src/AiChat/TouchChat.vue.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/TouchChat.vue2.js +752 -383
- package/lib/packages/components/touchchat/src/AiChat/TouchChat.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/TouchHistory.vue.js +3 -2
- package/lib/packages/components/touchchat/src/AiChat/TouchHistory.vue.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/TouchHistory.vue2.js +326 -122
- package/lib/packages/components/touchchat/src/AiChat/TouchHistory.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/UserMessage.vue.js +3 -2
- package/lib/packages/components/touchchat/src/AiChat/UserMessage.vue.js.map +1 -1
- package/lib/packages/components/touchchat/src/AiChat/UserMessage.vue2.js +127 -60
- package/lib/packages/components/touchchat/src/AiChat/UserMessage.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/src/index.vue.js +3 -2
- package/lib/packages/components/touchchat/src/index.vue.js.map +1 -1
- package/lib/packages/components/touchchat/src/index.vue2.js +220 -127
- package/lib/packages/components/touchchat/src/index.vue2.js.map +1 -1
- package/lib/packages/components/touchchat/src/types/a2a.js +13 -0
- package/lib/packages/components/touchchat/src/types/a2a.js.map +1 -0
- package/lib/packages/components/touchchat/utils/a2aService.js +312 -0
- package/lib/packages/components/touchchat/utils/a2aService.js.map +1 -0
- package/lib/packages/components/touchchat/utils/fetchStream.js +6 -1
- package/lib/packages/components/touchchat/utils/fetchStream.js.map +1 -1
- package/lib/packages/components/touchchat/utils/markdown.js +2 -2
- package/lib/packages/components/touchchat/utils/markdown.js.map +1 -1
- package/lib/packages/utils/config.js.map +1 -1
- package/lib/packages/utils/types.js.map +1 -1
- package/package.json +1 -1
- package/theme/components/index.css +867 -50
- package/theme/font/iconfont.woff +0 -0
- package/theme/font/iconfont.woff2 +0 -0
- package/theme/index.css +867 -50
- package/theme/skin/default.css +867 -50
- package/types/global.d.ts +2 -2
- package/es/_virtual/emphasis.mjs +0 -4
- package/es/_virtual/emphasis.mjs.map +0 -1
- package/es/_virtual/html_re.mjs +0 -4
- package/es/_virtual/html_re.mjs.map +0 -1
- package/es/_virtual/index.mjs +0 -4
- package/es/_virtual/index2.mjs +0 -4
- package/es/_virtual/index2.mjs.map +0 -1
- package/es/_virtual/index3.mjs +0 -4
- package/es/_virtual/index3.mjs.map +0 -1
- package/es/_virtual/strikethrough.mjs +0 -4
- package/es/_virtual/strikethrough.mjs.map +0 -1
- package/es/_virtual/utils.mjs +0 -4
- package/es/_virtual/utils.mjs.map +0 -1
- package/es/node_modules/.pnpm/entities@2.1.0/node_modules/entities/lib/maps/entities.json.mjs +0 -4253
- package/es/node_modules/.pnpm/entities@2.1.0/node_modules/entities/lib/maps/entities.json.mjs.map +0 -1
- package/es/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/index.mjs.map +0 -1
- package/es/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/lib/re.mjs +0 -196
- package/es/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/lib/re.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/index.mjs +0 -9
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/index.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/entities.mjs +0 -7
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/entities.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_blocks.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_re.mjs +0 -29
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_re.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/utils.mjs +0 -324
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/utils.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/index.mjs +0 -11
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/index.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +0 -83
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_label.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +0 -56
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_title.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/index.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_block.mjs +0 -138
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_block.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_core.mjs +0 -69
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_core.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_inline.mjs +0 -197
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_inline.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/commonmark.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/default.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/zero.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/renderer.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/ruler.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/blockquote.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/code.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/fence.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/heading.mjs +0 -57
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/heading.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/hr.mjs +0 -47
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/hr.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/html_block.mjs +0 -76
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/html_block.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/lheading.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/list.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/paragraph.mjs +0 -50
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/paragraph.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/reference.mjs +0 -197
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/reference.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/state_block.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/table.mjs +0 -223
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/table.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/block.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/inline.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/linkify.mjs +0 -132
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/linkify.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/normalize.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/replacements.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/smartquotes.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/state_core.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/autolink.mjs +0 -74
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/autolink.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/backticks.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/emphasis.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/entity.mjs +0 -51
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/entity.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/escape.mjs +0 -54
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/escape.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +0 -48
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/html_inline.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/image.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/link.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/newline.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/state_inline.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text.mjs +0 -56
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text_collapse.mjs.map +0 -1
- package/es/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/token.mjs.map +0 -1
- package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/decode.mjs.map +0 -1
- package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/encode.mjs.map +0 -1
- package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/format.mjs.map +0 -1
- package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/index.mjs +0 -13
- package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/index.mjs.map +0 -1
- package/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/parse.mjs.map +0 -1
- package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cc/regex.mjs +0 -12
- package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cc/regex.mjs.map +0 -1
- package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cf/regex.mjs +0 -12
- package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cf/regex.mjs.map +0 -1
- package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/P/regex.mjs +0 -4
- package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/P/regex.mjs.map +0 -1
- package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Z/regex.mjs +0 -12
- package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Z/regex.mjs.map +0 -1
- package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/index.mjs +0 -23
- package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/index.mjs.map +0 -1
- package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/properties/Any/regex.mjs +0 -12
- package/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/properties/Any/regex.mjs.map +0 -1
- package/es/packages/components/touchchat/src/AiChat/Scene.vue.mjs +0 -6
- package/es/packages/components/touchchat/src/AiChat/Scene.vue.mjs.map +0 -1
- package/es/packages/components/touchchat/src/AiChat/Scene.vue2.mjs +0 -42
- package/es/packages/components/touchchat/src/AiChat/Scene.vue2.mjs.map +0 -1
- package/lib/_virtual/emphasis.js +0 -6
- package/lib/_virtual/emphasis.js.map +0 -1
- package/lib/_virtual/html_re.js +0 -6
- package/lib/_virtual/html_re.js.map +0 -1
- package/lib/_virtual/index.js +0 -6
- package/lib/_virtual/index2.js +0 -6
- package/lib/_virtual/index2.js.map +0 -1
- package/lib/_virtual/index3.js +0 -6
- package/lib/_virtual/index3.js.map +0 -1
- package/lib/_virtual/strikethrough.js +0 -6
- package/lib/_virtual/strikethrough.js.map +0 -1
- package/lib/_virtual/utils.js +0 -6
- package/lib/_virtual/utils.js.map +0 -1
- package/lib/node_modules/.pnpm/entities@2.1.0/node_modules/entities/lib/maps/entities.json.js +0 -6380
- package/lib/node_modules/.pnpm/entities@2.1.0/node_modules/entities/lib/maps/entities.json.js.map +0 -1
- package/lib/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/index.js.map +0 -1
- package/lib/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/lib/re.js +0 -198
- package/lib/node_modules/.pnpm/linkify-it@3.0.3/node_modules/linkify-it/lib/re.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/index.js +0 -13
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/index.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/entities.js +0 -9
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/entities.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_blocks.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_re.js +0 -33
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/html_re.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/utils.js +0 -326
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/common/utils.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/index.js +0 -15
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/index.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_destination.js +0 -85
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_destination.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_label.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_title.js +0 -58
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/helpers/parse_link_title.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/index.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_block.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_core.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/parser_inline.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/commonmark.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/default.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/presets/zero.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/renderer.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/ruler.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/blockquote.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/code.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/fence.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/heading.js +0 -59
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/heading.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/hr.js +0 -49
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/hr.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/html_block.js +0 -78
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/html_block.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/lheading.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/list.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/paragraph.js +0 -52
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/paragraph.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/reference.js +0 -199
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/reference.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/state_block.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/table.js +0 -225
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_block/table.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/block.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/inline.js +0 -16
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/inline.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/linkify.js +0 -134
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/linkify.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/normalize.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/replacements.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/smartquotes.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_core/state_core.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/autolink.js +0 -76
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/autolink.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/backticks.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/balance_pairs.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/emphasis.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/entity.js +0 -53
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/entity.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/escape.js +0 -56
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/escape.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/html_inline.js +0 -50
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/html_inline.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/image.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/link.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/newline.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/state_inline.js +0 -158
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/state_inline.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/strikethrough.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text.js +0 -58
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text_collapse.js +0 -35
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/rules_inline/text_collapse.js.map +0 -1
- package/lib/node_modules/.pnpm/markdown-it@12.3.2/node_modules/markdown-it/lib/token.js.map +0 -1
- package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/decode.js.map +0 -1
- package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/encode.js.map +0 -1
- package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/format.js.map +0 -1
- package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/index.js +0 -17
- package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/index.js.map +0 -1
- package/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/parse.js.map +0 -1
- package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cc/regex.js +0 -14
- package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cc/regex.js.map +0 -1
- package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cf/regex.js +0 -14
- package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cf/regex.js.map +0 -1
- package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/P/regex.js +0 -6
- package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/P/regex.js.map +0 -1
- package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Z/regex.js +0 -14
- package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Z/regex.js.map +0 -1
- package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/index.js +0 -25
- package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/index.js.map +0 -1
- package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/properties/Any/regex.js +0 -14
- package/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/properties/Any/regex.js.map +0 -1
- package/lib/packages/components/touchchat/src/AiChat/Scene.vue.js +0 -10
- package/lib/packages/components/touchchat/src/AiChat/Scene.vue.js.map +0 -1
- package/lib/packages/components/touchchat/src/AiChat/Scene.vue2.js +0 -46
- package/lib/packages/components/touchchat/src/AiChat/Scene.vue2.js.map +0 -1
|
@@ -0,0 +1,995 @@
|
|
|
1
|
+
import { defineComponent, inject, ref, watch, onMounted, onBeforeUnmount, provide, openBlock, createElementBlock, withModifiers, createElementVNode, renderSlot, createVNode, createCommentVNode, Fragment, renderList, createBlock, unref, withCtx, nextTick } from 'vue';
|
|
2
|
+
import UserMessage from './UserMessage.vue.mjs';
|
|
3
|
+
import AiMessage from './AiMessage.vue.mjs';
|
|
4
|
+
import ChatInput from './ChatInput.vue.mjs';
|
|
5
|
+
import HelloChat from '../../component/HelloChat.vue.mjs';
|
|
6
|
+
import { throttle } from '../../../../../node_modules/.pnpm/throttle-debounce@5.0.2/node_modules/throttle-debounce/esm/index.mjs';
|
|
7
|
+
import markdown from '../../utils/markdown.mjs';
|
|
8
|
+
import { showToast } from '../../utils/tools.mjs';
|
|
9
|
+
import { MessageAction, ThinkStatus } from './Chat/TouchChat.mjs';
|
|
10
|
+
import { a2aService } from '../../utils/a2aService.mjs';
|
|
11
|
+
|
|
12
|
+
const MULTI_AGENT_HOST = "/ar/v1/mas/host_agent";
|
|
13
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
|
+
__name: "TouchAgent",
|
|
15
|
+
props: {
|
|
16
|
+
value: {
|
|
17
|
+
type: Array,
|
|
18
|
+
default: () => []
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
emits: ["sendMessage", "toggleSidebar", "beforeSendMessage"],
|
|
22
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
23
|
+
const DEFAULT_AGENT = {
|
|
24
|
+
id: "agent-1",
|
|
25
|
+
name: "A2A Agent",
|
|
26
|
+
version: "1.0",
|
|
27
|
+
endpoint: "http://10.19.93.128:30015/engine/api/v1/a2a/7b8f4d0eeee643859a812a166c606b13/1.0",
|
|
28
|
+
authToken: "c09f1251-e979-4a1a-ac67-6a11a8ab49f7",
|
|
29
|
+
// endpoint: '/agent-api/Njd8NnwxfDUy',
|
|
30
|
+
// authToken: 'a7ef44a7-9e85-4989-a2eb-34ae4dc76b7a',
|
|
31
|
+
description: "Default A2A agent"
|
|
32
|
+
};
|
|
33
|
+
const agentConfigListRef = inject("agentConfigList", ref([]));
|
|
34
|
+
const iAgentConfigList = ref(agentConfigListRef.value);
|
|
35
|
+
const selectedAgents = ref(["agent-1"]);
|
|
36
|
+
const availableAgents = ref(iAgentConfigList.value || [DEFAULT_AGENT]);
|
|
37
|
+
const multiAgentHost = inject("multiAgentHost", ref(MULTI_AGENT_HOST));
|
|
38
|
+
const iMultiAgentHost = ref(multiAgentHost.value);
|
|
39
|
+
const multiAgentToken = inject("multiAgentToken", ref(""));
|
|
40
|
+
const iMultiAgentToken = ref(multiAgentToken.value || "");
|
|
41
|
+
watch(
|
|
42
|
+
() => multiAgentHost.value,
|
|
43
|
+
(newVal) => {
|
|
44
|
+
iMultiAgentHost.value = newVal || MULTI_AGENT_HOST;
|
|
45
|
+
},
|
|
46
|
+
{ immediate: true }
|
|
47
|
+
);
|
|
48
|
+
watch(
|
|
49
|
+
() => multiAgentToken.value,
|
|
50
|
+
(newVal) => {
|
|
51
|
+
iMultiAgentToken.value = newVal || "";
|
|
52
|
+
},
|
|
53
|
+
{ immediate: true }
|
|
54
|
+
);
|
|
55
|
+
watch(
|
|
56
|
+
agentConfigListRef,
|
|
57
|
+
(newVal) => {
|
|
58
|
+
iAgentConfigList.value = newVal;
|
|
59
|
+
availableAgents.value = newVal || [DEFAULT_AGENT];
|
|
60
|
+
availableAgents.value.forEach((agent) => {
|
|
61
|
+
a2aService.registerAgent(agent);
|
|
62
|
+
});
|
|
63
|
+
if (availableAgents.value.length > 0) {
|
|
64
|
+
selectedAgents.value = [availableAgents.value[0].id];
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{ immediate: true, deep: true }
|
|
68
|
+
);
|
|
69
|
+
const emit = __emit;
|
|
70
|
+
const afterSend = inject("afterSend", () => {
|
|
71
|
+
console.warn("\u672A\u63D0\u4F9BafterSend\u51FD\u6570");
|
|
72
|
+
});
|
|
73
|
+
const sendMessageInject = inject("send", () => {
|
|
74
|
+
console.warn("\u672A\u63D0\u4F9BhandleSend\u51FD\u6570");
|
|
75
|
+
});
|
|
76
|
+
const beforeSend = inject("beforeSend", () => ({
|
|
77
|
+
result: true,
|
|
78
|
+
componentName: ""
|
|
79
|
+
}));
|
|
80
|
+
const bottom = inject("bottom", () => {
|
|
81
|
+
console.warn("\u672A\u63D0\u4F9Bbottom\u51FD\u6570");
|
|
82
|
+
});
|
|
83
|
+
const props = __props;
|
|
84
|
+
const chatContainer = ref(null);
|
|
85
|
+
const htmlContentRef = ref([]);
|
|
86
|
+
const thinkingContentRef = ref([]);
|
|
87
|
+
const reasoningContentRef = ref([]);
|
|
88
|
+
const isMounted = ref(false);
|
|
89
|
+
const isChating = ref(false);
|
|
90
|
+
const inputValue = ref("");
|
|
91
|
+
const chatList = ref([]);
|
|
92
|
+
const currIndex = ref(0);
|
|
93
|
+
const isUnmounting = ref(false);
|
|
94
|
+
const currentComponentName = ref("");
|
|
95
|
+
const fileData = ref([]);
|
|
96
|
+
const ChatInputRef = ref(null);
|
|
97
|
+
const isDragging = ref(false);
|
|
98
|
+
const typeFlag = ref("");
|
|
99
|
+
const renderQueue = ref([]);
|
|
100
|
+
const isRendering = ref(false);
|
|
101
|
+
const scrollObserver = ref(null);
|
|
102
|
+
const abortController = ref(null);
|
|
103
|
+
const currentMessageProcessor = ref(null);
|
|
104
|
+
const messageUtils = {
|
|
105
|
+
updateMessage: (index, updates) => {
|
|
106
|
+
if (index < 0 || index >= chatList.value.length)
|
|
107
|
+
return;
|
|
108
|
+
chatList.value.splice(index, 1, { ...chatList.value[index], ...updates });
|
|
109
|
+
nextTick(() => {
|
|
110
|
+
const message = chatList.value[index];
|
|
111
|
+
if (message) {
|
|
112
|
+
renderContent(message.content, "main", index);
|
|
113
|
+
if (message.thinkContent) {
|
|
114
|
+
renderContent(message.thinkContent, "thinking", index);
|
|
115
|
+
}
|
|
116
|
+
if (message.reasoningContent) {
|
|
117
|
+
renderContent(message.reasoningContent, "reasoning", index);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
},
|
|
122
|
+
deleteMessageChain: (index) => {
|
|
123
|
+
if (index < 0 || index >= chatList.value.length)
|
|
124
|
+
return;
|
|
125
|
+
if (chatList.value[index].user === "u") {
|
|
126
|
+
let deleteCount = 1;
|
|
127
|
+
for (let i = index + 1; i < chatList.value.length; i++) {
|
|
128
|
+
if (chatList.value[i].user === "ai") {
|
|
129
|
+
deleteCount++;
|
|
130
|
+
} else {
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
chatList.value.splice(index, deleteCount);
|
|
135
|
+
} else {
|
|
136
|
+
chatList.value.splice(index, 1);
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
createStandardMessage: (data) => {
|
|
140
|
+
var _a, _b, _c, _d, _e;
|
|
141
|
+
return {
|
|
142
|
+
// chatId: data.chatId || 'ai_' + crypto.randomUUID().replace(/-/gi, ''),
|
|
143
|
+
chatId: data.chatId || "ai_" + Math.random().toString(36).slice(2).padEnd(10, "0").slice(0, 10),
|
|
144
|
+
user: data.user || "ai",
|
|
145
|
+
type: data.type || "text",
|
|
146
|
+
content: data.content || "",
|
|
147
|
+
isChating: (_a = data.isChating) != null ? _a : false,
|
|
148
|
+
thinkContent: data.thinkContent || "",
|
|
149
|
+
reasoningContent: data.reasoningContent || "",
|
|
150
|
+
isLiked: (_b = data.isLiked) != null ? _b : false,
|
|
151
|
+
isDisliked: (_c = data.isDisliked) != null ? _c : false,
|
|
152
|
+
isEditing: (_d = data.isEditing) != null ? _d : false,
|
|
153
|
+
editContent: (_e = data.editContent) != null ? _e : ""
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
const update = (index, message) => {
|
|
158
|
+
chatList.value[index] = { ...chatList.value[index], ...message };
|
|
159
|
+
console.log("update", chatList.value[index]);
|
|
160
|
+
};
|
|
161
|
+
const completeRendered = (chatId) => {
|
|
162
|
+
if (currentMessageProcessor.value) {
|
|
163
|
+
currentMessageProcessor.value.handleMessageComplete(chatId);
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
const toggleSidebarClick = (item, index) => {
|
|
167
|
+
emit("toggleSidebar", item, index);
|
|
168
|
+
};
|
|
169
|
+
const init = () => {
|
|
170
|
+
try {
|
|
171
|
+
if (Array.isArray(props.value) && props.value.length) {
|
|
172
|
+
chatList.value = props.value.map((item) => ({
|
|
173
|
+
...item,
|
|
174
|
+
content: item.thinkContent ? item.content || "" : item.content || "",
|
|
175
|
+
thinkContent: item.thinkContent || ""
|
|
176
|
+
}));
|
|
177
|
+
nextTick(() => {
|
|
178
|
+
requestAnimationFrame(() => {
|
|
179
|
+
chatList.value.forEach((item) => {
|
|
180
|
+
if (item.thinkContent) {
|
|
181
|
+
renderContent(item.thinkContent, "thinking");
|
|
182
|
+
}
|
|
183
|
+
if (item.reasoningContent) {
|
|
184
|
+
renderContent(item.reasoningContent, "reasoning");
|
|
185
|
+
}
|
|
186
|
+
if (item.content) {
|
|
187
|
+
renderContent(item.content, "main");
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
nextTick(() => {
|
|
191
|
+
scrollToBottom();
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
} catch (error) {
|
|
197
|
+
console.error("\u521D\u59CB\u5316\u5931\u8D25:", error);
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
const onScrollToBottom = () => {
|
|
201
|
+
bottom();
|
|
202
|
+
};
|
|
203
|
+
const throttledScrollToBottom = throttle(300, onScrollToBottom);
|
|
204
|
+
const handleScroll = () => {
|
|
205
|
+
if (!chatContainer.value)
|
|
206
|
+
return;
|
|
207
|
+
const { scrollTop, scrollHeight, clientHeight } = chatContainer.value;
|
|
208
|
+
if (scrollTop + clientHeight >= scrollHeight) {
|
|
209
|
+
throttledScrollToBottom();
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
const enqueueRender = (data) => {
|
|
213
|
+
if (isUnmounting.value || !isMounted.value)
|
|
214
|
+
return;
|
|
215
|
+
if (currIndex.value < 0 || currIndex.value >= chatList.value.length)
|
|
216
|
+
return;
|
|
217
|
+
renderQueue.value.push(data);
|
|
218
|
+
if (!isRendering.value) {
|
|
219
|
+
isRendering.value = true;
|
|
220
|
+
processRenderQueue();
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
const processRenderQueue = () => {
|
|
224
|
+
if (isUnmounting.value || !isMounted.value) {
|
|
225
|
+
renderQueue.value = [];
|
|
226
|
+
isRendering.value = false;
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
if (renderQueue.value.length === 0) {
|
|
230
|
+
isRendering.value = false;
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
requestAnimationFrame(() => {
|
|
234
|
+
const data = renderQueue.value.shift();
|
|
235
|
+
if (data) {
|
|
236
|
+
formatMarkdown(data);
|
|
237
|
+
}
|
|
238
|
+
processRenderQueue();
|
|
239
|
+
});
|
|
240
|
+
};
|
|
241
|
+
const formatMarkdown = (data) => {
|
|
242
|
+
if (!isMounted.value)
|
|
243
|
+
return;
|
|
244
|
+
if (currIndex.value < 0 || currIndex.value >= chatList.value.length)
|
|
245
|
+
return;
|
|
246
|
+
const currentItem = chatList.value[currIndex.value];
|
|
247
|
+
currentItem.thinkContent = data.thinkContent;
|
|
248
|
+
currentItem.content = data.mainContent;
|
|
249
|
+
currentItem.reasoningContent = data.reasoningContent;
|
|
250
|
+
nextTick(() => {
|
|
251
|
+
const thinkingContainer = thinkingContentRef.value[currIndex.value];
|
|
252
|
+
if (thinkingContainer) {
|
|
253
|
+
if (data.thinkContent) {
|
|
254
|
+
renderContent(data.thinkContent, "thinking");
|
|
255
|
+
thinkingContainer.style.display = "block";
|
|
256
|
+
thinkingContainer.style.visibility = "visible";
|
|
257
|
+
} else {
|
|
258
|
+
thinkingContainer.style.display = "none";
|
|
259
|
+
thinkingContainer.style.visibility = "hidden";
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
const reasoningContainer = reasoningContentRef.value[currIndex.value];
|
|
263
|
+
if (reasoningContainer) {
|
|
264
|
+
if (data.reasoningContent) {
|
|
265
|
+
renderContent(data.reasoningContent, "reasoning");
|
|
266
|
+
reasoningContainer.style.display = "block";
|
|
267
|
+
reasoningContainer.style.visibility = "visible";
|
|
268
|
+
} else {
|
|
269
|
+
reasoningContainer.style.display = "none";
|
|
270
|
+
reasoningContainer.style.visibility = "hidden";
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
renderContent(data.mainContent, "main");
|
|
274
|
+
});
|
|
275
|
+
};
|
|
276
|
+
const typewriterEffect = (message, newText, speed = 30, chatId, accumulatedText = "") => {
|
|
277
|
+
return new Promise((resolve) => {
|
|
278
|
+
const currentText = accumulatedText;
|
|
279
|
+
let currentIndex = 0;
|
|
280
|
+
const typingInterval = setInterval(() => {
|
|
281
|
+
var _a;
|
|
282
|
+
if ((_a = abortController.value) == null ? void 0 : _a.signal.aborted) {
|
|
283
|
+
clearInterval(typingInterval);
|
|
284
|
+
const textToAdd = newText.substring(0, currentIndex);
|
|
285
|
+
const combinedText = currentText + textToAdd;
|
|
286
|
+
resolve(combinedText);
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
if (currentIndex < newText.length) {
|
|
290
|
+
const textToAdd = newText.substring(0, currentIndex + 1);
|
|
291
|
+
const combinedText = currentText + textToAdd;
|
|
292
|
+
message.parts = [{ type: "text", text: combinedText }];
|
|
293
|
+
currentIndex++;
|
|
294
|
+
randerAngentMessage(combinedText, chatId);
|
|
295
|
+
} else {
|
|
296
|
+
clearInterval(typingInterval);
|
|
297
|
+
resolve(currentText + newText);
|
|
298
|
+
}
|
|
299
|
+
}, speed);
|
|
300
|
+
});
|
|
301
|
+
};
|
|
302
|
+
const generateMessageId = () => {
|
|
303
|
+
return `msg-${Date.now()}-${Math.random().toString(36).slice(2, 11)}`;
|
|
304
|
+
};
|
|
305
|
+
const createTextMessage = (text, role) => ({
|
|
306
|
+
messageId: generateMessageId(),
|
|
307
|
+
role,
|
|
308
|
+
parts: [{ type: "text", text }],
|
|
309
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
310
|
+
});
|
|
311
|
+
const randerAngentMessage = (text, chatId) => {
|
|
312
|
+
if (chatList.value.some((ele) => ele.chatId === chatId)) {
|
|
313
|
+
enqueueRender({
|
|
314
|
+
mainContent: text,
|
|
315
|
+
thinkContent: "",
|
|
316
|
+
reasoningContent: ""
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
const sendSingleAgentMessage = async (userContent, chatId) => {
|
|
321
|
+
var _a, _b, _c;
|
|
322
|
+
abortController.value = new AbortController();
|
|
323
|
+
const { signal } = abortController.value;
|
|
324
|
+
const agentMessage = createTextMessage(userContent, "user");
|
|
325
|
+
const agentId = selectedAgents.value[0];
|
|
326
|
+
let stream;
|
|
327
|
+
try {
|
|
328
|
+
stream = await a2aService.streamMessage(agentId, agentMessage, void 0, signal);
|
|
329
|
+
} catch (error) {
|
|
330
|
+
if (error.name === "AbortError") {
|
|
331
|
+
abortController.value = null;
|
|
332
|
+
isChating.value = false;
|
|
333
|
+
chatList.value[currIndex.value].isChating = false;
|
|
334
|
+
nextTick(() => {
|
|
335
|
+
emit("sendMessage", [...chatList.value]);
|
|
336
|
+
});
|
|
337
|
+
return;
|
|
338
|
+
}
|
|
339
|
+
showErrorMessage(error instanceof Error ? error.message : "\u8BF7\u6C42\u5931\u8D25");
|
|
340
|
+
abortController.value = null;
|
|
341
|
+
return;
|
|
342
|
+
}
|
|
343
|
+
let fullResponseText = "";
|
|
344
|
+
let accumulatedText = "";
|
|
345
|
+
const reader = stream.getReader();
|
|
346
|
+
try {
|
|
347
|
+
let isDone = false;
|
|
348
|
+
while (!isDone) {
|
|
349
|
+
const { done, value: chunk } = await reader.read();
|
|
350
|
+
if (done) {
|
|
351
|
+
isDone = true;
|
|
352
|
+
break;
|
|
353
|
+
}
|
|
354
|
+
if (chunk.result) {
|
|
355
|
+
if ("status" in chunk.result) {
|
|
356
|
+
const status = chunk.result.status;
|
|
357
|
+
if ((_a = status == null ? void 0 : status.message) == null ? void 0 : _a.parts) {
|
|
358
|
+
const textParts = status.message.parts.filter((p) => p.kind === "text");
|
|
359
|
+
const newText = textParts.map((p) => p.text).join("");
|
|
360
|
+
fullResponseText += newText;
|
|
361
|
+
const lastMessage = createTextMessage("", "agent");
|
|
362
|
+
if (newText.length > 10) {
|
|
363
|
+
accumulatedText = await typewriterEffect(lastMessage, newText, 30, chatId, accumulatedText);
|
|
364
|
+
} else {
|
|
365
|
+
accumulatedText += newText;
|
|
366
|
+
randerAngentMessage(accumulatedText, chatId);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
if ((_b = chunk.params) == null ? void 0 : _b.status) {
|
|
372
|
+
console.log("Task status:", chunk.params.status);
|
|
373
|
+
}
|
|
374
|
+
if ((_c = chunk.params) == null ? void 0 : _c.artifact) {
|
|
375
|
+
console.log("Artifact received:", chunk.params.artifact);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
} catch (error) {
|
|
379
|
+
if (error.name !== "AbortError") {
|
|
380
|
+
showErrorMessage(error instanceof Error ? error.message : "\u8BF7\u6C42\u5931\u8D25");
|
|
381
|
+
}
|
|
382
|
+
} finally {
|
|
383
|
+
reader.releaseLock();
|
|
384
|
+
abortController.value = null;
|
|
385
|
+
}
|
|
386
|
+
nextTick(() => {
|
|
387
|
+
emit("sendMessage", [...chatList.value]);
|
|
388
|
+
});
|
|
389
|
+
isChating.value = false;
|
|
390
|
+
chatList.value[currIndex.value].isChating = false;
|
|
391
|
+
if (fullResponseText) {
|
|
392
|
+
afterSend({ allAiContent: fullResponseText });
|
|
393
|
+
}
|
|
394
|
+
};
|
|
395
|
+
const getSubAgents = () => {
|
|
396
|
+
return availableAgents.value.map((agent) => ({
|
|
397
|
+
agent_name: agent.agent_name,
|
|
398
|
+
agent_url: agent.agent_url,
|
|
399
|
+
headers: agent.headers
|
|
400
|
+
}));
|
|
401
|
+
};
|
|
402
|
+
const sendMultiAgentMessage = async (text, chatId) => {
|
|
403
|
+
var _a, _b;
|
|
404
|
+
abortController.value = new AbortController();
|
|
405
|
+
const { signal } = abortController.value;
|
|
406
|
+
let fullResponseText = "";
|
|
407
|
+
let accumulatedText = "";
|
|
408
|
+
try {
|
|
409
|
+
const userMessage = createTextMessage(text, "user");
|
|
410
|
+
const subAgents = getSubAgents();
|
|
411
|
+
const stream = a2aService.streamMultiAgentMessage(iMultiAgentHost.value || MULTI_AGENT_HOST, subAgents, userMessage, iMultiAgentToken.value, void 0, signal);
|
|
412
|
+
for await (const chunk of stream) {
|
|
413
|
+
if (chunk.result) {
|
|
414
|
+
if ("status" in chunk.result) {
|
|
415
|
+
const status = chunk.result.status;
|
|
416
|
+
if ((_a = status == null ? void 0 : status.message) == null ? void 0 : _a.parts) {
|
|
417
|
+
const textParts = status.message.parts.filter((p) => p.kind === "text");
|
|
418
|
+
const newText = textParts.map((p) => p.text).join("");
|
|
419
|
+
fullResponseText += newText;
|
|
420
|
+
const lastMessage = createTextMessage("", "agent");
|
|
421
|
+
if (newText.length > 10) {
|
|
422
|
+
accumulatedText = await typewriterEffect(lastMessage, newText, 30, chatId, accumulatedText);
|
|
423
|
+
} else {
|
|
424
|
+
accumulatedText += newText;
|
|
425
|
+
randerAngentMessage(accumulatedText, chatId);
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
if (chunk.error) {
|
|
431
|
+
console.error("Multi-agent error chunk:", chunk.error);
|
|
432
|
+
showErrorMessage((_b = chunk.error.message) != null ? _b : "\u591A\u667A\u80FD\u4F53\u8BF7\u6C42\u5931\u8D25");
|
|
433
|
+
break;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
} catch (err) {
|
|
437
|
+
console.error("Error in multi-agent mode:", err);
|
|
438
|
+
if (err.name !== "AbortError") {
|
|
439
|
+
showErrorMessage(err instanceof Error ? err.message : "\u591A\u667A\u80FD\u4F53\u8BF7\u6C42\u5931\u8D25");
|
|
440
|
+
}
|
|
441
|
+
} finally {
|
|
442
|
+
abortController.value = null;
|
|
443
|
+
}
|
|
444
|
+
nextTick(() => {
|
|
445
|
+
emit("sendMessage", [...chatList.value]);
|
|
446
|
+
});
|
|
447
|
+
isChating.value = false;
|
|
448
|
+
chatList.value[currIndex.value].isChating = false;
|
|
449
|
+
if (fullResponseText) {
|
|
450
|
+
afterSend({ allAiContent: fullResponseText });
|
|
451
|
+
}
|
|
452
|
+
};
|
|
453
|
+
const openSSE = async (userContent, insertIndex) => {
|
|
454
|
+
try {
|
|
455
|
+
if (isUnmounting.value)
|
|
456
|
+
return;
|
|
457
|
+
isChating.value = true;
|
|
458
|
+
const currentAiMessage = chatList.value.find((item) => item.isChating);
|
|
459
|
+
if (currentAiMessage) {
|
|
460
|
+
currentAiMessage.isShowLike = true;
|
|
461
|
+
currentAiMessage.isShowCopy = true;
|
|
462
|
+
currentAiMessage.componentName = currentComponentName.value;
|
|
463
|
+
}
|
|
464
|
+
const chatId = (currentAiMessage == null ? void 0 : currentAiMessage.chatId) || "ai_" + Math.random().toString(36).slice(2).padEnd(10, "0").slice(0, 10);
|
|
465
|
+
if (!currentAiMessage) {
|
|
466
|
+
const chatItem = {
|
|
467
|
+
chatId,
|
|
468
|
+
user: "ai",
|
|
469
|
+
type: "text",
|
|
470
|
+
isChating: true,
|
|
471
|
+
content: "",
|
|
472
|
+
thinkContent: "",
|
|
473
|
+
reasoningContent: "",
|
|
474
|
+
thinkStatus: ThinkStatus.THINKING,
|
|
475
|
+
thinkStartTime: Date.now(),
|
|
476
|
+
isShowLike: true,
|
|
477
|
+
isShowCopy: true,
|
|
478
|
+
componentName: currentComponentName.value,
|
|
479
|
+
typeFlag: typeFlag.value
|
|
480
|
+
};
|
|
481
|
+
if (insertIndex !== void 0 && insertIndex <= chatList.value.length) {
|
|
482
|
+
chatList.value.splice(insertIndex, 0, chatItem);
|
|
483
|
+
} else {
|
|
484
|
+
chatList.value.push(chatItem);
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
currIndex.value = insertIndex != null ? insertIndex : chatList.value.length - 1;
|
|
488
|
+
if (availableAgents.value.length === 1) {
|
|
489
|
+
sendSingleAgentMessage(userContent, chatId);
|
|
490
|
+
} else {
|
|
491
|
+
sendMultiAgentMessage(userContent, chatId);
|
|
492
|
+
}
|
|
493
|
+
} catch (error) {
|
|
494
|
+
console.error("OpenSSE\u9519\u8BEF:", error);
|
|
495
|
+
showErrorMessage("\u8BF7\u6C42\u5931\u8D25");
|
|
496
|
+
}
|
|
497
|
+
};
|
|
498
|
+
const showErrorMessage = (message) => {
|
|
499
|
+
isChating.value = false;
|
|
500
|
+
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">
|
|
501
|
+
<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"/>
|
|
502
|
+
</svg>${message}</div>`;
|
|
503
|
+
chatList.value[currIndex.value].isChating = false;
|
|
504
|
+
chatList.value[currIndex.value].isShowCopy = false;
|
|
505
|
+
chatList.value[currIndex.value].isShowLike = false;
|
|
506
|
+
showToast("\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5", "error", 3e3);
|
|
507
|
+
};
|
|
508
|
+
const attachCopyButtons = (container) => {
|
|
509
|
+
const codeBlocks = container.querySelectorAll("pre code");
|
|
510
|
+
codeBlocks.forEach((codeBlock) => {
|
|
511
|
+
const pre = codeBlock.parentElement;
|
|
512
|
+
if (pre) {
|
|
513
|
+
const copyBtn = document.createElement("button");
|
|
514
|
+
copyBtn.className = "touchchat-code-copy";
|
|
515
|
+
copyBtn.addEventListener("click", () => {
|
|
516
|
+
const code = codeBlock.textContent || "";
|
|
517
|
+
navigator.clipboard.writeText(code).then(() => {
|
|
518
|
+
showToast("\u590D\u5236\u6210\u529F", "info", 2e3);
|
|
519
|
+
copyBtn.textContent = "\u5DF2\u590D\u5236";
|
|
520
|
+
setTimeout(() => {
|
|
521
|
+
copyBtn.textContent = "";
|
|
522
|
+
}, 2e3);
|
|
523
|
+
}).catch((err) => {
|
|
524
|
+
console.error("\u590D\u5236\u5931\u8D25:", err);
|
|
525
|
+
showToast("\u590D\u5236\u5931\u8D25", "error", 2e3);
|
|
526
|
+
});
|
|
527
|
+
});
|
|
528
|
+
pre.style.position = "relative";
|
|
529
|
+
pre.appendChild(copyBtn);
|
|
530
|
+
}
|
|
531
|
+
});
|
|
532
|
+
};
|
|
533
|
+
const renderContent = (content, type, index) => {
|
|
534
|
+
const renderIndex = index != null ? index : currIndex.value;
|
|
535
|
+
if (renderIndex < 0 || renderIndex >= chatList.value.length)
|
|
536
|
+
return;
|
|
537
|
+
const refArrays = {
|
|
538
|
+
main: htmlContentRef,
|
|
539
|
+
thinking: thinkingContentRef,
|
|
540
|
+
reasoning: reasoningContentRef
|
|
541
|
+
};
|
|
542
|
+
const processors = {
|
|
543
|
+
main: (content2) => {
|
|
544
|
+
var _a;
|
|
545
|
+
return ((_a = markdown) == null ? void 0 : _a.render(content2, { isReasoning: false })) || "";
|
|
546
|
+
},
|
|
547
|
+
thinking: (content2) => {
|
|
548
|
+
var _a;
|
|
549
|
+
return ((_a = markdown) == null ? void 0 : _a.render(content2, { isReasoning: false })) || "";
|
|
550
|
+
},
|
|
551
|
+
reasoning: (content2) => {
|
|
552
|
+
var _a;
|
|
553
|
+
return ((_a = markdown) == null ? void 0 : _a.render(content2, { isReasoning: false })) || "";
|
|
554
|
+
}
|
|
555
|
+
};
|
|
556
|
+
const container = refArrays[type].value[renderIndex];
|
|
557
|
+
if (!container)
|
|
558
|
+
return;
|
|
559
|
+
container.innerHTML = processors[type](content || "");
|
|
560
|
+
attachCopyButtons(container);
|
|
561
|
+
};
|
|
562
|
+
const sendMessage = (content, fileList, auto, type) => {
|
|
563
|
+
inputValue.value = content || "";
|
|
564
|
+
handleBeforeSend(content, fileList, auto, type);
|
|
565
|
+
};
|
|
566
|
+
const handleBeforeSend = (content, fileList, auto, type) => {
|
|
567
|
+
fileData.value = fileList || [];
|
|
568
|
+
if (beforeSend) {
|
|
569
|
+
const fn = beforeSend();
|
|
570
|
+
if (fn && typeof fn.then === "function") {
|
|
571
|
+
Promise.resolve(fn).then((res) => {
|
|
572
|
+
if (res.result) {
|
|
573
|
+
currentComponentName.value = res.componentName || "";
|
|
574
|
+
handleSend(content, fileList, auto, type);
|
|
575
|
+
}
|
|
576
|
+
}).catch((error) => {
|
|
577
|
+
console.log(error);
|
|
578
|
+
});
|
|
579
|
+
} else {
|
|
580
|
+
if (fn.result) {
|
|
581
|
+
currentComponentName.value = fn.componentName || "";
|
|
582
|
+
handleSend(content, fileList, auto, type);
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
};
|
|
587
|
+
const handleSend = (content, fileList, auto, type) => {
|
|
588
|
+
emit("beforeSendMessage");
|
|
589
|
+
sendMessageInject(inputValue.value, fileData.value);
|
|
590
|
+
typeFlag.value = type || "";
|
|
591
|
+
if (content) {
|
|
592
|
+
inputValue.value = content;
|
|
593
|
+
}
|
|
594
|
+
if ((isChating.value || !inputValue.value.trim() && !(fileList == null ? void 0 : fileList.length)) && !auto)
|
|
595
|
+
return;
|
|
596
|
+
const userChatId = "user_" + Math.random().toString(36).slice(2).padEnd(10, "0").slice(0, 10);
|
|
597
|
+
const userMessage = {
|
|
598
|
+
chatId: userChatId,
|
|
599
|
+
user: "u",
|
|
600
|
+
type: "text",
|
|
601
|
+
content: inputValue.value,
|
|
602
|
+
files: fileList || []
|
|
603
|
+
};
|
|
604
|
+
chatList.value.push(userMessage);
|
|
605
|
+
const index = chatList.value.length - 1;
|
|
606
|
+
nextTick(() => {
|
|
607
|
+
renderContent(userMessage.content, "main", index);
|
|
608
|
+
scrollToBottom();
|
|
609
|
+
});
|
|
610
|
+
openSSE(inputValue.value, index + 1);
|
|
611
|
+
inputValue.value = "";
|
|
612
|
+
};
|
|
613
|
+
const handleStop = () => {
|
|
614
|
+
var _a;
|
|
615
|
+
if (isChating.value) {
|
|
616
|
+
(_a = abortController.value) == null ? void 0 : _a.abort();
|
|
617
|
+
isChating.value = false;
|
|
618
|
+
chatList.value[currIndex.value].isChating = false;
|
|
619
|
+
}
|
|
620
|
+
};
|
|
621
|
+
const scrollToBottom = () => {
|
|
622
|
+
if (!isMounted.value || isUnmounting.value || !chatContainer.value)
|
|
623
|
+
return;
|
|
624
|
+
nextTick(() => {
|
|
625
|
+
requestAnimationFrame(() => {
|
|
626
|
+
const chatContainerEl = chatContainer.value;
|
|
627
|
+
const lastMessage = chatContainerEl.querySelector(".touchchat-dialog-content > *:last-child");
|
|
628
|
+
if (lastMessage) {
|
|
629
|
+
const { height: messageHeight } = lastMessage.getBoundingClientRect();
|
|
630
|
+
const containerHeight = chatContainerEl.clientHeight;
|
|
631
|
+
const messageBottom = lastMessage.offsetTop + lastMessage.offsetHeight;
|
|
632
|
+
if (messageHeight > containerHeight) {
|
|
633
|
+
chatContainerEl.scrollTop = lastMessage.offsetTop;
|
|
634
|
+
} else {
|
|
635
|
+
chatContainerEl.scrollTop = messageBottom - containerHeight;
|
|
636
|
+
}
|
|
637
|
+
if (scrollObserver.value) {
|
|
638
|
+
scrollObserver.value.disconnect();
|
|
639
|
+
}
|
|
640
|
+
scrollObserver.value = new MutationObserver(() => {
|
|
641
|
+
const updatedMessageBottom = lastMessage.offsetTop + lastMessage.offsetHeight;
|
|
642
|
+
chatContainerEl.scrollTop = Math.max(updatedMessageBottom - containerHeight, chatContainerEl.scrollTop);
|
|
643
|
+
});
|
|
644
|
+
scrollObserver.value.observe(lastMessage, {
|
|
645
|
+
childList: true,
|
|
646
|
+
subtree: true,
|
|
647
|
+
characterData: true,
|
|
648
|
+
attributes: true,
|
|
649
|
+
// 新增监听属性变化(如高度)
|
|
650
|
+
attributeFilter: ["style", "class"]
|
|
651
|
+
// 只监听样式相关属性
|
|
652
|
+
});
|
|
653
|
+
} else {
|
|
654
|
+
chatContainerEl.scrollTo({
|
|
655
|
+
top: chatContainerEl.scrollHeight,
|
|
656
|
+
behavior: "smooth"
|
|
657
|
+
});
|
|
658
|
+
}
|
|
659
|
+
});
|
|
660
|
+
});
|
|
661
|
+
};
|
|
662
|
+
const handleMessageAction = (action, index) => {
|
|
663
|
+
const message = chatList.value[index];
|
|
664
|
+
if (!message)
|
|
665
|
+
return;
|
|
666
|
+
switch (action) {
|
|
667
|
+
case MessageAction.COPY: {
|
|
668
|
+
const textContent = message.content;
|
|
669
|
+
navigator.clipboard.writeText(textContent).then(() => {
|
|
670
|
+
showToast("\u590D\u5236\u6210\u529F", "info");
|
|
671
|
+
}).catch((err) => {
|
|
672
|
+
console.error("\u590D\u5236\u5931\u8D25:", err);
|
|
673
|
+
showToast("\u590D\u5236\u5931\u8D25", "error");
|
|
674
|
+
});
|
|
675
|
+
break;
|
|
676
|
+
}
|
|
677
|
+
case MessageAction.EDIT:
|
|
678
|
+
message.isEditing = true;
|
|
679
|
+
message.editContent = message.content;
|
|
680
|
+
break;
|
|
681
|
+
case MessageAction.DELETE:
|
|
682
|
+
messageUtils.deleteMessageChain(index);
|
|
683
|
+
emit("sendMessage", chatList.value);
|
|
684
|
+
break;
|
|
685
|
+
case MessageAction.RETRY: {
|
|
686
|
+
const aiMessage = chatList.value[index];
|
|
687
|
+
const userMessageIndex = index - 1;
|
|
688
|
+
const userMessage = chatList.value[userMessageIndex];
|
|
689
|
+
if (userMessage && userMessage.user === "u") {
|
|
690
|
+
const updatedAiMessage = {
|
|
691
|
+
...aiMessage,
|
|
692
|
+
content: "",
|
|
693
|
+
thinkContent: "",
|
|
694
|
+
reasoningContent: "",
|
|
695
|
+
isLiked: false,
|
|
696
|
+
isDisliked: false,
|
|
697
|
+
isChating: true,
|
|
698
|
+
chatId: aiMessage.chatId,
|
|
699
|
+
user: aiMessage.user,
|
|
700
|
+
type: aiMessage.type,
|
|
701
|
+
thinkStatus: ThinkStatus.COMPLETED,
|
|
702
|
+
thinkStartTime: 0,
|
|
703
|
+
thinkEndTime: 0
|
|
704
|
+
};
|
|
705
|
+
chatList.value.splice(index, 1, updatedAiMessage);
|
|
706
|
+
nextTick(() => {
|
|
707
|
+
if (htmlContentRef.value[index])
|
|
708
|
+
htmlContentRef.value[index].innerHTML = "";
|
|
709
|
+
if (thinkingContentRef.value[index])
|
|
710
|
+
thinkingContentRef.value[index].innerHTML = "";
|
|
711
|
+
if (reasoningContentRef.value[index])
|
|
712
|
+
reasoningContentRef.value[index].innerHTML = "";
|
|
713
|
+
setTimeout(() => {
|
|
714
|
+
openSSE(userMessage.content || "", index);
|
|
715
|
+
}, 50);
|
|
716
|
+
});
|
|
717
|
+
}
|
|
718
|
+
break;
|
|
719
|
+
}
|
|
720
|
+
case MessageAction.LIKE:
|
|
721
|
+
messageUtils.updateMessage(index, {
|
|
722
|
+
isLiked: true,
|
|
723
|
+
isDisliked: false
|
|
724
|
+
});
|
|
725
|
+
break;
|
|
726
|
+
case MessageAction.DISLIKE:
|
|
727
|
+
messageUtils.updateMessage(index, {
|
|
728
|
+
isLiked: false,
|
|
729
|
+
isDisliked: true
|
|
730
|
+
});
|
|
731
|
+
break;
|
|
732
|
+
}
|
|
733
|
+
};
|
|
734
|
+
const saveEdit = (index, newContent) => {
|
|
735
|
+
const message = chatList.value[index];
|
|
736
|
+
if (!message || !message.editContent)
|
|
737
|
+
return;
|
|
738
|
+
chatList.value[index] = {
|
|
739
|
+
...message,
|
|
740
|
+
content: newContent,
|
|
741
|
+
isEditing: false,
|
|
742
|
+
editContent: void 0
|
|
743
|
+
};
|
|
744
|
+
nextTick(() => {
|
|
745
|
+
renderContent(message.content, "main", index);
|
|
746
|
+
});
|
|
747
|
+
if (index + 1 < chatList.value.length && chatList.value[index + 1].user === "ai") {
|
|
748
|
+
chatList.value.splice(index + 1, 1);
|
|
749
|
+
}
|
|
750
|
+
openSSE(newContent, index + 1);
|
|
751
|
+
emit("sendMessage", chatList.value);
|
|
752
|
+
};
|
|
753
|
+
const cancelEdit = (index) => {
|
|
754
|
+
const message = chatList.value[index];
|
|
755
|
+
if (!message)
|
|
756
|
+
return;
|
|
757
|
+
message.isEditing = false;
|
|
758
|
+
message.editContent = "";
|
|
759
|
+
nextTick(() => {
|
|
760
|
+
renderContent(message.content, "main", index);
|
|
761
|
+
});
|
|
762
|
+
};
|
|
763
|
+
onMounted(async () => {
|
|
764
|
+
init();
|
|
765
|
+
isMounted.value = true;
|
|
766
|
+
availableAgents.value.forEach((agent) => {
|
|
767
|
+
a2aService.registerAgent(agent);
|
|
768
|
+
});
|
|
769
|
+
if (availableAgents.value.length > 0) {
|
|
770
|
+
selectedAgents.value = [availableAgents.value[0].id];
|
|
771
|
+
}
|
|
772
|
+
});
|
|
773
|
+
onBeforeUnmount(() => {
|
|
774
|
+
if (!isUnmounting.value) {
|
|
775
|
+
isUnmounting.value = true;
|
|
776
|
+
isMounted.value = false;
|
|
777
|
+
htmlContentRef.value = [];
|
|
778
|
+
thinkingContentRef.value = [];
|
|
779
|
+
reasoningContentRef.value = [];
|
|
780
|
+
}
|
|
781
|
+
if (scrollObserver.value) {
|
|
782
|
+
scrollObserver.value.disconnect();
|
|
783
|
+
scrollObserver.value = null;
|
|
784
|
+
}
|
|
785
|
+
});
|
|
786
|
+
const handleDragEnter = () => {
|
|
787
|
+
if (ChatInputRef.value) {
|
|
788
|
+
ChatInputRef.value.openMarkLayer();
|
|
789
|
+
}
|
|
790
|
+
isDragging.value = true;
|
|
791
|
+
};
|
|
792
|
+
const handleDragLeave = (e) => {
|
|
793
|
+
const rect = e.target.getBoundingClientRect();
|
|
794
|
+
if (e.clientX < rect.left || e.clientX > rect.right || e.clientY < rect.top || e.clientY > rect.bottom) {
|
|
795
|
+
isDragging.value = false;
|
|
796
|
+
}
|
|
797
|
+
};
|
|
798
|
+
const handleDrop = async (e) => {
|
|
799
|
+
var _a;
|
|
800
|
+
isDragging.value = false;
|
|
801
|
+
const files = (_a = e.dataTransfer) == null ? void 0 : _a.files;
|
|
802
|
+
if (files && files.length > 0) {
|
|
803
|
+
const fileList = await Promise.all(
|
|
804
|
+
Array.from(files).map(async (file) => {
|
|
805
|
+
let base64 = "";
|
|
806
|
+
if (file.type.startsWith("image/")) {
|
|
807
|
+
base64 = await new Promise((resolve) => {
|
|
808
|
+
const reader = new FileReader();
|
|
809
|
+
reader.onload = (e2) => {
|
|
810
|
+
var _a2;
|
|
811
|
+
resolve((_a2 = e2.target) == null ? void 0 : _a2.result);
|
|
812
|
+
};
|
|
813
|
+
reader.readAsDataURL(file);
|
|
814
|
+
});
|
|
815
|
+
}
|
|
816
|
+
return {
|
|
817
|
+
// id: crypto.randomUUID().replace(/-/gi, ''),
|
|
818
|
+
id: Math.random().toString(36).slice(2).padEnd(10, "0").slice(0, 10),
|
|
819
|
+
file,
|
|
820
|
+
name: file.name,
|
|
821
|
+
fileType: file.type,
|
|
822
|
+
fileSize: file.size,
|
|
823
|
+
lastModified: file.lastModified,
|
|
824
|
+
preview: URL.createObjectURL(file),
|
|
825
|
+
base64
|
|
826
|
+
};
|
|
827
|
+
})
|
|
828
|
+
);
|
|
829
|
+
if (ChatInputRef.value) {
|
|
830
|
+
ChatInputRef.value.handlePaste(fileList, "drop");
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
if (ChatInputRef.value) {
|
|
834
|
+
ChatInputRef.value.colseMarkLayer();
|
|
835
|
+
}
|
|
836
|
+
};
|
|
837
|
+
const itemUploadFile = (item, index) => {
|
|
838
|
+
console.log("itemUploadFile", item, index);
|
|
839
|
+
if (ChatInputRef.value) {
|
|
840
|
+
ChatInputRef.value.itemUploadFile(index, "drop");
|
|
841
|
+
}
|
|
842
|
+
};
|
|
843
|
+
provide("touchchat", {
|
|
844
|
+
send: sendMessage,
|
|
845
|
+
retry: handleMessageAction
|
|
846
|
+
});
|
|
847
|
+
__expose({
|
|
848
|
+
send: (value, fileList, auto, type) => {
|
|
849
|
+
handleSend(value, fileList, auto, type);
|
|
850
|
+
},
|
|
851
|
+
retry: (index) => {
|
|
852
|
+
handleMessageAction(MessageAction.RETRY, index);
|
|
853
|
+
},
|
|
854
|
+
update
|
|
855
|
+
});
|
|
856
|
+
return (_ctx, _cache) => {
|
|
857
|
+
return openBlock(), createElementBlock("div", {
|
|
858
|
+
class: "touchchat-main",
|
|
859
|
+
onDragover: withModifiers(() => {
|
|
860
|
+
}, ["prevent"]),
|
|
861
|
+
onDragenter: withModifiers(handleDragEnter, ["prevent"]),
|
|
862
|
+
onDragleave: handleDragLeave,
|
|
863
|
+
onDrop: withModifiers(handleDrop, ["prevent"])
|
|
864
|
+
}, [
|
|
865
|
+
createElementVNode(
|
|
866
|
+
"div",
|
|
867
|
+
{
|
|
868
|
+
ref_key: "chatContainer",
|
|
869
|
+
ref: chatContainer,
|
|
870
|
+
class: "touchchat-dialog",
|
|
871
|
+
onScroll: handleScroll
|
|
872
|
+
},
|
|
873
|
+
[
|
|
874
|
+
renderSlot(_ctx.$slots, "top"),
|
|
875
|
+
chatList.value.length === 0 ? (openBlock(), createElementBlock("div", {
|
|
876
|
+
key: 0,
|
|
877
|
+
class: "touchchat-welcome"
|
|
878
|
+
}, [
|
|
879
|
+
renderSlot(_ctx.$slots, "welcome", {}, () => [
|
|
880
|
+
createVNode(HelloChat, { onSendMessage: sendMessage })
|
|
881
|
+
])
|
|
882
|
+
])) : createCommentVNode("v-if", true),
|
|
883
|
+
createElementVNode("div", { class: "touchchat-dialog-content" }, [
|
|
884
|
+
(openBlock(true), createElementBlock(
|
|
885
|
+
Fragment,
|
|
886
|
+
null,
|
|
887
|
+
renderList(chatList.value, (item, index) => {
|
|
888
|
+
return openBlock(), createElementBlock(
|
|
889
|
+
Fragment,
|
|
890
|
+
{
|
|
891
|
+
key: item.chatId
|
|
892
|
+
},
|
|
893
|
+
[
|
|
894
|
+
item.user === "u" ? (openBlock(), createBlock(UserMessage, {
|
|
895
|
+
key: 0,
|
|
896
|
+
item,
|
|
897
|
+
index,
|
|
898
|
+
onUserMessageFileList: itemUploadFile,
|
|
899
|
+
onCopy: ($event) => handleMessageAction(unref(MessageAction).COPY, index),
|
|
900
|
+
onEdit: ($event) => handleMessageAction(unref(MessageAction).EDIT, index),
|
|
901
|
+
onDelete: ($event) => handleMessageAction(unref(MessageAction).DELETE, index),
|
|
902
|
+
onSaveEdit: saveEdit,
|
|
903
|
+
onCancelEdit: ($event) => cancelEdit(index)
|
|
904
|
+
}, {
|
|
905
|
+
userAvatar: withCtx(() => [
|
|
906
|
+
renderSlot(_ctx.$slots, "userAvatar")
|
|
907
|
+
]),
|
|
908
|
+
fn: withCtx(() => [
|
|
909
|
+
renderSlot(_ctx.$slots, "fn", {
|
|
910
|
+
item,
|
|
911
|
+
index
|
|
912
|
+
})
|
|
913
|
+
]),
|
|
914
|
+
_: 2
|
|
915
|
+
/* DYNAMIC */
|
|
916
|
+
}, 1032, ["item", "index", "onCopy", "onEdit", "onDelete", "onCancelEdit"])) : (openBlock(), createBlock(AiMessage, {
|
|
917
|
+
key: 1,
|
|
918
|
+
item,
|
|
919
|
+
index,
|
|
920
|
+
"has-retry": true,
|
|
921
|
+
onCopy: ($event) => handleMessageAction(unref(MessageAction).COPY, index),
|
|
922
|
+
onRetry: ($event) => handleMessageAction(unref(MessageAction).RETRY, index),
|
|
923
|
+
onLike: ($event) => handleMessageAction(unref(MessageAction).LIKE, index),
|
|
924
|
+
onDislike: ($event) => handleMessageAction(unref(MessageAction).DISLIKE, index),
|
|
925
|
+
onContentRendered: attachCopyButtons,
|
|
926
|
+
onCompleteRendered: (chatId) => completeRendered(chatId),
|
|
927
|
+
onToggleSidebar: toggleSidebarClick
|
|
928
|
+
}, {
|
|
929
|
+
aimsg: withCtx(() => [
|
|
930
|
+
renderSlot(_ctx.$slots, "aimsg", {
|
|
931
|
+
item,
|
|
932
|
+
index
|
|
933
|
+
})
|
|
934
|
+
]),
|
|
935
|
+
msg: withCtx(() => [
|
|
936
|
+
renderSlot(_ctx.$slots, "msg", {
|
|
937
|
+
item,
|
|
938
|
+
index
|
|
939
|
+
})
|
|
940
|
+
]),
|
|
941
|
+
aiAvatar: withCtx(() => [
|
|
942
|
+
renderSlot(_ctx.$slots, "aiAvatar")
|
|
943
|
+
]),
|
|
944
|
+
fn: withCtx(() => [
|
|
945
|
+
renderSlot(_ctx.$slots, "fn", {
|
|
946
|
+
item,
|
|
947
|
+
index
|
|
948
|
+
})
|
|
949
|
+
]),
|
|
950
|
+
extendsFn: withCtx(() => [
|
|
951
|
+
renderSlot(_ctx.$slots, "extendsFn", {
|
|
952
|
+
item,
|
|
953
|
+
index
|
|
954
|
+
})
|
|
955
|
+
]),
|
|
956
|
+
_: 2
|
|
957
|
+
/* DYNAMIC */
|
|
958
|
+
}, 1032, ["item", "index", "onCopy", "onRetry", "onLike", "onDislike", "onCompleteRendered"]))
|
|
959
|
+
],
|
|
960
|
+
64
|
|
961
|
+
/* STABLE_FRAGMENT */
|
|
962
|
+
);
|
|
963
|
+
}),
|
|
964
|
+
128
|
|
965
|
+
/* KEYED_FRAGMENT */
|
|
966
|
+
))
|
|
967
|
+
])
|
|
968
|
+
],
|
|
969
|
+
544
|
|
970
|
+
/* NEED_HYDRATION, NEED_PATCH */
|
|
971
|
+
),
|
|
972
|
+
_ctx.$slots.shortcut ? (openBlock(), createElementBlock("div", {
|
|
973
|
+
key: 0,
|
|
974
|
+
class: "touchchat-edit-shortcut"
|
|
975
|
+
}, [
|
|
976
|
+
renderSlot(_ctx.$slots, "shortcut")
|
|
977
|
+
])) : createCommentVNode("v-if", true),
|
|
978
|
+
renderSlot(_ctx.$slots, "edit", {}, () => [
|
|
979
|
+
createVNode(ChatInput, {
|
|
980
|
+
ref_key: "ChatInputRef",
|
|
981
|
+
ref: ChatInputRef,
|
|
982
|
+
"input-value": inputValue.value,
|
|
983
|
+
"onUpdate:inputValue": ($event) => inputValue.value = $event,
|
|
984
|
+
"is-chating": isChating.value,
|
|
985
|
+
onSend: handleBeforeSend,
|
|
986
|
+
onStop: handleStop
|
|
987
|
+
}, null, 8, ["input-value", "onUpdate:inputValue", "is-chating"])
|
|
988
|
+
])
|
|
989
|
+
], 40, ["onDragover"]);
|
|
990
|
+
};
|
|
991
|
+
}
|
|
992
|
+
});
|
|
993
|
+
|
|
994
|
+
export { _sfc_main as default };
|
|
995
|
+
//# sourceMappingURL=TouchAgent.vue2.mjs.map
|