kit_root.py python
18 lines 528 B
Raw
sha256:0e9549ec7b463911bc08b7d586dc320b1ac9b1f5c943ee7e3865dcc6cb0f6f83 chore(governance): sync handover+roadmap to 84db8c8 (drift:… Human 9 hours ago
1 """Locate the kit installation root and carried version."""
2
3 from __future__ import annotations
4
5 from functools import lru_cache
6 from pathlib import Path
7
8
9 @lru_cache(maxsize=1)
10 def kit_root() -> Path:
11 """Return the absolute path to the overseer-kit root (parent of ``cli/``)."""
12 return Path(__file__).resolve().parent.parent
13
14
15 def kit_version() -> str:
16 """Read the semver carried by this CLI from ``VERSION``."""
17 version_path = kit_root() / "VERSION"
18 return version_path.read_text(encoding="utf-8").strip()
File History 1 commit
sha256:6abcf1fa82a7a621ccbc945f19acdba5bc0db54569599404a1452fb4a096a199 fix(ISR): default require_independent_second_reviewer to require Human minor 9 hours ago