Files
letta-server/letta/main.py
Kian Jones 25d54dd896 chore: enable F821, F401, W293 (#9503)
* auto fixes

* auto fix pt2 and transitive deps and undefined var checking locals()

* manual fixes (ignored or letta-code fixed)

* fix circular import
2026-02-24 10:55:08 -08:00

17 lines
447 B
Python

import typer
from letta.cli.cli import server
app = typer.Typer(pretty_exceptions_enable=False)
# Register server as both the default command and as a subcommand
app.command(name="server")(server)
# Also make server the default when no command is specified
@app.callback(invoke_without_command=True)
def main(ctx: typer.Context):
if ctx.invoked_subcommand is None:
# If no subcommand is specified, run the server
server()