You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2307d1b
Browse filesBrowse the repository at this point in the historyBrowse files
fix(commerce): default warnings + recommended_tools adapt to rails in how_to_pay (parity with node)
Mirror of node-commerce 39bdf35. build_agent_instructions previously emitted
the full warning + tool list regardless of which rails the merchant accepts.
Now defaults are derived from rails declared in how_to_pay:
- tempo present → tempo warning + tempo CLI tool
- x402_base or x402_solana present → x402 warning + agentscore-pay tool
- stripe-only → empty warnings + empty rail-specific tools
Adds test_build_agent_instructions_warnings_match_rails covering x402-only,
tempo-only, stripe-only configurations.
483 → 485 tests pass.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments