Skip to content

feat(example): Enable scheduler plugin introspection#606

Open
dcramer wants to merge 5 commits into
mainfrom
add-example-scheduler-jr-rpc-plugins
Open

feat(example): Enable scheduler plugin introspection#606
dcramer wants to merge 5 commits into
mainfrom
add-example-scheduler-jr-rpc-plugins

Conversation

@dcramer

@dcramer dcramer commented Jun 15, 2026

Copy link
Copy Markdown
Member

The example app now installs the scheduler plugin, builds it before example dev/build, and documents the SQL database env required by scheduler-backed plugin storage. jr-rpc also gains a plugins list command so the agent can inspect installed plugins, and local chat hydrates the app's plugins.ts set before running so apps/example local QA sees the same plugin catalog as server wiring.

Verified with focused jr-rpc and example build-discovery tests, example typecheck, the junior build, skill validation, and direct local QA from apps/example confirming Scheduler is installed. The full @sentry/junior typecheck still fails on existing duplicate @sentry/junior-plugin-api/drizzle-orm type identity errors in unrelated test files.

@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview, Comment Jun 15, 2026 10:29pm

Request Review

dcramer and others added 2 commits June 15, 2026 15:14
Add the scheduler plugin to the example app and teach jr-rpc to list installed plugins so Junior can inspect its own runtime catalog. Local chat now hydrates the app plugin set before running, which keeps apps/example local QA aligned with server plugin wiring.

Update the example env docs and build guards for scheduler's SQL-backed package, and cover the new jr-rpc command plus example build discovery in focused tests.

Co-Authored-By: GPT-5 Codex <codex@openai.com>
Configure the example discovery suite with the SQL URL required by scheduler's database-backed plugin registration. Give PGlite-backed upgrade migration tests enough runtime budget under coverage.

Co-Authored-By: GPT-5 Codex <codex@openai.com>
Comment thread packages/junior/src/cli/chat.ts
dcramer and others added 2 commits June 15, 2026 15:19
Local chat now applies the same SQL requirement check as app startup before registering hook plugins. This keeps scheduler-backed plugin sets from running without DATABASE_URL or JUNIOR_DATABASE_URL.

Co-Authored-By: GPT-5 Codex <codex@openai.com>
Bind a deterministic Junior SQL URL for package tests so scheduler-backed app imports do not need suite-local database setup.

Co-Authored-By: GPT-5 Codex <codex@openai.com>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

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 0dd6dca. Configure here.

Comment thread packages/junior/src/cli/chat.ts
Use jiti for local chat plugin loading so generated plugins.ts files work from the published CLI without relying on an external TypeScript loader.

Co-Authored-By: GPT-5 Codex <codex@openai.com>
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