Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
335 changes: 51 additions & 284 deletions .cursorrules

Large diffs are not rendered by default.

146 changes: 0 additions & 146 deletions AUTOMATED_REGISTRY_GUIDE.md

This file was deleted.

9 changes: 7 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
### Steps for every plugin change:
1. Make your code changes in `plugins/<plugin-id>/`
2. Bump `version` in `plugins/<plugin-id>/manifest.json` (semver: major.minor.patch)
3. Run `python update_registry.py` to sync `plugins.json`
4. Commit both the plugin changes AND the updated `plugins.json`
3. Commit — the pre-commit hook automatically runs `update_registry.py` and stages `plugins.json`

> **Note:** The pre-commit hook only triggers when a `plugins/*/manifest.json` is staged. If it's not installed, run `cp scripts/pre-commit .git/hooks/pre-commit` to set it up.

### Version bump guidelines:
- **Patch** (1.0.0 → 1.0.1): Bug fixes, minor text changes
Expand Down Expand Up @@ -44,3 +45,7 @@ Third-party plugins keep their own `repo` URL and empty `plugin_path`.
- `python update_registry.py` — Update plugins.json from manifests
- `python update_registry.py --dry-run` — Preview without writing
- `scripts/archive_old_repos.sh` — Archive old individual repos (one-time, use `--apply`)

## Git Hooks
- `scripts/pre-commit` — Auto-syncs `plugins.json` when manifest versions change
- Install: `cp scripts/pre-commit .git/hooks/pre-commit`
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,23 @@ ledmatrix-plugins/
...
```

### Setup

Install the git pre-commit hook so `plugins.json` stays in sync automatically:

```bash
cp scripts/pre-commit .git/hooks/pre-commit
```

### Updating Plugin Versions

After making changes to a plugin:

1. Bump `version` in the plugin's `manifest.json`
2. Run `python update_registry.py` to sync `plugins.json`
3. Commit and push both changes
2. Commit — the pre-commit hook automatically syncs `plugins.json`

```bash
# Manual alternative (if hook isn't installed):
python update_registry.py # Update plugins.json
python update_registry.py --dry-run # Preview changes
```
Expand Down
Loading