{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "runtime/entrypoints/invocation.entrypoint.ts",
          "name": "tasksFor",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-runtime-entrypoints-invocation-entrypoint-ts",
            "json": "https://banes-lab.com/json/source/docs/runtime/entrypoints/invocation.entrypoint.ts",
            "label": "runtime/entrypoints/invocation.entrypoint.ts",
            "markdown": "https://banes-lab.com/source/docs/runtime/entrypoints/invocation.entrypoint.ts.md",
            "ref": "anatomy:file-docs-runtime-entrypoints-invocation-entrypoint-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 29,
      "name": "forwardedTemplate",
      "signature": "const forwardedTemplate = function forwardedTemplate(argv: ParsedArgv): string[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "runtime/entrypoints/invocation.entrypoint.ts",
          "name": "forwardedTemplate",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-runtime-entrypoints-invocation-entrypoint-ts",
            "json": "https://banes-lab.com/json/source/docs/runtime/entrypoints/invocation.entrypoint.ts",
            "label": "runtime/entrypoints/invocation.entrypoint.ts",
            "markdown": "https://banes-lab.com/source/docs/runtime/entrypoints/invocation.entrypoint.ts.md",
            "ref": "anatomy:file-docs-runtime-entrypoints-invocation-entrypoint-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "tasksFor",
      "signature": "const tasksFor = function tasksFor(mode: Mode, argv: ParsedArgv): readonly Task[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 19,
      "name": "Task",
      "signature": "interface Task {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "type_alias_declaration",
      "line": 25,
      "name": "Mode",
      "signature": "type Mode = \"fix\" | \"generate\" | \"new\" | \"validate\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "MODES",
      "signature": "const MODES: readonly Mode[] = [\"validate\", \"fix\", \"new\", \"generate\"];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "value",
      "signature": "const value = flagValue(argv, FLAG_NAMES[key]);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 62,
      "name": "argv",
      "signature": "const argv = resolveArgv(INVOCATION_ARGV);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 63,
      "name": "mode",
      "signature": "const mode = MODES.find((candidate) => hasFlag(argv, FLAG_NAMES[candidate]));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 69,
      "name": "entrypoints",
      "signature": "const entrypoints = absolutePath(\"govlab.docs.entrypoints\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 70,
      "name": "failed",
      "signature": "const failed = tasksFor(mode, argv).filter((task) => {"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/docs#file-docs-runtime-entrypoints-invocation-entrypoint-ts",
  "language": "typescript",
  "layer": "runtime",
  "name": "invocation.entrypoint.ts",
  "path": "runtime/entrypoints/invocation.entrypoint.ts",
  "ref": "anatomy:file-docs-runtime-entrypoints-invocation-entrypoint-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-runtime-entrypoints",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-runtime-entrypoints",
          "label": "runtime/entrypoints",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-runtime-entrypoints.md",
          "ref": "chapter:/anatomy/docs#folder-docs-runtime-entrypoints"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-traceability",
          "json": "https://banes-lab.com/json/records/architecture/traceability",
          "label": "Traceability",
          "markdown": "https://banes-lab.com/records/architecture/traceability.md",
          "ref": "architecture:traceability"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-self-describing-architecture",
          "json": "https://banes-lab.com/json/records/architecture/self-describing-architecture",
          "label": "Self-Describing Architecture",
          "markdown": "https://banes-lab.com/records/architecture/self-describing-architecture.md",
          "ref": "architecture:self-describing-architecture"
        }
      ],
      "relation": "enforces"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-runtime-entrypoints",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-runtime-entrypoints",
          "label": "runtime/entrypoints",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-runtime-entrypoints.md",
          "ref": "chapter:/anatomy/docs#folder-docs-runtime-entrypoints"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "entrypoint",
    "subject": "invocation",
    "variant": null
  },
  "stats": {
    "bytes": 3107,
    "callable": 2,
    "definitions": 10,
    "edges": 1,
    "exported": 0,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "entry": 1,
      "isolated": 8
    },
    "lines": {
      "blank": 8,
      "code": 67,
      "total": 75
    }
  },
  "summary": "67 lines of code and 10 definitions.",
  "text": "https://banes-lab.com/source/docs/runtime/entrypoints/invocation.entrypoint.ts.txt",
  "tree": "docs",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/docs#file-docs-runtime-entrypoints-manifest-entrypoint-ts",
      "json": "https://banes-lab.com/json/source/docs/runtime/entrypoints/manifest.entrypoint.ts",
      "label": "runtime/entrypoints/manifest.entrypoint.ts",
      "markdown": "https://banes-lab.com/source/docs/runtime/entrypoints/manifest.entrypoint.ts.md",
      "ref": "anatomy:file-docs-runtime-entrypoints-manifest-entrypoint-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/docs#file-docs-runtime-entrypoints-index-entrypoint-ts",
      "json": "https://banes-lab.com/json/source/docs/runtime/entrypoints/index.entrypoint.ts",
      "label": "runtime/entrypoints/index.entrypoint.ts",
      "markdown": "https://banes-lab.com/source/docs/runtime/entrypoints/index.entrypoint.ts.md",
      "ref": "anatomy:file-docs-runtime-entrypoints-index-entrypoint-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/docs/runtime/entrypoints",
    "label": "runtime/entrypoints",
    "markdown": "https://banes-lab.com/api/source/docs/runtime/entrypoints.md",
    "ref": "api:source/docs/runtime/entrypoints"
  }
}
