{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "core/selectors/violation.selector.ts",
          "name": "lastCount",
          "source": {
            "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-selectors-violation-selector-ts",
            "json": "https://banes-lab.com/json/source/pipeline/core/selectors/violation.selector.ts",
            "label": "core/selectors/violation.selector.ts",
            "markdown": "https://banes-lab.com/source/pipeline/core/selectors/violation.selector.ts.md",
            "ref": "anatomy:file-pipeline-core-selectors-violation-selector-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/converters/report.converter.ts",
          "name": "rowsOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-converters-report-converter-ts",
            "json": "https://banes-lab.com/json/source/pipeline/core/converters/report.converter.ts",
            "label": "core/converters/report.converter.ts",
            "markdown": "https://banes-lab.com/source/pipeline/core/converters/report.converter.ts.md",
            "ref": "anatomy:file-pipeline-core-converters-report-converter-ts"
          }
        },
        {
          "file": "core/coordinators/stage.coordinator.ts",
          "name": "runSingleUnit",
          "source": {
            "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-coordinators-stage-coordinator-ts",
            "json": "https://banes-lab.com/json/source/pipeline/core/coordinators/stage.coordinator.ts",
            "label": "core/coordinators/stage.coordinator.ts",
            "markdown": "https://banes-lab.com/source/pipeline/core/coordinators/stage.coordinator.ts.md",
            "ref": "anatomy:file-pipeline-core-coordinators-stage-coordinator-ts"
          }
        },
        {
          "file": "core/coordinators/stage.coordinator.ts",
          "name": "runSub",
          "source": {
            "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-coordinators-stage-coordinator-ts",
            "json": "https://banes-lab.com/json/source/pipeline/core/coordinators/stage.coordinator.ts",
            "label": "core/coordinators/stage.coordinator.ts",
            "markdown": "https://banes-lab.com/source/pipeline/core/coordinators/stage.coordinator.ts.md",
            "ref": "anatomy:file-pipeline-core-coordinators-stage-coordinator-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 7,
      "name": "rowOf",
      "signature": "export const rowOf = function rowOf(stage: string, label: string, outcome: CapturedOutcome): ReportRow {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/report.converter.ts",
          "name": "stageArtifacts",
          "source": {
            "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-converters-report-converter-ts",
            "json": "https://banes-lab.com/json/source/pipeline/core/converters/report.converter.ts",
            "label": "core/converters/report.converter.ts",
            "markdown": "https://banes-lab.com/source/pipeline/core/converters/report.converter.ts.md",
            "ref": "anatomy:file-pipeline-core-converters-report-converter-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/coordinators/report.coordinator.ts",
          "name": "flushReports",
          "source": {
            "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-coordinators-report-coordinator-ts",
            "json": "https://banes-lab.com/json/source/pipeline/core/coordinators/report.coordinator.ts",
            "label": "core/coordinators/report.coordinator.ts",
            "markdown": "https://banes-lab.com/source/pipeline/core/coordinators/report.coordinator.ts.md",
            "ref": "anatomy:file-pipeline-core-coordinators-report-coordinator-ts"
          }
        },
        {
          "file": "core/coordinators/report.coordinator.ts",
          "name": "runReport",
          "source": {
            "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-coordinators-report-coordinator-ts",
            "json": "https://banes-lab.com/json/source/pipeline/core/coordinators/report.coordinator.ts",
            "label": "core/coordinators/report.coordinator.ts",
            "markdown": "https://banes-lab.com/source/pipeline/core/coordinators/report.coordinator.ts.md",
            "ref": "anatomy:file-pipeline-core-coordinators-report-coordinator-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 48,
      "name": "buildArtifact",
      "signature": "export const buildArtifact = function buildArtifact(rows: readonly ReportRow[], label: string): ReportArtifact {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/coordinators/report.coordinator.ts",
          "name": "recordRow",
          "source": {
            "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-coordinators-report-coordinator-ts",
            "json": "https://banes-lab.com/json/source/pipeline/core/coordinators/report.coordinator.ts",
            "label": "core/coordinators/report.coordinator.ts",
            "markdown": "https://banes-lab.com/source/pipeline/core/coordinators/report.coordinator.ts.md",
            "ref": "anatomy:file-pipeline-core-coordinators-report-coordinator-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "outputOf",
      "signature": "export const outputOf = function outputOf(row: ReportRow): StepOutput {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/reporters/stage.reporter.ts",
          "name": "printReportSummary",
          "source": {
            "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-reporters-stage-reporter-ts",
            "json": "https://banes-lab.com/json/source/pipeline/core/reporters/stage.reporter.ts",
            "label": "core/reporters/stage.reporter.ts",
            "markdown": "https://banes-lab.com/source/pipeline/core/reporters/stage.reporter.ts.md",
            "ref": "anatomy:file-pipeline-core-reporters-stage-reporter-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "tallyByStage",
      "signature": "export const tallyByStage = function tallyByStage(rows: readonly ReportRow[]): Map<string, StageTally> {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/report.converter.ts",
          "name": "buildArtifact",
          "source": {
            "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-converters-report-converter-ts",
            "json": "https://banes-lab.com/json/source/pipeline/core/converters/report.converter.ts",
            "label": "core/converters/report.converter.ts",
            "markdown": "https://banes-lab.com/source/pipeline/core/converters/report.converter.ts.md",
            "ref": "anatomy:file-pipeline-core-converters-report-converter-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 34,
      "name": "stageArtifacts",
      "signature": "const stageArtifacts = function stageArtifacts(rows: readonly ReportRow[]): StageArtifact[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/report.converter.ts",
          "name": "rowOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-converters-report-converter-ts",
            "json": "https://banes-lab.com/json/source/pipeline/core/converters/report.converter.ts",
            "label": "core/converters/report.converter.ts",
            "markdown": "https://banes-lab.com/source/pipeline/core/converters/report.converter.ts.md",
            "ref": "anatomy:file-pipeline-core-converters-report-converter-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 15,
      "name": "rowsOf",
      "signature": "export const rowsOf = function rowsOf(outputs: readonly StepOutput[]): ReportRow[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 22,
      "name": "tallies",
      "signature": "const tallies = new Map<string, StageTally>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "entry",
      "signature": "const entry = tallies.get(row.stage) ?? { failed: 0, passed: 0, violations: 0 };"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "order",
      "signature": "const order = [...new Set(rows.map((row) => row.stage))];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 37,
      "name": "stageRows",
      "signature": "const stageRows = rows.filter((row) => row.stage === stage);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 49,
      "name": "failed",
      "signature": "const failed = rows.filter((row) => row.code !== 0).length;"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-converters-report-converter-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "report.converter.ts",
  "path": "core/converters/report.converter.ts",
  "ref": "anatomy:file-pipeline-core-converters-report-converter-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/pipeline#folder-pipeline-core-converters",
          "json": "https://banes-lab.com/json/anatomy/pipeline/folder-pipeline-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/pipeline/folder-pipeline-core-converters.md",
          "ref": "chapter:/anatomy/pipeline#folder-pipeline-core-converters"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-selectors-violation-selector-ts",
          "json": "https://banes-lab.com/json/source/pipeline/core/selectors/violation.selector.ts",
          "label": "core/selectors/violation.selector.ts",
          "markdown": "https://banes-lab.com/source/pipeline/core/selectors/violation.selector.ts.md",
          "ref": "anatomy:file-pipeline-core-selectors-violation-selector-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-coordinators-report-coordinator-ts",
          "json": "https://banes-lab.com/json/source/pipeline/core/coordinators/report.coordinator.ts",
          "label": "core/coordinators/report.coordinator.ts",
          "markdown": "https://banes-lab.com/source/pipeline/core/coordinators/report.coordinator.ts.md",
          "ref": "anatomy:file-pipeline-core-coordinators-report-coordinator-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-coordinators-stage-coordinator-ts",
          "json": "https://banes-lab.com/json/source/pipeline/core/coordinators/stage.coordinator.ts",
          "label": "core/coordinators/stage.coordinator.ts",
          "markdown": "https://banes-lab.com/source/pipeline/core/coordinators/stage.coordinator.ts.md",
          "ref": "anatomy:file-pipeline-core-coordinators-stage-coordinator-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-reporters-stage-reporter-ts",
          "json": "https://banes-lab.com/json/source/pipeline/core/reporters/stage.reporter.ts",
          "label": "core/reporters/stage.reporter.ts",
          "markdown": "https://banes-lab.com/source/pipeline/core/reporters/stage.reporter.ts.md",
          "ref": "anatomy:file-pipeline-core-reporters-stage-reporter-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/pipeline#folder-pipeline-core-converters",
          "json": "https://banes-lab.com/json/anatomy/pipeline/folder-pipeline-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/pipeline/folder-pipeline-core-converters.md",
          "ref": "chapter:/anatomy/pipeline#folder-pipeline-core-converters"
        },
        {
          "href": "https://banes-lab.com/anatomy/pipeline#folder-pipeline-core-coordinators",
          "json": "https://banes-lab.com/json/anatomy/pipeline/folder-pipeline-core-coordinators",
          "label": "core/coordinators",
          "markdown": "https://banes-lab.com/anatomy/pipeline/folder-pipeline-core-coordinators.md",
          "ref": "chapter:/anatomy/pipeline#folder-pipeline-core-coordinators"
        },
        {
          "href": "https://banes-lab.com/anatomy/pipeline#folder-pipeline-core-reporters",
          "json": "https://banes-lab.com/json/anatomy/pipeline/folder-pipeline-core-reporters",
          "label": "core/reporters",
          "markdown": "https://banes-lab.com/anatomy/pipeline/folder-pipeline-core-reporters.md",
          "ref": "chapter:/anatomy/pipeline#folder-pipeline-core-reporters"
        },
        {
          "href": "https://banes-lab.com/anatomy/pipeline#folder-pipeline-core-selectors",
          "json": "https://banes-lab.com/json/anatomy/pipeline/folder-pipeline-core-selectors",
          "label": "core/selectors",
          "markdown": "https://banes-lab.com/anatomy/pipeline/folder-pipeline-core-selectors.md",
          "ref": "chapter:/anatomy/pipeline#folder-pipeline-core-selectors"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "converter",
    "subject": "report",
    "variant": null
  },
  "stats": {
    "bytes": 2655,
    "callable": 6,
    "definitions": 11,
    "edges": 3,
    "exported": 8,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 2,
      "leaf": 3,
      "entry": 1,
      "isolated": 5
    },
    "lines": {
      "blank": 6,
      "code": 56,
      "total": 62
    }
  },
  "summary": "56 lines of code and 11 definitions.",
  "text": "https://banes-lab.com/source/pipeline/core/converters/report.converter.ts.txt",
  "tree": "pipeline",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-converters-stage-converter-ts",
      "json": "https://banes-lab.com/json/source/pipeline/core/converters/stage.converter.ts",
      "label": "core/converters/stage.converter.ts",
      "markdown": "https://banes-lab.com/source/pipeline/core/converters/stage.converter.ts.md",
      "ref": "anatomy:file-pipeline-core-converters-stage-converter-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-converters-invocation-converter-ts",
      "json": "https://banes-lab.com/json/source/pipeline/core/converters/invocation.converter.ts",
      "label": "core/converters/invocation.converter.ts",
      "markdown": "https://banes-lab.com/source/pipeline/core/converters/invocation.converter.ts.md",
      "ref": "anatomy:file-pipeline-core-converters-invocation-converter-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/pipeline/core/converters",
    "label": "core/converters",
    "markdown": "https://banes-lab.com/api/source/pipeline/core/converters.md",
    "ref": "api:source/pipeline/core/converters"
  }
}
