MCPcopy Create free account
hub / github.com/compozy/agh / nativeMemoryFilename

Function nativeMemoryFilename

internal/daemon/native_tools.go:5628–5634  ·  view source on GitHub ↗
(rawType string, seed string)

Source from the content-addressed store, hash-verified

5626}
5627
5628func nativeMemoryFilename(rawType string, seed string) string {
5629 prefix := string(memcontract.Type(strings.TrimSpace(rawType)).Normalize())
5630 if prefix == "" {
5631 prefix = string(HarnessPromptSectionMemory)
5632 }
5633 return prefix + "_" + nativeMemorySlug(seed) + ".md"
5634}
5635
5636func nativeMemoryAdHocFilename(rawSlug string, content string, now time.Time) string {
5637 slug := nativeMemorySlug(firstNonEmpty(rawSlug, content, nativeToolsNoteKey))

Callers 1

memoryProposeMethod · 0.85

Calls 2

nativeMemorySlugFunction · 0.85
NormalizeMethod · 0.45

Tested by

no test coverage detected