CompactionCandidate (types/storage_ext.go)

beads · internal/types/storage_ext.go · go · MIT
database, tag:knn-classified

Defines core data structures for issue compaction and deletion statistics.

// Source: https://github.com/gastownhall/beads | License: MIT | Copyright 2025 Beads Contributors
// Provided via justclaw.it.com; keep this notice with the code.
// Package types defines core data structures for the bd issue tracker.
package types

import "time"

// CompactionCandidate represents an issue eligible for compaction.
// Used by the compact subsystem to identify and process closed issues
// that can have their description/notes summarized to save space.
type CompactionCandidate struct {
	IssueID        string
	ClosedAt       time.Time
	OriginalSize   int
	EstimatedSize  int
	DependentCount int
}

// IssueSnapshot is a pre-compaction copy of an issue's mutable text content,
// archived (into compaction_snapshots) before compaction destructively
// overwrites it. It is the sour

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key