{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aimeat-io/json-schema/aimeat-io-running-build-schema.json",
  "title": "RunningBuild",
  "description": "Which code a node process runs, as GET /v1/build and GET /v1/health report it.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aimeat-io-discovery-api-openapi.yml#/components/schemas/RunningBuild",
  "type": "object",
  "properties": {
    "commit": {
      "type": [
        "string",
        "null"
      ],
      "description": "The full commit id. Null on an install that has neither a build stamp with a commit nor a git checkout (a package from the registry built outside git, or a container image whose build had no `.git`)."
    },
    "commit_source": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "stamp",
        "git",
        null
      ],
      "description": "`stamp`: the commit the running `dist/` was built from. `git`: the commit the checkout is on, for a node that runs from source.\n"
    },
    "dirty": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Whether the tree had uncommitted changes when it was built. Null when the node runs from source, where only git itself could say."
    },
    "built_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the running `dist/` was built. Null from source."
    },
    "state": {
      "type": "string",
      "enum": [
        "fresh",
        "stale",
        "source",
        "unknown"
      ],
      "description": "`fresh`: built from the source on disk. `stale`: the source on disk is newer than the build, so the process runs older code than the checkout holds. `source`: running from source, nothing to compare. `unknown`: a built install with no source beside it.\n"
    }
  }
}