other
- Location
utils/cli/detect-environment.py:24- Finding
Mandatory Environment Detection Exposes Detailed Host and Agent Installation Information
- Content
View full analysis
dict[str, Any]: home = Path.home() shared_roots = [ workspace / ".agents" / "skills", home / ".agents" / "skills", ] platform_markers = { "codex": [ workspace / ".codex" / "skills", home / ".codex" / "skills", ], "claude code": [ workspace / ".claude" / "skills", home / ".claude" / "skills", ], "openclaw": [ workspace / ".openclaw", home / ".openclaw", ], "copaw": [ workspace / ".copaw", home / ".copaw", ], "molili": [ workspace / ".molili", home / ".molili", ], "hermes agent": [ workspace / ".hermes", home / ".hermes", ], } shared_matches = [str(path.resolve()) for path in shared_roots if path.exists()] platform_hints: list[dict[str, Any]] = [] for platform_name, candidates in platform_markers.items(): matches = [str(path.resolve()) for path in candidates if path.exists()] if matches: platform_hints.append({"platform": platform_name, "matched_paths": matches}) return { "shared_skill_roots": shared_matches, "platform_hints": platform_hints, } ``` ```python def build_snapshot() -> dict[str, Any]: workspace = Path.cwd() commands = [ "python3", "python", "node", "npm", "uv", "git", "cocoloop", "clawhub", ] command_states = [] for command in commands: if command == "clawhub": info = command_version(command, ...[truncated 3093 chars]- Remediation
View remediation
