Return the top-level project artifact for a project-scoped skill path.
(path: Path, project_dir: Path)
| 440 | break |
| 441 | return removed |
| 442 | def _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 |
| 449 | def _is_graphify_skill_registration(section: "list[str]") -> bool: |
| 450 | """Whether a `# graphify` section is the registration graphify writes. |
| 451 |
no outgoing calls
no test coverage detected