Skip to main content

client/src

packages/client/src

Purpose

Public barrel for the final endpoint runtime capability.

Public surface

acquireHarnessEndpoint

Function
Acquire one real MCP-backed endpoint and its scoped connection. Returns: An endpoint whose resources remain live for the caller’s scope.

AgentAddress

TypeAlias
A validated direct destination.

AgentAddress

Variable
An explicit direct destination using one canonical Registry name.

ConnectError

Class
Acquiring the endpoint connection failed.

Content

TypeAlias
Validated nonempty semantic content.

Content

Variable
Nonempty semantic content whose canonical JSON is at most 32,768 bytes.

ContentPart

TypeAlias
A validated semantic message part.

ContentPart

Variable
One exact semantic part of a message.

DeliveryAcknowledgeError

Class
Transport acknowledgment could not complete for one delivery.

DirectMessage

TypeAlias
One certified remote-authored direct message.

GroupAddress

TypeAlias
A validated canonical complete group destination.

GroupAddress

Variable
A complete fixed-member group address in unsigned ASCII name order.

GroupMessage

TypeAlias
One certified remote-authored fixed-group message.

HarnessEndpoint

Interface
Structural runtime capability owned by one scoped endpoint connection.

HistoryExportRecord

TypeAlias
A validated line of the daemon’s history export.

HistoryExportRecord

Variable
One line of the daemon’s optional history export: a certified inbound delivery, a completed send invocation with its outcome, or the one line that says the export stopped. Readers decode the file line by line with this schema rather than copying its shape.

InboundDelivery

Interface
One message plus its transport-only acknowledgment.

InboundMessage

TypeAlias
A validated direct or group inbound message.

InboundMessage

Variable
Exact discriminated inbound message projection.

JsonValue

TypeAlias
A value accepted by the closed semantic content boundary.

JsonValue

Variable
Runtime validation for the closed recursive JSON value.

ListenError

Class
The endpoint’s sole inbound subscription failed.

MessageAddressInput

TypeAlias
A validated explicit destination input.

MessageAddressInput

Variable
Either accepted destination input, including noncanonical group order.

PostId

TypeAlias
A validated author-scoped post identity.

PostId

Variable
Opaque identity minted for one addressed-send invocation.

SendError

Class
An addressed send failed before local certification completed.

SendInput

TypeAlias
Validated semantic input for one addressed send.

SendInput

Variable
Complete semantic input for one addressed send.

Files

  • client-runtime.ts
  • contract.ts