{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/persistence/export.persistence.ts",
          "name": "publishShares",
          "source": {
            "href": "https://banes-lab.com/anatomy/social-share#file-social-share-core-persistence-export-persistence-ts",
            "json": "https://banes-lab.com/json/source/social-share/core/persistence/export.persistence.ts",
            "label": "core/persistence/export.persistence.ts",
            "markdown": "https://banes-lab.com/source/social-share/core/persistence/export.persistence.ts.md",
            "ref": "anatomy:file-social-share-core-persistence-export-persistence-ts"
          }
        },
        {
          "file": "runtime/entrypoints/validation.entrypoint.ts",
          "name": "mapFindings",
          "source": {
            "href": "https://banes-lab.com/anatomy/social-share#file-social-share-runtime-entrypoints-validation-entrypoint-ts",
            "json": "https://banes-lab.com/json/source/social-share/runtime/entrypoints/validation.entrypoint.ts",
            "label": "runtime/entrypoints/validation.entrypoint.ts",
            "markdown": "https://banes-lab.com/source/social-share/runtime/entrypoints/validation.entrypoint.ts.md",
            "ref": "anatomy:file-social-share-runtime-entrypoints-validation-entrypoint-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 60,
      "name": "strayShares",
      "signature": "export const strayShares = function strayShares(entries: readonly ShareEntry[], served: string): readonly string[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/persistence/export.persistence.ts",
          "name": "strayShares",
          "source": {
            "href": "https://banes-lab.com/anatomy/social-share#file-social-share-core-persistence-export-persistence-ts",
            "json": "https://banes-lab.com/json/source/social-share/core/persistence/export.persistence.ts",
            "label": "core/persistence/export.persistence.ts",
            "markdown": "https://banes-lab.com/source/social-share/core/persistence/export.persistence.ts.md",
            "ref": "anatomy:file-social-share-core-persistence-export-persistence-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/coordinators/export.coordinator.ts",
          "name": "exportCards",
          "source": {
            "href": "https://banes-lab.com/anatomy/social-share#file-social-share-core-coordinators-export-coordinator-ts",
            "json": "https://banes-lab.com/json/source/social-share/core/coordinators/export.coordinator.ts",
            "label": "core/coordinators/export.coordinator.ts",
            "markdown": "https://banes-lab.com/source/social-share/core/coordinators/export.coordinator.ts.md",
            "ref": "anatomy:file-social-share-core-coordinators-export-coordinator-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 68,
      "name": "publishShares",
      "signature": "export const publishShares = function publishShares("
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/persistence/export.persistence.ts",
          "name": "holderOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/social-share#file-social-share-core-persistence-export-persistence-ts",
            "json": "https://banes-lab.com/json/source/social-share/core/persistence/export.persistence.ts",
            "label": "core/persistence/export.persistence.ts",
            "markdown": "https://banes-lab.com/source/social-share/core/persistence/export.persistence.ts.md",
            "ref": "anatomy:file-social-share-core-persistence-export-persistence-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "isAlive",
      "signature": "const isAlive = function isAlive(pid: number): boolean {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "runtime/entrypoints/validation.entrypoint.ts",
          "name": "mapFindings",
          "source": {
            "href": "https://banes-lab.com/anatomy/social-share#file-social-share-runtime-entrypoints-validation-entrypoint-ts",
            "json": "https://banes-lab.com/json/source/social-share/runtime/entrypoints/validation.entrypoint.ts",
            "label": "runtime/entrypoints/validation.entrypoint.ts",
            "markdown": "https://banes-lab.com/source/social-share/runtime/entrypoints/validation.entrypoint.ts.md",
            "ref": "anatomy:file-social-share-runtime-entrypoints-validation-entrypoint-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 53,
      "name": "unpublishedShares",
      "signature": "export const unpublishedShares = function unpublishedShares("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/persistence/export.persistence.ts",
          "name": "isAlive",
          "source": {
            "href": "https://banes-lab.com/anatomy/social-share#file-social-share-core-persistence-export-persistence-ts",
            "json": "https://banes-lab.com/json/source/social-share/core/persistence/export.persistence.ts",
            "label": "core/persistence/export.persistence.ts",
            "markdown": "https://banes-lab.com/source/social-share/core/persistence/export.persistence.ts.md",
            "ref": "anatomy:file-social-share-core-persistence-export-persistence-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 26,
      "name": "holderOf",
      "signature": "const holderOf = function holderOf(location: string): number | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "TEXT",
      "signature": "const TEXT = \"utf8\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "MISSING_PROCESS",
      "signature": "const MISSING_PROCESS = \"ESRCH\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 12,
      "name": "SLASH",
      "signature": "const SLASH = \"/\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 30,
      "name": "pid",
      "signature": "const pid = Number(readFileSync(location, TEXT).trim());"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 34,
      "name": "holdCaptureLock",
      "signature": "export const holdCaptureLock = function holdCaptureLock(location = absolutePath(\"builds.root\", LOCK_FILE)): Disposer {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "holder",
      "signature": "const holder = holderOf(location);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 49,
      "name": "servedNames",
      "signature": "const servedNames = function servedNames(entry: ShareEntry): readonly string[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 64,
      "name": "named",
      "signature": "const named = new Set(entries.flatMap(servedNames));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 77,
      "name": "published",
      "signature": "const published = entries.flatMap(servedNames).filter((file) => {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 78,
      "name": "target",
      "signature": "const target = join(served, file);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 79,
      "name": "source",
      "signature": "const source = join(renders, file);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/social-share#file-social-share-core-persistence-export-persistence-ts",
  "language": "typescript",
  "layer": "infrastructure",
  "name": "export.persistence.ts",
  "path": "core/persistence/export.persistence.ts",
  "ref": "anatomy:file-social-share-core-persistence-export-persistence-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/social-share#folder-social-share-core-persistence",
          "json": "https://banes-lab.com/json/anatomy/social-share/folder-social-share-core-persistence",
          "label": "core/persistence",
          "markdown": "https://banes-lab.com/anatomy/social-share/folder-social-share-core-persistence.md",
          "ref": "chapter:/anatomy/social-share#folder-social-share-core-persistence"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/social-share#file-social-share-core-coordinators-export-coordinator-ts",
          "json": "https://banes-lab.com/json/source/social-share/core/coordinators/export.coordinator.ts",
          "label": "core/coordinators/export.coordinator.ts",
          "markdown": "https://banes-lab.com/source/social-share/core/coordinators/export.coordinator.ts.md",
          "ref": "anatomy:file-social-share-core-coordinators-export-coordinator-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/social-share#file-social-share-runtime-entrypoints-validation-entrypoint-ts",
          "json": "https://banes-lab.com/json/source/social-share/runtime/entrypoints/validation.entrypoint.ts",
          "label": "runtime/entrypoints/validation.entrypoint.ts",
          "markdown": "https://banes-lab.com/source/social-share/runtime/entrypoints/validation.entrypoint.ts.md",
          "ref": "anatomy:file-social-share-runtime-entrypoints-validation-entrypoint-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/social-share#folder-social-share-core-coordinators",
          "json": "https://banes-lab.com/json/anatomy/social-share/folder-social-share-core-coordinators",
          "label": "core/coordinators",
          "markdown": "https://banes-lab.com/anatomy/social-share/folder-social-share-core-coordinators.md",
          "ref": "chapter:/anatomy/social-share#folder-social-share-core-coordinators"
        },
        {
          "href": "https://banes-lab.com/anatomy/social-share#folder-social-share-core-persistence",
          "json": "https://banes-lab.com/json/anatomy/social-share/folder-social-share-core-persistence",
          "label": "core/persistence",
          "markdown": "https://banes-lab.com/anatomy/social-share/folder-social-share-core-persistence.md",
          "ref": "chapter:/anatomy/social-share#folder-social-share-core-persistence"
        },
        {
          "href": "https://banes-lab.com/anatomy/social-share#folder-social-share-runtime-entrypoints",
          "json": "https://banes-lab.com/json/anatomy/social-share/folder-social-share-runtime-entrypoints",
          "label": "runtime/entrypoints",
          "markdown": "https://banes-lab.com/anatomy/social-share/folder-social-share-runtime-entrypoints.md",
          "ref": "chapter:/anatomy/social-share#folder-social-share-runtime-entrypoints"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "persistence",
    "subject": "export",
    "variant": null
  },
  "stats": {
    "bytes": 3071,
    "callable": 7,
    "definitions": 16,
    "edges": 2,
    "exported": 9,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 3,
      "relay": 1,
      "entry": 1,
      "isolated": 11
    },
    "lines": {
      "blank": 8,
      "code": 78,
      "total": 86
    }
  },
  "summary": "78 lines of code and 16 definitions.",
  "text": "https://banes-lab.com/source/social-share/core/persistence/export.persistence.ts.txt",
  "tree": "social-share",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/social-share#file-social-share-core-persistence-image-persistence-ts",
      "json": "https://banes-lab.com/json/source/social-share/core/persistence/image.persistence.ts",
      "label": "core/persistence/image.persistence.ts",
      "markdown": "https://banes-lab.com/source/social-share/core/persistence/image.persistence.ts.md",
      "ref": "anatomy:file-social-share-core-persistence-image-persistence-ts"
    },
    "previous": null
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/social-share/core/persistence",
    "label": "core/persistence",
    "markdown": "https://banes-lab.com/api/source/social-share/core/persistence.md",
    "ref": "api:source/social-share/core/persistence"
  }
}
