Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

♻️ refactor(desktop): resolve @lobechat/business-const to the real package, drop the stub (#20133)

Innei353fc3a47b86
diff --git a/apps/desktop/pnpm-lock.yaml b/apps/desktop/pnpm-lock.yaml
index c2bfe7beae5..6824066932b 100644
--- a/apps/desktop/pnpm-lock.yaml
+++ b/apps/desktop/pnpm-lock.yaml
@@ -289,6 +289,8 @@ importers:
specifier: 5.0.0
+ ../../packages/business/const: {}
+
../../packages/chat-adapter-imessage:
dependencies:
chat:
@@ -312,7 +314,7 @@ importers:
version: 13.13.0([email protected])
'@lobechat/business-const':
specifier: workspace:*
- version: link:../../apps/desktop/stubs/business-const
+ version: link:../business/const
'@lobehub/ui':
specifier: ^5
@@ -574,7 +576,7 @@ importers:
dependencies:
'@lobechat/business-const':
specifier: workspace:*
- version: link:../../apps/desktop/stubs/business-const
+ version: link:../business/const
type-fest:
specifier: ^5.7.0
version: 5.8.0
@@ -854,8 +856,6 @@ importers:
specifier: 5.0.0
- stubs/business-const: {}
-
packages:
'@alcalzone/[email protected]':
diff --git a/apps/desktop/pnpm-workspace.yaml b/apps/desktop/pnpm-workspace.yaml
index aeee20d16e3..d0d2c4cefe3 100644
--- a/apps/desktop/pnpm-workspace.yaml
+++ b/apps/desktop/pnpm-workspace.yaml
@@ -22,7 +22,7 @@ packages:
- '../../packages/tool-runtime'
- '../../packages/prompts'
- '../../packages/ssrf-safe-fetch'
- - 'stubs/business-const'
+ - '../../packages/business/const'
- '../../packages/types'
- '../../packages/model-bank'
- '../../packages/utils'
diff --git a/apps/desktop/stubs/business-const/package.json b/apps/desktop/stubs/business-const/package.json
deleted file mode 100644
index 1067359deac..00000000000
--- a/apps/desktop/stubs/business-const/package.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "@lobechat/business-const",
- "version": "0.0.0",
- "private": true,
- "exports": {
- ".": "./src/index.ts"
- },
- "main": "./src/index.ts"
-}
diff --git a/apps/desktop/stubs/business-const/src/index.ts b/apps/desktop/stubs/business-const/src/index.ts
deleted file mode 100644
index 2eefa783f05..00000000000
--- a/apps/desktop/stubs/business-const/src/index.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-export const BRANDING_LOGO_URL = '';
-export const BRANDING_NAME = 'LobeHub';
-export const DEFAULT_EMBEDDING_PROVIDER = 'openai';
-export const DEFAULT_MINI_MODEL = 'gpt-5.6-luna';
-export const DEFAULT_MINI_PROVIDER = 'openai';
-export const DEFAULT_MODEL = 'deepseek-v4-flash';
-export const DEFAULT_ONBOARDING_MODEL = 'gemini-3-flash-preview';
-export const DEFAULT_ONBOARDING_PROVIDER = 'google';
-export const DEFAULT_PROVIDER = 'deepseek';
-export const DEFAULT_VERIFY_MODEL = 'glm-5.3-flash';
-export const DEFAULT_VERIFY_PROVIDER = 'zhipu';
-export const ORG_NAME = 'LobeHub';
-// mirrored from packages/business/const — model-bank gates the LobeHub
-// provider entry on this flag; the OSS desktop build keeps it off
-export const ENABLE_BUSINESS_FEATURES = false;