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

cast_load([cast_path, profiles_path])

Resolve a cast into its role table (refuses an invalid cast).

cast_validate([cast_path, profiles_path])

Validate a cast against the four casting rules; exit 1 if invalid.

doctor([cast, dev])

Preflight every external dependency (Ollama, VRAM, Conduit, workspace).

mcp()

Run the outer MCP server over stdio.

setup_ollama([model])

Probe VRAM, pull the model, and warm it up so first turns are fast.

version()

Print the Agora version.

watch([room])

Attach to a Matrix room and print formatted events as they arrive.

agora.cli.version()[source]

Print the Agora version.

agora.cli.mcp()[source]

Run the outer MCP server over stdio.

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.

agora.cli.cast_validate(cast_path=<typer.models.ArgumentInfo object>, profiles_path=<typer.models.OptionInfo object>)[source]

Validate a cast against the four casting rules; exit 1 if invalid.

agora.cli.cast_load(cast_path=<typer.models.ArgumentInfo object>, profiles_path=<typer.models.OptionInfo object>)[source]

Resolve a cast into its role table (refuses an invalid cast).