Skip to content

API reference

See the generated Corral API reference. The default export is the Shiitake client extension. attachCorral is the lower-level integration for hosts that supply an activity stream directly.

CorralEnvironment = Readonly<{ HERDR_ENV?: string; HERDR_PANE_ID?: string; HERDR_SOCKET_PATH?: string; }>

Pane environment supplied by the local Herdr host.


CorralActivity = ClientActivityV0

Activity supplied by the client; blocked means a human response is pending.

const default: ClientEntryV0

Ordinary Fungi client extension; disabled outside a Herdr pane.

attachCorral(activity, options): Effect<void, Error, Scope>>

Attach to borrowed activity; never opens a Session watch or starts Herdr.

Stream<ClientActivityV0>

Readonly<{ environment: CorralEnvironment; onError: (cause) => void; }>

Effect<void, Error, Scope>