Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

fix(cli): guard Progress output in JSON mode

Sameer630516af84445741
diff --git a/semantica/cli.py b/semantica/cli.py
index 558af6ac..e9235d2a 100644
--- a/semantica/cli.py
+++ b/semantica/cli.py
@@ -250,7 +250,7 @@ def _run_build(cli_ctx: CLIContext, sources: Sequence[str]) -> None:
spinner="dots",
):
result = framework.build_knowledge_base(sources=list(sources))
- else:
+ elif not cli_ctx.json_output:
result: Dict[str, Any] = {}
with Progress(
SpinnerColumn(),