debrief-cli 0.1.0__tar.gz → 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/PKG-INFO +1 -1
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/cli.py +4 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/export_site.py +9 -4
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/pyproject.toml +1 -1
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/tests/test_cli.py +3 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/.gitignore +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/LICENSE +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/README.md +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/__init__.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/build_artifact.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/classify.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/compare_definitions.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/compare_llm.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/config.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/db.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/export.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/github.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/normalize.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/paths.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/prune.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/recommend.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/relay.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/runner.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/scrape.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/site/app.js +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/site/index.html +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/site/method.js +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/site/style.css +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/skills.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/sources.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/synthesize.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/debrief/verify_evidence.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/tests/conftest.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/tests/test_classify.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/tests/test_config.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/tests/test_export_site.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/tests/test_export_site_db.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/tests/test_github.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/tests/test_paths.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/tests/test_relay.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/tests/test_sources.py +0 -0
- {debrief_cli-0.1.0 → debrief_cli-0.1.1}/tests/test_synthesize.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: debrief-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Review your coding-agent sessions: what went wrong, and what to change.
|
|
5
5
|
Project-URL: Homepage, https://github.com/mvwi/debrief
|
|
6
6
|
Project-URL: Issues, https://github.com/mvwi/debrief/issues
|
|
@@ -251,6 +251,10 @@ def serve(argv: list[str]) -> None:
|
|
|
251
251
|
# connection open for as long as the server lives, and its lock would fail those runs.
|
|
252
252
|
for name in ("ingest", "export"):
|
|
253
253
|
subprocess.run([sys.executable, "-m", f"{__package__}.cli", name], check=True)
|
|
254
|
+
else:
|
|
255
|
+
# The report keeps a copy of the page from its last build; after an upgrade that copy is old.
|
|
256
|
+
from debrief.export_site import copy_static
|
|
257
|
+
copy_static(SITE_OUT)
|
|
254
258
|
signal.signal(signal.SIGTERM, signal.default_int_handler) # `kill` stops a run too, as Ctrl-C does
|
|
255
259
|
url = f"http://127.0.0.1:{server.server_port}/"
|
|
256
260
|
url += f"?t={ReportHandler.token}" # the page keeps the token for this tab and drops it from the address
|
|
@@ -587,6 +587,14 @@ def repo_of(prs: dict) -> str | None:
|
|
|
587
587
|
return repos.pop() if len(repos) == 1 else None
|
|
588
588
|
|
|
589
589
|
|
|
590
|
+
def copy_static(out: Path) -> None:
|
|
591
|
+
"""Put the page's own files (HTML, CSS, JS) in the site folder."""
|
|
592
|
+
out.mkdir(parents=True, exist_ok=True)
|
|
593
|
+
for static in SITE_SRC.iterdir():
|
|
594
|
+
if static.is_file():
|
|
595
|
+
shutil.copy(static, out / static.name)
|
|
596
|
+
|
|
597
|
+
|
|
590
598
|
def main(argv: list[str] | None = None) -> None:
|
|
591
599
|
parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
|
|
592
600
|
parser.add_argument("--run", help="Findings run_id (default: latest with recommendations)")
|
|
@@ -631,10 +639,7 @@ def main(argv: list[str] | None = None) -> None:
|
|
|
631
639
|
"ci": ci, "reviews": [r for r in review_section(conn) if r["pr"] in linked], "prs": prs,
|
|
632
640
|
"skills": skills_section(conn, set(authors)),
|
|
633
641
|
}
|
|
634
|
-
SITE_OUT
|
|
635
|
-
for static in SITE_SRC.iterdir():
|
|
636
|
-
if static.is_file():
|
|
637
|
-
shutil.copy(static, SITE_OUT / static.name)
|
|
642
|
+
copy_static(SITE_OUT)
|
|
638
643
|
out = SITE_OUT / "data"
|
|
639
644
|
shard_dir = out / "sessions"
|
|
640
645
|
shard_dir.mkdir(parents=True, exist_ok=True)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
# "debrief" is taken on PyPI. The command and the import package are still `debrief`.
|
|
3
3
|
name = "debrief-cli"
|
|
4
|
-
version = "0.1.
|
|
4
|
+
version = "0.1.1"
|
|
5
5
|
description = "Review your coding-agent sessions: what went wrong, and what to change."
|
|
6
6
|
readme = "README.md"
|
|
7
7
|
requires-python = ">=3.13"
|
|
@@ -359,7 +359,10 @@ def test_open_with_no_report_ingests_and_exports_only(tmp_path, monkeypatch):
|
|
|
359
359
|
(tmp_path / "site" / "data").mkdir(parents=True)
|
|
360
360
|
(tmp_path / "site" / "data" / "index.json").write_text("{}")
|
|
361
361
|
cli.serve(["--no-browser", "--port", "0"])
|
|
362
|
+
(tmp_path / "site" / "app.js").write_text("// from an older version")
|
|
363
|
+
cli.serve(["--no-browser", "--port", "0"])
|
|
362
364
|
assert stages == [] # a home with a report starts at once
|
|
365
|
+
assert (tmp_path / "site" / "app.js").read_text() == (SITE_SRC / "app.js").read_text() # an upgrade reaches the page
|
|
363
366
|
|
|
364
367
|
|
|
365
368
|
@pytest.mark.skipif(not shutil.which("node"), reason="needs node")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|