Reference
Every name each entry point exports, types included, read from its source. Anything not listed is internal and may change in any release. The source documents every field.
The root exports every name of the subpaths below. A subpath holds one group, for an app that wants to import less.
@adecore/agent-contracts
Everything below, from one import.
@adecore/agent-contracts/envelope
The frames: a request, a reply, an event and the error a reply carries. See Protocol.
| Name | Kind | Source |
|---|---|---|
ErrorSchema | const | envelope |
WireError | type | envelope |
RequestSchema | const | envelope |
Request | type | envelope |
ReplyOkSchema | const | envelope |
ReplyOk | type | envelope |
ReplyErrorSchema | const | envelope |
ReplyError | type | envelope |
ReplySchema | const | envelope |
Reply | type | envelope |
EventSchema | const | envelope |
Event | type | envelope |
ServerFrameSchema | const | envelope |
ServerFrame | type | envelope |
ParseResult | type | envelope |
parseRequest | function | envelope |
parseServerFrame | function | envelope |
@adecore/agent-contracts/port
The shape of a connection that carries frames, types only. See Getting started.
| Name | Kind | Source |
|---|---|---|
FramePort | type | port |
@adecore/agent-contracts/protocol
The table of every request and event with its schemas. See Requests and events.
| Name | Kind | Source |
|---|---|---|
EmptySchema | const | protocol |
AGENT_REQUEST_SCHEMAS | const | protocol |
AGENT_EVENT_SCHEMAS | const | protocol |
AgentRequestType | type | protocol |
AgentEventType | type | protocol |
@adecore/agent-contracts/chat
A chat, its items, events, attachments, requests, bookmarks and forks. See Conversation and UI blocks in replies.
@adecore/agent-contracts/model
Models, catalogs, selections, capabilities and runtime modes. See Providers and models.
@adecore/agent-contracts/provider-accounts
Account ids, records, variables, statuses and the account requests. See Accounts.
@adecore/agent-contracts/agent
Agent kinds, statuses, a terminal agent's info and its approvals. See Providers and models.
@adecore/agent-contracts/task
Tasks between chats. See Tasks and worktrees.
| Name | Kind | Source |
|---|---|---|
TaskStatusSchema | const | task |
TaskStatus | type | task |
TaskResultSchema | const | task |
TaskResult | type | task |
TaskSchema | const | task |
Task | type | task |
TaskChangedEventSchema | const | task |
TaskChangedEvent | type | task |
@adecore/agent-contracts/worktree
Git worktree metadata and the work in one. See Tasks and worktrees.
| Name | Kind | Source |
|---|---|---|
WorktreeWorkSchema | const | worktree |
WorktreeWork | type | worktree |
WorktreeSchema | const | worktree |
Worktree | type | worktree |
@adecore/agent-contracts/usage
Token totals, usage summaries, prices and plan limits. See Usage.
@adecore/agent-contracts/visual
A chat's visuals, the bridge to their page, its theme and its bootstrap. See Visuals.
@adecore/agent-contracts/ids
The id of a terminal session.
| Name | Kind | Source |
|---|---|---|
SessionIdSchema | const | ids |
SessionId | type | ids |
@adecore/agent-contracts/text
Clipping text and keeping the tail of a tool's output. See Conversation.
| Name | Kind | Source |
|---|---|---|
clipText | function | text |
TOOL_OUTPUT_TAIL | const | text |
appendToolOutput | function | text |
@adecore/agent-contracts/tolerance
Stamps that say where a newer host may add something, and the reader that keeps such a reply readable. See Newer hosts.
| Name | Kind | Source |
|---|---|---|
lossyItems | function | wire-stamps |
openUnion | function | wire-stamps |
openValues | function | wire-stamps |
wireStampOf | function | wire-stamps |
wireStampsIn | function | wire-stamps |
WireDegradation | type | wire-stamps |
WireStamp | type | wire-stamps |
WireStampAt | type | wire-stamps |
UnknownWord | type | tolerance |
OpenUnionTable | type | tolerance |
OpenWordTable | type | tolerance |
OpenUnions | type | tolerance |
OpenWords | type | tolerance |
TolerantWith | type | tolerance |
Tolerant | type | tolerance |
ToleratedRead | type | tolerance |
readTolerant | function | tolerance |