feat: scan-only server mode + local build on client

Server:
- config: server.scan_only flag (default: false)
- /api/build returns scan_only=true without building when enabled
- /api/status reports scan_only mode

Client (safe-yay):
- Detects server scan_only from API response
- Scan-only server: builds locally with yay/paru after clean scan
- Full server: installs from pacman repo as before
- --noinstall flag for scan-only without build (was --scan-only)
- Suspicious: prompts for local build or repo install depending on server mode
This commit is contained in:
arch_agent
2026-08-04 10:34:34 +02:00
parent 88072de4fe
commit f015092b1f
4 changed files with 75 additions and 28 deletions
+1
View File
@@ -9,6 +9,7 @@ server:
repo_dir: /var/cache/aur-shield/repo
work_dir: /var/cache/aur-shield/build
build_user: nobody # never build as root
scan_only: true # if true, /api/build returns scan result without building
security:
block_patterns: