Expand description
Credential storage (~/.capo/agent/auth.json).
JSON map of provider name → credential. Separate file (mode 0600
on Unix) so credentials don’t share fate with general settings.
M3 includes the reader + a writer helper. M4 wires capo auth login.
Structs§
Enums§
Functions§
- load
- Load
auth.jsonfrom the per-user agent directory. - load_
from - Load from an explicit path. Returns
Auth::default()if the file is missing. - save_
with_ mode - Write
auth.jsonwith restrictive permissions (0600on Unix; default ACL on Windows). Used by M4’scapo auth login; exposed in M3 so the mode-check test can exercise it.