Repository navigation
Conversation
The dashboard code moves out of cmd with no change in behavior: cmd/dash.go, lib/mcp_handler.go, lib/process_validator.go, the dash SysProcAttr helper, and the dash tests. - internal/dashboard imports cmd; cmd never imports the dashboard. cmd/dashboard_api.go exports the helpers the dashboard uses, and internal/dashboard/cli.go maps them to their old names so dash.go keeps its body. - main.go registers dash. A later change can build cronitor without the dashboard by dropping that import, and build crontab-dashboard as a second binary. - main_test.go checks that dash stays registered with its flags. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B4Z4Doj15mT9bCnvdKp5UB
cmd/crontab-dashboard builds the dashboard as its own program from the same commit as cronitor. It runs the dash command, so `crontab-dashboard --port 9100` behaves like `cronitor dash --port 9100` and accepts the same root flags. - The frontend is embedded by a new web package. web/static/README.md is committed so Go builds and tests without Node; the npm build keeps it. - cronitor still includes the dashboard; a later commit removes it. - The systemd restart lookup still finds cronitor-dashboard.service when the running binary is crontab-dashboard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B4Z4Doj15mT9bCnvdKp5UB
Each release has <os>_<arch> archives for cronitor and crontab-dashboard_<os>_<arch> archives for the dashboard. The updater now picks the asset for the running program, then updates the other program when it is in the same folder, so both stay at one version. - `cronitor update` updates a crontab-dashboard next to it and says so. - The dashboard's update button updates itself and the cronitor next to it. Before, it would have installed the cronitor archive over the dashboard. - The cronitor archive keeps its name, so older `cronitor update` versions keep working. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B4Z4Doj15mT9bCnvdKp5UB
The cronitor binary no longer contains the dashboard, its web assets, or the MCP server. `cronitor dash` finds crontab-dashboard (CRONTAB_DASHBOARD_BIN, then the folder that holds cronitor, then PATH) and execs `crontab-dashboard dash <args>`. Every argument passes through as typed, including root flags before `dash`, with the environment and standard streams. On Unix the dashboard keeps the PID, signals, and exit status, so systemd units and MCP configs need no change. When crontab-dashboard is missing, `cronitor dash` exits 1 with a command that installs the matching release next to cronitor: curl -fsSL .../releases/download/<version>/crontab-dashboard_<os>_<arch>.tar.gz | tar -xz -C <dir> It adds sudo when that folder is not writable. Windows gets the .zip URL. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B4Z4Doj15mT9bCnvdKp5UB
- Tests: the CLI jobs, including the two with the live API key, no longer install npm packages. A new dashboard job builds the frontend, runs tests/dashboard-smoke.sh, and packages one archive. - Release: the frontend builds once; a crontab-dashboard matrix with the same platforms as cronitor packages crontab-dashboard_<os>_<arch> archives with scripts/package-dashboard.sh; publish verifies both sets. The cronitor build step is unchanged apart from dropping Node. - tests/dashboard-smoke.sh checks the missing-dashboard message, that `cronitor --config X dash --port N` execs crontab-dashboard and serves the UI with auth, and a clean SIGTERM exit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B4Z4Doj15mT9bCnvdKp5UB
- README: how to install crontab-dashboard next to cronitor, that `cronitor dash` keeps working, and that `cronitor update` updates both. - MCP guide: the MCP server is part of the dashboard. - dockerfile: install crontab-dashboard from the latest release and start it directly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B4Z4Doj15mT9bCnvdKp5UB
tests/real-cron-dashboard.sh builds cronitor and crontab-dashboard against a mock API, starts the dashboard through `cronitor dash`, and checks two real cron ticks: 1. Monitoring on through the dashboard API wraps the job with `cronitor exec`; the job runs and sends run and complete pings. 2. Monitoring off restores the original line; the job runs with no pings. The real-cron workflow (e2e label) runs it after tests/real-cron.sh. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B4Z4Doj15mT9bCnvdKp5UB
The major version marks the move of the dashboard into crontab-dashboard. Users of `cronitor dash` must install it next to cronitor; the release notes and the `cronitor dash` error give the command. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B4Z4Doj15mT9bCnvdKp5UB
exec.LookPath on Windows only accepts files with an executable extension, so the fake dashboard needs .exe. Without it the launcher could not find it and exited the test binary. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B4Z4Doj15mT9bCnvdKp5UB
The dashboard registered its SIGINT/SIGTERM handler after starting the server, sleeping 500 ms, and opening the browser. A stop signal in that window killed it without a graceful shutdown (exit 143). It now registers the handler before the server starts. The smoke test sends SIGTERM as soon as the dashboard answers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B4Z4Doj15mT9bCnvdKp5UB
A standalone dashboard install should not need the cronitor command. `crontab-dashboard configure ...` and `crontab-dashboard update` now run those commands instead of starting the dashboard; update replaces the dashboard and the cronitor next to it. After first-run credentials are saved, the dashboard now says to run crontab-dashboard again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B4Z4Doj15mT9bCnvdKp5UB
Conflict in cmd/root.go: keep Version "34.0". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B4Z4DjiMGeBZ2vo5fDc63q
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.
The Crontab Guru Dashboard moves out of the
cronitorbinary into a second program,crontab-dashboard. Both are built from the same commit and released together. This replaces #64 and the separatecrontab-dashboardrepository: with one repo, the dashboard and the CLI always share the same crontab code, so there is no version skew to manage.What changes for users
cronitorno longer contains the dashboard, its web frontend, or its MCP server. Its build needs no Node or npm.cronitor dashis a launcher. It findscrontab-dashboard(CRONTAB_DASHBOARD_BIN, then the folder that holdscronitor, thenPATH) and execscrontab-dashboard dash <args>. All arguments, including root flags beforedash, the environment, and standard streams pass through. On Unix the dashboard keeps the PID, signals, and exit status, so systemd units and MCP configs need no change.crontab-dashboardis missing,cronitor dashexits 1 and prints a one-line install command for the matching release and thecronitorfolder (it addssudowhen the folder is not writable; Windows gets the.zipURL).cronitor updatealso updates acrontab-dashboardin the same folder. The dashboard's update button updates both. Before this change, that button would have installed thecronitorarchive over the dashboard.crontab-dashboard_<os>_<arch>.tar.gz(Windows.zip) for the same 9 platforms.cronitorarchives keep their names, so oldercronitor updateversions keep working.dockerfileinstalls both programs and startscrontab-dashboard.docs/releases/34.0.mdexplains the change.Commits
internal/dashboardwith no behavior change.internal/dashboardimportscmd, never the other way round;cmd/dashboard_api.goexports the helpers it uses.cmd/crontab-dashboard. The frontend is embedded by a newwebpackage;web/static/README.mdis committed so Go builds and tests without Node.cronitor dashbecomes the launcher;main.gostops importing the dashboard.tests/dashboard-smoke.sh. Release builds the frontend once and adds acrontab-dashboardmatrix (scripts/package-dashboard.sh); publish verifies both asset sets.tests/real-cron-dashboard.sh, run by thee2elabel.Testing
go test ./...passes.go vetand builds pass for linux, darwin, windows, and freebsd. Thego vetcomposite-literal warnings incmd/root.goalso exist on master.cronitor, and prints the missing-dashboard message per platform. The updater picks each binary's asset and updates the sibling binary, in both directions; a mock release server covers this.crontab-dashboardrunsdashby default.tests/dashboard-smoke.shpassed locally with the real frontend build.tests/real-cron-dashboard.shpassed locally under real cron. It turns monitoring on through the dashboard API and checks that the line is wrapped and that run and complete pings arrive. It then turns monitoring off and checks that the line is restored and no pings are sent.file://in place of the GitHub URL. After that,cronitor dashfound the dashboard.actionlinthere; I only checked that the YAML parses.Before merging
crontab-dashboard_*assets, the install command and thedockerfilepoint at files that do not exist yet.cronitorio/cronitor(docs/src/pages/docs/using-cronitor-cli.mdand the guides that mentioncronitor dash) need a separate update.Generated by Claude Code