topos.cli.evaluation

Shared helpers for CLI evaluate / inspect — file discovery and formatting.

topos.cli.evaluation.collect_files(paths, recursive, language)[source]

Collect source files for language from paths (files or directories).

topos.cli.evaluation.run_classify_file(filepath, *, priority, gitnexus_dir)[source]

Classify one file using the same pipeline as MCP evaluate-file.

topos.cli.evaluation.result_to_row(filepath, result)[source]

Shape a ClassificationResult for text/JSON CLI output.

topos.cli.evaluation.output_directory_average(results)[source]

Consolidated into output_text. This is now a backward compatible no-op.

topos.cli.evaluation.output_overall(overall)[source]

Consolidated into output_text. This is now a backward compatible no-op.

topos.cli.evaluation.output_text(results, verbose)[source]

Output results as a compact summary, with detailed rows in verbose mode.

topos.cli.evaluation.output_json(results)[source]

Output results as JSON.