Pre-launch — Gluecron is in final validation. Public signups and git hosting for non-owner users open after launch review.
CodeIssuesDiscussionsWikiPull RequestsProjectsCommitsActionsReleasesContributorsPulse● GatesSecuritySettingsDeploymentsPipelineInsightsAgents✨ Explain✨ Ask AI✨ Workspace✨ Spec✨ Tests▓ Debt Map✨ NL Search🏛 Archaeology
Blame · Line-by-line history

0041_sleep_mode.sql

Each line is annotated with the commit that last touched it. Click any SHA to jump to that commit and see the surrounding change.

0041_sleep_mode.sqlBlame14 lines · 1 contributor
46d6165Claude1-- Block L1 — Sleep Mode.
2--
3-- Per-user toggle that, when on, bumps the email digest from weekly to
4-- DAILY and reframes it as "what Claude shipped while you slept".
5-- See `src/lib/sleep-mode.ts` for the composer and
6-- `src/lib/autopilot.ts sleep-mode-digest` task for the dispatcher.
7--
8-- Strictly additive. The existing `notify_email_digest_weekly` +
9-- `last_digest_sent_at` columns (migration 0024) are reused; we only add
10-- the two new toggle columns below.
11
12ALTER TABLE "users"
13 ADD COLUMN IF NOT EXISTS "sleep_mode_enabled" boolean NOT NULL DEFAULT false,
14 ADD COLUMN IF NOT EXISTS "sleep_mode_digest_hour_utc" integer NOT NULL DEFAULT 9;