paul-ai-assistant 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +249 -0
- package/dist/1.async.js +61 -0
- package/dist/1013.async.js +1 -0
- package/dist/123.async.js +258 -0
- package/dist/1387.async.js +321 -0
- package/dist/1481.async.js +1 -0
- package/dist/1548.async.js +2 -0
- package/dist/1815.async.js +3 -0
- package/dist/1819.async.js +1 -0
- package/dist/1851.async.js +1 -0
- package/dist/2491.async.js +132 -0
- package/dist/2517.async.js +247 -0
- package/dist/2678.async.js +1 -0
- package/dist/2856.async.js +267 -0
- package/dist/295.async.js +1 -0
- package/dist/3098.async.js +1 -0
- package/dist/3138.async.js +1 -0
- package/dist/34.async.js +137 -0
- package/dist/3472.async.js +1 -0
- package/dist/3614.async.js +25 -0
- package/dist/3959.async.js +69 -0
- package/dist/404.html +44 -0
- package/dist/4484.async.js +10 -0
- package/dist/4498.async.js +37 -0
- package/dist/4911.async.js +1 -0
- package/dist/4927.async.js +104 -0
- package/dist/5067.async.js +44 -0
- package/dist/5588.async.js +8 -0
- package/dist/5754.async.js +5 -0
- package/dist/6254.async.js +30286 -0
- package/dist/6355.async.js +10 -0
- package/dist/6662.async.js +177 -0
- package/dist/6680.async.js +2615 -0
- package/dist/6690.async.js +153 -0
- package/dist/7267.async.js +31 -0
- package/dist/7329.async.js +180 -0
- package/dist/7718.async.js +61 -0
- package/dist/7762.async.js +3 -0
- package/dist/7787.async.js +7 -0
- package/dist/7929.async.js +1 -0
- package/dist/8164.async.js +1 -0
- package/dist/834.async.js +221 -0
- package/dist/8456.async.js +146 -0
- package/dist/8542.async.js +25 -0
- package/dist/8749.async.js +1 -0
- package/dist/8914.async.js +66 -0
- package/dist/9570.async.js +65 -0
- package/dist/9725.async.js +18 -0
- package/dist/components/llm-trace-v2/index.html +44 -0
- package/dist/components/llm-trace-v3/index.html +44 -0
- package/dist/components/llm-trace-v3-advanced/index.html +44 -0
- package/dist/components/llm-trace-v3-examples/index.html +44 -0
- package/dist/components/llm-trace-v3-visual-demos/index.html +44 -0
- package/dist/demos.async.js +594 -0
- package/dist/demos__index.md.async.js +1 -0
- package/dist/demos__markdown-latex-mermaid__index.md.async.js +1 -0
- package/dist/demos__toolChatType__index.md.async.js +1 -0
- package/dist/docs/index.html +44 -0
- package/dist/docs__components__llm-trace-v2.md.async.js +1 -0
- package/dist/docs__components__llm-trace-v3-advanced.md.async.js +1 -0
- package/dist/docs__components__llm-trace-v3-examples.md.async.js +1 -0
- package/dist/docs__components__llm-trace-v3-visual-demos.md.async.js +1 -0
- package/dist/docs__components__llm-trace-v3.md.async.js +61 -0
- package/dist/docs__docs__index.md.async.js +108 -0
- package/dist/docs__index.md.async.js +1 -0
- package/dist/dumi__tmp-production__dumi__theme__ContextWrapper.async.js +1 -0
- package/dist/index.html +44 -0
- package/dist/markdown-latex-mermaid/index.html +44 -0
- package/dist/meta__demos.async.js +4272 -0
- package/dist/meta__docs.async.js +3416 -0
- package/dist/nm__dumi__dist__client__pages__404.async.js +29 -0
- package/dist/nm__dumi__dist__client__pages__Demo__index.async.js +5 -0
- package/dist/nm__dumi__theme-default__layouts__DocLayout__index.async.js +1 -0
- package/dist/preload_helper.js +1 -0
- package/dist/static/KaTeX_AMS-Regular.1608a09b.woff +0 -0
- package/dist/static/KaTeX_AMS-Regular.4aafdb68.ttf +0 -0
- package/dist/static/KaTeX_AMS-Regular.a79f1c31.woff2 +0 -0
- package/dist/static/KaTeX_Caligraphic-Bold.b6770918.woff +0 -0
- package/dist/static/KaTeX_Caligraphic-Bold.cce5b8ec.ttf +0 -0
- package/dist/static/KaTeX_Caligraphic-Bold.ec17d132.woff2 +0 -0
- package/dist/static/KaTeX_Caligraphic-Regular.07ef19e7.ttf +0 -0
- package/dist/static/KaTeX_Caligraphic-Regular.55fac258.woff2 +0 -0
- package/dist/static/KaTeX_Caligraphic-Regular.dad44a7f.woff +0 -0
- package/dist/static/KaTeX_Fraktur-Bold.9f256b85.woff +0 -0
- package/dist/static/KaTeX_Fraktur-Bold.b18f59e1.ttf +0 -0
- package/dist/static/KaTeX_Fraktur-Bold.d42a5579.woff2 +0 -0
- package/dist/static/KaTeX_Fraktur-Regular.7c187121.woff +0 -0
- package/dist/static/KaTeX_Fraktur-Regular.d3c882a6.woff2 +0 -0
- package/dist/static/KaTeX_Fraktur-Regular.ed38e79f.ttf +0 -0
- package/dist/static/KaTeX_Main-Bold.b74a1a8b.ttf +0 -0
- package/dist/static/KaTeX_Main-Bold.c3fb5ac2.woff2 +0 -0
- package/dist/static/KaTeX_Main-Bold.d181c465.woff +0 -0
- package/dist/static/KaTeX_Main-BoldItalic.6f2bb1df.woff2 +0 -0
- package/dist/static/KaTeX_Main-BoldItalic.70d8b0a5.ttf +0 -0
- package/dist/static/KaTeX_Main-BoldItalic.e3f82f9d.woff +0 -0
- package/dist/static/KaTeX_Main-Italic.47373d1e.ttf +0 -0
- package/dist/static/KaTeX_Main-Italic.8916142b.woff2 +0 -0
- package/dist/static/KaTeX_Main-Italic.9024d815.woff +0 -0
- package/dist/static/KaTeX_Main-Regular.0462f03b.woff2 +0 -0
- package/dist/static/KaTeX_Main-Regular.7f51fe03.woff +0 -0
- package/dist/static/KaTeX_Main-Regular.b7f8fe9b.ttf +0 -0
- package/dist/static/KaTeX_Math-BoldItalic.572d331f.woff2 +0 -0
- package/dist/static/KaTeX_Math-BoldItalic.a879cf83.ttf +0 -0
- package/dist/static/KaTeX_Math-BoldItalic.f1035d8d.woff +0 -0
- package/dist/static/KaTeX_Math-Italic.5295ba48.woff +0 -0
- package/dist/static/KaTeX_Math-Italic.939bc644.ttf +0 -0
- package/dist/static/KaTeX_Math-Italic.f28c23ac.woff2 +0 -0
- package/dist/static/KaTeX_SansSerif-Bold.8c5b5494.woff2 +0 -0
- package/dist/static/KaTeX_SansSerif-Bold.94e1e8dc.ttf +0 -0
- package/dist/static/KaTeX_SansSerif-Bold.bf59d231.woff +0 -0
- package/dist/static/KaTeX_SansSerif-Italic.3b1e59b3.woff2 +0 -0
- package/dist/static/KaTeX_SansSerif-Italic.7c9bc82b.woff +0 -0
- package/dist/static/KaTeX_SansSerif-Italic.b4c20c84.ttf +0 -0
- package/dist/static/KaTeX_SansSerif-Regular.74048478.woff +0 -0
- package/dist/static/KaTeX_SansSerif-Regular.ba21ed5f.woff2 +0 -0
- package/dist/static/KaTeX_SansSerif-Regular.d4d7ba48.ttf +0 -0
- package/dist/static/KaTeX_Script-Regular.03e9641d.woff2 +0 -0
- package/dist/static/KaTeX_Script-Regular.07505710.woff +0 -0
- package/dist/static/KaTeX_Script-Regular.fe9cbbe1.ttf +0 -0
- package/dist/static/KaTeX_Size1-Regular.e1e279cb.woff +0 -0
- package/dist/static/KaTeX_Size1-Regular.eae34984.woff2 +0 -0
- package/dist/static/KaTeX_Size1-Regular.fabc004a.ttf +0 -0
- package/dist/static/KaTeX_Size2-Regular.57727022.woff +0 -0
- package/dist/static/KaTeX_Size2-Regular.5916a24f.woff2 +0 -0
- package/dist/static/KaTeX_Size2-Regular.d6b476ec.ttf +0 -0
- package/dist/static/KaTeX_Size3-Regular.9acaf01c.woff +0 -0
- package/dist/static/KaTeX_Size3-Regular.a144ef58.ttf +0 -0
- package/dist/static/KaTeX_Size3-Regular.b4230e7e.woff2 +0 -0
- package/dist/static/KaTeX_Size4-Regular.10d95fd3.woff2 +0 -0
- package/dist/static/KaTeX_Size4-Regular.7a996c9d.woff +0 -0
- package/dist/static/KaTeX_Size4-Regular.fbccdabe.ttf +0 -0
- package/dist/static/KaTeX_Typewriter-Regular.6258592b.woff +0 -0
- package/dist/static/KaTeX_Typewriter-Regular.a8709e36.woff2 +0 -0
- package/dist/static/KaTeX_Typewriter-Regular.d97aaf4a.ttf +0 -0
- package/dist/tool-chat-type/index.html +44 -0
- package/dist/umi.js +1534 -0
- package/dist/~demos/:id/index.html +44 -0
- package/dist/~demos/demos-markdown-latex-mermaid-demo-markdown-latex-mermaid/index.html +44 -0
- package/dist/~demos/demos-tool-chat-type-demo-agentschemaformdemo/index.html +44 -0
- package/dist/~demos/demos-tool-chat-type-demo-assistant-drawer/index.html +44 -0
- package/dist/~demos/demos-tool-chat-type-demo-chat-input-demo/index.html +44 -0
- package/dist/~demos/demos-tool-chat-type-demo-chat-list-demo/index.html +44 -0
- package/dist/~demos/demos-tool-chat-type-demo-chat-scenario-demo/index.html +44 -0
- package/dist/~demos/demos-tool-chat-type-demo-schema-input/index.html +44 -0
- package/dist/~demos/demos-tool-chat-type-demo-toolchattype/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-2-demo-0/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-2-demo-1/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-2-demo-2/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-2-demo-3/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-2-demo-4/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-0/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-1/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-2/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-3/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-demo-0/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-demo-1/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-demo-2/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-demo-3/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-0/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-1/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-2/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-3/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-4/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-0/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-1/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-2/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-3/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-4/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-5/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-6/index.html +44 -0
- package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-7/index.html +44 -0
- package/es/AssistantChat/AssistantChatApp/CardMatchRender/index.d.ts +8 -0
- package/es/AssistantChat/AssistantChatApp/CardMatchRender/index.js +124 -0
- package/es/AssistantChat/AssistantChatApp/OperationMatchRender/index.d.ts +9 -0
- package/es/AssistantChat/AssistantChatApp/OperationMatchRender/index.js +64 -0
- package/es/AssistantChat/AssistantChatApp/const.d.ts +51 -0
- package/es/AssistantChat/AssistantChatApp/const.js +105 -0
- package/es/AssistantChat/AssistantChatApp/index.d.ts +4 -0
- package/es/AssistantChat/AssistantChatApp/index.js +281 -0
- package/es/AssistantChat/AssistantChatApp/index.scss +327 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/TemplateCard.d.ts +3 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/TemplateCard.js +125 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/common/types.d.ts +3 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/common/types.js +1 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHeader.d.ts +5 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHeader.js +24 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHtml.d.ts +7 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHtml.js +58 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateParagraph.d.ts +3 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateParagraph.js +8 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateTitle.d.ts +3 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateTitle.js +9 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TraceComponent.d.ts +3 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TraceComponent.js +47 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/context/index.d.ts +29 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/context/index.js +95 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.d.ts +4 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.js +100 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.scss +18 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/utils.d.ts +2 -0
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/utils.js +36 -0
- package/es/AssistantChat/AssistantChatCard/AgentCommonCard/index.d.ts +4 -0
- package/es/AssistantChat/AssistantChatCard/AgentCommonCard/index.js +95 -0
- package/es/AssistantChat/AssistantChatCard/AgentCommonCard/index.scss +20 -0
- package/es/AssistantChat/AssistantChatCard/AgentExecutionCard/index.d.ts +16 -0
- package/es/AssistantChat/AssistantChatCard/AgentExecutionCard/index.js +17 -0
- package/es/AssistantChat/AssistantChatCard/AgentExecutionCard/index.scss +99 -0
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.d.ts +14 -0
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.js +273 -0
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.scss +101 -0
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.d.ts +78 -0
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.js +123 -0
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.scss +12 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/AigcTipsRender/index.d.ts +7 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/AigcTipsRender/index.js +29 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/Copy/index.d.ts +7 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/Copy/index.js +64 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/CopyRequestId/index.d.ts +3 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/CopyRequestId/index.js +19 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/FeedBack/index.d.ts +11 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/FeedBack/index.js +91 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/ShareButton/index.d.ts +3 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/ShareButton/index.js +26 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/index.d.ts +4 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/index.js +43 -0
- package/es/AssistantChat/AssistantChatCard/OperationCard/index.scss +14 -0
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/AttachmentsRender.d.ts +21 -0
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/AttachmentsRender.js +141 -0
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/ImageRender.d.ts +7 -0
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/ImageRender.js +74 -0
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/index.d.ts +8 -0
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/index.js +54 -0
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/index.scss +98 -0
- package/es/AssistantChat/AssistantChatCard/index.d.ts +5 -0
- package/es/AssistantChat/AssistantChatCard/index.js +10 -0
- package/es/AssistantChat/AssistantChatInput/index.d.ts +5 -0
- package/es/AssistantChat/AssistantChatInput/index.js +172 -0
- package/es/AssistantChat/AssistantChatInput/index.scss +85 -0
- package/es/AssistantChat/AssistantToolApp/const.d.ts +12 -0
- package/es/AssistantChat/AssistantToolApp/const.js +22 -0
- package/es/AssistantChat/AssistantToolApp/index.d.ts +4 -0
- package/es/AssistantChat/AssistantToolApp/index.js +159 -0
- package/es/AssistantChat/AssistantToolApp/index.scss +76 -0
- package/es/AssistantChat/AssistantToolExecutionApp/const.d.ts +7 -0
- package/es/AssistantChat/AssistantToolExecutionApp/const.js +23 -0
- package/es/AssistantChat/AssistantToolExecutionApp/index.d.ts +4 -0
- package/es/AssistantChat/AssistantToolExecutionApp/index.js +66 -0
- package/es/AssistantChat/AssistantToolExecutionApp/index.scss +39 -0
- package/es/AssistantChat/AssistentError/index.d.ts +5 -0
- package/es/AssistantChat/AssistentError/index.js +138 -0
- package/es/AssistantChat/index.d.ts +6 -0
- package/es/AssistantChat/index.js +166 -0
- package/es/AssistantChat/index.scss +30 -0
- package/es/AssistantChat/logCallback/aTagLog.d.ts +1 -0
- package/es/AssistantChat/logCallback/aTagLog.js +23 -0
- package/es/AssistantChat/logCallback/copyLog.d.ts +3 -0
- package/es/AssistantChat/logCallback/copyLog.js +63 -0
- package/es/ErrorBoundary/ErrorBoundaryFallback/index.d.ts +5 -0
- package/es/ErrorBoundary/ErrorBoundaryFallback/index.js +134 -0
- package/es/ErrorBoundary/index.d.ts +22 -0
- package/es/ErrorBoundary/index.js +69 -0
- package/es/common/registerAssistChatForm.d.ts +2 -0
- package/es/common/registerAssistChatForm.js +14 -0
- package/es/components/AgentCardSubmit/index.d.ts +20 -0
- package/es/components/AgentCardSubmit/index.js +90 -0
- package/es/components/AgentResult/index.d.ts +8 -0
- package/es/components/AgentResult/index.js +77 -0
- package/es/components/AgentResult/index.scss +11 -0
- package/es/components/AgentSchemaForm/ScreenshotView.d.ts +12 -0
- package/es/components/AgentSchemaForm/ScreenshotView.js +194 -0
- package/es/components/AgentSchemaForm/ScreenshotView.scss +86 -0
- package/es/components/AgentSchemaForm/_interface.d.ts +37 -0
- package/es/components/AgentSchemaForm/_interface.js +13 -0
- package/es/components/AgentSchemaForm/index.d.ts +9 -0
- package/es/components/AgentSchemaForm/index.js +190 -0
- package/es/components/AgentSchemaForm/index.scss +37 -0
- package/es/components/AgentText/index.d.ts +4 -0
- package/es/components/AgentText/index.js +8 -0
- package/es/components/AgentText/index.scss +5 -0
- package/es/components/AigcTips/index.d.ts +9 -0
- package/es/components/AigcTips/index.js +17 -0
- package/es/components/AigcTips/index.scss +6 -0
- package/es/components/ArrayInput/index.d.ts +3 -0
- package/es/components/ArrayInput/index.js +36 -0
- package/es/components/AssistantDrawer/index.d.ts +22 -0
- package/es/components/AssistantDrawer/index.js +112 -0
- package/es/components/AssistantDrawer/index.scss +96 -0
- package/es/components/EmptyIcon/index.d.ts +3 -0
- package/es/components/EmptyIcon/index.js +124 -0
- package/es/components/HeaderSvgIcon/index.d.ts +3 -0
- package/es/components/HeaderSvgIcon/index.js +1 -0
- package/es/components/InspectionCard/index.d.ts +66 -0
- package/es/components/InspectionCard/index.js +246 -0
- package/es/components/InspectionCard/index.module.less +193 -0
- package/es/components/InspectionCard/result.d.ts +13 -0
- package/es/components/InspectionCard/result.js +26 -0
- package/es/components/InspectionCard/result.module.less +36 -0
- package/es/components/LlmMarkDown/MdAmarkGuess/index.d.ts +16 -0
- package/es/components/LlmMarkDown/MdAmarkGuess/index.js +41 -0
- package/es/components/LlmMarkDown/MdAmarkReference/index.d.ts +21 -0
- package/es/components/LlmMarkDown/MdAmarkReference/index.js +300 -0
- package/es/components/LlmMarkDown/MdAmarkReference/index.scss +122 -0
- package/es/components/LlmMarkDown/index.d.ts +30 -0
- package/es/components/LlmMarkDown/index.js +202 -0
- package/es/components/LlmMarkDown/index.scss +23 -0
- package/es/components/LlmModelChange/index.d.ts +57 -0
- package/es/components/LlmModelChange/index.js +138 -0
- package/es/components/LlmModelChange/index.scss +60 -0
- package/es/components/LlmReference/index.d.ts +25 -0
- package/es/components/LlmReference/index.js +147 -0
- package/es/components/LlmReference/index.scss +92 -0
- package/es/components/LlmTitle/index.d.ts +14 -0
- package/es/components/LlmTitle/index.js +26 -0
- package/es/components/LlmTitle/index.scss +20 -0
- package/es/components/LlmTrace/index.d.ts +17 -0
- package/es/components/LlmTrace/index.js +119 -0
- package/es/components/LlmTrace/index.scss +79 -0
- package/es/components/LlmTraceComponents/Disassemble/index.d.ts +24 -0
- package/es/components/LlmTraceComponents/Disassemble/index.js +89 -0
- package/es/components/LlmTraceComponents/Disassemble/index.scss +19 -0
- package/es/components/LlmTraceComponents/ReadResource/index.d.ts +24 -0
- package/es/components/LlmTraceComponents/ReadResource/index.js +19 -0
- package/es/components/LlmTraceComponents/ReadResource/index.scss +5 -0
- package/es/components/LlmTraceComponents/Rewrite/index.d.ts +23 -0
- package/es/components/LlmTraceComponents/Rewrite/index.js +49 -0
- package/es/components/LlmTraceComponents/Rewrite/index.scss +13 -0
- package/es/components/LlmTraceComponents/TraceMarkDown/index.d.ts +22 -0
- package/es/components/LlmTraceComponents/TraceMarkDown/index.js +44 -0
- package/es/components/LlmTraceComponents/TraceMarkDown/index.scss +18 -0
- package/es/components/LlmTraceComponents/const.d.ts +25 -0
- package/es/components/LlmTraceComponents/const.js +23 -0
- package/es/components/LlmTraceV2/index.d.ts +56 -0
- package/es/components/LlmTraceV2/index.js +384 -0
- package/es/components/LlmTraceV2/index.scss +115 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/BusinessFlow/index.d.ts +13 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/BusinessFlow/index.js +38 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/BusinessFlow/index.scss +56 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/CodeBlock/index.d.ts +18 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/CodeBlock/index.js +82 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/CodeBlock/index.scss +36 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/DeepThinking/index.d.ts +13 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/DeepThinking/index.js +26 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/DeepThinking/index.scss +54 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/InfoMissing/index.d.ts +13 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/InfoMissing/index.js +25 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/InfoMissing/index.scss +38 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/LinkList/index.d.ts +20 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/LinkList/index.js +49 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/LinkList/index.scss +37 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/SearchResults/index.d.ts +13 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/SearchResults/index.js +93 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/SearchResults/index.scss +151 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/TaskPlanning/index.d.ts +12 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/TaskPlanning/index.js +28 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/ToolCall/index.d.ts +13 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/ToolCall/index.js +46 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/ToolCall/index.scss +70 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/ToolResult/index.d.ts +13 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/ToolResult/index.js +72 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/ToolResult/index.scss +90 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/const.d.ts +32 -0
- package/es/components/LlmTraceV3/components/TraceContentComponents/const.js +27 -0
- package/es/components/LlmTraceV3/components/TraceGroup/index.d.ts +8 -0
- package/es/components/LlmTraceV3/components/TraceGroup/index.js +81 -0
- package/es/components/LlmTraceV3/components/TraceHeader/index.d.ts +8 -0
- package/es/components/LlmTraceV3/components/TraceHeader/index.js +64 -0
- package/es/components/LlmTraceV3/components/TraceItem/index.d.ts +8 -0
- package/es/components/LlmTraceV3/components/TraceItem/index.js +126 -0
- package/es/components/LlmTraceV3/components/TraceSlide/index.d.ts +30 -0
- package/es/components/LlmTraceV3/components/TraceSlide/index.js +278 -0
- package/es/components/LlmTraceV3/components/TraceSlide/index.scss +204 -0
- package/es/components/LlmTraceV3/components/TraceStatusIcon/index.d.ts +8 -0
- package/es/components/LlmTraceV3/components/TraceStatusIcon/index.js +41 -0
- package/es/components/LlmTraceV3/hooks/useGroupCollapse.d.ts +18 -0
- package/es/components/LlmTraceV3/hooks/useGroupCollapse.js +91 -0
- package/es/components/LlmTraceV3/hooks/useItemCollapse.d.ts +18 -0
- package/es/components/LlmTraceV3/hooks/useItemCollapse.js +61 -0
- package/es/components/LlmTraceV3/hooks/useTraceAnimation.d.ts +15 -0
- package/es/components/LlmTraceV3/hooks/useTraceAnimation.js +54 -0
- package/es/components/LlmTraceV3/hooks/useTraceCollapse.d.ts +17 -0
- package/es/components/LlmTraceV3/hooks/useTraceCollapse.js +80 -0
- package/es/components/LlmTraceV3/index.d.ts +11 -0
- package/es/components/LlmTraceV3/index.js +173 -0
- package/es/components/LlmTraceV3/index.scss +333 -0
- package/es/components/LlmTraceV3/types.d.ts +263 -0
- package/es/components/LlmTraceV3/types.js +108 -0
- package/es/components/LlmTraceV3/utils/collapseLogic.d.ts +26 -0
- package/es/components/LlmTraceV3/utils/collapseLogic.js +86 -0
- package/es/components/LlmTraceV3/utils/traceHelpers.d.ts +42 -0
- package/es/components/LlmTraceV3/utils/traceHelpers.js +94 -0
- package/es/components/MarkDown/index.d.ts +11 -0
- package/es/components/MarkDown/index.js +222 -0
- package/es/components/MarkDown/index.scss +179 -0
- package/es/components/ModelSelect/ModeDropdown.d.ts +8 -0
- package/es/components/ModelSelect/ModeDropdown.js +118 -0
- package/es/components/ModelSelect/const.d.ts +30 -0
- package/es/components/ModelSelect/const.js +61 -0
- package/es/components/ModelSelect/index.d.ts +4 -0
- package/es/components/ModelSelect/index.js +45 -0
- package/es/components/ModelSelect/index.scss +121 -0
- package/es/components/PaulButtonGroup/Select.d.ts +3 -0
- package/es/components/PaulButtonGroup/Select.js +109 -0
- package/es/components/PaulButtonGroup/index.d.ts +16 -0
- package/es/components/PaulButtonGroup/index.js +209 -0
- package/es/components/PaulButtonGroup/index.scss +19 -0
- package/es/components/PopAuth/index.d.ts +4 -0
- package/es/components/PopAuth/index.js +62 -0
- package/es/components/PopAuth/index.scss +16 -0
- package/es/components/ReferenceInfoItem/index.d.ts +49 -0
- package/es/components/ReferenceInfoItem/index.js +43 -0
- package/es/components/ReferenceInfoItem/index.scss +46 -0
- package/es/components/ReferenceTag/index.d.ts +11 -0
- package/es/components/ReferenceTag/index.js +27 -0
- package/es/components/ReferenceTag/index.scss +19 -0
- package/es/components/SchemaInput/SchemaInputCore/index.d.ts +4 -0
- package/es/components/SchemaInput/SchemaInputCore/index.js +113 -0
- package/es/components/SchemaInput/SchemaInputCore/index.scss +35 -0
- package/es/components/SchemaInput/SchemaInputCore/utils.d.ts +1 -0
- package/es/components/SchemaInput/SchemaInputCore/utils.js +77 -0
- package/es/components/SchemaInput/SimpleJSONEditor/index.d.ts +4 -0
- package/es/components/SchemaInput/SimpleJSONEditor/index.js +35 -0
- package/es/components/SchemaInput/SimpleJSONEditor/index.scss +7 -0
- package/es/components/SchemaInput/index.d.ts +8 -0
- package/es/components/SchemaInput/index.js +30 -0
- package/es/components/SelectBlurry/index.d.ts +3 -0
- package/es/components/SelectBlurry/index.js +74 -0
- package/es/components/SendMessageSvgIcon/index.d.ts +3 -0
- package/es/components/SendMessageSvgIcon/index.js +70 -0
- package/es/components/ShareContent/index.d.ts +21 -0
- package/es/components/ShareContent/index.js +176 -0
- package/es/components/ShareContent/index.scss +36 -0
- package/es/components/ShareModal/index.d.ts +15 -0
- package/es/components/ShareModal/index.js +185 -0
- package/es/components/ShareModal/index.scss +199 -0
- package/es/components/ShareOperationBar/index.d.ts +4 -0
- package/es/components/ShareOperationBar/index.js +152 -0
- package/es/components/ShareOperationBar/index.scss +47 -0
- package/es/components/TextContent/index.d.ts +14 -0
- package/es/components/TextContent/index.js +37 -0
- package/es/components/TextContent/index.scss +31 -0
- package/es/components/TraceMarkdownWithCard/index.d.ts +6 -0
- package/es/components/TraceMarkdownWithCard/index.js +21 -0
- package/es/components/TraceMarkdownWithCard/index.module.less +29 -0
- package/es/components/TraceWithAgent/index.d.ts +23 -0
- package/es/components/TraceWithAgent/index.js +93 -0
- package/es/components/TraceWithAgent/index.less +74 -0
- package/es/constants/assistChatEvent.d.ts +33 -0
- package/es/constants/assistChatEvent.js +33 -0
- package/es/constants/common.d.ts +71 -0
- package/es/constants/common.js +90 -0
- package/es/constants/logTrace.d.ts +3 -0
- package/es/constants/logTrace.js +4 -0
- package/es/constants/reference.d.ts +109 -0
- package/es/constants/reference.js +111 -0
- package/es/constants/traceDataStatus.d.ts +34 -0
- package/es/constants/traceDataStatus.js +37 -0
- package/es/context/index.d.ts +13 -0
- package/es/context/index.js +785 -0
- package/es/context/utils/messages.d.ts +33 -0
- package/es/context/utils/messages.js +194 -0
- package/es/context/utils/send.d.ts +29 -0
- package/es/context/utils/send.js +187 -0
- package/es/context/utils/tool.d.ts +19 -0
- package/es/context/utils/tool.js +89 -0
- package/es/index.d.ts +37 -0
- package/es/index.js +63 -0
- package/es/index.scss +39 -0
- package/es/interface/IAgent.d.ts +12 -0
- package/es/interface/IAgent.js +1 -0
- package/es/interface/IChatBottom.d.ts +69 -0
- package/es/interface/IChatBottom.js +1 -0
- package/es/interface/IChatCard.d.ts +40 -0
- package/es/interface/IChatCard.js +1 -0
- package/es/interface/IChatContext.d.ts +59 -0
- package/es/interface/IChatContext.js +1 -0
- package/es/interface/IChatRef.d.ts +75 -0
- package/es/interface/IChatRef.js +1 -0
- package/es/interface/IGuessQuestion.d.ts +43 -0
- package/es/interface/IGuessQuestion.js +15 -0
- package/es/interface/IMessage.d.ts +17 -0
- package/es/interface/IMessage.js +1 -0
- package/es/interface/ISend.d.ts +19 -0
- package/es/interface/ISend.js +1 -0
- package/es/interface/index.d.ts +272 -0
- package/es/interface/index.js +7 -0
- package/es/utils/CSEIconTool.d.ts +8 -0
- package/es/utils/CSEIconTool.js +6 -0
- package/es/utils/apushAssistant.d.ts +73 -0
- package/es/utils/apushAssistant.js +518 -0
- package/es/utils/clientPlugin.d.ts +3 -0
- package/es/utils/clientPlugin.js +73 -0
- package/es/utils/common.d.ts +10 -0
- package/es/utils/common.js +40 -0
- package/es/utils/copyToClipboard.d.ts +2 -0
- package/es/utils/copyToClipboard.js +70 -0
- package/es/utils/formDataFormat.d.ts +3 -0
- package/es/utils/formDataFormat.js +55 -0
- package/es/utils/formatData.d.ts +14 -0
- package/es/utils/formatData.js +104 -0
- package/es/utils/log.d.ts +18 -0
- package/es/utils/log.js +37 -0
- package/es/utils/parseUrl.d.ts +9 -0
- package/es/utils/parseUrl.js +48 -0
- package/es/utils/screenshot.d.ts +45 -0
- package/es/utils/screenshot.js +650 -0
- package/es/utils/send.d.ts +10 -0
- package/es/utils/send.js +8 -0
- package/es/utils/uploadImage.d.ts +9 -0
- package/es/utils/uploadImage.js +226 -0
- package/es/utils/websocketLogger.d.ts +176 -0
- package/es/utils/websocketLogger.js +267 -0
- package/package.json +166 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
+
/**
|
|
3
|
+
* CodeBlock 通用代码块组件
|
|
4
|
+
* 支持语法高亮(可选)和折叠功能
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import React, { useState } from 'react';
|
|
8
|
+
import classNames from 'classnames';
|
|
9
|
+
import { CSECustomIcon } from "../../../../../utils/CSEIconTool";
|
|
10
|
+
import "./index.scss";
|
|
11
|
+
var CodeBlock = function CodeBlock(props) {
|
|
12
|
+
var code = props.code,
|
|
13
|
+
language = props.language,
|
|
14
|
+
_props$collapsed = props.collapsed,
|
|
15
|
+
defaultCollapsed = _props$collapsed === void 0 ? false : _props$collapsed,
|
|
16
|
+
_props$collapsible = props.collapsible,
|
|
17
|
+
collapsible = _props$collapsible === void 0 ? true : _props$collapsible,
|
|
18
|
+
_props$showLineNumber = props.showLineNumbers,
|
|
19
|
+
showLineNumbers = _props$showLineNumber === void 0 ? false : _props$showLineNumber,
|
|
20
|
+
maxHeight = props.maxHeight;
|
|
21
|
+
var _useState = useState(defaultCollapsed),
|
|
22
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
23
|
+
collapsed = _useState2[0],
|
|
24
|
+
setCollapsed = _useState2[1];
|
|
25
|
+
if (!code) return null;
|
|
26
|
+
var handleToggle = function handleToggle() {
|
|
27
|
+
if (collapsible) {
|
|
28
|
+
setCollapsed(!collapsed);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
// 将代码分割成行
|
|
33
|
+
var lines = code.split('\n');
|
|
34
|
+
|
|
35
|
+
// 渲染代码内容
|
|
36
|
+
var renderCode = function renderCode() {
|
|
37
|
+
if (collapsed) {
|
|
38
|
+
// 折叠时只显示第一行的前50个字符
|
|
39
|
+
var preview = code.split('\n')[0].slice(0, 50);
|
|
40
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
41
|
+
className: "code-preview"
|
|
42
|
+
}, preview, code.length > 50 ? '...' : '');
|
|
43
|
+
}
|
|
44
|
+
if (showLineNumbers) {
|
|
45
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
46
|
+
className: "code-with-line-numbers"
|
|
47
|
+
}, lines.map(function (line, index) {
|
|
48
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
49
|
+
key: index,
|
|
50
|
+
className: "code-line"
|
|
51
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
52
|
+
className: "line-number"
|
|
53
|
+
}, index + 1), /*#__PURE__*/React.createElement("span", {
|
|
54
|
+
className: "line-content"
|
|
55
|
+
}, line || ' '));
|
|
56
|
+
}));
|
|
57
|
+
}
|
|
58
|
+
return /*#__PURE__*/React.createElement("pre", {
|
|
59
|
+
className: "code-content"
|
|
60
|
+
}, code);
|
|
61
|
+
};
|
|
62
|
+
var containerStyle = {};
|
|
63
|
+
if (maxHeight && !collapsed) {
|
|
64
|
+
containerStyle.maxHeight = "".concat(maxHeight, "px");
|
|
65
|
+
containerStyle.overflowY = 'auto';
|
|
66
|
+
}
|
|
67
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
68
|
+
className: classNames('code-block', {
|
|
69
|
+
collapsible: collapsible,
|
|
70
|
+
collapsed: collapsed,
|
|
71
|
+
'with-line-numbers': showLineNumbers
|
|
72
|
+
}),
|
|
73
|
+
onClick: collapsible ? handleToggle : undefined,
|
|
74
|
+
style: containerStyle
|
|
75
|
+
}, language && !collapsed && /*#__PURE__*/React.createElement("div", {
|
|
76
|
+
className: "code-language-label"
|
|
77
|
+
}, language), renderCode(), collapsible && /*#__PURE__*/React.createElement(CSECustomIcon, {
|
|
78
|
+
type: "iconchakangengduo",
|
|
79
|
+
className: classNames('collapse-icon', collapsed ? '' : 'collapse-icon-transform')
|
|
80
|
+
}));
|
|
81
|
+
};
|
|
82
|
+
export default /*#__PURE__*/React.memo(CodeBlock);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CodeBlock 代码块组件样式
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// ==================== 样式变量 ====================
|
|
6
|
+
$trace-gap: 4px;
|
|
7
|
+
$trace-small-radius: 2px;
|
|
8
|
+
$trace-font-size: 12px;
|
|
9
|
+
$trace-code-border-color: #e0e0e0;
|
|
10
|
+
|
|
11
|
+
// ==================== CodeBlock 代码块 ====================
|
|
12
|
+
.code-block {
|
|
13
|
+
background-color: #f5f5f5;
|
|
14
|
+
border: 1px solid $trace-code-border-color;
|
|
15
|
+
border-radius: $trace-small-radius;
|
|
16
|
+
padding: 8px 12px;
|
|
17
|
+
font-family: Monaco, Menlo, Consolas, monospace;
|
|
18
|
+
font-size: $trace-font-size;
|
|
19
|
+
color: #666;
|
|
20
|
+
margin: $trace-gap 0;
|
|
21
|
+
overflow-x: auto;
|
|
22
|
+
line-height: 1.5;
|
|
23
|
+
|
|
24
|
+
&.collapsible {
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
position: relative;
|
|
27
|
+
|
|
28
|
+
.collapse-icon {
|
|
29
|
+
position: absolute;
|
|
30
|
+
right: 8px;
|
|
31
|
+
top: 8px;
|
|
32
|
+
width: 12px;
|
|
33
|
+
height: 12px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DeepThinking 深度思考组件
|
|
3
|
+
* 展示 AI 的深度思考过程和推理结果
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import type { IDeepThinkingResult } from '../../../types';
|
|
7
|
+
import './index.scss';
|
|
8
|
+
export interface IDeepThinkingProps extends IDeepThinkingResult {
|
|
9
|
+
dialogId?: string;
|
|
10
|
+
ctx?: any;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: React.NamedExoticComponent<IDeepThinkingProps>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DeepThinking 深度思考组件
|
|
3
|
+
* 展示 AI 的深度思考过程和推理结果
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import "./index.scss";
|
|
8
|
+
var DeepThinking = function DeepThinking(props) {
|
|
9
|
+
var content = props.content,
|
|
10
|
+
conclusion = props.conclusion,
|
|
11
|
+
references = props.references;
|
|
12
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
13
|
+
className: "trace-v3-deep-thinking"
|
|
14
|
+
}, content && /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
className: "thinking-content"
|
|
16
|
+
}, content), conclusion && /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
className: "thinking-conclusion"
|
|
18
|
+
}, /*#__PURE__*/React.createElement("strong", null, "\u7ED3\u8BBA\uFF1A"), conclusion), references && references.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
19
|
+
className: "thinking-references"
|
|
20
|
+
}, /*#__PURE__*/React.createElement("strong", null, "\u53C2\u8003\uFF1A"), /*#__PURE__*/React.createElement("ul", null, references.map(function (ref, index) {
|
|
21
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
22
|
+
key: index
|
|
23
|
+
}, ref);
|
|
24
|
+
}))));
|
|
25
|
+
};
|
|
26
|
+
export default /*#__PURE__*/React.memo(DeepThinking);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DeepThinking 深度思考组件样式
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// ==================== 样式变量 ====================
|
|
6
|
+
$trace-gap: 4px;
|
|
7
|
+
$trace-margin-bottom: 8px;
|
|
8
|
+
$trace-title-color: #171a1d;
|
|
9
|
+
$trace-subtitle-color: #717579;
|
|
10
|
+
$trace-content-color: #81848f;
|
|
11
|
+
$trace-border-color: #dcdee0;
|
|
12
|
+
|
|
13
|
+
// ==================== DeepThinking 深度思考 ====================
|
|
14
|
+
.trace-v3-deep-thinking {
|
|
15
|
+
.thinking-content {
|
|
16
|
+
color: $trace-content-color;
|
|
17
|
+
line-height: 20px;
|
|
18
|
+
margin-bottom: $trace-margin-bottom;
|
|
19
|
+
white-space: pre-wrap;
|
|
20
|
+
word-break: break-word;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.thinking-conclusion {
|
|
24
|
+
margin-top: $trace-margin-bottom;
|
|
25
|
+
padding-top: $trace-margin-bottom;
|
|
26
|
+
border-top: 1px solid $trace-border-color;
|
|
27
|
+
|
|
28
|
+
strong {
|
|
29
|
+
color: $trace-title-color;
|
|
30
|
+
margin-right: 4px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.thinking-references {
|
|
35
|
+
margin-top: $trace-margin-bottom;
|
|
36
|
+
|
|
37
|
+
strong {
|
|
38
|
+
color: $trace-title-color;
|
|
39
|
+
display: block;
|
|
40
|
+
margin-bottom: $trace-gap;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
ul {
|
|
44
|
+
padding-left: 20px;
|
|
45
|
+
margin: 0;
|
|
46
|
+
|
|
47
|
+
li {
|
|
48
|
+
margin-bottom: $trace-gap;
|
|
49
|
+
color: $trace-subtitle-color;
|
|
50
|
+
line-height: 20px;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* InfoMissing 信息缺失组件
|
|
3
|
+
* 提示缺少必要信息,需要用户补充
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import type { IInfoMissingResult } from '../../../types';
|
|
7
|
+
import './index.scss';
|
|
8
|
+
export interface IInfoMissingProps extends IInfoMissingResult {
|
|
9
|
+
dialogId?: string;
|
|
10
|
+
ctx?: any;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: React.NamedExoticComponent<IInfoMissingProps>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* InfoMissing 信息缺失组件
|
|
3
|
+
* 提示缺少必要信息,需要用户补充
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import "./index.scss";
|
|
7
|
+
var InfoMissing = function InfoMissing(props) {
|
|
8
|
+
var message = props.message,
|
|
9
|
+
fields = props.fields;
|
|
10
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
11
|
+
className: "info-missing"
|
|
12
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
13
|
+
className: "missing-content"
|
|
14
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
className: "missing-message"
|
|
16
|
+
}, message), fields && fields.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
className: "missing-fields"
|
|
18
|
+
}, fields.map(function (field, index) {
|
|
19
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
20
|
+
key: index,
|
|
21
|
+
className: "field-item"
|
|
22
|
+
}, "\u2022 ", field.name, ": ", field.description);
|
|
23
|
+
}))));
|
|
24
|
+
};
|
|
25
|
+
export default /*#__PURE__*/React.memo(InfoMissing);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* InfoMissing 信息缺失提示组件样式
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// ==================== 样式变量 ====================
|
|
6
|
+
$trace-gap: 4px;
|
|
7
|
+
$trace-small-radius: 2px;
|
|
8
|
+
|
|
9
|
+
// ==================== InfoMissing 信息缺失提示 ====================
|
|
10
|
+
.info-missing {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: flex-start;
|
|
13
|
+
border-radius: $trace-small-radius;
|
|
14
|
+
|
|
15
|
+
.warning-icon {
|
|
16
|
+
width: 14px;
|
|
17
|
+
height: 14px;
|
|
18
|
+
color: #fa0;
|
|
19
|
+
flex-shrink: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.missing-content {
|
|
23
|
+
flex: 1;
|
|
24
|
+
|
|
25
|
+
.missing-message {
|
|
26
|
+
margin-bottom: $trace-gap;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.missing-fields {
|
|
30
|
+
padding-left: 16px;
|
|
31
|
+
|
|
32
|
+
.field-item {
|
|
33
|
+
margin-bottom: 2px;
|
|
34
|
+
font-size: 11px;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LinkList 链接列表组件
|
|
3
|
+
* 支持有序编号和点击跳转
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import './index.scss';
|
|
7
|
+
export interface ILinkListProps {
|
|
8
|
+
links: Array<{
|
|
9
|
+
id: string;
|
|
10
|
+
title: string;
|
|
11
|
+
url: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
}>;
|
|
14
|
+
ordered?: boolean;
|
|
15
|
+
openInNewTab?: boolean;
|
|
16
|
+
dialogId?: string;
|
|
17
|
+
ctx?: any;
|
|
18
|
+
}
|
|
19
|
+
declare const _default: React.NamedExoticComponent<ILinkListProps>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LinkList 链接列表组件
|
|
3
|
+
* 支持有序编号和点击跳转
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import "./index.scss";
|
|
8
|
+
var LinkList = function LinkList(props) {
|
|
9
|
+
var links = props.links,
|
|
10
|
+
_props$ordered = props.ordered,
|
|
11
|
+
ordered = _props$ordered === void 0 ? true : _props$ordered,
|
|
12
|
+
_props$openInNewTab = props.openInNewTab,
|
|
13
|
+
openInNewTab = _props$openInNewTab === void 0 ? true : _props$openInNewTab;
|
|
14
|
+
if (!links || links.length === 0) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
var handleLinkClick = function handleLinkClick(e, url) {
|
|
18
|
+
e.preventDefault();
|
|
19
|
+
if (openInNewTab) {
|
|
20
|
+
window.open(url, '_blank', 'noopener,noreferrer');
|
|
21
|
+
} else {
|
|
22
|
+
window.location.href = url;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
26
|
+
className: "link-list"
|
|
27
|
+
}, links.map(function (link, index) {
|
|
28
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
29
|
+
key: link.id,
|
|
30
|
+
className: "link-item",
|
|
31
|
+
onClick: function onClick(e) {
|
|
32
|
+
return handleLinkClick(e, link.url);
|
|
33
|
+
}
|
|
34
|
+
}, ordered && /*#__PURE__*/React.createElement("span", {
|
|
35
|
+
className: "link-number"
|
|
36
|
+
}, index + 1, "."), /*#__PURE__*/React.createElement("div", {
|
|
37
|
+
className: "link-content"
|
|
38
|
+
}, /*#__PURE__*/React.createElement("a", {
|
|
39
|
+
href: link.url,
|
|
40
|
+
className: "link-text",
|
|
41
|
+
onClick: function onClick(e) {
|
|
42
|
+
return e.preventDefault();
|
|
43
|
+
}
|
|
44
|
+
}, link.title), link.description && /*#__PURE__*/React.createElement("div", {
|
|
45
|
+
className: "link-description"
|
|
46
|
+
}, link.description)));
|
|
47
|
+
}));
|
|
48
|
+
};
|
|
49
|
+
export default /*#__PURE__*/React.memo(LinkList);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LinkList 链接列表组件样式
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// ==================== 样式变量 ====================
|
|
6
|
+
$trace-gap: 4px;
|
|
7
|
+
$trace-font-size: 12px;
|
|
8
|
+
$trace-running-color: #0070d2;
|
|
9
|
+
|
|
10
|
+
// ==================== LinkList 链接列表 ====================
|
|
11
|
+
.link-list {
|
|
12
|
+
.link-item {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: flex-start;
|
|
15
|
+
margin-bottom: $trace-gap;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
|
|
18
|
+
.link-number {
|
|
19
|
+
min-width: 20px;
|
|
20
|
+
color: $trace-running-color;
|
|
21
|
+
font-size: $trace-font-size;
|
|
22
|
+
line-height: 20px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.link-text {
|
|
26
|
+
color: $trace-running-color;
|
|
27
|
+
text-decoration: none;
|
|
28
|
+
flex: 1;
|
|
29
|
+
font-size: $trace-font-size;
|
|
30
|
+
line-height: 20px;
|
|
31
|
+
|
|
32
|
+
&:hover {
|
|
33
|
+
text-decoration: underline;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SearchResults 搜索结果组件
|
|
3
|
+
* 展示联网搜索的结果列表
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import type { ISearchResultsResult } from '../../../types';
|
|
7
|
+
import './index.scss';
|
|
8
|
+
export interface ISearchResultsProps extends ISearchResultsResult {
|
|
9
|
+
dialogId?: string;
|
|
10
|
+
ctx?: any;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: React.NamedExoticComponent<ISearchResultsProps>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
+
/**
|
|
3
|
+
* SearchResults 搜索结果组件
|
|
4
|
+
* 展示联网搜索的结果列表
|
|
5
|
+
*/
|
|
6
|
+
import React, { useState } from 'react';
|
|
7
|
+
import classNames from 'classnames';
|
|
8
|
+
import { CSECustomIcon } from "../../../../../utils/CSEIconTool";
|
|
9
|
+
import "./index.scss";
|
|
10
|
+
var SearchResults = function SearchResults(props) {
|
|
11
|
+
var title = props.title,
|
|
12
|
+
query = props.query,
|
|
13
|
+
results = props.results,
|
|
14
|
+
_props$collapsed = props.collapsed,
|
|
15
|
+
defaultCollapsed = _props$collapsed === void 0 ? false : _props$collapsed;
|
|
16
|
+
var _useState = useState(defaultCollapsed),
|
|
17
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
18
|
+
collapsed = _useState2[0],
|
|
19
|
+
setCollapsed = _useState2[1];
|
|
20
|
+
if (!results || results.length === 0) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
var handleToggle = function handleToggle() {
|
|
24
|
+
setCollapsed(!collapsed);
|
|
25
|
+
};
|
|
26
|
+
var handleLinkClick = function handleLinkClick(url) {
|
|
27
|
+
if (url) {
|
|
28
|
+
window.open(url, '_blank', 'noopener,noreferrer');
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
// 渲染来源 icon
|
|
33
|
+
var renderSourceIcon = function renderSourceIcon(result) {
|
|
34
|
+
if (result.source === 'kb') {
|
|
35
|
+
// 知识库 icon
|
|
36
|
+
return /*#__PURE__*/React.createElement(CSECustomIcon, {
|
|
37
|
+
type: "iconzhishiku",
|
|
38
|
+
className: "source-icon"
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
// 网页来源,优先使用 logo
|
|
42
|
+
if (result.logo) {
|
|
43
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
44
|
+
src: result.logo,
|
|
45
|
+
alt: "source logo",
|
|
46
|
+
className: "source-icon source-logo"
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
// logo 为空时使用默认 icon
|
|
50
|
+
return /*#__PURE__*/React.createElement(CSECustomIcon, {
|
|
51
|
+
type: "icondiqiu",
|
|
52
|
+
className: "source-icon"
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
// 构建标题文本
|
|
57
|
+
var titleText = title || "\u641C\u7D22".concat(query, " \u627E\u5230").concat(results.length, "\u7BC7\u8D44\u6599");
|
|
58
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
59
|
+
className: "trace-v3-search-results"
|
|
60
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
61
|
+
className: "search-header",
|
|
62
|
+
onClick: handleToggle
|
|
63
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
64
|
+
className: "search-header-left"
|
|
65
|
+
}, /*#__PURE__*/React.createElement(CSECustomIcon, {
|
|
66
|
+
type: "icondiqiu",
|
|
67
|
+
className: "search-icon"
|
|
68
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
69
|
+
className: "search-title"
|
|
70
|
+
}, titleText)), /*#__PURE__*/React.createElement(CSECustomIcon, {
|
|
71
|
+
type: "iconchakangengduo",
|
|
72
|
+
className: classNames('collapse-icon', collapsed ? '' : 'collapse-icon-transform')
|
|
73
|
+
})), !collapsed && /*#__PURE__*/React.createElement("div", {
|
|
74
|
+
className: "search-results-list link-list"
|
|
75
|
+
}, results.map(function (result, index) {
|
|
76
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
77
|
+
key: result.id,
|
|
78
|
+
className: classNames('link-item', !result.url && 'link-item-no-url'),
|
|
79
|
+
onClick: function onClick() {
|
|
80
|
+
return handleLinkClick(result.url);
|
|
81
|
+
}
|
|
82
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
83
|
+
className: "link-number"
|
|
84
|
+
}, index + 1, "."), renderSourceIcon(result), /*#__PURE__*/React.createElement("div", {
|
|
85
|
+
className: "link-content"
|
|
86
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
87
|
+
className: "link-text"
|
|
88
|
+
}, result.title), result.snippet && /*#__PURE__*/React.createElement("div", {
|
|
89
|
+
className: "link-snippet"
|
|
90
|
+
}, result.snippet)));
|
|
91
|
+
})));
|
|
92
|
+
};
|
|
93
|
+
export default /*#__PURE__*/React.memo(SearchResults);
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SearchResults 搜索结果组件样式
|
|
3
|
+
* 展示联网搜索的结果列表
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
// ==================== 样式变量 ====================
|
|
7
|
+
$trace-gap: 4px;
|
|
8
|
+
$trace-small-radius: 2px;
|
|
9
|
+
$trace-margin-bottom: 8px;
|
|
10
|
+
$trace-collapse-duration: 0.2s;
|
|
11
|
+
$trace-collapse-timing: ease-in-out;
|
|
12
|
+
$trace-subtitle-color: #717579;
|
|
13
|
+
$trace-content-color: #474a52;
|
|
14
|
+
|
|
15
|
+
// ==================== SearchResults 搜索结果 ====================
|
|
16
|
+
.trace-v3-search-results {
|
|
17
|
+
background-color: #fff;
|
|
18
|
+
font-size: 12px;
|
|
19
|
+
|
|
20
|
+
.search-header {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: space-between;
|
|
24
|
+
padding: $trace-gap;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
user-select: none;
|
|
27
|
+
|
|
28
|
+
&:hover {
|
|
29
|
+
background-color: rgba(0, 0, 0, 2%);
|
|
30
|
+
border-radius: $trace-small-radius;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.search-header-left {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
gap: 6px;
|
|
37
|
+
flex: 1;
|
|
38
|
+
|
|
39
|
+
.search-icon {
|
|
40
|
+
width: 12px;
|
|
41
|
+
height: 12px;
|
|
42
|
+
font-size: 12px;
|
|
43
|
+
color: $trace-content-color;
|
|
44
|
+
flex-shrink: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.search-title {
|
|
48
|
+
color: $trace-content-color;
|
|
49
|
+
font-size: 12px;
|
|
50
|
+
font-weight: 400;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.collapse-icon {
|
|
55
|
+
transition: transform $trace-collapse-duration $trace-collapse-timing;
|
|
56
|
+
width: 12px;
|
|
57
|
+
height: 12px;
|
|
58
|
+
color: $trace-subtitle-color;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.collapse-icon-transform {
|
|
62
|
+
transform: rotate(180deg);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.search-results-list {
|
|
67
|
+
margin-top: $trace-gap;
|
|
68
|
+
padding-left: 12px;
|
|
69
|
+
padding-bottom: 4px;
|
|
70
|
+
|
|
71
|
+
.link-item {
|
|
72
|
+
margin-bottom: $trace-margin-bottom;
|
|
73
|
+
|
|
74
|
+
.link-number {
|
|
75
|
+
font-size: 12px;
|
|
76
|
+
color: #1b58f4;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.source-icon {
|
|
80
|
+
width: 14px;
|
|
81
|
+
height: 14px;
|
|
82
|
+
font-size: 14px;
|
|
83
|
+
color: $trace-content-color;
|
|
84
|
+
flex-shrink: 0;
|
|
85
|
+
margin-right: 4px;
|
|
86
|
+
align-self: flex-start;
|
|
87
|
+
margin-top: 3px; // 与 link-text 的行高(20px)对齐,(20px - 14px) / 2 = 3px
|
|
88
|
+
display: flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
|
|
91
|
+
&.source-logo {
|
|
92
|
+
object-fit: contain;
|
|
93
|
+
border-radius: 2px;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.link-content {
|
|
98
|
+
flex: 1;
|
|
99
|
+
padding-right: 10px;
|
|
100
|
+
|
|
101
|
+
.link-text {
|
|
102
|
+
font-size: 12px !important;
|
|
103
|
+
line-height: 20px;
|
|
104
|
+
color: #1b58f4;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.link-snippet {
|
|
108
|
+
font-size: 12px;
|
|
109
|
+
color: #999;
|
|
110
|
+
margin-top: 4px;
|
|
111
|
+
line-height: 18px;
|
|
112
|
+
overflow: hidden;
|
|
113
|
+
text-overflow: ellipsis;
|
|
114
|
+
display: box;
|
|
115
|
+
-webkit-line-clamp: 2;
|
|
116
|
+
line-clamp: 2;
|
|
117
|
+
-webkit-box-orient: vertical;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// 没有 URL 时的样式
|
|
122
|
+
&.link-item-no-url {
|
|
123
|
+
cursor: default;
|
|
124
|
+
|
|
125
|
+
.link-number {
|
|
126
|
+
color: $trace-content-color;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.link-content .link-text {
|
|
130
|
+
color: $trace-content-color !important;
|
|
131
|
+
cursor: default;
|
|
132
|
+
|
|
133
|
+
&:hover {
|
|
134
|
+
text-decoration: none;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// 覆盖通用 .link-list 样式,提高优先级
|
|
141
|
+
&.link-list .link-item {
|
|
142
|
+
.link-number {
|
|
143
|
+
font-size: 12px !important;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.link-text {
|
|
147
|
+
font-size: 12px !important;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TaskPlanning 任务规划组件
|
|
3
|
+
* 展示有序的任务计划列表
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import type { ITaskPlanningResult } from '../../../types';
|
|
7
|
+
export interface ITaskPlanningProps extends ITaskPlanningResult {
|
|
8
|
+
dialogId?: string;
|
|
9
|
+
ctx?: any;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: React.NamedExoticComponent<ITaskPlanningProps>;
|
|
12
|
+
export default _default;
|