MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / underAgentsFolder

Function underAgentsFolder

internal/metadata/discover.go:91–99  ·  view source on GitHub ↗

underAgentsFolder reports whether p (relative to the repo root) is beneath a directory named "agents" at any depth, e.g. agents/foo.md, .claude/agents/foo.md, or agents/category/foo.md.

(root, p string)

Source from the content-addressed store, hash-verified

89// directory named "agents" at any depth, e.g. agents/foo.md,
90// .claude/agents/foo.md, or agents/category/foo.md.
91func underAgentsFolder(root, p string) bool {
92 rel := relPath(root, p)
93 for _, seg := range strings.Split(rel, "/") {
94 if seg == "agents" {
95 return true
96 }
97 }
98 return false
99}
100
101func resolveScanRoots(root, subPath string) []string {
102 if subPath == "" {

Callers 1

DiscoverResourcesFunction · 0.85

Calls 1

relPathFunction · 0.85

Tested by

no test coverage detected