MCPcopy Create free account
hub / github.com/ByteYellow/AgentProvenance / templateNameFromTaskPath

Function templateNameFromTaskPath

internal/control/service.go:609–619  ·  view source on GitHub ↗
(taskPath string)

Source from the content-addressed store, hash-verified

607}
608
609func templateNameFromTaskPath(taskPath string) string {
610 base := filepath.Base(taskPath)
611 ext := filepath.Ext(base)
612 if ext != "" {
613 base = strings.TrimSuffix(base, ext)
614 }
615 if base == "" || base == "." {
616 return "default"
617 }
618 return base
619}

Callers 1

CreateSessionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected