From f1ca947e5b404d112ceb1d9092b0ea942ef2509e Mon Sep 17 00:00:00 2001 From: Reza Rahemtola Date: Wed, 7 Aug 2024 15:12:04 +0200 Subject: [PATCH] fix: style --- package-lock.json | 449 ++++++++++++++++---------- package.json | 14 +- src/components/MessageInput.vue | 5 +- src/pages/KnowledgeBase.vue | 14 +- src/pages/KnowledgeBasesList.vue | 2 +- src/stores/knowledge.ts | 6 +- src/utils/aleph-persistent-storage.ts | 5 +- src/utils/knowledge/parsing.ts | 2 + 8 files changed, 319 insertions(+), 178 deletions(-) diff --git a/package-lock.json b/package-lock.json index bf94bc1..17c9ae2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,28 +15,28 @@ "@libertai/libertai-js": "file:../libertai-js/libertai-libertai-js-0.0.10.tgz", "@quasar/extras": "^1.16.12", "@tanstack/vue-query": "^5.51.21", - "@wagmi/vue": "^0.0.34", + "@wagmi/vue": "^0.0.36", "axios": "^1.7.3", "dayjs": "^1.11.12", "dompurify": "^3.1.6", "eciesjs": "^0.4.7", "filesize": "^10.1.4", "highlight.js": "^11.10.0", - "langchain": "^0.2.12", + "langchain": "^0.2.13", "localforage": "^1.10.0", - "marked": "^13.0.3", - "marked-highlight": "^2.1.3", + "marked": "^14.0.0", + "marked-highlight": "^2.1.4", "mime": "^4.0.4", "ml-distance": "^4.0.1", "pdfjs-dist": "^4.5.136", "pinia": "^2.2.1", "pinia-plugin-persistedstate": "^3.2.1", - "quasar": "^2.16.7", + "quasar": "^2.16.8", "stream": "^0.0.3", "uuid": "^10.0.0", - "viem": "^2.18.8", + "viem": "^2.19.1", "vue": "^3.4.36", - "vue-router": "^4.4.2", + "vue-router": "^4.4.3", "web3": "^4.11.1", "zod": "^3.23.8" }, @@ -3671,23 +3671,20 @@ } }, "node_modules/@langchain/core": { - "version": "0.1.63", - "resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.1.63.tgz", - "integrity": "sha512-+fjyYi8wy6x1P+Ee1RWfIIEyxd9Ee9jksEwvrggPwwI/p45kIDTdYTblXsM13y4mNWTiACyLSdbwnPaxxdoz+w==", + "version": "0.2.21", + "resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.2.21.tgz", + "integrity": "sha512-NQaoiRG4lIAJKAlo1Ww/aLcC3azfXymHAmWPAJOFcugsOSXYlrj050hilZdLzHrpliS4vDMezHNSaCf+H0CInQ==", "license": "MIT", - "optional": true, - "peer": true, "dependencies": { "ansi-styles": "^5.0.0", "camelcase": "6", "decamelize": "1.2.0", "js-tiktoken": "^1.0.12", - "langsmith": "~0.1.7", - "ml-distance": "^4.0.0", + "langsmith": "~0.1.39", "mustache": "^4.2.0", "p-queue": "^6.6.2", "p-retry": "4", - "uuid": "^9.0.0", + "uuid": "^10.0.0", "zod": "^3.22.4", "zod-to-json-schema": "^3.22.3" }, @@ -3700,8 +3697,6 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "license": "MIT", - "optional": true, - "peer": true, "engines": { "node": ">=10" }, @@ -3709,21 +3704,6 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@langchain/core/node_modules/uuid": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", - "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "license": "MIT", - "optional": true, - "peer": true, - "bin": { - "uuid": "dist/bin/uuid" - } - }, "node_modules/@langchain/textsplitters": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/@langchain/textsplitters/-/textsplitters-0.0.3.tgz", @@ -3737,41 +3717,6 @@ "node": ">=18" } }, - "node_modules/@langchain/textsplitters/node_modules/@langchain/core": { - "version": "0.2.18", - "resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.2.18.tgz", - "integrity": "sha512-ru542BwNcsnDfjTeDbIkFIchwa54ctHZR+kVrC8U9NPS9/36iM8p8ruprOV7Zccj/oxtLE5UpEhV+9MZhVcFlA==", - "license": "MIT", - "dependencies": { - "ansi-styles": "^5.0.0", - "camelcase": "6", - "decamelize": "1.2.0", - "js-tiktoken": "^1.0.12", - "langsmith": "~0.1.39", - "ml-distance": "^4.0.0", - "mustache": "^4.2.0", - "p-queue": "^6.6.2", - "p-retry": "4", - "uuid": "^10.0.0", - "zod": "^3.22.4", - "zod-to-json-schema": "^3.22.3" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/@langchain/textsplitters/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, "node_modules/@libertai/libertai-js": { "version": "0.0.10", "resolved": "file:../libertai-js/libertai-libertai-js-0.0.10.tgz", @@ -3785,9 +3730,9 @@ } }, "node_modules/@lit-labs/ssr-dom-shim": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.2.0.tgz", - "integrity": "sha512-yWJKmpGE6lUURKAaIltoPIE/wrbY3TEkqQt+X0m+7fQNnAv0keydnYvbiJFP1PnMhizmIWRWOG5KLhYyc/xl+g==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.2.1.tgz", + "integrity": "sha512-wx4aBmgeGvFmOKucFKY+8VFJSYZxs9poN3SDNQFF6lT6NrQUnHiPB2PWz2sc4ieEcAaYYzN+1uWahEeTq2aRIQ==", "license": "BSD-3-Clause" }, "node_modules/@lit/reactive-element": { @@ -4425,6 +4370,26 @@ "@parcel/watcher-win32-x64": "2.4.1" } }, + "node_modules/@parcel/watcher-android-arm64": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.4.1.tgz", + "integrity": "sha512-LOi/WTbbh3aTn2RYddrO8pnapixAziFl6SMxHM69r3tvdSm94JtCenaKgk1GRg5FJ5wpMCpHeW+7yqPlvZv7kg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, "node_modules/@parcel/watcher-darwin-arm64": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.4.1.tgz", @@ -4445,6 +4410,146 @@ "url": "https://opencollective.com/parcel" } }, + "node_modules/@parcel/watcher-darwin-x64": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.4.1.tgz", + "integrity": "sha512-yrw81BRLjjtHyDu7J61oPuSoeYWR3lDElcPGJyOvIXmor6DEo7/G2u1o7I38cwlcoBHQFULqF6nesIX3tsEXMg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-freebsd-x64": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.4.1.tgz", + "integrity": "sha512-TJa3Pex/gX3CWIx/Co8k+ykNdDCLx+TuZj3f3h7eOjgpdKM+Mnix37RYsYU4LHhiYJz3DK5nFCCra81p6g050w==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-glibc": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.4.1.tgz", + "integrity": "sha512-4rVYDlsMEYfa537BRXxJ5UF4ddNwnr2/1O4MHM5PjI9cvV2qymvhwZSFgXqbS8YoTk5i/JR0L0JDs69BUn45YA==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-glibc": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.4.1.tgz", + "integrity": "sha512-BJ7mH985OADVLpbrzCLgrJ3TOpiZggE9FMblfO65PlOCdG++xJpKUJ0Aol74ZUIYfb8WsRlUdgrZxKkz3zXWYA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-musl": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.4.1.tgz", + "integrity": "sha512-p4Xb7JGq3MLgAfYhslU2SjoV9G0kI0Xry0kuxeG/41UfpjHGOhv7UoUDAz/jb1u2elbhazy4rRBL8PegPJFBhA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-glibc": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.4.1.tgz", + "integrity": "sha512-s9O3fByZ/2pyYDPoLM6zt92yu6P4E39a03zvO0qCHOTjxmt3GHRMLuRZEWhWLASTMSrrnVNWdVI/+pUElJBBBg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-musl": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.4.1.tgz", + "integrity": "sha512-L2nZTYR1myLNST0O632g0Dx9LyMNHrn6TOt76sYxWLdff3cB22/GZX2UPtJnaqQPdCRoszoY5rcOj4oMTtp5fQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, "node_modules/@parcel/watcher-wasm": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/@parcel/watcher-wasm/-/watcher-wasm-2.4.1.tgz", @@ -4471,23 +4576,65 @@ "inBundle": true, "license": "MIT" }, - "node_modules/@parcel/watcher/node_modules/detect-libc": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", - "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==", - "license": "Apache-2.0", - "bin": { - "detect-libc": "bin/detect-libc.js" + "node_modules/@parcel/watcher-win32-arm64": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.4.1.tgz", + "integrity": "sha512-Uq2BPp5GWhrq/lcuItCHoqxjULU1QYEcyjSO5jqqOK8RNFDBQnenMMx4gAl3v8GiWa59E9+uDM7yZ6LxwUIfRg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-ia32": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.4.1.tgz", + "integrity": "sha512-maNRit5QQV2kgHFSYwftmPBxiuK5u4DXjbXx7q6eKjq5dsLXZ4FJiVvlcw35QXzk0KrUecJmuVFbj4uV9oYrcw==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], "engines": { - "node": ">=0.10" + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" } }, - "node_modules/@parcel/watcher/node_modules/node-addon-api": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", - "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", - "license": "MIT" + "node_modules/@parcel/watcher-win32-x64": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.4.1.tgz", + "integrity": "sha512-+DvS92F9ezicfswqrvIRM2njcYJbd5mb9CUgtrHCHmvn7pPPa+nMDRu1o1bYYz/l5IB2NVGNJWiH7h1E58IF2A==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } }, "node_modules/@pkgjs/parseargs": { "version": "0.11.0", @@ -5986,9 +6133,9 @@ } }, "node_modules/@types/yargs": { - "version": "17.0.32", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", - "integrity": "sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==", + "version": "17.0.33", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", + "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", "license": "MIT", "peer": true, "dependencies": { @@ -6651,9 +6798,9 @@ "license": "MIT" }, "node_modules/@wagmi/connectors": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/@wagmi/connectors/-/connectors-5.1.2.tgz", - "integrity": "sha512-UX5LqDdGXrTdHBpL9wrJbcjK7/rtpOjx6YSIkO26TdPp6UyxQvEmY2XY6hdgBwHVx9xPaiVNIrWoexa5pRJUNA==", + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/@wagmi/connectors/-/connectors-5.1.4.tgz", + "integrity": "sha512-LY8RAHy5ichhc7zknFrfrQ3RYZ/fHGgojBz0zMFae5rRrjkR3fG4gRQ9mauPwykGJmOSZshGiFryG1F1gLBm3A==", "license": "MIT", "dependencies": { "@coinbase/wallet-sdk": "4.0.4", @@ -6668,7 +6815,7 @@ "url": "https://github.com/sponsors/wevm" }, "peerDependencies": { - "@wagmi/core": "2.13.1", + "@wagmi/core": "2.13.3", "typescript": ">=5.0.4", "viem": "2.x" }, @@ -6679,9 +6826,9 @@ } }, "node_modules/@wagmi/core": { - "version": "2.13.1", - "resolved": "https://registry.npmjs.org/@wagmi/core/-/core-2.13.1.tgz", - "integrity": "sha512-6ZdgI6dYfpa+IZPU0DZ3XQEQVzs003tKCERzSUNkxmt5cwSMg0XB1kvF5vU9MuPP96K6IcGkqSwAtgCmM5uy2w==", + "version": "2.13.3", + "resolved": "https://registry.npmjs.org/@wagmi/core/-/core-2.13.3.tgz", + "integrity": "sha512-4DqHTeqXHAjwWz6fftLm9zy8Bqy10D3nsCKtaluY0TPw+tSypDSxvzqTauPPasbmJOGfvx2rwXuoI/yqPwwG4w==", "license": "MIT", "dependencies": { "eventemitter3": "5.0.1", @@ -6706,13 +6853,13 @@ } }, "node_modules/@wagmi/vue": { - "version": "0.0.34", - "resolved": "https://registry.npmjs.org/@wagmi/vue/-/vue-0.0.34.tgz", - "integrity": "sha512-84cD2bRP+vxP1va/Abk4CdwplgGaMAHVdFtk1MjUXGGDqvIwcdOtJ4nPh/rHdrvUgn8JNqda76ZXN+2QHXlTIg==", + "version": "0.0.36", + "resolved": "https://registry.npmjs.org/@wagmi/vue/-/vue-0.0.36.tgz", + "integrity": "sha512-SLlzlOldMTfJL6lRIH12exRf3/1rf0SLhMIxqHT1lla91x6536wihHjht58ixeqH8k3LzQ39rgoVnZTZScTL7g==", "license": "MIT", "dependencies": { - "@wagmi/connectors": "5.1.2", - "@wagmi/core": "2.13.1" + "@wagmi/connectors": "5.1.4", + "@wagmi/core": "2.13.3" }, "funding": { "url": "https://github.com/sponsors/wevm" @@ -9302,6 +9449,18 @@ "integrity": "sha512-53rsFbGdwMwlF7qvCt0ypLM5V5/Mbl0szB7GPN8y9NCcbknYOeVVXdrXEq+90IwAfrrzt6Hd+u2E2ntakICU8w==", "license": "MIT" }, + "node_modules/detect-libc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==", + "license": "Apache-2.0", + "bin": { + "detect-libc": "bin/detect-libc.js" + }, + "engines": { + "node": ">=0.10" + } + }, "node_modules/didyoumean": { "version": "1.2.2", "dev": true, @@ -12052,21 +12211,19 @@ "license": "MIT" }, "node_modules/langchain": { - "version": "0.2.12", - "resolved": "https://registry.npmjs.org/langchain/-/langchain-0.2.12.tgz", - "integrity": "sha512-ZHtJrHUpridZ7IQu7N/wAQ6iMAAO7VLzkupHqKP79S6p+alrPbn1BjRnh+PeGm92YiY5DafTCuvchmujxx7bCQ==", + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/langchain/-/langchain-0.2.13.tgz", + "integrity": "sha512-PQoDLEoFPyeqUE8YS+Eoxo8F+6ltNeJv/ijiNGp/eomHnVxHkqTXqc9/JK6bii6O/WryOClT7kVNPpVrMNNdzg==", "license": "MIT", "dependencies": { - "@langchain/core": ">=0.2.11 <0.3.0", + "@langchain/core": ">=0.2.21 <0.3.0", "@langchain/openai": ">=0.1.0 <0.3.0", "@langchain/textsplitters": "~0.0.0", "binary-extensions": "^2.2.0", "js-tiktoken": "^1.0.12", "js-yaml": "^4.1.0", "jsonpointer": "^5.0.1", - "langchainhub": "~0.0.8", - "langsmith": "~0.1.30", - "ml-distance": "^4.0.0", + "langsmith": "~0.1.40", "openapi-types": "^12.1.3", "p-retry": "4", "uuid": "^10.0.0", @@ -12317,28 +12474,6 @@ } } }, - "node_modules/langchain/node_modules/@langchain/core": { - "version": "0.2.20", - "resolved": "https://registry.npmjs.org/@langchain/core/-/core-0.2.20.tgz", - "integrity": "sha512-WPBjrzOj79/yqjloDUIw1GDhuRQfHis07TyyDj+qS81nHh0svSasetKcqAZ3L5JoPcBmEL7rRBtM+OcyC3mLVg==", - "license": "MIT", - "dependencies": { - "ansi-styles": "^5.0.0", - "camelcase": "6", - "decamelize": "1.2.0", - "js-tiktoken": "^1.0.12", - "langsmith": "~0.1.39", - "mustache": "^4.2.0", - "p-queue": "^6.6.2", - "p-retry": "4", - "uuid": "^10.0.0", - "zod": "^3.22.4", - "zod-to-json-schema": "^3.22.3" - }, - "engines": { - "node": ">=18" - } - }, "node_modules/langchain/node_modules/@langchain/openai": { "version": "0.2.5", "resolved": "https://registry.npmjs.org/@langchain/openai/-/openai-0.2.5.tgz", @@ -12355,24 +12490,6 @@ "node": ">=18" } }, - "node_modules/langchain/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/langchainhub": { - "version": "0.0.11", - "resolved": "https://registry.npmjs.org/langchainhub/-/langchainhub-0.0.11.tgz", - "integrity": "sha512-WnKI4g9kU2bHQP136orXr2bcRdgz9iiTBpTN0jWt9IlScUKnJBoD0aa2HOzHURQKeQDnt2JwqVmQ6Depf5uDLQ==", - "license": "MIT" - }, "node_modules/langsmith": { "version": "0.1.41", "resolved": "https://registry.npmjs.org/langsmith/-/langsmith-0.1.41.tgz", @@ -12892,9 +13009,9 @@ } }, "node_modules/marked": { - "version": "13.0.3", - "resolved": "https://registry.npmjs.org/marked/-/marked-13.0.3.tgz", - "integrity": "sha512-rqRix3/TWzE9rIoFGIn8JmsVfhiuC8VIQ8IdX5TfzmeBucdY05/0UlzKaw0eVtpcN/OdVFpBk7CjKGo9iHJ/zA==", + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/marked/-/marked-14.0.0.tgz", + "integrity": "sha512-uIj4+faQ+MgHgwUW1l2PsPglZLOLOT1uErt06dAPtx2kjteLAkbsd/0FiYg/MGS+i7ZKLb7w2WClxHkzOOuryQ==", "license": "MIT", "bin": { "marked": "bin/marked.js" @@ -12904,10 +13021,12 @@ } }, "node_modules/marked-highlight": { - "version": "2.1.3", + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/marked-highlight/-/marked-highlight-2.1.4.tgz", + "integrity": "sha512-D1GOkcdzP+1dzjoColL7umojefFrASDuLeyaHS0Zr/Uo9jkr1V6vpLRCzfi1djmEaWyK0SYMFtHnpkZ+cwFT1w==", "license": "MIT", "peerDependencies": { - "marked": ">=4 <14" + "marked": ">=4 <15" } }, "node_modules/marky": { @@ -13692,9 +13811,9 @@ "peer": true }, "node_modules/node-addon-api": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz", - "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", + "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", "license": "MIT" }, "node_modules/node-dir": { @@ -15091,9 +15210,9 @@ } }, "node_modules/quasar": { - "version": "2.16.7", - "resolved": "https://registry.npmjs.org/quasar/-/quasar-2.16.7.tgz", - "integrity": "sha512-Q5CCJkxna7MrBft3Iy7O9px/CQYy9Hz1Y5RyKcg/nxMsjlrpCrW9arnXIzac0qPsUE0JqyePHJ1roShhNkeMFA==", + "version": "2.16.8", + "resolved": "https://registry.npmjs.org/quasar/-/quasar-2.16.8.tgz", + "integrity": "sha512-vxWKXoMEzxNw208W1hANsPzvPg4RKGuhNgwX4US4Uqwy6uKAXhxnyU9Yh4J1lXGzX2z+3hnV98DaQ5wYSioxtQ==", "license": "MIT", "engines": { "node": ">= 10.18.1", @@ -15865,6 +15984,12 @@ "node": ">=14.0.0" } }, + "node_modules/secp256k1/node_modules/node-addon-api": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz", + "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==", + "license": "MIT" + }, "node_modules/selfsigned": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.4.1.tgz", @@ -17252,9 +17377,9 @@ } }, "node_modules/viem": { - "version": "2.18.8", - "resolved": "https://registry.npmjs.org/viem/-/viem-2.18.8.tgz", - "integrity": "sha512-Fi5d9fd/LBiVtJ5eV2c99yrdt4dJH5Vbkf2JajwCqHYuV4ErSk/sm+L6Ru3rzT67rfRHSOQibTZxByEBua/WLw==", + "version": "2.19.1", + "resolved": "https://registry.npmjs.org/viem/-/viem-2.19.1.tgz", + "integrity": "sha512-a0ca/ACEz3FRZB3OmiSfRUogWZGQh700wu7Pg3GmAWiGD+0PS9bVaWG67JQ+9azFZLq0BU/m0t2CeWd3xi8IzQ==", "funding": [ { "type": "github", @@ -17615,9 +17740,9 @@ } }, "node_modules/vue-router": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.4.2.tgz", - "integrity": "sha512-1qNybkn2L7QsLzaXs8nvlQmRKp8XF8DCxZys/Jr1JpQcHsKUxTKzTxCVA1G7NfBfwRIBgCJPoujOG5lHCCNUxw==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.4.3.tgz", + "integrity": "sha512-sv6wmNKx2j3aqJQDMxLFzs/u/mjA9Z5LCgy6BE0f7yFWMjrPLnS/sPNn8ARY/FXw6byV18EFutn5lTO6+UsV5A==", "license": "MIT", "dependencies": { "@vue/devtools-api": "^6.6.3" diff --git a/package.json b/package.json index d851e31..7760284 100644 --- a/package.json +++ b/package.json @@ -26,28 +26,28 @@ "@libertai/libertai-js": "file:../libertai-js/libertai-libertai-js-0.0.10.tgz", "@quasar/extras": "^1.16.12", "@tanstack/vue-query": "^5.51.21", - "@wagmi/vue": "^0.0.34", + "@wagmi/vue": "^0.0.36", "axios": "^1.7.3", "dayjs": "^1.11.12", "dompurify": "^3.1.6", "eciesjs": "^0.4.7", "filesize": "^10.1.4", "highlight.js": "^11.10.0", - "langchain": "^0.2.12", + "langchain": "^0.2.13", "localforage": "^1.10.0", - "marked": "^13.0.3", - "marked-highlight": "^2.1.3", + "marked": "^14.0.0", + "marked-highlight": "^2.1.4", "mime": "^4.0.4", "ml-distance": "^4.0.1", "pdfjs-dist": "^4.5.136", "pinia": "^2.2.1", "pinia-plugin-persistedstate": "^3.2.1", - "quasar": "^2.16.7", + "quasar": "^2.16.8", "stream": "^0.0.3", "uuid": "^10.0.0", - "viem": "^2.18.8", + "viem": "^2.19.1", "vue": "^3.4.36", - "vue-router": "^4.4.2", + "vue-router": "^4.4.3", "web3": "^4.11.1", "zod": "^3.23.8" }, diff --git a/src/components/MessageInput.vue b/src/components/MessageInput.vue index 44753d5..db2edac 100644 --- a/src/components/MessageInput.vue +++ b/src/components/MessageInput.vue @@ -53,7 +53,7 @@ import { ref } from 'vue'; -import { processAttachment } from 'src/utils/knowledge/attachments'; import { MessageAttachment, SendMessageParams } from 'src/types/chats'; +import { processAttachment } from 'src/utils/knowledge/attachments'; import { useQuasar } from 'quasar'; import LtaiIcon from 'components/libertai/LtaiIcon.vue'; +import { supportedInputFiles } from 'src/utils/knowledge/parsing'; const props = defineProps({ isLoading: { diff --git a/src/pages/KnowledgeBase.vue b/src/pages/KnowledgeBase.vue index fc8665d..b45c5f5 100644 --- a/src/pages/KnowledgeBase.vue +++ b/src/pages/KnowledgeBase.vue @@ -1,5 +1,5 @@