mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-26 13:19:34 +07:00
12
package.json
12
package.json
@@ -195,15 +195,15 @@
|
||||
"@lobechat/utils": "workspace:*",
|
||||
"@lobechat/web-crawler": "workspace:*",
|
||||
"@lobehub/analytics": "^1.6.0",
|
||||
"@lobehub/charts": "^3.0.4",
|
||||
"@lobehub/charts": "^4.0.0",
|
||||
"@lobehub/chat-plugin-sdk": "^1.32.4",
|
||||
"@lobehub/chat-plugins-gateway": "^1.9.0",
|
||||
"@lobehub/desktop-ipc-typings": "workspace:*",
|
||||
"@lobehub/editor": "^3.1.0",
|
||||
"@lobehub/icons": "^3.0.0",
|
||||
"@lobehub/editor": "^3.1.1",
|
||||
"@lobehub/icons": "^4.0.0",
|
||||
"@lobehub/market-sdk": "^0.24.0",
|
||||
"@lobehub/tts": "^3.0.2",
|
||||
"@lobehub/ui": "^3.4.5",
|
||||
"@lobehub/tts": "^4.0.0",
|
||||
"@lobehub/ui": "^4.1.3",
|
||||
"@modelcontextprotocol/sdk": "^1.25.1",
|
||||
"@neondatabase/serverless": "^1.0.2",
|
||||
"@next/third-parties": "^16.1.0",
|
||||
@@ -459,4 +459,4 @@
|
||||
"stylelint-config-clean-order": "7.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
"test:coverage": "vitest --coverage --silent='passed-only'"
|
||||
},
|
||||
"dependencies": {
|
||||
"@lobechat/types": "workspace:*",
|
||||
"p-map": "^7.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lobechat/types": "workspace:*",
|
||||
"openai": "^4.104.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,9 @@
|
||||
"@lobechat/builtin-tool-group-agent-builder": "workspace:*",
|
||||
"@lobechat/builtin-tool-group-management": "workspace:*",
|
||||
"@lobechat/builtin-tool-gtd": "workspace:*",
|
||||
"@lobechat/builtin-tool-notebook": "workspace:*",
|
||||
"@lobechat/builtin-tool-notebook": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lobechat/types": "workspace:*"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,11 +11,13 @@
|
||||
"dependencies": {
|
||||
"@lobechat/const": "workspace:*",
|
||||
"@lobechat/prompts": "workspace:*",
|
||||
"@lobechat/types": "workspace:*",
|
||||
"type-fest": "^4.18.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lobechat/types": "workspace:*"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@lobehub/ui": "^3",
|
||||
"@lobehub/ui": "^4",
|
||||
"antd": "^6",
|
||||
"lucide-react": "*",
|
||||
"next": "*",
|
||||
|
||||
@@ -8,7 +8,9 @@
|
||||
},
|
||||
"main": "./src/index.ts",
|
||||
"dependencies": {
|
||||
"@lobechat/builtin-tool-agent-builder": "workspace:*",
|
||||
"@lobechat/builtin-tool-agent-builder": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lobechat/types": "workspace:*"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"./executor": "./src/executor.ts"
|
||||
},
|
||||
"main": "./src/index.ts",
|
||||
"dependencies": {
|
||||
"devDependencies": {
|
||||
"@lobechat/types": "workspace:*"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,14 +9,16 @@
|
||||
},
|
||||
"main": "./src/index.ts",
|
||||
"dependencies": {
|
||||
"@lobechat/prompts": "workspace:*",
|
||||
"@lobechat/types": "workspace:*",
|
||||
"lucide-react": "*",
|
||||
"react": "*"
|
||||
"@lobechat/prompts": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lobechat/types": "workspace:*"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@lobehub/ui": "^3",
|
||||
"@lobehub/ui": "^4",
|
||||
"antd": "^6",
|
||||
"antd-style": "*"
|
||||
"antd-style": "*",
|
||||
"lucide-react": "*",
|
||||
"react": "*"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,11 +9,13 @@
|
||||
},
|
||||
"main": "./src/index.ts",
|
||||
"dependencies": {
|
||||
"@lobechat/prompts": "workspace:*",
|
||||
"@lobechat/prompts": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lobechat/types": "workspace:*"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@lobehub/ui": "^3",
|
||||
"@lobehub/ui": "^4",
|
||||
"antd": "^6",
|
||||
"antd-style": "*",
|
||||
"polished": "*",
|
||||
|
||||
@@ -8,7 +8,9 @@
|
||||
},
|
||||
"main": "./src/index.ts",
|
||||
"dependencies": {
|
||||
"@lobechat/electron-client-ipc": "workspace:*",
|
||||
"@lobechat/electron-client-ipc": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lobechat/types": "workspace:*"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,9 @@
|
||||
},
|
||||
"main": "./src/index.ts",
|
||||
"dependencies": {
|
||||
"@lobechat/memory-user-memory": "workspace:*",
|
||||
"@lobechat/memory-user-memory": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lobechat/types": "workspace:*"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,11 +9,13 @@
|
||||
},
|
||||
"main": "./src/index.ts",
|
||||
"dependencies": {
|
||||
"@lobechat/prompts": "workspace:*",
|
||||
"@lobechat/prompts": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lobechat/types": "workspace:*"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@lobehub/ui": "^3.3.3",
|
||||
"@lobehub/ui": "^4",
|
||||
"antd": "^6",
|
||||
"antd-style": "*",
|
||||
"lucide-react": "*",
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
"./executionRuntime": "./src/ExecutionRuntime/index.ts"
|
||||
},
|
||||
"main": "./src/index.ts",
|
||||
"dependencies": {
|
||||
"devDependencies": {
|
||||
"@lobechat/types": "workspace:*"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@lobehub/editor": "*",
|
||||
"@lobehub/editor": "^3",
|
||||
"debug": "*"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,9 @@
|
||||
"dependencies": {
|
||||
"@lobechat/business-const": "workspace:*",
|
||||
"@lobechat/const": "workspace:*",
|
||||
"@lobechat/types": "workspace:*",
|
||||
"model-bank": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lobechat/types": "workspace:*"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,9 @@
|
||||
"main": "./src/index.ts",
|
||||
"dependencies": {
|
||||
"@lobechat/business-config": "workspace:*",
|
||||
"@lobechat/const": "workspace:*",
|
||||
"@lobechat/const": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lobechat/types": "workspace:*"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,13 +8,16 @@
|
||||
},
|
||||
"main": "./src/index.ts",
|
||||
"dependencies": {
|
||||
"@icons-pack/react-simple-icons": "^13.8.0",
|
||||
"@lobechat/business-const": "workspace:*",
|
||||
"@lobechat/types": "workspace:*",
|
||||
"@lobehub/ui": "^2.13.8",
|
||||
"klavis": "^2.15.0",
|
||||
"lodash-es": "^4.17.21",
|
||||
"query-string": "^9.3.1",
|
||||
"url-join": "^5.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lobechat/types": "workspace:*"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@icons-pack/react-simple-icons": "^13.8.0",
|
||||
"@lobehub/ui": "^4",
|
||||
"klavis": "^2.15.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@lobechat/prompts": "workspace:*",
|
||||
"@lobechat/types": "workspace:*",
|
||||
"@lobechat/utils": "workspace:*",
|
||||
"debug": "^4.4.3",
|
||||
"es-toolkit": "^1.43.0",
|
||||
@@ -30,6 +29,7 @@
|
||||
"xastscript": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lobechat/types": "workspace:*",
|
||||
"@types/debug": "^4.1.12"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"test": "vitest",
|
||||
"test:coverage": "vitest --coverage --silent='passed-only'"
|
||||
},
|
||||
"dependencies": {
|
||||
"devDependencies": {
|
||||
"@lobechat/types": "workspace:*"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,15 +16,12 @@
|
||||
"dependencies": {
|
||||
"@lobechat/builtin-agents": "workspace:*",
|
||||
"@lobechat/const": "workspace:*",
|
||||
"@lobechat/types": "workspace:*",
|
||||
"@lobechat/utils": "workspace:*",
|
||||
"@lobehub/charts": "^2.1.2",
|
||||
"@lobehub/chat-plugin-sdk": "^1.32.4",
|
||||
"@neondatabase/serverless": "^1.0.2",
|
||||
"@trpc/server": "^11.7.1",
|
||||
"debug": "^4.4.3",
|
||||
"drizzle-zod": "^0.5.1",
|
||||
"lodash-es": "^4.17.21",
|
||||
"model-bank": "workspace:*",
|
||||
"next-auth": "5.0.0-beta.30",
|
||||
"p-map": "^7.0.4",
|
||||
@@ -34,11 +31,13 @@
|
||||
"ws": "^8.18.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lobechat/types": "workspace:*",
|
||||
"dotenv": "^17.2.3",
|
||||
"fake-indexeddb": "^6.2.5"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@electric-sql/pglite": "^0.2.17",
|
||||
"@lobehub/charts": "^4",
|
||||
"dayjs": ">=1.11.19",
|
||||
"drizzle-orm": ">=0.44.7",
|
||||
"nanoid": ">=5.1.6",
|
||||
|
||||
@@ -8,6 +8,6 @@
|
||||
"electron": "^34.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^19.2.0"
|
||||
"react": "*"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,8 +22,10 @@
|
||||
"dependencies": {
|
||||
"@lobechat/const": "workspace:*",
|
||||
"@lobechat/model-runtime": "workspace:*",
|
||||
"@lobechat/types": "workspace:*",
|
||||
"@lobechat/utils": "workspace:*",
|
||||
"i18next": "^24.2.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lobechat/types": "workspace:*"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
"@google/genai": "^1.29.0",
|
||||
"@huggingface/inference": "^4.13.4",
|
||||
"@lobechat/const": "workspace:*",
|
||||
"@lobechat/types": "workspace:*",
|
||||
"@lobechat/utils": "workspace:*",
|
||||
"async-retry": "^1.3.3",
|
||||
"dayjs": "^1.11.19",
|
||||
@@ -28,7 +27,6 @@
|
||||
"immer": "^10.2.0",
|
||||
"langfuse": "^3.38.6",
|
||||
"langfuse-core": "^3.38.6",
|
||||
"lodash-es": "^4.17.21",
|
||||
"model-bank": "workspace:*",
|
||||
"nanoid": "^5.1.6",
|
||||
"ollama": "^0.6.2",
|
||||
@@ -37,6 +35,9 @@
|
||||
"type-fest": "^5.2.0",
|
||||
"url-join": "^5.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lobechat/types": "workspace:*"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"zod": "^3.25.76"
|
||||
}
|
||||
|
||||
@@ -18,10 +18,8 @@
|
||||
"test:prompts:translate": "promptfoo eval -c promptfoo/translate/eval.yaml",
|
||||
"test:update": "vitest -u"
|
||||
},
|
||||
"dependencies": {
|
||||
"@lobechat/types": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lobechat/types": "workspace:*",
|
||||
"promptfoo": "^0.118.17",
|
||||
"tsx": "^4.20.6"
|
||||
}
|
||||
|
||||
@@ -11,14 +11,13 @@
|
||||
"@lobehub/chat-plugin-sdk": "^1.32.4",
|
||||
"@lobehub/market-sdk": "beta",
|
||||
"@lobehub/market-types": "^1.11.4",
|
||||
"@lobehub/ui": "^2.13.8",
|
||||
"model-bank": "workspace:*",
|
||||
"react": "19.2.0",
|
||||
"type-fest": "^4.41.0",
|
||||
"zod": "^3.25.76",
|
||||
"zustand": "5.0.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@lobehub/ui": "^4",
|
||||
"react": "*",
|
||||
"zod": "^3.25.76"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@lobechat/const": "workspace:*",
|
||||
"@lobechat/types": "workspace:*",
|
||||
"@lobehub/chat-plugin-sdk": "^1.32.4",
|
||||
"@vercel/functions": "^3.3.0",
|
||||
"brotli-wasm": "^3.0.1",
|
||||
@@ -25,7 +24,6 @@
|
||||
"debug": "^4.4.3",
|
||||
"dompurify": "^3.3.0",
|
||||
"fast-deep-equal": "^3.1.3",
|
||||
"lodash-es": "^4.17.21",
|
||||
"mime": "^4.1.0",
|
||||
"model-bank": "workspace:*",
|
||||
"nanoid": "^5.1.6",
|
||||
@@ -41,6 +39,7 @@
|
||||
"yaml": "^2.8.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lobechat/types": "workspace:*",
|
||||
"vitest-canvas-mock": "^1.1.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -1,23 +1,10 @@
|
||||
'use client';
|
||||
|
||||
import { Flexbox, Icon, Skeleton } from '@lobehub/ui';
|
||||
import { css, cx } from 'antd-style';
|
||||
import { Flexbox, Highlighter, Icon } from '@lobehub/ui';
|
||||
import { ChevronDown, ChevronUp } from 'lucide-react';
|
||||
import dynamic from 'next/dynamic';
|
||||
import { memo, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
const container = css`
|
||||
pre.shiki {
|
||||
padding: 8px !important;
|
||||
}
|
||||
`;
|
||||
|
||||
const Highlighter = dynamic(() => import('@lobehub/ui/es/Highlighter/index.mjs'), {
|
||||
loading: () => <Skeleton avatar={false} title={false} />,
|
||||
ssr: false,
|
||||
});
|
||||
|
||||
const Description = memo<{ message: string; status: number }>(({ message, status }) => {
|
||||
const { t } = useTranslation('error');
|
||||
const [show, setShow] = useState(false);
|
||||
@@ -34,11 +21,7 @@ const Description = memo<{ message: string; status: number }>(({ message, status
|
||||
>
|
||||
{t('fetchError.detail')} <Icon icon={show ? ChevronUp : ChevronDown} />
|
||||
</Flexbox>
|
||||
<Highlighter
|
||||
className={cx(container)}
|
||||
language={'text'}
|
||||
style={{ display: show ? undefined : 'none', maxHeight: 80 }}
|
||||
>
|
||||
<Highlighter language={'text'} style={{ display: show ? undefined : 'none', maxHeight: 80 }}>
|
||||
{message}
|
||||
</Highlighter>
|
||||
</Flexbox>
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
import { Icon, Tooltip, TooltipProps } from '@lobehub/ui';
|
||||
import { IconSizeType } from '@lobehub/ui/es/Icon/index.mjs';
|
||||
import { Icon, type IconSize, Tooltip, TooltipProps } from '@lobehub/ui';
|
||||
import { useTheme } from 'antd-style';
|
||||
import { CircleHelp } from 'lucide-react';
|
||||
import { CSSProperties, memo } from 'react';
|
||||
|
||||
interface InfoTooltipProps extends Omit<TooltipProps, 'children'> {
|
||||
iconStyle?: CSSProperties;
|
||||
size?: IconSizeType;
|
||||
size?: IconSize;
|
||||
}
|
||||
|
||||
const InfoTooltip = memo<InfoTooltipProps>(({ size, iconStyle, ...res }) => {
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
import { Icon } from '@lobehub/ui';
|
||||
import { IconSizeType } from '@lobehub/ui/es/Icon/index.mjs';
|
||||
import { Icon, IconSize } from '@lobehub/ui';
|
||||
import { Loader2 } from 'lucide-react';
|
||||
import { CSSProperties, memo } from 'react';
|
||||
|
||||
interface UpdateLoadingProps {
|
||||
size?: IconSizeType;
|
||||
size?: IconSize;
|
||||
style?: CSSProperties;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { IEditor, SlashOptions } from '@lobehub/editor';
|
||||
import type { ChatInputProps } from '@lobehub/editor/react';
|
||||
import type { MenuProps } from '@lobehub/ui/es/Menu/index.mjs';
|
||||
import type { MenuProps } from '@lobehub/ui';
|
||||
|
||||
import { ActionKeys } from '@/features/ChatInput';
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import type { SlashOptions } from '@lobehub/editor';
|
||||
import { Alert, Flexbox } from '@lobehub/ui';
|
||||
import type { MenuProps } from '@lobehub/ui/es/Menu/index.mjs';
|
||||
import { Alert, Flexbox, type MenuProps } from '@lobehub/ui';
|
||||
import { type ReactNode, memo, useCallback } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@ import { message as antdMessage } from 'antd';
|
||||
import { ThemeAppearance, createStyles } from 'antd-style';
|
||||
import 'antd/dist/reset.css';
|
||||
import { AppConfigContext } from 'antd/es/app/context';
|
||||
import * as motion from 'motion/react-m';
|
||||
import Image from 'next/image';
|
||||
import Link from 'next/link';
|
||||
import { ReactNode, memo, useEffect, useMemo } from 'react';
|
||||
@@ -166,6 +167,7 @@ const AppTheme = memo<AppThemeProps>(
|
||||
imgUnoptimized: true,
|
||||
proxy: globalCDN ? 'unpkg' : undefined,
|
||||
}}
|
||||
motion={motion}
|
||||
>
|
||||
{children}
|
||||
</ConfigProvider>
|
||||
|
||||
Reference in New Issue
Block a user