Repository navigation
Remove Media and Front Desk; repo is Admin + Referrals - #158
Merged
Merged
Conversation
Delete the Media helper (Instagram, Psychology Today, website help, Grow, relay/, SAM cut-outs) and Front Desk (Twilio, voicemail, SMS, Cal.com, web chat, phone alerts), plus Google connect, which nothing else used. Drop their tools, approval kinds, executors, onboarding questions, switches, env vars, docs and deps. The crisis check keeps the 988 reply and the urgent Admin item. REFERRALS_ONLY_DEMO is now false so Admin is live. No migration: old tables stay, unused. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The morning brief was withheld whenever a partner like "Marrowpine Grief
Center" had a follow-up due: the brief's JSON keeps its list on one line
("\n" as two characters), so a person's card name was judged in the same
sentence as the care word in an org's name. In tool results and replies
only: read "\n" as a line break, mask board organisation names before the
checks, and let a whole card name in a clean code-built line pass. Her
typed messages and memories are unchanged. mcp morning_brief test pins
the follow-ups so it no longer depends on the date.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
What this does
The public repo is now Admin + Referrals plus the shared core (Aeon chat, approvals, memory, Files, Settings, onboarding, MCP). The Media helper and Front Desk are removed completely, and
REFERRALS_ONLY_DEMOis switched tofalseso the demo shows Admin and Referrals.Removed
instagram_post,ads_campaign,website), therelay/Vercel project anddocs/relay.md, the SAM cut-out code (lib/cutout.ts,segmentImage,@meta-sam/parser), seed posts and their pictures, theeval:instagram|media|studioscripts.lib/frontdesk,/api/front-desk,/api/website-chat,/website-chat, Twilio, voicemail, SMS, Cal.com booking, the phone and Cal.com cards, the alert-phone setting,docs/sms*, the SMS-only privacy policy and terms, the Front Desk rules in Settings and onboarding, thesms_reply/consult_*/web_chat_reply/text_consult_optionsexecutors.FRONT_DESK_ENABLED,PHONE_ALERTS_ENABLED,PHONE_ENABLED,FRONT_DESK_TOOLS,FRONT_DESK_APPROVAL_KINDSand every branch on them.lib/referrals/gmail.tswas only called by its own test). Removedlib/connect/index|google|google-scopes|state.ts,/api/connect/*, the Google card anddocs/self-hosting/google.md. Settings › Connections now holds only her own Muse key (still encrypted vialib/connections.ts).@meta-sam/parser,mediabunny,opentype.js,@types/opentype.js,@fontsource/inter.sharpstays (smoke test headshot andscripts/make-icon.ts)..env.example: dropped TWILIO_, CALCOM_, INSTAGRAM_, RELAY_URL, FRONT_DESK_, CLINICIAN_ALERT_PHONE, SPIKE_IMAGE_URL, GOOGLE_*, TEST_INBOX_EMAIL, PUBLIC_BASE_URL.Kept
lib/safety.tskeeps the fixed 988/911 reply;alertCrisiswritescrisis_detected+crisis_alert_failedto audit_log, which Admin (and the menu count) shows as the urgent item. No text is sent. Crisis tests pass.lib/media/facts.tsthey used now lives inlib/referrals/practice-facts.ts. The wall-clock helper moved fromlib/frontdesk/calendar/zone.tstolib/zone.ts.REFERRALS_ONLY_DEMOmechanism is intact (nowfalse). Settings now shows both the Referrals section and Office hours and fees when it is off (before, it showed one or the other).Database
db:resetstill empties the demo ones so no old demo rows linger.Tests
npm teston the built-in DB: 4067 passed, 0 failed. Lint,next typegen+ tsc andnext buildare clean. Gitleaks: no leaks.tests/removed-helpers.test.ts: switch off, Admin in nav and its pages load, no Media/Front Desk page, route, tool, approval kind, connection card or onboarding question; their old paths are 404s. Admin e2e has a matching 404 check.lib/aeon/guard.ts, tool results and replies only). The brief's JSON keeps its list on one line, so a person's card name was judged in the same "sentence" as the care word in a board org's name ("Marrowpine Grief Center"). Now: "\n" in a tool result reads as a line break, board organisation names (never person-like cards) are masked before the checks, and a whole card name in a clean code-built line passes. Her typed messages and memories are unchanged.tests/mcp.test.tspins the follow-ups, so it no longer depends on the date.tests/guard-board-orgs.test.tschecks that grief, hospice, oncology and cancer org names pass in a brief and a reply, while "Maria has cancer" and "Hollis Vance has cancer" still refuse.🤖 Generated with Claude Code