The generate_mdc_files.py script now sorts rules.json alphabetically by library name to improve maintainability. rules.json has been updated to this new sorted order.
- Update load_library_data to remove the src/rules.json path from possible rules.json locations
- Simplify rules.json path resolution to focus on package root and current directory
- Align with previous changes in rules.json handling and copying
- Remove redundant copying of rules.json to src directory
- Keep only the copy to package root
- Maintain existing warning if rules.json is not found in project root
- Add default rules_json path using DEFAULT_RULES_PATH
- Ensure rules_json and source are set in configuration if not provided
- Improve configuration fallback mechanism for CLI arguments
- Simplify default configuration logic in main function
- Create README.md in cursor-rules-cli to explain rules.json origin
- Enhance logging for rules.json copying process
- Clarify that rules.json is automatically managed and should not be edited directly
- Refactor load_library_data to prioritize specified rules.json path
- Add detailed logging for rules.json discovery and loading process
- Improve error handling and path resolution for rules.json
- Provide more informative debug and warning messages during library data loading
- Always copy rules.json from project root to package root and src directory
- Add robust handling for project-level rules.json file
- Enhance logging for rules.json copying process
- Add warning if rules.json is not found in project root
- Rewrite README to be more approachable and conversational
- Add more detailed usage examples and explanations
- Improve section structure for better readability
- Include more CLI options and use cases
- Enhance documentation for custom repository and configuration management
- Add flag to track directly provided libraries
- Modify scanning logic to skip project scan when libraries are directly input
- Optimize library matching for directly provided libraries
- Improve logging for direct library input scenario
- Introduce new `--libraries` CLI argument for direct library specification
- Modify main function to support direct library input
- Add fallback to existing library scanning mechanism if no direct libraries provided
- Enhance library matching workflow with direct library input support
- Modify installer.py and utils.py to use current working directory for .cursor
- Update comments to reflect project-local .cursor directory behavior
- Adjust backup creation to store backups in .cursor/backups directory
- Ensure consistent project-local configuration and rule management
- Simplify rule installation logging by removing detailed rule name output
- Modify display_matched_rules to return full rule objects instead of just rule names
- Improve function return type and documentation for more precise rule selection
- Remove verbose logging of individual rule names during installation
- Add .pypirc for PyPI and TestPyPI token configuration
- Create MANIFEST.in to include necessary files for package distribution
- Add PUBLISHING.md with detailed instructions for package publishing
- Update pyproject.toml for build system configuration
- Update README.md with PyPI installation instructions
- Bump version to 0.4.0 in __init__.py
- Include rules.json in package source for distribution
- Rename package from "cursor-rules-cli" to "cursor-rules"
- Add logic to copy rules.json to src directory during setup
- Update package name and package data configuration
- Improve package metadata and file handling
- Add 150+ MDC rule files covering a wide range of programming languages, frameworks, and tools
- Include best practices, coding standards, and guidelines for technologies like Python, JavaScript, React, AWS, CI/CD, and more
- Implement consistent formatting and structure across rule files
- Add concluding sections with recommendations for maintainability, security, and performance
- Enhance project documentation with comprehensive technology-specific guidelines
- Create installer.py with robust rule installation and backup mechanisms
- Add support for installing, listing, and managing MDC rule files
- Implement flexible installation with force and backup options
- Include error handling, logging, and detailed rule metadata extraction
- Develop safe file copying and backup creation for existing rules
- Add utility functions for listing and managing installed rules
- Create downloader.py with robust file downloading and validation
- Add support for parallel downloads with rate limiting and retry mechanism
- Implement advanced URL and content validation for MDC rule files
- Include error handling, logging, and flexible configuration options
- Develop thread-safe download process with configurable concurrency
- Add content preview and hash verification for downloaded rules
- Create matcher.py with advanced library matching and relevance scoring
- Implement RuleMatcher class for intelligent library rule detection
- Add support for context-aware matching, tag similarity, and project context
- Include flexible rule matching with configurable scoring and caching
- Develop robust library categorization and metadata generation
- Support custom rules loading and efficient library mapping
- Create detailed scanner.py with advanced library and framework detection
- Add support for scanning package files, imports, Docker files, and GitHub Actions
- Implement multi-threaded scanning with configurable depth and caching
- Include extensive library detection for multiple programming languages and ecosystems
- Add robust import and framework pattern matching
- Implement flexible scanning with support for various package managers and project structures