{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "configuration/strings/ontology.strings.ts",
          "name": "collectionCycle",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-configuration-strings-ontology-strings-ts",
            "json": "https://banes-lab.com/json/source/context/configuration/strings/ontology.strings.ts",
            "label": "configuration/strings/ontology.strings.ts",
            "markdown": "https://banes-lab.com/source/context/configuration/strings/ontology.strings.ts.md",
            "ref": "anatomy:file-context-configuration-strings-ontology-strings-ts"
          }
        },
        {
          "file": "configuration/strings/ontology.strings.ts",
          "name": "unregisteredCollection",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-configuration-strings-ontology-strings-ts",
            "json": "https://banes-lab.com/json/source/context/configuration/strings/ontology.strings.ts",
            "label": "configuration/strings/ontology.strings.ts",
            "markdown": "https://banes-lab.com/source/context/configuration/strings/ontology.strings.ts.md",
            "ref": "anatomy:file-context-configuration-strings-ontology-strings-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/registries/ontology.registry.ts",
          "name": "foldFaces",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-registries-ontology-registry-ts",
            "json": "https://banes-lab.com/json/source/context/core/registries/ontology.registry.ts",
            "label": "core/registries/ontology.registry.ts",
            "markdown": "https://banes-lab.com/source/context/core/registries/ontology.registry.ts.md",
            "ref": "anatomy:file-context-core-registries-ontology-registry-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "buildFace",
      "signature": "const buildFace = function buildFace(name: string, state: FoldState): unknown {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "configuration/strings/ontology.strings.ts",
          "name": "duplicateCollection",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-configuration-strings-ontology-strings-ts",
            "json": "https://banes-lab.com/json/source/context/configuration/strings/ontology.strings.ts",
            "label": "configuration/strings/ontology.strings.ts",
            "markdown": "https://banes-lab.com/source/context/configuration/strings/ontology.strings.ts.md",
            "ref": "anatomy:file-context-configuration-strings-ontology-strings-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 6,
      "name": "defineOntologyFace",
      "signature": "export const defineOntologyFace = function defineOntologyFace<P>("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/registries/ontology.registry.ts",
          "name": "buildFace",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-registries-ontology-registry-ts",
            "json": "https://banes-lab.com/json/source/context/core/registries/ontology.registry.ts",
            "label": "core/registries/ontology.registry.ts",
            "markdown": "https://banes-lab.com/source/context/core/registries/ontology.registry.ts.md",
            "ref": "anatomy:file-context-core-registries-ontology-registry-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 46,
      "name": "foldFaces",
      "signature": "export const foldFaces = function foldFaces("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 4,
      "name": "REGISTRY",
      "signature": "const REGISTRY = new Map<string, OntologyFaceDefinition>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 12,
      "name": "frozen",
      "signature": "const frozen = Object.freeze({ ...definition, dependsOn: Object.freeze([...(definition.dependsOn ?? [])]) });"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 17,
      "name": "FoldState",
      "signature": "interface FoldState {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "definition",
      "signature": "const definition = state.byName.get(name);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "dependencies",
      "signature": "const dependencies: Record<string, unknown> = {};"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 40,
      "name": "port",
      "signature": "const port = definition.build(state.context, dependencies);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 50,
      "name": "state",
      "signature": "const state: FoldState = {"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/context#file-context-core-registries-ontology-registry-ts",
  "language": "typescript",
  "layer": "infrastructure",
  "name": "ontology.registry.ts",
  "path": "core/registries/ontology.registry.ts",
  "ref": "anatomy:file-context-core-registries-ontology-registry-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-core-registries",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-core-registries",
          "label": "core/registries",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-core-registries.md",
          "ref": "chapter:/anatomy/context#folder-context-core-registries"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#file-context-configuration-strings-ontology-strings-ts",
          "json": "https://banes-lab.com/json/source/context/configuration/strings/ontology.strings.ts",
          "label": "configuration/strings/ontology.strings.ts",
          "markdown": "https://banes-lab.com/source/context/configuration/strings/ontology.strings.ts.md",
          "ref": "anatomy:file-context-configuration-strings-ontology-strings-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-configuration-strings",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-configuration-strings",
          "label": "configuration/strings",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-configuration-strings.md",
          "ref": "chapter:/anatomy/context#folder-context-configuration-strings"
        },
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-core-registries",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-core-registries",
          "label": "core/registries",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-core-registries.md",
          "ref": "chapter:/anatomy/context#folder-context-core-registries"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "registry",
    "subject": "ontology",
    "variant": null
  },
  "stats": {
    "bytes": 2090,
    "callable": 3,
    "definitions": 10,
    "edges": 4,
    "exported": 4,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 1,
      "entry": 2,
      "isolated": 7
    },
    "lines": {
      "blank": 5,
      "code": 55,
      "total": 60
    }
  },
  "summary": "55 lines of code and 10 definitions.",
  "text": "https://banes-lab.com/source/context/core/registries/ontology.registry.ts.txt",
  "tree": "context",
  "siblings": {
    "next": null,
    "previous": {
      "href": "https://banes-lab.com/anatomy/context#file-context-core-registries-context-registry-ts",
      "json": "https://banes-lab.com/json/source/context/core/registries/context.registry.ts",
      "label": "core/registries/context.registry.ts",
      "markdown": "https://banes-lab.com/source/context/core/registries/context.registry.ts.md",
      "ref": "anatomy:file-context-core-registries-context-registry-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/context/core/registries",
    "label": "core/registries",
    "markdown": "https://banes-lab.com/api/source/context/core/registries.md",
    "ref": "api:source/context/core/registries"
  }
}
