Skip to content

v0.21.0

Choose a tag to compare

@ryanio ryanio released this 17 Jun 22:20
· 15 commits to main since this release

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/functions dependency), wired on Cloudflare via toCloudflareHandler (its fetch gains an optional ctx arg), overridable via a new waitUntil option on ToolHandlerConfig, and awaited as before when no waitUntil is available. (#449)
  • init Vercel template defaults maxDuration = 60 on 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