MCPcopy Create free account
hub / github.com/diillson/chatcli / GetRecentDailyNotes

Method GetRecentDailyNotes

cli/workspace/memory.go:90–101  ·  view source on GitHub ↗

GetRecentDailyNotes returns the last N days of notes.

(days int)

Source from the content-addressed store, hash-verified

88
89// GetRecentDailyNotes returns the last N days of notes.
90func (ms *MemoryStore) GetRecentDailyNotes(days int) []DailyNote {
91 managerNotes := ms.manager.GetRecentDailyNotes(days)
92 notes := make([]DailyNote, len(managerNotes))
93 for i, n := range managerNotes {
94 notes[i] = DailyNote{
95 Date: n.Date,
96 Path: n.Path,
97 Content: n.Content,
98 }
99 }
100 return notes
101}
102
103// GetMemoryContext builds the memory section for the system prompt.
104// Uses smart retrieval when no hints are provided.

Callers 5

TestGetRecentDailyNotesFunction · 0.95
showWeekNotesMethod · 0.45
loadMemoryIntoContextMethod · 0.45
showConfigSessionMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestGetRecentDailyNotesFunction · 0.76