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

Function projectInstructionDirectory

agentContext/builder.go:464–473  ·  view source on GitHub ↗
(cwd string)

Source from the content-addressed store, hash-verified

462}
463
464func dirsFromRootToCWD(root, cwd string) []string {
465 root = filepath.Clean(root)
466 cwd = filepath.Clean(cwd)
467 if root == cwd {
468 return []string{root}
469 }
470 var reversed []string
471 current := cwd
472 for {
473 reversed = append(reversed, current)
474 if current == root {
475 break
476 }

Callers 1

DiscoverProjectDocsFunction · 0.85

Calls 1

resolveAbsPathFunction · 0.85

Tested by

no test coverage detected