{
  "id": "devops/docker-compose",
  "family": "container-compose",
  "description": "Compact docker compose output while preserving service rows, status, and failures.",
  "match": {
    "toolNames": ["exec"],
    "argv0": ["docker"],
    "argvIncludes": [["compose"]]
  },
  "transforms": {
    "stripAnsi": true,
    "dedupeAdjacent": true,
    "trimEmptyEdges": true
  },
  "filters": {
    "keepPatterns": [
      "error|warn|failed|unhealthy|exited|orphan",
      "^(NAME|SERVICE|CONTAINER ID)\\s+",
      "^[-a-zA-Z0-9_.]+\\s+.+",
      "^\\s*\\d+ services?\\s+",
      "^\\s*\\d+ containers?\\s+"
    ]
  },
  "summarize": {
    "head": 8,
    "tail": 6
  },
  "failure": {
    "preserveOnFailure": true,
    "head": 10,
    "tail": 10
  },
  "counters": [
    {
      "name": "service",
      "pattern": "^(?!NAME\\s|SERVICE\\s|CONTAINER ID\\s).+\\S.*$"
    },
    {
      "name": "error",
      "pattern": "error|failed|unhealthy|exited",
      "flags": "i"
    }
  ]
}
