dependency-scan
You are in AUTONOMOUS MODE. Do NOT ask questions. Detect, scan, fix, and report.
TARGET: $ARGUMENTS
If arguments contain "sbom" or "SBOM", generate a Software Bill of Materials in addition to the vulnerability scan. If no arguments provided, scan the entire project in the current working directory.
IMPORTANT: Scan ALL detected package managers — monorepos often have multiple (e.g., npm frontend + Python backend). For each vulnerability, record: package name, current version, patched version, severity, CVE/advisory URL, and whether it is direct or transitive. Apply safe fixes (patch-level bumps) automatically, but never apply major version bumps without flagging them. After applying fixes, always re-run the scan to verify resolution and run the project test suite to check for regressions. Do not commit if tests fail.
============================================================ PHASE 0: PACKAGE MANAGER DETECTION
Scan the project root and subdirectories to detect all package managers in use: