Documentation
¶
Index ¶
- func ArchiveSessionAll(workspace string, sess *session.Session) (bool, error)
- func ConsolidateSession(workspace string, sess *session.Session, keepRecent int) (bool, error)
- func SummarizeDay(workspace string, day time.Time) (bool, error)
- func SummarizePreviousDay(workspace string, now time.Time) (bool, error)
- type DailySummaryService
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArchiveSessionAll ¶
ArchiveSessionAll consolidates all not-yet-consolidated messages.
func ConsolidateSession ¶
ConsolidateSession appends a compact session summary to HISTORY.md and updates LastConsolidated. keepRecent controls how many most-recent messages stay unconsolidated.
func SummarizeDay ¶
SummarizeDay appends one day's summary to memory/MEMORY.md (idempotent by date heading).
Types ¶
type DailySummaryService ¶
type DailySummaryService struct {
// contains filtered or unexported fields
}
func NewDailySummaryService ¶
func NewDailySummaryService(workspace string, interval time.Duration) *DailySummaryService
func (*DailySummaryService) RunOnce ¶
func (s *DailySummaryService) RunOnce(now time.Time) (bool, error)
func (*DailySummaryService) Start ¶
func (s *DailySummaryService) Start(ctx context.Context)
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AppendHistory ¶
func (*Store) EnsureFiles ¶
func (*Store) HistoryPath ¶
func (*Store) ReadLongTerm ¶
func (*Store) WriteLongTerm ¶
Click to show internal directories.
Click to hide internal directories.