Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

server.ts

18 lines568 Bytes

1// The `@tanstack/ai-harness/server` entry: the HTTP and WebSocket transport,
2// and the protocol helpers that a custom transport uses.
3export { createHarnessHandler, handleHarnessSocket, requestUsers } from './http'
4export type {
5 HarnessHandlerOptions,
6 HarnessSocketOptions,
7 OpenAccess,
8} from './http'
9export type { HarnessStreamOptions } from './sse'
10​
11export {
12 HARNESS_PROTOCOL_VERSION,
13 applyInput,
14 capabilitiesOf,
15 parseControlFrame,
16 parseHarnessInput,
17} from './protocol'
18export type { ControlFrame, HarnessErrorCode, HostFrame } from './protocol'