Repository navigation
feat(lib): Expose Agent Plugin resolution to other hosts - #201
Draft
sentry-junior[bot] wants to merge 3 commits into
Draft
sentry-junior[bot] wants to merge 3 commits into
sentry-junior[bot] wants to merge 3 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Expose plugin manifest validation, source discovery, and resolution from @sentry/dotagents-lib so hosts other than the dotagents CLI can consume Agent Plugins without importing private CLI modules. The lib now owns plugins/schema, discovery, resolvePlugin, and installed-bundle loading. The CLI keeps install, provenance markers, lockfile entries, target selection, compatibility warnings, and runtime writers. resolvePlugin in the CLI is a thin wrapper that adds targets and compatibility warnings to the lib result. No CLI behavior change. Co-Authored-By: Greg Pstrucha <greg.pstrucha@sentry.io>
gricha
force-pushed
the
feat/lib-plugin-resolution
branch
from
October 2, 2026 06:53
0d8a076 to
feebc91
Compare
When a plugin directory and a symlink alias resolve to the same path, dedupe kept whichever readdir returned first. Within one origin, keep the physical directory, then the lower path, so candidate paths are stable.
This branch was successfully deployed
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.
Other hosts can now resolve Agent Plugins through
@sentry/dotagents-libwithout importing private CLI files. The public API returns the validated bundle and source commit, and exposes manifest, MCP, and marketplace parsing. The dotagents CLI continues to own installation, provenance, target selection, and client config. Junior can use this for its skill-only plugin work in getsentry/junior#1444; Junior still needs to persist selected bundles and connect their skills to its loader.This is rebased on 3.3.0, including the root marketplace fix. Named
discoverPluginscalls now return only matches. The CLI checks the full catalog when a requested name misses, preserving its plugin-first error instead of adding a bundled skill.verify-packinstalls the library alone and exercises its public resolver and skill discovery before installing the CLI package.Verified 1,161 tests, lint, typecheck, build, package verification, and 11 real plugin lifecycles in Docker. The combined plugin smoke script still hits the existing Copilot enabled-state assertion reproduced on unchanged main.