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 / diff / hooks / word-diff / word-part / word-part.ts
8 lines · 225 BRaw
1/**
2 * One run of a word-level diff between a removed line and the added line
3 * that replaced it: text both share, or text on one side only.
4 */
5export type WordPart = {
6 text: string
7 kind: 'same' | 'added' | 'removed'
8}