feat(ai-settings): show remaining free MIND allotment - #10
Merged
Conversation
…ent prompt
When the coder runs on the bridge's built-in key and the ledger is on, the
"Your AI" panel now shows the remaining free MIND ("… N free MIND left") and,
at zero, prompts the user to add their own key. Uses the new `freeBalance`
from the bridge's GET /api/profile/ai; null (own key, or ledger off) renders
the existing copy unchanged.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The "Your AI" panel now surfaces the free-allotment state when the coder would run on the bridge's built-in key:
Uses the new
freeBalancefrom the bridge'sGET /api/profile/ai. When it'snull(user on their own key, or ledger off) the existing copy renders unchanged.Depends on
GET /api/profile/aireturningfreeBalance(feat(coder): meter bridge-default key against free MIND allotment codespaces#17)POST /.admin/tokens/debit(feat(ledger): operator-authed POST /.admin/tokens/debit mind-node#9)Tested
tsc --noEmitclean.🤖 Generated with Claude Code