diff

package
v0.1.4-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package diff provides intelligent diff chunking for LLM consumption. Uses token-based clustering to group related files together.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chunker

type Chunker struct {
	// contains filtered or unexported fields
}

func NewChunker

func NewChunker() *Chunker

NewChunker creates a new diff chunker.

func (*Chunker) Chunk

func (c *Chunker) Chunk(diff string, maxChunkSize int) ([]domain.DiffChunk, error)

Chunk splits a unified diff into logical chunks using token-based clustering.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL