Get the set of allowed commands for a project. Uses hierarchy resolution from get_effective_commands(). Args: project_dir: Path to the project directory, or None Returns: Set of allowed command names (including patterns)
(project_dir: Optional[Path])
| 786 | |
| 787 | |
| 788 | def get_project_allowed_commands(project_dir: Optional[Path]) -> set[str]: |
| 789 | """ |
| 790 | Get the set of allowed commands for a project. |
| 791 | |
| 792 | Uses hierarchy resolution from get_effective_commands(). |
| 793 | |
| 794 | Args: |
| 795 | project_dir: Path to the project directory, or None |
| 796 | |
| 797 | Returns: |
| 798 | Set of allowed command names (including patterns) |
| 799 | """ |
| 800 | allowed, blocked = get_effective_commands(project_dir) |
| 801 | return allowed |
| 802 | |
| 803 | |
| 804 | def get_effective_pkill_processes(project_dir: Optional[Path]) -> set[str]: |
nothing calls this directly
no test coverage detected