Skip to content

Update wol extension#20601

Merged
raycastbot merged 5 commits intoraycast:mainfrom
sanjevirau:ext/wol
Aug 4, 2025
Merged

Update wol extension#20601
raycastbot merged 5 commits intoraycast:mainfrom
sanjevirau:ext/wol

Conversation

@sanjevirau
Copy link
Contributor

@sanjevirau sanjevirau commented Jul 23, 2025

Description

Screencast

Checklist

- Update package.json title and contributor name; refactor code for improved readability and consistency in index.tsx and enhanced-ping.ts. Adjust NetworkInfo type formatting in types.ts.
- Add automatic status monitoring and enhanced device details to CHANGELOG.md
- Enhance network monitoring features by adding periodic pinging and detailed device status. Introduce NetworkInfo type for improved data handling and update WakeDataForm action title for clarity. Add owner and contributors to package.json.
- Initial commit
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: wol Issues related to the wol extension labels Jul 23, 2025
@raycastbot
Copy link
Collaborator

raycastbot commented Jul 23, 2025

Thank you for your first contribution! 🎉

🔔 @bxb100 you might want to have a look.

You can use this guide to learn how to check out the Pull Request locally in order to test it.

Due to our current reduced availability during summer, the initial review may take up to 10-15 business days.

@sanjevirau sanjevirau marked this pull request as ready for review July 23, 2025 08:17
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Greptile Summary

This PR significantly enhances the Wake-on-LAN (WOL) extension by transforming it from a basic wake utility into a comprehensive network device monitoring tool. The changes include:

Core Functionality Enhancements:

  • Added real-time device status monitoring with automatic pinging every 8 seconds
  • Implemented enhanced network diagnostics including latency measurement, packet loss tracking, and connection quality assessment
  • Added OS detection based on TTL analysis and hostname resolution via reverse DNS lookup
  • Integrated comprehensive device metadata display with conditional rendering based on network availability

User Experience Improvements:

  • Updated the extension title from "WOL" to "Wake-On-LAN" for better discoverability
  • Fixed a typo in the form component ("Crate" → "Create")
  • Added smart loading indicators for both initial load and periodic status checks
  • Implemented manual refresh capability (Cmd+R)

Technical Implementation:

  • Created a new NetworkInfo interface with comprehensive network diagnostic properties
  • Added enhanced-ping.ts module with advanced ping functionality
  • Implemented proper state management for network information with periodic updates
  • Added contributor attribution in package.json

Changelog Issues:

  • The changelog entry uses a hardcoded date "2024-12-15" instead of the required template string {PR_MERGE_DATE}

The extension now provides continuous network monitoring capabilities alongside traditional Wake-on-LAN functionality, making it a more complete network management tool.

Confidence score: 2/5

  • This PR has significant security vulnerabilities that make it unsafe to merge in its current state
  • The enhanced-ping.ts file contains command injection vulnerabilities from unvalidated IP input in shell commands
  • Files needing attention: extensions/wol/src/lib/enhanced-ping.ts (security issues), extensions/wol/CHANGELOG.md (date format)

6 files reviewed, 2 comments

Edit Code Review Bot Settings | Greptile

sanjevirau and others added 3 commits July 23, 2025 17:17
Added this by suggestion as this is required by Raycast Guidelines.

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Checked and seems like a good guide for the ip addresses.

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@pernielsentikaer
Copy link
Collaborator

Hi @sanjevirau👋

Thanks for your contribution 🔥

@bxb100 could you check this?

@bxb100
Copy link
Contributor

bxb100 commented Aug 4, 2025

sorry for slowly response

LGTM

@andreaselia
Copy link
Contributor

Nice one, thanks!

@andreaselia andreaselia self-assigned this Aug 4, 2025
@raycastbot raycastbot merged commit 7307889 into raycast:main Aug 4, 2025
2 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Aug 4, 2025

Published to the Raycast Store:
https://raycast.com/Lemon/wol

@raycastbot
Copy link
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension fix / improvement Label for PRs with extension's fix improvements extension: wol Issues related to the wol extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants