fix: add guard cmds on managed on top of user levels#269
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
cb1e58f to
a131c9a
Compare
Review Summary by QodoAdd managed (MDM/admin) config path support to Agent Guard
WalkthroughsDescription• Add --managed flag to guard install/uninstall commands • Define OS-specific managed config paths for Claude/Cursor • Update status command to display both user and managed hooks • Add comprehensive tests for managed path resolution and operations Diagramflowchart LR
CLI["CLI Arguments<br/>--managed flag"]
PATHS["OS-Specific Paths<br/>macOS/Linux/Windows"]
CONFIG["Config Path Resolution<br/>_config_path function"]
INSTALL["Install/Uninstall<br/>to managed paths"]
STATUS["Status Display<br/>user + managed hooks"]
CLI --> CONFIG
PATHS --> CONFIG
CONFIG --> INSTALL
CONFIG --> STATUS
File Changes1. src/agent_scan/cli.py
|
Code Review by Qodo
1.
|
3345739 to
a131c9a
Compare
2307774 to
a692f7c
Compare
Add
--managedflag to Agent Guard hook install/uninstallAdds support for installing and uninstalling Agent Guard hooks at OS-specific managed (MDM/admin-deployed) config paths, in addition to the existing user-level paths.