Skip to content

Module reference ​

Every module of the package, by the subpath you import it from: @adecore/agents-react/<module>. A module name links to its source, where each export has its full type. DiffPool, EditDiff and UnifiedDiff are default exports. Two entries are not modules: theme.css, and the words under locales/<language>/<namespace>.json.

Many props and options are not exported types. Derive them where you need one, as ComponentProps<typeof Composer> or Parameters<ChatClient['open']>[1].

Runtime ​

ModuleExports
hostAccentChoice, ChatToast, ChatActions, FileRef, ChatPlace, SubagentTask, TimelineFindOptions, TimelineFind, ComposerDictationProps, TextareaProps, ResourceUrl, ComposerSlotProps, SubagentSlotProps, ThreadCard, ReplyAuthor, VisualHost, ChatHost, setChatHost, chatHost
lazysetLazyPrefetch, onLazyOpenError, lazyNamed
localesAGENTS_NAMESPACES, AgentsNamespace, AGENTS_LOCALES
mounted-registryMountedEntry, MountedRegistry
port-transportPortTransport, portTransport
scopeChatScope, ChatScopeContext, useChatScope
state/chatsChatState, ChatHistoryPage, ChatPage, ChatsById, ChatStatuses, ChatSink, prependPage, waitingRequestsOf, applyEvent, useChats, chatSink, useChatRow, useCurrentItem
state/provider-accountsProviderAccountsRow, useProviderAccountsStore, useProviderAccounts, providerAccountsOf, knownAccounts, watchProviderAccounts
state/providersProvidersRow, useProvidersStore, useProviders, providersOf, providerSinkFor
state/usageUsagePeriod, UsageMetric, USAGE_PERIODS, USAGE_PREFERENCES_KEY, usagePreferencesKey, dayOf, windowFor, summaryPayload, askedKey, reloadUsagePreferences, useUsageStore, UsageView, useUsage
transportChatRequestMap, ChatEventMap, ChatTransportStatus, ChatTransport, ChatTransportError, errorCode, isConnectionError
storageChatStorageRecord, ChatStorageAdapter, ChatStorageOptions, onChatStorageConfiguration, configureChatStorage, chatStorageKey, chatStorageLegacyKeys, chatStorageAdapter, hydrateChatStorage, createChatStore

Chat ​

ModuleExports
chat/account-choiceAccountChoice, useAccountChoice
chat/actionstransportActions, actionsOf, useChatActions
chat/activitybackgroundCounts
chat/attachmentsisImageAttachment, fileBadge, formatBytes, checkAttachmentLimits, filesOf, readAttachments, readStoredAttachments, uploadPreviewUrl, uploadBytes
chat/bookmarksuseBookmarkNaming, placeBookmark, nameBookmark, removeBookmark, goToBookmark
chat/chat-clientChatSendExtras, ChatClient
chat/chat-referencesProjectChat, chatSuggestions
chat/draftsChatDraft, EMPTY_DRAFT, isEmptyDraft, useDrafts, useHasDraft, readDraft, writeDraft, joinDraftText, takeBackIntoDraft, takeDraftOffers, offerDraft
chat/forksuseForkedTurns, useForkIdsAfter
chat/guardsPROMPT_MAX_CHARS, PROMPT_COUNTER_FROM, PASTE_ATTACHMENT_FROM_BYTES, pasteBecomesAttachment, pastedTextName, PromptGuard, promptGuard, usableSlashCommands
chat/mentionsMENTION_DRAG_TYPE, LEGACY_MENTION_DRAG_TYPE, MENTION_DRAG_TYPES, carriesMentions, droppedMentions, writeMentionDrag, MentionQuery, ChipSegment, findMentionQuery, findSkillQuery, insertToken, dropQuery, insertMention, insertSkill, MentionSearch, NO_MENTION_SEARCH, MentionPick, mentionPick, presentMentions, presentSkills, chipText, pastedMentions, TextRange, ChipRange, chipRanges, tokenizeChips
chat/persisted-jsonPersistedJson, persistedJson
chat/preferencesChatPreferences, DEFAULT_CHAT_PREFERENCES, parseChatPreferences, defaultProvider, selectionFor, startingSelection, withSelection, accountFor, withAccount, chatPreferencesPayload, useChatPreferences, readChatPreferences, CHAT_PREFERENCES_KEY, chatPreferencesKey, reloadChatPreferences, rememberChatPreferences, rememberChatSelection, rememberChatAccount, forgetChatSelection
chat/quotequoteOf, withQuote
chat/recent-messagesRecentChatMessage, RecentChatMessages, recentMessages, recentChatMessages, recentSubagentMessages
chat/resume-compaction-dismissalsuseResumeCompactionDismissal, dismissResumeCompaction
chat/runtime-modesRUNTIME_MODES, runtimeModeLabel, runtimeModeHint
chat/stashSTASH_SHORTCUT, STASH_LIMIT, StashedAttachment, StashedPrompt, parseStash, withStashed, stashedFrom, useStash, stashDraft, forgetStashed
chat/subagent-conversationSUBAGENT_PAGE, SubagentConversationState, INITIAL_CONVERSATION, mergeNewest, SubagentConversation
chat/subagent-listsubagentTitle, subagentFacts, taskIdOf, statusWordOf, TaskRowState, taskRowStateOf, flyoutSubagents, summaryWordOf, badgeCountOf, entryTimeOf, SubagentStop, stopOf, stopLabel, ComposerStop, composerStopOf, composerStopLabel
chat/subagent-supportuseSubagentSupport
chat/subagent-viewSubagentStep, SubagentTrail, BreadcrumbStep, MAIN_AGENT, crumbOf, openFromMain, openBelow, trailTo, stepBack, composerWrites, breadcrumbOf, canOpenSubagent, subagentOf, openableSubagents, useSubagentView, useSubagentTrail, useOpenableSubagents, useSubagentItem
chat/thumbnailsTHUMBNAIL_PX, ThumbnailCrop, thumbnailCrop, useUploadThumbnail
chat/timeline-flashTimelineFlash, useTimelineFlash
chat/timeline-scrollregisterTimeline, setTimelineAtEnd, subscribeTimelineEnd, timelineAtEnd, scrollTimelineToEnd, pageTimeline, registerMessageStepper, stepTimelineMessage, registerItemJumper, jumpToTimelineItem, TurnTarget, registerTurnJumper, jumpToTimelineTurn, wantsEarlier, ReadingAnchor, firstRowInView, restoreAnchor
chat/visual-bridgeVisualFrameWindow, VisualBridgeOptions, VisualBridge
chat/visualsuseVisualDialog

Chat logic ​

ModuleExports
chat/logic/ansiAnsiToken, stripAnsi, parseAnsi
chat/logic/answerstoggleChoice
chat/logic/bookmarksbookmarkLabel, bookmarksInThreadOrder, bookmarkRows
chat/logic/context-usageCONTEXT_OPTION, ContextPart, CONTEXT_PARTS, ContextSegment, contextFraction, contextSegments, orderOptions
chat/logic/forkFORKABLE_PROVIDERS, ForkPoint, forkRefusal, summaryRefusal, forkIdsAfter, forkedTurnIds, lastSettledTurn, forkPointOf, forkPointLabel, turnIdOfRow, ForkShape, forkShapes, ForkWorktreeChoice, ForkCliChoice, forkPayload, branchRefusal
chat/logic/handbackhandbackReportOf
chat/logic/jsonisRecord
chat/logic/limitLimitView, limitView
chat/logic/resume-compactionRESUME_COMPACTION_TOKENS, RESUME_COMPACTION_IDLE_MS, ResumeCompactionOffer, resumeCompactionOffer
chat/logic/scrubberTickKind, ScrubberTick, SCRUBBER_MIN_TICKS, TICK_HEIGHT_PX, STRIP_WIDTH_PX, STRIP_INSET_PX, ticksOf, TickSlot, ScrubberLayout, layoutTicks, tickOfRow, ticksWithHits, messageAt, slotOf, tickWidth, ReadingPosition, MessageRange, messagesInView, slotInView, stepMessage, threadPaddingLeft
chat/logic/thread-cardsTimedRow, cardRows, visualRows, withTimedRows, timedRowsOf, withThreadCards
chat/logic/timeline-copystripMarkdown, messageTextOf, markdownOf
chat/logic/timeline-targetTimelineTarget, EMPTY_TARGET, withCurrentText, readTimelineTarget
chat/logic/timelineSubagentBranch, TimelineRow, isBlock, summarizeGroup, summarizeTurn, agentTurnLabel, turnLabel, findSubagentBranch, deriveTimelineRows
chat/logic/tool-catalogToolEntry, TOOL_CATALOG, toolEntry
chat/logic/toolsFileChange, toolSummary, readImagePath, fileChanges, isFileChange, unifiedChanges, approvalChanges, hasFileChanges, toolStartedAt, liveOutput
chat/logic/visual-heightclampVisualHeight, initialVisualHeight, rememberVisualHeight
chat/logic/welcomeDayPart, dayPartOf
chat/logic/workflowWorkflowAgentState, WorkflowAgentView, WorkflowPhaseView, workflowAgentState, workflowPhases, workflowAgentTime

Chat views ​

ModuleExports
chat/ui/AccountPillAccountPill
chat/ui/AnsiOutputAnsiOutput
chat/ui/BookmarkMarkerBookmarkMarker
chat/ui/BookmarkSubmenuBookmarkSubmenu
chat/ui/ChatActivityChatActivity, StatusIcon
chat/ui/ChatReferenceChipChatReferenceChip
chat/ui/CodeBlockCodeBlock
chat/ui/ComposerComposer
chat/ui/ComposerInputComposerInputHandle, InputSelection, ComposerInput
chat/ui/DiffPoolDiffPool (default)
chat/ui/EditDiffEditDiff (default)
chat/ui/FadingWordsFadingWords
chat/ui/ImageViewImageThumb
chat/ui/LimitStateLimitDock, LimitPill
chat/ui/MarkdownReplyMarkdown, MessageMarkdown, Markdown
chat/ui/MessageActionsMessageActions
chat/ui/PickersModelPicker, StashPicker
chat/ui/PromptComposerPromptComposer
chat/ui/QuoteButtonQuoteButton
chat/ui/ResumeCompactionDockResumeCompactionDock
chat/ui/RunSettingsRunSettings
chat/ui/ScrubberCardChat, Scrubber
chat/ui/SubagentControlsSubagentTitleCrumb, SubagentBreadcrumb
chat/ui/SubagentInfoSubagentInfo
chat/ui/SubagentStopButtonSubagentStopButton
chat/ui/SubagentTimelineSubagentTimeline
chat/ui/TimelineTimeline
chat/ui/TimelineMenuTimelineMenuPopup, BookmarkMenuItems
chat/ui/UnifiedDiffUnifiedDiff (default)
chat/ui/UploadThumbUploadThumb
chat/ui/VisualFrameVisualFrameProps, VisualFrame
chat/ui/VisualDialogsVisualDialogs
chat/ui/WelcomeWelcomeGreeting
chat/ui/chipsMENTION_TONE, SKILL_TONE, CHIP_IN_EDITOR, CHIP_IN_MESSAGE
chat/ui/code-linesCodeToken, Tokenize, IncrementalLines
chat/ui/code-streamingCodeStreamingContext
chat/ui/code-themeuseCodeTheme, shikiThemeOf
chat/ui/diff-themeuseDiffTheme
chat/ui/file-linksFileLinkContext, useFileLinkCwd, useFileLinkTarget, openFileLink
chat/ui/find-revealChatFindField, FindReveal, FindRevealContext, useOpenForFind
chat/ui/full-diffDiffContents, fullFileDiff
chat/ui/iconsDOCK_ICON_SIZE, ROW_GUTTER, toolIcon
chat/ui/markdown-blocksMarkdownBlock, splitMarkdownBlocks, settledBlocksText
chat/ui/quote-selectionQuoteTaker, QuoteTakerContext, selectedAnswerQuote
chat/ui/rehype-chipsChipOptions, rehypeChips
chat/ui/rehype-fadeFADE_CLASS, WHOLE_FADE_CLASS, wordSegments, isWhitespace, rehypeFadeWords
chat/ui/remark-html-as-textremarkHtmlAsText
chat/ui/reply-contextReplyContext
chat/ui/revealREVEAL_FADE_MS, REVEAL_TAU_MS, REVEAL_MIN_CPS, REVEAL_FINISH_MIN_CPS, REVEAL_MAX_FRAME_MS, REVEAL_MAX_HELD_WORD, advanceReveal, revealBoundary, RevealedText, useRevealedText
chat/ui/useToggleSetToggleSet, useToggleSet
chat/ui/visual-themeVisualTokens, visualThemeOf, backgroundBehind, useVisualTheme

Composer editor ​

ModuleExports
chat/ui/composer/chipsChipChoices, chipDecorations
chat/ui/composer/editorexternalChange, markdownLanguage, CodeRange, codeRanges, composerEditorExtensions
chat/ui/composer/insertinsertAtSelection
chat/ui/composer/keysEnterAction, EnterKeys, ListItem, EnterContext, listItemAt, enterAction, inOpenFence, inFenceBody, tabSpaces, inCode, RecallContext, recallDirection

Timeline rows ​

ModuleExports
chat/ui/rows/ForksRowForksRow
chat/ui/rows/MessageRowsUserRow, ReportRow, ReplyHeader, AssistantRow, ThinkingRow, NoteRow, AgentTurnRow, CompactionRow, ApprovalHistoryRow, QuestionHistoryRow
chat/ui/rows/RowsRowProps, Row
chat/ui/rows/SubagentRowSubagentRow, SubagentBranchRow
chat/ui/rows/TaskRowTaskRow
chat/ui/rows/VisualRowVisualRow
chat/ui/rows/WorkRowsToggleLine, WorkRow, RunningFor, WorkLiveRow, WorkGroupRow, TurnFoldRow, ChangedFilesRow, WorkingRow
chat/ui/rows/WorkflowRowWorkflowRow
chat/ui/rows/row-rhythmFOLLOW_THRESHOLD_PX, rowRhythm, replyHeader

