{
  "definitions": [
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "VALIDATOR",
      "signature": "const VALIDATOR = \"install-registry\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "JSON_LOG_INDENT",
      "signature": "const JSON_LOG_INDENT = 2;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 12,
      "name": "TOOLS_FILE",
      "signature": "const TOOLS_FILE = \"tools.generated.json\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "rawTools",
      "signature": "const rawTools = jsonRecord(readFileSync(absolutePath(\"govlab.quality.generated\", TOOLS_FILE), \"utf8\"));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 15,
      "name": "tools",
      "signature": "const tools = recordsAt(rawTools, \"records\").map((r) => ({"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "rawRegistry",
      "signature": "const rawRegistry = jsonRecord(readFileSync(absolutePath(\"govlab.quality.data.registry\"), \"utf8\"));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "registryRecords",
      "signature": "const registryRecords = recordsAt(rawRegistry, \"records\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 22,
      "name": "noNativeDescriptor",
      "signature": "const noNativeDescriptor = stringArrayField(recordAt(rawRegistry, \"coverage\"), \"noNativeDescriptor\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "toolIds",
      "signature": "const toolIds = new Set(tools.map((t) => t.name));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 25,
      "name": "errors",
      "signature": "const errors: string[] = [];"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "checkPluginFields",
      "signature": "const checkPluginFields = function checkPluginFields(record: Record<string, unknown>, at: string): void {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 29,
      "name": "fieldValue",
      "signature": "const fieldValue = record[field];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 37,
      "name": "tool",
      "signature": "const tool = stringField(record, \"tool\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 38,
      "name": "at",
      "signature": "const at = `install-registry[tool=${tool}]`;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 39,
      "name": "catalogRules",
      "signature": "const catalogRules = record[\"catalogRules\"] !== false;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 50,
      "name": "hasNpm",
      "signature": "const hasNpm = typeof record[\"npm\"] === \"string\" && record[\"npm\"].length > 0;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 51,
      "name": "hasSystem",
      "signature": "const hasSystem = typeof record[\"system\"] === \"string\" && record[\"system\"].length > 0;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 52,
      "name": "installable",
      "signature": "const installable = record[\"installable\"] !== false;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 77,
      "name": "recorded",
      "signature": "const recorded = new Set(registryRecords.map((r) => stringField(r, \"tool\")));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 86,
      "name": "noneTools",
      "signature": "const noneTools = new Set(registryRecords.filter((r) => r[\"emitter\"] === \"none\").map((r) => stringField(r, \"tool\")));"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/quality#file-quality-runtime-entrypoints-dependency-entrypoint-ts",
  "language": "typescript",
  "layer": "runtime",
  "name": "dependency.entrypoint.ts",
  "path": "runtime/entrypoints/dependency.entrypoint.ts",
  "ref": "anatomy:file-quality-runtime-entrypoints-dependency-entrypoint-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/quality#folder-quality-runtime-entrypoints",
          "json": "https://banes-lab.com/json/anatomy/quality/folder-quality-runtime-entrypoints",
          "label": "runtime/entrypoints",
          "markdown": "https://banes-lab.com/anatomy/quality/folder-quality-runtime-entrypoints.md",
          "ref": "chapter:/anatomy/quality#folder-quality-runtime-entrypoints"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-single-source-of-truth",
          "json": "https://banes-lab.com/json/records/architecture/single-source-of-truth",
          "label": "Single Source of Truth",
          "markdown": "https://banes-lab.com/records/architecture/single-source-of-truth.md",
          "ref": "architecture:single-source-of-truth"
        }
      ],
      "relation": "enforces"
    }
  ],
  "slots": {
    "concern": "entrypoint",
    "subject": "dependency",
    "variant": null
  },
  "stats": {
    "bytes": 4836,
    "callable": 1,
    "definitions": 20,
    "edges": 0,
    "exported": 0,
    "files": 1,
    "findings": {},
    "flows": {
      "isolated": 20
    },
    "lines": {
      "blank": 13,
      "code": 104,
      "total": 117
    }
  },
  "summary": "104 lines of code and 20 definitions.",
  "text": "https://banes-lab.com/source/quality/runtime/entrypoints/dependency.entrypoint.ts.txt",
  "tree": "quality",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/quality#file-quality-runtime-entrypoints-invocation-entrypoint-ts",
      "json": "https://banes-lab.com/json/source/quality/runtime/entrypoints/invocation.entrypoint.ts",
      "label": "runtime/entrypoints/invocation.entrypoint.ts",
      "markdown": "https://banes-lab.com/source/quality/runtime/entrypoints/invocation.entrypoint.ts.md",
      "ref": "anatomy:file-quality-runtime-entrypoints-invocation-entrypoint-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/quality#file-quality-runtime-entrypoints-coverage-entrypoint-ts",
      "json": "https://banes-lab.com/json/source/quality/runtime/entrypoints/coverage.entrypoint.ts",
      "label": "runtime/entrypoints/coverage.entrypoint.ts",
      "markdown": "https://banes-lab.com/source/quality/runtime/entrypoints/coverage.entrypoint.ts.md",
      "ref": "anatomy:file-quality-runtime-entrypoints-coverage-entrypoint-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/quality/runtime/entrypoints",
    "label": "runtime/entrypoints",
    "markdown": "https://banes-lab.com/api/source/quality/runtime/entrypoints.md",
    "ref": "api:source/quality/runtime/entrypoints"
  }
}
