API reference
goal/host
Import
Section titled “Import”import * as api from "@fungi.computer/shiitake-extensions/goal/host";Exports
Section titled “Exports”| Kind | Export | Description |
|---|---|---|
| constant | goalCatalog | The commands this extension advertises to every client. |
| constant | goalExtension | Ordinary roster when no created-Agent directory is available. |
| function | goalExtensionFor() | Botanical’s Session goal; hosts with created-Agent facts include them in progress. |
goalCatalogconstant
Section titled “goalCatalog”const goalCatalog: Json;The commands this extension advertises to every client.
goalExtensionconstant
Section titled “goalExtension”const goalExtension: RosteredExtensionV0;Ordinary roster when no created-Agent directory is available.
goalExtensionFor()function
Section titled “goalExtensionFor()”function goalExtensionFor(subagents?): RosteredExtensionV0;Botanical’s Session goal; hosts with created-Agent facts include them in progress.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
subagents? |
Readonly<{ hasLiveChildCommand: (sessionId) => boolean; read: (sessionId, limit) => Promise<Readonly<{ agents: readonly Readonly<{ agentId: string; name: string; sessionId: … | …; }>[]; more: number; }>>; open: (agentId, signal) => Promise<Readonly<{ agent: SubagentAgent; release: () => Promise<void>; }>>; }> |
Returns
Section titled “Returns”RosteredExtensionV0