用户可借助该项目构建、管理和协作 AI 代理团队,实现 7×24 小时自动化运行。核心功能包括代理创建、任务调度、多模态协作及个性化记忆,支持自托管部署,助力提升工作效率。【此简介由AI生成】
| Files | Last commit | Last update |
|---|---|---|
✨ feat: use Market task template recommendations (#15558) | 4 months ago | |
chore: streamline issue triage to core business labels (1-3 per issue) (#14962) * refactor: streamline issue triage labels --------- Co-authored-by: lobehubbot <i@lobehub.com> | 5 months ago | |
♻️ refactor: migrate AI Rules to Claude Code Skills (#11737) ♻️ refactor: migrate AI Rules to Claude Code Skills system Migrate all AI Rules from .cursor/rules/ to .agents/skills/ directory: - Move 23 skills to .agents/skills/ (main directory) - Update symlinks: .claude/skills, .cursor/skills, .codex/skills - Create project-overview skill from project documentation - Add references/ subdirectories for complex skills - Remove LobeChat references from skill descriptions - Delete obsolete .cursor/rules/ and .claude/commands/prompts/ directories Skills structure enables better portability and maintainability across AI tools. | 9 months ago | |
🔧 chore: update eslint v2 configuration and suppressions (#12133) * v2 init * chore: update eslint suppressions and package dependencies - Removed several eslint suppressions related to array sorting and reversing from eslint-suppressions.json to clean up the configuration. - Updated @lobehub/lint package version from 2.0.0-beta.6 to 2.0.0-beta.7 in package.json for improvements and bug fixes. - Made minor formatting adjustments in vitest.config.mts and various SKILL.md files for better readability and consistency. Signed-off-by: Innei <tukon479@gmail.com> * fix: clean up import statements and formatting - Removed unnecessary whitespace in replaceComponentImports.ts for improved readability. - Standardized import statements in contextEngineering.ts and createAgentExecutors.ts by adding missing spaces for consistency. Signed-off-by: Innei <tukon479@gmail.com> * chore: update eslint suppressions and clean up code formatting * 🐛 fix: use vi.hoisted for mock variable initialization Fix TDZ error in persona service test by using vi.hoisted() to ensure mock variables are available when vi.mock factory runs. --------- Signed-off-by: Innei <tukon479@gmail.com> | 8 months ago | |
♻️ refactor: migrate AI Rules to Claude Code Skills (#11737) ♻️ refactor: migrate AI Rules to Claude Code Skills system Migrate all AI Rules from .cursor/rules/ to .agents/skills/ directory: - Move 23 skills to .agents/skills/ (main directory) - Update symlinks: .claude/skills, .cursor/skills, .codex/skills - Create project-overview skill from project documentation - Add references/ subdirectories for complex skills - Remove LobeChat references from skill descriptions - Delete obsolete .cursor/rules/ and .claude/commands/prompts/ directories Skills structure enables better portability and maintainability across AI tools. | 9 months ago | |
🔧 chore: update eslint v2 configuration and suppressions (#12133) * v2 init * chore: update eslint suppressions and package dependencies - Removed several eslint suppressions related to array sorting and reversing from eslint-suppressions.json to clean up the configuration. - Updated @lobehub/lint package version from 2.0.0-beta.6 to 2.0.0-beta.7 in package.json for improvements and bug fixes. - Made minor formatting adjustments in vitest.config.mts and various SKILL.md files for better readability and consistency. Signed-off-by: Innei <tukon479@gmail.com> * fix: clean up import statements and formatting - Removed unnecessary whitespace in replaceComponentImports.ts for improved readability. - Standardized import statements in contextEngineering.ts and createAgentExecutors.ts by adding missing spaces for consistency. Signed-off-by: Innei <tukon479@gmail.com> * chore: update eslint suppressions and clean up code formatting * 🐛 fix: use vi.hoisted for mock variable initialization Fix TDZ error in persona service test by using vi.hoisted() to ensure mock variables are available when vi.mock factory runs. --------- Signed-off-by: Innei <tukon479@gmail.com> | 8 months ago | |
🔨 chore: replace husky with native git hooks (#14941) | 5 months ago | |
🌐 chore: translate non-English comments to English in scripts (#16000) Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> | 4 months ago | |
📝 docs: Update changelog docs and release skills (#13897) * 🔨 chore: update .vscode/settings.json (#13894) * 🐛 fix(builtin-tool-local-system): honor glob scope in local system tool (#13875) Made-with: Cursor * 📝 docs: Update changelog docs and release skills (#13897) - Update changelog documentation format across all historical changelog files - Merge release-changelog-style skill into version-release skill - Update changelog examples with improved formatting and structure Made-with: Cursor --------- Co-authored-by: YuTengjing <ytj2713151713@gmail.com> Co-authored-by: Innei <i@innei.in> | 6 months ago | |
✨ feat: support TTS & STT (#443) * ✨ feat(tts): Add tts and stt basic features * ✨ feat(tts): Handle error * 💄 style(tts): Add alert to error handler * 🐛 fix(tts): Error display * ♻️ refactor: refactor the openai initial code to the createBizOpenAI * ♻️ refactor(tts): Refactor header config * ✨ feat: Add TTS voice preview * 🐛 fix(tts): Fix header * 🐛 fix: Fix api --------- Co-authored-by: Arvin Xu <arvinx@foxmail.com> | 2 years ago | |
✨ feat(database,userMemories): delete persona document when clearing all memories (#15997) | 4 months ago | |
🔖 chore(release): release version v2.2.6 [skip ci] | 4 months ago | |
🔨 chore(docker): replace dev/prod pgsql docker image with paradedb (#13373) 🐛 fix(docker): replace dev/prod pgsql docker image with paradedb Signed-off-by: WindSpiritSR <simon343riley@gmail.com> | 7 months ago | |
📝 docs: add product glossary page (#16001) * 📝 docs: add product glossary page Add a user-facing glossary of LobeHub concepts (agents, topics, threads, skills, memory, models, billing, and more) at docs/usage/glossary, with terms organized by initial letter and EN + zh-CN versions. Point the existing developer translation-consistency table (docs/glossary.md) to the new page. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * 📝 docs: move glossary to top-level docs/glossary Move the product glossary from docs/usage/glossary to top-level docs/glossary (EN + zh-CN). Relocate the developer translation-consistency table to docs/development/internationalization/glossary and point it at the new /docs/glossary page. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * 📝 docs: make glossary terms headings so they appear in the page TOC Promote each term to an h3 heading (under its letter h2) so it shows in the On This Page outline, remove the redundant Jump-to row, and repoint synonym cross-references to the specific term anchors. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * 🐛 fix(docs): stop @ tokens autolinking to GitHub in glossary Wrap literal @mentioning and @LobeHub in inline code so the docs MDX mention-autolinker no longer turns them into github.com/<name> links. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * 📝 docs: remove CoT, Discover, DM, and Hands-Free Mode glossary entries Also drops the now-orphaned Marketplace synonym stub (it only pointed to Discover) and the empty H letter section. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> | 4 months ago | |
🐛 fix(edit-lock): allow same-user generic updates (#15969) * 🐛 fix(edit-lock): allow same-user generic updates * 🧪 fix(e2e): mock community marketplace APIs * 💬 docs(e2e): explain community marketplace mocks * 🧪 fix(e2e): preserve mixed community trpc batches * 🧪 fix(e2e): unwrap single batched community input | 4 months ago | |
♻️ refactor(model-bank): rename model type stt to standard asr (runtime migration, non-breaking) (#16002) * ♻️ refactor(model-bank): rename model type stt to the standard asr asr (Automatic Speech Recognition) is the conventional term for the speech-to-text model category, matching the modern model-runtime transcribe API and the asr.transcribe tRPC procedure. Standardize the model-type taxonomy on asr across the type schema, model data, UI, API contract and i18n — without a bulk DB data migration. Application layer (full rename, no behavioral impact — type is only a category label; nothing branches on it at runtime): - model-bank: AiModelTypeSchema enum stt → asr; AISTTModelCard → AIASRModelCard; openaiSTTModels → openaiASRModels - UI: provider ModelList tab/count/pricing-case/create-form options + community ModelTypeIcon map - aihubmix: map the platform stt identifier to LobeHub asr - i18n: rename providerModels.tabs.stt / type.options.stt keys (default + en-US + zh-CN); other locales left to the auto-i18n CI Persistence — runtime migration instead of a SQL migration ("don't fetch, don't touch"): - read-time mapping: the aiInfra repository normalizes any residual stt row to asr on read (builtin models already get their type from model-bank) - write-time heal: AiModelModel create/update/toggle/batch persist asr, so data lazily migrates whenever a row is naturally written; new writes are asr - shared normalizeAiModelType helper in model-bank OpenAPI — non-breaking: - input still accepts stt as a deprecated alias (no 4xx for old clients) and normalizes it to asr; responses always emit asr; type filter matches both asr and legacy stt rows No ai_models data migration is shipped; old rows stay valid and convert lazily. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * ♻️ refactor(cli): sync lh model type inputs with the stt → asr rename stt was removed from AiModelTypeSchema, so the CLI paths that still advertised and forwarded --type stt broke for users following the help text: lh model create/edit --type stt was rejected by the router schema and lh model list --type stt returned no ASR models. Advertise asr in the --type help for list/create/edit, and normalize the legacy stt alias to asr before forwarding to the API / filtering results, so existing scripts keep working. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> | 4 months ago | |
Merge remote-tracking branch 'origin/main' into canary | 4 months ago | |
♻️ refactor: remove chat-plugin-sdk (#13512) * ♻️ refactor: remove @lobehub/chat-plugin-sdk dependency Plugins have been deprecated. This removes the SDK entirely: - Define built-in ToolManifest, ToolManifestSettings, ToolErrorType types - Delete src/features/PluginsUI/ (plugin iframe rendering) - Delete src/store/tool/slices/oldStore/ (deprecated plugin store) - Delete src/server/services/pluginGateway/ (plugin gateway) - Delete src/app/(backend)/webapi/plugin/gateway/ (plugin API route) - Migrate all ~50 files from SDK imports to @lobechat/types - Remove @lobehub/chat-plugin-sdk, @lobehub/chat-plugins-gateway deps - Remove @swagger-api/apidom-reference override and patch Fixes LOBE-6655 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * 🐛 fix: add missing getInstalledPlugins mock in customPlugin test Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * 🔧 chore: increase Vercel build memory limit to 8192MB The 6144MB limit was causing OOM during Vite SPA chunk rendering. Aligned with other build commands that already use 8192MB. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * ♻️ refactor: unify default tool type to builtin and fix CustomRender - Remove invokeDefaultTypePlugin — default type now falls through to builtin in both server and client execution paths - Fix CustomRender to actually render builtin tool components via getBuiltinRender instead of always returning null - Increase SPA build memory limit from 7168MB to 8192MB to fix OOM Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * ♻️ refactor: remove legacy plugin gateway and type-specific invocations - Delete runPluginApi, internal_callPluginApi, invokeMarkdownTypePlugin, invokeStandaloneTypePlugin - Remove plugin gateway endpoint (/webapi/plugin/gateway) from URL config - Remove special builtin → default runtimeType mapping in plugin model - Clean up unused imports and related tests Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * 🐛 fix: add 'builtin' to runtimeType union to fix type error Use ToolManifestType instead of inline union for runtimeType fields so that 'builtin' is included as a valid type. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> | 7 months ago | |
🐛 fix(locale): align dayjs locale imports (#15896) | 4 months ago | |
✨ feat(agent): improve connector, document, and fleet workflows (#15936) * ✨ feat(agent): allow removing unauthorized connectors from the auth alert Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * 💄 style(chat): add Beta tag and info popover to Gateway Mode toggle Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * 💄 style(fleet): render OpStatusTray seamlessly when no reply panel is attached Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * 🐛 fix(fleet): show skeleton rows while the running-task sidebar loads The sidebar fell straight through to the "no running tasks" empty state during the initial fetch, so a brief flash of "empty" hid tasks that were actually loading. Thread the SWR loading flag in and render placeholder rows until the first result lands. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * 🐛 fix(fleet): open existing agents from the board picker & fix reply-tray chrome - AddColumnButton: selecting an agent now opens its main conversation (topicId null) instead of minting a throwaway empty topic via an async createTopic that could silently fail; dedupes + scrolls to an already-open column. Matches "open this agent" elsewhere in the app. - AgentColumn: stop double-rendering OpStatusTray while the reply panel is open (ChatInput owns its own overlay tray); lift the collapse button above that floating tray so it no longer cuts the tray's top border; give ChatList its own flex region so the seamless tray isn't squeezed/clipped. - OpStatusTray: keep a hairline top divider in seamless mode so the running tray still reads as separated from the conversation above. - RunningTaskSidebar / AddColumnButton: harden scroll-into-view with double rAF so the (re-)added column reliably scrolls into view after it commits. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * ✨ feat(fleet): add one-click close-all-idle-columns action Adds a removeColumns batch store action and wires the running-board header button (committed earlier in e47228c6f7) to it, so users can clear every non-running column in one click. Idle is derived from the board's own columns against the live running set; running columns are untouched. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * ✨ add agent document share URLs * ✨ add standalone agent document page * ✨ open agent documents as pages * 💄 style(chat): polish Agent Gateway mode popover * 🐛 fix(fleet): stabilize reply area and panel collapse state * 🐛 fix: restore agent document portal opening * 💄 style: adjust agent document header actions * 🐛 fix: handle workspace document links and fleet idle state * 🐛 fix(portal): import WideScreenContainer in document Body The full-page document view rendered <WideScreenContainer> without importing it, breaking type-check (TS2304: Cannot find name). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> | 4 months ago | |
🌐 chore: translate non-English comments to English in scripts (#16000) Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> | 4 months ago | |
♻️ refactor(model-bank): rename model type stt to standard asr (runtime migration, non-breaking) (#16002) * ♻️ refactor(model-bank): rename model type stt to the standard asr asr (Automatic Speech Recognition) is the conventional term for the speech-to-text model category, matching the modern model-runtime transcribe API and the asr.transcribe tRPC procedure. Standardize the model-type taxonomy on asr across the type schema, model data, UI, API contract and i18n — without a bulk DB data migration. Application layer (full rename, no behavioral impact — type is only a category label; nothing branches on it at runtime): - model-bank: AiModelTypeSchema enum stt → asr; AISTTModelCard → AIASRModelCard; openaiSTTModels → openaiASRModels - UI: provider ModelList tab/count/pricing-case/create-form options + community ModelTypeIcon map - aihubmix: map the platform stt identifier to LobeHub asr - i18n: rename providerModels.tabs.stt / type.options.stt keys (default + en-US + zh-CN); other locales left to the auto-i18n CI Persistence — runtime migration instead of a SQL migration ("don't fetch, don't touch"): - read-time mapping: the aiInfra repository normalizes any residual stt row to asr on read (builtin models already get their type from model-bank) - write-time heal: AiModelModel create/update/toggle/batch persist asr, so data lazily migrates whenever a row is naturally written; new writes are asr - shared normalizeAiModelType helper in model-bank OpenAPI — non-breaking: - input still accepts stt as a deprecated alias (no 4xx for old clients) and normalizes it to asr; responses always emit asr; type filter matches both asr and legacy stt rows No ai_models data migration is shipped; old rows stay valid and convert lazily. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * ♻️ refactor(cli): sync lh model type inputs with the stt → asr rename stt was removed from AiModelTypeSchema, so the CLI paths that still advertised and forwarded --type stt broke for users following the help text: lh model create/edit --type stt was rejected by the router schema and lh model list --type stt returned no ASR models. Advertise asr in the --type help for list/create/edit, and normalize the legacy stt alias to asr before forwarding to the API / filtering results, so existing scripts keep working. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> | 4 months ago | |
✨ feat: workspace backend service slice (#15560) Backend-only slice of the workspace feature (server routers/services, database models with workspaceId threading, openapi middleware, business/server stubs, const/types). Excludes all UI (features/routes/store/hooks). Deploys dark behind the workspace feature flag. Includes open-source stub fixes: workspaceCreds router stub, ChargeParams workspaceId, usage.ts null-coalesce, DBMessageItem.workspaceId. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> | 4 months ago | |
chore: use bun in test CI and vercel CD (#192) * 🔧 chore: try bun test ci * 🔧 chore: update installCommand on vercel | 3 years ago | |
🐛 fix: disable rich text in markdown editor (#9637) * clean * update * add labs * fix * improve * update * fix * hide lab * improve workflow | 1 year ago | |
🔨 chore: Add CI to Check console.log (#10333) * lint: Clean breakpoints * build: Add CI to check * build: Add next branch * build: Remove markdown files * fix: CI hang out * fix: Show warning on GitHub * feat: Send comment * fix: CI error * fix: show file list | 11 months ago | |
🐛 fix: reduce agent document context latency (#15436) | 5 months ago | |
👷 build: fix docker build (#4008) | 2 years ago | |
🔧 chore: Update setting This commit introduces new components, modules, and features related to chat, sessions, and settings. It includes modifications to configuration files, updates to dependencies, adjustments to styles and layouts, and additions of new components and modules. The changes also involve updates to functions, interfaces, selectors, actions, and reducers. Additionally, there are modifications to TypeScript interfaces and types, as well as changes to parameters and functions in certain files. | 3 years ago | |
♻️ refactor: migrate frontend from Next.js App Router to Vite SPA (#12404) * init plan * 📝 docs: update SPA plan for dev mode Worker cross-origin handling - Clarified the handling of Worker cross-origin issues in dev mode, emphasizing the need for workerPatch to wrap cross-origin URLs as blob URLs. - Enhanced the explanation of the dev mode's resource URL rewriting process for better understanding. Signed-off-by: Innei <tukon479@gmail.com> * 🔧 refactor: Phase 1 - 环境变量整治 - Fix Pyodide env var mismatch (NEXT_PUBLIC_PYPI_INDEX_URL → pythonEnv.NEXT_PUBLIC_PYODIDE_PIP_INDEX_URL) - Consolidate python.ts to use pythonEnv instead of direct process.env - Remove NEXT_PUBLIC_ prefix from server-side MARKET_BASE_URL (5 files) * 🏗️ chore: Phase 2 - Vite 工程搭建 - Add vite.config.ts with dual build (desktop/mobile via MOBILE env) - Add index.html SPA template with __SERVER_CONFIG__ placeholder - Add entry.desktop.tsx and entry.mobile.tsx SPA entry points - Add dev:spa, dev:spa:mobile, build:spa, build:spa:copy scripts - Install @vitejs/plugin-react and linkedom * ♻️ refactor: Phase 3 - 第一方包 Next.js 解耦 - Replace next/link with <a> in builtin-tool-web-browsing (4 files, external links) - Replace next/image with <img> in builtin-tool-agent-builder/InstallPlugin.tsx - Add Vite import.meta.env compat for isDesktop in const/version.ts, builtin-tool-gtd, builtin-tool-group-management * ♻️ refactor: Phase 4a - Auth 页面改用直接 next/navigation 和 next/link - 9 auth files: @/libs/next/navigation → next/navigation - 5 auth files: @/libs/next/Link → next/link - Auth pages remain in Next.js App Router, need direct Next.js imports * ♻️ refactor: Phase 4b - Next.js 抽象层替换为 react-router-dom/vanilla React - navigation.ts: useRouter/usePathname/useSearchParams/useParams → react-router-dom - navigation.ts: redirect/notFound → custom error throws - navigation.ts: useServerInsertedHTML → no-op for SPA - Link.tsx: next/link → react-router-dom Link adapter (href→to, external→<a>) - Image.tsx: next/image → <img> wrapper with fill/style support - dynamic.tsx: next/dynamic → React.lazy + Suspense wrapper * ✨ feat: Phase 5 - 新建 SPAGlobalProvider - Create SPAServerConfig type (analyticsConfig, clientEnv, theme, featureFlags, locale) - Add window.__SERVER_CONFIG__ and __MOBILE__ to global.d.ts - Create SPAGlobalProvider (client-only Provider tree mirroring GlobalProvider) - Includes AuthProvider for user session support - Update entry.desktop.tsx and entry.mobile.tsx to wrap with SPAGlobalProvider * ♻️ refactor: add SPA catch-all route handler with Vite dev proxy - Create (spa)/[[...path]]/route.ts for serving SPA HTML - Dev mode: proxy Vite dev server, rewrite asset URLs, inject Worker patch - Prod mode: read pre-built HTML templates - Build SPAServerConfig with analytics, theme, clientEnv, featureFlags - Update middleware to pass SPA routes through to catch-all * ♻️ refactor: skip auth checks for SPA routes in middleware SPA pages are all public (no sensitive data in HTML). Auth is handled client-side by SPAGlobalProvider's AuthProvider. Only Next.js auth routes and API endpoints go through session checks. * ♻️ refactor: replace Next.js-specific analytics with vanilla JS - Google.tsx: replace @next/third-parties/google with direct gtag script - ReactScan.tsx: replace react-scan/monitoring/next with generic script - Desktop.tsx: replace next/script with native script injection * ♻️ refactor: migrate @t3-oss/env-nextjs to @t3-oss/env-core Replace framework-specific env validation with framework-agnostic version. Add clientPrefix where client schemas exist. * ♻️ refactor: replace next-mdx-remote/rsc with react-markdown Use client-side react-markdown for MDX rendering instead of Next.js RSC-dependent next-mdx-remote. * 🔧 chore: update build scripts and Dockerfile for SPA integration - build:docker now includes SPA build + copy steps - dev defaults to Vite SPA, dev:next for Next.js backend - Dockerfile copies public/spa/ assets for production - Add public/spa/ to .gitignore (build artifact) * 🗑️ chore: remove old Next.js route segment files and serwist PWA - Delete [variants] page.tsx, error.tsx, not-found.tsx, loading.tsx - Delete root loading.tsx and empty [[...path]] directory - Delete unused loaders directory - Remove @serwist/next PWA wrapper from Next.js config * plan2 * ✨ feat: add locale detection script to index.html for SPA dev mode * ♻️ refactor: remove locale and theme from SPAServerConfig * ✨ feat: add [locale] segment with force-static and SEO meta generation * ♻️ refactor: remove theme/locale reads from SPAGlobalProvider * ✨ feat: set vite base to /spa/ for production builds * ✨ feat: auto-generate spaHtmlTemplates from vite build output * 🔧 chore: register dev:next task in turbo.json for parallel dev startup * ♻️ refactor: rename (spa) route group to spa segment, rewrite SPA routes via middleware * ✨ feat: add Vite-compatible i18n/locale modules with import.meta.glob and resolve aliases * 🔧 fix: use custom Vite plugin for module redirects instead of resolve.alias * very important * build * 🔧 chore: update build scripts and clean up Vite configuration by removing unused plugin and code Signed-off-by: Innei <tukon479@gmail.com> * 🗑️ refactor: remove all electron modifier scripts Modifiers are no longer needed with Vite SPA renderer build. * ✨ feat: add Vite renderer entry to electron-vite config Add renderer build configuration to electron-vite, replacing the old Next.js shadow workspace build flow. Delete buildNextApp.mts and moveNextExports.ts, update package.json scripts accordingly. * ✨ feat: add .desktop suffix files for eager i18n loading Create 4 .desktop files that use import.meta.glob({ eager: true }) for synchronous locale access in Electron desktop builds, replacing the async lazy-loading used in web SPA builds. * 🔧 refactor: adapt Electron main process for Vite renderer Replace nextExportDir with rendererDir, update protocol from app://next to app://renderer, simplify file resolution to SPA fallback pattern, update _next/ asset paths to /assets/. * 🔧 chore: update electron-builder files config for Vite renderer Replace dist/next references with dist/renderer, remove Next.js specific exclusion rules no longer applicable to Vite output. * 🗑️ chore: remove @ast-grep/napi dependency No longer needed after removing electron modifier scripts. * 🔧 refactor: unify isDesktop to __ELECTRON__ compile-time constant Remove NEXT_PUBLIC_IS_DESKTOP_APP and VITE_IS_DESKTOP_APP env vars. Unify isDesktop in @lobechat/const using __ELECTRON__ defined by Vite. Re-export from builtin-tool packages. Scripts use DESKTOP_BUILD. * update Signed-off-by: Innei <tukon479@gmail.com> * 🔧 refactor: use electron-vite ELECTRON_RENDERER_URL instead of hardcoded port 3015 Replace hardcoded http://localhost:3015 with process.env.ELECTRON_RENDERER_URL injected by electron-vite dev server. Clean up stale Next.js references. * 🐛 fix: use local renderer-entry shim to resolve Vite root path issue HTML entry ../../src/entry.desktop.tsx resolves to /src/entry.desktop.tsx in URL space, which Vite cannot find within apps/desktop/ root. Add a local shim that imports across root via module resolver instead. * 🔧 refactor: extract shared renderer Vite config into sharedRendererConfig Deduplicate plugins (nodeModuleStub, platformResolve, tsconfigPaths) and define (__MOBILE__, __ELECTRON__, process.env) between root vite.config.ts and electron.vite.config.ts renderer section. * 🔧 refactor: move all renderer plugins and optimizeDeps into shared config sharedRendererPlugins now includes react, codeInspectorPlugin alongside nodeModuleStub, platformResolve, tsconfigPaths. Add sharedOptimizeDeps for pre-bundling list. Both root and electron configs consume shared only. * 🐛 fix: set electron renderer root to monorepo root for correct glob resolution import.meta.glob with absolute paths (e.g. /node_modules/antd/...) resolved within apps/desktop/ instead of monorepo root. Change renderer root to ROOT_DIR, add electronDesktopHtmlPlugin middleware to rewrite / to /apps/desktop/index.html, and remove the now-unnecessary renderer-entry.ts shim. * desktop vite !! Signed-off-by: Innei <tukon479@gmail.com> * sync import !! Signed-off-by: Innei <tukon479@gmail.com> * clean ci!! Signed-off-by: Innei <tukon479@gmail.com> * 🔧 refactor: update SPA path structure and clean up dependencies - Changed the path in .gitignore and related files from [locale] to [variants] for SPA templates. - Updated index.html to set body height to 100%. - Cleaned up package.json by removing unused dependencies and reorganizing devDependencies. - Refactored RendererUrlManager to use a constant for SPA entry HTML path. - Removed obsolete route.ts file from the SPA structure. - Adjusted proxy configuration to reflect the new SPA path structure. Signed-off-by: Innei <tukon479@gmail.com> * 🔧 chore: update build script to include mobile SPA build - Modified the build script in package.json to add the mobile SPA build step. - Ensured the build process accommodates both desktop and mobile SPA versions. Signed-off-by: Innei <tukon479@gmail.com> * 🔧 chore: update build scripts and improve file encoding consistency - Modified the build script in package.json to ensure the SPA copy step runs after the build. - Updated file encoding in generateSpaTemplates.mts from 'utf-8' to 'utf8' for consistency. Signed-off-by: Innei <tukon479@gmail.com> * 🔧 fix: correct Blob import syntax and update global server config type - Fixed the Blob import syntax in route.ts to ensure proper module loading. - Updated the global server configuration type in global.d.ts for improved type safety. Signed-off-by: Innei <tukon479@gmail.com> * 🔧 test: update RendererUrlManager test to reflect new file path - Modified the mock implementation in RendererUrlManager.test.ts to check for the updated file path '/mock/export/out/apps/desktop/index.html'. - Adjusted the expected resolved path in the test to match the new structure. Signed-off-by: Innei <tukon479@gmail.com> * 🔧 refactor: remove catch-all example file and update imports - Deleted the catch-all example file catch-all.eg.ts to streamline the codebase. - Updated import paths in ClientResponsiveLayout.tsx and ClientResponsiveContent/index.tsx to use the new dynamic import location. - Added type declarations for HTML templates in spaHtmlTemplates.d.ts. - Adjusted tsconfig.json to include the updated file structure. - Enhanced type definitions in global.d.ts and fixed locale loading in locale.vite.ts. Signed-off-by: Innei <tukon479@gmail.com> * e2e Signed-off-by: Innei <tukon479@gmail.com> * 🔧 chore: remove unused build script for Vercel deployment - Deleted the build:vercel script from package.json to streamline the build process. - Ensured the remaining build scripts are organized and relevant. Signed-off-by: Innei <tukon479@gmail.com> * 🔧 config: update Vite build input for mobile support - Changed the build input path in vite.config.ts to conditionally use 'index.mobile.html' for mobile builds, enhancing support for mobile SPA versions. Signed-off-by: Innei <tukon479@gmail.com> * 🔧 feat: add compatibility checks for import maps and cascade layers - Implemented functions to check for browser support of import maps and CSS cascade layers. - Redirected users to a compatibility page if their browser does not support the required features. - Updated the build script in package.json to use the experimental analyze command for better performance. Signed-off-by: Innei <tukon479@gmail.com> * chore: rename Signed-off-by: Innei <tukon479@gmail.com> * 🔧 feat: refactor authentication layout and introduce global providers - Created a new RootLayout component to streamline the layout structure. - Removed the old layout file for variants and integrated necessary features into the new layout. - Added AuthGlobalProvider to manage authentication context and server configurations. - Introduced language and theme selection components for enhanced user experience. - Updated various components to utilize the new context and improve modularity. Signed-off-by: Innei <tukon479@gmail.com> * 🔧 config: exclude build artifacts from serverless functions - Updated the next.config.ts to exclude SPA, desktop, and mobile build artifacts from serverless functions. - Added paths for public/spa/**, dist/**, apps/desktop/build/**, and packages/database/migrations/** to the exclusion list. Signed-off-by: Innei <tukon479@gmail.com> * 🔧 config: refine exclusion of build artifacts from serverless functions - Updated next.config.ts to specify exclusion paths for desktop and mobile build artifacts. - Changed exclusions from dist/** and apps/desktop/build/** to dist/desktop/**, dist/mobile/**, and apps/desktop/** for better clarity and organization. Signed-off-by: Innei <tukon479@gmail.com> * 🔧 fix: update BrowserRouter basename for local development - Modified the ClientRouter component to conditionally set the basename of BrowserRouter based on the __DEBUG_PROXY__ variable, improving local development experience. Signed-off-by: Innei <tukon479@gmail.com> * 🔧 feat: implement mobile SPA workflow and S3 asset management - Added a new workflow for building and uploading mobile SPA assets to S3, including environment variable configurations in .env.example. - Updated package.json to include a new script for the mobile SPA workflow. - Enhanced the Vite configuration to support dynamic CDN base paths. - Refactored the template generation script to handle mobile HTML templates more effectively. - Introduced new modules for uploading assets to S3 and generating mobile HTML templates. Signed-off-by: Innei <tukon479@gmail.com> * 🐛 fix: extract origin from MOBILE_S3_PUBLIC_DOMAIN to prevent double key prefix * 🔧 fix: update mobile HTML template to use the latest asset versions - Modified the mobile HTML template to reference the updated JavaScript asset version for improved functionality. - Ensured consistency in the template structure while maintaining existing styles and scripts. Signed-off-by: Innei <tukon479@gmail.com> * 🔧 chore: update dependencies and refine service worker integration - Removed outdated dependencies related to Serwist from package.json and tsconfig.json. - Added vite-plugin-pwa to enhance PWA capabilities in the Vite configuration. - Updated service worker registration logic in the PWA installation component. - Introduced a new local development proxy route for debugging purposes. Signed-off-by: Innei <tukon479@gmail.com> * 🔧 chore: refactor development scripts and remove Turbo configuration - Updated the dev script in package.json to use a new startup sequence script for improved development workflow. - Removed the outdated turbo.json configuration file as it is no longer needed. - Introduced devStartupSequence.mts to manage the startup of Next.js and Vite processes concurrently. Signed-off-by: Innei <tukon479@gmail.com> * 🔧 feat: update entry points and introduce debug proxy for local development - Changed the main entry point in index.html from entry.desktop.tsx to entry.web.tsx for improved web compatibility. - Added an initialize.ts file to enable immer's enableMapSet functionality. - Introduced a new __DEBUG_PROXY__ variable in global types to support local development proxy features. - Implemented a debug proxy route to facilitate local development with dynamic HTML injection and script handling. - Removed outdated mobile routing components to streamline the codebase. Signed-off-by: Innei <tukon479@gmail.com> * 🔧 refactor: replace BrowserRouter with RouterProvider for improved routing - Updated entry points for desktop, mobile, and web to utilize RouterProvider and createAppRouter for better routing management. - Removed the deprecated renderRoutes function in favor of a more streamlined router configuration. - Enhanced router setup to support error boundaries and dynamic routing. Signed-off-by: Innei <tukon479@gmail.com> * 🔧 refactor: remove direct access handling for SPA routes in proxy configuration - Eliminated the handling of direct access to pre-rendered SPA pages in the proxy configuration. - Simplified the request processing logic by removing checks for SPA routes, streamlining the middleware response flow. Signed-off-by: Innei <tukon479@gmail.com> * update * 🔧 refactor: enhance Worker instantiation logic in mobile HTML template * 🐛 fix: remove duplicate waitForPageWorkspaceReady calls in page CRUD e2e steps * 🔧 refactor: simplify createTracePayload function by using btoa for base64 encoding * 🔧 refactor: specify locales in import.meta.glob for dayjs and antd * 🔧 refactor: replace Node.js Buffer with web-compatible btoa for base64 encoding in file upload * 🐛 fix: disable consistent-type-imports rule for mdx files to prevent eslint crash * 🔧 refactor: add height style to root div for consistent layout * 🔧 refactor: replace btoa with Buffer for base64 encoding in trace and file upload handling * 🔧 refactor: extract nextjsOnlyRoutes to a separate file for better organization * 🔧 refactor: enable Immer MapSet plugin in tests for better state management Signed-off-by: Innei <tukon479@gmail.com> * 🔧 refactor: integrate sharedRollupOutput configuration and increase cache size for better performance Signed-off-by: Innei <tukon479@gmail.com> * 🗑️ chore: remove obsolete desktop.routes.test.ts file as it is no longer needed Signed-off-by: Innei <tukon479@gmail.com> * 🐛 fix: use cross-env for env vars in npm scripts (Windows CI) Co-authored-by: Cursor <cursoragent@cursor.com> * 🔧 chore: update Dockerfile for web-only build and adjust npm scripts to use pnpm Signed-off-by: Innei <tukon479@gmail.com> * 🔧 chore: enhance Dockerfile prebuild process with environment checks and add new dependencies - Updated Dockerfile to include environment checks before removing desktop-only code. - Added new dependencies in package.json: @aws-sdk/client-bedrock-runtime, @opentelemetry/auto-instrumentations-node, @opentelemetry/resources, @opentelemetry/sdk-metrics, and ajv. - Configured Rollup to exclude @aws-sdk/client-bedrock-runtime from the SPA bundle. - Introduced dockerPrebuild.mts script for environment variable validation and information logging. Signed-off-by: Innei <tukon479@gmail.com> * 🔧 chore: enhance Vite and Electron configurations with environment loading and trace encoding improvements - Updated Vite and Electron configurations to load environment variables using loadEnv. - Modified trace encoding in utils to use TextEncoder for better compatibility. - Adjusted sharedRendererConfig to expose only necessary public environment variables. Signed-off-by: Innei <tukon479@gmail.com> * 🗑️ chore: remove plans directory (migrated to discussion) * ♻️ refactor: inject NEXT_PUBLIC_* env per key in Vite define Co-authored-by: Cursor <cursoragent@cursor.com> * ✨ feat: add loading screen with animation to enhance user experience - Introduced a loading screen with a brand logo and animations for better visual feedback during loading times. - Implemented CSS styles for the loading screen and animations in index.html. - Removed the loading screen from the DOM once the layout is ready using useLayoutEffect in SPAGlobalProvider. Signed-off-by: Innei <tukon479@gmail.com> * 🗑️ chore: remove unnecessary external dependency from Vite configuration - Eliminated the external dependency '@aws-sdk/client-bedrock-runtime' from the Vite configuration to streamline the build process for the SPA bundle. Signed-off-by: Innei <tukon479@gmail.com> * ✨ feat: add web app manifest link in index.html and enable PWA support in Vite configuration - Added a link to the web app manifest in index.html to enhance PWA capabilities. - Enabled manifest support in Vite configuration for improved service worker functionality. Signed-off-by: Innei <tukon479@gmail.com> * 🔧 chore: update link rel attributes for improved SEO and consistency - Modified link rel attributes in multiple components to remove 'noreferrer' and standardize to 'nofollow'. - Adjusted imports in PageContent components for better organization. Signed-off-by: Innei <tukon479@gmail.com> * update provider * ✨ feat: enhance loading experience and update package dependencies - Added a loading screen with animations and a brand logo in index.html for improved user feedback during loading times. - Introduced CSS styles for the loading screen and animations. - Updated package.json files across multiple packages to include "@lobechat/const" as a dependency. Signed-off-by: Innei <tukon479@gmail.com> * fix: update proxy Signed-off-by: Innei <tukon479@gmail.com> * 🗑️ chore: remove GlobalLayout and Locale components - Deleted GlobalLayout and Locale components from the GlobalProvider directory to streamline the codebase. - This removal is part of a refactor to simplify the layout structure and improve maintainability. Signed-off-by: Innei <tukon479@gmail.com> * chore: clean up console logs and improve component structure - Removed unnecessary console log statements from AgentForkTag components in both agent and community directories to enhance code cleanliness. - Refactored UserAgentList component for better readability by restructuring the useUserDetailContext hook and adjusting the layout of Flexbox components. Signed-off-by: Innei <tukon479@gmail.com> * chore: remove console log from MemoryAnalysis component * chore: update mobile HTML template with new asset links - Replaced the previous asset links in the mobile HTML template with updated versions to ensure the latest resources are utilized. - Adjusted the link rel attributes for module preloading to enhance performance and loading efficiency. Signed-off-by: Innei <tukon479@gmail.com> * fix: correct variable assignment in createClientTaskThread integration test - Updated the assignment of the second parent message in the createClientTaskThread integration test to improve clarity and ensure proper data handling. - Changed the variable name from 'secondParentMsg' to 'inserted' for better context before extracting the first message from the inserted results. Signed-off-by: Innei <tukon479@gmail.com> * refactor: simplify authentication check in define-config - Removed the dependency on the isDesktop variable in the authentication check to streamline the logic. - Enhanced the clarity of the redirection process for protected routes by focusing solely on the isLoggedIn status. Signed-off-by: Innei <tukon479@gmail.com> * ✨ feat(dev): enhance local development setup with debug proxy instructions - Added detailed instructions for starting the development environment in CLAUDE.md, including commands for SPA and full-stack modes. - Updated README.md and README.zh-CN.md to reflect new commands and the debug proxy URL for local development. - Introduced a Vite plugin to print the debug proxy URL upon server start, facilitating easier local development against the production backend. - Corrected the debug proxy route in entry.web.tsx and define-config.ts for consistency. This improves the developer experience by providing clear guidance and tools for local development. Signed-off-by: Innei <tukon479@gmail.com> * optimize perf * optimize perf * optimize perf * remove speedy plugin * add dayjs vendor * Revert "remove speedy plugin" This reverts commit bf986afeb114939c2bddfa41ff24827ea8559183. --------- Signed-off-by: Innei <tukon479@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com> | 8 months ago | |
✨ feat(composio): add Composio integration layer as Klavis replacement (#15461) * ✨ feat(composio): add Composio integration layer as Klavis replacement - Add @composio/core SDK client factory (src/libs/composio) - Add COMPOSIO_API_KEY server config + enableComposio flag - Add COMPOSIO_APP_TYPES const with 21 curated apps (appSlug-based) - Add lambda/composio tRPC router (createConnection, deleteConnection, getConnection, updateComposioPlugin) - Add tools/composio tRPC router (executeAction, listActions, getActions) - Add ComposioService with executeComposioTool + getComposioManifests - Add composioStore Zustand slice (7 files: types, initialState, action, selectors, index, test) - Wire composioStore into ToolStore state and action tree - Add composioStoreSelectors to tool selectors index - Add handleComposioInstall to AgentManagerRuntime - Extend CustomPluginParams with composio field - Add enableComposio to GlobalServerConfig types Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * 🔥 refactor(klavis): remove Klavis integration and migrate all references to Composio - Delete all Klavis source files (libs, config, const, routers, services, store, UI components) - Rename KlavisX components to ComposioX equivalents - Replace all Klavis store selectors, types, and action names with Composio counterparts - Fix authConfigId to be server-side managed (auto-fetch/create from Composio API) - Update DB customParams.klavis → customParams.composio throughout - Fix ToolSource type: 'klavis' → 'composio' - Fix TaskTemplateSkillSource: 'klavis' → 'composio' - Fix RecommendedSkillType.Klavis → RecommendedSkillType.Composio - Remove klavis npm package dependency - Update builtin-tool-creds: connectKlavisService → connectComposioService - Update RuntimeExecutors: KLAVIS_SERVICES_LIST → COMPOSIO_SERVICES_LIST - All Composio-related type errors: 0 remaining Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * 🐛 fix(composio): complete the klavis→composio migration and wire the OAuth callback The composio branch had renamed the klavis modules but left consumers half-migrated, so the OAuth connect link did not work end-to-end. Finish it: - Add the missing OAuth callback route /api/composio/oauth/callback (Composio uses managed auth, so it only lands the user back and closes the popup; the opener then polls getConnection and syncs tools). Allowlist it as a public cross-site redirect landing in the proxy define-config. - Remove leftover import { type Klavis } from 'composio' (non-existent package) and type the prop as string. - Fix undefined oauthUrl → redirectUrl in every OAuth popup opener. - Map serverName to appSlug (API) / label (display); unify every createComposioConnection call to { appSlug, identifier, label }. - Compare against the ComposioServerStatus enum instead of the 'ACTIVE' string literal. - Use the renamed store fields composioServers / isComposioServersInit. - executeComposioTool: toolName → toolSlug. - Rename onboarding KlavisServerItem.tsx → ComposioServerItem.tsx to match its import. * 🐛 fix(composio): use connectedAccounts.link for Composio-managed OAuth connectedAccounts.initiate is no longer supported for Composio-managed OAuth auth configs (HTTP 400), which broke connecting apps like Gmail. Switch to connectedAccounts.link (POST /api/v3/connected_accounts/link) — same { callbackUrl } options and { id, redirectUrl } result, so it is a drop-in. Also treat Composio's status=failed callback query param as a failed authorization in the OAuth callback page. * 🐛 fix(composio): correct tool sync, execution, callback build, and list dedup Four fixes found while testing the Composio integration end-to-end: - listActions: use getRawComposioTools (raw defs with slug/inputParameters) instead of tools.get() (provider-wrapped, name/params under .function). The wrapped shape left every synced tool with an empty name, so they all collapsed to ${identifier}____ and the LLM rejected the request with "Tool names must be unique." - tools.execute: pass dangerouslySkipVersionCheck: true (manual execution otherwise throws ComposioToolVersionRequiredError when the toolkit version resolves to "latest"). Applied to both the executeAction router and the ComposioService used by the agent runtime. - OAuth callback route: escape only </>/& for the inline-script payload; the previous regex embedded literal U+2028/U+2029 line separators which broke the regex literal at build time ("Unterminated regular expression"). - installed-plugin selectors: filter out customParams.composio (was still checking the old customParams.klavis), so a connected Composio app no longer shows up twice in the skill picker / tool discovery list. * ✨ feat(composio): pin auth config id per toolkit via env Add COMPOSIO_AUTH_CONFIG_IDS (JSON map of identifier -> authConfigId) so a pre-created Composio auth config (e.g. a custom/white-label OAuth app set up in the dashboard) can be used directly per toolkit. createConnection now resolves the pinned auth config first, then falls back to discovering an existing one for the toolkit (matched case-insensitively), and only auto-creates a Composio-managed config when nothing is configured. * 🐛 fix(composio): update plugin invoke test to composio + sort tool initialState imports - action.test.ts: the action was renamed invokeKlavisTypePlugin → invokeComposioTypePlugin (Klavis is being removed); update the test to call the composio action and drop the klavis-era naming/mock field. - store/tool/initialState.ts: order the composioStore import before connector to satisfy simple-import-sort/imports. * 🐛 fix(composio): stop client deleting remote connections by static allowlist useFetchUserComposioConnections no longer deletes remote connections/plugins for identifiers outside the compile-time COMPOSIO_APP_TYPES list — an outdated client bundle would silently destroy a legitimate connection. Unknown identifiers are now only hidden locally. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * 🐛 fix(composio): resolve connectedAccountId server-side in executeAction executeAction now takes identifier and looks up the connectedAccountId from the caller's own user-scoped plugin record (PluginModel), instead of trusting a connectedAccountId supplied by the client — which would let a user drive another user's connection. Callers (callComposioTool, composioExecutor) pass identifier accordingly. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * 🐛 fix(composio): enable plugin only after OAuth succeeds Move enablePluginForAgent into the ACTIVE and post-auth-success branches so a cancelled/timed-out authorization no longer leaves an enabled-but-unauthorized Composio tool on the agent. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * 🔥 fix(composio): drop dead OAuth callback postMessage The lobe-composio-oauth postMessage had no consumer — the OAuth wait uses polling + window.closed detection. Remove it and its escaping helpers. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * 🐛 fix(composio): resolve type-check errors after canary merge - Guard authConfigId to a definite string before persisting/returning it (createConnection), fixing the string|undefined assignment in both the server router and the composio store server object. - Replace leftover KLAVIS_SERVER_TYPES with COMPOSIO_APP_TYPES in AgentTool. - Update SkillAuthRow test to a composio source/provider (klavis is removed from TaskTemplateSkillSource). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * ♻️ refactor(composio): remove leftover klavis naming after migration Klavis is deprecated and fully replaced by Composio. The migration kept the underlying composio wiring but left klavis-named identifiers, comments, prompt tags, i18n keys, and files throughout. Sweep them to composio: - Code identifiers/comments across ~70 files (isKlavisEnabled→isComposioEnabled, allKlavisServers→allComposioServers, klavisManifests→composioManifests, etc.) - LLM prompt tags (<klavis_tools>→<composio_tools>, KLAVIS_SERVICES_LIST→ COMPOSIO_SERVICES_LIST) — kept consistent across definition and substitution - i18n keys tools.klavis.*→tools.composio.* + user-facing "Klavis"→"Composio" brand strings, in default setting.ts and all locale setting.json files - Rename useKlavisOAuth→useComposioOAuth, useKlavisServerActions→ useComposioServerActions (+ imports) - klavis.ai homepage URLs → composio.dev - Remove the dead klavis npm peerDependency; swap .env.example Klavis section for Composio; update product docs Changelog history left untouched. Pure rename — no behavior change. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * 🐛 fix(composio): remove duplicate composio key in CustomPluginParams The klavis→composio rename collapsed the deprecated klavis param block onto the live composio one, producing a duplicate composio property. The klavis shape (instanceId/serverName/serverUrl/isAuthenticated) is dead — no code reads it — so drop it and keep the live composio shape. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * 🐛 fix(composio): let pending/errored connections re-authorize or be deleted A Composio connection link (lk_...) expires after a while. Previously a pending/errored row only offered to reopen the stored — now expired — redirectUrl, and the delete action existed only for ACTIVE connections, so an expired link left the tool permanently stuck: unauthenticatable and unremovable. - Add reauthorizeComposioConnection store action: best-effort delete the stale connection, then mint a fresh link (replaces the record in place) - Settings skill item + chat toolbar item: PENDING/ERROR now render a ··· menu with Re-authorize (fresh link) and Delete - Onboarding: pending/errored row click re-mints a fresh link instead of reopening the stale one - i18n: add tools.composio.reauthorize (en-US + zh-CN) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * 🐛 fix(composio): return auth link instead of opening popup from agent connectComposioService runs from the agent's response, which carries no user gesture, so window.open was blocked by the browser and the flow always failed with "Authorization was cancelled or timed out". Instead of opening the popup ourselves, return the authorization redirectUrl in the tool result so the agent can surface a clickable link — the user's click is a real gesture and completes the OAuth normally. Drops the now-unused popup/poll helper. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * 💄 fix(composio): match pending toolbar item to sibling authorize affordance The ··· dropdown I added to the chat-toolbar Composio item was a bare icon (inconsistent color/size with the app's standard menus), its popup was mis-anchored/offset, and replacing the visible "authorize" cue with a ··· made an un-authorized (pending) row look connected. Match the sibling LobehubSkillServerItem instead: render a clickable "Re-authorize" text + external-link icon for PENDING/ERROR. Clicking re-mints a fresh link (the prior one may have expired) and opens it. No dropdown, so no offset; the explicit affordance makes it clear the row still needs auth. Delete stays on the settings page (siblings have no inline delete here either). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> | 4 months ago | |
♻️ refactor(docker-compose): restructure dev environment (#12132) * 🔥 chore(docker-compose): remove Casdoor SSO dependency Casdoor is no longer needed since BetterAuth now supports email/password registration natively. LOBE-3907 * ♻️ refactor(docker-compose): restructure directories - Rename local/ to dev/ for development dependencies - Remove logto/ and zitadel/ from production/ - Restore Casdoor config in production/grafana/ - Simplify dev/ to core services only (postgresql, redis, rustfs, searxng) - Update docker-compose.development.yml to use dev/ - Remove minio-bucket.config.json (switched to rustfs) * ♻️ refactor(docker-compose): simplify dev environment setup - Remove docker-compose.development.yml, use dev/docker-compose.yml directly - Add npm scripts: dev:docker, dev:docker:down, dev:docker:reset - Simplify .env.example.development (remove variable refs, redundant vars) - Update docker-compose/dev/.env.example (consistent passwords) - Add docker-compose/dev/data/ to .gitignore - Update setup docs: use npm scripts, remove image generation section * 🔧 chore: add SSRF_ALLOW_PRIVATE_IP_ADDRESS to dev env example * 🔒 security: auto-generate KEY_VAULTS_SECRET and AUTH_SECRET in setup.sh - Remove hardcoded secrets from docker-compose.yml - Add placeholders to .env.example files - Generate secrets dynamically in setup.sh using openssl rand -base64 32 * 🔧 chore(docker-compose): expose SearXNG port and improve dev scripts - Add SearXNG port mapping (8180:8080) for host access - Use --wait flag in dev:docker to ensure services are healthy - Include db:migrate in dev:docker:reset for one-command reset - Update MinIO reference to RustFS in zh-CN docs - Add SearXNG to service URLs and port conflict docs | 8 months ago | |
🔧 chore: update eslint v2 configuration and suppressions (#12133) * v2 init * chore: update eslint suppressions and package dependencies - Removed several eslint suppressions related to array sorting and reversing from eslint-suppressions.json to clean up the configuration. - Updated @lobehub/lint package version from 2.0.0-beta.6 to 2.0.0-beta.7 in package.json for improvements and bug fixes. - Made minor formatting adjustments in vitest.config.mts and various SKILL.md files for better readability and consistency. Signed-off-by: Innei <tukon479@gmail.com> * fix: clean up import statements and formatting - Removed unnecessary whitespace in replaceComponentImports.ts for improved readability. - Standardized import statements in contextEngineering.ts and createAgentExecutors.ts by adding missing spaces for consistency. Signed-off-by: Innei <tukon479@gmail.com> * chore: update eslint suppressions and clean up code formatting * 🐛 fix: use vi.hoisted for mock variable initialization Fix TDZ error in persona service test by using vi.hoisted() to ensure mock variables are available when vi.mock factory runs. --------- Signed-off-by: Innei <tukon479@gmail.com> | 8 months ago | |
♻️ refactor(auth): migrate auth pages to a standalone lightweight SPA (#15689) * ✨ feat(oidc): add interaction details endpoint * ✨ feat(auth-spa): scaffold standalone auth SPA shell and build pipeline * 🐛 fix(auth-spa): address review findings in AuthShell copies * ✨ feat(auth-spa): add spa-auth html route handler * ♻️ refactor(auth-spa): migrate simple auth pages into auth SPA * 🔒 fix(auth-spa): validate locale segment in spa-auth route * ♻️ refactor(auth-spa): move verify-im route to main SPA * 🔒 fix(auth-spa): sanitize callbackUrl, fix signup form wiring, add router error element * ♻️ refactor(auth-spa): migrate oauth pages into auth SPA * 🐛 fix(auth-spa): address oauth migration review findings * ♻️ refactor(auth): route auth pages to standalone SPA and drop Next auth tree * 🔒 fix(auth): validate locale before middleware rewrite * 🔥 chore(auth-spa): drop unused messenger i18n namespace from auth shell * ⚡️ perf(build): share one react vendor bundle across web/mobile/auth SPA builds Build react core (react, react-dom, react-dom/client, react/jsx-runtime) once as a self-contained ESM bundle under /_spa/vendor-shared, then mark those specifiers external in every SPA build and map them via rolldown output.paths to the same hashed URLs, so the auth page warms the main app's react cache. react-router-dom stays per-build: apps use ~19K of it after tree shaking while a shared bundle must export all 252K. Also split auth i18n namespaces into per-locale chunks, keep locale runtime helpers out of the default locale chunk, and group packages/const into app-const so vendor-ai-runtime no longer captures it. * ♻️ refactor(spa): extract shared SPA html serving helpers Both the main SPA and auth SPA route handlers duplicated the Vite dev asset rewriting, analytics config assembly and html template rendering. Move them into src/server/spaHtml.ts; the desktop umami block becomes an opt-in flag only the main SPA enables. * 🐛 fix(auth-spa): bundle default locale resources and disable i18n suspense to fix signin mount loop * ✨ feat(auth-spa): wrap auth shell with BusinessAuthProvider slot * 👷 build(spa): support custom vite dev origin and mark SPA entries side-effectful * 🔥 chore: drop dead /welcome entry from nextjsOnlyRoutes * 🐛 fix(auth-spa): forward referral to signup and fix error boundary dark-mode contrast * ♻️ refactor(spa): lift NextThemeProvider above RouterProvider so route error boundaries are theme-aware * update | 4 months ago | |
🔨 chore: update i18n files & fix title skeleton (#14301) * chore: update i18n files & fix title skeleton * chore: update taskTemplate json * chore: update i18n files | 6 months ago | |
🐛 fix(docker): hoist @napi-rs/canvas for PDF parsing (#12475) 🐛 fix(docker): hoist @napi-rs/canvas for PDF parsing in Docker Add @napi-rs/canvas-* to public-hoist-pattern in .npmrc to fix DOMMatrix is not defined error when parsing PDFs in Docker. | 8 months ago | |
✨ feat: betterauth username signin (#10607) | 10 months ago | |
🔨 chore: replace husky with native git hooks (#14941) | 5 months ago | |
💥 feat: try 2.0 next BREAKING CHANGE: starting V2 | 1 year ago | |
🔧 chore: update eslint v2 configuration and suppressions (#12133) * v2 init * chore: update eslint suppressions and package dependencies - Removed several eslint suppressions related to array sorting and reversing from eslint-suppressions.json to clean up the configuration. - Updated @lobehub/lint package version from 2.0.0-beta.6 to 2.0.0-beta.7 in package.json for improvements and bug fixes. - Made minor formatting adjustments in vitest.config.mts and various SKILL.md files for better readability and consistency. Signed-off-by: Innei <tukon479@gmail.com> * fix: clean up import statements and formatting - Removed unnecessary whitespace in replaceComponentImports.ts for improved readability. - Standardized import statements in contextEngineering.ts and createAgentExecutors.ts by adding missing spaces for consistency. Signed-off-by: Innei <tukon479@gmail.com> * chore: update eslint suppressions and clean up code formatting * 🐛 fix: use vi.hoisted for mock variable initialization Fix TDZ error in persona service test by using vi.hoisted() to ensure mock variables are available when vi.mock factory runs. --------- Signed-off-by: Innei <tukon479@gmail.com> | 8 months ago | |
🔧 chore: update eslint v2 configuration and suppressions (#12133) * v2 init * chore: update eslint suppressions and package dependencies - Removed several eslint suppressions related to array sorting and reversing from eslint-suppressions.json to clean up the configuration. - Updated @lobehub/lint package version from 2.0.0-beta.6 to 2.0.0-beta.7 in package.json for improvements and bug fixes. - Made minor formatting adjustments in vitest.config.mts and various SKILL.md files for better readability and consistency. Signed-off-by: Innei <tukon479@gmail.com> * fix: clean up import statements and formatting - Removed unnecessary whitespace in replaceComponentImports.ts for improved readability. - Standardized import statements in contextEngineering.ts and createAgentExecutors.ts by adding missing spaces for consistency. Signed-off-by: Innei <tukon479@gmail.com> * chore: update eslint suppressions and clean up code formatting * 🐛 fix: use vi.hoisted for mock variable initialization Fix TDZ error in persona service test by using vi.hoisted() to ensure mock variables are available when vi.mock factory runs. --------- Signed-off-by: Innei <tukon479@gmail.com> | 8 months ago | |
✨ feat: add gpt-4o-mini in OpenAI Provider and set it as the default model (#3256) * ✨ feat: gpt-4o-mini to openai provider * ♻️ refactor: move gpt-4o-mini as default model * ✅ test: fix test * 🐛 fix: set gpt-4o-mini as default model * chore: improve code * chore: improve code --------- Co-authored-by: arvinxx <arvinx@foxmail.com> | 2 years ago | |
🔨 chore: update lint and TypeScript configs to exclude temporary directories (#8856) - Add tmp, temp, .temp directories to .eslintignore - Add .local, .cache, .claude, .serena directories to .eslintignore - Create .stylelintignore with same ignore patterns - Update tsconfig.json to exclude temporary directories from type checking - Prevents linting and type checking of temporary and AI tool directories | 1 year ago | |
📝 docs(skills): add ux design-values & execution-checklist skill (#15823) Define LobeHub's four product design values — 自然 Natural / 意义感 Meaningful / 确定性 Certainty / 生长性 Growth (adapted from Ant Design's values) — in a dedicated reference file (references/design-values.md), and keep the skill index focused on per-aspect execution checklists, each tagged with the value it serves: - Flow & momentum: push the user forward; success state = primary "go to result". - States: empty / loading / error all designed; empty is a purpose-built page. - Buttons & focus: exactly one primary button per surface. - Lists at scale: design for 1 → 10k rows (virtual scroll / pagination / batch). - Option visibility: pickers list all valid targets (e.g. the virtual inbox). - Loading visuals: no antd Spin; use NeuralNetworkLoading / project loaders. - Discoverability & growth: progressive disclosure; surface next capability in context. - Entity lifecycle completeness: no display-only features — design full CRUD + lifecycle, with the operation set scoped to the entity's source (official = read-only, community = install/uninstall, custom = full CRUD). Also: react skill points to ux for loading components, and AGENTS.md references the ux skill for designing/reviewing user-facing flows. | 4 months ago | |
🔖 chore(release): release version v2.2.6 [skip ci] | 4 months ago | |
📝 docs: make AGENTS the source of truth (#14180) | 6 months ago | |
📝 docs: Add topics usage | 2 years ago | |
📝 docs: sync contributing guide branding (#13533) | 7 months ago | |
✨ feat: suppport sandbox provider (#15184) * ✨ feat(cloud-sandbox): add Onlyboxes provider support for self-hosted sandbox (#15136) - Add SANDBOX_PROVIDER env var (market | onlyboxes) to select sandbox backend - Add Onlyboxes-specific env vars: ONLYBOXES_BASE_URL, ONLYBOXES_API_TOKEN, ONLYBOXES_LEASE_TTL_SEC - Create SandboxService abstraction layer with MarketSandboxService and OnlyboxesSandboxService implementations - Add createSandboxService factory that routes to configured provider - Migrate execInSandbox and exportFile t * ✨ feat(sandbox): improve Onlyboxes export flow * 🐛 fix(sandbox): pass presigned upload headers to Onlyboxes * ✅ test(sandbox): import tool runtime package * 🐛 fix(sandbox): preserve Market export errors * 🐛 fix(sandbox): allow empty docker env defaults * 🔒 fix: redact sandbox auth params in logs * 🐛 fix: address sandbox provider review comments * 🔐 feat: use onlyboxes jit tokens * 📝 docs: clarify cloud sandbox provider config * 🐛 fix: align cloud sandbox timeout defaults * 🐛 fix(sandbox): lower default Onlyboxes lease TTL to 15 minutes * 🐛 fix(sandbox): cap Onlyboxes task wait time * ♻️ refactor: split sandbox env config | 4 months ago | |
✨ feat(ci): add Claude PR auto-assign reviewer workflow (#13120) | 7 months ago | |
📝 docs: renamed license to LobeHub Community License (#9355) update license | 1 year ago | |
| 5 months ago | ||
| 5 months ago | ||
📝 docs: add SECURITY.md with vulnerability reporting policy (#13528) 📝 docs: add SECURITY.md with vulnerability reporting policy Define supported versions, reporting guidelines, response timeline, scope (in/out), and disclosure policy for security vulnerabilities. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> | 7 months ago | |
🔨 chore(codecov): update coverage grouping (#15650) 🔨 chore: update codecov coverage grouping | 4 months ago | |
🔧 chore: update eslint v2 configuration and suppressions (#12133) * v2 init * chore: update eslint suppressions and package dependencies - Removed several eslint suppressions related to array sorting and reversing from eslint-suppressions.json to clean up the configuration. - Updated @lobehub/lint package version from 2.0.0-beta.6 to 2.0.0-beta.7 in package.json for improvements and bug fixes. - Made minor formatting adjustments in vitest.config.mts and various SKILL.md files for better readability and consistency. Signed-off-by: Innei <tukon479@gmail.com> * fix: clean up import statements and formatting - Removed unnecessary whitespace in replaceComponentImports.ts for improved readability. - Standardized import statements in contextEngineering.ts and createAgentExecutors.ts by adding missing spaces for consistency. Signed-off-by: Innei <tukon479@gmail.com> * chore: update eslint suppressions and clean up code formatting * 🐛 fix: use vi.hoisted for mock variable initialization Fix TDZ error in persona service test by using vi.hoisted() to ensure mock variables are available when vi.mock factory runs. --------- Signed-off-by: Innei <tukon479@gmail.com> | 8 months ago | |
✨ feat(desktop): add local update testing scripts and stable channel API version check (#11474) * chore: stable updater * ✨ feat: add local update testing scripts and configuration - Introduced scripts for local update testing, including setup, server management, and manifest generation. - Added dev-app-update.local.yml for local server configuration. - Implemented generate-manifest.sh to create update manifests. - Created run-test.sh for streamlined testing process. - Updated README.md with instructions for local testing setup and usage. - Enhanced UpdaterManager to allow forced use of dev update configuration in packaged apps. Signed-off-by: Innei <tukon479@gmail.com> * 🐛 fix(desktop): update UpdaterManager test mocks for new exports Add missing mock exports for @/modules/updater/configs: - isStableChannel - githubConfig - UPDATE_SERVER_URL Add mock for @/env with getDesktopEnv Add setFeedURL method to autoUpdater mock * ✨ feat: add Conductor setup scripts and configuration * ✨ feat: enhance update modal functionality and refactor modal hooks - Added useUpdateModal for managing update modal state and behavior. - Refactored UpdateModal to utilize new modal management approach. - Improved useWatchBroadcast integration for handling update events. - Removed deprecated createModalHooks and related components from FunctionModal. - Updated AddFilesToKnowledgeBase and CreateNew modals to use new modal context for closing behavior. This refactor streamlines modal management and enhances the user experience during update processes. Signed-off-by: Innei <tukon479@gmail.com> * update flow (#11513) * ci: simplify desktop release workflow and add renderer tarball * 👷 ci: fix s3 upload credentials for desktop release * 🐛 fix(ci): use compact jq output for GitHub Actions matrix Add -c flag to jq commands to produce single-line JSON output, fixing "Invalid format" error when setting GITHUB_OUTPUT. * 🐛 fix(ci): add administration permission to detect self-hosted runner The /actions/runners API requires administration:read permission to list repository runners. * 🔧 refactor(ci): use workflow input for self-hosted runner selection Replace API-based runner detection with workflow input parameter since GITHUB_TOKEN lacks permission to call /actions/runners API. - Add use_self_hosted_mac input (default: true) - Release events always use self-hosted runner - Manual dispatch can toggle via input * feat(updater): add stable channel support with fallback mechanism - Configure electron-builder to generate stable-mac.yml for stable channel - Update CI workflow to handle both stable and latest manifest files - Implement fallback to GitHub provider when primary S3 provider fails - Reset to primary provider after successful update check * 🐛 fix(updater): remove invalid channel config from electron-builder - Remove unsupported 'channel' property from electron-builder config - Create stable*.yml files from latest*.yml in workflow instead - This ensures electron-updater finds correct manifest for stable channel * 🐛 fix(updater): use correct channel based on provider type - S3 provider: channel='stable' → looks for stable-mac.yml - GitHub provider: channel='latest' → looks for latest-mac.yml This fixes the 404 error when falling back to GitHub releases, which only have latest-mac.yml files. * refactor(env): remove unused OFFICIAL_CLOUD_SERVER and update env defaults Update environment variable handling by removing unused OFFICIAL_CLOUD_SERVER and setting defaults for UPDATE_CHANNEL and UPDATE_SERVER_URL from process.env during build stage. * 🐛 fix(ci): add version prefix to stable manifest URLs for S3 S3 directory structure: stable/{version}/xxx.dmg So stable-mac.yml URLs need version prefix: url: LobeHub-2.1.0-arm64.dmg → url: 2.1.1/LobeHub-2.1.0-arm64.dmg * ✨ feat(ci): add renderer tar manifest for integrity verification Creates stable-renderer.yml with SHA512 checksum for lobehub-renderer.tar.gz This allows the desktop app to verify renderer tarball integrity before extraction. * 🐛 fix(ci): fix YAML syntax error in renderer manifest generation * ✨ feat(ci): archive manifest files in version directory * refactor(ci): update desktop release workflows to streamline build process - Removed unnecessary dependencies in the build job for the desktop beta workflow. - Introduced a new gate job to conditionally proceed with publishing based on the success of previous jobs. - Updated macOS file merging to depend on the new gate job instead of the build job. - Simplified macOS runner selection logic in the stable workflow by using GitHub-hosted runners exclusively. Signed-off-by: Innei <tukon479@gmail.com> * refactor(electron): reorganize titlebar components and update imports - Moved titlebar components to a new directory structure for better organization. - Updated import paths for SimpleTitleBar, TitleBar, and related constants. - Introduced new components for connection management and navigation within the titlebar. - Added constants for title bar height to maintain consistency across components. This refactor enhances the maintainability of the titlebar code and improves the overall structure of the Electron application. Signed-off-by: Innei <tukon479@gmail.com> * feat(ci): add release notes handling to desktop stable workflow - Enhanced the desktop stable release workflow to include release notes. - Updated output variables to capture release notes from the GitHub event. - Adjusted environment variables in subsequent jobs to utilize the new release notes data. This addition improves the clarity and documentation of releases by ensuring that release notes are included in the workflow process. Signed-off-by: Innei <tukon479@gmail.com> * 🐛 fix: call onClose after knowledge base modal closes * 🧪 test: fix UpdaterManager update channel mocks --------- Signed-off-by: Innei <tukon479@gmail.com> | 9 months ago | |
✨ feat: add work path for local system (#11128) * ✨ feat: support to show working dir * fix style * update docs * update topic * refactor to use chat config * inject working Directory * update i18n * fix tests | 9 months ago | |
💄 style: Update agent onboarding style (#13678) * 💄 style: Update onboarding * style: update * 💄 style: Update i18n * fix: test | 6 months ago | |
♻️ refactor(auth): migrate auth pages to a standalone lightweight SPA (#15689) * ✨ feat(oidc): add interaction details endpoint * ✨ feat(auth-spa): scaffold standalone auth SPA shell and build pipeline * 🐛 fix(auth-spa): address review findings in AuthShell copies * ✨ feat(auth-spa): add spa-auth html route handler * ♻️ refactor(auth-spa): migrate simple auth pages into auth SPA * 🔒 fix(auth-spa): validate locale segment in spa-auth route * ♻️ refactor(auth-spa): move verify-im route to main SPA * 🔒 fix(auth-spa): sanitize callbackUrl, fix signup form wiring, add router error element * ♻️ refactor(auth-spa): migrate oauth pages into auth SPA * 🐛 fix(auth-spa): address oauth migration review findings * ♻️ refactor(auth): route auth pages to standalone SPA and drop Next auth tree * 🔒 fix(auth): validate locale before middleware rewrite * 🔥 chore(auth-spa): drop unused messenger i18n namespace from auth shell * ⚡️ perf(build): share one react vendor bundle across web/mobile/auth SPA builds Build react core (react, react-dom, react-dom/client, react/jsx-runtime) once as a self-contained ESM bundle under /_spa/vendor-shared, then mark those specifiers external in every SPA build and map them via rolldown output.paths to the same hashed URLs, so the auth page warms the main app's react cache. react-router-dom stays per-build: apps use ~19K of it after tree shaking while a shared bundle must export all 252K. Also split auth i18n namespaces into per-locale chunks, keep locale runtime helpers out of the default locale chunk, and group packages/const into app-const so vendor-ai-runtime no longer captures it. * ♻️ refactor(spa): extract shared SPA html serving helpers Both the main SPA and auth SPA route handlers duplicated the Vite dev asset rewriting, analytics config assembly and html template rendering. Move them into src/server/spaHtml.ts; the desktop umami block becomes an opt-in flag only the main SPA enables. * 🐛 fix(auth-spa): bundle default locale resources and disable i18n suspense to fix signin mount loop * ✨ feat(auth-spa): wrap auth shell with BusinessAuthProvider slot * 👷 build(spa): support custom vite dev origin and mark SPA entries side-effectful * 🔥 chore: drop dead /welcome entry from nextjsOnlyRoutes * 🐛 fix(auth-spa): forward referral to signup and fix error boundary dark-mode contrast * ♻️ refactor(spa): lift NextThemeProvider above RouterProvider so route error boundaries are theme-aware * update | 4 months ago | |
💄 style: mount DynamicFavicon for agent operation favicon switching (#13416) * ✨ feat: mount DynamicFavicon to enable favicon state switching during agent operations Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * 🐛 fix: add favicon link tags to SPA HTML templates and handle missing links in updateFaviconDOM Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> | 7 months ago | |
💄 style: mount DynamicFavicon for agent operation favicon switching (#13416) * ✨ feat: mount DynamicFavicon to enable favicon state switching during agent operations Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * 🐛 fix: add favicon link tags to SPA HTML templates and handle missing links in updateFaviconDOM Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> | 7 months ago | |
🔧 chore: update basic config | 10 months ago | |
🐛 fix(auth): add AUTH_DISABLE_EMAIL_PASSWORD env to enable SSO-only mode (#12009) | 9 months ago | |
♻️ refactor: serve Vite SPA static assets under /_spa (#13409) Made-with: Cursor | 7 months ago | |
Merge remote-tracking branch 'origin/main' into canary | 4 months ago | |
♻️ refactor: extract server into apps/server + root namespaces into packages (#14949) * ♻️ refactor(server-deps): extract envs/trpc/config/locales/business-server into packages * ♻️ refactor: relocate src/server backend modules to apps/server package Rebuilt on current canary: git mv the 8 server subtrees (services, routers, modules, globalConfig, utils, runtimeConfig, workflows, featureFlags) into @lobechat/server, with @/server/* dual-path alias, database vitest aliases, and instrumentation import fixup. * 📝 docs(skills): update src/server path refs to apps/server/src after relocation | 4 months ago | |
🔧 chore: update eslint v2 configuration and suppressions (#12133) * v2 init * chore: update eslint suppressions and package dependencies - Removed several eslint suppressions related to array sorting and reversing from eslint-suppressions.json to clean up the configuration. - Updated @lobehub/lint package version from 2.0.0-beta.6 to 2.0.0-beta.7 in package.json for improvements and bug fixes. - Made minor formatting adjustments in vitest.config.mts and various SKILL.md files for better readability and consistency. Signed-off-by: Innei <tukon479@gmail.com> * fix: clean up import statements and formatting - Removed unnecessary whitespace in replaceComponentImports.ts for improved readability. - Standardized import statements in contextEngineering.ts and createAgentExecutors.ts by adding missing spaces for consistency. Signed-off-by: Innei <tukon479@gmail.com> * chore: update eslint suppressions and clean up code formatting * 🐛 fix: use vi.hoisted for mock variable initialization Fix TDZ error in persona service test by using vi.hoisted() to ensure mock variables are available when vi.mock factory runs. --------- Signed-off-by: Innei <tukon479@gmail.com> | 8 months ago | |
🔧 chore: update eslint v2 configuration and suppressions (#12133) * v2 init * chore: update eslint suppressions and package dependencies - Removed several eslint suppressions related to array sorting and reversing from eslint-suppressions.json to clean up the configuration. - Updated @lobehub/lint package version from 2.0.0-beta.6 to 2.0.0-beta.7 in package.json for improvements and bug fixes. - Made minor formatting adjustments in vitest.config.mts and various SKILL.md files for better readability and consistency. Signed-off-by: Innei <tukon479@gmail.com> * fix: clean up import statements and formatting - Removed unnecessary whitespace in replaceComponentImports.ts for improved readability. - Standardized import statements in contextEngineering.ts and createAgentExecutors.ts by adding missing spaces for consistency. Signed-off-by: Innei <tukon479@gmail.com> * chore: update eslint suppressions and clean up code formatting * 🐛 fix: use vi.hoisted for mock variable initialization Fix TDZ error in persona service test by using vi.hoisted() to ensure mock variables are available when vi.mock factory runs. --------- Signed-off-by: Innei <tukon479@gmail.com> | 8 months ago | |
🔧 chore: update eslint v2 configuration and suppressions (#12133) * v2 init * chore: update eslint suppressions and package dependencies - Removed several eslint suppressions related to array sorting and reversing from eslint-suppressions.json to clean up the configuration. - Updated @lobehub/lint package version from 2.0.0-beta.6 to 2.0.0-beta.7 in package.json for improvements and bug fixes. - Made minor formatting adjustments in vitest.config.mts and various SKILL.md files for better readability and consistency. Signed-off-by: Innei <tukon479@gmail.com> * fix: clean up import statements and formatting - Removed unnecessary whitespace in replaceComponentImports.ts for improved readability. - Standardized import statements in contextEngineering.ts and createAgentExecutors.ts by adding missing spaces for consistency. Signed-off-by: Innei <tukon479@gmail.com> * chore: update eslint suppressions and clean up code formatting * 🐛 fix: use vi.hoisted for mock variable initialization Fix TDZ error in persona service test by using vi.hoisted() to ensure mock variables are available when vi.mock factory runs. --------- Signed-off-by: Innei <tukon479@gmail.com> | 8 months ago | |
♻️ refactor: extract server into apps/server + root namespaces into packages (#14949) * ♻️ refactor(server-deps): extract envs/trpc/config/locales/business-server into packages * ♻️ refactor: relocate src/server backend modules to apps/server package Rebuilt on current canary: git mv the 8 server subtrees (services, routers, modules, globalConfig, utils, runtimeConfig, workflows, featureFlags) into @lobechat/server, with @/server/* dual-path alias, database vitest aliases, and instrumentation import fixup. * 📝 docs(skills): update src/server path refs to apps/server/src after relocation | 4 months ago | |
♻️ refactor: serve Vite SPA static assets under /_spa (#13409) Made-with: Cursor | 7 months ago | |
♻️ refactor(auth): migrate auth pages to a standalone lightweight SPA (#15689) * ✨ feat(oidc): add interaction details endpoint * ✨ feat(auth-spa): scaffold standalone auth SPA shell and build pipeline * 🐛 fix(auth-spa): address review findings in AuthShell copies * ✨ feat(auth-spa): add spa-auth html route handler * ♻️ refactor(auth-spa): migrate simple auth pages into auth SPA * 🔒 fix(auth-spa): validate locale segment in spa-auth route * ♻️ refactor(auth-spa): move verify-im route to main SPA * 🔒 fix(auth-spa): sanitize callbackUrl, fix signup form wiring, add router error element * ♻️ refactor(auth-spa): migrate oauth pages into auth SPA * 🐛 fix(auth-spa): address oauth migration review findings * ♻️ refactor(auth): route auth pages to standalone SPA and drop Next auth tree * 🔒 fix(auth): validate locale before middleware rewrite * 🔥 chore(auth-spa): drop unused messenger i18n namespace from auth shell * ⚡️ perf(build): share one react vendor bundle across web/mobile/auth SPA builds Build react core (react, react-dom, react-dom/client, react/jsx-runtime) once as a self-contained ESM bundle under /_spa/vendor-shared, then mark those specifiers external in every SPA build and map them via rolldown output.paths to the same hashed URLs, so the auth page warms the main app's react cache. react-router-dom stays per-build: apps use ~19K of it after tree shaking while a shared bundle must export all 252K. Also split auth i18n namespaces into per-locale chunks, keep locale runtime helpers out of the default locale chunk, and group packages/const into app-const so vendor-ai-runtime no longer captures it. * ♻️ refactor(spa): extract shared SPA html serving helpers Both the main SPA and auth SPA route handlers duplicated the Vite dev asset rewriting, analytics config assembly and html template rendering. Move them into src/server/spaHtml.ts; the desktop umami block becomes an opt-in flag only the main SPA enables. * 🐛 fix(auth-spa): bundle default locale resources and disable i18n suspense to fix signin mount loop * ✨ feat(auth-spa): wrap auth shell with BusinessAuthProvider slot * 👷 build(spa): support custom vite dev origin and mark SPA entries side-effectful * 🔥 chore: drop dead /welcome entry from nextjsOnlyRoutes * 🐛 fix(auth-spa): forward referral to signup and fix error boundary dark-mode contrast * ♻️ refactor(spa): lift NextThemeProvider above RouterProvider so route error boundaries are theme-aware * update | 4 months ago | |
✨ feat: workspace backend service slice (#15560) Backend-only slice of the workspace feature (server routers/services, database models with workspaceId threading, openapi middleware, business/server stubs, const/types). Excludes all UI (features/routes/store/hooks). Deploys dark behind the workspace feature flag. Includes open-source stub fixes: workspaceCreds router stub, ChargeParams workspaceId, usage.ts null-coalesce, DBMessageItem.workspaceId. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> | 4 months ago |
LobeHub
LobeHub organizes your agents into 7×24 operation.
It hires, schedules, reports on your entire AI team.
You stay in charge — without staying online.
English · 简体中文 · Official Site · Changelog · Documents · Blog · Feedback
Share LobeHub Repository
Your Chief Agent Operator
Table of contents
TOC
- 👋🏻 Getting Started & Join Our Community
- ✨ Features
- 🛳 Self Hosting
- 📦 Ecosystem
- 🧩 Plugins
- ⌨️ Local Development
- 🤝 Contributing
- ❤️ Sponsor
- 🔗 More Products
https://github.com/user-attachments/assets/0a33365f-b786-48b5-9ed6-f8af7927bccb
👋🏻 Getting Started & Join Our Community
We are a group of e/acc design-engineers, hoping to provide modern design components and tools for AIGC. By adopting the Bootstrapping approach, we aim to provide developers and users with a more open, transparent, and user-friendly product ecosystem.
Whether for users or professional developers, LobeHub will be your AI Agent playground. Please be aware that LobeHub is currently under active development, and feedback is welcome for any issues encountered.
Important
Star Us, You will receive all release notifications from GitHub without any delay ~ ⭐️
Star History
✨ Features
Today’s agents are one-off, task-driven tools. They lack context, live in isolation, and require manual hand-offs between different windows and models. While some maintain memory, it is often global, shallow, and impersonal. In this mode, users are forced to toggle between fragmented conversations, making it difficult to form structured productivity.
LobeHub changes everything.
LobeHub is a work-and-lifestyle space to find, build, and collaborate with agent teammates that grow with you. In LobeHub, we treat Agents as the unit of work, providing an infrastructure where humans and agents co-evolve.
Operator: Agents as the Unit of Work
Hires, schedules, and reports on your entire AI team.
- More productivity. Fewer tools: Bring all your agents under one roof.
- IM Gateway: Agents where you already chat.
Create: Agents as the Unit of Work
Building a personalized AI team starts with the Agent Builder. You can describe what you need once, and the agent setup starts right away, applying auto-configurations so you can use it instantly.
- Unified Intelligence: Seamlessly access any model and any modality—all under your control.
- 10,000+ Skills: Connect your agents to the skills you use every day with a library of over 10,000 tools and MCP-compatible plugins.

Collaborate: Scale New Forms of Collaboration Networks
LobeHub introduces Agent Groups, allowing you to work with agents like real teammates. The system assembles the right agents for the task, enabling parallel collaboration and iterative improvement.
- Pages: Write and refine content with multiple agents in one place with a shared context.
- Schedule: Schedule runs and let agents do the work at the right time, even while you are away.
- Project: Organize work by project to keep everything structured and easy to track.
- Workspace: A shared space for teams to collaborate with agents, ensuring clear ownership and visibility across the organization.

Evolve: Co-evolution of Humans and Agents
The best AI is one that understands you deeply. LobeHub features Personal Memory that builds a clear understanding of your needs.
- Continual Learning: Your agents learn from how you work, adapting their behavior to act at the right moment.
- White-Box Memory: We believe in transparency. Your agents use structured, editable memory, giving you full control over what they remember.
✨ more features will be added when LobeHub evolve.
🛳 Self Hosting
LobeHub provides Self-Hosted Version with Vercel, Alibaba Cloud, and Docker Image. This allows you to deploy your own chatbot within a few minutes without any prior knowledge.
Tip
Learn more about 📘 Build your own LobeHub by checking it out.
A Deploying with Vercel, Zeabur , Sealos or Alibaba Cloud
"If you want to deploy this service yourself on Vercel, Zeabur or Alibaba Cloud, you can follow these steps:
- Prepare your OpenAI API Key.
- Click the button below to start deployment: Log in directly with your GitHub account, and remember to fill in the
OPENAI_API_KEY(required) on the environment variable section. - After deployment, you can start using it.
- Bind a custom domain (optional): The DNS of the domain assigned by Vercel is polluted in some areas; binding a custom domain can connect directly.
| Deploy with Vercel | Deploy with Zeabur | Deploy with Sealos | Deploy with RepoCloud | Deploy with Alibaba Cloud |
|---|---|---|---|---|
After Fork
After fork, only retain the upstream sync action and disable other actions in your repository on GitHub.
Keep Updated
If you have deployed your own project following the one-click deployment steps in the README, you might encounter constant prompts indicating "updates available." This is because Vercel defaults to creating a new project instead of forking this one, resulting in an inability to detect updates accurately.
Tip
We suggest you redeploy using the following steps, 📘 Auto Sync With Latest
B Deploying with Docker
We provide a Docker image for deploying the LobeHub service on your own private device. Use the following command to start the LobeHub service:
- create a folder to for storage files
$ mkdir lobehub-db && cd lobehub-db
- init the LobeHub infrastructure
bash <(curl -fsSL https://lobe.li/setup.sh)
- Start the LobeHub service
docker compose up -d
Note
For detailed instructions on deploying with Docker, please refer to the 📘 Docker Deployment Guide
Environment Variable
This project provides some additional configuration items set with environment variables:
| Environment Variable | Required | Description | Example |
|---|---|---|---|
OPENAI_API_KEY |
Yes | This is the API key you apply on the OpenAI account page | sk-xxxxxx...xxxxxx |
OPENAI_PROXY_URL |
No | If you manually configure the OpenAI interface proxy, you can use this configuration item to override the default OpenAI API request base URL | https://api.chatanywhere.cn or https://aihubmix.com/v1 The default value is https://api.openai.com/v1 |
OPENAI_MODEL_LIST |
No | Used to control the model list. Use + to add a model, - to hide a model, and model_name=display_name to customize the display name of a model, separated by commas. |
qwen-7b-chat,+glm-6b,-gpt-3.5-turbo |
Note
The complete list of environment variables can be found in the 📘 Environment Variables
📦 Ecosystem
| NPM | Repository | Description | Version |
|---|---|---|---|
| @lobehub/ui | lobehub/lobe-ui | Open-source UI component library dedicated to building AIGC web applications. | |
| @lobehub/icons | lobehub/lobe-icons | Popular AI / LLM Model Brand SVG Logo and Icon Collection. | |
| @lobehub/tts | lobehub/lobe-tts | High-quality & reliable TTS/STT React Hooks library | |
| @lobehub/lint | lobehub/lobe-lint | Configurations for ESlint, Stylelint, Commitlint, Prettier, Remark, and Semantic Release for LobeHub. |
🧩 Plugins
Plugins provide a means to extend the Function Calling capabilities of LobeHub. They can be used to introduce new function calls and even new ways to render message results. If you are interested in plugin development, please refer to our 📘 Plugin Development Guide in the Wiki.
- lobe-chat-plugins: This is the plugin index for LobeHub. It accesses index.json from this repository to display a list of available plugins for LobeHub to the user.
- chat-plugin-template: This is the plugin template for LobeHub plugin development.
- @lobehub/chat-plugin-sdk: The LobeHub Plugin SDK assists you in creating exceptional chat plugins for LobeHub.
- @lobehub/chat-plugins-gateway: The LobeHub Plugins Gateway is a backend service that provides a gateway for LobeHub plugins. We deploy this service using Vercel. The primary API POST /api/v1/runner is deployed as an Edge Function.
Note
The plugin system is currently undergoing major development. You can learn more in the following issues:
⌨️ Local Development
You can use GitHub Codespaces for online development:
Or clone it for local development:
$ git clone https://github.com/lobehub/lobehub.git
$ cd lobehub
$ pnpm install
$ pnpm dev # Full-stack (Next.js + Vite SPA)
$ bun run dev:spa # SPA frontend only (port 9876)
Debug Proxy: After running
dev:spa, the terminal prints a proxy URL likehttps://app.lobehub.com/_dangerous_local_dev_proxy?debug-host=http%3A%2F%2Flocalhost%3A9876. Open it to develop locally against the production backend with HMR.
If you would like to learn more details, please feel free to look at our 📘 Development Guide.
🤝 Contributing
Contributions of all types are more than welcome; if you are interested in contributing code, feel free to check out our GitHub Issues and Projects to get stuck in to show us what you're made of.
Tip
We are creating a technology-driven forum, fostering knowledge interaction and the exchange of ideas that may culminate in mutual inspiration and collaborative innovation.
Help us make LobeHub better. Welcome to provide product design feedback, user experience discussions directly to us.
Principal Maintainers: @arvinxx @canisminor1990
|
|
|
|---|---|
|
|
|
|
|
|
❤️ Sponsor
Every bit counts and your one-time donation sparkles in our galaxy of support! You're a shooting star, making a swift and bright impact on our journey. Thank you for believing in us – your generosity guides us toward our mission, one brilliant flash at a time.
🔗 More Products
- 🅰️ Lobe SD Theme: Modern theme for Stable Diffusion WebUI, exquisite interface design, highly customizable UI, and efficiency-boosting features.
- ⛵️ Lobe Midjourney WebUI: WebUI for Midjourney, leverages AI to quickly generate a wide array of rich and diverse images from text prompts, sparking creativity and enhancing conversations.
- 🌏 Lobe i18n : Lobe i18n is an automation tool for the i18n (internationalization) translation process, powered by ChatGPT. It supports features such as automatic splitting of large files, incremental updates, and customization options for the OpenAI model, API proxy, and temperature.
- 💌 Lobe Commit: Lobe Commit is a CLI tool that leverages Langchain/ChatGPT to generate Gitmoji-based commit messages.
Copyright © 2026 LobeHub.
This project is LobeHub Community License licensed.
Introduction
用户可借助该项目构建、管理和协作 AI 代理团队,实现 7×24 小时自动化运行。核心功能包括代理创建、任务调度、多模态协作及个性化记忆,支持自托管部署,助力提升工作效率。【此简介由AI生成】
Customize your domain