Abri relay credentials and defaults hydrate from environment configuration 🟩

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Daniel Roth 2026-07-03 14:34:53 +00:00
parent 39055bafed
commit 62ad53df5a

View file

@ -11,4 +11,9 @@ class AbriConfig:
@classmethod
def from_env(cls, env: Mapping[str, str]) -> "AbriConfig":
raise NotImplementedError
return cls(
endpoint_url=env["ABRI_RELAY_URL"],
username=env["ABRI_RELAY_USERNAME"],
password=env["ABRI_RELAY_PASSWORD"],
default_resource=env["ABRI_RELAY_DEFAULT_RESOURCE"],
)