📝 docs(bot): Auto sync agents & plugin to readme

This commit is contained in:
lobehubbot
2026-01-16 12:27:35 +00:00
parent cc459167f0
commit 67bb9f64aa
6 changed files with 26 additions and 19 deletions

View File

@@ -1,4 +1,11 @@
[
{
"children": {
"features": ["Add agent group publish into market & use market group agents in lobehub."]
},
"date": "2026-01-16",
"version": "2.0.0-next.297"
},
{
"children": {
"improvements": ["Improve todo list."]

View File

@@ -1,14 +1,12 @@
'use client';
import { SOCIAL_URL } from '@lobechat/business-const';
import { Flexbox, Icon, Tabs, Tag } from '@lobehub/ui';
import { Flexbox, Icon, Tabs } from '@lobehub/ui';
import { createStaticStyles } from 'antd-style';
import { BookOpenIcon, HistoryIcon, LayersIcon, ListIcon, SquareUserIcon, UsersIcon } from 'lucide-react';
import { BookOpenIcon, HistoryIcon, SquareUserIcon } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
import { useDetailContext } from '../DetailProvider';
const styles = createStaticStyles(({ css, cssVar }) => {
return {
link: css`

View File

@@ -1,5 +1,4 @@
import { Avatar, Flexbox, Text } from '@lobehub/ui';
import { Grid } from '@lobehub/ui';
import { Avatar, Flexbox, Grid, Text } from '@lobehub/ui';
import qs from 'query-string';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
@@ -16,9 +15,11 @@ const GroupAgentCard = memo<DiscoverGroupAgentItem>((item) => {
const handleClick = () => {
if (!item.identifier) return;
navigate(qs.stringifyUrl({
url: urlJoin('/community/group_agent', item.identifier),
}));
navigate(
qs.stringifyUrl({
url: urlJoin('/community/group_agent', item.identifier),
}),
);
};
return (
@@ -27,8 +28,8 @@ const GroupAgentCard = memo<DiscoverGroupAgentItem>((item) => {
onClick={handleClick}
padding={16}
style={{
borderRadius: 8,
border: '1px solid var(--lobe-border-color)',
borderRadius: 8,
cursor: 'pointer',
transition: 'all 0.2s',
}}
@@ -76,7 +77,9 @@ const Related = memo(() => {
</Grid>
) : (
<Flexbox align="center" padding={32} style={{ color: '#999' }}>
{t('groupAgents.details.related.empty', { defaultValue: 'No related group agents found' })}
{t('groupAgents.details.related.empty', {
defaultValue: 'No related group agents found',
})}
</Flexbox>
)}
</Flexbox>

View File

@@ -2,7 +2,7 @@
import { Avatar, Block, Flexbox, Icon, Tag, Text, Tooltip, TooltipGroup } from '@lobehub/ui';
import { createStaticStyles } from 'antd-style';
import { ClockIcon, DownloadIcon, HeartIcon, UsersIcon } from 'lucide-react';
import { ClockIcon, DownloadIcon, UsersIcon } from 'lucide-react';
import qs from 'query-string';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';

View File

@@ -5,7 +5,6 @@ import { Pagination } from 'antd';
import { memo, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import AssistantEmpty from '../../../features/AssistantEmpty';
import { useUserDetailContext } from './DetailProvider';
import UserGroupCard from './UserGroupCard';

View File

@@ -1,4 +1,8 @@
import { type CategoryItem, type CategoryListQuery, type PluginManifest } from '@lobehub/market-sdk';
import {
type CategoryItem,
type CategoryListQuery,
type PluginManifest,
} from '@lobehub/market-sdk';
import {
AgentEventRequest,
type CallReportRequest,
@@ -15,13 +19,11 @@ import {
type AssistantMarketSource,
type AssistantQueryParams,
type DiscoverAssistantDetail,
type DiscoverGroupAgentDetail,
type DiscoverMcpDetail,
type DiscoverModelDetail,
type DiscoverPluginDetail,
type DiscoverProviderDetail,
type DiscoverUserProfile,
type GroupAgentListResponse,
type GroupAgentQueryParams,
type IdentifiersResponse,
type McpListResponse,
@@ -479,9 +481,7 @@ class DiscoverService {
return lambdaClient.market.getGroupAgentIdentifiers.query();
};
getGroupAgentList = async (
params: GroupAgentQueryParams = {},
): Promise<any> => {
getGroupAgentList = async (params: GroupAgentQueryParams = {}): Promise<any> => {
const locale = globalHelpers.getCurrentLanguage();
return lambdaClient.market.getGroupAgentList.query(
{