kit_root.py python
18 lines 528 B
Raw
sha256:a78e7e5a8740e03315f325d19edeb3aa1b306b3337d04abbaa9a9e0f3bbeb7a1 docs: MuseHub-first before ISR #74 — staging solidify NEXT Human 1 day 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 2 commits
sha256:a78e7e5a8740e03315f325d19edeb3aa1b306b3337d04abbaa9a9e0f3bbeb7a1 docs: MuseHub-first before ISR #74 — staging solidify NEXT Human 1 day ago
sha256:4671b7f787ddbe63ced31c895b688c77ab495653b65a730b423329f26b3c1439 feat: K1-P1 complete — agent provenance, build-verification… Sonnet 4.6 patch 53 days ago