MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _project_scope_root

Function _project_scope_root

graphify/install.py:442–448  ·  view source on GitHub ↗

Return the top-level project artifact for a project-scoped skill path.

(path: Path, project_dir: Path)

Source from the content-addressed store, hash-verified

440 break
441 return removed
442def _project_scope_root(path: Path, project_dir: Path) -> Path:
443 """Return the top-level project artifact for a project-scoped skill path."""
444 try:
445 rel = path.relative_to(project_dir)
446 except ValueError:
447 return path
448 return project_dir / rel.parts[0] if rel.parts else path
449def _is_graphify_skill_registration(section: "list[str]") -> bool:
450 """Whether a `# graphify` section is the registration graphify writes.
451

Callers 3

installFunction · 0.85
gemini_installFunction · 0.85
_project_installFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected