feed

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package feed provides the feed daemon that curates raw events into a user-facing feed.

The curator: 1. Tails ~/gt/.events.jsonl (raw events) 2. Filters by visibility tag (drops audit-only events) 3. Deduplicates repeated updates (5 molecule updates → "agent active") 4. Aggregates related events (3 issues closed → "batch complete") 5. Writes curated events to ~/gt/.feed.jsonl

Index

Constants

View Source
const FeedFile = ".feed.jsonl"

FeedFile is the name of the curated feed file.

Variables

This section is empty.

Functions

This section is empty.

Types

type Curator

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

Curator manages the feed curation process.

func NewCurator

func NewCurator(townRoot string) *Curator

NewCurator creates a new feed curator.

func (*Curator) Start

func (c *Curator) Start() error

Start begins the curator goroutine.

func (*Curator) Stop

func (c *Curator) Stop()

Stop gracefully stops the curator.

type FeedEvent

type FeedEvent struct {
	Timestamp string                 `json:"ts"`
	Source    string                 `json:"source"`
	Type      string                 `json:"type"`
	Actor     string                 `json:"actor"`
	Summary   string                 `json:"summary"`
	Payload   map[string]interface{} `json:"payload,omitempty"`
	Count     int                    `json:"count,omitempty"` // For aggregated events
}

FeedEvent is the structure of events written to the feed.

Jump to

Keyboard shortcuts

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