{
  "id": "task/node",
  "family": "runtime-cli",
  "description": "Compact node output while preserving stack traces, uncaught errors, and process failures.",
  "match": {
    "toolNames": ["exec"],
    "argv0": ["node"]
  },
  "transforms": {
    "stripAnsi": true,
    "dedupeAdjacent": true,
    "trimEmptyEdges": true
  },
  "summarize": {
    "head": 12,
    "tail": 12
  },
  "failure": {
    "preserveOnFailure": true,
    "head": 20,
    "tail": 20
  },
  "counters": [
    {
      "name": "error",
      "pattern": "Error:|TypeError:|ReferenceError:|SyntaxError:|UnhandledPromiseRejection|ERR_",
      "flags": "i"
    }
  ]
}
