Reference
Every name each entry point exports, types included, read from its source. Anything not listed is internal and may change in any release.
Two entries hold data rather than names. @adecore/agents-react/theme.css holds the styles (see Getting started), and @adecore/agents-react/locales/<language>/<namespace> holds one namespace in one language as its default export.
Derive a prop or option type that is not exported, as ComponentProps<typeof Composer> or Parameters<ChatClient['open']>[1].
@adecore/agents-react
Wiring the views into an app: the host adapters, the scope, the transport, storage, lazy loading and the settings sections. See Host adapters.
@adecore/agents-react/chat
A chat outside its views: the client, actions, drafts, preferences, mentions, forks, the rows of a thread and subagent navigation. See Chat client and state.
@adecore/agents-react/chat/ui
The views of a chat: the thread, the composer, messages, diffs, subagents, limits, the rows of a thread and smaller parts for a layout of your own. See Timeline.
@adecore/agents-react/prompts
Approvals and questions: the prompt view, and the parts and logic to build one of your own. See Prompts.
@adecore/agents-react/providers
The CLIs and their accounts: marks, model names, the providers pane and its parts. See Providers pane.
| Name | Kind | Source |
|---|---|---|
AccountDot | component | agents/AccountDot |
AgentIcon | component | agents/AgentIcon |
AgentModelLabel | component | agents/AgentModelLabel |
ModelOptionControl | component | agents/ModelOptionControl |
ProviderLogo | component | agents/ProviderLogo |
hasProviderLogo | function | agents/provider-paths |
AccountEntry | type | agents/accounts |
accountsOfKind | function | agents/accounts |
ACCOUNT_TONE_CLASSES | const | agents/accounts |
accountStatusLine | function | agents/accounts |
canContinueOn | function | agents/accounts |
projectDefault | function | agents/accounts |
topAccountEntry | function | agents/accounts |
modelName | function | agents/model-name |
useModelName | hook | agents/model-name |
shortModelName | function | agents/model-name |
carryOptions | function | agents/model-options |
ProvidersPane | component | providers/ProvidersPane |
CliMark | component | providers/parts |
CliTile | component | providers/parts |
@adecore/agents-react/state
The stores the views read: chats, providers, accounts and usage. See Chat client and state.
ChatSink.replay is optional. A sink that implements it receives missed events as one ordered batch when a chat reconnects; other sinks receive the same events one by one through apply. The built-in chatSink publishes the batch once, and keeps earlier snapshots and the timeline's structural state. Live events still use apply.
@adecore/agents-react/usage
What the CLIs cost and their plan limits: the usage page, dialog and pane, and their parts. See Usage page.
| Name | Kind | Source |
|---|---|---|
WindowBar | component | usage/LimitsList |
LimitsList | component | usage/LimitsList |
AccountLimitsList | component | usage/LimitsList |
UsageBreakdown | component | usage/UsageBreakdown |
UsageChart | component | usage/UsageChart |
UsageDialog | component | usage/UsageDialog |
UsageLimits | component | usage/UsageLimits |
UsageLimitsCard | component | usage/UsageLimitsCard |
UsagePage | component | usage/UsagePage |
UsagePane | component | usage/UsagePane |
UsageSummary | component | usage/UsageSummary |
UsageTiles | component | usage/UsageTiles |
LimitAccount | type | usage/limit-groups |
useLimitGroups | hook | usage/limits |
useMoney | hook | usage/money |
niceScale | function | usage/summary |
labelEveryFor | function | usage/summary |
deriveUsage | function | usage/summary |
ProviderTotal | type | usage/summary |
@adecore/agents-react/locales
The words of the views, per language and namespace. See Getting started.
| Name | Kind | Source |
|---|---|---|
AGENTS_NAMESPACES | const | locales |
AGENTS_LOCALES | const | locales |
@adecore/agents-react/testing
Prompts in every state, for tests and demos. See Testing.
| Name | Kind | Source |
|---|---|---|
PROMPT_SAMPLES | const | testing/prompts |
@adecore/agents-react/images
imageForDisplay(blob) decodes HEIC and HEIF into PNG for a browser display URL or canvas. Other formats keep their original blob. The decoder loads on demand and works under a CSP without unsafe-eval.
DisplayImage (also exported by @adecore/agents-react/chat/ui) adds a HEIC and HEIF fallback to native image props. Remote sources must allow cross-origin reads.
VisualPageFrame replaces embedded HEIC and HEIF data URLs in a page with PNG data URLs before it hands the page to its sandbox. It leaves unreadable images in place so the rest of the document can open.
| Name | Kind | Source |
|---|---|---|
imageForDisplay | function | chat/image-display |
DisplayImage | component | chat/ui/DisplayImage |