API reference
API reference
See the generated Corral API reference. The default export
is an attach-only shiitake.client/v1 entry. attachCorral is the lower-level
integration for hosts that supply an activity stream directly.
Exports
Section titled “Exports”| Kind | Export | Description |
|---|---|---|
| type alias | CorralEnvironment | Pane environment supplied by the local Herdr host. |
| type alias | CorralActivity | Activity supplied by the client; blocked means a human response is pending. |
| constant | default | Ordinary Fungi client extension; disabled outside a Herdr pane. |
| function | attachCorral() | Attach to borrowed activity; never opens a Session watch or starts Herdr. |
CorralEnvironmenttype alias
Section titled “CorralEnvironment”type CorralEnvironment = Readonly<{ HERDR_ENV?: string; HERDR_PANE_ID?: string; HERDR_SOCKET_PATH?: string;}>;Pane environment supplied by the local Herdr host.
CorralActivitytype alias
Section titled “CorralActivity”type CorralActivity = ClientActivityV0;Activity supplied by the client; blocked means a human response is pending.
defaultconstant
Section titled “default”const default: Readonly<{ protocol: "shiitake.client/v1"; id: string & Brand<"ExtensionId">; promptPresentation?: "footer"; attach?: (context) => Effect<void, Error, Scope>; contribute?: (slot) => object;}>;Ordinary Fungi client extension; disabled outside a Herdr pane.
attachCorral()function
Section titled “attachCorral()”function attachCorral(activity, options): Effect<void, Error, Scope>;Attach to borrowed activity; never opens a Session watch or starts Herdr.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
activity |
Stream<Readonly<{ state: ClientActivityStateV0; header?: string; }>, Error> |
options |
Readonly<{ environment: CorralEnvironment; onError: (cause) => void; }> |
Returns
Section titled “Returns”Effect<void, Error, Scope>