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

Method showLongTermMemory

cli/memory_command.go:148–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146}
147
148func (cli *ChatCLI) showLongTermMemory() {
149 content := cli.memoryStore.ReadLongTerm()
150 if content == "" {
151 fmt.Println(colorize(" "+i18n.T("memory.no_longterm"), ColorGray))
152 return
153 }
154
155 fmt.Println()
156 fmt.Println(colorize(" "+i18n.T("memory.header.longterm"), ColorCyan+ColorBold))
157 fmt.Println(colorize(" ─────────────────────────────────────────", ColorGray))
158 for _, line := range strings.Split(strings.TrimSpace(content), "\n") {
159 fmt.Printf(" %s\n", line)
160 }
161 fmt.Println()
162}
163
164func (cli *ChatCLI) loadMemoryIntoContext(dateStr string) {
165 date, err := parseFlexibleDate(dateStr)

Callers 1

handleMemoryCommandMethod · 0.95

Calls 3

TFunction · 0.92
colorizeFunction · 0.85
ReadLongTermMethod · 0.45

Tested by

no test coverage detected