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.
TypeScript
import type Views from '../../../hooks/views'
import { hunksOf } from './hunks-of.js'
import type { ParsedHunk } from './parsed-hunk.js'
/**
* Every hunk a body's `Code` sources hold, in drawing order.
*
* @param body the file's body as `codeBlocksOf` cut it
* @returns the hunks read back out of each source
*/
export const parsedHunksOf = (body: Views.CodeBody): ParsedHunk[] =>
body.sources.flatMap(hunksOf)