API reference
roster
Import
Section titled “Import”import * as api from "@fungi.computer/shiitake-extensions/roster";Exports
Section titled “Exports”| Kind | Export | Description |
|---|---|---|
| constant | botanicalAgentExtensions | Botanical’s shared roster with explicit grants. Local composes its
sender-routing question extension through botanicalExtensionsWithSkills; hosts
without that Local capability send every Ask to a person. |
| function | botanicalExtensionsWithSubagents() | Compose the goal and footer over one source; an absent goal is a wiring error. |
| function | botanicalExtensionsWithSkills() | A host with a SkillSource grants read-only skill discovery for its own runs. |
| function | botanicalExtensionsWithSenderRouting() | Route Asks to the Agent that sent the work, only in a host that owns the Local answer door. |
botanicalAgentExtensionsconstant
Section titled “botanicalAgentExtensions”const botanicalAgentExtensions: ExtensionRosterV0;Botanical’s shared roster with explicit grants. Local composes its
sender-routing question extension through botanicalExtensionsWithSkills; hosts
without that Local capability send every Ask to a person.
botanicalExtensionsWithSubagents()function
Section titled “botanicalExtensionsWithSubagents()”function botanicalExtensionsWithSubagents(base, source): ExtensionRosterV0;Compose the goal and footer over one source; an absent goal is a wiring error.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
base |
ExtensionRosterV0 |
source |
SubagentSource |
Returns
Section titled “Returns”ExtensionRosterV0
botanicalExtensionsWithSkills()function
Section titled “botanicalExtensionsWithSkills()”function botanicalExtensionsWithSkills(source): ExtensionRosterV0;A host with a SkillSource grants read-only skill discovery for its own runs.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
source |
SkillSource |
Returns
Section titled “Returns”ExtensionRosterV0
botanicalExtensionsWithSenderRouting()function
Section titled “botanicalExtensionsWithSenderRouting()”function botanicalExtensionsWithSenderRouting(): ExtensionRosterV0;Route Asks to the Agent that sent the work, only in a host that owns the Local answer door.
Returns
Section titled “Returns”ExtensionRosterV0