Remove Convex; add Luma check-in webhook for Cursor credits#3
Open
Remove Convex; add Luma check-in webhook for Cursor credits#3
Conversation
Co-authored-by: Alhwyn <Alhwyn@users.noreply.github.com>
- Drop cloud/local mode selector; use CAFE_DATA_PATH for CSV data directory - Share Resend send logic between CLI and automation - Add guest.updated webhook server with signature verification and check-in API check - Dedupe Luma deliveries with cafe_luma_sent_guests.txt - Document setup and add webhook signature tests Co-authored-by: Alhwyn <Alhwyn@users.noreply.github.com>
Co-authored-by: Alhwyn <Alhwyn@users.noreply.github.com>
…-in URL Luma has no separate check-in event; require guest.updated and document it. Add canonical /luma/check-in path; fix test script to use bun test discovery. Co-authored-by: Alhwyn <Alhwyn@users.noreply.github.com>
Add POST /v1/webhooks/create helper and luma:register-webhook CLI so setup does not require the Luma dashboard. Document API-first operator flow. Co-authored-by: Alhwyn <Alhwyn@users.noreply.github.com>
Co-authored-by: Alhwyn <Alhwyn@users.noreply.github.com>
Co-authored-by: Alhwyn <Alhwyn@users.noreply.github.com>
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.
Summary
Removes Convex; all app data is local (CSV/text files under
CAFE_DATA_PATHor cwd). No cloud database. The Luma API is only used for webhooks +get-guest(operator-owned keys).Luma integration:
POST /v1/webhooks/createviabun run luma:register-webhook, inboundguest.updated, verify signature,GET /v1/event/get-guestfor check-in, then credit + optional Resend.README states local-only storage explicitly; UI comments no longer say “database.”
Operator setup
bun run luma:webhook(exposehttps://host/luma/check-in).LUMA_API_KEY=... bun run luma:register-webhook https://host/luma/check-inLUMA_WEBHOOK_SECRET; alignCAFE_DATA_PATH/LUMA_DATA_PATHfor shared local files.Testing
bun test/bun run test./node_modules/.bin/tsc --noEmit