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
| <# | |
| .SYNOPSIS | |
| Retrieves GitHub Copilot premium usage and pace details via OpenCode-authenticated APIs. | |
| .DESCRIPTION | |
| This file contains only the function definition. To use it as a command, save it to its | |
| own `.ps1` file and dot-source that file from your `$PROFILE`. | |
| This command depends on OpenCode authentication state. Install OpenCode, then run | |
| `opencode auth` and complete GitHub Copilot authentication before using this command. |
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
| #!/usr/bin/env bash | |
| echo "🔍 Scanning for compromised NPM packages..." | |
| # Define compromised packages and versions | |
| declare -A compromised=( | |
| [ansi-regex]="6.2.1" | |
| [ansi-styles]="6.2.2" | |
| [backslash]="0.2.1" | |
| [chalk]="5.6.1" |