{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "core/predicates/record.predicate.ts",
          "name": "isPlainRecord",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-predicates-record-predicate-ts",
            "json": "https://banes-lab.com/json/source/docs/core/predicates/record.predicate.ts",
            "label": "core/predicates/record.predicate.ts",
            "markdown": "https://banes-lab.com/source/docs/core/predicates/record.predicate.ts.md",
            "ref": "anatomy:file-docs-core-predicates-record-predicate-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/loaders/system.loader.ts",
          "name": "declaredTools",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-loaders-system-loader-ts",
            "json": "https://banes-lab.com/json/source/docs/core/loaders/system.loader.ts",
            "label": "core/loaders/system.loader.ts",
            "markdown": "https://banes-lab.com/source/docs/core/loaders/system.loader.ts.md",
            "ref": "anatomy:file-docs-core-loaders-system-loader-ts"
          }
        },
        {
          "file": "core/loaders/system.loader.ts",
          "name": "declaredTools",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-loaders-system-loader-ts",
            "json": "https://banes-lab.com/json/source/docs/core/loaders/system.loader.ts",
            "label": "core/loaders/system.loader.ts",
            "markdown": "https://banes-lab.com/source/docs/core/loaders/system.loader.ts.md",
            "ref": "anatomy:file-docs-core-loaders-system-loader-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "recordField",
      "signature": "const recordField = function recordField(value: unknown, key: string): Readonly<Record<string, unknown>> {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/loaders/system.loader.ts",
          "name": "boundariesOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-loaders-system-loader-ts",
            "json": "https://banes-lab.com/json/source/docs/core/loaders/system.loader.ts",
            "label": "core/loaders/system.loader.ts",
            "markdown": "https://banes-lab.com/source/docs/core/loaders/system.loader.ts.md",
            "ref": "anatomy:file-docs-core-loaders-system-loader-ts"
          }
        },
        {
          "file": "core/loaders/system.loader.ts",
          "name": "componentsOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-loaders-system-loader-ts",
            "json": "https://banes-lab.com/json/source/docs/core/loaders/system.loader.ts",
            "label": "core/loaders/system.loader.ts",
            "markdown": "https://banes-lab.com/source/docs/core/loaders/system.loader.ts.md",
            "ref": "anatomy:file-docs-core-loaders-system-loader-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 26,
      "name": "groupOf",
      "signature": "const groupOf = function groupOf(dir: string): string {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/loaders/base.loader.ts",
          "name": "readJsonSafe",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-loaders-base-loader-ts",
            "json": "https://banes-lab.com/json/source/docs/core/loaders/base.loader.ts",
            "label": "core/loaders/base.loader.ts",
            "markdown": "https://banes-lab.com/source/docs/core/loaders/base.loader.ts.md",
            "ref": "anatomy:file-docs-core-loaders-base-loader-ts"
          }
        },
        {
          "file": "core/loaders/system.loader.ts",
          "name": "groupOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-loaders-system-loader-ts",
            "json": "https://banes-lab.com/json/source/docs/core/loaders/system.loader.ts",
            "label": "core/loaders/system.loader.ts",
            "markdown": "https://banes-lab.com/source/docs/core/loaders/system.loader.ts.md",
            "ref": "anatomy:file-docs-core-loaders-system-loader-ts"
          }
        },
        {
          "file": "core/loaders/system.loader.ts",
          "name": "stringField",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-loaders-system-loader-ts",
            "json": "https://banes-lab.com/json/source/docs/core/loaders/system.loader.ts",
            "label": "core/loaders/system.loader.ts",
            "markdown": "https://banes-lab.com/source/docs/core/loaders/system.loader.ts.md",
            "ref": "anatomy:file-docs-core-loaders-system-loader-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/loaders/system.loader.ts",
          "name": "buildSystemModel",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-loaders-system-loader-ts",
            "json": "https://banes-lab.com/json/source/docs/core/loaders/system.loader.ts",
            "label": "core/loaders/system.loader.ts",
            "markdown": "https://banes-lab.com/source/docs/core/loaders/system.loader.ts.md",
            "ref": "anatomy:file-docs-core-loaders-system-loader-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "componentsOf",
      "signature": "const componentsOf = function componentsOf(dirs: readonly string[]): SystemComponent[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/loaders/system.loader.ts",
          "name": "groupOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-loaders-system-loader-ts",
            "json": "https://banes-lab.com/json/source/docs/core/loaders/system.loader.ts",
            "label": "core/loaders/system.loader.ts",
            "markdown": "https://banes-lab.com/source/docs/core/loaders/system.loader.ts.md",
            "ref": "anatomy:file-docs-core-loaders-system-loader-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/loaders/system.loader.ts",
          "name": "buildSystemModel",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-loaders-system-loader-ts",
            "json": "https://banes-lab.com/json/source/docs/core/loaders/system.loader.ts",
            "label": "core/loaders/system.loader.ts",
            "markdown": "https://banes-lab.com/source/docs/core/loaders/system.loader.ts.md",
            "ref": "anatomy:file-docs-core-loaders-system-loader-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 40,
      "name": "boundariesOf",
      "signature": "const boundariesOf = function boundariesOf(dirs: readonly string[]): TrustBoundary[] {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/loaders/system.loader.ts",
          "name": "componentsOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-loaders-system-loader-ts",
            "json": "https://banes-lab.com/json/source/docs/core/loaders/system.loader.ts",
            "label": "core/loaders/system.loader.ts",
            "markdown": "https://banes-lab.com/source/docs/core/loaders/system.loader.ts.md",
            "ref": "anatomy:file-docs-core-loaders-system-loader-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "stringField",
      "signature": "const stringField = function stringField(value: unknown, key: string): string {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/loaders/system.loader.ts",
          "name": "buildSystemModel",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-loaders-system-loader-ts",
            "json": "https://banes-lab.com/json/source/docs/core/loaders/system.loader.ts",
            "label": "core/loaders/system.loader.ts",
            "markdown": "https://banes-lab.com/source/docs/core/loaders/system.loader.ts.md",
            "ref": "anatomy:file-docs-core-loaders-system-loader-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 57,
      "name": "dispatchOf",
      "signature": "const dispatchOf = function dispatchOf(): DispatchEdge[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/loaders/system.loader.ts",
          "name": "boundariesOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-loaders-system-loader-ts",
            "json": "https://banes-lab.com/json/source/docs/core/loaders/system.loader.ts",
            "label": "core/loaders/system.loader.ts",
            "markdown": "https://banes-lab.com/source/docs/core/loaders/system.loader.ts.md",
            "ref": "anatomy:file-docs-core-loaders-system-loader-ts"
          }
        },
        {
          "file": "core/loaders/system.loader.ts",
          "name": "componentsOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-loaders-system-loader-ts",
            "json": "https://banes-lab.com/json/source/docs/core/loaders/system.loader.ts",
            "label": "core/loaders/system.loader.ts",
            "markdown": "https://banes-lab.com/source/docs/core/loaders/system.loader.ts.md",
            "ref": "anatomy:file-docs-core-loaders-system-loader-ts"
          }
        },
        {
          "file": "core/loaders/system.loader.ts",
          "name": "dispatchOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-loaders-system-loader-ts",
            "json": "https://banes-lab.com/json/source/docs/core/loaders/system.loader.ts",
            "label": "core/loaders/system.loader.ts",
            "markdown": "https://banes-lab.com/source/docs/core/loaders/system.loader.ts.md",
            "ref": "anatomy:file-docs-core-loaders-system-loader-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 72,
      "name": "buildSystemModel",
      "signature": "export const buildSystemModel = function buildSystemModel(): SystemModel {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/loaders/system.loader.ts",
          "name": "recordField",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-loaders-system-loader-ts",
            "json": "https://banes-lab.com/json/source/docs/core/loaders/system.loader.ts",
            "label": "core/loaders/system.loader.ts",
            "markdown": "https://banes-lab.com/source/docs/core/loaders/system.loader.ts.md",
            "ref": "anatomy:file-docs-core-loaders-system-loader-ts"
          }
        },
        {
          "file": "core/loaders/system.loader.ts",
          "name": "recordField",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-loaders-system-loader-ts",
            "json": "https://banes-lab.com/json/source/docs/core/loaders/system.loader.ts",
            "label": "core/loaders/system.loader.ts",
            "markdown": "https://banes-lab.com/source/docs/core/loaders/system.loader.ts.md",
            "ref": "anatomy:file-docs-core-loaders-system-loader-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 49,
      "name": "declaredTools",
      "signature": "const declaredTools = function declaredTools(): ReadonlySet<string> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "SYSTEM_NAME",
      "signature": "const SYSTEM_NAME = \"banes-lab\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "SERVICE_KIND",
      "signature": "const SERVICE_KIND = \"service\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 12,
      "name": "GROUP_PREFIX",
      "signature": "const GROUP_PREFIX = \"group-\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 13,
      "name": "POSIX_SEPARATOR",
      "signature": "const POSIX_SEPARATOR = \"/\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "RECORDS_KEY",
      "signature": "const RECORDS_KEY = \"records\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 22,
      "name": "field",
      "signature": "const field = isPlainRecord(value) ? value[key] : undefined;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "[head]",
      "signature": "const [head] = dir.split(POSIX_SEPARATOR);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 41,
      "name": "groups",
      "signature": "const groups = [...new Set(dirs.map(groupOf))].toSorted((left, right) => left.localeCompare(right));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 50,
      "name": "manifest",
      "signature": "const manifest = readJsonSafe(join(ROOT, PACKAGE_FILE));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 58,
      "name": "registry",
      "signature": "const registry = readJsonSafe(absolutePath(\"govlab.quality.data.registry\"));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 59,
      "name": "records",
      "signature": "const records = isPlainRecord(registry) && Array.isArray(registry[RECORDS_KEY]) ? registry[RECORDS_KEY] : [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 60,
      "name": "declared",
      "signature": "const declared = declaredTools();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 63,
      "name": "tool",
      "signature": "const tool = stringField(record, \"tool\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 64,
      "name": "ecosystem",
      "signature": "const ecosystem = stringField(record, \"ecosystem\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 73,
      "name": "dirs",
      "signature": "const dirs = workspaceMembers(ROOT);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/docs#file-docs-core-loaders-system-loader-ts",
  "language": "typescript",
  "layer": "infrastructure",
  "name": "system.loader.ts",
  "path": "core/loaders/system.loader.ts",
  "ref": "anatomy:file-docs-core-loaders-system-loader-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-core-loaders",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-loaders",
          "label": "core/loaders",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-loaders.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-loaders"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#file-docs-core-loaders-base-loader-ts",
          "json": "https://banes-lab.com/json/source/docs/core/loaders/base.loader.ts",
          "label": "core/loaders/base.loader.ts",
          "markdown": "https://banes-lab.com/source/docs/core/loaders/base.loader.ts.md",
          "ref": "anatomy:file-docs-core-loaders-base-loader-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/docs#file-docs-core-predicates-record-predicate-ts",
          "json": "https://banes-lab.com/json/source/docs/core/predicates/record.predicate.ts",
          "label": "core/predicates/record.predicate.ts",
          "markdown": "https://banes-lab.com/source/docs/core/predicates/record.predicate.ts.md",
          "ref": "anatomy:file-docs-core-predicates-record-predicate-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-core-loaders",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-loaders",
          "label": "core/loaders",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-loaders.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-loaders"
        },
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-core-predicates",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-predicates",
          "label": "core/predicates",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-predicates.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-predicates"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "loader",
    "subject": "system",
    "variant": null
  },
  "stats": {
    "bytes": 3318,
    "callable": 8,
    "definitions": 23,
    "edges": 10,
    "exported": 2,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 3,
      "leaf": 3,
      "entry": 2,
      "isolated": 15
    },
    "lines": {
      "blank": 9,
      "code": 72,
      "total": 81
    }
  },
  "summary": "72 lines of code and 23 definitions.",
  "text": "https://banes-lab.com/source/docs/core/loaders/system.loader.ts.txt",
  "tree": "docs",
  "siblings": {
    "next": null,
    "previous": {
      "href": "https://banes-lab.com/anatomy/docs#file-docs-core-loaders-syntax-loader-ts",
      "json": "https://banes-lab.com/json/source/docs/core/loaders/syntax.loader.ts",
      "label": "core/loaders/syntax.loader.ts",
      "markdown": "https://banes-lab.com/source/docs/core/loaders/syntax.loader.ts.md",
      "ref": "anatomy:file-docs-core-loaders-syntax-loader-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/docs/core/loaders",
    "label": "core/loaders",
    "markdown": "https://banes-lab.com/api/source/docs/core/loaders.md",
    "ref": "api:source/docs/core/loaders"
  }
}
