()
| 125 | } |
| 126 | |
| 127 | func (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 | |
| 148 | func (cli *ChatCLI) showLongTermMemory() { |
| 149 | content := cli.memoryStore.ReadLongTerm() |
no test coverage detected