Repository navigation
docs: Node req/res bridge, runTurn options, and what the CLI's API is - #470
Merged
Merged
Conversation
This was referenced Oct 30, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The last of F7's docs gaps from #440: the low-level APIs.
server/fetch-runtimes.mdx, new section "Node's http module, Fastify, Koa": turns Node'sreqinto aRequestand streams theResponseback tochatcopsVercelHandler, with the session path routed and the client IP taken from the socket. I ran the same code against a scripted provider before writing it up./sessionreturned a token, the reply streamed, and a request without a token got401 session_required.packages/server/README.md, "Custom integrations": it showedhandleChat, which streams the 0.5 format and sends no session token, so with feat(server)!: require session tokens by default, with allowAnonymous to opt out #462's default it getssession_requiredon every request. It now points to the Fetch handler and the bridge. It also says why bridging beats callingcreateChatHandlerdirectly: the handler already does CORS, origins, body limits, pings, sessions and the 0.5 format.core/providers.mdx: a table of everyrunTurnoption and what the turn returns.core/testing.mdx: the CLI's API is the command, its flags anddefineConfig. Its other exports can change in a minor release until cli 1.0.Tested: docs:check (147 blocks) and lint pass. The docs bot index gets rebuilt with the 1.0-rc release, since several docs PRs will land before then.