feat(plugins): Add trusted runtime hooks#417
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit b6a4606. Configure here.
b6a4606 to
2bc9237
Compare
2bc9237 to
4c6f597
Compare
Add a lightweight plugin API package and runtime hook runner so trusted app plugins can prepare sandboxes and adjust tool execution before commands run. Wire createApp to register trusted plugin instances while preserving Nitro-bundled plugin catalogs. Move GitHub commit attribution into the GitHub plugin by installing a prepare-commit-msg hook, configuring sandbox Git defaults, and injecting bot author plus requester coauthor identity before bash commands. Refs GH-414 Co-Authored-By: GPT-5 Codex <[email protected]>
4c6f597 to
a6aae31
Compare
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.

Add trusted plugin hooks so provider packages can force deterministic runtime behavior from app code instead of relying on skill prose.
createApp({ plugins: [...] })now registers trusted plugin instances while preserving Nitro-bundled manifest and skill package discovery.GitHub Attribution
The GitHub plugin now installs a
prepare-commit-msghook, configures sandbox Git defaults, and injects bot author plus requester coauthor identity before bash commands. This lets the GitHub skill drop manual attribution instructions.Plugin API Package
@sentry/junior-plugin-apicontains the publicdefineJuniorPluginhelper and narrow hook context types so plugin packages do not depend on all of@sentry/junior.Docs and Release Wiring
The plugin spec, setup docs, package READMEs, generated API reference, and release package lists now document and publish the new plugin API.
Refs GH-414