Update desktop shell and local chat experience#4
Merged
Merged
Conversation
- Removed the NapCat Adapter service from the service registry and fallback snapshot. - Updated the preload index to include new service command configurations for saving and resetting commands. - Modified the DesktopShell component to pass services to the TerminalPanel. - Enhanced the SettingsStatusPanel to manage service command configurations, including saving and resetting commands. - Updated the TerminalPanel to handle multiple service terminals and improve session management. - Added service command configuration types to shared contracts and updated the DesktopSnapshot interface.
…management - Refactor TerminalPanel to utilize react-virtual for efficient rendering of terminal logs. - Introduce ptyLogStore for centralized management of PTY session logs and state. - Add support for ANSI parsing to render styled terminal output. - Enhance WebviewPanel to manage loading states more effectively. - Introduce runtime path configurations for Python and Git in desktop API. - Update contracts to include runtime path configurations and related types. - Improve error handling and messaging in terminal and webview components.
…ation wizard - Updated `setQqAccount` method in `DesktopBridge` and related interfaces to accept an optional `websocketToken`. - Integrated secure token generation for QQ account setup using `createSecureToken`. - Modified `InitializationWizard` to handle the new QQ account setup flow, including UI updates and error handling. - Removed unused `initializePtyLogStore` call from `DesktopShell`. - Improved button styles for better responsiveness in `DesktopShell`. - Refactored `TerminalPanel` to utilize new terminal handling logic and improved session management. - Added clipboard copy functionality for terminal selections. - Updated keyboard shortcut handling in `Kbd` component to support compact mode.
…nd improve terminal session handling
- Introduced a new script `patch-electron-builder-nsis.ts` to automate patching of NSIS templates for enhanced installer details output. - Added an application icon `icon.png` to the resources directory.
- Introduced a new `startupAgreement` field in the `DesktopSnapshot` interface to manage user agreement status. - Created `StartupAgreementDialog` component to display and handle user agreements with EULA and privacy documents. - Implemented `MarkdownRenderer` for rendering agreement content with basic markdown support. - Added `ScrollArea` component for better scroll handling in the agreement dialog. - Developed `ModuleUpdater` service for updating the MaiBot module via Git. - Implemented `PythonDependencyManager` for managing Python package installations and versions. - Updated `DesktopBridge` interface to include methods for handling agreements and Python dependencies. - Enhanced `DesktopSnapshot` interface to include startup agreement state and documents.
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification