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

Method workspaceRoot

internal/daemon/memory_runtime.go:662–676  ·  view source on GitHub ↗
(sessionID string)

Source from the content-addressed store, hash-verified

660}
661
662func (e *forkedMemoryExtractor) workspaceRoot(sessionID string) string {
663 if e == nil || e.workspaceRoots == nil {
664 return ""
665 }
666 defer e.workspaceRoots.Delete(sessionID)
667 value, ok := e.workspaceRoots.Load(sessionID)
668 if !ok {
669 return ""
670 }
671 root, ok := value.(string)
672 if !ok {
673 return ""
674 }
675 return strings.TrimSpace(root)
676}
677
678func (e *forkedMemoryExtractor) nowUTC() time.Time {
679 if e != nil && e.now != nil {

Callers 1

ExtractMethod · 0.95

Calls 2

DeleteMethod · 0.65
LoadMethod · 0.45

Tested by

no test coverage detected