Spaces:
Sleeping
Sleeping
File size: 1,402 Bytes
a02272f df55394 a02272f 279ebac a02272f 279ebac a02272f df55394 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 49 | """Brain CLI — entry point for the cognition operating system."""
import typer
from brain.commands.create import create
from brain.commands.use import use
from brain.commands.status import status
from brain.commands.import_brain import import_brain
from brain.commands.attach import attach
from brain.commands.sync import sync
from brain.commands.detach import detach
from brain.commands.connect import connect
from brain.commands.delete import delete
from brain.commands.init import init
from brain.commands.persona import app as persona_app
from brain.commands.auth import app as auth_app
app = typer.Typer(
name="ever-brain",
help="Ever Brain — A Cognition Operating System for AI Coding Agents.",
no_args_is_help=False,
invoke_without_command=True,
)
@app.callback(invoke_without_command=True)
def main(ctx: typer.Context) -> None:
"""Ever Brain — persistent portable cognition for AI agents."""
if ctx.invoked_subcommand is None:
status()
app.command("create")(create)
app.command("use")(use)
app.command("status")(status)
app.command("import")(import_brain)
app.command("attach")(attach)
app.command("sync")(sync)
app.command("detach")(detach)
app.command("connect")(connect)
app.command("delete")(delete)
app.command("init")(init)
app.add_typer(persona_app, name="persona")
app.add_typer(auth_app, name="auth")
if __name__ == "__main__":
app()
|