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

Method showWeekNotes

cli/memory_command.go:127–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125}
126
127func (cli *ChatCLI) showWeekNotes() {
128 notes := cli.memoryStore.GetRecentDailyNotes(7)
129 if len(notes) == 0 {
130 fmt.Println(colorize(" "+i18n.T("memory.no_notes_week"), ColorGray))
131 return
132 }
133
134 fmt.Println()
135 fmt.Println(colorize(" "+i18n.T("memory.header.week"), ColorCyan+ColorBold))
136 fmt.Println(colorize(" ─────────────────────────────────────────", ColorGray))
137
138 for _, note := range notes {
139 dateStr := note.Date.Format("2006-01-02 (Mon)")
140 fmt.Printf("\n %s\n", colorize(dateStr, ColorYellow))
141 for _, line := range strings.Split(note.Content, "\n") {
142 fmt.Printf(" %s\n", line)
143 }
144 }
145 fmt.Println()
146}
147
148func (cli *ChatCLI) showLongTermMemory() {
149 content := cli.memoryStore.ReadLongTerm()

Callers 1

handleMemoryCommandMethod · 0.95

Calls 3

TFunction · 0.92
colorizeFunction · 0.85
GetRecentDailyNotesMethod · 0.45

Tested by

no test coverage detected