Spaces:
Sleeping
Sleeping
File size: 1,466 Bytes
a02272f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | """brain connect — (Placeholder) Connect a Brain Instance to Supabase cloud sync."""
import typer
from brain.config import get_active_brain
from brain.utils.display import error, info, console
def connect(
url: str = typer.Option(
...,
"--url",
help="Supabase project URL (e.g. https://xyzproject.supabase.co).",
),
key: str = typer.Option(
...,
"--key",
help="Supabase anon/public API key.",
),
) -> None:
"""Connect the active Brain Instance to a Supabase backend for cloud sync.
NOTE: This command is a placeholder and does not perform any real connection.
It exists to reserve the command surface for a future Supabase integration.
"""
brain = get_active_brain()
if brain is None:
error("No active Brain. Run: brain create <name>")
raise typer.Exit(code=1)
brain_name = brain.name
# --- Placeholder output — nothing actually happens ---
console.print()
info(f"Brain: [bold]{brain_name}[/bold]")
info(f"Supabase URL: {url}")
info(f"API Key: {key[:8]}{'*' * (len(key) - 8)}")
console.print()
console.print(
"[yellow]![/yellow] Supabase sync is not yet implemented. "
"This command is a placeholder for a future release."
)
console.print(
"[dim] When ready, this will enable cloud-backed memory, "
"cross-device sync, and team collaboration.[/dim]"
)
console.print()
|