Repository navigation
Releases
Releases · kevincrabbe/ruleshare
v0.3.6
Bug fixes identified in code review:
- Fix extension mismatch:
removecommand now correctly finds files created bysync - Circular alias detection: Prevents infinite recursion when aliases point to each other
- Double path fix:
add-allno longer creates duplicate paths likekc:dir/dir/file.md - @ in filenames: Files like
notes@2024.mdare no longer misinterpreted as having a git ref - Better error handling: JSON parse errors from GitHub API now show helpful messages
- Rule name validation:
add-allnow validates rule names and skips invalid ones with a warning
v0.3.5
- Preserve directory hierarchy in rule names (e.g., backend/database instead of database)
- Skip README.md files when running add-all
- Create subdirectories automatically during sync
v0.3.4
Fix bare alias source format in add-all (kc -> kc:file.md not kc/file.md)
v0.3.3
Make add-all recursive - now finds .md files in subdirectories
v0.3.2
Support bare alias names without colon:
# Now both work:
ruleshare add-all kc
ruleshare add-all kc:v0.3.1
v0.3.0
Add add-all command to add all .md files from a source at once:
ruleshare add-all github:owner/repo
ruleshare add-all kc:v0.2.2
Split test files to comply with ESLint max-lines-per-function rule (max 30 lines per function)
v0.2.0
Security Fixes
- Shell injection vulnerability fixed - Now uses
execFileinstead ofexecforghCLI calls - Path traversal protection - Rule names validated to prevent writing outside shared directory
- Reserved alias validation - Cannot use
github,http,https,fileas aliases
Bug Fixes
- Exit codes now properly return non-zero on errors
- Removed redundant config reads during sync
- Support any file extension (not just
.md) - JSON parse errors now have clear error messages
- Status command marks fetch errors as "outdated" instead of "current"
New Features
--version/-vflag-hflag for help- Sync summary message showing counts (created, updated, unchanged, failed)
UX Improvements
- ASCII markers
[x]/[ ]instead of Unicode checkmarks for terminal compatibility - "Syncing rules..." message now appears after config validation
Testing
- Added vitest with unit tests for resolver and validation
v0.1.2
Documentation update - added private repo support to README.