check uv and bun install
This commit is contained in:
@@ -684,11 +684,6 @@ export function registerIpc(mainWindow: BrowserWindow, app: Electron.App) {
|
||||
return await agentExecutionService.stopAgent(sessionId)
|
||||
})
|
||||
|
||||
// Session Logs IPC Handlers
|
||||
ipcMain.handle(IpcChannel.SessionLog_GetBySessionId, async (_, options: ListSessionLogsOptions) => {
|
||||
return await agentService.getSessionLogs(options)
|
||||
})
|
||||
|
||||
ipcMain.handle(IpcChannel.App_IsBinaryExist, (_, name: string) => isBinaryExists(name))
|
||||
ipcMain.handle(IpcChannel.App_GetBinaryPath, (_, name: string) => getBinaryPath(name))
|
||||
ipcMain.handle(IpcChannel.App_InstallUvBinary, () => runInstallScript('install-uv.js'))
|
||||
|
||||
@@ -57,5 +57,5 @@ export async function getBinaryPath(name?: string): Promise<string> {
|
||||
|
||||
export async function isBinaryExists(name: string): Promise<boolean> {
|
||||
const cmd = await getBinaryPath(name)
|
||||
return await fs.existsSync(cmd)
|
||||
return fs.existsSync(cmd)
|
||||
}
|
||||
|
||||
@@ -63,9 +63,9 @@ export const Sidebar: React.FC<SidebarProps> = ({
|
||||
return (
|
||||
<SidebarComponent>
|
||||
<SidebarHeader>
|
||||
<InstallNpxUv />
|
||||
<HeaderLabel>agents</HeaderLabel>
|
||||
<HeaderActions>
|
||||
<InstallNpxUv mini />
|
||||
{agents.length === 0 ? (
|
||||
<Button type="primary" icon={<PlusOutlined />} size="small" onClick={onCreateAgent}>
|
||||
Create Agent
|
||||
|
||||
@@ -14,7 +14,7 @@ export const SidebarHeader = styled.div`
|
||||
padding: 16px 20px;
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
min-height: 56px;
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import { CheckCircleOutlined, QuestionCircleOutlined, WarningOutlined } from '@ant-design/icons'
|
||||
import { Center, VStack } from '@renderer/components/Layout'
|
||||
import { useAppDispatch, useAppSelector } from '@renderer/store'
|
||||
import { setIsBunInstalled, setIsUvInstalled } from '@renderer/store/mcp'
|
||||
import { Alert, Button } from 'antd'
|
||||
import { FC, useCallback, useEffect, useState } from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
@@ -15,10 +13,6 @@ interface Props {
|
||||
}
|
||||
|
||||
const InstallNpxUv: FC<Props> = ({ mini = false }) => {
|
||||
const dispatch = useAppDispatch()
|
||||
// const isUvInstalled = useAppSelector((state) => state.mcp.isUvInstalled)
|
||||
// const isBunInstalled = useAppSelector((state) => state.mcp.isBunInstalled)
|
||||
|
||||
const [isUvInstalled, setIsUvInstalled] = useState(false)
|
||||
const [isBunInstalled, setIsBunInstalled] = useState(false)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user