Skip to content

fix(cli): harden prepare validation and agent response contracts#4

Merged
tsubasakong merged 3 commits intomainfrom
fix/wallet-validation-and-chain-guards
Mar 26, 2026
Merged

fix(cli): harden prepare validation and agent response contracts#4
tsubasakong merged 3 commits intomainfrom
fix/wallet-validation-and-chain-guards

Conversation

@tsubasakong
Copy link
Copy Markdown
Collaborator

Summary

  • validate wallet selection and unsupported-chain cases earlier in resolve asset, evm transfer prepare, and evm approve prepare so agent flows fail fast with structured errors
  • normalize agent-facing XRPL, DeFi, and fiat envelopes by returning structured trustline status data, retryable Uniswap quote hints, LP preview freshness metadata, issuer-aware XRPL payment planning, and chain-agnostic fiat guidance
  • add regression coverage across unit and e2e tests to lock the reviewed response contracts in place

Test plan

  • npm test
  • npm run lint

Made with Cursor

Fail fast when prepared EVM commands reference missing wallet aliases, and keep resolve asset aligned with the active RLUSD chain set so agents do not get false-positive metadata for unsupported chains.

Made-with: Cursor
Normalize XRPL, DeFi, and fiat command envelopes so agents get consistent machine-readable data without special cases. Add regression coverage for the review findings to keep the contract stable across future CLI changes.

Made-with: Cursor
Avoid routing fiat agent envelopes through the generic table formatter so TypeScript keeps the JSON path type-safe. Preserve the chain-agnostic fiat response contract without widening formatter types across the CLI.

Made-with: Cursor
@tsubasakong tsubasakong merged commit ab86f14 into main Mar 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant