Phase 13, part 6: each team's Core

On the server and multi-tenant editions a team's admin enters its Core's
domain and account under Settings → Core & Hermes, instead of core.conf;
Hermes connects from the team's side with an agent's key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 12:29:44 -07:00
co-authored by Claude Opus 5.5
parent af6598271c
commit 1865140507
13 changed files with 166 additions and 34 deletions
+4 -4
View File
@@ -77,7 +77,7 @@ func (s *Server) renderCRM(w http.ResponseWriter, r *http.Request, errMsg string
"Job": hermesCRMJob,
"JobID": s.crmJobID(),
"Waiting": counts[crm.StatusPending] + counts[crm.StatusClaimed],
"Unreachable": s.Core != nil && unreachableError(actions) != "",
"Unreachable": s.core() != nil && unreachableError(actions) != "",
}})
}
@@ -127,11 +127,11 @@ func (s *Server) crmReach(w http.ResponseWriter, r *http.Request) {
return
}
failure := unreachableError(actions)
if s.Core == nil || failure == "" {
if s.core() == nil || failure == "" {
s.fragment(w, r, "crm", "reach", nil)
return
}
check := probe(r.Context(), core.Service{Name: "EspoCRM", URL: espoCRMURL(s.Core)})
check := probe(r.Context(), core.Service{Name: "EspoCRM", URL: espoCRMURL(s.core())})
tried := ""
for _, m := range connErr.FindAllStringSubmatch(failure, -1) {
if m[2] != "" {
@@ -143,7 +143,7 @@ func (s *Server) crmReach(w http.ResponseWriter, r *http.Request) {
"Check": check,
"Tried": tried,
"Error": failure,
"HubHost": "mcphub." + s.Core.Domain,
"HubHost": "mcphub." + s.core().Domain,
})
}