← back to AbramsEgo
maxit-tasks/07-cron-launchd-panel.md
15 lines
# AbramsEgo maxit-07 — cron / launchd status panel (SPEC panel 4)
Read ../SPEC.md. Build the scheduled-jobs panel. Keep edits MINIMAL and in clearly
delimited regions (a merge will follow) — add ONE new route + ONE new panel only.
1. server.js: add authed `GET /api/crons` — run `launchctl list` and parse Steve's
`com.steve.*` jobs (label, PID or `-`, last exit code); fold a compact list into the snapshot.
2. public/index.html: add a "Cron / launchd" panel listing each job with a status pill
(running=green PID / idle=grey / nonzero-exit=red). Each row is an admin card → show
created/last-run date+time per Steve's hard rule (🕓 toLocaleString, ISO in title=).
3. Verify with `node --check server.js` (syntax only — do NOT run the server / pm2 restart;
node_modules is absent in this worktree). Commit `feat(cron-launchd): scheduled-jobs panel`.
Local only. No deploy/publish.