{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/layer.converter.ts",
          "name": "stripConcern",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-converters-layer-converter-ts",
            "json": "https://banes-lab.com/json/source/docs/core/converters/layer.converter.ts",
            "label": "core/converters/layer.converter.ts",
            "markdown": "https://banes-lab.com/source/docs/core/converters/layer.converter.ts.md",
            "ref": "anatomy:file-docs-core-converters-layer-converter-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "withoutRepoMetrics",
      "signature": "const withoutRepoMetrics = function withoutRepoMetrics(text: string): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "LABEL_SEPARATOR",
      "signature": "const LABEL_SEPARATOR = \"/\";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "unchanged",
      "signature": "const unchanged = function unchanged(text: string): string {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "membersBelow",
      "signature": "const membersBelow = function membersBelow(all: readonly ManifestModule[], moduleDir: string): ManifestModule[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 25,
      "name": "prefix",
      "signature": "const prefix = resolve(moduleDir) + sep;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "class_declaration",
      "line": 29,
      "name": "SpecOutputs",
      "signature": "export class SpecOutputs {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 30,
      "name": "discoverAll",
      "signature": "private readonly discoverAll: () => ManifestModule[];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 31,
      "name": "engine",
      "signature": "private readonly engine: SpecEngine;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 32,
      "name": "formatMarkdown",
      "signature": "private readonly formatMarkdown: (markdown: string) => Promise<string>;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 33,
      "name": "root",
      "signature": "private readonly root: string;"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 35,
      "name": "constructor",
      "signature": "public constructor(deps: SpecOutputsDeps) {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 42,
      "name": "moduleOutputs",
      "signature": "public async moduleOutputs(module: DocModule): Promise<ModuleOutput> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 43,
      "name": "members",
      "signature": "const members = membersBelow(this.discoverAll(), module.dir);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 44,
      "name": "charts",
      "signature": "const charts = await renderChartsFor(module.dir, module.label, members);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 45,
      "name": "hasCharts",
      "signature": "const hasCharts = charts !== null;"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 56,
      "name": "composeReadme",
      "signature": "private async composeReadme(moduleDir: string, onDisk: string, hasCharts: boolean): Promise<string> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 57,
      "name": "body",
      "signature": "const body = await this.formatMarkdown(this.engine.generateReadme(moduleDir, hasCharts));"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 61,
      "name": "readmeSpecs",
      "signature": "private readmeSpecs(module: DocModule, hasCharts: boolean): Spec[] {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 76,
      "name": "docLocation",
      "signature": "private docLocation(doc: DocumentDecl): string | null {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 87,
      "name": "documentSpec",
      "signature": "private documentSpec(doc: DocumentDecl): Spec[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 88,
      "name": "rel",
      "signature": "const rel = this.docLocation(doc);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 105,
      "name": "documentSpecs",
      "signature": "private documentSpecs(module: DocModule): Spec[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 106,
      "name": "{ documents }",
      "signature": "const { documents } = module.manifest;"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "method_definition",
      "line": 110,
      "name": "chartSpecs",
      "signature": "private chartSpecs(module: DocModule, charts: Charts | null): Spec[] {"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/docs#file-docs-core-factories-document-output-factory-ts",
  "language": "typescript",
  "layer": "infrastructure",
  "name": "document.output.factory.ts",
  "path": "core/factories/document.output.factory.ts",
  "ref": "anatomy:file-docs-core-factories-document-output-factory-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-core-factories",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-factories",
          "label": "core/factories",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-factories.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-factories"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#file-docs-core-converters-layer-converter-ts",
          "json": "https://banes-lab.com/json/source/docs/core/converters/layer.converter.ts",
          "label": "core/converters/layer.converter.ts",
          "markdown": "https://banes-lab.com/source/docs/core/converters/layer.converter.ts.md",
          "ref": "anatomy:file-docs-core-converters-layer-converter-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-core-converters",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-converters.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-converters"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "factory",
    "subject": "document",
    "variant": "output"
  },
  "stats": {
    "bytes": 4913,
    "callable": 11,
    "definitions": 24,
    "edges": 1,
    "exported": 19,
    "files": 1,
    "findings": {},
    "flows": {
      "entry": 1,
      "isolated": 23
    },
    "lines": {
      "blank": 13,
      "code": 116,
      "total": 129
    }
  },
  "summary": "116 lines of code and 24 definitions.",
  "text": "https://banes-lab.com/source/docs/core/factories/document.output.factory.ts.txt",
  "tree": "docs",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/docs#file-docs-core-factories-environment-factory-ts",
      "json": "https://banes-lab.com/json/source/docs/core/factories/environment.factory.ts",
      "label": "core/factories/environment.factory.ts",
      "markdown": "https://banes-lab.com/source/docs/core/factories/environment.factory.ts.md",
      "ref": "anatomy:file-docs-core-factories-environment-factory-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/docs#file-docs-core-factories-document-factory-ts",
      "json": "https://banes-lab.com/json/source/docs/core/factories/document.factory.ts",
      "label": "core/factories/document.factory.ts",
      "markdown": "https://banes-lab.com/source/docs/core/factories/document.factory.ts.md",
      "ref": "anatomy:file-docs-core-factories-document-factory-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/docs/core/factories",
    "label": "core/factories",
    "markdown": "https://banes-lab.com/api/source/docs/core/factories.md",
    "ref": "api:source/docs/core/factories"
  }
}
