MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / firstLine

Function firstLine

sessionmemory/store.go:838–845  ·  view source on GitHub ↗
(text string)

Source from the content-addressed store, hash-verified

836 if agentID == "" || agentID == "main" {
837 return "session"
838 }
839 return safePathID(agentID, "agent")
840}
841
842func safePathID(value, fallback string) string {
843 re := regexp.MustCompile(`[^A-Za-z0-9_.-]+`)
844 clean := re.ReplaceAllString(value, "_")
845 clean = strings.Trim(clean, "._-")
846 if clean == "" {
847 return fallback
848 }

Callers 2

summarizeMethod · 0.85
parseSummaryResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected