Add the assistant: a chat that drives the MCP tools in-process
Docs / docs (push) Successful in 42s
Playwright Tests / test-playwright (1, 2) (push) Failing after 2m42s
Playwright Tests / test-playwright (2, 2) (push) Failing after 10s
pre-commit / pre-commit (push) Failing after 2m33s
Test Backend / test-backend (push) Failing after 2m48s
Compose Smoke Test / test-compose (push) Failing after 9s
Playwright Tests / merge-reports (push) Failing after 2m17s
Docs / docs (push) Successful in 42s
Playwright Tests / test-playwright (1, 2) (push) Failing after 2m42s
Playwright Tests / test-playwright (2, 2) (push) Failing after 10s
pre-commit / pre-commit (push) Failing after 2m33s
Test Backend / test-backend (push) Failing after 2m48s
Compose Smoke Test / test-compose (push) Failing after 9s
Playwright Tests / merge-reports (push) Failing after 2m17s
A provider set under Settings (OpenAI-compatible; key encrypted in flow-data/ai.json) turns on an Assistant panel in the sidebar. Each turn runs the FastMCP tools in-process as the person chatting, streams the rounds over SSE and keeps one transcript per user. The panel floats on any screen and shares the editor's lane: a settings panel keeps the top half, the chat the bottom. The MCP client is now built once, for the endpoint and the chat. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -34,14 +34,18 @@ class SecretNotFound(KeyError):
|
||||
return f"No secret named '{self.name}' — add it under Secrets."
|
||||
|
||||
|
||||
def fernet(key: str) -> Fernet:
|
||||
"""The cipher a store keyed on the app key uses, so every one of them
|
||||
turns unreadable together when ``SECRET_KEY`` changes."""
|
||||
return Fernet(base64.urlsafe_b64encode(hashlib.sha256(key.encode()).digest()))
|
||||
|
||||
|
||||
class SecretsStore:
|
||||
"""Named credentials, encrypted at rest with a key derived from the app key."""
|
||||
|
||||
def __init__(self, path: Path, key: str) -> None:
|
||||
self._path = path
|
||||
self._fernet = Fernet(
|
||||
base64.urlsafe_b64encode(hashlib.sha256(key.encode()).digest())
|
||||
)
|
||||
self._fernet = fernet(key)
|
||||
|
||||
def _read(self) -> dict[str, str]:
|
||||
if not self._path.exists():
|
||||
|
||||
Reference in New Issue
Block a user