🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🐛 fix: point GitHub links to the renamed lobehub repository (#21499)
AmAzing-e66afb0bb6f4
diff --git a/.github/ISSUE_TEMPLATE/1_bug_report.yml b/.github/ISSUE_TEMPLATE/1_bug_report.ymlindex c10a040dade..560e159ce9f 100644--- a/.github/ISSUE_TEMPLATE/1_bug_report.yml+++ b/.github/ISSUE_TEMPLATE/1_bug_report.yml@@ -105,9 +105,9 @@ body:options:- label: Read the [docs](https://lobehub.com/zh/docs).required: true- - label: Check that there isn't [already an issue](https://github.com/lobehub/lobe-chat/issues) that reports the same bug to avoid creating a duplicate.+ - label: Check that there isn't [already an issue](https://github.com/lobehub/lobehub/issues) that reports the same bug to avoid creating a duplicate.required: true- label: Make sure this is a LobeChat issue and not a third-party library or provider issue.required: true- - label: Check that this is a concrete bug. For Q&A, please use [GitHub Discussions](https://github.com/lobehub/lobe-chat/discussions) or join our [Discord Server](https://discord.gg/rGHwKq4R).+ - label: Check that this is a concrete bug. For Q&A, please use [GitHub Discussions](https://github.com/lobehub/lobehub/discussions) or join our [Discord Server](https://discord.gg/rGHwKq4R).required: truediff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.ymlindex ec25fb5315b..d9a4d9ef12f 100644--- a/.github/ISSUE_TEMPLATE/config.yml+++ b/.github/ISSUE_TEMPLATE/config.yml@@ -1,7 +1,7 @@contact_links:- name: Ask a question for self-hosting- url: https://github.com/lobehub/lobe-chat/discussions/new?category=self-hosting-%E7%A7%81%E6%9C%89%E5%8C%96%E9%83%A8%E7%BD%B2+ url: https://github.com/lobehub/lobehub/discussions/new?category=self-hosting-%E7%A7%81%E6%9C%89%E5%8C%96%E9%83%A8%E7%BD%B2about: Please post questions, and ideas in discussions.- name: Questions and ideas- url: https://github.com/lobehub/lobe-chat/discussions/new/choose+ url: https://github.com/lobehub/lobehub/discussions/new/chooseabout: Please post questions, and ideas in discussions.diff --git a/.github/scripts/pr-release-body.js b/.github/scripts/pr-release-body.jsindex fbff1c7af14..89bf3e7fb03 100644--- a/.github/scripts/pr-release-body.js+++ b/.github/scripts/pr-release-body.js@@ -2,8 +2,8 @@* Generate PR pre-release body content* This script generates the description text for PR pre-releases*/-module.exports = ({ version, prNumber, branch }) => {- const prLink = `https://github.com/lobehub/lobe-chat/pull/${prNumber}`;+const generatePrReleaseBody = ({ version, prNumber }) => {+ const prLink = `https://github.com/lobehub/lobehub/pull/${prNumber}`;return `## PR Build Information@@ -60,3 +60,5 @@ Please report any issues found in this build directly in the PR discussion.如发现任何问题,请直接在 PR 讨论中报告。`;};++module.exports = generatePrReleaseBody;diff --git a/apps/desktop/src/main/menus/impls/linux.test.ts b/apps/desktop/src/main/menus/impls/linux.test.tsindex c5e1ecc80b6..75410154b00 100644--- a/apps/desktop/src/main/menus/impls/linux.test.ts+++ b/apps/desktop/src/main/menus/impls/linux.test.ts@@ -322,7 +322,7 @@ describe('LinuxMenu', () => {expect(githubItem).toBeDefined();await githubItem.click();- expect(shell.openExternal).toHaveBeenCalledWith('https://github.com/lobehub/lobe-chat');+ expect(shell.openExternal).toHaveBeenCalledWith('https://github.com/lobehub/lobehub');});it('should handle about dialog click', () => {diff --git a/apps/desktop/src/main/menus/impls/macOS.test.ts b/apps/desktop/src/main/menus/impls/macOS.test.tsindex 067b7a045f8..59984b92af2 100644--- a/apps/desktop/src/main/menus/impls/macOS.test.ts+++ b/apps/desktop/src/main/menus/impls/macOS.test.ts@@ -280,7 +280,7 @@ describe('MacOSMenu', () => {expect(githubItem).toBeDefined();await githubItem.click();- expect(shell.openExternal).toHaveBeenCalledWith('https://github.com/lobehub/lobe-chat');+ expect(shell.openExternal).toHaveBeenCalledWith('https://github.com/lobehub/lobehub');});it('should handle open logs directory click', () => {diff --git a/apps/desktop/src/main/menus/impls/windows.test.ts b/apps/desktop/src/main/menus/impls/windows.test.tsindex 92ac8a398d0..c135d30c711 100644--- a/apps/desktop/src/main/menus/impls/windows.test.ts+++ b/apps/desktop/src/main/menus/impls/windows.test.ts@@ -271,7 +271,7 @@ describe('WindowsMenu', () => {expect(githubItem).toBeDefined();await githubItem.click();- expect(shell.openExternal).toHaveBeenCalledWith('https://github.com/lobehub/lobe-chat');+ expect(shell.openExternal).toHaveBeenCalledWith('https://github.com/lobehub/lobehub');});it('should handle tray open click', () => {diff --git a/apps/server/src/services/changelog/index.test.ts b/apps/server/src/services/changelog/index.test.tsindex 2d6bcf5602a..2e981926d25 100644--- a/apps/server/src/services/changelog/index.test.ts+++ b/apps/server/src/services/changelog/index.test.ts@@ -242,7 +242,7 @@ describe('ChangelogService', () => {it('should generate correct URL', () => {// @ts-ignore - accessing private method for testingconst result = service.genUrl('test/path');- expect(result).toBe('https://raw.githubusercontent.com/lobehub/lobe-chat/main/test/path');+ expect(result).toBe('https://raw.githubusercontent.com/lobehub/lobehub/main/test/path');});});diff --git a/apps/server/src/services/changelog/index.ts b/apps/server/src/services/changelog/index.tsindex 03f5f4032b0..9098b15fa8f 100644--- a/apps/server/src/services/changelog/index.ts+++ b/apps/server/src/services/changelog/index.ts@@ -36,7 +36,7 @@ export class ChangelogService {changelogPath: 'changelog',docsPath: 'docs/changelog',majorVersion: 1,- repo: 'lobe-chat',+ repo: 'lobehub',type: 'cloud',urlTemplate: process.env.CHANGELOG_URL_TEMPLATE || URL_TEMPLATE,user: 'lobehub',diff --git a/apps/server/src/services/discover/providers.ts b/apps/server/src/services/discover/providers.tsindex 9f702665e9c..014f0f1b264 100644--- a/apps/server/src/services/discover/providers.ts+++ b/apps/server/src/services/discover/providers.ts@@ -70,7 +70,7 @@ export const getProviderDetail = async (try {const normalizedLocale = normalizeLocale(locale);const readmeUrl = urlJoin(- 'https://raw.githubusercontent.com/lobehub/lobe-chat/refs/heads/main/docs/usage/providers',+ 'https://raw.githubusercontent.com/lobehub/lobehub/refs/heads/main/docs/usage/providers',normalizedLocale === 'zh-CN' ? `${identifier}.zh-CN.mdx` : `${identifier}.mdx`,);log('getProviderDetail: readme URL=%s', readmeUrl);diff --git a/e2e/src/steps/page/docs-home.ts b/e2e/src/steps/page/docs-home.tsindex a9e0b18f52d..153bab3e8b5 100644--- a/e2e/src/steps/page/docs-home.ts+++ b/e2e/src/steps/page/docs-home.ts@@ -13,7 +13,7 @@*/import type { CustomWorld } from '../../support/world';-const NOTICE_TITLE = /Pages and Resources are now Docs|页面和资源已合并为 Docs/;+const NOTICE_TITLE = /Pages and Resources are now Docs|「文稿」和「资源」已合并为「云文档」/;const NOTICE_CONFIRM = /^(Got it|知道了|我知道了)$/;/** How long to wait for a late-mounting notice before deciding it is absent. */diff --git a/packages/const/src/url.test.ts b/packages/const/src/url.test.tsindex f62ef773088..bd19b268a65 100644--- a/packages/const/src/url.test.ts+++ b/packages/const/src/url.test.ts@@ -1,6 +1,6 @@import { describe, expect, it } from 'vitest';-import { isOfficialCloudServer } from './url';+import { FEEDBACK, GITHUB, GITHUB_ISSUES, isOfficialCloudServer, RELEASES_URL } from './url';describe('isOfficialCloudServer', () => {it.each([@@ -24,3 +24,12 @@ describe('isOfficialCloudServer', () => {expect(isOfficialCloudServer(url)).toBe(false);});});++describe('GitHub links', () => {+ it('point to the lobehub repository', () => {+ expect(GITHUB).toBe('https://github.com/lobehub/lobehub');+ expect(GITHUB_ISSUES).toBe('https://github.com/lobehub/lobehub/issues/new/choose');+ expect(FEEDBACK).toBe('https://github.com/lobehub/lobehub/issues/new/choose');+ expect(RELEASES_URL).toBe('https://github.com/lobehub/lobehub/releases');+ });+});diff --git a/packages/const/src/url.ts b/packages/const/src/url.tsindex e27599fce71..4ac63ade950 100644--- a/packages/const/src/url.ts+++ b/packages/const/src/url.ts@@ -27,7 +27,7 @@ export const LobeHubPath = {},} as const;-export const GITHUB = 'https://github.com/lobehub/lobe-chat';+export const GITHUB = 'https://github.com/lobehub/lobehub';export const GITHUB_ISSUES = urlJoin(GITHUB, 'issues/new/choose');export const CHANGELOG = 'https://lobehub.com/changelog';@@ -45,7 +45,7 @@ export const MANUAL_UPGRADE_URL = urlJoin(SELF_HOSTING_DOCUMENTS, '/advanced/upsexport const BLOG = urlJoin(OFFICIAL_SITE, 'blog');export const ABOUT = OFFICIAL_SITE;-export const FEEDBACK = 'https://github.com/lobehub/lobe-chat/issues/new/choose';+export const FEEDBACK = urlJoin(GITHUB, 'issues/new/choose');export const PRIVACY_URL = urlJoin(OFFICIAL_SITE, '/privacy');export const TERMS_URL = urlJoin(OFFICIAL_SITE, '/terms');@@ -54,10 +54,9 @@ export const PLUGINS_INDEX_URL = 'https://chat-plugins.lobehub.com';export const OPS_ASSETS_BASE_URL = 'https://chat-cloud.lobeobjects.space/dc/ops-assets';export const MORE_MODEL_PROVIDER_REQUEST_URL =- 'https://github.com/lobehub/lobe-chat/discussions/6157';+ 'https://github.com/lobehub/lobehub/discussions/6157';-export const MORE_FILE_PREVIEW_REQUEST_URL =- 'https://github.com/lobehub/lobe-chat/discussions/3684';+export const MORE_FILE_PREVIEW_REQUEST_URL = 'https://github.com/lobehub/lobehub/discussions/3684';export const AGENTS_INDEX_GITHUB = 'https://github.com/lobehub/lobe-chat-agents';export const AGENTS_INDEX_GITHUB_ISSUE = urlJoin(AGENTS_INDEX_GITHUB, 'issues/new');diff --git a/packages/file-loaders/package.json b/packages/file-loaders/package.jsonindex c12bd36b9ec..3d53624fd38 100644--- a/packages/file-loaders/package.json+++ b/packages/file-loaders/package.json@@ -9,13 +9,13 @@"parser","lobehub"],- "homepage": "https://github.com/lobehub/lobe-chat/tree/master/packages/file-loaders",+ "homepage": "https://github.com/lobehub/lobehub/tree/canary/packages/file-loaders","bugs": {- "url": "https://github.com/lobehub/lobe-chat/issues/new"+ "url": "https://github.com/lobehub/lobehub/issues/new"},"repository": {"type": "git",- "url": "https://github.com/lobehub/lobe-chat.git"+ "url": "https://github.com/lobehub/lobehub.git"},"author": "LobeHub <[email protected]>","sideEffects": false,diff --git a/scripts/changelogWorkflow/generateChangelog.ts b/scripts/changelogWorkflow/generateChangelog.tsindex dfb302eeae6..1903e70ec9b 100644--- a/scripts/changelogWorkflow/generateChangelog.ts+++ b/scripts/changelogWorkflow/generateChangelog.ts@@ -4,7 +4,7 @@ import path from 'node:path';import { consola } from 'consola';-const REPO_URL = 'https://github.com/lobehub/lobe-chat';+const REPO_URL = 'https://github.com/lobehub/lobehub';const CHANGELOG_TITLE = '<a name="readme-top"></a>\n\n# Changelog';const BACK_TO_TOP = `<div align="right">diff --git a/scripts/docsWorkflow/const.ts b/scripts/docsWorkflow/const.tsindex 525a996d2e3..aed520955ed 100644--- a/scripts/docsWorkflow/const.ts+++ b/scripts/docsWorkflow/const.ts@@ -2,7 +2,7 @@ import { resolve } from 'node:path';import { globSync } from 'glob';-export const WIKI_URL = 'https://github.com/lobehub/lobe-chat/wiki/';+export const WIKI_URL = 'https://github.com/lobehub/lobehub/wiki/';export const ROOT = resolve(__dirname, '../..');export const DOCS_DIR = resolve(ROOT, 'contributing');export const HOME_PATH = resolve(DOCS_DIR, 'Home.md');diff --git a/scripts/migrateServerDB/errorHint.js b/scripts/migrateServerDB/errorHint.jsindex 2d632eaf966..247026f52f1 100644--- a/scripts/migrateServerDB/errorHint.js+++ b/scripts/migrateServerDB/errorHint.js@@ -9,7 +9,7 @@ docker run -p 5432:5432 -d --name pg -e POSTGRES_PASSWORD=mysecretpassword pgvec2) if you are using cloud postgres instance, please contact your cloud provider for help.-if you have any other question, please open issue here: https://github.com/lobehub/lobe-chat/issues+if you have any other question, please open issue here: https://github.com/lobehub/lobehub/issues`;const DB_FAIL_INIT_HINT = `------------------------------------------------------------------------------------------@@ -21,7 +21,7 @@ if you are using docker postgres image, you may need to set DATABASE_DRIVER to nDATABASE_DRIVER=node\`\`\`-if you have any other question, please open issue here: https://github.com/lobehub/lobe-chat/issues+if you have any other question, please open issue here: https://github.com/lobehub/lobehub/issues`;const DUPLICATE_EMAIL_HINT = `------------------------------------------------------------------------------------------@@ -46,7 +46,7 @@ GROUP BY emailHAVING COUNT(*) > 1;\`\`\`-If you need further assistance, please open an issue: https://github.com/lobehub/lobe-chat/issues+If you need further assistance, please open an issue: https://github.com/lobehub/lobehub/issues`;module.exports = {diff --git a/src/features/ResourceHome/MergeNotice/Content.tsx b/src/features/ResourceHome/MergeNotice/Content.tsxindex a8c8ebf60c3..dbe8fc83218 100644--- a/src/features/ResourceHome/MergeNotice/Content.tsx+++ b/src/features/ResourceHome/MergeNotice/Content.tsx@@ -31,6 +31,18 @@ const Point = memo<PointProps>(({ desc, icon, title }) => (Point.displayName = 'DocsMergePoint';+/**+ * Rendered as a component so it re-renders once the `file` namespace loads;+ * a string resolved when the modal opens shows the raw key on a cold load.+ */+export const DocsMergeNoticeTitle = memo(() => {+ const { t } = useTranslation('file');++ return t('docs.mergeNotice.title');+});++DocsMergeNoticeTitle.displayName = 'DocsMergeNoticeTitle';+/** Where things moved when Pages and Resources became Docs. */export const DocsMergeNoticeContent = memo(() => {const { t } = useTranslation('file');diff --git a/src/features/ResourceHome/MergeNotice/index.test.ts b/src/features/ResourceHome/MergeNotice/index.test.tsnew file mode 100644index 00000000000..1be6788115c--- /dev/null+++ b/src/features/ResourceHome/MergeNotice/index.test.ts@@ -0,0 +1,28 @@+import { isValidElement } from 'react';+import { beforeEach, describe, expect, it, vi } from 'vitest';++import { DocsMergeNoticeTitle } from './Content';+import { openDocsMergeNotice } from './index';++const { createModal } = vi.hoisted(() => ({ createModal: vi.fn() }));++vi.mock('@lobehub/ui', async (importOriginal) => ({+ ...(await importOriginal<object>()),+ createModal,+}));++describe('openDocsMergeNotice', () => {+ beforeEach(() => {+ createModal.mockClear();+ });++ // A string resolved when the modal opens is the raw key on a cold load,+ // before the `file` namespace arrives; the title component re-renders.+ it('passes the title as a component, not a string resolved at open time', () => {+ openDocsMergeNotice(vi.fn());++ const { title } = createModal.mock.calls[0][0] as { title: unknown };+ expect(typeof title).not.toBe('string');+ expect(isValidElement(title) && title.type).toBe(DocsMergeNoticeTitle);+ });+});diff --git a/src/features/ResourceHome/MergeNotice/index.tsx b/src/features/ResourceHome/MergeNotice/index.tsxindex 9035cd9d157..08a8cb460d1 100644--- a/src/features/ResourceHome/MergeNotice/index.tsx+++ b/src/features/ResourceHome/MergeNotice/index.tsx@@ -1,7 +1,6 @@'use client';import { createModal } from '@lobehub/ui';-import { t } from 'i18next';import { useEffect, useRef } from 'react';import { useHomeStore } from '@/store/home';@@ -9,10 +8,10 @@ import { homeRecentSelectors } from '@/store/home/slices/recent/selectors';import { useUserStore } from '@/store/user';import { preferenceSelectors } from '@/store/user/selectors';-import { DocsMergeNoticeContent } from './Content';+import { DocsMergeNoticeContent, DocsMergeNoticeTitle } from './Content';import { decideMergeNotice } from './decide';-const openDocsMergeNotice = (onClosed: () => void) =>+export const openDocsMergeNotice = (onClosed: () => void) =>createModal({content: <DocsMergeNoticeContent />,footer: null,@@ -21,7 +20,7 @@ const openDocsMergeNotice = (onClosed: () => void) =>onOpenChangeComplete: (open) => {if (!open) onClosed();},- title: t('docs.mergeNotice.title', { ns: 'file' }),+ title: <DocsMergeNoticeTitle />,width: 'min(92vw, 480px)',});diff --git a/src/libs/document-loaders/loaders/index.ts b/src/libs/document-loaders/loaders/index.tsindex ca1a9090f99..02ca79d1009 100644--- a/src/libs/document-loaders/loaders/index.ts+++ b/src/libs/document-loaders/loaders/index.ts@@ -81,7 +81,7 @@ export class ChunkingLoader {default: {throw new Error(- `Unsupported file type [${type}], please check your file is supported, or create report issue here: https://github.com/lobehub/lobe-chat/discussions/3550`,+ `Unsupported file type [${type}], please check your file is supported, or create report issue here: https://github.com/lobehub/lobehub/discussions/3550`,);}}