@lobehub/lobehub 2.0.0-next.297 → 2.0.0-next.298
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/changelog/v1.json +9 -0
- package/package.json +1 -1
- package/src/app/[variants]/(main)/community/(detail)/group_agent/features/Details/Nav.tsx +0 -1
- package/src/app/[variants]/(main)/community/(detail)/group_agent/features/Details/Related/index.tsx +9 -5
- package/src/app/[variants]/(main)/home/_layout/HomeAgentIdSync.tsx +23 -0
- package/src/app/[variants]/(main)/home/_layout/index.tsx +2 -0
- package/src/services/discover.ts +6 -4
- package/src/store/tool/slices/lobehubSkillStore/action.ts +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
## [Version 2.0.0-next.298](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.297...v2.0.0-next.298)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2026-01-16**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **misc**: Fix switch skill in home.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **misc**: Fix switch skill in home, closes [#11537](https://github.com/lobehub/lobe-chat/issues/11537) ([d5561f3](https://github.com/lobehub/lobe-chat/commit/d5561f3))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
## [Version 2.0.0-next.297](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.296...v2.0.0-next.297)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2026-01-16**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/lobehub",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.298",
|
|
4
4
|
"description": "LobeHub - an open-source,comprehensive AI Agent framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"framework",
|
package/src/app/[variants]/(main)/community/(detail)/group_agent/features/Details/Related/index.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Avatar, Flexbox,
|
|
1
|
+
import { Avatar, Flexbox, Grid, Text } from '@lobehub/ui';
|
|
2
2
|
import qs from 'query-string';
|
|
3
3
|
import { memo } from 'react';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
@@ -15,9 +15,11 @@ const GroupAgentCard = memo<DiscoverGroupAgentItem>((item) => {
|
|
|
15
15
|
|
|
16
16
|
const handleClick = () => {
|
|
17
17
|
if (!item.identifier) return;
|
|
18
|
-
navigate(
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
navigate(
|
|
19
|
+
qs.stringifyUrl({
|
|
20
|
+
url: urlJoin('/community/group_agent', item.identifier),
|
|
21
|
+
}),
|
|
22
|
+
);
|
|
21
23
|
};
|
|
22
24
|
|
|
23
25
|
return (
|
|
@@ -75,7 +77,9 @@ const Related = memo(() => {
|
|
|
75
77
|
</Grid>
|
|
76
78
|
) : (
|
|
77
79
|
<Flexbox align="center" padding={32} style={{ color: '#999' }}>
|
|
78
|
-
{t('groupAgents.details.related.empty', {
|
|
80
|
+
{t('groupAgents.details.related.empty', {
|
|
81
|
+
defaultValue: 'No related group agents found',
|
|
82
|
+
})}
|
|
79
83
|
</Flexbox>
|
|
80
84
|
)}
|
|
81
85
|
</Flexbox>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { useUnmount } from 'ahooks';
|
|
2
|
+
import { createStoreUpdater } from 'zustand-utils';
|
|
3
|
+
|
|
4
|
+
import { useAgentStore } from '@/store/agent';
|
|
5
|
+
import { builtinAgentSelectors } from '@/store/agent/selectors';
|
|
6
|
+
|
|
7
|
+
const HomeAgentIdSync = () => {
|
|
8
|
+
const useAgentStoreUpdater = createStoreUpdater(useAgentStore);
|
|
9
|
+
|
|
10
|
+
const inboxAgentId = useAgentStore(builtinAgentSelectors.inboxAgentId);
|
|
11
|
+
|
|
12
|
+
// Sync inbox agent id to activeAgentId when on home page
|
|
13
|
+
useAgentStoreUpdater('activeAgentId', inboxAgentId);
|
|
14
|
+
|
|
15
|
+
// Clear activeAgentId when unmounting (leaving home page)
|
|
16
|
+
useUnmount(() => {
|
|
17
|
+
useAgentStore.setState({ activeAgentId: undefined });
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
return null;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export default HomeAgentIdSync;
|
|
@@ -6,6 +6,7 @@ import { Outlet, useLocation, useNavigate } from 'react-router-dom';
|
|
|
6
6
|
import { useIsDark } from '@/hooks/useIsDark';
|
|
7
7
|
import { useHomeStore } from '@/store/home';
|
|
8
8
|
|
|
9
|
+
import HomeAgentIdSync from './HomeAgentIdSync';
|
|
9
10
|
import RecentHydration from './RecentHydration';
|
|
10
11
|
import Sidebar from './Sidebar';
|
|
11
12
|
import { styles } from './style';
|
|
@@ -56,6 +57,7 @@ const Layout: FC<LayoutProps> = ({ children }) => {
|
|
|
56
57
|
{content}
|
|
57
58
|
</Flexbox>
|
|
58
59
|
|
|
60
|
+
<HomeAgentIdSync />
|
|
59
61
|
<RecentHydration />
|
|
60
62
|
</Flexbox>
|
|
61
63
|
</Activity>
|
package/src/services/discover.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
type CategoryItem,
|
|
3
|
+
type CategoryListQuery,
|
|
4
|
+
type PluginManifest,
|
|
5
|
+
} from '@lobehub/market-sdk';
|
|
2
6
|
import {
|
|
3
7
|
AgentEventRequest,
|
|
4
8
|
type CallReportRequest,
|
|
@@ -477,9 +481,7 @@ class DiscoverService {
|
|
|
477
481
|
return lambdaClient.market.getGroupAgentIdentifiers.query();
|
|
478
482
|
};
|
|
479
483
|
|
|
480
|
-
getGroupAgentList = async (
|
|
481
|
-
params: GroupAgentQueryParams = {},
|
|
482
|
-
): Promise<any> => {
|
|
484
|
+
getGroupAgentList = async (params: GroupAgentQueryParams = {}): Promise<any> => {
|
|
483
485
|
const locale = globalHelpers.getCurrentLanguage();
|
|
484
486
|
return lambdaClient.market.getGroupAgentList.query(
|
|
485
487
|
{
|
|
@@ -315,11 +315,10 @@ export const createLobehubSkillStoreSlice: StateCreator<
|
|
|
315
315
|
const response = await toolsClient.market.connectListConnections.query();
|
|
316
316
|
|
|
317
317
|
// Debug logging
|
|
318
|
-
console.log('[useFetchLobehubSkillConnections] raw response:', response);
|
|
319
318
|
|
|
320
319
|
return response.connections.map((conn: any) => {
|
|
321
320
|
// Debug logging for each connection
|
|
322
|
-
|
|
321
|
+
|
|
323
322
|
// Get provider config from local definition for correct display name
|
|
324
323
|
const providerConfig = getLobehubSkillProviderById(conn.providerId);
|
|
325
324
|
return {
|