Start a Hono web server (via @hono/node-server) to serve this agent. The server
exposes endpoints for SWML document delivery, SWAIG function execution,
post-prompt summary handling, and health checks.
The server automatically includes:
{route}/swaig{route}/post_prompt/health and /ready health check endpointsrun() is an alias for serve(). Both methods are equivalent in the
TypeScript SDK.
Optional host and port overrides.
Host to bind the server to. Falls back to the constructor’s host option.
Port to listen on. Falls back to the constructor’s port option.
When the SWAIG_CLI_MODE environment variable is set to "true", serve()
returns immediately without starting the server. This lets the swaig-test
CLI load the agent’s configuration without binding a port.
Promise<void> — Resolves once the server is running.