Prompts ​

ModuleExports
prompts/logic/focusfocusPromptStart, focusPromptHeading
prompts/logic/keysPROMPT_SHORTCUTS, PromptKeyEvent, ListStep, ChoiceKeyAction, AnswerFieldKeyAction, stepIndex, choiceKey, answerFieldKey, headingKey, toolbarKey, isPrimaryKey, pageKey, staysInCard
prompts/logic/prompts.fixturesPROMPT_SAMPLES
prompts/logic/promptsPendingPrompt, PromptAction, PromptAnswer, PromptDraft, emptyPromptDraft, answerValue, questionAnswer, pickPromptChoice, isBlockingPrompt, orderPrompts, nextPrompt, promptAnswers
prompts/logic/subjectsHostPrompt, PromptSubject, ChatPromptClients, PromptViewProps, ApprovalButtonSpec, promptIdOf, promptCreatedAt, isBlockingSubject, approvalButtons, answerPrompt
prompts/logic/useFocusAfterAnswerFocusAfterAnswer, useFocusAfterAnswer
prompts/logic/usePromptSessionPromptSession, usePromptSession
prompts/ui/ApprovalBodyCommandBox, ApprovalBody
prompts/ui/PromptActionsPromptPrimary, ApprovalButton, ApprovalActions, QuestionActions
prompts/ui/PromptCardPROMPT_SURFACE, PromptCardKind, PromptCard
prompts/ui/PromptViewPromptView
prompts/ui/QuestionBodyQuestionBody

Agents and providers ​

ModuleExports
agents/AccountDotAccountDot
agents/AgentIconAgentIcon
agents/ModelOptionControlModelOptionControl
agents/ProviderLogoProviderLogo
agents/account-limitslimitsAccountId, limitsOfAccount, sessionWindow, continueTarget, hasUnreadAccount
agents/accountsaccountColor, FOLDER_VARIABLES, AccountEntry, accountsOfKind, accountName, AccountTone, ACCOUNT_TONE_CLASSES, accountStatusLine, mintAccountId, freeAccountColor, offeredAccounts, hasAccountChoice, canContinueOn
agents/model-namemodelNameFromSlug, modelName, AgentChip, agentChipOf, useModelName, sharedModelPrefix, shortModelName
agents/model-optionsoptionValue, carryOptions
agents/provider-pathsPROVIDER_PATHS
agents/status-lookStatusWord, StatusLook, statusLookOf, TaskState, taskStatusWord
providers/AccountColorsAccountColors
providers/AccountDetailAccountDetail
providers/AccountVariablesAccountVariables
providers/AddAccountFormAddAccountForm
providers/CliDetailCliDetail
providers/ProvidersPaneProvidersPane
providers/account-actionssaveAccounts, saveAccount, removeAccount, createAccount, linkAccount
providers/partsCliMark, CliTile
providers/provider-abilitiesproviderAbilities
providers/variablesVariableDraft, draftsOf, emptyDraft, variablesProblem, variablesOf, variablesChanged
settings/sectionsAgentsSettingsSection, PROVIDERS_SECTION, USAGE_SECTION, settingsSection
ui/PlainTextareaPlainTextarea

Usage ​

ModuleExports
usage/LimitsListWindowBar, LimitsList, AccountLimitsList
usage/UsageBreakdownUsageBreakdown
usage/UsageChartUsageChart
usage/UsageDialogUsageDialog
usage/UsageLimitsUsageLimits
usage/UsageLimitsCardUsageLimitsCard
usage/UsagePageUsagePage
usage/UsagePaneUsagePane
usage/UsageSummaryUsageSummary
usage/UsageTilesUsageTiles
usage/formatUsageCurrency, formatCount, moneyFormat, PROVIDER_LABELS, PROVIDER_COLORS, slotLabel, slotAxisLabel, formatDate, shortPath, formatClock, formatTokens
usage/limit-groupsLimitAccount, LimitGroup, limitGroups, hasSeveralAccounts, isSignedOut, nextReset, checkedLabel, explain, accountNote
usage/limitsuseUsageLimits, useLimitGroups
usage/moneyuseMoney
usage/summaryChartSlot, ProviderTotal, niceScale, DerivedUsage, enumerateSlots, labelEveryFor, deriveUsage, UsageDay, deriveDays

Licenses and third-party notices are listed in each package.