[COMBINE] P0.5 карантин 15 атрибутов, P0.6 retry 18380 URL, P0.7 junk report, P0.8 merge, страница отчётов /reports/
This commit is contained in:
1 parent
39fca83f57
commit
1c04fa1511
17 files changed
+1242
No files matched your search
@@ -0,0 +1,43 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Сборка страницы отчётов Комбайна/инфраструктуры для http://...:8096/reports/."""
|
||||
import html
|
||||
import os
|
||||
import time
|
||||
|
||||
WEB = "/root/buryan-infra/ops/work/web"
|
||||
OUT = os.path.join(WEB, "reports")
|
||||
FILES = [
|
||||
("LLM-аудит Комбайна (13:05)", "/root/buryan-infra/ops/audits/COMBINE-LLM-AUDIT-20261118-1305.md"),
|
||||
("P0-stage отчёт", "/root/buryan-infra/ops/combine/P0-STAGE-REPORT-2026-11-18.md"),
|
||||
("P0 diff", "/root/buryan-infra/ops/combine/P0-DIFF-2026-11-18.md"),
|
||||
("Нормализация каталога", "/root/buryan-infra/ops/combine/NORMALIZATION-REPORT-2026-11-18.md"),
|
||||
("Стратегия Комбайна", "/root/buryan-infra/ops/combine/STRATEGY-2026-11-18.md"),
|
||||
("Вендоры research", "/root/buryan-infra/ops/combine/VENDORS-RESEARCH.md"),
|
||||
("VPS fix", "/root/buryan-infra/ops/audits/VPS-FIX-2026-11-18.md"),
|
||||
("Сценарии OpenClaw", "/root/buryan-infra/ops/openclaw/SCENARIOS.md"),
|
||||
("Оценка (eval)", "/root/buryan-infra/ops/audits/EVAL-FINAL-2026-11-17.md"),
|
||||
]
|
||||
os.makedirs(OUT, exist_ok=True)
|
||||
|
||||
|
||||
def page(title, body):
|
||||
return """<!doctype html><html lang="ru"><head><meta charset="utf-8">
|
||||
<title>%s</title><style>body{font:15px/1.5 system-ui;background:#0d1117;color:#e6edf3;margin:0;padding:24px}
|
||||
pre{white-space:pre-wrap;background:#161b22;border:1px solid #30363d;border-radius:10px;padding:18px;overflow:auto}
|
||||
a{color:#58a6ff} .nav{margin-bottom:16px} h1{font-size:22px}</style></head>
|
||||
<body><div class="nav"><a href="/">Комбайн</a> · <a href="/reports/">Отчёты</a></div>
|
||||
<h1>%s</h1>%s</body></html>""" % (html.escape(title), html.escape(title), body)
|
||||
|
||||
|
||||
cards = []
|
||||
for title, path in FILES:
|
||||
if not os.path.exists(path):
|
||||
continue
|
||||
slug = os.path.basename(path).replace(".md", ".html")
|
||||
txt = open(path, encoding="utf-8", errors="replace").read()
|
||||
open(os.path.join(OUT, slug), "w", encoding="utf-8").write(
|
||||
page(title, "<pre>%s</pre>" % html.escape(txt)))
|
||||
cards.append('<li><a href="/reports/%s">%s</a></li>' % (slug, html.escape(title)))
|
||||
open(os.path.join(OUT, "index.html"), "w", encoding="utf-8").write(
|
||||
page("Отчёты", "<ul>%s</ul>" % "".join(cards)))
|
||||
print("reports", len(cards), "->", OUT)
|
||||
Reference in new issue
Block a user