API reference
API reference
The package exports createShiitakeAcpAgent, the authorization and adapter
types, and agentAcpMethods from src/index.ts. The HTTP
server is exported separately from src/server.ts. The
host-owned directory adapter lives in
src/session-directory.ts. The generated
API reference is included in the tarball.
| Import | Export | Purpose |
|---|---|---|
@fungi.computer/graft |
createShiitakeAcpAgent |
Project an authorized Shiitake Session through ACP. |
@fungi.computer/graft |
createAuthorizedShiitakeSessionDirectory |
Adapt a host-authorized client lease factory to Session creation and loading. |
@fungi.computer/graft |
AuthorizedShiitakeSessionDirectory |
Let the host authorize Session creation and loading. |
@fungi.computer/graft |
agentAcpMethods |
Expose the maintained ACP agent methods. |
@fungi.computer/graft/server |
createShiitakeAcpServer |
Serve the same adapter through Streamable HTTP. |
The host supplies authorization. Shiitake owns Session state and the durable transcript. Close connections to release their client leases and observations; closing a lease does not delete the Session. The generated module pages below include the option, lease and server types.
Modules
Section titled “Modules”| Module |
|---|
| index |
| server |