{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/persistence/chapter.persistence.ts",
          "name": "staleChaptersOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/content#file-content-core-persistence-chapter-persistence-ts",
            "json": "https://banes-lab.com/json/source/content/core/persistence/chapter.persistence.ts",
            "label": "core/persistence/chapter.persistence.ts",
            "markdown": "https://banes-lab.com/source/content/core/persistence/chapter.persistence.ts.md",
            "ref": "anatomy:file-content-core-persistence-chapter-persistence-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 12,
      "name": "markdownIn",
      "signature": "const markdownIn = function markdownIn(out: string, folder: string): string[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/persistence/chapter.persistence.ts",
          "name": "markdownIn",
          "source": {
            "href": "https://banes-lab.com/anatomy/content#file-content-core-persistence-chapter-persistence-ts",
            "json": "https://banes-lab.com/json/source/content/core/persistence/chapter.persistence.ts",
            "label": "core/persistence/chapter.persistence.ts",
            "markdown": "https://banes-lab.com/source/content/core/persistence/chapter.persistence.ts.md",
            "ref": "anatomy:file-content-core-persistence-chapter-persistence-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 22,
      "name": "staleChaptersOf",
      "signature": "export const staleChaptersOf = function staleChaptersOf(out: string, chapters: readonly Chapter[]): string[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/persistence/report.persistence.ts",
          "name": "persistText",
          "source": {
            "href": "https://banes-lab.com/anatomy/content#file-content-core-persistence-report-persistence-ts",
            "json": "https://banes-lab.com/json/source/content/core/persistence/report.persistence.ts",
            "label": "core/persistence/report.persistence.ts",
            "markdown": "https://banes-lab.com/source/content/core/persistence/report.persistence.ts.md",
            "ref": "anatomy:file-content-core-persistence-report-persistence-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 28,
      "name": "persistChapters",
      "signature": "export const persistChapters = async function persistChapters("
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 7,
      "name": "folderOf",
      "signature": "const folderOf = function folderOf(file: string): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "slash",
      "signature": "const slash = file.lastIndexOf(FOLDER_SEPARATOR);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 13,
      "name": "target",
      "signature": "const target = join(out, folder);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 23,
      "name": "rendered",
      "signature": "const rendered = new Set(chapters.map((chapter) => chapter.file));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "folders",
      "signature": "const folders = [...new Set(chapters.map((chapter) => folderOf(chapter.file)))];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "stale",
      "signature": "const stale = staleChaptersOf(out, chapters);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/content#file-content-core-persistence-chapter-persistence-ts",
  "language": "typescript",
  "layer": "infrastructure",
  "name": "chapter.persistence.ts",
  "path": "core/persistence/chapter.persistence.ts",
  "ref": "anatomy:file-content-core-persistence-chapter-persistence-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/content#folder-content-core-persistence",
          "json": "https://banes-lab.com/json/anatomy/content/folder-content-core-persistence",
          "label": "core/persistence",
          "markdown": "https://banes-lab.com/anatomy/content/folder-content-core-persistence.md",
          "ref": "chapter:/anatomy/content#folder-content-core-persistence"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/content#file-content-core-persistence-report-persistence-ts",
          "json": "https://banes-lab.com/json/source/content/core/persistence/report.persistence.ts",
          "label": "core/persistence/report.persistence.ts",
          "markdown": "https://banes-lab.com/source/content/core/persistence/report.persistence.ts.md",
          "ref": "anatomy:file-content-core-persistence-report-persistence-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/content#folder-content-core-persistence",
          "json": "https://banes-lab.com/json/anatomy/content/folder-content-core-persistence",
          "label": "core/persistence",
          "markdown": "https://banes-lab.com/anatomy/content/folder-content-core-persistence.md",
          "ref": "chapter:/anatomy/content#folder-content-core-persistence"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "persistence",
    "subject": "chapter",
    "variant": null
  },
  "stats": {
    "bytes": 1667,
    "callable": 4,
    "definitions": 9,
    "edges": 2,
    "exported": 5,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "entry": 2,
      "isolated": 6
    },
    "lines": {
      "blank": 4,
      "code": 34,
      "total": 38
    }
  },
  "summary": "34 lines of code and 9 definitions.",
  "text": "https://banes-lab.com/source/content/core/persistence/chapter.persistence.ts.txt",
  "tree": "content",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/content#file-content-core-persistence-report-persistence-ts",
      "json": "https://banes-lab.com/json/source/content/core/persistence/report.persistence.ts",
      "label": "core/persistence/report.persistence.ts",
      "markdown": "https://banes-lab.com/source/content/core/persistence/report.persistence.ts.md",
      "ref": "anatomy:file-content-core-persistence-report-persistence-ts"
    },
    "previous": null
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/content/core/persistence",
    "label": "core/persistence",
    "markdown": "https://banes-lab.com/api/source/content/core/persistence.md",
    "ref": "api:source/content/core/persistence"
  }
}
