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

Function loadMemoryMode

cli/memory_mode.go:46–57  ·  view source on GitHub ↗

loadMemoryMode reads CHATCLI_MEMORY_MODE, normalizing to one of the three valid modes and falling back to the production default on empty/unknown.

()

Source from the content-addressed store, hash-verified

44// loadMemoryMode reads CHATCLI_MEMORY_MODE, normalizing to one of the three
45// valid modes and falling back to the production default on empty/unknown.
46func loadMemoryMode() string {
47 switch strings.ToLower(strings.TrimSpace(os.Getenv("CHATCLI_MEMORY_MODE"))) {
48 case memModeFull:
49 return memModeFull
50 case memModeIndex:
51 return memModeIndex
52 case memModeOff:
53 return memModeOff
54 default:
55 return defaultMemoryMode
56 }
57}

Callers 5

moaToolsetForRunMethod · 0.85
TestLoadMemoryModeFunction · 0.85
buildWorkspaceBlocksMethod · 0.85
showConfigMemoryMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestLoadMemoryModeFunction · 0.68