vibeqc.build_info

vibeqc.build_info()[source]

Return git provenance for the current build, or empty mapping if no .git/ is available (e.g. installed wheel).

Keys (always present, may be None / False):

  • branch : current branch name, or "HEAD" for detached.

  • sha : 7-character abbreviated commit SHA.

  • sha_full: full 40-character SHA.

  • dirty : True if the working tree has uncommitted changes.

  • tagexact tag at HEAD, e.g. "v0.4.1"; None if not

    on a tag.

  • is_release: True if the current commit is exactly tagged AND

    the working tree is clean. This is the only state where the banner displays as “Release X.Y.Z”.

Empty dict ({}) when no git context exists at all.

Return type:

Mapping[str, str | bool | None]