Skip to content
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.

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”
Signature
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”
Signature
type CorralActivity = ClientActivityV0;

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

defaultconstant

Section titled “default”
Signature
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()”
Signature
function attachCorral(activity, options): Effect<void, Error, Scope>;

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

Parameter Type
activity Stream<Readonly<{ state: ClientActivityStateV0; header?: string; }>, Error>
options Readonly<{ environment: CorralEnvironment; onError: (cause) => void; }>

Effect<void, Error, Scope>