@glodon-aiot/agent-cli-ui 2.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.git.md +73 -0
- package/README.lib.md +135 -0
- package/dist/es/AgentClientUI.mjs +155 -0
- package/dist/es/Dialog/AgentChat/index.mjs +757 -0
- package/dist/es/Dialog/AgentChat/style.less.mjs +4 -0
- package/dist/es/Dialog/ConnectToNetwork/index.mjs +92 -0
- package/dist/es/Dialog/ConnectToNetwork/style.less.mjs +4 -0
- package/dist/es/Dialog/FileCard/doc-icons/doc.svg.mjs +4 -0
- package/dist/es/Dialog/FileCard/doc-icons/docx.svg.mjs +4 -0
- package/dist/es/Dialog/FileCard/doc-icons/pdf.svg.mjs +4 -0
- package/dist/es/Dialog/FileCard/index.mjs +142 -0
- package/dist/es/Dialog/FileCard/style.less.mjs +4 -0
- package/dist/es/Dialog/FilePreview/index.mjs +90 -0
- package/dist/es/Dialog/FilePreview/style.less.mjs +4 -0
- package/dist/es/Dialog/Greeting/index.mjs +31 -0
- package/dist/es/Dialog/Greeting/style.less.mjs +4 -0
- package/dist/es/Dialog/HistoryContent/index.mjs +14 -0
- package/dist/es/Dialog/HistoryContent/style.less.mjs +4 -0
- package/dist/es/Dialog/HistoryItem/index.mjs +355 -0
- package/dist/es/Dialog/HistoryItem/style.less.mjs +4 -0
- package/dist/es/Dialog/HistoryItem/think.svg.mjs +4 -0
- package/dist/es/Dialog/KnowledgeDoc/index.mjs +46 -0
- package/dist/es/Dialog/KnowledgeDoc/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/index.mjs +68 -0
- package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/style.less.mjs +4 -0
- package/dist/es/Dialog/KnowledgeList/index.mjs +69 -0
- package/dist/es/Dialog/KnowledgeList/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptManager/PromptList/PromptListItem.mjs +89 -0
- package/dist/es/Dialog/PromptManager/PromptList/PublicPromptList.mjs +48 -0
- package/dist/es/Dialog/PromptManager/PromptList/access/empty.svg.mjs +4 -0
- package/dist/es/Dialog/PromptManager/PromptList/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptManager/index.mjs +128 -0
- package/dist/es/Dialog/PromptManager/style.less.mjs +4 -0
- package/dist/es/Dialog/PromptSetting/index.mjs +130 -0
- package/dist/es/Dialog/PromptSetting/style.less.mjs +4 -0
- package/dist/es/Dialog/Recommend/RecommendItem.mjs +96 -0
- package/dist/es/Dialog/Recommend/index.mjs +60 -0
- package/dist/es/Dialog/Recommend/style.less.mjs +4 -0
- package/dist/es/Dialog/Recommend/tip.svg.mjs +4 -0
- package/dist/es/Dialog/ReferCollapse/index.mjs +65 -0
- package/dist/es/Dialog/ReferCollapse/style.less.mjs +4 -0
- package/dist/es/Dialog/SearchReference/index.mjs +64 -0
- package/dist/es/Dialog/SearchReference/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionAction/index.mjs +232 -0
- package/dist/es/Dialog/SessionAction/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionList/index.mjs +197 -0
- package/dist/es/Dialog/SessionList/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +48 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/SessionItem.mjs +142 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/doc-icons/doc.svg.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/doc-icons/docx.svg.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/doc-icons/pdf.svg.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/index.mjs +120 -0
- package/dist/es/Dialog/SessionListDrawer/HistorySessionList/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionListDrawer/index.mjs +44 -0
- package/dist/es/Dialog/SessionListDrawer/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRefer/ReferItem/index.mjs +94 -0
- package/dist/es/Dialog/SessionRefer/ReferItem/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRefer/index.mjs +86 -0
- package/dist/es/Dialog/SessionRefer/style.less.mjs +4 -0
- package/dist/es/Dialog/SessionRelated/index.mjs +43 -0
- package/dist/es/Dialog/SessionRelated/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/index.mjs +51 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/index.mjs +368 -0
- package/dist/es/Dialog/UploadKnowledgeFiles/style.less.mjs +4 -0
- package/dist/es/Dialog/UploadingPrompt/index.mjs +67 -0
- package/dist/es/Dialog/UploadingPrompt/style.less.mjs +4 -0
- package/dist/es/Dialog/index.mjs +128 -0
- package/dist/es/Dialog/style.less.mjs +4 -0
- package/dist/es/FileCard/doc-icons/doc.svg.mjs +4 -0
- package/dist/es/FileCard/doc-icons/docx.svg.mjs +4 -0
- package/dist/es/FileCard/doc-icons/pdf.svg.mjs +4 -0
- package/dist/es/FileItem/index.mjs +85 -0
- package/dist/es/FileItem/style.less.mjs +4 -0
- package/dist/es/Footer/FooterWarning.mjs +25 -0
- package/dist/es/Footer/index.mjs +18 -0
- package/dist/es/Footer/style.less.mjs +4 -0
- package/dist/es/Iconfont/index.mjs +12 -0
- package/dist/es/InputProgress/index.mjs +39 -0
- package/dist/es/InputProgress/style.less.mjs +4 -0
- package/dist/es/QuillEditor/index.mjs +219 -0
- 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/index2.mjs +4 -0
- package/dist/es/_virtual/index3.mjs +4 -0
- package/dist/es/_virtual/index4.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/minio-zj.mjs +4 -0
- package/dist/es/_virtual/react-jsx-runtime.production.min.mjs +4 -0
- package/dist/es/assets/brand.svg.mjs +4 -0
- package/dist/es/assets/icon.svg.mjs +4 -0
- package/dist/es/components/Copy/index.mjs +44 -0
- package/dist/es/components/Copy/style.less.mjs +4 -0
- package/dist/es/components/JsonDisplay/index.mjs +16 -0
- package/dist/es/components/JsonDisplay/style.less.mjs +4 -0
- package/dist/es/components/Markdown/Code/index.mjs +69 -0
- package/dist/es/components/Markdown/Image/index.mjs +26 -0
- package/dist/es/components/Markdown/index.mjs +48 -0
- package/dist/es/components/Markdown/style.less.mjs +4 -0
- package/dist/es/components/WebLink/index.mjs +26 -0
- package/dist/es/constant.mjs +96 -0
- package/dist/es/context.mjs +7 -0
- 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 +325 -0
- 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/@glodon-aiot/minio/dist/minio-zj.mjs +26485 -0
- package/dist/es/node_modules/@socket.io/component-emitter/lib/esm/index.mjs +54 -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/useUnmount/index.mjs +17 -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/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/base64-js/index.mjs +47 -0
- package/dist/es/node_modules/buffer/index.mjs +927 -0
- package/dist/es/node_modules/classnames/index.mjs +42 -0
- package/dist/es/node_modules/copy-to-clipboard/index.mjs +46 -0
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/has-cors.mjs +9 -0
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/parseqs.mjs +18 -0
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/parseuri.mjs +24 -0
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/yeast.mjs +19 -0
- package/dist/es/node_modules/engine.io-client/build/esm/globalThis.browser.mjs +4 -0
- package/dist/es/node_modules/engine.io-client/build/esm/socket.mjs +317 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transport.mjs +113 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/index.mjs +11 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/polling.mjs +273 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.mjs +8 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/websocket.mjs +87 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/webtransport.mjs +52 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.mjs +21 -0
- package/dist/es/node_modules/engine.io-client/build/esm/util.mjs +23 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/commons.mjs +21 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.mjs +14 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/decodePacket.browser.mjs +39 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/encodePacket.browser.mjs +28 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/index.mjs +105 -0
- package/dist/es/node_modules/ieee754/index.mjs +28 -0
- package/dist/es/node_modules/js-base64/base64.mjs +31 -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/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-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/socket.io-client/build/esm/contrib/backo2.mjs +26 -0
- package/dist/es/node_modules/socket.io-client/build/esm/index.mjs +25 -0
- package/dist/es/node_modules/socket.io-client/build/esm/manager.mjs +242 -0
- package/dist/es/node_modules/socket.io-client/build/esm/on.mjs +8 -0
- package/dist/es/node_modules/socket.io-client/build/esm/socket.mjs +608 -0
- package/dist/es/node_modules/socket.io-client/build/esm/url.mjs +19 -0
- package/dist/es/node_modules/socket.io-parser/build/esm/binary.mjs +52 -0
- package/dist/es/node_modules/socket.io-parser/build/esm/index.mjs +203 -0
- package/dist/es/node_modules/socket.io-parser/build/esm/is-binary.mjs +26 -0
- package/dist/es/node_modules/toggle-selection/index.mjs +25 -0
- package/dist/es/node_modules/tslib/tslib.es6.mjs +15 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/native.mjs +6 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/rng.mjs +10 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/stringify.mjs +9 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/v4.mjs +19 -0
- package/dist/es/packages/agent-cli-sdk/src/AgentSession.mjs +243 -0
- package/dist/es/packages/agent-cli-sdk/src/BotClient.mjs +242 -0
- package/dist/es/packages/agent-cli-sdk/src/Config.mjs +34 -0
- package/dist/es/packages/agent-cli-sdk/src/DialogSession.mjs +281 -0
- package/dist/es/packages/agent-cli-sdk/src/EventBus.mjs +64 -0
- package/dist/es/packages/agent-cli-sdk/src/Logger.mjs +31 -0
- package/dist/es/packages/agent-cli-sdk/src/PayloadTypes.mjs +4 -0
- package/dist/es/packages/agent-cli-sdk/src/Session.mjs +527 -0
- package/dist/es/packages/agent-cli-sdk/src/api/fetchEventSource/fetch.mjs +112 -0
- package/dist/es/packages/agent-cli-sdk/src/api/fetchEventSource/parse.mjs +97 -0
- package/dist/es/packages/agent-cli-sdk/src/api/index.mjs +48 -0
- package/dist/es/packages/agent-cli-sdk/src/utils.mjs +11 -0
- package/dist/es/packages/apis/dist/es/aecpilot/cosntant.mjs +5 -0
- package/dist/es/packages/apis/dist/es/aecpilot/model.mjs +9 -0
- package/dist/es/packages/apis/dist/es/aecpilotui/index.mjs +8 -0
- package/dist/es/packages/apis/dist/es/agentcliui/index.mjs +414 -0
- package/dist/es/packages/apis/dist/es/base/index.mjs +154 -0
- package/dist/es/packages/apis/dist/es/cvforce/index.mjs +431 -0
- package/dist/es/packages/apis/dist/es/cvforce/model.mjs +6 -0
- package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/native.mjs +6 -0
- package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/rng.mjs +10 -0
- package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/stringify.mjs +9 -0
- package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/v4.mjs +19 -0
- package/dist/es/packages/apis/dist/es/utils/fetchEventSource/fetch.mjs +106 -0
- package/dist/es/packages/apis/dist/es/utils/fetchEventSource/parse.mjs +97 -0
- package/dist/es/robots.txt +3 -0
- package/dist/es/style.less.mjs +4 -0
- package/dist/es/types.mjs +4 -0
- package/dist/es/utils/clipboard.mjs +38 -0
- package/dist/es/utils/index.mjs +33 -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 +169 -0
- 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/AgentClientUI.d.ts +4 -0
- package/dist/src/ConnectToNetwork/index.d.ts +13 -0
- package/dist/src/Dialog/AgentChat/index.d.ts +17 -0
- package/dist/src/Dialog/ChatEmptyView/index.d.ts +6 -0
- package/dist/src/Dialog/ConnectToNetwork/index.d.ts +13 -0
- package/dist/src/Dialog/FileCard/index.d.ts +22 -0
- package/dist/src/Dialog/FilePreview/index.d.ts +20 -0
- package/dist/src/Dialog/Greeting/index.d.ts +7 -0
- package/dist/src/Dialog/HistoryContent/index.d.ts +5 -0
- package/dist/src/Dialog/HistoryItem/index.d.ts +17 -0
- package/dist/src/Dialog/KnowledgeDoc/index.d.ts +9 -0
- package/dist/src/Dialog/KnowledgeList/KnowledgeSelect/index.d.ts +12 -0
- package/dist/src/Dialog/KnowledgeList/index.d.ts +13 -0
- package/dist/src/Dialog/PromptManager/PromptList/EditPromptModal/index.d.ts +11 -0
- package/dist/src/Dialog/PromptManager/PromptList/PrivatePromptList.d.ts +12 -0
- package/dist/src/Dialog/PromptManager/PromptList/PromptListItem.d.ts +13 -0
- package/dist/src/Dialog/PromptManager/PromptList/PublicPromptList.d.ts +12 -0
- package/dist/src/Dialog/PromptManager/index.d.ts +13 -0
- package/dist/src/Dialog/PromptSetting/index.d.ts +14 -0
- package/dist/src/Dialog/Recommend/RecommendItem.d.ts +12 -0
- package/dist/src/Dialog/Recommend/index.d.ts +14 -0
- package/dist/src/Dialog/ReferCollapse/index.d.ts +8 -0
- package/dist/src/Dialog/SearchReference/index.d.ts +7 -0
- package/dist/src/Dialog/SessionAction/index.d.ts +11 -0
- package/dist/src/Dialog/SessionList/index.d.ts +20 -0
- package/dist/src/Dialog/SessionListDrawer/HistorySessionList/NameEditPanel.d.ts +9 -0
- package/dist/src/Dialog/SessionListDrawer/HistorySessionList/SessionItem.d.ts +16 -0
- package/dist/src/Dialog/SessionListDrawer/HistorySessionList/index.d.ts +9 -0
- package/dist/src/Dialog/SessionListDrawer/index.d.ts +9 -0
- package/dist/src/Dialog/SessionRefer/ReferItem/index.d.ts +9 -0
- package/dist/src/Dialog/SessionRefer/index.d.ts +8 -0
- package/dist/src/Dialog/SessionRelated/index.d.ts +9 -0
- package/dist/src/Dialog/UploadFiles/ClearModal/index.d.ts +7 -0
- package/dist/src/Dialog/UploadFiles/index.d.ts +21 -0
- package/dist/src/Dialog/UploadKnowledgeFiles/ClearModal/index.d.ts +7 -0
- package/dist/src/Dialog/UploadKnowledgeFiles/index.d.ts +22 -0
- package/dist/src/Dialog/UploadingPrompt/index.d.ts +9 -0
- package/dist/src/Dialog/index.d.ts +9 -0
- package/dist/src/FileCard/index.d.ts +21 -0
- package/dist/src/FileItem/index.d.ts +11 -0
- package/dist/src/Footer/FooterWarning.d.ts +8 -0
- package/dist/src/Footer/index.d.ts +7 -0
- package/dist/src/Greeting/index.d.ts +7 -0
- package/dist/src/Iconfont/font_4108228_8te6zfkclqu.d.ts +0 -0
- package/dist/src/Iconfont/font_4439177_7rytwlvbmjj.d.ts +0 -0
- package/dist/src/Iconfont/index.d.ts +3 -0
- package/dist/src/InputProgress/index.d.ts +7 -0
- package/dist/src/QuillEditor/index.d.ts +19 -0
- package/dist/src/components/Copy/index.d.ts +5 -0
- package/dist/src/components/Header/index.d.ts +6 -0
- package/dist/src/components/JsonDisplay/index.d.ts +6 -0
- package/dist/src/components/Markdown/Code/index.d.ts +3 -0
- package/dist/src/components/Markdown/Image/index.d.ts +3 -0
- package/dist/src/components/Markdown/index.d.ts +6 -0
- package/dist/src/components/PDFViewer/index.d.ts +7 -0
- package/dist/src/components/WebLink/index.d.ts +7 -0
- package/dist/src/constant.d.ts +11 -0
- package/dist/src/context.d.ts +5 -0
- package/dist/src/index.d.ts +33 -0
- package/dist/src/types.d.ts +183 -0
- package/dist/src/utils/clipboard.d.ts +11 -0
- package/dist/src/utils/fetchEventSource/fetch.d.ts +44 -0
- package/dist/src/utils/fetchEventSource/index.d.ts +1 -0
- package/dist/src/utils/fetchEventSource/parse.d.ts +36 -0
- package/dist/src/utils/index.d.ts +17 -0
- package/package.json +138 -0
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"short_name": "gOS App",
|
|
3
|
+
"name": "gOS App Sample",
|
|
4
|
+
"icons": [
|
|
5
|
+
{
|
|
6
|
+
"src": "favicon.ico",
|
|
7
|
+
"sizes": "64x64 32x32 24x24 16x16",
|
|
8
|
+
"type": "image/x-icon"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"src": "logo192.png",
|
|
12
|
+
"type": "image/png",
|
|
13
|
+
"sizes": "192x192"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"src": "logo512.png",
|
|
17
|
+
"type": "image/png",
|
|
18
|
+
"sizes": "512x512"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"start_url": ".",
|
|
22
|
+
"display": "standalone",
|
|
23
|
+
"theme_color": "#ffffff",
|
|
24
|
+
"background_color": "#000000"
|
|
25
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare enum ActionColors {
|
|
3
|
+
default = "#070C14",
|
|
4
|
+
highlight = "#B452FF"
|
|
5
|
+
}
|
|
6
|
+
interface ConnectToNetworkProps {
|
|
7
|
+
sessionId?: string;
|
|
8
|
+
netStatus: boolean;
|
|
9
|
+
enable: boolean;
|
|
10
|
+
onNetStatusChange: (status: boolean) => any;
|
|
11
|
+
}
|
|
12
|
+
declare const ConnectToNetwork: React.FC<ConnectToNetworkProps>;
|
|
13
|
+
export default ConnectToNetwork;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React, Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { IApplication, ISessionParams } from '@glodon-aiot/apis';
|
|
3
|
+
import { Session } from '@glodon-aiot/agent-cli-sdk';
|
|
4
|
+
interface AgentChatProps {
|
|
5
|
+
embeddingService?: string;
|
|
6
|
+
docViewerUrl?: string;
|
|
7
|
+
application: IApplication;
|
|
8
|
+
currentSession?: Session;
|
|
9
|
+
resourceToken?: string;
|
|
10
|
+
onCreateSession?: (param: ISessionParams) => Promise<Session>;
|
|
11
|
+
footer?: HTMLDivElement | string | boolean;
|
|
12
|
+
setCurrentSession?: Dispatch<SetStateAction<Session | undefined>>;
|
|
13
|
+
networkStatus: boolean;
|
|
14
|
+
setNetworkStatus: Dispatch<SetStateAction<boolean>>;
|
|
15
|
+
}
|
|
16
|
+
declare const AgentChat: React.FC<AgentChatProps>;
|
|
17
|
+
export default AgentChat;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare enum ActionColors {
|
|
3
|
+
default = "#070C14",
|
|
4
|
+
highlight = "#B452FF"
|
|
5
|
+
}
|
|
6
|
+
interface ConnectToNetworkProps {
|
|
7
|
+
sessionId?: string;
|
|
8
|
+
netStatus: boolean;
|
|
9
|
+
enable: boolean;
|
|
10
|
+
onNetStatusChange: (status: boolean) => any;
|
|
11
|
+
}
|
|
12
|
+
declare const ConnectToNetwork: React.FC<ConnectToNetworkProps>;
|
|
13
|
+
export default ConnectToNetwork;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CSSProperties, FC } from 'react';
|
|
2
|
+
import { KnowledgeFileMetadata, KnowledgeFileStatus } from '@glodon-aiot/apis';
|
|
3
|
+
interface FileCardProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: CSSProperties;
|
|
6
|
+
id?: string;
|
|
7
|
+
url?: string;
|
|
8
|
+
uploading?: boolean;
|
|
9
|
+
file?: any;
|
|
10
|
+
actions?: {
|
|
11
|
+
upload?: (file: File) => Promise<string>;
|
|
12
|
+
remove?: (file?: File | KnowledgeFileMetadata, id?: string) => void;
|
|
13
|
+
download?: (file?: File | KnowledgeFileMetadata, id?: string) => void;
|
|
14
|
+
checkStatus?: (id: string) => Promise<KnowledgeFileStatus>;
|
|
15
|
+
preview?: (file: File) => void;
|
|
16
|
+
};
|
|
17
|
+
onUrlChange?: (url: string) => void;
|
|
18
|
+
onStatusChange?: (status: KnowledgeFileStatus) => void;
|
|
19
|
+
}
|
|
20
|
+
export type FileCardStatus = 'processing' | 'done' | 'error';
|
|
21
|
+
declare const FileCard: FC<FileCardProps>;
|
|
22
|
+
export default FileCard;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CSSProperties, FC } from 'react';
|
|
2
|
+
import { KnowledgeFileMetadata, AecKnowledgeFileStatus } from '@glodon-aiot/apis';
|
|
3
|
+
interface FileCardProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: CSSProperties;
|
|
6
|
+
id?: string;
|
|
7
|
+
url?: string;
|
|
8
|
+
uploading?: boolean;
|
|
9
|
+
file?: File | KnowledgeFileMetadata;
|
|
10
|
+
actions?: {
|
|
11
|
+
upload?: (file: File) => Promise<string>;
|
|
12
|
+
remove?: (file?: File | KnowledgeFileMetadata, id?: string) => void;
|
|
13
|
+
checkStatus?: (id: string) => Promise<AecKnowledgeFileStatus>;
|
|
14
|
+
};
|
|
15
|
+
onUrlChange?: (url: string) => void;
|
|
16
|
+
onStatusChange?: (status: AecKnowledgeFileStatus) => void;
|
|
17
|
+
}
|
|
18
|
+
export type FileCardStatus = 'processing' | 'done' | 'error';
|
|
19
|
+
declare const FileCard: FC<FileCardProps>;
|
|
20
|
+
export default FileCard;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IHistory, IApplication } from '@glodon-aiot/apis';
|
|
3
|
+
import { Session } from '@glodon-aiot/agent-cli-sdk';
|
|
4
|
+
interface HistoryItemProps {
|
|
5
|
+
application: IApplication;
|
|
6
|
+
currentSession?: Session;
|
|
7
|
+
isLastHistory?: boolean;
|
|
8
|
+
history: IHistory;
|
|
9
|
+
onRelatedClick?: (val: any) => void;
|
|
10
|
+
onAgainClick?: VoidFunction;
|
|
11
|
+
onEditClick?: (val: string) => void;
|
|
12
|
+
isLoading?: boolean;
|
|
13
|
+
docViewerUrl?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const isResultExec: (result?: string) => boolean;
|
|
16
|
+
declare const HistoryItem: React.FC<HistoryItemProps>;
|
|
17
|
+
export default HistoryItem;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IAecReference as IReference } from '@glodon-aiot/apis/src/aecpilot';
|
|
3
|
+
interface KnowledgeDocProps {
|
|
4
|
+
reference: IReference;
|
|
5
|
+
index: number;
|
|
6
|
+
type?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const KnowledgeDoc: React.FC<KnowledgeDocProps>;
|
|
9
|
+
export default KnowledgeDoc;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CheckboxValueType } from 'antd/es/checkbox/Group';
|
|
3
|
+
import { IKnowledge } from '@glodon-aiot/apis/dist/src/cvforce/model';
|
|
4
|
+
interface KnowledgeSelectProps {
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
checkedValues: CheckboxValueType[];
|
|
7
|
+
currKnowledgeList: IKnowledge[];
|
|
8
|
+
selectCount: number;
|
|
9
|
+
onSelectChange: (checkedValues: CheckboxValueType[]) => void;
|
|
10
|
+
}
|
|
11
|
+
declare const KnowledgeSelect: React.FC<KnowledgeSelectProps>;
|
|
12
|
+
export default KnowledgeSelect;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React, Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { IApplication } from '@glodon-aiot/apis';
|
|
3
|
+
import { Session } from '@glodon-aiot/agent-cli-sdk';
|
|
4
|
+
import { IKnowledge } from '@glodon-aiot/apis/dist/src/cvforce/model';
|
|
5
|
+
interface AgentHeaderProps {
|
|
6
|
+
application?: IApplication;
|
|
7
|
+
currentSession?: Session;
|
|
8
|
+
setCurrentSession?: Dispatch<SetStateAction<Session | undefined>>;
|
|
9
|
+
reload?: VoidFunction;
|
|
10
|
+
setCheckKnowledges?: Dispatch<SetStateAction<IKnowledge[]>>;
|
|
11
|
+
}
|
|
12
|
+
declare const AgentHeader: React.FC<AgentHeaderProps>;
|
|
13
|
+
export default AgentHeader;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IAecPrompt as IPrompt } from '@glodon-aiot/apis';
|
|
3
|
+
interface EditPromptModalProps {
|
|
4
|
+
appId: string;
|
|
5
|
+
isvisible: boolean;
|
|
6
|
+
record?: IPrompt;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
afterPromptChange?: (data: IPrompt) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const EditPromptModal: React.FC<EditPromptModalProps>;
|
|
11
|
+
export default EditPromptModal;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IAecPrompt as IPrompt } from '@glodon-aiot/apis';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
interface PrivatePromptListProps {
|
|
4
|
+
appId: string;
|
|
5
|
+
data?: IPrompt[];
|
|
6
|
+
search?: string;
|
|
7
|
+
onItemClick?: (data: IPrompt) => void;
|
|
8
|
+
onChange?: (list: IPrompt[]) => void;
|
|
9
|
+
onRefresh?: VoidFunction;
|
|
10
|
+
}
|
|
11
|
+
declare const PrivatePromptList: FC<PrivatePromptListProps>;
|
|
12
|
+
export default PrivatePromptList;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IAecPrompt as IPrompt, IPromptStatus } from '@glodon-aiot/apis';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
interface PromptListItemProps {
|
|
4
|
+
appId: string;
|
|
5
|
+
data: IPrompt;
|
|
6
|
+
highlight?: string;
|
|
7
|
+
onEdit?: (data: IPrompt) => void;
|
|
8
|
+
onDelete?: (id: string) => void;
|
|
9
|
+
onClick?: (data: IPrompt) => void;
|
|
10
|
+
onStatusChange?: (status: IPromptStatus, prompt: IPrompt) => void;
|
|
11
|
+
}
|
|
12
|
+
declare const PromptListItem: FC<PromptListItemProps>;
|
|
13
|
+
export default PromptListItem;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IAecPrompt as IPrompt } from '@glodon-aiot/apis';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
interface PublicPromptListProps {
|
|
4
|
+
appId: string;
|
|
5
|
+
data?: IPrompt[];
|
|
6
|
+
search?: string;
|
|
7
|
+
onItemClick?: (data: IPrompt) => void;
|
|
8
|
+
onChange?: (list: IPrompt[]) => void;
|
|
9
|
+
onRefresh?: VoidFunction;
|
|
10
|
+
}
|
|
11
|
+
declare const PublicPromptList: FC<PublicPromptListProps>;
|
|
12
|
+
export default PublicPromptList;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IAecPrompt as IPrompt } from '@glodon-aiot/apis';
|
|
3
|
+
interface PromptManagerProps {
|
|
4
|
+
appId: string;
|
|
5
|
+
list?: IPrompt[];
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
search?: string;
|
|
8
|
+
open?: boolean;
|
|
9
|
+
onClose?: VoidFunction;
|
|
10
|
+
onPromptSelect?: (data: IPrompt) => void;
|
|
11
|
+
}
|
|
12
|
+
declare const PromptManager: FC<PromptManagerProps>;
|
|
13
|
+
export default PromptManager;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React, Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { IAecSessionPrompt as ISessionPrompt } from '@glodon-aiot/apis';
|
|
3
|
+
import { Session } from '@glodon-aiot/agent-cli-sdk';
|
|
4
|
+
interface PromptSettingProps {
|
|
5
|
+
appId: string;
|
|
6
|
+
currentSession?: Session;
|
|
7
|
+
setPromptVariables: Dispatch<SetStateAction<ISessionPrompt[]>>;
|
|
8
|
+
promptVariables: ISessionPrompt[];
|
|
9
|
+
}
|
|
10
|
+
export interface PromptSettingtRef {
|
|
11
|
+
clear: () => void;
|
|
12
|
+
}
|
|
13
|
+
declare const PromptSetting: React.ForwardRefExoticComponent<PromptSettingProps & React.RefAttributes<PromptSettingtRef>>;
|
|
14
|
+
export default PromptSetting;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React, Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { IQuestion } from '@glodon-aiot/apis';
|
|
3
|
+
interface RecommendItemProps {
|
|
4
|
+
item: IQuestion;
|
|
5
|
+
isOnlyQuestion: boolean;
|
|
6
|
+
isRecommendClearing?: boolean;
|
|
7
|
+
question?: IQuestion;
|
|
8
|
+
setQuestion: Dispatch<SetStateAction<IQuestion | undefined>>;
|
|
9
|
+
onItemClick?: (question?: IQuestion) => void;
|
|
10
|
+
}
|
|
11
|
+
declare const RecommendItem: React.FC<RecommendItemProps>;
|
|
12
|
+
export default RecommendItem;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IQuestion } from '@glodon-aiot/apis';
|
|
3
|
+
interface RecommendProps {
|
|
4
|
+
sid?: string;
|
|
5
|
+
data?: IQuestion[];
|
|
6
|
+
isRecommendClearing?: boolean;
|
|
7
|
+
onChange?: (question: IQuestion) => void;
|
|
8
|
+
onItemClick?: (question?: IQuestion) => void;
|
|
9
|
+
}
|
|
10
|
+
export interface RecommendRef {
|
|
11
|
+
clear: () => void;
|
|
12
|
+
}
|
|
13
|
+
declare const Recommend: React.ForwardRefExoticComponent<RecommendProps & React.RefAttributes<RecommendRef>>;
|
|
14
|
+
export default Recommend;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IHistory } from '@glodon-aiot/apis';
|
|
3
|
+
interface SessionActionProps {
|
|
4
|
+
appId: string;
|
|
5
|
+
sessionId?: string;
|
|
6
|
+
isLastHistory?: boolean;
|
|
7
|
+
history: IHistory;
|
|
8
|
+
onAgainClick?: VoidFunction;
|
|
9
|
+
}
|
|
10
|
+
declare const SessionAction: React.FC<SessionActionProps>;
|
|
11
|
+
export default SessionAction;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React, Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { Session } from '@glodon-aiot/agent-cli-sdk';
|
|
3
|
+
import { IKnowledge } from '@glodon-aiot/apis/dist/src/cvforce/model';
|
|
4
|
+
import { IApplication, ISessionParams } from '@glodon-aiot/apis';
|
|
5
|
+
interface SessionListProps {
|
|
6
|
+
appId: string;
|
|
7
|
+
application?: IApplication;
|
|
8
|
+
sider?: boolean;
|
|
9
|
+
networkStatus: boolean;
|
|
10
|
+
currentSession?: Session;
|
|
11
|
+
setCurrentSession?: Dispatch<SetStateAction<Session | undefined>>;
|
|
12
|
+
reload?: VoidFunction;
|
|
13
|
+
checkKnowledges?: IKnowledge[];
|
|
14
|
+
setCheckKnowledges?: Dispatch<SetStateAction<IKnowledge[]>>;
|
|
15
|
+
}
|
|
16
|
+
export interface SessionListRef {
|
|
17
|
+
create: (param: ISessionParams) => Promise<Session> | any;
|
|
18
|
+
}
|
|
19
|
+
declare const SessionList: React.ForwardRefExoticComponent<SessionListProps & React.RefAttributes<SessionListRef>>;
|
|
20
|
+
export default SessionList;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Session } from '@glodon-aiot/agent-cli-sdk';
|
|
3
|
+
interface NameEditPanelProps {
|
|
4
|
+
session: Session;
|
|
5
|
+
onChangeEditStatus: (sessionId: any, status: any) => void;
|
|
6
|
+
onEditNameConfirm: (session: any, value: any) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const NameEditPanel: FC<NameEditPanelProps>;
|
|
9
|
+
export default NameEditPanel;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Session } from '@glodon-aiot/agent-cli-sdk';
|
|
3
|
+
interface SessionItemProps {
|
|
4
|
+
session: Session;
|
|
5
|
+
index: number;
|
|
6
|
+
currentSessionId: string;
|
|
7
|
+
onChangeSession: (session: any) => void;
|
|
8
|
+
onDelSession: (session: any, e: any) => void;
|
|
9
|
+
onTopSession: (session: any, status: any) => void;
|
|
10
|
+
onEditNameConfirm: (session: any, value: string) => void;
|
|
11
|
+
editSessionId: string;
|
|
12
|
+
isEdit: boolean;
|
|
13
|
+
onChangeEditStatus: (sessionId: any, status: any) => void;
|
|
14
|
+
}
|
|
15
|
+
declare const SessionItem: FC<SessionItemProps>;
|
|
16
|
+
export default SessionItem;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Session } from '@glodon-aiot/agent-cli-sdk';
|
|
3
|
+
interface HistorySessionListProps {
|
|
4
|
+
currentSessionId: string;
|
|
5
|
+
onSessionChange?: (sessionId: string, session?: Session) => void;
|
|
6
|
+
onClose: VoidFunction;
|
|
7
|
+
}
|
|
8
|
+
declare const HistorySessionList: FC<HistorySessionListProps>;
|
|
9
|
+
export default HistorySessionList;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Session } from '@glodon-aiot/agent-cli-sdk';
|
|
3
|
+
interface SessionListProps {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
currentSessionId?: string;
|
|
6
|
+
onSessionChange?: (sessionId: string, session?: Session) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const SessionList: FC<SessionListProps>;
|
|
9
|
+
export default SessionList;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC, Key } from 'react';
|
|
2
|
+
import { IAecReference as IReference } from '@glodon-aiot/apis';
|
|
3
|
+
interface ReferItemProps {
|
|
4
|
+
data: IReference;
|
|
5
|
+
loadPage?: (knowledgeId: string, fileId: string, textId: string) => Promise<Key>;
|
|
6
|
+
onClick: (data: IReference, page?: Key) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const ReferItem: FC<ReferItemProps>;
|
|
9
|
+
export default ReferItem;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IHistory } from '@glodon-aiot/apis';
|
|
3
|
+
interface SessionRelatedProps {
|
|
4
|
+
history?: IHistory;
|
|
5
|
+
onRelatedClick?: (val: any) => void;
|
|
6
|
+
relatedQuesion: string[];
|
|
7
|
+
}
|
|
8
|
+
declare const SessionRelated: React.FC<SessionRelatedProps>;
|
|
9
|
+
export default SessionRelated;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface UploadRefProps {
|
|
3
|
+
update: () => void;
|
|
4
|
+
clear: () => Promise<void>;
|
|
5
|
+
}
|
|
6
|
+
export type FileStatus = 'successed' | 'process' | 'failed' | '';
|
|
7
|
+
interface UploadFilesProps {
|
|
8
|
+
appId: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
onStatusChange: (status: FileStatus) => void;
|
|
11
|
+
createSession: () => Promise<string>;
|
|
12
|
+
sessionId?: string;
|
|
13
|
+
afterFileAdd?: (fileId: any, sid?: string) => void;
|
|
14
|
+
afterFileDelete?: (fileId: any) => void;
|
|
15
|
+
onFileListChange?: (files: any[]) => void;
|
|
16
|
+
shouldContinue?: boolean;
|
|
17
|
+
afterFilesClear?: () => void;
|
|
18
|
+
docViewerUrl: string;
|
|
19
|
+
}
|
|
20
|
+
declare const UploadFiles: React.ForwardRefExoticComponent<UploadFilesProps & React.RefAttributes<UploadRefProps>>;
|
|
21
|
+
export default UploadFiles;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface UploadRefProps {
|
|
3
|
+
update: () => Promise<void>;
|
|
4
|
+
clear: () => Promise<void>;
|
|
5
|
+
}
|
|
6
|
+
export type FileStatus = 'successed' | 'process' | 'failed' | '';
|
|
7
|
+
interface UploadFilesProps {
|
|
8
|
+
appId: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
onStatusChange: (status: FileStatus) => void;
|
|
11
|
+
createSession: () => Promise<string>;
|
|
12
|
+
sid?: string;
|
|
13
|
+
afterFileAdd?: (fileId: any, sid?: string) => void;
|
|
14
|
+
afterFileDelete?: (fileId: any) => void;
|
|
15
|
+
onFileListChange?: (files: any[]) => void;
|
|
16
|
+
shouldContinue?: boolean;
|
|
17
|
+
afterFilesClear?: () => void;
|
|
18
|
+
docViewerUrl: string;
|
|
19
|
+
isFirstSession?: boolean;
|
|
20
|
+
}
|
|
21
|
+
declare const UploadFiles: React.ForwardRefExoticComponent<UploadFilesProps & React.RefAttributes<UploadRefProps>>;
|
|
22
|
+
export default UploadFiles;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CSSProperties, FC } from 'react';
|
|
2
|
+
import { KnowledgeFileMetadata, KnowledgeFileStatus } from '@glodon-aiot/apis';
|
|
3
|
+
interface FileCardProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: CSSProperties;
|
|
6
|
+
id?: string;
|
|
7
|
+
url?: string;
|
|
8
|
+
uploading?: boolean;
|
|
9
|
+
file?: any;
|
|
10
|
+
actions?: {
|
|
11
|
+
upload?: (file: File) => Promise<string>;
|
|
12
|
+
remove?: (file?: File | KnowledgeFileMetadata, id?: string) => void;
|
|
13
|
+
download?: (file?: File | KnowledgeFileMetadata, id?: string) => void;
|
|
14
|
+
checkStatus?: (id: string) => Promise<KnowledgeFileStatus>;
|
|
15
|
+
};
|
|
16
|
+
onUrlChange?: (url: string) => void;
|
|
17
|
+
onStatusChange?: (status: KnowledgeFileStatus) => void;
|
|
18
|
+
}
|
|
19
|
+
export type FileCardStatus = 'processing' | 'done' | 'error';
|
|
20
|
+
declare const FileCard: FC<FileCardProps>;
|
|
21
|
+
export default FileCard;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { KnowledgeFileMetadata } from '@glodon-aiot/apis';
|
|
3
|
+
import { Session } from '@glodon-aiot/agent-cli-sdk';
|
|
4
|
+
interface FileItemProp {
|
|
5
|
+
currentSession?: Session;
|
|
6
|
+
fileId?: string;
|
|
7
|
+
file?: KnowledgeFileMetadata;
|
|
8
|
+
docViewerUrl?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const FileItem: FC<FileItemProp>;
|
|
11
|
+
export default FileItem;
|
|
File without changes
|
|
File without changes
|