agent-control
@fungi.computer/shiitake / agent-control
agent-control
Section titled “agent-control”Type Aliases
Section titled “Type Aliases”AgentControlAgent
Section titled “AgentControlAgent”AgentControlAgent =
Readonly<{agentId:string;name:string; }>
One existing Agent visible within the caller’s authorized project or Team.
AgentControlDirectory
Section titled “AgentControlDirectory”AgentControlDirectory =
Readonly<{list: (signal) =>Promise<readonlyAgentControlAgent[]>;create?: (input,signal) =>Promise<AgentControlAgent>>;open: (agentId,signal) =>Promise<Readonly<{agent:ShiitakeAgent;release: () =>Promise<void>>; }>>; }>
Host-owned discovery and per-operation access to ordinary Agents.
Functions
Section titled “Functions”waitForAgentTerminal()
Section titled “waitForAgentTerminal()”waitForAgentTerminal(
session,commandId,timeoutMs,signal,startedAt?):Promise<Readonly<{commandId:string;outcome:"completed"|"failed"|"cancelled"|"interrupted"; }>>
Observe one durable terminal; timeout or abort closes observation, not the work.
Parameters
Section titled “Parameters”session
Section titled “session”commandId
Section titled “commandId”string
timeoutMs
Section titled “timeoutMs”number
signal
Section titled “signal”AbortSignal
startedAt?
Section titled “startedAt?”number = ...
Returns
Section titled “Returns”Promise<Readonly<{ commandId: string; outcome: "completed" |
"failed" | "cancelled" | "interrupted"; }>>
createAgentControlSource()
Section titled “createAgentControlSource()”createAgentControlSource(
directory):CapabilitySource
Compose one authorized Agent-control projection for a single run lease.
Parameters
Section titled “Parameters”directory
Section titled “directory”Returns
Section titled “Returns”CapabilitySource