feat: add --tokens flag to list deployment-specific tokens#2549
feat: add --tokens flag to list deployment-specific tokens#2549hardyjosh wants to merge 1 commit intointeractive-strategy-builderfrom
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ 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 |
5b81496 to
09b6e85
Compare
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
09b6e85 to
9a36b8f
Compare
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
`raindex strategy-builder --tokens --strategy <key> --deployment <key> --registry <url>` emits a markdown table of all tokens registered for that specific deployment (symbol, name, address, decimals). This avoids bloating --describe output with potentially hundreds of tokens per deployment. --describe will reference this command so an agent only fetches the token list for the deployment it actually needs.

Motivation
Non-interactive
strategy-builderusers need the valid token addresses for a deployment to populate--select-token KEY=<address>flags. The webapp resolves this dynamically by reading the registry's token-list; CLI users currently have no equivalent.Inlining the full token list in
--describeoutput was considered and rejected: a registry can have hundreds of tokens and the list is typically only needed for the one deployment the caller is working with.Solution
Add a
--tokensflag that scopes to a single strategy + deployment and emits a markdown table of the tokens the registry has registered for that deployment.Output:
Any ERC20 address is accepted for
--select-token; the list is a curated convenience subset.--describelinks to this command so agents fetch scoped lists on demand.Checks