Daily Command Set
pnpm test:e2e for auth/public/UI-routing changes.
Use DISABLE_BACKGROUND_JOBS=true for local UI smoke tests against shared or
production-like credentials so the backend does not process Sheets sync queues,
two-way Sheets imports, reminders, or recurring task checks during validation.
Production Render does not set this flag.
Required Merge Gates
- typecheck passes
- relevant tests pass
- docs updated in same change
- risk note and rollback note included
drdj.me Shortener Development
The standalone shortener uses the same backend data model as DealDash, but gives agents a tiny URL/photo short-link surface:- API route:
/server/routes/shortener-v1.ts - Shared logic:
/server/lib/short-links.ts - MCP server:
/plugins/drdj-shortener/scripts/server.ts - Skill:
/plugins/drdj-shortener/skills/drdj-shortener/SKILL.md - Dashboard:
/client/src/pages/Links.tsx - Public landing page:
/client/src/pages/marketing/AiLinkShortener.tsx
/migrations/extend-shortener-for-ai-agents.sql before real
/api/shortener/v1/* traffic. The migration adds shortener ownership,
customization, status, privacy-safe analytics, and agent metadata fields.
Useful environment variables:
SHORT_LINK_DOMAINSHORTENER_GUEST_CREATE_RATE_LIMITSHORTENER_GUEST_DEFAULT_EXPIRY_DAYSDRDJ_SHORTENER_BASE_URLDRDJ_SHORTENER_ACCESS_TOKENDRDJ_SHORTENER_CHANNELDRDJ_SHORTENER_ACTOR_ID
Branch and Scope Rules
- keep one logical change per PR
- avoid mixed feature + refactor + schema bundles
- escalate risky auth/public changes for manager review