Skip to content
API reference

roster/conversation-agents

Import
import * as api from "@fungi.computer/shiitake-extensions/roster/conversation-agents";
Kind Export Description
function assertOrdinaryAgentCreation() Host-pack creation admission; attachments/model selection retain their own owners.
function createConversationAgents() This host’s own record of the Agents each conversation created or sent accepted work to, written as its Agent-control directory accepts them (Wiki: agent-runtime-tools-and-clients, read-only sub-agent view). Accepted child command receipts are separately reconciled against their owner’s settlement records for the parent’s goal guard. Neither record grants authority over a child.
function oysterAgentExtensions() Both hosts compose the ordinary roster and its read-only created-Agent footer.

assertOrdinaryAgentCreation()function

Section titled “assertOrdinaryAgentCreation()”
Signature
function assertOrdinaryAgentCreation(input): void;

Host-pack creation admission; attachments/model selection retain their own owners.

Parameter Type
input Readonly<{ requestId: string; name?: string; model?: { providerId: string; modelId: string; reasoning?: "minimal" | "low" | "medium" | "high" | "xhigh" | "max"; }; extensions?: readonly string[]; }>

void


createConversationAgents()function

Section titled “createConversationAgents()”
Signature
function createConversationAgents(storage): object;

This host’s own record of the Agents each conversation created or sent accepted work to, written as its Agent-control directory accepts them (Wiki: agent-runtime-tools-and-clients, read-only sub-agent view). Accepted child command receipts are separately reconciled against their owner’s settlement records for the parent’s goal guard. Neither record grants authority over a child.

Parameter Type
storage WatchdogSqliteOwner
Name Type Description
recording() (parentSessionId, directory) => AgentControlDirectory Bind acceptance recording to this conversation’s existing directory. One conversation’s directory: its accepted creates and sends are recorded.
control() (directoryFor) => CapabilitySource Agent-control tools bound to the conversation that acquires them.
source() (directory) => SubagentSource The footer rows for one conversation; archived and unknown Agents leave it.

oysterAgentExtensions()function

Section titled “oysterAgentExtensions()”
Signature
function oysterAgentExtensions(source): Readonly<{
roster: readonly RosteredExtensionV0[];
grants: readonly Readonly<{
id: string & Brand<"ExtensionId">;
capabilities: readonly ExtensionCapabilityV0[];
grantKey?: string;
}>[];
}>;

Both hosts compose the ordinary roster and its read-only created-Agent footer.

Parameter Type
source SubagentSource

Readonly<{ roster: readonly RosteredExtensionV0[]; grants: readonly Readonly<{ id: string & Brand<"ExtensionId">; capabilities: readonly ExtensionCapabilityV0[]; grantKey?: string; }>[]; }>