Documentation
¶
Overview ¶
Package dna generates Project DNA — a structured summary of a project's key decisions, patterns, tech stack, and gotchas extracted from observations.
The DNA is auto-generated from high-importance observations and persisted as an observation with topic_key "project-dna/{project}".
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EdgeCounter ¶
type EdgeCounter interface {
CountEdgesByObservation(ctx context.Context, obsID int64) (int, error)
}
EdgeCounter counts graph edges.
type ObservationLister ¶
type ObservationLister interface {
List(ctx context.Context, filter domain.ObservationFilter) ([]*domain.Observation, error)
}
ObservationLister lists observations with filters.
type ScoreProvider ¶
type ScoreProvider interface {
GetScore(ctx context.Context, obsID int64) (*domain.ImportanceScore, error)
}
ScoreProvider retrieves importance scores.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service generates Project DNA from observations.
func NewService ¶
func NewService(obs ObservationLister, scoring ScoreProvider, edges EdgeCounter) *Service
NewService creates a new DNA service.
Click to show internal directories.
Click to hide internal directories.