@ngriffin_uk/polychat-utility-server
v0.2.0
Published
Dependency-light server utilities shared by Polychat Workers and AI primitives: errors, logging, JSON, HTTP, streaming, redaction, and encoding helpers
Readme
@ngriffin_uk/polychat-utility-server
Server-side helpers shared by the API and the Workers: errors, ids, retries, streaming, JSON and multipart parsing, redaction, SQL helpers, and tool-call parsing. Nothing here touches Cloudflare bindings or a vendor SDK.
Import from the root or from a subpath so a Worker only pulls what it uses:
import { AssistantError, ErrorType } from "@ngriffin_uk/polychat-utility-server/errors";
import { withRetries } from "@ngriffin_uk/polychat-utility-server/retries";Logging lives in @ngriffin_uk/polychat-ai-telemetry, not here, so log records can reach telemetry sinks.
