docs(agent): clarify cred-file set + settings doc pointer, fix forge_notify cross-ref
This commit is contained in:
parent
b4f54a194b
commit
8a78b8a464
1 changed files with 18 additions and 11 deletions
|
|
@ -33,6 +33,13 @@ pub fn default_dir() -> PathBuf {
|
|||
/// Rationale + the previous wholesale-wipe shape we replaced live in
|
||||
/// [`docs/web-ui/agent.md::Per-agent endpoints`](../../docs/web-ui/agent.md)
|
||||
/// (the `/api/logout` bullet).
|
||||
///
|
||||
/// `.credentials.json` is the actual OAuth session; `mcp-needs-auth-cache.json`
|
||||
/// is claude-code's MCP-auth cache and a weaker signal. Both are kept in the
|
||||
/// set only because `/logout` deletes both, so the "either present ⇒ logged
|
||||
/// in" check can never disagree with a logout. (If a future edit ever removes
|
||||
/// `.credentials.json` without the cache — a state `/logout` doesn't produce —
|
||||
/// keying purely on `.credentials.json` would be the stronger boot signal.)
|
||||
pub const CRED_FILE_NAMES: &[&str] = &[".credentials.json", "mcp-needs-auth-cache.json"];
|
||||
|
||||
/// Is `entry` a regular file whose name is one of [`CRED_FILE_NAMES`]?
|
||||
|
|
|
|||
Loading…
Reference in a new issue