🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
fix lint
arvinxx4dc6de68221c
diff --git a/package.json b/package.jsonindex 052a9f89370..eb9460b2f9b 100644--- a/package.json+++ b/package.json@@ -469,10 +469,9 @@},"pnpm": {"overrides": {- "@lobehub/ui": "4.33.4","better-auth": "1.4.6","better-call": "1.1.8","drizzle-orm": "0.44.7"}}-}\ No newline at end of file+}diff --git a/src/app/[variants]/(main)/home/_layout/Body/Agent/Modals/ConfigGroupModal/index.tsx b/src/app/[variants]/(main)/home/_layout/Body/Agent/Modals/ConfigGroupModal/index.tsxindex dd2a92678d6..9fc6b4ce73e 100644--- a/src/app/[variants]/(main)/home/_layout/Body/Agent/Modals/ConfigGroupModal/index.tsx+++ b/src/app/[variants]/(main)/home/_layout/Body/Agent/Modals/ConfigGroupModal/index.tsx@@ -36,7 +36,7 @@ const ConfigGroupModal = memo<ModalProps>(({ open, onCancel }) => {sort: g.sort,})),isEqual,- ) as SessionGroupItem[];+ ) as SessionGroupItemBase[];const [addGroup, updateGroupSort] = useHomeStore((s) => [s.addGroup, s.updateGroupSort]);const [loading, setLoading] = useState(false);diff --git a/src/store/file/slices/upload/action.ts b/src/store/file/slices/upload/action.tsindex 7e8c2de055e..d26a5580113 100644--- a/src/store/file/slices/upload/action.ts+++ b/src/store/file/slices/upload/action.ts@@ -95,7 +95,6 @@ export class FileUploadActionImpl {abortController,}: UploadWithProgressParams): Promise<UploadWithProgressResult | undefined> => {try {- const fileArrayBuffer = await file.arrayBuffer();const fileArrayBuffer = await file.arrayBuffer();// 1. extract image dimensions if applicable@@ -194,7 +193,7 @@ export class FileUploadActionImpl {}throw error;}- }+ };}export type FileUploadAction = Pick<FileUploadActionImpl, keyof FileUploadActionImpl>;diff --git a/src/store/home/slices/sidebarUI/action.ts b/src/store/home/slices/sidebarUI/action.tsindex f35fabe2cfd..59477cc32c9 100644--- a/src/store/home/slices/sidebarUI/action.ts+++ b/src/store/home/slices/sidebarUI/action.ts@@ -1,4 +1,3 @@-/* eslint-disable sort-keys-fix/sort-keys-fix,typescript-sort-keys/interface */import { t } from 'i18next';import { message } from '@/components/AntdStaticMethods';@@ -9,7 +8,7 @@ import { sessionService } from '@/services/session';import { getAgentStoreState } from '@/store/agent';import { type HomeStore } from '@/store/home/store';import { type StoreSetter } from '@/store/types';-import { type SessionGroupItem } from '@/types/session';+import { type SessionGroupItemBase } from '@/types/session';import { setNamespace } from '@/utils/storeDebug';const n = setNamespace('sidebarUI');@@ -127,7 +126,7 @@ export class SidebarUIActionImpl {await this.#get().refreshAgentList();};- updateGroupSort = async (items: SessionGroupItem[]): Promise<void> => {+ updateGroupSort = async (items: SessionGroupItemBase[]): Promise<void> => {const sortMap = items.map((item, index) => ({ id: item.id, sort: index }));message.loading({diff --git a/src/store/userMemory/slices/home/action.ts b/src/store/userMemory/slices/home/action.tsindex fc2059be5f7..4f83d51fc84 100644--- a/src/store/userMemory/slices/home/action.ts+++ b/src/store/userMemory/slices/home/action.ts@@ -26,12 +26,12 @@ export class HomeActionImpl {this.#get = get;}- useFetchPersona = (): SWRResponse<PersonaData> => {+ useFetchPersona = (): SWRResponse<PersonaData | null> => {return useClientDataSWR(FETCH_PERSONA_KEY, () => userMemoryService.getPersona(), {- onSuccess: (data: PersonaData | undefined) => {+ onSuccess: (data: PersonaData | null | undefined) => {this.#set({- persona: data,+ persona: data ?? undefined,personaInit: true,},false,