feat: action execution tools — Mercury payments, dispute emails, status updates - #80
Conversation
…tatus updates - Mercury write API: POST helper, getRecipients, createPayment (ACH) - execute_payment tool: Mercury ACH transfers with idempotency, obligation linking, action logging - list_mercury_recipients tool: discover payment targets before executing - update_obligation_status tool: mark bills paid/deferred with audit trail - send_dispute_email tool: draft dispute correspondence (requires user approval) - get_action_log tool: view recent agent actions - All write operations logged to cc_actions_log Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 8 minutes and 9 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
To use Codex here, create a Codex account and connect to github. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7a363000b3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const n = limit ?? 20; | ||
| if (action_type) { | ||
| const rows = await sql` | ||
| SELECT id, action_type, target_type, target_id, description, status, created_at |
There was a problem hiding this comment.
Select executed_at in filtered action log query
When get_action_log is called with action_type, this query selects created_at, but cc_actions_log only has executed_at (see schema), so the filtered branch throws a SQL “column does not exist” error and the tool fails for every filtered request. Switching this projection to executed_at (or aliasing it consistently) fixes the runtime failure and keeps response shape aligned with the unfiltered branch.
Useful? React with 👍 / 👎.
Summary
execute_payment— Mercury ACH transfers with idempotency keys + obligation linkinglist_mercury_recipients— discover saved payment targetsupdate_obligation_status— mark bills paid/deferred with audit trailsend_dispute_email— draft correspondence (saved as draft, requires user approval before sending)get_action_log— view recent agent actionscc_actions_logwith full metadataTest plan
list_mercury_recipientsreturns recipients for a test accountexecute_paymentcreates ACH with idempotency key (test with small amount)send_dispute_emailcreates draft incc_dispute_correspondence(does NOT send)get_action_logreturns recent entries🤖 Generated with Claude Code