spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / telemetry / tests / fixtures / batch-of.ts
10 lines · 288 BRaw
1import type { Args } from 'claude-code'
2
3/**
4 * The batch a post to the ingest carries, as it was sent.
5 *
6 * @param post the `http.fetch` the plugin made
7 * @returns the body, parsed
8 */
9export const batchOf = (post: Args<'http.fetch'>): unknown =>
10 JSON.parse(String(post.init?.body))