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

Function findLuminaProjectRoot

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

Source from the content-addressed store, hash-verified

401 if readErr == nil {
402 docs = append(docs, doc)
403 }
404 }
405 if len(docs) > 0 {
406 result.Docs = docs
407 return result, nil
408 }
409
410 if cfg.Paths.InstructionsDir != "" {
411 doc, homeErr := readProjectInstructionFileWithOptions(cfg.Paths.InstructionsDir, cfg.ProjectDocFilenamesOrDefault(), cfg.ProjectDocMaxBytesOrDefault())
412 if homeErr == nil {
413 result.Docs = []ProjectDoc{doc}
414 result.FallbackPath = doc.Path
415 return result, nil
416 }
417 }
418 return result, nil
419}

Callers

nothing calls this directly

Calls 2

NewConfigForCWDFunction · 0.92
DiscoverProjectDocsFunction · 0.85

Tested by

no test coverage detected