Commit Graph
9 Commits
Author SHA1 Message Date
nsrbandCursor f270f531ea feat(watcher): add agent Gmail CLI with audit and defaults
Provide list/read/summarize plus reason-gated archive, label, draft, and forward-as-draft, with SQLite audit logging and default-mailbox resolution.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-22 10:09:25 +07:00
nsrbandCursor 770ed8121a feat(watcher): gate receipt watch with WATCHER_MAILBOXES
Limit Pub/Sub INBOX watch and receipt processing to an allowlisted mailbox set; leave the agent CLI usable for all connected accounts.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-22 10:09:25 +07:00
nsrbandCursor bac8edfb6c feat(api): switch OAuth scope to gmail.modify
Enable archive, label, and draft CLI operations after users re-consent; keep the web UI read-only.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-22 10:09:25 +07:00
nsrb 39eb1bce2f fix(watcher): handle wrapped Subject lines in forwarded emails
Update the parseForwardedHeader function to correctly join wrapped Subject lines before the To: line, ensuring accurate parsing of Gmail forwarded messages. Enhance tests to validate this behavior with Tokopedia email examples.
2026-09-14 00:04:26 +07:00
nsrb c446d794a8 feat(watcher): add Tokopedia order parsing and rules
Implement parsing for Tokopedia "Pesanan Selesai" messages, including support for single and multi-item orders. Update rules to recognize Tokopedia order completion and enhance spending record mapping. Add tests to validate new functionality.
2026-09-13 23:58:23 +07:00
nsrb 0fa0ed3380 feat(watcher): add BRI QRIS parsing and rules
Implement parsing for BRI QRIS transactions, including direct and forwarded message handling. Update rules to recognize QRIS success messages and adjust spending record mapping accordingly. Enhance tests to cover new functionality.
2026-09-13 23:28:59 +07:00
nsrb 1b880ed554 fix(watcher): update default max value in process-messages to 500
Adjust the default maximum value for message processing to improve performance and accommodate larger datasets.
2026-09-13 23:19:21 +07:00
nsrbandCursor 334d688b50 fix(watcher): force IPv4 for PM2 and widen process-messages defaults
Avoid Gmail hang on rpi4 broken IPv6 Happy Eyeballs, and default backfill to 30d inbox / max 500.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-13 23:12:37 +07:00
nsrbandCursor 46a2e2a7b0 feat: add gmail-hook monorepo with watcher, api, and web
Ship the receipt pipeline (Livin/Grab/BRI), PocketBase spendings, PM2 ecosystem, and a proper .gitignore that excludes secrets, SQLite data, and media dumps.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-13 22:58:47 +07:00