Skip to main content

client/delivery

packages/client/src/delivery

Purpose

One service’s delivery, for the service to compose.

Public surface

decodeHarnessMessageReadyEvent

Function
Decode one exact pending-delivery notification payload. Returns: The validated pending delivery.

decodeHarnessReadInboxResult

Variable
Decode a bounded inbox page received through the MCP transport.

decodeHarnessSendErrorData

Function
Decode the error data of one refused send_message call. Returns: The collective failure or send reason it carries.

decodeHarnessSendResult

Function
Decode one send_message result, ignoring fields this release does not name. Returns: The operation id a gather names and the local firewall’s guidance on the admitted send, each if any.

FirewallAuditRecord

TypeAlias
Completion verifies the snapshot, not completion or delivery of each attempt.

FirewallAuditRecord

Variable
One NDJSON record in an operator-only shutdown snapshot. A complete file has one start, every retained check and activation, and one matching complete record. Its digest covers the UTF-8 check and activation lines including trailing newlines. Candidate bytes are opaque canonical Client data, encoded as base64. A null result or checking/interrupted disposition never represents permission. The nullable post reference identifies supported messages without decoding candidate bytes.

HistoryExportRecord

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

HistoryExportRecord

Variable
One line of the daemon’s optional history export: an item as the daemon published it, a completed send invocation with its input and 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.

Files

  • firewall-values.ts
  • history-export.ts
  • operations.ts