()
| 22 | |
| 23 | |
| 24 | def list_builtin_projects(): |
| 25 | try: |
| 26 | root = importlib_resources.files('ms_agent').joinpath('projects') |
| 27 | if not root.exists(): |
| 28 | return [] |
| 29 | return sorted([p.name for p in root.iterdir() if p.is_dir()]) |
| 30 | except Exception as e: |
| 31 | # Fallback: don't let help crash just because a resource is unavailable. |
| 32 | logger.warning(f'Could not list built-in projects: {e}') |
| 33 | return [] |
| 34 | |
| 35 | |
| 36 | def project_help_text(): |
no outgoing calls
no test coverage detected