feat: implement device log capture support#60
Closed
codegen-sh[bot] wants to merge 2 commits intomainfrom
Closed
Conversation
- Add new device_log.ts module with device log capture functionality - Implement startDeviceLogCapture using xcrun devicectl device process launch --console - Add stopDeviceLogCapture for retrieving captured logs - Include registerListDevicesTool for discovering connected iOS devices - Register device log tools in IOS_DEVICE_WORKFLOW and DIAGNOSTICS groups - Support for USB-connected iOS devices with console output capture Resolves the feature request from issue #54 where user found working devicectl command for capturing device logs.
Author
|
I see a check failed - I'm on it! 🫡 |
- Fixed prettier formatting issues in device_log.ts - Applied consistent code formatting across the file - All linting checks now pass
Author
|
✅ Fixed failing CI check in this commit The issue was prettier formatting violations in the newly added
Fix applied:
The device log capture functionality remains fully intact - this was purely a code formatting fix to meet the project's style guidelines. 💻 View my work • React 👍 or 👎 |
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
This PR implements device log capture support for iOS devices connected via USB, addressing the feature request from issue #54.
Changes Made
New Device Log Module (
src/tools/device_log.ts)startDeviceLogCapture: Launches apps on iOS devices with console output capture usingxcrun devicectl device process launch --consolestopDeviceLogCapture: Stops log capture sessions and retrieves captured logsregisterListDevicesTool: Lists available iOS devices with UUIDs and connection informationTool Registration
IOS_DEVICE_WORKFLOWandDIAGNOSTICStool groupslist_devices: Lists connected iOS devices with UUIDsstart_device_log_cap: Starts device log capture by launching app with console outputstop_device_log_cap: Stops capture and returns logsTechnical Implementation
The implementation uses the
xcrun devicectl device process launch --console --device UUID bundleIdcommand that was discovered by the user in issue #54. This approach:Usage Example
Resolves
Testing
💻 View my work • About Codegen