@dxos/echo
    Preparing search index...

    Function getVersion

    • Gets the version.

      Parameters

      Returns string

      0.1.0
      
      0.1.0-<heads> (in-database, versioned by automerge heads)

      The registry-provenance semver lives in `EntityMeta.version`; unversioned
      drafts default to {@link DRAFT_VERSION} (`'0.0.0'`). In-database entities are
      additionally versioned by their automerge heads, which are exposed as the
      semver pre-release tag (`<semver>-<heads>`). In-memory declarations have no
      heads and surface the bare semver. Read the registry semver alone via
      `Type.getMeta(input).version`.

      O(h log h) in Automerge heads for database types (sorted into the suffix per call); O(1) for in-memory types.