@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,67 +1,68 @@
|
|
|
1
|
-
import { jsxs as x, jsx as
|
|
2
|
-
import { useContext as
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import q from "
|
|
6
|
-
|
|
1
|
+
import { jsxs as x, jsx as A } from "../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { useContext as H, useState as i, useEffect as y } from "react";
|
|
3
|
+
import "./style.less.mjs";
|
|
4
|
+
import K from "../../context.mjs";
|
|
5
|
+
import { Space as q } from "antd";
|
|
6
|
+
import z from "./KnowledgeSelect/index.mjs";
|
|
7
|
+
const P = (v) => {
|
|
7
8
|
var j, u;
|
|
8
9
|
const {
|
|
9
10
|
currentSession: t,
|
|
10
11
|
application: n,
|
|
11
12
|
setCurrentSession: B,
|
|
12
13
|
reload: D,
|
|
13
|
-
setCheckKnowledges:
|
|
14
|
+
setCheckKnowledges: g
|
|
14
15
|
} = v, {
|
|
15
16
|
mode: C,
|
|
16
17
|
transform: w,
|
|
17
18
|
features: o
|
|
18
|
-
} =
|
|
19
|
+
} = H(K), [d, k] = i([]), [r, c] = i(typeof (o == null ? void 0 : o.knowledges) == "object" ? ((j = o.knowledges.default) == null ? void 0 : j.map((e) => e.id)) || [] : []), [E, p] = i(0), [h, b] = i(!1);
|
|
19
20
|
y(() => {
|
|
20
21
|
if (!(n != null && n.id))
|
|
21
22
|
return;
|
|
22
23
|
const e = n.arrange;
|
|
23
24
|
if (!(e != null && e.length))
|
|
24
25
|
return;
|
|
25
|
-
const
|
|
26
|
-
k(
|
|
27
|
-
const
|
|
26
|
+
const s = e[0].knowledges || [];
|
|
27
|
+
k(s);
|
|
28
|
+
const l = typeof (o == null ? void 0 : o.knowledges) == "object" && o.knowledges.default || s;
|
|
28
29
|
if (!t) {
|
|
29
|
-
c(
|
|
30
|
+
c(l.map((f) => f.id)), p(l.length), g == null || g(l);
|
|
30
31
|
return;
|
|
31
32
|
}
|
|
32
|
-
const
|
|
33
|
-
const f = t.knowledges ||
|
|
33
|
+
const a = () => {
|
|
34
|
+
const f = t.knowledges || l;
|
|
34
35
|
p(f.length);
|
|
35
|
-
const F = f.map((
|
|
36
|
+
const F = f.map((N) => N.id);
|
|
36
37
|
c(F);
|
|
37
38
|
};
|
|
38
|
-
return
|
|
39
|
-
t == null || t.removeEventListener("data:updated",
|
|
39
|
+
return a(), t.addEventListener("data:updated", a), () => {
|
|
40
|
+
t == null || t.removeEventListener("data:updated", a);
|
|
40
41
|
};
|
|
41
42
|
}, [n, t]), y(() => {
|
|
42
43
|
var m;
|
|
43
44
|
if (!h || (b(!1), !(n != null && n.id)))
|
|
44
45
|
return;
|
|
45
46
|
const e = [];
|
|
46
|
-
r == null || r.map((
|
|
47
|
-
const
|
|
48
|
-
e.push(
|
|
47
|
+
r == null || r.map((s) => {
|
|
48
|
+
const l = d == null ? void 0 : d.find((a) => a.id === s);
|
|
49
|
+
e.push(l);
|
|
49
50
|
}), (m = t == null ? void 0 : t.data) != null && m.id && t.setKnowledges(e);
|
|
50
51
|
}, [h]);
|
|
51
52
|
const S = (e) => {
|
|
52
53
|
b(!0), c(e);
|
|
53
54
|
const m = [];
|
|
54
|
-
e == null || e.map((
|
|
55
|
-
const
|
|
56
|
-
m.push(
|
|
57
|
-
}),
|
|
55
|
+
e == null || e.map((s) => {
|
|
56
|
+
const l = d == null ? void 0 : d.find((a) => a.id === s);
|
|
57
|
+
m.push(l);
|
|
58
|
+
}), g == null || g(m), p(e.length);
|
|
58
59
|
};
|
|
59
60
|
return /* @__PURE__ */ x("div", {
|
|
60
61
|
className: "chat-header",
|
|
61
|
-
children: [/* @__PURE__ */ x(
|
|
62
|
+
children: [/* @__PURE__ */ x(q, {
|
|
62
63
|
className: "header-title",
|
|
63
64
|
children: [C === "inlay" && ((u = t == null ? void 0 : t.data) == null ? void 0 : u.name), C === "float" && (n == null ? void 0 : n.name)]
|
|
64
|
-
}), (w == null ? void 0 : w.knowledges) && d.length !== 0 && /* @__PURE__ */
|
|
65
|
+
}), (w == null ? void 0 : w.knowledges) && d.length !== 0 && /* @__PURE__ */ A(z, {
|
|
65
66
|
disabled: (n == null ? void 0 : n.type) === 2 || typeof (o == null ? void 0 : o.knowledges) == "object" && (o == null ? void 0 : o.knowledges.diabled) || !1,
|
|
66
67
|
checkedValues: r,
|
|
67
68
|
currKnowledgeList: d,
|
|
@@ -69,7 +70,7 @@ const z = (v) => {
|
|
|
69
70
|
onSelectChange: S
|
|
70
71
|
})]
|
|
71
72
|
});
|
|
72
|
-
}
|
|
73
|
+
};
|
|
73
74
|
export {
|
|
74
|
-
|
|
75
|
+
P as default
|
|
75
76
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsx as t, jsxs as r } from "
|
|
2
|
-
import { Button as y, Typography as
|
|
3
|
-
import { useContext as
|
|
4
|
-
import { LoadingOutlined as
|
|
1
|
+
import { jsx as t, jsxs as r } from "../../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { Button as y, Typography as P, Space as j, Spin as E } from "antd";
|
|
3
|
+
import { useContext as I, useState as m, useEffect as l } from "react";
|
|
4
|
+
import { LoadingOutlined as L } from "@ant-design/icons";
|
|
5
5
|
import N from "../../../Iconfont/index.mjs";
|
|
6
6
|
import R from "../../../context.mjs";
|
|
7
7
|
const {
|
|
8
|
-
Text:
|
|
9
|
-
} =
|
|
10
|
-
children: [/* @__PURE__ */ t(
|
|
11
|
-
indicator: /* @__PURE__ */ t(
|
|
8
|
+
Text: w
|
|
9
|
+
} = P, z = () => /* @__PURE__ */ r(j, {
|
|
10
|
+
children: [/* @__PURE__ */ t(E, {
|
|
11
|
+
indicator: /* @__PURE__ */ t(L, {
|
|
12
12
|
style: {
|
|
13
13
|
fontSize: 12
|
|
14
14
|
}
|
|
15
15
|
}),
|
|
16
16
|
spinning: !0
|
|
17
17
|
}), "正在生成标题"]
|
|
18
|
-
}),
|
|
18
|
+
}), F = (k) => {
|
|
19
19
|
const {
|
|
20
|
-
appId:
|
|
20
|
+
appId: S,
|
|
21
21
|
data: e,
|
|
22
22
|
highlight: o,
|
|
23
23
|
onEdit: d,
|
|
@@ -26,14 +26,14 @@ const {
|
|
|
26
26
|
onStatusChange: u
|
|
27
27
|
} = k, {
|
|
28
28
|
service: c
|
|
29
|
-
} =
|
|
29
|
+
} = I(R), [n, a] = m(e.status !== "finish"), [i, g] = m(e), [T, x] = m(e.title);
|
|
30
30
|
l(() => {
|
|
31
31
|
i.status !== "finish" && a(!0);
|
|
32
32
|
}, [i.status, n]), l(() => {
|
|
33
33
|
g(e);
|
|
34
34
|
}, [e]);
|
|
35
35
|
const C = () => {
|
|
36
|
-
c == null || c.getPrompt(
|
|
36
|
+
c == null || c.getPrompt(S, i.id).then((s) => {
|
|
37
37
|
g(s), u && u(s.status, s), s.status === "finish" ? a(!1) : (a(!0), setTimeout(() => C(), 2e3));
|
|
38
38
|
});
|
|
39
39
|
};
|
|
@@ -41,11 +41,11 @@ const {
|
|
|
41
41
|
n && C();
|
|
42
42
|
}, [n]), l(() => {
|
|
43
43
|
if (o) {
|
|
44
|
-
const s = new RegExp(`(${o})`, "g"),
|
|
45
|
-
x(
|
|
44
|
+
const s = new RegExp(`(${o})`, "g"), b = i.title.split(s);
|
|
45
|
+
x(b.map((p, v) => o === p ? /* @__PURE__ */ t("span", {
|
|
46
46
|
className: "hightlight",
|
|
47
47
|
children: p
|
|
48
|
-
},
|
|
48
|
+
}, v) : p));
|
|
49
49
|
} else
|
|
50
50
|
x(i.title);
|
|
51
51
|
}, [o, i.title]), /* @__PURE__ */ r("div", {
|
|
@@ -55,10 +55,10 @@ const {
|
|
|
55
55
|
className: "prompt-list-item-body",
|
|
56
56
|
children: [/* @__PURE__ */ t("div", {
|
|
57
57
|
className: "prompt-list-item-title",
|
|
58
|
-
children: i.title ?
|
|
58
|
+
children: i.title ? T : /* @__PURE__ */ t(z, {})
|
|
59
59
|
}), /* @__PURE__ */ t("div", {
|
|
60
60
|
className: "prompt-list-item-context",
|
|
61
|
-
children: /* @__PURE__ */ t(
|
|
61
|
+
children: /* @__PURE__ */ t(w, {
|
|
62
62
|
ellipsis: !0,
|
|
63
63
|
children: i.context
|
|
64
64
|
})
|
|
@@ -83,7 +83,7 @@ const {
|
|
|
83
83
|
})]
|
|
84
84
|
})]
|
|
85
85
|
});
|
|
86
|
-
}
|
|
86
|
+
};
|
|
87
87
|
export {
|
|
88
|
-
|
|
88
|
+
F as default
|
|
89
89
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { jsx as t, Fragment as l } from "
|
|
1
|
+
import { jsx as t, Fragment as l } from "../../../_virtual/jsx-runtime.mjs";
|
|
2
2
|
import { List as h, Empty as g } from "antd";
|
|
3
3
|
import f from "./PromptListItem.mjs";
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import "./style.less.mjs";
|
|
5
|
+
import u from "./access/empty.svg.mjs";
|
|
6
|
+
const S = (o) => {
|
|
6
7
|
const {
|
|
7
|
-
appId:
|
|
8
|
+
appId: a,
|
|
8
9
|
data: i = [],
|
|
9
|
-
search:
|
|
10
|
-
onItemClick:
|
|
10
|
+
search: n,
|
|
11
|
+
onItemClick: s,
|
|
11
12
|
onChange: e,
|
|
12
13
|
onRefresh: y
|
|
13
|
-
} =
|
|
14
|
+
} = o, p = () => /* @__PURE__ */ t("div", {
|
|
14
15
|
className: "prompt-list-empty",
|
|
15
16
|
children: /* @__PURE__ */ t(g, {
|
|
16
17
|
image: u,
|
|
@@ -28,20 +29,20 @@ const P = (m) => {
|
|
|
28
29
|
children: /* @__PURE__ */ t(h, {
|
|
29
30
|
className: "prompt-list",
|
|
30
31
|
dataSource: i,
|
|
31
|
-
renderItem: (
|
|
32
|
-
appId:
|
|
33
|
-
data:
|
|
34
|
-
highlight:
|
|
35
|
-
onClick:
|
|
32
|
+
renderItem: (d) => /* @__PURE__ */ t(f, {
|
|
33
|
+
appId: a,
|
|
34
|
+
data: d,
|
|
35
|
+
highlight: n,
|
|
36
|
+
onClick: s,
|
|
36
37
|
onStatusChange: (x, r) => {
|
|
37
|
-
const
|
|
38
|
-
|
|
38
|
+
const m = i.findIndex((c) => c.id === r.id);
|
|
39
|
+
m > -1 && (i[m] = r, e && e([...i]));
|
|
39
40
|
}
|
|
40
41
|
})
|
|
41
42
|
})
|
|
42
43
|
}) : /* @__PURE__ */ t(p, {})
|
|
43
44
|
});
|
|
44
|
-
}
|
|
45
|
+
};
|
|
45
46
|
export {
|
|
46
|
-
|
|
47
|
+
S as default
|
|
47
48
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { jsx as r, Fragment as
|
|
2
|
-
import { Popover as
|
|
3
|
-
import { useState as m, useContext as
|
|
4
|
-
|
|
1
|
+
import { jsx as r, Fragment as V } from "../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { Popover as j, Tabs as C, Button as A } from "antd";
|
|
3
|
+
import { useState as m, useContext as E, useEffect as a } from "react";
|
|
4
|
+
import "./style.less.mjs";
|
|
5
|
+
import M from "../../node_modules/classnames/index.mjs";
|
|
5
6
|
import { PROMPT_TITLE_MAX_LENGTH as I } from "@glodon-aiot/apis";
|
|
6
7
|
import _ from "./PromptList/PublicPromptList.mjs";
|
|
7
8
|
import z from "../../Iconfont/index.mjs";
|
|
8
9
|
import X from "../../context.mjs";
|
|
9
|
-
const
|
|
10
|
+
const $ = (S) => {
|
|
10
11
|
var x;
|
|
11
12
|
const {
|
|
12
13
|
appId: c,
|
|
@@ -16,15 +17,15 @@ const B = (S) => {
|
|
|
16
17
|
open: u = !1,
|
|
17
18
|
onClose: g,
|
|
18
19
|
onPromptSelect: L
|
|
19
|
-
} = S, [f, y] = m(u), [
|
|
20
|
+
} = S, [f, y] = m(u), [B, P] = m(), {
|
|
20
21
|
service: i,
|
|
21
22
|
popupContainer: o,
|
|
22
|
-
mode:
|
|
23
|
-
} =
|
|
23
|
+
mode: F
|
|
24
|
+
} = E(X), [G, d] = m((s == null ? void 0 : s.filter((t) => t.type === "me")) || []), [k, h] = m((s == null ? void 0 : s.filter((t) => t.type === "system")) || []), [b, v] = m((s == null ? void 0 : s.filter((t) => t.type === "system")) || []), [w, N] = m("system"), [H, O] = m(!1);
|
|
24
25
|
a(() => {
|
|
25
26
|
f && i && (e && e.length > I ? (d([]), h([])) : (i.listPrompt(c, {
|
|
26
27
|
type: "system"
|
|
27
|
-
}).then((t) =>
|
|
28
|
+
}).then((t) => O(!!t.length)), i.listPrompt(c, e ? {
|
|
28
29
|
title: e
|
|
29
30
|
} : void 0).then((t) => {
|
|
30
31
|
const p = t.filter((n) => n.type === "me"), l = t.filter((n) => n.type === "system");
|
|
@@ -55,7 +56,7 @@ const B = (S) => {
|
|
|
55
56
|
d(p), h(l), y(!!(l.length && (e != null && e.length))), e || v(l);
|
|
56
57
|
});
|
|
57
58
|
};
|
|
58
|
-
return /* @__PURE__ */ r(
|
|
59
|
+
return /* @__PURE__ */ r(j, {
|
|
59
60
|
title: null,
|
|
60
61
|
placement: "topLeft",
|
|
61
62
|
overlayClassName: "propmt-manage-popover",
|
|
@@ -73,14 +74,14 @@ const B = (S) => {
|
|
|
73
74
|
onOpenChange: (t) => {
|
|
74
75
|
y(t), !t && g && g();
|
|
75
76
|
},
|
|
76
|
-
content: /* @__PURE__ */ r(
|
|
77
|
+
content: /* @__PURE__ */ r(V, {
|
|
77
78
|
children: /* @__PURE__ */ r(C, {
|
|
78
79
|
activeKey: w,
|
|
79
80
|
style: {
|
|
80
81
|
padding: "0 16px"
|
|
81
82
|
},
|
|
82
83
|
onTabClick: (t) => {
|
|
83
|
-
|
|
84
|
+
N(t);
|
|
84
85
|
},
|
|
85
86
|
children: /* @__PURE__ */ r(C.TabPane, {
|
|
86
87
|
tab: "快捷指令",
|
|
@@ -95,12 +96,12 @@ const B = (S) => {
|
|
|
95
96
|
}, "system")
|
|
96
97
|
})
|
|
97
98
|
}),
|
|
98
|
-
children: b != null && b.length ? /* @__PURE__ */ r(
|
|
99
|
+
children: b != null && b.length ? /* @__PURE__ */ r(A, {
|
|
99
100
|
disabled: W,
|
|
100
101
|
style: {
|
|
101
102
|
width: "24px"
|
|
102
103
|
},
|
|
103
|
-
className:
|
|
104
|
+
className: M({
|
|
104
105
|
"prompt-btn": !0,
|
|
105
106
|
active: f
|
|
106
107
|
}),
|
|
@@ -114,7 +115,7 @@ const B = (S) => {
|
|
|
114
115
|
onClick: () => y(!0)
|
|
115
116
|
}) : null
|
|
116
117
|
});
|
|
117
|
-
}
|
|
118
|
+
};
|
|
118
119
|
export {
|
|
119
|
-
|
|
120
|
+
$ as default
|
|
120
121
|
};
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
var I = Object.defineProperty;
|
|
2
2
|
var h = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var y = (
|
|
3
|
+
var P = Object.prototype.hasOwnProperty, q = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var y = (n, t, e) => t in n ? I(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, v = (n, t) => {
|
|
5
5
|
for (var e in t || (t = {}))
|
|
6
|
-
|
|
6
|
+
P.call(t, e) && y(n, e, t[e]);
|
|
7
7
|
if (h)
|
|
8
8
|
for (var e of h(t))
|
|
9
|
-
q.call(t, e) && y(
|
|
10
|
-
return
|
|
9
|
+
q.call(t, e) && y(n, e, t[e]);
|
|
10
|
+
return n;
|
|
11
11
|
};
|
|
12
|
-
import { jsx as
|
|
13
|
-
import { forwardRef as B, useState as
|
|
14
|
-
|
|
15
|
-
import
|
|
12
|
+
import { jsx as r, jsxs as d } from "../../_virtual/jsx-runtime.mjs";
|
|
13
|
+
import { forwardRef as B, useState as S, useContext as b, useImperativeHandle as w, useEffect as g } from "react";
|
|
14
|
+
import "./style.less.mjs";
|
|
15
|
+
import { Form as p, Space as k, Button as E, Popover as L, Input as j } from "antd";
|
|
16
|
+
import A from "../../context.mjs";
|
|
16
17
|
import u from "../../Iconfont/index.mjs";
|
|
17
|
-
const
|
|
18
|
+
const z = B((n, t) => {
|
|
18
19
|
const {
|
|
19
20
|
promptVariables: e,
|
|
20
21
|
setPromptVariables: f,
|
|
21
22
|
currentSession: l,
|
|
22
23
|
setCurrentSession: D
|
|
23
|
-
} =
|
|
24
|
-
|
|
24
|
+
} = n, [c] = p.useForm(), [m, C] = S(!0);
|
|
25
|
+
b(A), w(t, () => ({
|
|
25
26
|
clear() {
|
|
26
27
|
c.resetFields();
|
|
27
28
|
}
|
|
@@ -30,7 +31,7 @@ const C = B((r, t) => {
|
|
|
30
31
|
return;
|
|
31
32
|
const o = () => {
|
|
32
33
|
const a = l.promptVariables.filter((i) => i.key !== "query");
|
|
33
|
-
f(a.sort((i,
|
|
34
|
+
f(a.sort((i, x) => i.key.localeCompare(x.key)));
|
|
34
35
|
};
|
|
35
36
|
return l.addEventListener("activated", o), () => {
|
|
36
37
|
l == null || l.removeEventListener("activated", o);
|
|
@@ -41,45 +42,45 @@ const C = B((r, t) => {
|
|
|
41
42
|
const o = e == null ? void 0 : e.reduce((s, a) => (s[a.key] = a.value, s), {});
|
|
42
43
|
c.setFieldsValue(v({}, o));
|
|
43
44
|
}, [e]);
|
|
44
|
-
const
|
|
45
|
+
const N = (o, s) => {
|
|
45
46
|
e.map((a) => {
|
|
46
47
|
a.id === o && (a.value = s.target.value);
|
|
47
48
|
}), f([...e].sort((a, i) => a.key.localeCompare(i.key)));
|
|
48
|
-
},
|
|
49
|
-
|
|
49
|
+
}, F = () => {
|
|
50
|
+
C(!m);
|
|
50
51
|
};
|
|
51
|
-
return e != null && e.length ? /* @__PURE__ */
|
|
52
|
+
return e != null && e.length ? /* @__PURE__ */ r("div", {
|
|
52
53
|
className: "prompt-setting-panel",
|
|
53
54
|
children: /* @__PURE__ */ d("div", {
|
|
54
55
|
className: "agent-prompt",
|
|
55
|
-
children: [/* @__PURE__ */
|
|
56
|
+
children: [/* @__PURE__ */ r("div", {
|
|
56
57
|
className: "prompt-header",
|
|
57
58
|
children: /* @__PURE__ */ d(k, {
|
|
58
|
-
children: [/* @__PURE__ */
|
|
59
|
+
children: [/* @__PURE__ */ r(E, {
|
|
59
60
|
className: "prompt-action",
|
|
60
|
-
icon: m ? /* @__PURE__ */
|
|
61
|
+
icon: m ? /* @__PURE__ */ r(u, {
|
|
61
62
|
type: "icon-biaoge-shouqi"
|
|
62
|
-
}) : /* @__PURE__ */
|
|
63
|
+
}) : /* @__PURE__ */ r(u, {
|
|
63
64
|
type: "icon-biaoge-zhankai"
|
|
64
65
|
}),
|
|
65
66
|
type: "link",
|
|
66
|
-
onClick:
|
|
67
|
+
onClick: F
|
|
67
68
|
}), /* @__PURE__ */ d(k, {
|
|
68
69
|
className: "prompt-title",
|
|
69
|
-
children: [/* @__PURE__ */
|
|
70
|
+
children: [/* @__PURE__ */ r("span", {
|
|
70
71
|
children: "变量输入"
|
|
71
|
-
}), /* @__PURE__ */
|
|
72
|
+
}), /* @__PURE__ */ r(L, {
|
|
72
73
|
placement: "top",
|
|
73
74
|
overlayClassName: "title-popover",
|
|
74
75
|
content: "填入变量的值,每次启动新会话时该变量将自动替换提示词中的变量",
|
|
75
|
-
children: /* @__PURE__ */
|
|
76
|
+
children: /* @__PURE__ */ r(u, {
|
|
76
77
|
className: "icon-prompt-question",
|
|
77
78
|
type: "icon-wenti"
|
|
78
79
|
})
|
|
79
80
|
})]
|
|
80
81
|
})]
|
|
81
82
|
})
|
|
82
|
-
}), m && /* @__PURE__ */
|
|
83
|
+
}), m && /* @__PURE__ */ r(p, {
|
|
83
84
|
autoComplete: "off",
|
|
84
85
|
form: c,
|
|
85
86
|
labelWrap: !0,
|
|
@@ -90,7 +91,7 @@ const C = B((r, t) => {
|
|
|
90
91
|
}
|
|
91
92
|
},
|
|
92
93
|
className: "prompt-form",
|
|
93
|
-
children: e == null ? void 0 : e.map((o) => /* @__PURE__ */
|
|
94
|
+
children: e == null ? void 0 : e.map((o) => /* @__PURE__ */ r(p.Item, {
|
|
94
95
|
label: o.name,
|
|
95
96
|
name: o.key,
|
|
96
97
|
style: {
|
|
@@ -100,18 +101,17 @@ const C = B((r, t) => {
|
|
|
100
101
|
required: !0,
|
|
101
102
|
message: "请输入"
|
|
102
103
|
}],
|
|
103
|
-
children: /* @__PURE__ */
|
|
104
|
+
children: /* @__PURE__ */ r(j, {
|
|
104
105
|
placeholder: "请输入",
|
|
105
106
|
maxLength: 1e3,
|
|
106
|
-
onBlur: (s) =>
|
|
107
|
+
onBlur: (s) => N(o.id, s)
|
|
107
108
|
})
|
|
108
109
|
}, o.key))
|
|
109
110
|
})]
|
|
110
111
|
})
|
|
111
112
|
}) : null;
|
|
112
113
|
});
|
|
113
|
-
|
|
114
|
-
const M = C;
|
|
114
|
+
z.displayName = "PromptSetting";
|
|
115
115
|
export {
|
|
116
|
-
|
|
116
|
+
z as default
|
|
117
117
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { jsxs as m, jsx as o } from "
|
|
1
|
+
import { jsxs as m, jsx as o } from "../../_virtual/jsx-runtime.mjs";
|
|
2
2
|
import { useState as f, useEffect as h } from "react";
|
|
3
|
-
|
|
3
|
+
import "./style.less.mjs";
|
|
4
|
+
import { Space as v, message as g, Typography as p } from "antd";
|
|
4
5
|
import y from "../FileCard/doc-icons/pdf.svg.mjs";
|
|
5
6
|
import N from "../FileCard/doc-icons/doc.svg.mjs";
|
|
6
7
|
import q from "../FileCard/doc-icons/docx.svg.mjs";
|
|
7
|
-
import r from "classnames";
|
|
8
|
+
import r from "../../node_modules/classnames/index.mjs";
|
|
8
9
|
import { getFileExtension as x } from "../../utils/index.mjs";
|
|
9
|
-
const
|
|
10
|
+
const w = {
|
|
10
11
|
doc: N,
|
|
11
12
|
docx: q,
|
|
12
13
|
pdf: y
|
|
13
|
-
},
|
|
14
|
+
}, z = (d) => {
|
|
14
15
|
var c;
|
|
15
16
|
const {
|
|
16
17
|
item: e,
|
|
@@ -19,7 +20,7 @@ const I = {
|
|
|
19
20
|
question: s,
|
|
20
21
|
setQuestion: l,
|
|
21
22
|
onItemClick: t
|
|
22
|
-
} =
|
|
23
|
+
} = d, [n, a] = f(!1);
|
|
23
24
|
return h(() => {
|
|
24
25
|
e && (!e.icon && !e.file.url && !e.name ? a(!0) : a(!1));
|
|
25
26
|
}, [e]), /* @__PURE__ */ m(v, {
|
|
@@ -48,7 +49,7 @@ const I = {
|
|
|
48
49
|
})
|
|
49
50
|
}), /* @__PURE__ */ o("div", {
|
|
50
51
|
className: "question-top-title",
|
|
51
|
-
children: /* @__PURE__ */ o(
|
|
52
|
+
children: /* @__PURE__ */ o(p.Paragraph, {
|
|
52
53
|
style: {
|
|
53
54
|
margin: 0,
|
|
54
55
|
width: "100%"
|
|
@@ -66,7 +67,7 @@ const I = {
|
|
|
66
67
|
}),
|
|
67
68
|
children: !!((c = e.file) != null && c.url) && /* @__PURE__ */ o("img", {
|
|
68
69
|
className: "file-icon",
|
|
69
|
-
src:
|
|
70
|
+
src: w[x(e.file.url) || ""]
|
|
70
71
|
})
|
|
71
72
|
})]
|
|
72
73
|
}), /* @__PURE__ */ o("div", {
|
|
@@ -74,7 +75,7 @@ const I = {
|
|
|
74
75
|
"question-bottom": !0,
|
|
75
76
|
"multiline-question": !i && n
|
|
76
77
|
}),
|
|
77
|
-
children: /* @__PURE__ */ o(
|
|
78
|
+
children: /* @__PURE__ */ o(p.Paragraph, {
|
|
78
79
|
style: {
|
|
79
80
|
margin: 0,
|
|
80
81
|
width: "100%"
|
|
@@ -89,7 +90,7 @@ const I = {
|
|
|
89
90
|
})
|
|
90
91
|
})]
|
|
91
92
|
});
|
|
92
|
-
}
|
|
93
|
+
};
|
|
93
94
|
export {
|
|
94
|
-
|
|
95
|
+
z as default
|
|
95
96
|
};
|
|
@@ -1,50 +1,51 @@
|
|
|
1
|
-
import { jsxs as c, jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
1
|
+
import { jsxs as c, jsx as t } from "../../_virtual/jsx-runtime.mjs";
|
|
2
|
+
import { forwardRef as I, useState as r, useImperativeHandle as Q, useEffect as l } from "react";
|
|
3
|
+
import "./style.less.mjs";
|
|
4
|
+
import { Space as g, Row as w, Col as N } from "antd";
|
|
5
|
+
import q from "./tip.svg.mjs";
|
|
6
|
+
import v from "./RecommendItem.mjs";
|
|
7
|
+
const x = I((a, u) => {
|
|
7
8
|
const {
|
|
8
9
|
sid: y,
|
|
9
10
|
onItemClick: f,
|
|
10
11
|
data: s,
|
|
11
12
|
isRecommendClearing: p
|
|
12
|
-
} =
|
|
13
|
-
return
|
|
13
|
+
} = a, [e, d] = r(), [h, i] = r(), [R, m] = r(!1);
|
|
14
|
+
return Q(u, () => ({
|
|
14
15
|
clear() {
|
|
15
16
|
i(void 0);
|
|
16
17
|
}
|
|
17
18
|
})), l(() => {
|
|
18
19
|
if (s != null && s.length) {
|
|
19
|
-
|
|
20
|
+
d(s);
|
|
20
21
|
return;
|
|
21
22
|
}
|
|
22
23
|
}, [s]), l(() => {
|
|
23
24
|
if (!e)
|
|
24
25
|
return;
|
|
25
|
-
const
|
|
26
|
-
m(!
|
|
26
|
+
const o = e.find((n) => n.file.url || n.icon || n.name);
|
|
27
|
+
m(!o);
|
|
27
28
|
}, [e]), /* @__PURE__ */ c("div", {
|
|
28
29
|
className: "questions",
|
|
29
|
-
children: [/* @__PURE__ */ c(
|
|
30
|
+
children: [/* @__PURE__ */ c(g, {
|
|
30
31
|
size: 8,
|
|
31
32
|
className: "question-tip",
|
|
32
|
-
children: [/* @__PURE__ */
|
|
33
|
-
src:
|
|
33
|
+
children: [/* @__PURE__ */ t("img", {
|
|
34
|
+
src: q,
|
|
34
35
|
alt: ""
|
|
35
|
-
}), /* @__PURE__ */
|
|
36
|
+
}), /* @__PURE__ */ t("span", {
|
|
36
37
|
children: "请试试这样提问:"
|
|
37
38
|
})]
|
|
38
|
-
}), /* @__PURE__ */
|
|
39
|
+
}), /* @__PURE__ */ t(w, {
|
|
39
40
|
gutter: [12, 12],
|
|
40
41
|
wrap: !0,
|
|
41
42
|
className: "question-row",
|
|
42
|
-
children: e == null ? void 0 : e.map((
|
|
43
|
+
children: e == null ? void 0 : e.map((o, n) => /* @__PURE__ */ t(N, {
|
|
43
44
|
span: 12,
|
|
44
|
-
children: /* @__PURE__ */
|
|
45
|
-
item:
|
|
45
|
+
children: /* @__PURE__ */ t(v, {
|
|
46
|
+
item: o,
|
|
46
47
|
isRecommendClearing: p,
|
|
47
|
-
isOnlyQuestion:
|
|
48
|
+
isOnlyQuestion: R,
|
|
48
49
|
question: h,
|
|
49
50
|
setQuestion: i,
|
|
50
51
|
onItemClick: f
|
|
@@ -53,8 +54,7 @@ const a = Q((u, d) => {
|
|
|
53
54
|
})]
|
|
54
55
|
});
|
|
55
56
|
});
|
|
56
|
-
|
|
57
|
-
const E = a;
|
|
57
|
+
x.displayName = "Recommend";
|
|
58
58
|
export {
|
|
59
|
-
|
|
59
|
+
x as default
|
|
60
60
|
};
|