What it does
view
What the DotBot panel says, apart from how it is drawn.
Every function here is pure: it takes readings from modules.dotbot.source and
returns the words and the state the panel renders.
| Function | Answers |
|---|---|
emptyState(availability) | The title and detail shown when no DotBot surface is present. |
hintLine(agent, usage) | The line under the composer naming what pays and what is left, or nil when there is nothing honest to say. |
usageNotice(agent, usage, models) | The banner above the composer: a notice under 25% left, a warning under 10% offering a cheaper model only when that model is one the agent can run, and a blocked state naming the reset. |
problemNotice(agent) | The banner a failed sign-in puts above the composer. |
composerState(availability, agent, usage) | Whether the field takes typing, what it says while empty, and whether it carries the model and thinking chips. |
connectSheet(agent, flow) | The sheet a disconnected, expired or unlinked agent shows in place of a conversation. |
connectedNotice(agent, account) | The line a freshly-connected agent shows above its first turn. |
metaLine(meta) / metaWho(meta) | The per-turn meta line: model, thinking level, tokens, tool calls, duration — and who paid. |
pickerSubtitle(agent) / pickerAction(agent) | What an agent's row in the picker says, and the word on its button when it needs one. |
The thresholds the usage ladder turns on are noticeThreshold (25) and
warnThreshold (10).
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.