API reference
roster/conversation-agents
Import
Section titled “Import”import * as api from "@fungi.computer/shiitake-extensions/roster/conversation-agents";Exports
Section titled “Exports”| 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()”function assertOrdinaryAgentCreation(input): void;Host-pack creation admission; attachments/model selection retain their own owners.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input |
Readonly<{ requestId: string; name?: string; model?: { providerId: string; modelId: string; reasoning?: "minimal" | "low" | "medium" | "high" | "xhigh" | "max"; }; extensions?: readonly string[]; }> |
Returns
Section titled “Returns”void
createConversationAgents()function
Section titled “createConversationAgents()”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
storage |
WatchdogSqliteOwner |
Returns
Section titled “Returns”| 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()”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
source |
SubagentSource |
Returns
Section titled “Returns”Readonly<{ roster: readonly RosteredExtensionV0[]; grants: readonly
Readonly<{ id: string & Brand<"ExtensionId">; capabilities:
readonly ExtensionCapabilityV0[]; grantKey?: string; }>[]; }>