From 77f67c1bd9b15b88e0ef7c2e80051291c5200109 Mon Sep 17 00:00:00 2001 From: Pejman Pour-Moezzi Date: Wed, 8 Apr 2026 13:03:41 -0700 Subject: [PATCH] last30days: finish runtime/report rename --- scripts/last30days.py | 2 +- scripts/lib/render.py | 4 ++-- tests/test_cli_v3.py | 3 ++- tests/test_generate_synthesis_inputs_v3.py | 2 +- tests/test_render_v3.py | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/last30days.py b/scripts/last30days.py index 7668f7e..d5b5b87 100644 --- a/scripts/last30days.py +++ b/scripts/last30days.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # ruff: noqa: E402 -"""last30days-3 v3.0.0-alpha CLI.""" +"""last30days v3.0.0 CLI.""" from __future__ import annotations diff --git a/scripts/lib/render.py b/scripts/lib/render.py index 395c1e4..2506cf5 100644 --- a/scripts/lib/render.py +++ b/scripts/lib/render.py @@ -27,7 +27,7 @@ _FUN_LEVELS = { def render_compact(report: schema.Report, cluster_limit: int = 8, fun_level: str = "medium") -> str: non_empty = [s for s, items in sorted(report.items_by_source.items()) if items] lines = [ - f"# last30days-3 v3.0.0-alpha: {report.topic}", + f"# last30days v3.0.0: {report.topic}", "", f"- Date range: {report.range_from} to {report.range_to}", f"- Sources: {len(non_empty)} active ({', '.join(_source_label(s) for s in non_empty)})" if non_empty else "- Sources: none", @@ -81,7 +81,7 @@ def render_full(report: schema.Report) -> str: # Start with the same header as compact non_empty = [s for s, items in sorted(report.items_by_source.items()) if items] lines = [ - f"# last30days-3 v3.0.0-alpha: {report.topic}", + f"# last30days v3.0.0: {report.topic}", "", f"- Date range: {report.range_from} to {report.range_to}", f"- Sources: {len(non_empty)} active ({', '.join(_source_label(s) for s in non_empty)})" if non_empty else "- Sources: none", diff --git a/tests/test_cli_v3.py b/tests/test_cli_v3.py index e09b68d..b578538 100644 --- a/tests/test_cli_v3.py +++ b/tests/test_cli_v3.py @@ -93,12 +93,13 @@ class CliV3Tests(unittest.TestCase): def test_slugify_and_emit_output_cover_supported_modes(self): report = self.make_report() self.assertEqual("openclaw-vs-nanoclaw", cli.slugify(report.topic)) + self.assertEqual("last30days v3.0.0 CLI.", cli.__doc__) compact = cli.emit_output(report, "compact") json_output = cli.emit_output(report, "json") context = cli.emit_output(report, "context") - self.assertIn("# last30days-3 v3.0.0-alpha", compact) + self.assertIn("# last30days v3.0.0", compact) self.assertIn('"topic": "OpenClaw vs NanoClaw"', json_output) self.assertIsInstance(context, str) diff --git a/tests/test_generate_synthesis_inputs_v3.py b/tests/test_generate_synthesis_inputs_v3.py index 7fd1a44..b7b2f20 100644 --- a/tests/test_generate_synthesis_inputs_v3.py +++ b/tests/test_generate_synthesis_inputs_v3.py @@ -116,7 +116,7 @@ class GenerateSynthesisInputsV3Tests(unittest.TestCase): self.assertEqual(0, result) output = (compact_dir / "sample.md").read_text() - self.assertIn("# last30days-3 v3.0.0-alpha: test topic", output) + self.assertIn("# last30days v3.0.0: test topic", output) if __name__ == "__main__": diff --git a/tests/test_render_v3.py b/tests/test_render_v3.py index 105b5ae..ee61e8c 100644 --- a/tests/test_render_v3.py +++ b/tests/test_render_v3.py @@ -91,7 +91,7 @@ def sample_report() -> schema.Report: class RenderV3Tests(unittest.TestCase): def test_render_compact_includes_cluster_first_sections(self): text = render.render_compact(sample_report()) - self.assertIn("# last30days-3 v3.0.0-alpha: test topic", text) + self.assertIn("# last30days v3.0.0: test topic", text) self.assertIn("## Ranked Evidence Clusters", text) self.assertIn("## Stats", text) self.assertIn("Total evidence: 2 items across 2 sources", text)