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.

πŸ’„ fix: keep LobeHub's own component names out of the brand slot (#21946)

LiJianb18e00625162
diff --git a/apps/desktop/pnpm-lock.yaml b/apps/desktop/pnpm-lock.yaml
index 5b3bcb575ab..f10cfc6615e 100644
--- a/apps/desktop/pnpm-lock.yaml
+++ b/apps/desktop/pnpm-lock.yaml
@@ -637,9 +637,6 @@ importers:
../../packages/prompts:
dependencies:
- '@lobechat/business-const':
- specifier: workspace:*
- version: link:../business/const
'@lobechat/const':
specifier: workspace:*
version: link:../const
diff --git a/packages/builtin-tool-activator/package.json b/packages/builtin-tool-activator/package.json
index 1cfdc99691e..c1b338f8ef3 100644
--- a/packages/builtin-tool-activator/package.json
+++ b/packages/builtin-tool-activator/package.json
@@ -10,7 +10,6 @@
},
"main": "./src/index.ts",
"dependencies": {
- "@lobechat/business-const": "workspace:*",
"ts-md5": "^2.0.1"
},
"devDependencies": {
diff --git a/packages/builtin-tool-activator/src/systemRole.ts b/packages/builtin-tool-activator/src/systemRole.ts
index c5b57591165..8d790663cea 100644
--- a/packages/builtin-tool-activator/src/systemRole.ts
+++ b/packages/builtin-tool-activator/src/systemRole.ts
@@ -1,5 +1,3 @@
-import { BRANDING_NAME } from '@lobechat/business-const';
-
const intro = `You have access to a Tools Activator that allows you to dynamically activate tools on demand. Not all tools are loaded by default β€” you must activate them before use.`;
const howItWorksSkill = `7. To activate a skill, use the \`activateSkill\` tool from lobe-skills β€” it returns instructions to follow
@@ -94,7 +92,7 @@ const credentialsManagement = `<credentials_management>
2. Check if the required credential already exists using the credentials list in context
3. If credential exists and the sandbox is reachable β†’ use \`injectCredsToSandbox\` (see \`<credential_usage_by_runtime>\` below)
4. If credential doesn't exist:
- - For ${BRANDING_NAME} OAuth services (GitHub, Linear, Microsoft, Notion, Twitter) β†’ use \`initiateOAuthConnect\`
+ - For LobeHub OAuth services (GitHub, Linear, Microsoft, Notion, Twitter) β†’ use \`initiateOAuthConnect\`
- For Composio-managed services (Slack, Google Drive, Airtable, Jira, etc.)
β†’ use \`connectComposioService\` after activating \`lobe-creds\`. The full list of
available Composio services is shown in \`<composio_integrations>\` inside the
diff --git a/packages/builtin-tool-creds/package.json b/packages/builtin-tool-creds/package.json
index a9efc496e3b..f6a50f57cf7 100644
--- a/packages/builtin-tool-creds/package.json
+++ b/packages/builtin-tool-creds/package.json
@@ -11,7 +11,6 @@
},
"main": "./src/index.ts",
"dependencies": {
- "@lobechat/business-const": "workspace:*",
"@lobechat/shared-tool-ui": "workspace:*"
},
"devDependencies": {
diff --git a/packages/builtin-tool-creds/src/manifest.ts b/packages/builtin-tool-creds/src/manifest.ts
index 35e8f1a1265..abcdc55b984 100644
--- a/packages/builtin-tool-creds/src/manifest.ts
+++ b/packages/builtin-tool-creds/src/manifest.ts
@@ -1,4 +1,3 @@
-import { BRANDING_NAME } from '@lobechat/business-const';
import type { BuiltinToolManifest } from '@lobechat/types';
import type { JSONSchema7 } from 'json-schema';
@@ -27,7 +26,7 @@ export const CredsManifest: BuiltinToolManifest = {
} satisfies JSONSchema7,
},
{
- description: `Initiate OAuth connection flow for a ${BRANDING_NAME} Skill provider (e.g., GitHub, Linear, Microsoft Outlook, Notion, Twitter/X). Returns an authorization URL that the user must click to authorize. After authorization, the credential will be automatically saved.`,
+ description: `Initiate OAuth connection flow for a LobeHub Skill provider (e.g., GitHub, Linear, Microsoft Outlook, Notion, Twitter/X). Returns an authorization URL that the user must click to authorize. After authorization, the credential will be automatically saved.`,
name: CredsApiName.initiateOAuthConnect,
parameters: {
additionalProperties: false,
diff --git a/packages/builtin-tool-creds/src/systemRole.ts b/packages/builtin-tool-creds/src/systemRole.ts
index 8b2f86853aa..01873466608 100644
--- a/packages/builtin-tool-creds/src/systemRole.ts
+++ b/packages/builtin-tool-creds/src/systemRole.ts
@@ -1,6 +1,4 @@
-import { BRANDING_NAME } from '@lobechat/business-const';
-
-export const systemPrompt = `You have access to a ${BRANDING_NAME} Credentials Tool. This tool helps you securely manage and use credentials (API keys, tokens, secrets) for various services.
+export const systemPrompt = `You have access to a LobeHub Credentials Tool. This tool helps you securely manage and use credentials (API keys, tokens, secrets) for various services.
<session_context>
Current user: {{username}}
@@ -39,7 +37,7 @@ Cloud sandbox reachable for credential injection: {{creds_sandbox_reachable}}
</tooling>
<oauth_providers>
-${BRANDING_NAME} provides built-in OAuth integrations for the following services:
+LobeHub provides built-in OAuth integrations for the following services:
- **github**: GitHub repository and code management. Connect to access repositories, create issues, manage pull requests.
- **linear**: Linear issue tracking and project management. Connect to create/manage issues, track projects.
- **microsoft**: Microsoft Outlook Calendar. Connect to view/create calendar events, manage meetings.
diff --git a/packages/builtin-tool-memory/package.json b/packages/builtin-tool-memory/package.json
index 449fdee455b..45c2c532f6f 100644
--- a/packages/builtin-tool-memory/package.json
+++ b/packages/builtin-tool-memory/package.json
@@ -12,7 +12,6 @@
"main": "./src/index.ts",
"scripts": {},
"dependencies": {
- "@lobechat/business-const": "workspace:*",
"@lobechat/memory-user-memory": "workspace:*",
"@lobechat/prompts": "workspace:*"
},
diff --git a/packages/builtin-tool-memory/src/systemRole.ts b/packages/builtin-tool-memory/src/systemRole.ts
index a5c8d49a643..af549a2ff71 100644
--- a/packages/builtin-tool-memory/src/systemRole.ts
+++ b/packages/builtin-tool-memory/src/systemRole.ts
@@ -1,6 +1,4 @@
-import { BRANDING_NAME } from '@lobechat/business-const';
-
-export const systemPrompt = `You have a ${BRANDING_NAME} Memory Tool. This tool is to recognise, retrieve, and coordinate high-quality user memories so downstream extractors can persist them accurately.
+export const systemPrompt = `You have a LobeHub Memory Tool. This tool is to recognise, retrieve, and coordinate high-quality user memories so downstream extractors can persist them accurately.
<session_context>
Current user: {{username}}
diff --git a/packages/builtin-tool-self-iteration/package.json b/packages/builtin-tool-self-iteration/package.json
index 15e3e8dee44..7c6dd345012 100644
--- a/packages/builtin-tool-self-iteration/package.json
+++ b/packages/builtin-tool-self-iteration/package.json
@@ -9,9 +9,6 @@
"./executionRuntime": "./src/ExecutionRuntime/index.ts"
},
"main": "./src/index.ts",
- "dependencies": {
- "@lobechat/business-const": "workspace:*"
- },
"devDependencies": {
"@lobechat/context-engine": "workspace:*",
"@lobechat/types": "workspace:*"
diff --git a/packages/builtin-tool-self-iteration/src/systemRole.ts b/packages/builtin-tool-self-iteration/src/systemRole.ts
index f9a23dace2a..8fafc5bb97a 100644
--- a/packages/builtin-tool-self-iteration/src/systemRole.ts
+++ b/packages/builtin-tool-self-iteration/src/systemRole.ts
@@ -1,6 +1,4 @@
-import { BRANDING_NAME } from '@lobechat/business-const';
-
-export const systemPrompt = `You have access to the Self Feedback Intent tool. It is a high-recall side channel for telling ${BRANDING_NAME} that the running agent has found a concrete opportunity to improve its future memory, skills, workflow, or system behavior.
+export const systemPrompt = `You have access to the Self Feedback Intent tool. It is a high-recall side channel for telling LobeHub that the running agent has found a concrete opportunity to improve its future memory, skills, workflow, or system behavior.
<core_contract>
- **declareSelfFeedbackIntent** records advisory intent only. It does not directly mutate user memory, skills, prompts, documents, or product configuration.
diff --git a/packages/builtin-tool-skills/package.json b/packages/builtin-tool-skills/package.json
index eaf0a79e879..b2a98c0596a 100644
--- a/packages/builtin-tool-skills/package.json
+++ b/packages/builtin-tool-skills/package.json
@@ -10,7 +10,6 @@
},
"main": "./src/index.ts",
"dependencies": {
- "@lobechat/business-const": "workspace:*",
"@lobechat/const": "workspace:*",
"@lobechat/prompts": "workspace:*",
"@lobechat/shared-tool-ui": "workspace:*"
diff --git a/packages/builtin-tool-skills/src/systemRole.ts b/packages/builtin-tool-skills/src/systemRole.ts
index 19d80bf5347..4200d2bae94 100644
--- a/packages/builtin-tool-skills/src/systemRole.ts
+++ b/packages/builtin-tool-skills/src/systemRole.ts
@@ -1,5 +1,3 @@
-import { BRANDING_NAME } from '@lobechat/business-const';
-
export const systemPrompt = `You have access to a Skills tool that can activate skills and execute their instructions. Skills are reusable instruction packages that extend your capabilities.
<core_capabilities>
@@ -33,7 +31,7 @@ export const systemPrompt = `You have access to a Skills tool that can activate
- **runCommand**: Call this to execute shell commands in the cloud sandbox
- Use for general CLI commands, platform tools (e.g., \`lh\` CLI), and ad-hoc operations
- - If \`lobe-local-system\` runCommand is also available, default shell execution to it β€” use this sandbox runCommand only when the task needs ${BRANDING_NAME}-managed credentials, isolation, or a tool missing on the local device
+ - If \`lobe-local-system\` runCommand is also available, default shell execution to it β€” use this sandbox runCommand only when the task needs LobeHub-managed credentials, isolation, or a tool missing on the local device
- Provide the command to execute and a clear description of what it does
- Returns the command output (stdout/stderr) and exit code
- Requires user confirmation before execution
diff --git a/packages/prompts/package.json b/packages/prompts/package.json
index 3f44fa5ad8a..ab1fb679dd8 100644
--- a/packages/prompts/package.json
+++ b/packages/prompts/package.json
@@ -16,7 +16,6 @@
"test:update": "vitest -u"
},
"dependencies": {
- "@lobechat/business-const": "workspace:*",
"@lobechat/const": "workspace:*"
},
"devDependencies": {
diff --git a/packages/prompts/src/prompts/agentSkillManager/consolidate.ts b/packages/prompts/src/prompts/agentSkillManager/consolidate.ts
index ed486179c14..fa7255ccfc3 100644
--- a/packages/prompts/src/prompts/agentSkillManager/consolidate.ts
+++ b/packages/prompts/src/prompts/agentSkillManager/consolidate.ts
@@ -1,5 +1,3 @@
-import { BRANDING_NAME } from '@lobechat/business-const';
-
/**
* Input used by the focused skill consolidation prompt.
*/
@@ -66,7 +64,7 @@ Writing quality:
Examples:
Input: two skills both describe PR review, one covers locale placement and one covers cloud override checks.
Output:
-{"bodyMarkdown":"# ${BRANDING_NAME} Cloud PR Review\\n\\n## Workflow\\n- Check cloud override paths before reviewing the submodule implementation.\\n- Verify locale keys are added in the canonical submodule locale files.\\n- Cite concrete files and lines for every finding.\\n\\n## Pitfalls\\n- Do not treat submodule-only code as authoritative when a cloud override exists.","description":"Use when reviewing ${BRANDING_NAME} Cloud PRs that may involve cloud overrides, locale keys, or submodule behavior.","rename":{"newName":"cloud-pr-review","newTitle":"Cloud PR Review"},"reason":"The source skills overlap and should activate as one review procedure.","confidence":0.88}
+{"bodyMarkdown":"# LobeHub Cloud PR Review\\n\\n## Workflow\\n- Check cloud override paths before reviewing the submodule implementation.\\n- Verify locale keys are added in the canonical submodule locale files.\\n- Cite concrete files and lines for every finding.\\n\\n## Pitfalls\\n- Do not treat submodule-only code as authoritative when a cloud override exists.","description":"Use when reviewing LobeHub Cloud PRs that may involve cloud overrides, locale keys, or submodule behavior.","rename":{"newName":"cloud-pr-review","newTitle":"Cloud PR Review"},"reason":"The source skills overlap and should activate as one review procedure.","confidence":0.88}
Input: sources discuss unrelated workflows.
Output:
diff --git a/packages/prompts/src/prompts/agentSkillManager/create.ts b/packages/prompts/src/prompts/agentSkillManager/create.ts
index bbd035adfc3..0c498497f1c 100644
--- a/packages/prompts/src/prompts/agentSkillManager/create.ts
+++ b/packages/prompts/src/prompts/agentSkillManager/create.ts
@@ -1,5 +1,3 @@
-import { BRANDING_NAME } from '@lobechat/business-const';
-
/**
* Input used by the skill creation authoring prompt.
*/
@@ -74,7 +72,7 @@ Writing quality:
Examples:
Input: feedback says future PR reviews should always inspect locale key placement and existing cloud overrides; evidence includes the exact files to check.
Output:
-{"name":"cloud-pr-review-checks","title":"Cloud PR Review Checks","description":"Use when reviewing ${BRANDING_NAME} Cloud PRs that may touch locale keys, cloud overrides, or submodule behavior.","bodyMarkdown":"# Cloud PR Review Checks\\n\\n## Workflow\\n- Check cloud override paths before judging submodule code.\\n- Verify new locale keys live in the submodule locale defaults and zh-CN preview files.\\n- Confirm PR feedback cites exact files and lines.\\n\\n## Verification\\n- Run the focused tests or explain why they were not run.","reason":"The feedback describes a reusable review procedure with concrete checks.","confidence":0.86}
+{"name":"cloud-pr-review-checks","title":"Cloud PR Review Checks","description":"Use when reviewing LobeHub Cloud PRs that may touch locale keys, cloud overrides, or submodule behavior.","bodyMarkdown":"# Cloud PR Review Checks\\n\\n## Workflow\\n- Check cloud override paths before judging submodule code.\\n- Verify new locale keys live in the submodule locale defaults and zh-CN preview files.\\n- Confirm PR feedback cites exact files and lines.\\n\\n## Verification\\n- Run the focused tests or explain why they were not run.","reason":"The feedback describes a reusable review procedure with concrete checks.","confidence":0.86}
Input: feedback says thanks, that answer was helpful.
Output: