v0.21.0
What's Changed
- Usage report fires via platform
waitUntil(createToolHandler): the fire-and-forget usage report now runs as keep-alive-after-response work instead of being awaited inline. This removes reporting latency from every successful call and closes a billing edge — x402 settlement runs before the report, so awaiting it meant a function freeze in that window could charge a paid caller without returning a result. Auto-detected on Vercel (no@vercel/functionsdependency), wired on Cloudflare viatoCloudflareHandler(itsfetchgains an optionalctxarg), overridable via a newwaitUntiloption onToolHandlerConfig, and awaited as before when nowaitUntilis available. (#449) initVercel template defaultsmaxDuration = 60on the tool entrypoint, so LLM-backed tools don't 502 on Vercel's 10s Hobby default. (#448)
Full Changelog: ProjectOpenSea/opensea-devtools@tool-sdk-v0.20.1...tool-sdk-v0.21.0