Skip to content

feat(plugins): Add trusted runtime hooks#417

Merged
dcramer merged 1 commit into
mainfrom
dcramer/plugin-runtime-hooks
May 25, 2026
Merged

feat(plugins): Add trusted runtime hooks#417
dcramer merged 1 commit into
mainfrom
dcramer/plugin-runtime-hooks

Conversation

@dcramer
Copy link
Copy Markdown
Member

@dcramer dcramer commented May 25, 2026

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-msg hook, 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-api contains the public defineJuniorPlugin helper 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

@vercel
Copy link
Copy Markdown

vercel Bot commented May 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview, Comment May 25, 2026 6:39pm

Request Review

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ 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.

Comment thread packages/junior-github/index.js Outdated
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]>
@dcramer dcramer force-pushed the dcramer/plugin-runtime-hooks branch from 4c6f597 to a6aae31 Compare May 25, 2026 18:38
@dcramer dcramer marked this pull request as ready for review May 25, 2026 18:55
@dcramer dcramer merged commit 921fb7f into main May 25, 2026
16 checks passed
@dcramer dcramer deleted the dcramer/plugin-runtime-hooks branch May 25, 2026 19:15
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.

1 participant