{
  "id": "filesystem/find",
  "family": "filesystem-find",
  "description": "Compact find output while preserving matches and failure context.",
  "match": {
    "toolNames": ["exec"],
    "argv0": ["find"]
  },
  "transforms": {
    "stripAnsi": true,
    "dedupeAdjacent": true,
    "trimEmptyEdges": true
  },
  "filters": {
    "keepPatterns": [
      "^\\./.+",
      "^/.+",
      "Permission denied",
      "No such file"
    ]
  },
  "summarize": {
    "head": 8,
    "tail": 6
  },
  "failure": {
    "preserveOnFailure": true,
    "head": 12,
    "tail": 10
  },
  "counters": [
    {
      "name": "match",
      "pattern": "^(?!find: ).+\\S.*$"
    },
    {
      "name": "permission denied",
      "pattern": "Permission denied",
      "flags": "i"
    }
  ]
}
