NokiaTube | New address | Mode Phone | On high quality
Skip to content

Fix claude.ai marketplace sync: move plugin/bin to libexec, add icon - #129

Merged
adeelahmad merged 3 commits into
masterfrom
claude/project-thread-7590ji
Nov 22, 2026
Merged

adeelahmad merged 3 commits into
masterfrom
claude/project-thread-7590ji

Conversation

@adeelahmad

@adeelahmad adeelahmad commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Root cause. Adding adeelahmad/aloop as a marketplace on claude.ai fails sync with failed_content:

marketplace_sync_bin_directory_not_allowed: Plugin contains a top-level bin/ directory … claude.ai-hosted plugins may not ship bin/ executables

The local claude plugin validate doesn't check this rule.

Fix.

  • plugin/bin/ → plugin/libexec/. Every hook command, host adapter (OpenCode, dsh, Codex install), test, smoke script and doc follows.
  • PATH on Claude Code is unchanged. The ensure-tools SessionStart hook already wrote the plugin's script dir into CLAUDE_ENV_FILE, and it now writes libexec/, so aloop and the bare tool names still resolve in every Bash call.
  • The bind detectors (host-adapter, OpenCode) accept both bin/bind and libexec/bind.
  • plugin/.claude-plugin/icon.png (512×512): the plugin-directory profile flagged ICON_MISSING.
  • CI also runs claude plugin validate . --strict on the marketplace manifest.

Tests.

  • ensure-tools.test.py: asserts there is no plugin/bin/, and that the hook writes one idempotent export PATH=…/libexec: line to CLAUDE_ENV_FILE.
  • rename-compat.test.py: checks the icon's shape.
  • Local: every make test-hosts command passes; make conformance 82/82; claude plugin validate --strict --profile directory ./plugin passes.

Known follow-up. A project that ejected userspace before this change has reference/bin/… copies. After the upgrade those sit beside the new reference/libexec/… until aloop userspace reset.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FeZyj76Lmsc72D4cioNdac

claude plugin validate --profile directory flagged ICON_MISSING; ship
docs/brand/app-icon-512.png as plugin/.claude-plugin/icon.png, test it,
and validate the marketplace manifest in CI too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FeZyj76Lmsc72D4cioNdac
claude.ai marketplace sync fails with marketplace_sync_bin_directory_not_allowed
for any plugin that ships bin/. The scripts move to libexec/; every hook,
host adapter, test and doc follows. ensure-tools (SessionStart) already wrote
the plugin's script dir to CLAUDE_ENV_FILE, so bare names and `aloop` stay
on PATH on Claude Code; a test pins it and the absence of bin/.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FeZyj76Lmsc72D4cioNdac
@adeelahmad adeelahmad changed the title Plugin icon for the plugin directory; validate marketplace in CI Fix claude.ai marketplace sync: move plugin/bin to libexec, add icon Nov 22, 2026
@adeelahmad
adeelahmad merged commit dba5798 into master Nov 22, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants