Repository navigation
Vendor the server code into the client plugin folder - #54
Merged
Merged
Conversation
A directory install receives only client-plugin/, so the launcher could not import index_graph. The folder now carries server/src/index_graph, the same files the source ZIP places there. build_client_package.py --sync-vendored rewrites it from src/, the builder excludes it from plugin inputs so nothing is counted twice, and a test fails on any drift and names the sync command. The launcher drops the fallback to the repository's src and exits 1 with a one-line message when the copy is missing. New tests launch the folder alone with the exact Claude command and check the 512-file and 256 KiB limits. The icon moves to the 512 px PNG, since the 1024 px file is 273 KiB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
client-plugin/server/src/index_graph/: 120 vendored files, the same selection and bytes the source ZIP places underserver/src/.scripts/build_client_package.py:vendored_payload()andplugin_entries()reuse the builder's ownentries()selection;--sync-vendoredrewrites the folder fromsrc/and deletes stale files. Build inputs exclude the vendored copy, so the ZIP takesserver/srcfromsrc/once.client-plugin/server/serve.py: no fallback to the repository'ssrc. A missing copy printsindex: the server code is missing from the plugin folder. Reinstall the plugin.and exits 1.-I -S -Bunchanged.client-plugin/.claude-plugin/icon.png: now the 512 px canon PNG (99 KiB). The 1024 px file is 273 KiB, over the 256 KiB per-file limit, and lossless recompression only reached 268 KiB.Tests
client-plugin/, runs the exact.mcp.jsoncommand with${CLAUDE_PLUGIN_ROOT}and${user_config.*}substituted, checksinitializeandtools/list, then removesserver/srcand checks the one-line message and exit 1.router_jobs.py41 KiB), no.gitattributesin the folder.python -m pytest: 937 passed. Manual check from a fresh clone of this branch with only the plugin folder returned 6 tools.claude plugin validatepasses with the five directory-field warnings.🤖 Generated with Claude Code