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

Function resolveResourcePath

config/config.go:689–709  ·  view source on GitHub ↗
(resourceDir, path string)

Source from the content-addressed store, hash-verified

687 updated.BundledSkillsDir = bundledSkillsDir
688 updated.IsolatedSkillsOnly = isolatedSkillsOnly
689 ApplyHarnessDefaults(&updated)
690 return updated
691}
692
693func ProjectRuntimeName(projectRoot string) string {
694 paths, err := apppaths.ResolveCurrent()
695 if err == nil {
696 discovered, discoverErr := apppaths.DiscoverProjectRoot(projectRoot, []string{".git"})
697 if discoverErr == nil {
698 projectRoot = discovered
699 }
700 if project, projectErr := paths.ForProject(projectRoot); projectErr == nil {
701 return project.ID
702 }
703 }
704 return LegacyProjectRuntimeName(projectRoot)
705}
706
707func LegacyProjectRuntimeName(projectRoot string) string {
708 name := filepath.Base(filepath.Clean(projectRoot))
709 name = strings.TrimSpace(name)
710 if name == "." || name == string(filepath.Separator) || name == "" {
711 name = "default"
712 }

Callers 1

applyLuminaDefaultsFunction · 0.85

Calls 1

expandHomeFunction · 0.70

Tested by

no test coverage detected