Commit Graph
79 Commits
Author SHA1 Message Date
LongSimple 2f2851dbd1 update readme 2025-03-09 13:05:28 -04:00
LongSimple 52bbd80a3e Bump version to 0.5.2 2025-03-09 12:48:47 -04:00
LongSimple 5c4cc2b692 remove test downloader 2025-03-09 12:47:57 -04:00
LongSimple 4a56021d3d Refactor to use GitHub API for downloading rules instead of raw content URLs 2025-03-09 12:46:02 -04:00
LongSimple 371b8505dd Fix file integrity check issues in rule downloads 2025-03-09 12:37:24 -04:00
sanjeed5 157e98f7de Bump version to 0.5.1 2025-03-04 08:26:32 +05:30
sanjeed5 b98e8095b7 add build, twine 2025-03-04 08:26:17 +05:30
sanjeed5 78bf09216d add ph 2025-03-04 01:04:35 +05:30
sanjeed5 f544224695 add logo and screenshot 2025-03-04 01:04:04 +05:30
sanjeed5 ef41b4d53d add ds_store 2025-03-04 00:38:54 +05:30
sanjeed5 3421ce5436 add gif 2025-03-04 00:38:12 +05:30
sanjeed5 1b05cd9605 cli cast 2025-03-04 00:37:17 +05:30
sanjeed5 c40762e909 Remove src/rules.json path from library data loading
- 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
2025-03-04 00:26:09 +05:30
sanjeed5 190bce3db9 Simplify rules.json copying in setup.py
- 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
2025-03-04 00:25:56 +05:30
sanjeed5 44ce822f54 Enhance default configuration handling in main CLI script
- 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
2025-03-04 00:25:27 +05:30
sanjeed5 7f71c5eaa4 rename to deprecated 2025-03-03 23:40:27 +05:30
sanjeed5 7a6f5a704d add disclaimers 2025-03-03 23:37:46 +05:30
sanjeed5 6c5d8f497d v5 2025-03-03 23:30:23 +05:30
sanjeed5 46457363c2 add cli tool mention 2025-03-03 23:27:14 +05:30
sanjeed5 5948b203b0 Update README with comprehensive project documentation and usage guide
- Restructure README for better readability and clarity
- Add detailed instructions for setting up environment variables
- Expand usage examples and CLI options
- Include new section on adding library rules
- Add project structure overview
- Introduce CLI tool documentation
- Update configuration and setup guidance
2025-03-03 23:26:38 +05:30
sanjeed5 ff0eb34a2b Add source of truth documentation for rules.json in cursor-rules-cli
- 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
2025-03-03 23:26:25 +05:30
sanjeed5 587d8a5696 Enhance rules.json loading with improved path resolution and logging
- 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
2025-03-03 23:26:09 +05:30
sanjeed5 ef5119d24b Improve rules.json handling in setup.py
- 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
2025-03-03 23:25:51 +05:30
sanjeed5 30ae9c6391 make it more readable 2025-03-03 23:13:29 +05:30
sanjeed5 f4e495b2e0 Update README with more user-friendly and comprehensive documentation
- 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
2025-03-03 23:10:19 +05:30
sanjeed5 2cdc5f61d4 readme is enough 2025-03-03 23:09:39 +05:30
sanjeed5 3260a9882f Enhance library scanning workflow with direct input support
- 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
2025-03-03 23:07:55 +05:30
sanjeed5 a6b16d9ea9 Add library direct input option to CLI
- 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
2025-03-03 23:07:44 +05:30
sanjeed5 1edd6192ab Change .cursor directory to project-local by default
- 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
2025-03-01 00:01:55 +05:30
sanjeed5 e4e38ffca6 Refactor rule display and installation logging
- 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
2025-02-28 23:59:31 +05:30
sanjeed5 34046a1da0 Add publishing configuration and package metadata for PyPI distribution
- 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
2025-02-28 19:43:17 +05:30
sanjeed5 2ed7dd1030 Update setup.py for cursor-rules package
- 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
2025-02-28 19:42:43 +05:30
sanjeed5 d96d9ab8c8 Add comprehensive MDC rule files for various technologies
- 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
2025-02-28 19:31:47 +05:30
sanjeed5 69ee481328 Add comprehensive utils module for Cursor Rules CLI
- Create utils.py with extensive helper functions for file operations and security
- Implement utility functions for configuration management, file hashing, and content validation
- Add rate limiting, URL validation, and content sanitization mechanisms
- Develop robust library and project context detection utilities
- Include caching, file preview, and advanced library matching support
- Enhance security with thorough content and URL validation checks
2025-02-28 19:31:02 +05:30
sanjeed5 0319c4a9ee Implement comprehensive rule installer module for MDC rules
- 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
2025-02-28 19:30:52 +05:30
sanjeed5 6ce2d9f3e2 Implement comprehensive rule downloader module for MDC 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
2025-02-28 19:30:43 +05:30
sanjeed5 b7e9e9e943 Implement comprehensive library matching module for MDC 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
2025-02-28 19:30:32 +05:30
sanjeed5 428edbc753 Implement comprehensive project scanner module
- 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
2025-02-28 19:30:20 +05:30
sanjeed5 4c2997abee Implement main CLI entry point for cursor-rules-cli
- Create comprehensive main.py with full CLI functionality
- Add robust argument parsing with extensive configuration options
- Implement core scanning, matching, and rule installation workflow
- Include advanced logging with colored output
- Support custom repositories, configuration saving, and flexible rule selection
- Add detailed help and usage instructions for CLI commands
2025-02-28 19:30:06 +05:30
sanjeed5 8321f90916 Add setup.py for cursor-rules-cli package
- Create setup script for packaging and distribution
- Define package metadata, dependencies, and entry points
- Configure package version and long description
- Set up console script entry point for CLI tool
- Specify Python version requirements and package classifiers
2025-02-28 19:29:53 +05:30
sanjeed5 5c484342b7 Initialize Cursor Rules CLI project structure
- Add README with comprehensive usage instructions and CLI options
- Create user guide documentation detailing tool features and usage
- Add initial `__init__.py` with version information
- Remove previous planning document, transitioning from planning to implementation phase
2025-02-28 19:29:35 +05:30
sanjeed5 b581d40350 add licences 2025-02-28 19:26:20 +05:30
sanjeed5 499aec50a5 Refactor project structure and dependencies
- Update pyproject.toml with more flexible Python version support and updated dependencies
- Revise README to provide clearer project overview and usage instructions
- Enhance configuration and generation scripts with improved path handling and environment validation
- Add support for regenerating all libraries and debug mode
- Improve error handling and logging
- Streamline project setup and deployment processes
2025-02-28 19:21:15 +05:30
sanjeed5 be7f16ec3d fix nextjs 2025-02-28 19:14:53 +05:30
sanjeed5 0fc7cc0106 move 2025-02-28 19:14:34 +05:30
sanjeed5 3d8faed9b2 add example 2025-02-28 19:10:56 +05:30
sanjeed5 4e4ef0a9a0 add plan 2025-02-28 14:31:30 +05:30
sanjeed5 fb2b48893d rules.json 2025-02-28 14:26:10 +05:30
sanjeed5 0df3cf0d8b flat dir structure 2025-02-28 14:14:53 +05:30
sanjeed5 4c15c57abc Migrate to flat library structure with tag-based organization
Update project to use a new, more flexible library organization approach:
- Replace nested category/subcategory structure with a flat JSON format
- Introduce tag-based library classification
- Update generate_mdc_files.py to support new library structure
- Modify README to reflect new organization
- Update progress tracking and library processing logic

Simplify library management and improve categorization flexibility by using a more dynamic tagging system
2025-02-28 14:14:19 +05:30