Fix or Remove a Logged Contact, and Open an Event in Obsidian
Three tools that lean on each event being a git repo on Cloudflare Artifacts: correct a wrong field without losing the old one, take out someone who wasn't met, and download an event as a folder.
Why Care?
Writes only ever added or appended, so a misspelled name or a wrong email from a badge photo stayed wrong, and someone logged by mistake stayed on the list. Each event was already a git repo, but nobody outside the chat could open it.
What's New?
correct_contactreplaces the fields you name, needs a reason, and adds a dated line with the old values. If the name or company changes, the file is renamed. The CSV and the CRM database follow.remove_contactfirst shows what would go (touchpoints, who logged them, whether it's already in HubSpot). It only removes when called again with the same path. If teammates logged touchpoints too, only an admin can remove it.clone_linkreturns a read-onlygit clonecommand and agit pullto refresh, good for one hour. Open the folder as a vault in Obsidian.Faster calls. Every call now clones only the latest commit. In the two-person simulation, total server time went from 149s to 96s.
eventhog.cc says how it runs on Cloudflare Artifacts, and brings back the two ways to run it: use ours, or deploy your own.
Under the Hood
Both fixes and removals are git commits by the caller, so the earlier version is always in the history.
remove_contactmatches observations by source withsubstrrather thanLIKE, since D1 rejects longLIKEpatterns.
