Bug Fix
Fixes #43 — Plugin installation failed on macOS with ENAMETOOLONG error due to recursive self-nesting in the plugin cache.
What happened
When marketplace.json had "source": "./", Claude Code cached the entire repo — including marketplace.json itself. The cached copy triggered another cache cycle, creating an infinite loop:
~/.claude/plugins/cache/autoresearch/1.7.3/autoresearch/1.7.3/autoresearch/1.7.3/... (45+ levels deep)
This pushed file paths to 1021+ characters, exceeding macOS's 1024-character path limit.
What we fixed
Isolated the plugin distribution into a dedicated claude-plugin/ subdirectory that doesn't contain marketplace.json, breaking the recursion cycle:
Before: marketplace.json → source: "./" → caches entire repo → INFINITE LOOP
After: marketplace.json → source: "./claude-plugin" → caches only plugin files → STOPS
Changes
- Restructured plugin packaging — moved distribution files to isolated
claude-plugin/directory - Updated
marketplace.json— source from"./"to"./claude-plugin" - Added
.gitignore— repo previously had none - Removed duplicate directories — root
commands/andskills/replaced byclaude-plugin/ - Updated release script —
release.shnow syncs toclaude-plugin/instead of root - Updated all documentation — README, CONTRIBUTING, guide, release docs with new paths
Upgrade
/plugin update autoresearchOr reinstall:
/plugin marketplace add uditgoenka/autoresearch
/plugin install autoresearch@autoresearchFull Changelog: v1.7.3...v1.7.4