PAIPAI

@pai/client

Transport-agnostic AgentClient and Thread.

HTTP apps use createPaiHttpClient(), which wraps this facade. React wraps that.

APIPurpose
AgentClient / Threadsend, watch, files, commands
Client toolsSerialized frontend-defined tools
ErrorsThreadBusyError and related

Do not import @pai/client in the browser unless you are writing a custom transport.