From 2b1adb0b42c663b7f99c230caf80833425a8a208 Mon Sep 17 00:00:00 2001 From: Paul Ccari <46382556+paulclindo@users.noreply.github.com> Date: Tue, 20 Aug 2024 12:39:59 -0500 Subject: [PATCH] fix: remove shinkai hosting options (#411) * update tools UI * remove shinkai hosting options * remove shinkai hosting options * bump version v0.7.34 --- .../resources-banner.tsx | 1 - .../shinkai-node-manager/ollama-models.tsx | 154 ++++++++---------- .../shinkai-desktop/src/pages/get-started.tsx | 46 +++--- apps/shinkai-desktop/src/pages/tools.tsx | 2 +- .../connect-method-quick-start.tsx | 49 +++--- package-lock.json | 4 +- package.json | 2 +- 7 files changed, 122 insertions(+), 136 deletions(-) diff --git a/apps/shinkai-desktop/src/components/hardware-capabilities/resources-banner.tsx b/apps/shinkai-desktop/src/components/hardware-capabilities/resources-banner.tsx index 25ba4f804..7ed100951 100644 --- a/apps/shinkai-desktop/src/components/hardware-capabilities/resources-banner.tsx +++ b/apps/shinkai-desktop/src/components/hardware-capabilities/resources-banner.tsx @@ -2,7 +2,6 @@ import { Alert, AlertDescription, AlertTitle, - TextLink, Tooltip, TooltipContent, TooltipPortal, diff --git a/apps/shinkai-desktop/src/components/shinkai-node-manager/ollama-models.tsx b/apps/shinkai-desktop/src/components/shinkai-node-manager/ollama-models.tsx index cea6012eb..22cf40b61 100644 --- a/apps/shinkai-desktop/src/components/shinkai-node-manager/ollama-models.tsx +++ b/apps/shinkai-desktop/src/components/shinkai-node-manager/ollama-models.tsx @@ -14,21 +14,11 @@ import { CardTitle, } from '@shinkai_network/shinkai-ui'; import { cn } from '@shinkai_network/shinkai-ui/utils'; -import { - ALargeSmall, - BookOpenText, - Database, - Images, - List, - Star, -} from 'lucide-react'; +import { BookOpenText, Database, List, Star } from 'lucide-react'; import { useState } from 'react'; import AutoSizer from 'react-virtualized-auto-sizer'; -import { - OLLAMA_MODELS, - OllamaModelCapability, -} from '../../lib/shinkai-node-manager/ollama-models'; +import { OLLAMA_MODELS } from '../../lib/shinkai-node-manager/ollama-models'; import { useShinkaiNodeGetDefaultModel, useShinkaiNodeIsRunningQuery, @@ -81,78 +71,74 @@ export const OllamaModels = () => {
{OLLAMA_MODELS.map((model) => { return ( - <> - - - - {model.name} - -
- {isDefaultModel(model.fullName) && ( - - {t('common.recommended')} - - )} -
- - {model.description} - -
- -
- {model.capabilities.map((capability) => ( - - ))} -
-
- -
- - - - - - {t('shinkaiNode.models.labels.bookPages', { - pages: Math.round( - (model.contextLength * 0.75) / 380, - ), - })} - - - - - - {model.size} GB - - -
- - - -
- + + + + {model.name} + +
+ {isDefaultModel(model.fullName) && ( + + {t('common.recommended')} + + )} +
+ + {model.description} + +
+ +
+ {model.capabilities.map((capability) => ( + + ))} +
+
+ +
+ + + + + + {t('shinkaiNode.models.labels.bookPages', { + pages: Math.round((model.contextLength * 0.75) / 380), + })} + + + + + + {model.size} GB + + +
+ + + +
); })}
diff --git a/apps/shinkai-desktop/src/pages/get-started.tsx b/apps/shinkai-desktop/src/pages/get-started.tsx index 6122db0ba..252e629ee 100644 --- a/apps/shinkai-desktop/src/pages/get-started.tsx +++ b/apps/shinkai-desktop/src/pages/get-started.tsx @@ -6,9 +6,8 @@ import { } from '@shinkai_network/shinkai-node-state/forms/auth/quick-connection'; import { useSubmitRegistrationNoCode } from '@shinkai_network/shinkai-node-state/lib/mutations/submitRegistation/useSubmitRegistrationNoCode'; import { useGetEncryptionKeys } from '@shinkai_network/shinkai-node-state/lib/queries/getEncryptionKeys/useGetEncryptionKeys'; -import { Button, buttonVariants, Separator } from '@shinkai_network/shinkai-ui'; +import { Button } from '@shinkai_network/shinkai-ui'; import { submitRegistrationNoCodeError } from '@shinkai_network/shinkai-ui/helpers'; -import { cn } from '@shinkai_network/shinkai-ui/utils'; import { useState } from 'react'; import { useForm } from 'react-hook-form'; import { Link, useNavigate } from 'react-router-dom'; @@ -113,11 +112,11 @@ const GetStartedPage = () => { onRestore={() => onRestoreConfirmation()} open={resetStorageBeforeConnectConfirmationPromptOpen} /> -
+

{t('desktop.welcome')} 🔑

-
+
- - - or - - + {/**/} + {/* */} + {/* or*/} + {/* */} + {/**/}
- - {t('common.logInShinkaiHosting')} - + {/* Disable Shinkai Hosting */} + {/**/} + {/* {t('common.logInShinkaiHosting')}*/} + {/**/} {/* { )}
-
+
{(isPending || !isSearchQuerySynced || isSearchToolListPending) && Array.from({ length: 8 }).map((_, idx) => (
{ -
- {/*

*/} - {/* Don’t have an account?{' '}*/} - {/* */} - {/* Sign up*/} - {/* */} - {/*

*/} -

- Already have an account?{' '} - - Click here to connect - -

-
+ {/* Disable shinkai hosting */} + {/*
*/} + {/*

*/} + {/* Don’t have an account?{' '}*/} + {/* */} + {/* Sign up*/} + {/* */} + {/*

*/} + {/*

*/} + {/* Already have an account?{' '}*/} + {/* */} + {/* Click here to connect*/} + {/* */} + {/*

*/} + {/*
*/}
diff --git a/package-lock.json b/package-lock.json index 35d010c08..03009fb60 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@shinkai/source", - "version": "0.7.33", + "version": "0.7.34", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@shinkai/source", - "version": "0.7.33", + "version": "0.7.34", "hasInstallScript": true, "license": "SEE LICENSE IN LICENSE", "workspaces": [ diff --git a/package.json b/package.json index 534ac1388..c92cff209 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@shinkai/source", - "version": "0.7.33", + "version": "0.7.34", "license": "SEE LICENSE IN LICENSE", "files": [ "LICENSE"