npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@sentry/junior-scheduler

v0.128.0

Published

The scheduler plugin stores user-created schedules and dispatches due work into Junior's durable agent runtime.

Readme

@sentry/junior-scheduler

The scheduler plugin stores user-created schedules and dispatches due work into Junior's durable agent runtime.

Task Model

  • A scheduled task records its creator, execution actor, Slack destination, prompt text, timezone-aware schedule, recurrence, credential mode, status, and next-run state.
  • creatorIdentityId is the authoritative creator reference used for personal authorization and indexed personal listing.
  • SQL schemas and migrations are authoritative for persistence.
  • Model-facing tools accept structured schedule intent. The scheduler resolves relative delays and calendar fields against its server clock and timezone, computes nextRunAtMs, and stores the canonical schedule. Execution does not reinterpret the original natural-language request.
  • Relative delays are elapsed durations. Calendar schedules use local wall-clock time: nonexistent recurring times are skipped, nonexistent one-off times are rejected, and repeated times use their first instant.
  • Multi-week recurrences use Monday-based calendar weeks; startDate is the lower bound and its containing week is the first active week.
  • Create tool-call identities produce stable task ids so retrying one committed tool invocation returns the existing task instead of duplicating it.
  • Updates and deletion invalidate obsolete pending run times.

Dispatch

  • Heartbeat claims a bounded number of due runs.
  • Claiming and completion transitions are atomic and safe to retry.
  • Each run dispatches with explicit source, destination, creator attribution, execution actor, metadata, and idempotency identity.
  • Scheduled dispatch replies carry compact destination-visible attribution; core owns platform footer rendering.
  • A deleted, paused, or rescheduled task is skipped when its claimed run no longer matches current task state.
  • Dispatch completion, failure, or blocking updates both the run and the task's next-run state.
  • Missed recurring work advances according to the stored calendar rather than creating an unbounded catch-up burst.

Authority

  • Creation requires the active Slack actor and destination.
  • Tasks make the creator's connected credentials available by default when scheduled work needs user-bound authorization. The creator may require system credentials instead, and creator credential use works in DMs or channels.
  • Task updates may change credential availability. Only the creator may enable or re-enable creator mode. Any conversation manager may disable it, and another user's executable task edit clears it; schedule, status, and run-now changes preserve it.
  • Scheduled execution remains a system actor. At dispatch, creator mode derives a user credential subject bound to the exact scheduler task; interactive OAuth remains disabled.
  • Stored creator attribution grants no broader task-management or execution authority.
  • Slack tool management remains scoped to the active Slack context. The dashboard may list and delete a user's own tasks across linked identities.

Operations

The plugin exposes create, update, delete, list, and run-now tools plus bounded operational reporting. The dashboard exposes a searchable Scheduled tasks user page containing non-deleted tasks created by the signed-in user. A user may delete those tasks from the page.

Generate schema changes with pnpm --filter @sentry/junior-scheduler db:generate.

Follow ../../policies/serverless-background-work.md, ../../policies/context-bound-systems.md, and ../junior-plugin-api/README.md.