@lobehub/lobehub 2.0.0-next.227 → 2.0.0-next.229
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/AGENTS.md +4 -0
- package/CHANGELOG.md +50 -0
- package/CLAUDE.md +4 -0
- package/changelog/v1.json +18 -0
- package/package.json +2 -2
- package/packages/utils/src/platform.test.ts +26 -1
- package/packages/utils/src/platform.ts +22 -0
- package/src/app/[variants]/(main)/_layout/DesktopLayoutContainer/style.ts +4 -0
- package/src/app/[variants]/(main)/_layout/DesktopLayoutContainer.tsx +8 -4
- package/src/app/[variants]/(main)/chat/_layout/Sidebar/Header/Agent/SwitchPanel.tsx +37 -23
- package/src/app/[variants]/(main)/chat/_layout/Sidebar/Topic/List/Item/Editing.tsx +4 -7
- package/src/app/[variants]/(main)/chat/_layout/Sidebar/Topic/TopicListContent/ThreadList/ThreadItem/Editing.tsx +4 -7
- package/src/app/[variants]/(main)/chat/features/Conversation/Header/HeaderActions/index.tsx +3 -13
- package/src/app/[variants]/(main)/chat/features/Conversation/Header/WorkingDirectory/index.tsx +2 -4
- package/src/app/[variants]/(main)/community/(list)/model/features/List/Item.tsx +1 -3
- package/src/app/[variants]/(main)/group/_layout/Sidebar/GroupConfig/AgentProfilePopup.tsx +3 -5
- package/src/app/[variants]/(main)/group/_layout/Sidebar/Header/Agent/SwitchPanel.tsx +4 -6
- package/src/app/[variants]/(main)/group/_layout/Sidebar/Topic/List/Item/Editing.tsx +4 -7
- package/src/app/[variants]/(main)/group/_layout/Sidebar/Topic/TopicListContent/ThreadList/ThreadItem/Editing.tsx +4 -7
- package/src/app/[variants]/(main)/home/_layout/Body/Agent/List/AgentGroupItem/Editing.tsx +4 -7
- package/src/app/[variants]/(main)/home/_layout/Body/Agent/List/AgentItem/Editing.tsx +4 -7
- package/src/app/[variants]/(main)/home/_layout/Body/Agent/List/Group/Editing.tsx +4 -7
- package/src/app/[variants]/(main)/home/_layout/Body/Project/List/Editing.tsx +4 -7
- package/src/app/[variants]/(main)/image/_layout/ConfigPanel/components/ModelSelect/ImageModelItem.tsx +1 -6
- package/src/app/[variants]/(main)/image/_layout/Topics/TopicItem.tsx +3 -4
- package/src/app/[variants]/(main)/page/_layout/Body/List/Item/Editing.tsx +5 -7
- package/src/app/[variants]/(main)/resource/(home)/_layout/Body/LibraryList/List/Item/Editing.tsx +4 -7
- package/src/components/ManifestPreviewer/index.tsx +2 -5
- package/src/components/TipGuide/index.tsx +3 -4
- package/src/features/ChatInput/ActionBar/Search/index.tsx +1 -1
- package/src/features/ChatInput/ActionBar/components/Action.tsx +5 -1
- package/src/features/ChatInput/ActionBar/components/ActionPopover.tsx +27 -23
- package/src/features/ChatMiniMap/MinimapIndicator.tsx +2 -4
- package/src/features/ChatMiniMap/index.tsx +16 -14
- package/src/features/Conversation/Markdown/plugins/Mention/Render.tsx +2 -4
- package/src/features/Conversation/Messages/AssistantGroup/Tool/Render/Intervention/ApprovalActions.tsx +2 -3
- package/src/features/Conversation/Messages/components/Extras/Usage/UsageDetail/index.tsx +3 -4
- package/src/features/LocalFile/LocalFile.tsx +4 -5
- package/src/features/MCPPluginDetail/Deployment/index.tsx +13 -4
- package/src/features/MCPPluginDetail/Score/TotalScore.tsx +10 -5
- package/src/features/ModelSwitchPanel/index.tsx +2 -4
- package/src/features/PageEditor/Copilot/Toolbar.tsx +5 -8
- package/src/server/routers/mobile/index.ts +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ActionIcon, Block, Flexbox } from '@lobehub/ui';
|
|
2
|
-
import { Popover } from 'antd';
|
|
1
|
+
import { ActionIcon, Block, Flexbox, Popover } from '@lobehub/ui';
|
|
3
2
|
import { createStaticStyles, cx } from 'antd-style';
|
|
4
3
|
import { ChevronsUpDownIcon, Clock3Icon, PanelRightCloseIcon, PlusIcon } from 'lucide-react';
|
|
5
4
|
import { Suspense, memo, useMemo, useState } from 'react';
|
|
@@ -108,7 +107,6 @@ const AgentSelector = memo<AgentSelectorProps>(({ agentId, onAgentChange }) => {
|
|
|
108
107
|
|
|
109
108
|
return (
|
|
110
109
|
<Popover
|
|
111
|
-
arrow={false}
|
|
112
110
|
content={
|
|
113
111
|
<Suspense fallback={<SkeletonList rows={6} />}>
|
|
114
112
|
<AgentModalProvider>
|
|
@@ -120,12 +118,12 @@ const AgentSelector = memo<AgentSelectorProps>(({ agentId, onAgentChange }) => {
|
|
|
120
118
|
open={open}
|
|
121
119
|
placement="bottomLeft"
|
|
122
120
|
styles={{
|
|
123
|
-
|
|
121
|
+
content: {
|
|
124
122
|
padding: 0,
|
|
125
123
|
width: 240,
|
|
126
124
|
},
|
|
127
125
|
}}
|
|
128
|
-
trigger=
|
|
126
|
+
trigger="click"
|
|
129
127
|
>
|
|
130
128
|
<Block
|
|
131
129
|
align={'center'}
|
|
@@ -197,7 +195,6 @@ const CopilotToolbar = memo<CopilotToolbarProps>(({ agentId, isHovered }) => {
|
|
|
197
195
|
/>
|
|
198
196
|
{!hideHistory && (
|
|
199
197
|
<Popover
|
|
200
|
-
arrow={false}
|
|
201
198
|
content={
|
|
202
199
|
<Flexbox
|
|
203
200
|
gap={4}
|
|
@@ -224,12 +221,12 @@ const CopilotToolbar = memo<CopilotToolbarProps>(({ agentId, isHovered }) => {
|
|
|
224
221
|
open={topicPopoverOpen}
|
|
225
222
|
placement="bottomRight"
|
|
226
223
|
styles={{
|
|
227
|
-
|
|
224
|
+
content: {
|
|
228
225
|
padding: 0,
|
|
229
226
|
width: 240,
|
|
230
227
|
},
|
|
231
228
|
}}
|
|
232
|
-
trigger=
|
|
229
|
+
trigger="click"
|
|
233
230
|
>
|
|
234
231
|
<ActionIcon icon={Clock3Icon} size={DESKTOP_HEADER_ICON_SIZE} />
|
|
235
232
|
</Popover>
|
|
@@ -19,7 +19,7 @@ import { sessionRouter } from '../lambda/session';
|
|
|
19
19
|
import { sessionGroupRouter } from '../lambda/sessionGroup';
|
|
20
20
|
import { uploadRouter } from '../lambda/upload';
|
|
21
21
|
import { userRouter } from '../lambda/user';
|
|
22
|
-
import { topicRouter } from '
|
|
22
|
+
import { topicRouter } from '../lambda/topic';
|
|
23
23
|
|
|
24
24
|
export const mobileRouter = router({
|
|
25
25
|
agent: agentRouter,
|