@glodon-aiot/agent-cli-ui 3.1.0-beta.16 → 3.2.2-beta.0
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/dist/es/AgentClientUI.mjs +40 -39
- package/dist/es/Dialog/AgentChat/index.mjs +283 -264
- package/dist/es/Dialog/AgentChat/style.less.mjs +4 -0
- package/dist/es/Dialog/ConnectToNetwork/index.mjs +19 -18
- package/dist/es/Dialog/ConnectToNetwork/style.less.mjs +4 -0
- package/dist/es/Dialog/FileCard/index.mjs +22 -21
- package/dist/es/Dialog/FileCard/style.less.mjs +4 -0
- package/dist/es/Dialog/FilePreview/index.mjs +14 -13
- package/dist/es/Dialog/FilePreview/style.less.mjs +4 -0
- package/dist/es/Dialog/Greeting/index.mjs +5 -4
- package/dist/es/Dialog/Greeting/style.less.mjs +4 -0
- package/dist/es/Dialog/HistoryContent/index.mjs +6 -5
- package/dist/es/Dialog/HistoryContent/style.less.mjs +4 -0
- package/dist/es/Dialog/HistoryItem/index.mjs +127 -125
- package/dist/es/Dialog/HistoryItem/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeDoc/index.mjs +23 -22
- package/dist/es/Dialog/KnowledgeDoc/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/index.mjs +14 -13
- package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeList/index.mjs +29 -28
- package/dist/es/Dialog/KnowledgeList/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptManager/PromptList/PromptListItem.mjs +19 -19
- package/dist/es/Dialog/PromptManager/PromptList/PublicPromptList.mjs +17 -16
- package/dist/es/Dialog/PromptManager/PromptList/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptManager/index.mjs +17 -16
- package/dist/es/Dialog/PromptManager/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptSetting/index.mjs +32 -32
- package/dist/es/Dialog/PromptSetting/style.less.mjs +4 -0
- package/dist/es/Dialog/Recommend/RecommendItem.mjs +12 -11
- package/dist/es/Dialog/Recommend/index.mjs +23 -23
- package/dist/es/Dialog/Recommend/style.less.mjs +4 -0
- package/dist/es/Dialog/ReferCollapse/index.mjs +29 -28
- package/dist/es/Dialog/ReferCollapse/style.less.mjs +4 -0
- package/dist/es/Dialog/SearchReference/index.mjs +13 -12
- package/dist/es/Dialog/SearchReference/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionAction/index.mjs +30 -29
- package/dist/es/Dialog/SessionAction/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionList/index.mjs +51 -51
- package/dist/es/Dialog/SessionList/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +11 -10
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/SessionItem.mjs +15 -14
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/index.mjs +48 -47
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/index.mjs +9 -8
- package/dist/es/Dialog/SessionListDrawer/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRefer/ReferItem/index.mjs +26 -25
- package/dist/es/Dialog/SessionRefer/ReferItem/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRefer/index.mjs +21 -20
- package/dist/es/Dialog/SessionRefer/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRelated/index.mjs +18 -17
- package/dist/es/Dialog/SessionRelated/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/index.mjs +9 -8
- package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/index.mjs +117 -117
- package/dist/es/Dialog/UploadKnowledgeFiles/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadingPrompt/index.mjs +6 -5
- package/dist/es/Dialog/UploadingPrompt/style.less.mjs +4 -0
- package/dist/es/Dialog/index.mjs +58 -57
- package/dist/es/Dialog/style.less.mjs +4 -0
- package/dist/es/FileItem/index.mjs +23 -22
- package/dist/es/FileItem/style.less.mjs +4 -0
- package/dist/es/Footer/FooterWarning.mjs +14 -13
- package/dist/es/Footer/index.mjs +7 -6
- package/dist/es/Footer/style.less.mjs +4 -0
- package/dist/es/InputProgress/index.mjs +10 -9
- package/dist/es/InputProgress/style.less.mjs +4 -0
- package/dist/es/QuillEditor/index.mjs +34 -34
- package/dist/es/QuillEditor/style.less.mjs +4 -0
- package/dist/es/_virtual/_cloneBuffer.mjs +4 -0
- package/dist/es/_virtual/_commonjsHelpers.mjs +8 -0
- package/dist/es/_virtual/_nodeUtil.mjs +4 -0
- package/dist/es/_virtual/index.mjs +4 -0
- package/dist/es/_virtual/isBuffer.mjs +4 -0
- package/dist/es/_virtual/jsx-runtime.mjs +7 -0
- package/dist/es/_virtual/jsx-runtime2.mjs +4 -0
- package/dist/es/_virtual/lib.mjs +4 -0
- package/dist/es/_virtual/react-jsx-runtime.production.min.mjs +4 -0
- package/dist/es/_virtual/ua-parser.min.mjs +4 -0
- package/dist/es/components/Copy/index.mjs +21 -20
- package/dist/es/components/Copy/style.less.mjs +4 -0
- package/dist/es/components/JsonDisplay/index.mjs +5 -4
- package/dist/es/components/JsonDisplay/style.less.mjs +4 -0
- package/dist/es/components/Markdown/ATag/index.mjs +7 -7
- package/dist/es/components/Markdown/Code/index.mjs +33 -33
- package/dist/es/components/Markdown/Image/index.mjs +17 -16
- package/dist/es/components/Markdown/Video/index.mjs +13 -13
- package/dist/es/components/Markdown/index.mjs +36 -35
- package/dist/es/components/Markdown/style.less.mjs +4 -0
- package/dist/es/components/WebLink/index.mjs +9 -9
- package/dist/es/favicon.ico +0 -0
- package/dist/es/favicon2.ico +0 -0
- package/dist/es/font/font_4108228_4w5nlhafpte.js +1 -0
- package/dist/es/font/font_4439177_0sppkcnqiqgs.js +1 -0
- package/dist/es/font/gos-font.js +64 -0
- package/dist/es/images/empty.svg +40 -0
- package/dist/es/images/loading.gif +0 -0
- package/dist/es/images/logo.png +0 -0
- package/dist/es/images/map-example.png +0 -0
- package/dist/es/images/sketch.png +0 -0
- package/dist/es/index.html +43 -0
- package/dist/es/index.mjs +32 -26
- package/dist/es/logo192.png +0 -0
- package/dist/es/logo512.png +0 -0
- package/dist/es/manifest.json +25 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
- package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +201 -0
- package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +1087 -0
- package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +104 -0
- package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +568 -0
- package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +158 -0
- package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +847 -0
- package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +35 -0
- package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +226 -0
- package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +33 -0
- package/dist/es/node_modules/ahooks/es/useKeyPress/index.mjs +221 -0
- package/dist/es/node_modules/ahooks/es/useLatest/index.mjs +8 -0
- package/dist/es/node_modules/ahooks/es/useMemoizedFn/index.mjs +19 -0
- package/dist/es/node_modules/ahooks/es/useRafState/index.mjs +16 -0
- package/dist/es/node_modules/ahooks/es/useSize/index.mjs +34 -0
- package/dist/es/node_modules/ahooks/es/useUnmount/index.mjs +17 -0
- package/dist/es/node_modules/ahooks/es/useUnmountedRef/index.mjs +13 -0
- package/dist/es/node_modules/ahooks/es/utils/createEffectWithTarget.mjs +27 -0
- package/dist/es/node_modules/ahooks/es/utils/depsAreSame.mjs +11 -0
- package/dist/es/node_modules/ahooks/es/utils/depsEqual.mjs +7 -0
- package/dist/es/node_modules/ahooks/es/utils/domTarget.mjs +13 -0
- package/dist/es/node_modules/ahooks/es/utils/index.mjs +12 -0
- package/dist/es/node_modules/ahooks/es/utils/isAppleDevice.mjs +5 -0
- package/dist/es/node_modules/ahooks/es/utils/isBrowser.mjs +5 -0
- package/dist/es/node_modules/ahooks/es/utils/isDev.mjs +5 -0
- package/dist/es/node_modules/ahooks/es/utils/useDeepCompareWithTarget.mjs +11 -0
- package/dist/es/node_modules/ahooks/es/utils/useEffectWithTarget.mjs +7 -0
- package/dist/es/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.mjs +8 -0
- package/dist/es/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.mjs +7 -0
- package/dist/es/node_modules/antd/es/calendar/locale/zh_CN.mjs +4 -0
- package/dist/es/node_modules/antd/es/date-picker/locale/zh_CN.mjs +23 -0
- package/dist/es/node_modules/antd/es/locale/zh_CN.mjs +132 -0
- package/dist/es/node_modules/antd/es/time-picker/locale/zh_CN.mjs +8 -0
- package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +20 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +76 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +14 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +34 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +172 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +81 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +5 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +84 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +5 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/global/global.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/global/index.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +141 -0
- package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +7 -0
- package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +6 -0
- package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +22 -0
- package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +12 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +46 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +12 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +13 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +52 -0
- package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +10 -0
- package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +15 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +6 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +8 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +54 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +32 -0
- package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +19 -0
- package/dist/es/node_modules/classnames/index.mjs +42 -0
- package/dist/es/node_modules/comma-separated-tokens/index.mjs +13 -0
- package/dist/es/node_modules/copy-to-clipboard/index.mjs +46 -0
- package/dist/es/node_modules/devlop/lib/default.mjs +5 -0
- package/dist/es/node_modules/hast-util-from-dom/lib/index.mjs +93 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/create-h.mjs +126 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/index.mjs +8 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +4 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/index.mjs +12 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/aria.mjs +61 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/find.mjs +33 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/html.mjs +368 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/normalize.mjs +6 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/svg.mjs +566 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/create.mjs +14 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/defined-info.mjs +36 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/info.mjs +28 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/merge.mjs +10 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/schema.mjs +21 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xml.mjs +15 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/hast-util-from-html-isomorphic/lib/browser.mjs +16 -0
- package/dist/es/node_modules/hast-util-is-element/lib/index.mjs +61 -0
- package/dist/es/node_modules/hast-util-parse-selector/lib/index.mjs +20 -0
- package/dist/es/node_modules/hast-util-to-text/lib/index.mjs +223 -0
- package/dist/es/node_modules/katex/dist/katex.min.css.mjs +4 -0
- package/dist/es/node_modules/katex/dist/katex.mjs +11700 -0
- package/dist/es/node_modules/lodash/_Hash.mjs +22 -0
- package/dist/es/node_modules/lodash/_ListCache.mjs +22 -0
- package/dist/es/node_modules/lodash/_Map.mjs +6 -0
- package/dist/es/node_modules/lodash/_MapCache.mjs +22 -0
- package/dist/es/node_modules/lodash/_Stack.mjs +20 -0
- package/dist/es/node_modules/lodash/_Symbol.mjs +5 -0
- package/dist/es/node_modules/lodash/_Uint8Array.mjs +5 -0
- package/dist/es/node_modules/lodash/_apply.mjs +17 -0
- package/dist/es/node_modules/lodash/_arrayLikeKeys.mjs +21 -0
- package/dist/es/node_modules/lodash/_assignMergeValue.mjs +10 -0
- package/dist/es/node_modules/lodash/_assignValue.mjs +11 -0
- package/dist/es/node_modules/lodash/_assocIndexOf.mjs +12 -0
- package/dist/es/node_modules/lodash/_baseAssignValue.mjs +14 -0
- package/dist/es/node_modules/lodash/_baseCreate.mjs +17 -0
- package/dist/es/node_modules/lodash/_baseFor.mjs +5 -0
- package/dist/es/node_modules/lodash/_baseGetTag.mjs +11 -0
- package/dist/es/node_modules/lodash/_baseIsArguments.mjs +10 -0
- package/dist/es/node_modules/lodash/_baseIsNative.mjs +15 -0
- package/dist/es/node_modules/lodash/_baseIsTypedArray.mjs +13 -0
- package/dist/es/node_modules/lodash/_baseKeysIn.mjs +16 -0
- package/dist/es/node_modules/lodash/_baseMerge.mjs +22 -0
- package/dist/es/node_modules/lodash/_baseMergeDeep.mjs +33 -0
- package/dist/es/node_modules/lodash/_baseRest.mjs +11 -0
- package/dist/es/node_modules/lodash/_baseSetToString.mjs +14 -0
- package/dist/es/node_modules/lodash/_baseTimes.mjs +9 -0
- package/dist/es/node_modules/lodash/_baseTrim.mjs +9 -0
- package/dist/es/node_modules/lodash/_baseUnary.mjs +9 -0
- package/dist/es/node_modules/lodash/_cloneArrayBuffer.mjs +10 -0
- package/dist/es/node_modules/lodash/_cloneBuffer.mjs +17 -0
- package/dist/es/node_modules/lodash/_cloneTypedArray.mjs +10 -0
- package/dist/es/node_modules/lodash/_copyArray.mjs +10 -0
- package/dist/es/node_modules/lodash/_copyObject.mjs +16 -0
- package/dist/es/node_modules/lodash/_coreJsData.mjs +5 -0
- package/dist/es/node_modules/lodash/_createAssigner.mjs +17 -0
- package/dist/es/node_modules/lodash/_createBaseFor.mjs +14 -0
- package/dist/es/node_modules/lodash/_defineProperty.mjs +11 -0
- package/dist/es/node_modules/lodash/_freeGlobal.mjs +5 -0
- package/dist/es/node_modules/lodash/_getMapData.mjs +10 -0
- package/dist/es/node_modules/lodash/_getNative.mjs +11 -0
- package/dist/es/node_modules/lodash/_getPrototype.mjs +5 -0
- package/dist/es/node_modules/lodash/_getRawTag.mjs +16 -0
- package/dist/es/node_modules/lodash/_getValue.mjs +7 -0
- package/dist/es/node_modules/lodash/_hashClear.mjs +9 -0
- package/dist/es/node_modules/lodash/_hashDelete.mjs +8 -0
- package/dist/es/node_modules/lodash/_hashGet.mjs +14 -0
- package/dist/es/node_modules/lodash/_hashHas.mjs +10 -0
- package/dist/es/node_modules/lodash/_hashSet.mjs +10 -0
- package/dist/es/node_modules/lodash/_initCloneObject.mjs +11 -0
- package/dist/es/node_modules/lodash/_isIndex.mjs +9 -0
- package/dist/es/node_modules/lodash/_isIterateeCall.mjs +15 -0
- package/dist/es/node_modules/lodash/_isKeyable.mjs +8 -0
- package/dist/es/node_modules/lodash/_isMasked.mjs +12 -0
- package/dist/es/node_modules/lodash/_isPrototype.mjs +9 -0
- package/dist/es/node_modules/lodash/_listCacheClear.mjs +7 -0
- package/dist/es/node_modules/lodash/_listCacheDelete.mjs +13 -0
- package/dist/es/node_modules/lodash/_listCacheGet.mjs +10 -0
- package/dist/es/node_modules/lodash/_listCacheHas.mjs +9 -0
- package/dist/es/node_modules/lodash/_listCacheSet.mjs +10 -0
- package/dist/es/node_modules/lodash/_mapCacheClear.mjs +15 -0
- package/dist/es/node_modules/lodash/_mapCacheDelete.mjs +10 -0
- package/dist/es/node_modules/lodash/_mapCacheGet.mjs +9 -0
- package/dist/es/node_modules/lodash/_mapCacheHas.mjs +9 -0
- package/dist/es/node_modules/lodash/_mapCacheSet.mjs +10 -0
- package/dist/es/node_modules/lodash/_nativeCreate.mjs +5 -0
- package/dist/es/node_modules/lodash/_nativeKeysIn.mjs +11 -0
- package/dist/es/node_modules/lodash/_nodeUtil.mjs +17 -0
- package/dist/es/node_modules/lodash/_objectToString.mjs +8 -0
- package/dist/es/node_modules/lodash/_overArg.mjs +9 -0
- package/dist/es/node_modules/lodash/_overRest.mjs +16 -0
- package/dist/es/node_modules/lodash/_root.mjs +5 -0
- package/dist/es/node_modules/lodash/_safeGet.mjs +8 -0
- package/dist/es/node_modules/lodash/_setToString.mjs +6 -0
- package/dist/es/node_modules/lodash/_shortOut.mjs +17 -0
- package/dist/es/node_modules/lodash/_stackClear.mjs +9 -0
- package/dist/es/node_modules/lodash/_stackDelete.mjs +8 -0
- package/dist/es/node_modules/lodash/_stackGet.mjs +7 -0
- package/dist/es/node_modules/lodash/_stackHas.mjs +7 -0
- package/dist/es/node_modules/lodash/_stackSet.mjs +18 -0
- package/dist/es/node_modules/lodash/_toSource.mjs +18 -0
- package/dist/es/node_modules/lodash/_trimmedEndIndex.mjs +10 -0
- package/dist/es/node_modules/lodash/constant.mjs +9 -0
- package/dist/es/node_modules/lodash/debounce.mjs +57 -0
- package/dist/es/node_modules/lodash/eq.mjs +7 -0
- package/dist/es/node_modules/lodash/identity.mjs +7 -0
- package/dist/es/node_modules/lodash/isArguments.mjs +10 -0
- package/dist/es/node_modules/lodash/isArray.mjs +4 -0
- package/dist/es/node_modules/lodash/isArrayLike.mjs +10 -0
- package/dist/es/node_modules/lodash/isArrayLikeObject.mjs +10 -0
- package/dist/es/node_modules/lodash/isBuffer.mjs +12 -0
- package/dist/es/node_modules/lodash/isFunction.mjs +13 -0
- package/dist/es/node_modules/lodash/isLength.mjs +8 -0
- package/dist/es/node_modules/lodash/isObject.mjs +8 -0
- package/dist/es/node_modules/lodash/isObjectLike.mjs +7 -0
- package/dist/es/node_modules/lodash/isPlainObject.mjs +17 -0
- package/dist/es/node_modules/lodash/isSymbol.mjs +10 -0
- package/dist/es/node_modules/lodash/isTypedArray.mjs +7 -0
- package/dist/es/node_modules/lodash/keysIn.mjs +11 -0
- package/dist/es/node_modules/lodash/merge.mjs +10 -0
- package/dist/es/node_modules/lodash/now.mjs +7 -0
- package/dist/es/node_modules/lodash/stubFalse.mjs +7 -0
- package/dist/es/node_modules/lodash/toNumber.mjs +23 -0
- package/dist/es/node_modules/lodash/toPlainObject.mjs +10 -0
- package/dist/es/node_modules/longest-streak/index.mjs +12 -0
- package/dist/es/node_modules/mdast-util-math/lib/index.mjs +170 -0
- package/dist/es/node_modules/micromark-extension-math/lib/math-flow.mjs +76 -0
- package/dist/es/node_modules/micromark-extension-math/lib/math-text.mjs +48 -0
- package/dist/es/node_modules/micromark-extension-math/lib/syntax.mjs +15 -0
- package/dist/es/node_modules/micromark-factory-space/index.mjs +15 -0
- package/dist/es/node_modules/micromark-util-character/index.mjs +10 -0
- package/dist/es/node_modules/object-assign/index.mjs +34 -0
- package/dist/es/node_modules/rc-pagination/es/locale/zh_CN.mjs +18 -0
- package/dist/es/node_modules/rc-picker/es/locale/zh_CN.mjs +31 -0
- package/dist/es/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +45 -0
- package/dist/es/node_modules/react/jsx-runtime.mjs +8 -0
- package/dist/es/node_modules/react-device-detect/dist/lib.mjs +723 -0
- package/dist/es/node_modules/react-fast-compare/index.mjs +78 -0
- package/dist/es/node_modules/react-infinite-scroll-component/dist/index.es.mjs +188 -0
- package/dist/es/node_modules/react-quill/dist/quill.snow.css.mjs +4 -0
- package/dist/es/node_modules/rehype-katex/lib/index.mjs +83 -0
- package/dist/es/node_modules/remark-math/lib/index.mjs +13 -0
- package/dist/es/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.mjs +294 -0
- package/dist/es/node_modules/space-separated-tokens/index.mjs +7 -0
- package/dist/es/node_modules/toggle-selection/index.mjs +25 -0
- package/dist/es/node_modules/tslib/tslib.es6.mjs +64 -0
- package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +120 -0
- package/dist/es/node_modules/unist-util-find-after/lib/index.mjs +32 -0
- package/dist/es/node_modules/unist-util-is/lib/index.mjs +81 -0
- package/dist/es/node_modules/unist-util-visit-parents/lib/color.mjs +6 -0
- package/dist/es/node_modules/unist-util-visit-parents/lib/index.mjs +56 -0
- package/dist/es/node_modules/web-namespaces/index.mjs +11 -0
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/native.mjs +4 -0
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/rng.mjs +13 -0
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/stringify.mjs +9 -0
- package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/v4.mjs +23 -0
- package/dist/es/robots.txt +3 -0
- package/dist/es/style.less.mjs +4 -0
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/favicon2.ico +0 -0
- package/dist/lib/font/font_4108228_4w5nlhafpte.js +1 -0
- package/dist/lib/font/font_4439177_0sppkcnqiqgs.js +1 -0
- package/dist/lib/font/gos-font.js +64 -0
- package/dist/lib/images/empty.svg +40 -0
- package/dist/lib/images/loading.gif +0 -0
- package/dist/lib/images/logo.png +0 -0
- package/dist/lib/images/map-example.png +0 -0
- package/dist/lib/images/sketch.png +0 -0
- package/dist/lib/index.html +43 -0
- package/dist/lib/index.js +311 -5
- package/dist/lib/logo192.png +0 -0
- package/dist/lib/logo512.png +0 -0
- package/dist/lib/manifest.json +25 -0
- package/dist/lib/robots.txt +3 -0
- package/dist/src/Dialog/HistoryItem/index.d.ts +1 -0
- package/dist/src/types.d.ts +1 -1
- package/package.json +6 -24
- package/dist/es/src/style.css +0 -1
- package/dist/es/src/style10.css +0 -1
- package/dist/es/src/style11.css +0 -1
- package/dist/es/src/style12.css +0 -1
- package/dist/es/src/style13.css +0 -1
- package/dist/es/src/style14.css +0 -1
- package/dist/es/src/style15.css +0 -1
- package/dist/es/src/style16.css +0 -1
- package/dist/es/src/style17.css +0 -1
- package/dist/es/src/style18.css +0 -1
- package/dist/es/src/style19.css +0 -1
- package/dist/es/src/style2.css +0 -1
- package/dist/es/src/style20.css +0 -1
- package/dist/es/src/style21.css +0 -1
- package/dist/es/src/style22.css +0 -1
- package/dist/es/src/style23.css +0 -1
- package/dist/es/src/style24.css +0 -0
- package/dist/es/src/style25.css +0 -1
- package/dist/es/src/style26.css +0 -1
- package/dist/es/src/style27.css +0 -1
- package/dist/es/src/style28.css +0 -1
- package/dist/es/src/style29.css +0 -1
- package/dist/es/src/style3.css +0 -1
- package/dist/es/src/style30.css +0 -1
- package/dist/es/src/style31.css +0 -1
- package/dist/es/src/style32.css +0 -1
- package/dist/es/src/style33.css +0 -1
- package/dist/es/src/style4.css +0 -1
- package/dist/es/src/style5.css +0 -1
- package/dist/es/src/style6.css +0 -1
- package/dist/es/src/style7.css +0 -1
- package/dist/es/src/style8.css +0 -1
- package/dist/es/src/style9.css +0 -1
- package/dist/lib/index.css +0 -1
|
@@ -1,96 +1,98 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { memo as d, useContext as
|
|
1
|
+
import { jsxs as r, jsx as e } from "../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { memo as d, useContext as re, useState as ae } from "react";
|
|
3
3
|
import c from "../../InputProgress/index.mjs";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { IHistoryRole as
|
|
7
|
-
import
|
|
8
|
-
import { Popover as
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
import
|
|
12
|
-
import
|
|
4
|
+
import oe from "../SessionRefer/index.mjs";
|
|
5
|
+
import de from "../SessionAction/index.mjs";
|
|
6
|
+
import { IHistoryRole as Q, IThinkingStatus as q } from "@glodon-aiot/apis";
|
|
7
|
+
import ce from "../../FileItem/index.mjs";
|
|
8
|
+
import { Popover as pe, Space as D, Button as V, Row as me, Col as ue, Collapse as W, Divider as he, message as $ } from "antd";
|
|
9
|
+
import ge from "../SearchReference/index.mjs";
|
|
10
|
+
import "./style.less.mjs";
|
|
11
|
+
import Ne from "../HistoryContent/index.mjs";
|
|
12
|
+
import fe from "../../components/Markdown/index.mjs";
|
|
13
|
+
import ye from "../../node_modules/classnames/index.mjs";
|
|
13
14
|
import p from "../../Iconfont/index.mjs";
|
|
14
|
-
import { CheckOutlined as
|
|
15
|
+
import { CheckOutlined as G, CloseOutlined as K, LoadingOutlined as Ce } from "@ant-design/icons";
|
|
15
16
|
import m from "../../components/JsonDisplay/index.mjs";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import { escapeSlash as
|
|
22
|
-
const
|
|
17
|
+
import Le from "../../context.mjs";
|
|
18
|
+
import ve from "../SessionRelated/index.mjs";
|
|
19
|
+
import Re from "../ReferCollapse/index.mjs";
|
|
20
|
+
import Se from "../../node_modules/copy-to-clipboard/index.mjs";
|
|
21
|
+
import be from "./think.svg.mjs";
|
|
22
|
+
import { escapeSlash as Ee } from "../../utils/index.mjs";
|
|
23
|
+
const ke = (o) => {
|
|
23
24
|
if (!o)
|
|
24
25
|
return o;
|
|
25
26
|
try {
|
|
26
27
|
return JSON.parse(o);
|
|
27
|
-
} catch (
|
|
28
|
+
} catch (l) {
|
|
28
29
|
return o;
|
|
29
30
|
}
|
|
30
|
-
},
|
|
31
|
-
d(
|
|
32
|
-
const
|
|
33
|
-
d(
|
|
31
|
+
}, Te = d(ge), X = d(oe), C = d(fe);
|
|
32
|
+
d(Ne);
|
|
33
|
+
const Ae = d(ce);
|
|
34
|
+
d(Re);
|
|
34
35
|
const u = (o) => {
|
|
35
36
|
if (!o)
|
|
36
37
|
return !1;
|
|
37
38
|
try {
|
|
38
|
-
const
|
|
39
|
-
return !(
|
|
40
|
-
} catch (
|
|
39
|
+
const l = JSON.parse(o);
|
|
40
|
+
return !(l != null && l.code && (l.code < 200 || l.code > 300));
|
|
41
|
+
} catch (l) {
|
|
41
42
|
return !0;
|
|
42
43
|
}
|
|
43
|
-
},
|
|
44
|
-
var
|
|
45
|
-
const
|
|
44
|
+
}, Y = (o) => {
|
|
45
|
+
var n;
|
|
46
|
+
const l = JSON.parse(JSON.stringify(o)) || [], a = (n = l == null ? void 0 : l.pop()) == null ? void 0 : n.pop();
|
|
46
47
|
return a ? (a == null ? void 0 : a.type) === "BEFORE_CALL" || (a == null ? void 0 : a.type) === "FUNCTION_CALL" : !1;
|
|
47
|
-
},
|
|
48
|
-
var S, b, E, k, T, A, x,
|
|
48
|
+
}, Ye = (o) => {
|
|
49
|
+
var S, b, E, k, T, A, O, x, F, _;
|
|
49
50
|
const {
|
|
50
|
-
application:
|
|
51
|
+
application: l,
|
|
51
52
|
currentSession: a,
|
|
52
|
-
history:
|
|
53
|
+
history: n,
|
|
53
54
|
isLastHistory: h,
|
|
54
|
-
onRelatedClick:
|
|
55
|
-
onAgainClick:
|
|
56
|
-
isLoading:
|
|
55
|
+
onRelatedClick: Z,
|
|
56
|
+
onAgainClick: ee,
|
|
57
|
+
isLoading: Oe,
|
|
57
58
|
docViewerUrl: g,
|
|
58
|
-
onEditClick: N
|
|
59
|
+
onEditClick: N,
|
|
60
|
+
actions: ne = !0
|
|
59
61
|
} = o, {
|
|
60
62
|
debug: L,
|
|
61
63
|
transform: i,
|
|
62
64
|
popupContainer: f
|
|
63
|
-
} =
|
|
64
|
-
Panel:
|
|
65
|
-
} =
|
|
66
|
-
|
|
65
|
+
} = re(Le), v = n.role === Q.User, R = n.role === Q.Robot, {
|
|
66
|
+
Panel: te
|
|
67
|
+
} = W, [y, ie] = ae(!0), le = () => {
|
|
68
|
+
$.config({
|
|
67
69
|
getContainer: () => (f == null ? void 0 : f.current) || document.body
|
|
68
|
-
}),
|
|
70
|
+
}), Se(n.content), $.success("复制成功");
|
|
69
71
|
};
|
|
70
|
-
return /* @__PURE__ */
|
|
71
|
-
className:
|
|
72
|
+
return /* @__PURE__ */ r("div", {
|
|
73
|
+
className: ye({
|
|
72
74
|
"history-item": !0,
|
|
73
75
|
"history-item__user": v,
|
|
74
76
|
"history-item__bot": R
|
|
75
77
|
}),
|
|
76
|
-
children: [v && /* @__PURE__ */
|
|
78
|
+
children: [v && /* @__PURE__ */ r("div", {
|
|
77
79
|
className: "history-item-user",
|
|
78
80
|
children: [/* @__PURE__ */ e("div", {
|
|
79
81
|
className: "item-user-panel",
|
|
80
|
-
children: /* @__PURE__ */ e(
|
|
82
|
+
children: /* @__PURE__ */ e(pe, {
|
|
81
83
|
placement: "topLeft",
|
|
82
84
|
overlayStyle: {
|
|
83
85
|
padding: 4
|
|
84
86
|
},
|
|
85
87
|
overlayClassName: "session-item-overlay-popover",
|
|
86
|
-
getPopupContainer: (
|
|
87
|
-
content: i != null && i.userEdit || i != null && i.userCopy ? /* @__PURE__ */
|
|
88
|
+
getPopupContainer: (t) => t.parentNode,
|
|
89
|
+
content: i != null && i.userEdit || i != null && i.userCopy ? /* @__PURE__ */ r(D, {
|
|
88
90
|
className: "item-user-popover",
|
|
89
91
|
size: 4,
|
|
90
92
|
children: [(i == null ? void 0 : i.userEdit) && /* @__PURE__ */ e("div", {
|
|
91
93
|
className: "user-pannel-item",
|
|
92
|
-
onClick: () => N == null ? void 0 : N(
|
|
93
|
-
children: /* @__PURE__ */ e(
|
|
94
|
+
onClick: () => N == null ? void 0 : N(n.content),
|
|
95
|
+
children: /* @__PURE__ */ e(V, {
|
|
94
96
|
type: "link",
|
|
95
97
|
size: "small",
|
|
96
98
|
icon: /* @__PURE__ */ e(p, {
|
|
@@ -99,8 +101,8 @@ const u = (o) => {
|
|
|
99
101
|
})
|
|
100
102
|
}), (i == null ? void 0 : i.userCopy) && /* @__PURE__ */ e("div", {
|
|
101
103
|
className: "user-pannel-item",
|
|
102
|
-
onClick:
|
|
103
|
-
children: /* @__PURE__ */ e(
|
|
104
|
+
onClick: le,
|
|
105
|
+
children: /* @__PURE__ */ e(V, {
|
|
104
106
|
type: "link",
|
|
105
107
|
size: "small",
|
|
106
108
|
icon: /* @__PURE__ */ e(p, {
|
|
@@ -118,77 +120,77 @@ const u = (o) => {
|
|
|
118
120
|
className: "item-user-content",
|
|
119
121
|
children: /* @__PURE__ */ e(C, {
|
|
120
122
|
showLatex: !1,
|
|
121
|
-
children:
|
|
123
|
+
children: Ee(n.content)
|
|
122
124
|
})
|
|
123
125
|
})
|
|
124
126
|
})
|
|
125
127
|
})
|
|
126
128
|
}), /* @__PURE__ */ e("div", {
|
|
127
129
|
className: "item-user-file",
|
|
128
|
-
children: /* @__PURE__ */ e(
|
|
130
|
+
children: /* @__PURE__ */ e(me, {
|
|
129
131
|
gutter: [12, 12],
|
|
130
132
|
justify: "end",
|
|
131
133
|
wrap: !0,
|
|
132
|
-
children: (S =
|
|
134
|
+
children: (S = n.files) == null ? void 0 : S.map((t) => /* @__PURE__ */ e(ue, {
|
|
133
135
|
className: "user-file-col",
|
|
134
|
-
children: /* @__PURE__ */ e(
|
|
136
|
+
children: /* @__PURE__ */ e(Ae, {
|
|
135
137
|
docViewerUrl: g,
|
|
136
138
|
currentSession: a,
|
|
137
|
-
file:
|
|
139
|
+
file: t
|
|
138
140
|
})
|
|
139
|
-
},
|
|
141
|
+
}, t.id))
|
|
140
142
|
})
|
|
141
143
|
})]
|
|
142
144
|
}), R && /* @__PURE__ */ e("div", {
|
|
143
145
|
className: "history-item-bot",
|
|
144
|
-
children: /* @__PURE__ */
|
|
146
|
+
children: /* @__PURE__ */ r("div", {
|
|
145
147
|
className: "bot-content-wrapper",
|
|
146
|
-
children: [
|
|
148
|
+
children: [l.type === 2 && /* @__PURE__ */ r("div", {
|
|
147
149
|
className: "item-bot-plugin",
|
|
148
|
-
children: [/* @__PURE__ */ e(
|
|
150
|
+
children: [/* @__PURE__ */ e(W, {
|
|
149
151
|
ghost: !0,
|
|
150
152
|
expandIconPosition: "right",
|
|
151
|
-
children: (b =
|
|
152
|
-
var I,
|
|
153
|
-
return /* @__PURE__ */
|
|
153
|
+
children: (b = n.actions) == null ? void 0 : b.map((t, se) => {
|
|
154
|
+
var I, U, z, j, B, w, M, H, J, P;
|
|
155
|
+
return /* @__PURE__ */ r(te, {
|
|
154
156
|
collapsible: L ? "header" : "icon",
|
|
155
157
|
showArrow: L,
|
|
156
|
-
header: /* @__PURE__ */
|
|
158
|
+
header: /* @__PURE__ */ r(D, {
|
|
157
159
|
size: 8,
|
|
158
160
|
style: {
|
|
159
161
|
width: "100%"
|
|
160
162
|
},
|
|
161
|
-
children: [/* @__PURE__ */
|
|
163
|
+
children: [/* @__PURE__ */ r("span", {
|
|
162
164
|
className: "bot-plugin-status",
|
|
163
|
-
children: [(
|
|
165
|
+
children: [(t[t.length - 1].type === "RESULT" || t[t.length - 1].type === "AFTER_CALL") && u((I = t.find((s) => s.type === "RESULT")) == null ? void 0 : I.data.result) && /* @__PURE__ */ e("span", {
|
|
164
166
|
className: "plugin-status-success",
|
|
165
|
-
children: /* @__PURE__ */ e($, {})
|
|
166
|
-
}), n[n.length - 1].type === "ABORT" && /* @__PURE__ */ e("span", {
|
|
167
|
-
className: "plugin-status-error",
|
|
168
167
|
children: /* @__PURE__ */ e(G, {})
|
|
169
|
-
}),
|
|
168
|
+
}), t[t.length - 1].type === "ABORT" && /* @__PURE__ */ e("span", {
|
|
170
169
|
className: "plugin-status-error",
|
|
171
|
-
children: /* @__PURE__ */ e(
|
|
172
|
-
}), (
|
|
170
|
+
children: /* @__PURE__ */ e(K, {})
|
|
171
|
+
}), (t[t.length - 1].type === "RESULT" || t[t.length - 1].type === "AFTER_CALL") && !u((U = t.find((s) => s.type === "RESULT")) == null ? void 0 : U.data.result) && /* @__PURE__ */ e("span", {
|
|
172
|
+
className: "plugin-status-error",
|
|
173
|
+
children: /* @__PURE__ */ e(K, {})
|
|
174
|
+
}), (t[t.length - 1].type === "BEFORE_CALL" || t[t.length - 1].type === "FUNCTION_CALL") && /* @__PURE__ */ e("span", {
|
|
173
175
|
className: "plugin-status-loading",
|
|
174
|
-
children: /* @__PURE__ */ e(
|
|
176
|
+
children: /* @__PURE__ */ e(Ce, {})
|
|
175
177
|
})]
|
|
176
178
|
}), /* @__PURE__ */ e("span", {
|
|
177
179
|
className: "bot-plugin-title",
|
|
178
|
-
children: (
|
|
180
|
+
children: (z = t[t.length - 1].data) == null ? void 0 : z.pluginName
|
|
179
181
|
}), /* @__PURE__ */ e("span", {
|
|
180
182
|
className: "bot-plugin-action",
|
|
181
|
-
children: (
|
|
182
|
-
}), (
|
|
183
|
+
children: (j = t[t.length - 1].data) == null ? void 0 : j.funcName
|
|
184
|
+
}), (t[t.length - 1].type === "BEFORE_CALL" || t[t.length - 1].type === "FUNCTION_CALL") && /* @__PURE__ */ e("span", {
|
|
183
185
|
className: "bot-plugin-result",
|
|
184
186
|
children: "执行中"
|
|
185
|
-
}), (
|
|
187
|
+
}), (t[t.length - 1].type === "RESULT" || t[t.length - 1].type === "AFTER_CALL") && u((B = t.find((s) => s.type === "RESULT")) == null ? void 0 : B.data.result) && /* @__PURE__ */ e("span", {
|
|
186
188
|
className: "bot-plugin-result",
|
|
187
189
|
children: "执行成功"
|
|
188
|
-
}), (
|
|
190
|
+
}), (t[t.length - 1].type === "RESULT" || t[t.length - 1].type === "AFTER_CALL") && !u((w = t.find((s) => s.type === "RESULT")) == null ? void 0 : w.data.result) && /* @__PURE__ */ e("span", {
|
|
189
191
|
className: "bot-plugin-result",
|
|
190
192
|
children: "执行失败"
|
|
191
|
-
}),
|
|
193
|
+
}), t[t.length - 1].type === "ABORT" && /* @__PURE__ */ e("span", {
|
|
192
194
|
className: "bot-plugin-result",
|
|
193
195
|
children: "执行中止"
|
|
194
196
|
})]
|
|
@@ -199,7 +201,7 @@ const u = (o) => {
|
|
|
199
201
|
}), /* @__PURE__ */ e("div", {
|
|
200
202
|
className: "bot-plugin-json",
|
|
201
203
|
children: /* @__PURE__ */ e(m, {
|
|
202
|
-
josn: (
|
|
204
|
+
josn: (M = t.find((s) => s.type === "BEFORE_CALL")) == null ? void 0 : M.data.thought
|
|
203
205
|
})
|
|
204
206
|
}), /* @__PURE__ */ e("div", {
|
|
205
207
|
className: "bot-plugin-content",
|
|
@@ -207,7 +209,7 @@ const u = (o) => {
|
|
|
207
209
|
}), /* @__PURE__ */ e("div", {
|
|
208
210
|
className: "bot-plugin-json",
|
|
209
211
|
children: /* @__PURE__ */ e(m, {
|
|
210
|
-
josn: (
|
|
212
|
+
josn: (H = t.find((s) => s.type === "BEFORE_CALL")) == null ? void 0 : H.data.parameters
|
|
211
213
|
})
|
|
212
214
|
}), /* @__PURE__ */ e("div", {
|
|
213
215
|
className: "bot-plugin-content",
|
|
@@ -215,7 +217,7 @@ const u = (o) => {
|
|
|
215
217
|
}), /* @__PURE__ */ e("div", {
|
|
216
218
|
className: "bot-plugin-json",
|
|
217
219
|
children: /* @__PURE__ */ e(m, {
|
|
218
|
-
josn: (
|
|
220
|
+
josn: (J = t.find((s) => s.type === "BEFORE_CALL")) == null ? void 0 : J.data.requestBody
|
|
219
221
|
})
|
|
220
222
|
}), /* @__PURE__ */ e("div", {
|
|
221
223
|
className: "bot-plugin-content",
|
|
@@ -223,45 +225,45 @@ const u = (o) => {
|
|
|
223
225
|
}), /* @__PURE__ */ e("div", {
|
|
224
226
|
className: "bot-plugin-json",
|
|
225
227
|
children: /* @__PURE__ */ e(m, {
|
|
226
|
-
josn:
|
|
228
|
+
josn: ke((P = t.find((s) => s.type === "RESULT")) == null ? void 0 : P.data.result)
|
|
227
229
|
})
|
|
228
230
|
})]
|
|
229
|
-
},
|
|
231
|
+
}, se);
|
|
230
232
|
})
|
|
231
|
-
}),
|
|
233
|
+
}), n.isLoading && /* @__PURE__ */ e("div", {
|
|
232
234
|
className: "history-input-progress",
|
|
233
235
|
style: {
|
|
234
236
|
padding: "4px 0"
|
|
235
237
|
},
|
|
236
|
-
children:
|
|
238
|
+
children: Y(n.actions) ? null : /* @__PURE__ */ e(c, {
|
|
237
239
|
size: 4,
|
|
238
240
|
text: "思考中"
|
|
239
241
|
})
|
|
240
242
|
})]
|
|
241
|
-
}), /* @__PURE__ */ e("div", {
|
|
243
|
+
}), !!((E = n.searchReference) != null && E.length) && /* @__PURE__ */ e("div", {
|
|
242
244
|
className: "item-bot-net",
|
|
243
|
-
children: /* @__PURE__ */ e(
|
|
244
|
-
history:
|
|
245
|
+
children: /* @__PURE__ */ e(Te, {
|
|
246
|
+
history: n
|
|
245
247
|
})
|
|
246
|
-
}), (
|
|
247
|
-
history:
|
|
248
|
+
}), (k = n == null ? void 0 : n.reference) != null && k.length && ((T = i == null ? void 0 : i.reference) != null && T.referenceFirst) ? /* @__PURE__ */ e(X, {
|
|
249
|
+
history: n,
|
|
248
250
|
docViewerUrl: g
|
|
249
|
-
}) : null, /* @__PURE__ */
|
|
251
|
+
}) : null, /* @__PURE__ */ r("div", {
|
|
250
252
|
className: "item-bot-content",
|
|
251
|
-
children: [/* @__PURE__ */
|
|
253
|
+
children: [(n == null ? void 0 : n.reasoningContent) && /* @__PURE__ */ r("div", {
|
|
252
254
|
className: "content-think",
|
|
253
|
-
children: [(
|
|
255
|
+
children: [(n == null ? void 0 : n.reasoningContent) && /* @__PURE__ */ r("div", {
|
|
254
256
|
className: "think-top",
|
|
255
257
|
onClick: () => {
|
|
256
|
-
|
|
258
|
+
ie(!y);
|
|
257
259
|
},
|
|
258
260
|
children: [/* @__PURE__ */ e("img", {
|
|
259
|
-
src:
|
|
261
|
+
src: be,
|
|
260
262
|
alt: ""
|
|
261
|
-
}), (
|
|
263
|
+
}), (n == null ? void 0 : n.reasoningContent) && !(n != null && n.content) && /* @__PURE__ */ e("span", {
|
|
262
264
|
children: "我正在推理思考…"
|
|
263
|
-
}), (
|
|
264
|
-
children: ["已完成推理(用时 ", (
|
|
265
|
+
}), (n == null ? void 0 : n.reasoningContent) && n.content && /* @__PURE__ */ r("span", {
|
|
266
|
+
children: ["已完成推理(用时 ", (n == null ? void 0 : n.thinkingSecs) || 0, " 秒)"]
|
|
265
267
|
}), /* @__PURE__ */ e("span", {
|
|
266
268
|
className: "think-action",
|
|
267
269
|
children: y ? /* @__PURE__ */ e(p, {
|
|
@@ -276,58 +278,58 @@ const u = (o) => {
|
|
|
276
278
|
}
|
|
277
279
|
})
|
|
278
280
|
})]
|
|
279
|
-
}), !!((
|
|
281
|
+
}), !!((A = n == null ? void 0 : n.reasoningContent) != null && A.trim()) && y && /* @__PURE__ */ r("div", {
|
|
280
282
|
className: "think-bottom",
|
|
281
|
-
children: [/* @__PURE__ */
|
|
283
|
+
children: [/* @__PURE__ */ r("div", {
|
|
282
284
|
className: "bottom-left",
|
|
283
|
-
children: [(
|
|
285
|
+
children: [(n == null ? void 0 : n.thinkingStatus) === q.Start && /* @__PURE__ */ e("div", {
|
|
284
286
|
className: "thinking"
|
|
285
|
-
}), (
|
|
287
|
+
}), (n == null ? void 0 : n.thinkingStatus) === q.End && /* @__PURE__ */ e("div", {
|
|
286
288
|
className: "thinked",
|
|
287
|
-
children: /* @__PURE__ */ e(
|
|
289
|
+
children: /* @__PURE__ */ e(G, {})
|
|
288
290
|
})]
|
|
289
291
|
}), /* @__PURE__ */ e("div", {
|
|
290
292
|
className: "bottom-right",
|
|
291
293
|
children: /* @__PURE__ */ e(C, {
|
|
292
|
-
children: (
|
|
294
|
+
children: (n == null ? void 0 : n.reasoningContent) || ""
|
|
293
295
|
})
|
|
294
296
|
})]
|
|
295
297
|
})]
|
|
296
298
|
}), /* @__PURE__ */ e(C, {
|
|
297
|
-
children:
|
|
299
|
+
children: n.content
|
|
298
300
|
})]
|
|
299
|
-
}), (
|
|
300
|
-
history:
|
|
301
|
+
}), (O = n == null ? void 0 : n.reference) != null && O.length && !((x = i == null ? void 0 : i.reference) != null && x.referenceFirst) ? /* @__PURE__ */ e(X, {
|
|
302
|
+
history: n,
|
|
301
303
|
docViewerUrl: g
|
|
302
|
-
}) : null,
|
|
304
|
+
}) : null, n.isRelatedQuestion && h ? /* @__PURE__ */ e("div", {
|
|
303
305
|
style: {
|
|
304
306
|
paddingBottom: 12
|
|
305
307
|
},
|
|
306
308
|
children: /* @__PURE__ */ e(c, {
|
|
307
309
|
size: 4
|
|
308
310
|
})
|
|
309
|
-
}) : null,
|
|
311
|
+
}) : null, n.isRelateLoading && /* @__PURE__ */ e("div", {
|
|
310
312
|
className: "history-input-progress",
|
|
311
313
|
style: {
|
|
312
314
|
padding: "4px 0"
|
|
313
315
|
},
|
|
314
|
-
children:
|
|
316
|
+
children: Y(n.actions) ? null : /* @__PURE__ */ e(c, {
|
|
315
317
|
size: 4,
|
|
316
318
|
text: "思考中"
|
|
317
319
|
})
|
|
318
|
-
}), (i == null ? void 0 : i.relate) && h && !!((
|
|
319
|
-
relatedQuesion:
|
|
320
|
-
onRelatedClick:
|
|
321
|
-
}), !
|
|
322
|
-
appId:
|
|
323
|
-
history:
|
|
324
|
-
sessionId: (
|
|
325
|
-
onAgainClick:
|
|
320
|
+
}), l.arrange[0].recommendQuestionOpen && (i == null ? void 0 : i.relate) && h && !!((F = n.relatedQuesion) != null && F.length) && /* @__PURE__ */ e(ve, {
|
|
321
|
+
relatedQuesion: n.relatedQuesion,
|
|
322
|
+
onRelatedClick: Z
|
|
323
|
+
}), ne && !n.isSensitive && !!n.messageId && /* @__PURE__ */ e(de, {
|
|
324
|
+
appId: l.id,
|
|
325
|
+
history: n,
|
|
326
|
+
sessionId: (_ = a == null ? void 0 : a.data) == null ? void 0 : _.id,
|
|
327
|
+
onAgainClick: ee,
|
|
326
328
|
isLastHistory: h,
|
|
327
329
|
currentSession: a
|
|
328
330
|
})]
|
|
329
331
|
})
|
|
330
|
-
}),
|
|
332
|
+
}), n.isContext && /* @__PURE__ */ r(he, {
|
|
331
333
|
children: [/* @__PURE__ */ e("div", {
|
|
332
334
|
style: {
|
|
333
335
|
color: "#84868C",
|
|
@@ -335,7 +337,7 @@ const u = (o) => {
|
|
|
335
337
|
},
|
|
336
338
|
children: "已开启新话题"
|
|
337
339
|
}), " "]
|
|
338
|
-
}),
|
|
340
|
+
}), n.isWaiting && /* @__PURE__ */ e("div", {
|
|
339
341
|
className: "history-input-progress",
|
|
340
342
|
children: /* @__PURE__ */ e(c, {
|
|
341
343
|
size: 4,
|
|
@@ -343,8 +345,8 @@ const u = (o) => {
|
|
|
343
345
|
})
|
|
344
346
|
})]
|
|
345
347
|
});
|
|
346
|
-
}
|
|
348
|
+
};
|
|
347
349
|
export {
|
|
348
|
-
|
|
350
|
+
Ye as default,
|
|
349
351
|
u as isResultExec
|
|
350
352
|
};
|
|
@@ -1,45 +1,46 @@
|
|
|
1
|
-
import { jsxs as c, jsx as
|
|
2
|
-
import { useState as a, useContext as r, useEffect as
|
|
3
|
-
import { Space as
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { jsxs as c, jsx as s } from "../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { useState as a, useContext as r, useEffect as I } from "react";
|
|
3
|
+
import { Space as g } from "antd";
|
|
4
|
+
import "./style.less.mjs";
|
|
5
|
+
import h from "../../context.mjs";
|
|
6
|
+
const f = (i) => {
|
|
6
7
|
const {
|
|
7
|
-
reference:
|
|
8
|
-
index:
|
|
9
|
-
type:
|
|
10
|
-
} = i, [d, m] = a(), [
|
|
8
|
+
reference: t,
|
|
9
|
+
index: e,
|
|
10
|
+
type: u
|
|
11
|
+
} = i, [d, m] = a(), [o, p] = a(), {
|
|
11
12
|
service: n
|
|
12
13
|
} = r(h);
|
|
13
|
-
return
|
|
14
|
-
!(
|
|
14
|
+
return I(() => {
|
|
15
|
+
!(t != null && t.knowledgeId) || !(t != null && t.docId) || (n == null || n.getKnowledgeIdFileId(t.knowledgeId, t.docId).then((l) => {
|
|
15
16
|
m(l);
|
|
16
|
-
}), n == null || n.getKnowledgeId(
|
|
17
|
+
}), n == null || n.getKnowledgeId(t == null ? void 0 : t.knowledgeId).then((l) => {
|
|
17
18
|
p(l);
|
|
18
19
|
}));
|
|
19
|
-
}, []), /* @__PURE__ */ c(
|
|
20
|
+
}, []), /* @__PURE__ */ c(g, {
|
|
20
21
|
children: [/* @__PURE__ */ c("span", {
|
|
21
22
|
style: {
|
|
22
23
|
color: "#84868c"
|
|
23
24
|
},
|
|
24
|
-
children: [
|
|
25
|
-
}), /* @__PURE__ */
|
|
25
|
+
children: [e + 1, "."]
|
|
26
|
+
}), /* @__PURE__ */ s("span", {
|
|
26
27
|
style: {
|
|
27
28
|
color: "#84868c"
|
|
28
29
|
},
|
|
29
|
-
children: (d == null ? void 0 : d.nickname) ||
|
|
30
|
-
}), !!(
|
|
30
|
+
children: (d == null ? void 0 : d.nickname) || t.nickname || "-"
|
|
31
|
+
}), !!(o != null && o.name) && /* @__PURE__ */ s("span", {
|
|
31
32
|
style: {
|
|
32
33
|
color: "#84868c"
|
|
33
34
|
},
|
|
34
35
|
children: "/"
|
|
35
|
-
}), /* @__PURE__ */
|
|
36
|
+
}), /* @__PURE__ */ s("span", {
|
|
36
37
|
style: {
|
|
37
38
|
color: "#84868c"
|
|
38
39
|
},
|
|
39
|
-
children:
|
|
40
|
+
children: o == null ? void 0 : o.name
|
|
40
41
|
})]
|
|
41
|
-
},
|
|
42
|
-
}
|
|
42
|
+
}, e);
|
|
43
|
+
};
|
|
43
44
|
export {
|
|
44
|
-
|
|
45
|
+
f as default
|
|
45
46
|
};
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { jsx as n, jsxs as o } from "
|
|
1
|
+
import { jsx as n, jsxs as o } from "../../../_virtual/jsx-runtime.mjs";
|
|
2
2
|
import { Checkbox as l, Row as m, Col as u, Popover as C } from "antd";
|
|
3
3
|
import { useState as v } from "react";
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import "./style.less.mjs";
|
|
5
|
+
import f from "../../../Iconfont/index.mjs";
|
|
6
|
+
const S = (r) => {
|
|
6
7
|
const {
|
|
7
|
-
disabled:
|
|
8
|
-
checkedValues:
|
|
8
|
+
disabled: c,
|
|
9
|
+
checkedValues: a,
|
|
9
10
|
currKnowledgeList: t,
|
|
10
|
-
selectCount:
|
|
11
|
+
selectCount: s,
|
|
11
12
|
onSelectChange: i
|
|
12
|
-
} =
|
|
13
|
+
} = r, [p, d] = v(!1), h = /* @__PURE__ */ n(l.Group, {
|
|
13
14
|
style: {
|
|
14
15
|
width: "100%"
|
|
15
16
|
},
|
|
16
17
|
onChange: i,
|
|
17
|
-
value:
|
|
18
|
-
disabled:
|
|
18
|
+
value: a,
|
|
19
|
+
disabled: c,
|
|
19
20
|
children: /* @__PURE__ */ n(m, {
|
|
20
21
|
gutter: [20, 12],
|
|
21
22
|
children: t == null ? void 0 : t.map((e) => /* @__PURE__ */ n(u, {
|
|
@@ -48,7 +49,7 @@ const f = (c) => {
|
|
|
48
49
|
children: /* @__PURE__ */ o("div", {
|
|
49
50
|
className: "",
|
|
50
51
|
onClick: (e) => e.preventDefault(),
|
|
51
|
-
children: [/* @__PURE__ */ n(
|
|
52
|
+
children: [/* @__PURE__ */ n(f, {
|
|
52
53
|
className: "select-icon",
|
|
53
54
|
type: "icon-open"
|
|
54
55
|
}), /* @__PURE__ */ n("span", {
|
|
@@ -56,12 +57,12 @@ const f = (c) => {
|
|
|
56
57
|
children: "参考知识库"
|
|
57
58
|
}), /* @__PURE__ */ o("span", {
|
|
58
59
|
className: "content",
|
|
59
|
-
children: ["已选 ",
|
|
60
|
+
children: ["已选 ", s, " 个"]
|
|
60
61
|
})]
|
|
61
62
|
})
|
|
62
63
|
})
|
|
63
64
|
});
|
|
64
|
-
}
|
|
65
|
+
};
|
|
65
66
|
export {
|
|
66
|
-
|
|
67
|
+
S as default
|
|
67
68
|
};
|