mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-27 17:58:07 +00:00
Connects the preceding seams to the boot path: - buildReadinessHealthProbe picks the probe credentials from the connection's authMode via resolveReadinessProbeAuth, and reports whether the probe is credentialed so waitForHermesReady can read a 401 correctly. The bearer goes through fetchJson's `bearer` option — a raw `headers` object is ignored there, which would have silently probed uncredentialed. - authMode is threaded into all three waitForHermes call sites: the primary remote connect, the profile pool backend, and the SSH tunnel (loopback forward, token auth), so an old backend behind a tunnel gets the same compatibility path. - The confirmed reauth failure latches in remoteReauthFailure and short-circuits startHermes, and is cleared on every recovery path — resetHermesConnection (soft/hard apply and reconnect), bootstrap reset, repair, and a CONFIRMED oauth sign-in. A cancelled or closed login window leaves the latch set so the overlay stays actionable. - gatewayAuthProviders reads the public /api/auth/providers (cached per base URL, failures return []) so the oauth pre-flight guard can skip its hard failure for an all-password gateway while keeping the strict guard everywhere else. |
||
|---|---|---|
| .. | ||
| bootstrap-installer | ||
| desktop | ||
| shared | ||