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

Function stringValue

sessionmemory/store.go:847–857  ·  view source on GitHub ↗
(v any)

Source from the content-addressed store, hash-verified

845 clean = strings.Trim(clean, "._-")
846 if clean == "" {
847 return fallback
848 }
849 return clean
850}
851
852func sessionSQLitePath(sessionDir, sessionID, agentID string) string {
853 return filepath.Join(sessionDir, safeSessionID(sessionID), safeAgentID(agentID)+".sqlite")
854}
855
856func migrateLegacySQLite(sessionDir, sessionID, agentID, targetPath string) error {
857 if safeAgentID(agentID) != "session" {
858 return os.MkdirAll(filepath.Dir(targetPath), 0o755)
859 }
860 legacyPath := filepath.Join(sessionDir, safeSessionID(sessionID)+".sqlite")

Callers 6

IngestMessagesMethod · 0.70
isTransientMessageFunction · 0.70
isRealUserRequestFunction · 0.70
hasToolResultFunction · 0.70
textPreviewFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected