diff --git a/pkg/agentic/deps.go b/pkg/agentic/deps.go index 1063cf9..695b34e 100644 --- a/pkg/agentic/deps.go +++ b/pkg/agentic/deps.go @@ -77,8 +77,8 @@ type coreDep struct { dir string // e.g. "core-go" (workspace subdir) } -// parseCoreDeps extracts Core ecosystem dependencies from go.mod content. -// Finds all require lines matching dappco.re/go/* or forge.lthn.ai/core/*. +// parseCoreDeps extracts direct Core ecosystem dependencies from go.mod content. +// Skips indirect deps — only clones what the repo directly imports. func parseCoreDeps(gomod string) []coreDep { var deps []coreDep seen := make(map[string]bool) @@ -86,6 +86,11 @@ func parseCoreDeps(gomod string) []coreDep { for _, line := range core.Split(gomod, "\n") { line = core.Trim(line) + // Skip indirect dependencies + if core.Contains(line, "// indirect") { + continue + } + // Match dappco.re/go/* requires if core.HasPrefix(line, "dappco.re/go/") { parts := core.Split(line, " ")