Commit Graph

38 Commits

Author SHA1 Message Date
Hakadao
bdd3ce8815 feat: support acrylic effect for Windows 2025-03-25 08:50:24 +08:00
kangfenmao
c048be53ca refactor(ipc): simplify launch on boot handling and improve WindowService logic
- Updated the IPC handler for setting launch on boot to directly use the boolean parameter for openAtLogin.
- Cleaned up the WindowService logic to enhance readability and maintainability, including minor adjustments to the tray behavior on macOS.
2025-03-23 13:22:54 +08:00
kangfenmao
fdcc83248d fix: i18n and lint 2025-03-22 22:31:43 +08:00
fullex
a63898e3a9 feat: Launch on boot, Minimize to tray on launch & on close / fix: Mac: don't show dock when close to tray (#2871)
* launch/tray feature enhance stashed

* feature: Issue #2754. launch on boot(win&mac, linux not supported now), min to tray when launch(not only boot), min to tray when close
bug-fix: Issue #2576. In Mac, if tray-on-close is set, MainWindow will not show on the dock when closed
bug-fix: MiniWindow will hide MainWindow when it shows first time and won't hide MainWindow later. The user will not open the MainWindow again if the tray is set to not show. The bug fixed by not hiding the MainWindow anytime the MiniWindow showed.

* migration version fix

* fix: enable universal shortcuts when launch to tray

*  feat: add Model Context Protocol (MCP) support (#2809)

*  feat: add Model Context Protocol (MCP) server configuration (main)

- Added `@modelcontextprotocol/sdk` dependency for MCP integration.
- Introduced MCP server configuration UI in settings with add, edit, delete, and activation functionalities.
- Created `useMCPServers` hook to manage MCP server state and actions.
- Added i18n support for MCP settings with translation keys.
- Integrated MCP settings into the application's settings navigation and routing.
- Implemented Redux state management for MCP servers.
- Updated `yarn.lock` with new dependencies and their resolutions.

* 🌟 feat: implement mcp service and integrate with ipc handlers

- Added `MCPService` class to manage Model Context Protocol servers.
- Implemented various handlers in `ipc.ts` for managing MCP servers including listing, adding, updating, deleting, and activating/deactivating servers.
- Integrated MCP related types into existing type declarations for consistency across the application.
- Updated `preload` to expose new MCP related APIs to the renderer process.
- Enhanced `MCPSettings` component to interact directly with the new MCP service for adding, updating, deleting servers and setting their active states.
- Introduced selectors in the MCP Redux slice for fetching active and all servers from the store.
- Moved MCP types to a centralized location in `@renderer/types` for reuse across different parts of the application.

* feat: enhance MCPService initialization to prevent recursive calls and improve error handling

* feat: enhance MCP integration by adding MCPTool type and updating related methods

* feat: implement streaming support for tool calls in OpenAIProvider and enhance message processing

* fix: finish_reason undefined

---------

Co-authored-by: LiuVaayne <10231735+vaayne@users.noreply.github.com>
Co-authored-by: kangfenmao <kangfenmao@qq.com>
2025-03-21 16:48:19 +08:00
kangfenmao
a040af0117 chore(version): 1.1.8 2025-03-19 17:50:46 +08:00
fullex
3adf8e6e7f fix: too many listeners 2025-03-19 13:10:53 +08:00
kangfenmao
7078509c82 feat: update package.json dependencies and enhance webview handling
- Removed the outdated @electron-toolkit/preload dependency and re-added it with the correct version.
- Added a new event listener in WindowService to set the preload script for webviews.
- Updated the openExternal method in preload to handle potential null values.
- Enabled node integration for webviews in the MinApp component for improved functionality.
2025-03-17 12:55:34 +08:00
kangfenmao
0d64965ef7 refactor: Extract file path utility functions
Move hardcoded file path generation logic to dedicated utility functions in file.ts, improving code modularity and reducing duplication across services and IPC handlers
2025-03-09 17:33:46 +08:00
suyao
abf029051f fix: Fix app quit exceptionally on MacOS's full screen mode add Add Escape key support for exiting fullscreen mode 2025-03-02 19:53:12 +08:00
kangfenmao
95f9d649ff feat: Enhance UI styling and interaction details
- Update window vibrancy to 'sidebar' for better visual effect
- Refine input bar styling with softer background and rounded corners
- Adjust toolbar button sizes and styling
- Modify topic position selection to use Segmented component
- Tweak light theme background opacity
2025-02-28 23:25:36 +08:00
ousugo
14680f98e4 fix: Clicking the taskbar icon while enable the Quick Assistant can't open the main window 2025-02-18 16:01:10 +08:00
kangfenmao
5229cef35f feat: update AIHubMix OAuth and release workflow configuration 2025-02-12 18:24:57 +08:00
kangfenmao
b2e2f3b0f1 fix: Remove local network access switch and add insecure content loading 2025-02-09 10:14:35 +08:00
kangfenmao
75d55e915c feat: Add support for SiliconFlow provider charge and knowledge base improvements 2025-02-08 23:53:28 +08:00
kangfenmao
4d82d58752 feat: Add support for AIHubMix topup and charge functionality 2025-02-08 16:26:10 +08:00
kangfenmao
f62caba4e9 feat: add aihubmix oauth 2025-02-07 22:27:28 +08:00
kangfenmao
5211ed657a fix: oauth error 2025-02-04 16:45:03 +08:00
亢奋猫
76b9af20ce feat: add oauth for siliconflow (#976)
* wip: silicon oauth

* feat: Add custom protocol handler for SiliconFlow OAuth login

* feat: Improve SiliconFlow OAuth flow with dynamic key update

* feat: Enhance OAuth and Provider Settings UI

* feat: Refactor SiliconFlow OAuth and update localization strings

* chore: Update provider localization and system provider configuration

* feat: Add OAuth support for AIHubMix provider
2025-02-04 15:41:40 +08:00
gyuannn
656d6da581 fix: 修复 mini-app 中无法使用 context-menu 的问题 2025-01-29 10:33:44 +08:00
kangfenmao
fcaff8e3eb fix: added warning for manual download on failed auto updates, simplified window lifecycle 2025-01-20 13:56:25 +08:00
kangfenmao
30b1d12909 fix: quick assistant bugs 2025-01-19 20:03:45 +08:00
kangfenmao
6692f6035d feat: add a startup switch for quick assistant 2025-01-19 19:22:25 +08:00
kangfenmao
0f3c7aa648 feat: add mini window 2025-01-19 13:59:32 +08:00
huang
2e7f8f77f3 feat: 支持 mermaid 点击按钮放大缩小以及鼠标滑轮放大缩小 2025-01-04 19:17:39 +08:00
huang
368bff3e59 feat: 支持 mermaid 点击按钮放大缩小以及鼠标滑轮放大缩小 2025-01-04 19:17:39 +08:00
huang
248aae3f4b fix: 修复在macOS m1 中点击全屏幕后,点击关闭后黑屏的问题 2025-01-04 19:17:39 +08:00
kangfenmao
80fb1c0b13 fix: knowledge base bugs 2024-12-25 21:54:46 +08:00
kangfenmao
cbe6f4c35e fix: linux window title style 2024-12-24 14:43:32 +08:00
kangfenmao
3e64fa2025 fix: knowledge bugs 2024-12-23 10:48:40 +08:00
kangfenmao
a0bc50b29c feat: remove knowledge queue 2024-12-19 13:45:11 +08:00
kangfenmao
d377376bae feat: add border to list item 2024-11-24 01:35:41 +08:00
kangfenmao
a32df473a3 style: adjust window vibrancy style 2024-11-20 20:18:51 +08:00
kangfenmao
ed2a1fcc61 feat: remove tray behavior on app close, add platform detection and file extensions 2024-11-12 16:36:47 +08:00
kangfenmao
ae81ef8910 fix: fixed tiling window manager and password input handling issues 2024-11-12 10:00:58 +08:00
kangfenmao
a0d60e6a9b feat: improved tray functionality and ui theme settings 2024-11-12 00:25:57 +08:00
injurka
bc479a999d feat: added settings for minimize to tray instead of closing 2024-11-11 23:49:18 +08:00
kangfenmao
fe8c1a4928 fix: removed macos window minimize event handler 2024-11-11 09:25:22 +08:00
kangfenmao
b34de79ca3 feat: add the ability to display the application in tray #297 2024-11-09 08:42:09 +08:00