API reference
server
Import
Section titled “Import”import * as api from "@fungi.computer/graft/server";Exports
Section titled “Exports”| Kind | Export | Description |
|---|---|---|
| type alias | ShiitakeAcpServer | Streamable HTTP adapter and its connection cleanup owner. |
| function | createShiitakeAcpServer() | Host stable ACP over the maintained Streamable HTTP transport. |
ShiitakeAcpServertype alias
Section titled “ShiitakeAcpServer”type ShiitakeAcpServer = Readonly<{ handleRequest: Promise<Response>; close: Promise<void>;}>;Streamable HTTP adapter and its connection cleanup owner.
createShiitakeAcpServer()function
Section titled “createShiitakeAcpServer()”function createShiitakeAcpServer(directory): ShiitakeAcpServer;Host stable ACP over the maintained Streamable HTTP transport.
Each accepted connection gets its own ACP adapter state. The supplied directory remains the authorization boundary and Shiitake remains the Session/transcript owner.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
directory |
AuthorizedShiitakeSessionDirectory |