Repository navigation
plugins: detect the bundle format and record it in Plugin status - #694
Closed
danielle-mustillo wants to merge 2 commits into
Closed
danielle-mustillo wants to merge 2 commits into
danielle-mustillo wants to merge 2 commits into
Conversation
This was referenced Sep 25, 2026
Detect whether a bundle is a Claude plugin or an Agent Plugins bundle, using the same manifest rules as kagent. Record the format and a scan version in Plugin status. A bundle with no valid manifest is now rejected. Raising PluginScanVersion makes stored Plugins rescan.
danielle-mustillo
force-pushed
the
feat/plugin-format-detection
branch
from
September 25, 2026 15:04
e76beca to
cf38b6d
Compare
danielle-mustillo
marked this pull request as ready for review
September 25, 2026 22:44
|
This pull request has been marked as stale due to no activity in the last 14 days. It will be closed in 3 days unless it is tagged "no stalebot" or other activity occurs. |
|
This pull request has been closed due to inactivity. |
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.
Description
The registry now detects which layout a plugin bundle uses, and records it in
Plugin.status.Why: A plugin bundle has one of two layouts.
.claude-plugin/plugin.json.plugin.jsonin the root.The registry reads only the Claude path today. So an Agent Plugins bundle gets no manifest and still becomes Ready. kagent checks bundles more strictly at startup, so an accepted Plugin can still fail later.
What changed:
Plugin.statusgets two fields.formatholds the detected layout:claude-pluginoragent-plugins.scanVersionholds the version of the detection rules. It starts at 1.internal/registry/plugins/formatdetects the layout. It uses the same rules as kagent'sloadManifest(feat(harness): load Claude-format plugins whole only on the Claude harness kagent-dev/kagent#2875).plugin.jsonwith the Agent Plugins$schemaisagent-plugins. It wins when both manifests exist.plugin.jsonwith any other$schema, or none, is rejected..claude-plugin/plugin.jsonisclaude-plugin.name. Known keys must have the right JSON type. Other keys are ignored.SourceInvalid. The message names the file and the rule.scanVersionis not current. So raising the version rescans every stored Plugin.status.manifestnow comes from the selected manifest.openapi.yamlandui/lib/api/types.gen.tsare regenerated.Size: Code is +346/−93 lines. Tests are +426/−29 lines. Generated files are +7 lines.
Related issues: Part of #626. #695 builds on this PR.
Change Type
/kind feature
Changelog
Additional Notes
skills/folder and no manifest used to be Ready. Now it is Ready=False.make test-unit,make lint, andmake test-e2e E2E_SUITE=registrypass locally.