dossier

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRecentLimit = 10

DefaultRecentLimit is the number of threads kept in each dossier section.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

Builder assembles deterministic, source-backed repository dossiers.

func NewBuilder

func NewBuilder(reader Reader, recentLimit int) *Builder

NewBuilder returns a Builder backed by reader. recentLimit defaults to DefaultRecentLimit when zero or negative.

func (*Builder) Build

func (b *Builder) Build(ctx context.Context, ref domain.RepoRef) (*domain.Dossier, error)

Build constructs a Dossier for ref. It validates the repo reference, reads repository metadata, contribution guidance, coverage, and threads, then deterministically selects and orders recent items. No LLM summarization is performed.

type Reader

type Reader interface {
	repository.Reader
	ReadThreads(ctx context.Context, ref domain.RepoRef, q ThreadQuery) ([]domain.Thread, []domain.SourceRef, error)
}

Reader is a narrow source interface for building dossiers. Implementations must return deterministic, source-backed data with references.

type ThreadQuery

type ThreadQuery struct {
	Kind   domain.ThreadKind
	State  domain.ThreadState
	Merged *bool
	Limit  int
}

ThreadQuery is a narrow, deterministic read request for threads. An empty State means any state. Merged is ignored unless Kind is PullRequestKind.

Jump to

Keyboard shortcuts

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