From 5aa12cede50956eec358703f25d89a3eb9b4aa78 Mon Sep 17 00:00:00 2001 From: Reza Rahemtola Date: Sat, 20 Jul 2024 01:18:35 +0200 Subject: [PATCH] feat(chats): Migration setup --- package-lock.json | 14 +++---- package.json | 4 +- src/pages/Chat.vue | 10 ++--- src/pages/NewChat.vue | 10 ++--- src/pages/PersonaManagement.vue | 6 +-- src/stores/chats.ts | 55 ++++++++++++++++++---------- src/types/chats.ts | 27 ++++++++++++++ src/types/personas.ts | 12 ++++++ src/utils/chat.ts | 6 +-- src/utils/migrations/chats/chat_0.ts | 12 ++++++ src/utils/migrations/chats/index.ts | 4 ++ src/utils/personas.ts | 15 +------- 12 files changed, 118 insertions(+), 57 deletions(-) create mode 100644 src/types/chats.ts create mode 100644 src/types/personas.ts create mode 100644 src/utils/migrations/chats/chat_0.ts create mode 100644 src/utils/migrations/chats/index.ts diff --git a/package-lock.json b/package-lock.json index 5161fb9..5381b0c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,10 +12,10 @@ "@aleph-sdk/client": "^1.0.6", "@aleph-sdk/ethereum": "^1.0.3", "@aleph-sdk/message": "^1.0.7", - "@libertai/libertai-js": "file:../libertai-js/libertai-libertai-js-0.0.8.tgz", + "@libertai/libertai-js": "0.0.8", "@quasar/extras": "^1.16.12", "@tanstack/vue-query": "^5.51.9", - "@wagmi/vue": "^0.0.30", + "@wagmi/vue": "^0.0.31", "axios": "^1.7.2", "dompurify": "^3.1.6", "highlight.js": "^11.10.0", @@ -4530,8 +4530,8 @@ }, "node_modules/@libertai/libertai-js": { "version": "0.0.8", - "resolved": "file:../libertai-js/libertai-libertai-js-0.0.8.tgz", - "integrity": "sha512-EavtUHxyyJDXcBk9VkHC3GthkHb1ya+P+mw//JqV3dW544x4/oEZiHEfjRUf8piZiJE9sG04RG1ZjtL2/9geDg==", + "resolved": "https://registry.npmjs.org/@libertai/libertai-js/-/libertai-js-0.0.8.tgz", + "integrity": "sha512-SDSf/tXfFI2V6LEDTNwGKuxUGBWPfDSz34+6CMSqGp6VVojV6iqLAWm8eNIcYdRu2oPpx9s8q1D41Cvv9tPVow==", "license": "MIT", "dependencies": { "axios": "^1.7.2", @@ -7485,9 +7485,9 @@ "license": "MIT" }, "node_modules/@wagmi/vue": { - "version": "0.0.30", - "resolved": "https://registry.npmjs.org/@wagmi/vue/-/vue-0.0.30.tgz", - "integrity": "sha512-cB2kimEGk2M2hhcc9FD8VB/4iCeacAqbsT4v4QnxX9q8efkKBA0lPUB/6smkPO2vqR1uEhg8NskG+KAwv8X4Nw==", + "version": "0.0.31", + "resolved": "https://registry.npmjs.org/@wagmi/vue/-/vue-0.0.31.tgz", + "integrity": "sha512-impBymtzeeyJXveg8cM1YJ4R1QVPjtLnpQrm32VaTBGSPf6gCfTH5sB9GVQK5eqcEPOuZczJcXfdKKJGdrAwWw==", "license": "MIT", "dependencies": { "@wagmi/connectors": "5.0.26", diff --git a/package.json b/package.json index c33a72c..0d6e8c0 100644 --- a/package.json +++ b/package.json @@ -23,10 +23,10 @@ "@aleph-sdk/client": "^1.0.6", "@aleph-sdk/ethereum": "^1.0.3", "@aleph-sdk/message": "^1.0.7", - "@libertai/libertai-js": "file:../libertai-js/libertai-libertai-js-0.0.8.tgz", + "@libertai/libertai-js": "0.0.8", "@quasar/extras": "^1.16.12", "@tanstack/vue-query": "^5.51.9", - "@wagmi/vue": "^0.0.30", + "@wagmi/vue": "^0.0.31", "axios": "^1.7.2", "dompurify": "^3.1.6", "highlight.js": "^11.10.0", diff --git a/src/pages/Chat.vue b/src/pages/Chat.vue index ba51ee0..22b86f3 100644 --- a/src/pages/Chat.vue +++ b/src/pages/Chat.vue @@ -1,5 +1,5 @@