Refactor agent and device management with improved logging#84
Open
DanTheMan827 wants to merge 4 commits intoLauriethefish:mainfrom
Open
Refactor agent and device management with improved logging#84DanTheMan827 wants to merge 4 commits intoLauriethefish:mainfrom
DanTheMan827 wants to merge 4 commits intoLauriethefish:mainfrom
Conversation
- Added createLoggingWritableStream function to log messages from the agent. - Implemented WritableStream to capture and process agent output. - Improved error handling for JSON parsing of agent messages. - Updated sendRequest function to utilize the new logging stream.
- Removed DeviceStore and SyncStore, consolidating their functionality into a new context-based approach. - Introduce DeviceConnector and BridgeManager hooks to manage device connections and bridge interactions. - Updated ModManager, OptionsMenu, and other components to utilize the new context for device management. - Refactor operation modals to use a new context-based approach.
- Added `valtio` dependency for state management. - Updated `@types/w3c-web-usb` to version `^1.0.10`. - Refactored operation modals to use `valtio` for state management. - Simplified modal context usage across components. - Improved error handling and operation wrapping in modals. - Defined properties from source for better state management.
53f856d to
95f2358
Compare
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.
Consolidate device and connection management into a context-based approach while enhancing agent request handling and logging capabilities. Improve error handling for agent messages and update relevant components to utilize the new structure.