OUTPUT #872 | 1574 karakter | 36 satır
========== YENİ KOMUT | 21.09.2026 13:15:04 ==========
========== YENİ KOMUT | 21.09.2026 13:15:04 ==========
7:ARCHIVES = pathlib.Path("/root/hermes-benchmark-archive")
15: if a.child:
16: out.append(a.child)
17: out += a.needle or []
20:def visible_hits(ts):
35: project_path = pathlib.Path(a.project_path) if a.project_path else HOME / "shorts" / a.project
37: if a.child:
38: contract_paths.append(CONTRACTS / f"{a.child}.json")
39: hits = visible_hits(terms(a))
41: print("project_present=", project_path.exists())
44: print("visible_hits=", len(hits))
47: return project_path, contract_paths, hits, mm
49:def archive_file(src, dst):
55:def reset(a):
61: project_path = pathlib.Path(a.project_path) if a.project_path else HOME / "shorts" / a.project
62: if project_path.exists():
63: archive_file(project_path, base / "source-project")
65: for sid in [a.parent, a.child]:
70: archive_file(p, base / "creative-contracts" / p.name)
103: archive_file(p, base / "forensic" / p.name)
110: "child": a.child,
111: "needles": a.needle or [],
120: project_exists = (pathlib.Path(a.project_path) if a.project_path else HOME / "shorts" / a.project).exists()
123: for sid in [a.parent, a.child] if sid
131: ap.add_argument("action", choices=["audit","reset","verify"])
136: ap.add_argument("--child")
137: ap.add_argument("--needle", action="append")
142: elif a.action == "reset":
143: reset(a)
root@213-238-170-219:~#