This commit is contained in:
2026-03-06 19:54:52 -05:00
parent 36a1bd4257
commit 0e9f84f026
7 changed files with 565 additions and 307 deletions

View File

@@ -24,6 +24,7 @@ import threading
import requests # type: ignore[import-untyped]
from typing import Optional, Callable, Any, List, Union, cast, Iterable
import os
from pathlib import Path
from src import project_manager
from src import file_cache
from src import mcp_client
@@ -157,8 +158,11 @@ def get_comms_log() -> list[dict[str, Any]]:
def clear_comms_log() -> None:
_comms_log.clear()
def get_credentials_path() -> Path:
return Path(os.environ.get("SLOP_CREDENTIALS", "credentials.toml"))
def _load_credentials() -> dict[str, Any]:
cred_path = os.environ.get("SLOP_CREDENTIALS", "credentials.toml")
cred_path = get_credentials_path()
try:
with open(cred_path, "rb") as f:
return tomllib.load(f)