Skip to content

Releases

v0.3.6

Choose a tag to compare

@kevincrabbe kevincrabbe released this 14 Jan 22:03

Bug fixes identified in code review:

  • Fix extension mismatch: remove command now correctly finds files created by sync
  • Circular alias detection: Prevents infinite recursion when aliases point to each other
  • Double path fix: add-all no longer creates duplicate paths like kc:dir/dir/file.md
  • @ in filenames: Files like notes@2024.md are 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-all now validates rule names and skips invalid ones with a warning

v0.3.5

Choose a tag to compare

@kevincrabbe kevincrabbe released this 14 Jan 17:49
  • 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

Choose a tag to compare

@kevincrabbe kevincrabbe released this 14 Jan 17:42

Fix bare alias source format in add-all (kc -> kc:file.md not kc/file.md)

v0.3.3

Choose a tag to compare

@kevincrabbe kevincrabbe released this 14 Jan 09:21

Make add-all recursive - now finds .md files in subdirectories

v0.3.2

Choose a tag to compare

@kevincrabbe kevincrabbe released this 14 Jan 09:11

Support bare alias names without colon:

# Now both work:
ruleshare add-all kc
ruleshare add-all kc:

v0.3.1

Choose a tag to compare

@kevincrabbe kevincrabbe released this 14 Jan 09:06

Fix ESLint error in test files

v0.3.0

Choose a tag to compare

@kevincrabbe kevincrabbe released this 14 Jan 09:03

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

Choose a tag to compare

@kevincrabbe kevincrabbe released this 14 Jan 08:42

Split test files to comply with ESLint max-lines-per-function rule (max 30 lines per function)

v0.2.0

Choose a tag to compare

@kevincrabbe kevincrabbe released this 14 Jan 08:31

Security Fixes

  • Shell injection vulnerability fixed - Now uses execFile instead of exec for gh CLI calls
  • Path traversal protection - Rule names validated to prevent writing outside shared directory
  • Reserved alias validation - Cannot use github, http, https, file as 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 / -v flag
  • -h flag 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

Choose a tag to compare

@kevincrabbe kevincrabbe released this 14 Jan 06:13

Documentation update - added private repo support to README.