🤯 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
import urlJoin from 'url-join';
export const OFFICIAL_URL = 'https://app.lobehub.com';
export const OFFICIAL_SITE = 'https://lobehub.com';
export const OFFICIAL_DOMAIN = 'lobehub.com';
export const OFFICIAL_CLOUD_URL = OFFICIAL_SITE;
export const isOfficialCloudServer = (url?: string): boolean => {
if (!url) return false;
try {
const { hostname } = new URL(url);
return hostname === OFFICIAL_DOMAIN || hostname.endsWith(`.${OFFICIAL_DOMAIN}`);
} catch {
return false;
}
};
export const OFFICIAL_DEVICE_GATEWAY_URL = 'https://device-gateway.lobehub.com';
export const OFFICIAL_AGENT_GATEWAY_URL = 'https://agent-gateway.lobehub.com';
export const OG_URL = '/og/og.webp?v=1';
export const LobeHubPath = {
webapi: {
modelConfig: '/webapi/lobehub-model-config',
},
} as const;
export const GITHUB = 'https://github.com/lobehub/lobehub';
export const GITHUB_ISSUES = urlJoin(GITHUB, 'issues/new/choose');
export const CHANGELOG = 'https://lobehub.com/changelog';
export const DOCUMENTS = urlJoin(OFFICIAL_SITE, '/docs');
export const USAGE_DOCUMENTS = urlJoin(DOCUMENTS, '/usage');
export const SELF_HOSTING_DOCUMENTS = urlJoin(DOCUMENTS, '/self-hosting');
export const DATABASE_SELF_HOSTING_URL = urlJoin(SELF_HOSTING_DOCUMENTS, '/server-database');
// use this for the link
export const DOCUMENTS_REFER_URL = `${DOCUMENTS}?utm_source=chat_preview`;
export const WIKI_PLUGIN_GUIDE = urlJoin(USAGE_DOCUMENTS, '/plugins/development');
export const MANUAL_UPGRADE_URL = urlJoin(SELF_HOSTING_DOCUMENTS, '/advanced/upstream-sync');
export const BLOG = urlJoin(OFFICIAL_SITE, 'blog');
export const ABOUT = OFFICIAL_SITE;
export const FEEDBACK = urlJoin(GITHUB, 'issues/new/choose');
export const PRIVACY_URL = urlJoin(OFFICIAL_SITE, '/privacy');
export const TERMS_URL = urlJoin(OFFICIAL_SITE, '/terms');
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/lobehub/discussions/6157';
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');
export const AGENTS_OFFICIAL_URL = 'https://lobehub.com/agent';
export const WORKSPACE_OFFICIAL_URL = 'https://lobehub.com/workspace';
export const AGENT_CHAT_URL = (agentId: string, mobile?: boolean) => {
if (mobile) return `/agent/${agentId}`;
return `/agent/${agentId}`;
};
export const AGENT_CHAT_TOPIC_URL = (agentId: string, topicId: string, mobile?: boolean) => {
if (mobile) return urlJoin('/agent', agentId, topicId);
return urlJoin('/agent', agentId, topicId);
};
export const AGENT_CHAT_TOPIC_PAGE_URL = (agentId: string, topicId: string, mobile?: boolean) => {
if (mobile) return urlJoin('/agent', agentId, topicId, 'page');
return urlJoin('/agent', agentId, topicId, 'page');
};
/**
* Visitors' conversations with the shared Agent, opened from its Share settings. Lands on the
* newest visitor topic, with the visitors listed in the sidebar.
*/
export const AGENT_SHARE_VISITORS_URL = (agentId: string) => urlJoin('/agent', agentId, 'visitor');
/** A share visitor's run topic, opened read-only by the shared Agent's owner. */
export const AGENT_SHARE_VISITOR_TOPIC_URL = (agentId: string, topicId: string) =>
urlJoin('/agent', agentId, 'visitor', topicId);
export const AGENT_PROFILE_URL = (agentId: string) => `/agent/${agentId}/profile`;
export const GROUP_CHAT_URL = (groupId: string) => `/group/${groupId}`;
export const GROUP_CHAT_TOPIC_URL = (groupId: string, topicId: string) =>
urlJoin('/group', groupId, topicId);
/**
* A Channel page. A thread link opens the thread as the page (`/threads/:threadId`); opening one
* from a message instead shows it beside the Channel (`?thread=`). A project's Channel opens
* inside the project so its sidebar stays in place.
*/
export const CHANNEL_URL = (
channelId: string,
threadId?: string | null,
projectId?: string | null,
) => {
const path = projectId ? `/project/${projectId}/channels/${channelId}` : `/channels/${channelId}`;
return threadId ? `${path}/threads/${encodeURIComponent(threadId)}` : path;
};
export const LIBRARY_URL = (id: string) => urlJoin('/resource/library', id);
// Fixed product imagery is mirrored to the static origin; /app-images belongs to the App.
export const imageUrl = (filename: string) => `/static/app-images/${filename}`;
export const LOBE_URL_IMPORT_NAME = 'settings';
export const RELEASES_URL = urlJoin(GITHUB, 'releases');
export const mailTo = (email: string) => `mailto:${email}`;
export const AES_GCM_URL = 'https://datatracker.ietf.org/doc/html/draft-ietf-avt-srtp-aes-gcm-01';
export const BASE_PROVIDER_DOC_URL = 'https://lobehub.com/docs/usage/providers';
export const CHANGELOG_URL = urlJoin(OFFICIAL_SITE, 'changelog');
export const DOWNLOAD_URL = {
android: 'https://play.google.com/store/apps/details?id=com.lobehub.app',
default: urlJoin(OFFICIAL_SITE, '/downloads'),
mobile: urlJoin(OFFICIAL_SITE, '/mobile'),
ios: 'https://testflight.apple.com/join/2ZbjX4Qp',
} as const;
export const channelDocUrl = (platform: string) => urlJoin(USAGE_DOCUMENTS, 'channels', platform);
export const discoverUrl = (type: string, identifier: string) =>
urlJoin(OFFICIAL_SITE, 'discover', type, identifier);