Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

hook capture vercel-ai-sdk

Save Vercel AI SDK event batches from stdin as a local session for browsing and sharing.

Usage

span hook capture vercel-ai-sdk < batches.ndjson
Read reviewed event batches from stdin and save one SDK session under ~/.halfspan/traces/vercel-ai-sdk/, associated with the current working directory. Closing stdin finishes capture and prints the session UUID. Replays merge by event ID.

Options

OptionDescription
-h, --helpPrint capture help.

Examples

bun run agent.ts | span hook capture vercel-ai-sdk span traces --agent vercel-ai-sdk span share --agent vercel-ai-sdk --session 6b2863cf-ce34-405e-af75-27748912d239
Send application logs to stderr when piping event batches. See the SDK batch writer example.