context

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package context builds a rich ProjectContext from a git repository. This is the core value of Kairos — understanding project history before asking an LLM for output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct{}

Builder collects and assembles a ProjectContext from a Repository.

func NewBuilder

func NewBuilder() *Builder

NewBuilder returns a ready-to-use Builder.

func (*Builder) Build

func (b *Builder) Build(ctx context.Context, repo git.Repository, cfg config.Config) (ProjectContext, error)

Build gathers all context from the repository and returns a populated ProjectContext.

type ProjectContext

type ProjectContext struct {
	Diff             string
	Branch           string
	RecentCommits    []string
	LastTag          string
	Describe         string
	ChangedFiles     []string
	ProjectType      string
	ReadmeExcerpt    string
	ChangelogExcerpt string
}

ProjectContext holds everything Kairos knows about the current state of a repository before calling an LLM.

Jump to

Keyboard shortcuts

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