ref(scheduler): Extract scheduler plugin package#429
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 bb25b16. Configure here.
Move scheduler tools, state, prompt framing, and heartbeat hooks into a dedicated @sentry/junior-scheduler package. Core now exposes the trusted plugin state primitives the scheduler needs and apps opt in with schedulerPlugin(). Update docs, tests, eval harness wiring, and release metadata for the new package. Co-Authored-By: GPT-5 Codex <codex@openai.com>
Restore Slack conversation id normalization in the extracted scheduler tools and update tests for explicit scheduler registration. Remove the scheduler-specific plugin-state key mapping from core so trusted plugin state remains a generic namespace primitive. Co-Authored-By: GPT-5 Codex <codex@openai.com>
Allow extracted trusted plugins to declare legacy state prefixes during migration. This keeps existing scheduler records visible after the scheduler moves behind plugin state without adding scheduler-specific storage branches to core. Co-Authored-By: GPT-5 Codex <codex@openai.com>
Keep the scheduler package order consistent across release metadata. Co-Authored-By: GPT-5 Codex <codex@openai.com>
Keep legacy scheduler state access scoped to the scheduler plugin namespace so the migration path does not expose arbitrary raw state prefixes. Clarify heartbeat docs now that scheduled tasks are enabled by registering the scheduler plugin explicitly. Co-Authored-By: GPT-5 Codex <codex@openai.com>
59dc082 to
3dda7e0
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.

Move scheduler behavior into a dedicated
@sentry/junior-schedulertrusted plugin package. Apps now opt into scheduled tasks withschedulerPlugin(), while core keeps the generic heartbeat, dispatch, and plugin-state primitives.Plugin Boundary
The scheduler package owns schedule tools, recurrence math, prompt framing, durable scheduler state, and heartbeat dispatch.
@sentry/juniorno longer registers scheduler hooks by default.Trusted Plugin API
Expose plugin state locking, set-if-not-exists writes, and
AgentPluginToolInputErrorso scheduler can preserve its idempotency and model-repairable validation behavior outside core.Release And Docs
Add the scheduler package to workspace dependencies, release metadata, CI packaging, docs, tests, and eval harness wiring.