This commit enhances the dependency analysis workflow to intelligently determine when internet research is critical versus optional, preventing the model doesn't know what it doesn't know problem.
Key improvements:
- Version Criticality Analysis: Compares package.json versions against model training cutoff to identify potentially unknown libraries
- Smart Fallback Logic: Distinguishes between critical research (newer versions, latest specifiers) and optional research (general best practices)
- Risk-Aware Halting: Stops execution for critical version mismatches with clear explanation of risks
- User Choice Preservation: Allows informed decisions about proceeding without current knowledge
Critical triggers include:
- Package versions newer than model training data
- latest/^ version specifiers for major dependencies
- Completely new frameworks not in training data
- Major version bumps requiring migration knowledge
This prevents implementation failures due to outdated patterns while maintaining workflow efficiency for routine development tasks.