agora.cli
Typer CLI entry point.
Subcommands:
- agora mcp — run the outer MCP server over stdio.
- agora watch — attach to a project room and stream events into the terminal.
- agora setup-ollama — VRAM-check then pull the default Ollama model.
- agora doctor — probe Ollama, GPU, and report status.
- agora version — print the package version.
Functions
|
Resolve a cast into its role table (refuses an invalid cast). |
|
Validate a cast against the four casting rules; exit 1 if invalid. |
|
Preflight every external dependency (Ollama, VRAM, Conduit, workspace). |
|
Run the outer MCP server over stdio. |
|
Probe VRAM, pull the model, and warm it up so first turns are fast. |
|
Print the Agora version. |
|
Attach to a Matrix room and print formatted events as they arrive. |
- agora.cli.setup_ollama(model=<typer.models.OptionInfo object>)[source]
Probe VRAM, pull the model, and warm it up so first turns are fast.
- agora.cli.watch(room=<typer.models.ArgumentInfo object>)[source]
Attach to a Matrix room and print formatted events as they arrive.
Useful for smoke-testing the observer layer without a full MCP session.
- agora.cli.doctor(cast=<typer.models.OptionInfo object>, dev=<typer.models.OptionInfo object>)[source]
Preflight every external dependency (Ollama, VRAM, Conduit, workspace).
Composition root: reads Settings and injects endpoints into agora.doctor (the one place health checks live). Non-zero exit on any red.