{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "core/adapters/shell.adapter.ts",
          "name": "superviseJob",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-adapters-shell-adapter-ts",
            "json": "https://banes-lab.com/json/source/docs/core/adapters/shell.adapter.ts",
            "label": "core/adapters/shell.adapter.ts",
            "markdown": "https://banes-lab.com/source/docs/core/adapters/shell.adapter.ts.md",
            "ref": "anatomy:file-docs-core-adapters-shell-adapter-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 39,
      "name": "runPackageJob",
      "signature": "const runPackageJob = async function runPackageJob(args: readonly string[], label: string): Promise<JobResult> {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "configuration/strings/invocation.strings.ts",
          "name": "listFailed",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-configuration-strings-invocation-strings-ts",
            "json": "https://banes-lab.com/json/source/docs/configuration/strings/invocation.strings.ts",
            "label": "configuration/strings/invocation.strings.ts",
            "markdown": "https://banes-lab.com/source/docs/configuration/strings/invocation.strings.ts.md",
            "ref": "anatomy:file-docs-configuration-strings-invocation-strings-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 49,
      "name": "listModules",
      "signature": "const listModules = async function listModules(): Promise<string[]> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 33,
      "name": "LINE_BREAK",
      "signature": "const LINE_BREAK = \"\\n\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "argv",
      "signature": "const argv = resolveArgv(README_ARGV);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "mode",
      "signature": "const mode = [FLAG_NAMES.fix, FLAG_NAMES.all].find((flag) => hasFlag(argv, flag)) ?? FLAG_NAMES.check;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 37,
      "name": "packageScript",
      "signature": "const packageScript = join(absolutePath(\"govlab.docs.entrypoints\"), ENTRYPOINT_FILES.package);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 50,
      "name": "listing",
      "signature": "const listing = await superviseJob({"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 66,
      "name": "concurrency",
      "signature": "const concurrency = Math.min(MAX_CONCURRENCY, Math.max(MIN_CONCURRENCY, cpus().length - RESERVED_SLOTS));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 67,
      "name": "modules",
      "signature": "const modules = await listModules();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 68,
      "name": "selective",
      "signature": "const selective = mode === FLAG_NAMES.all;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 69,
      "name": "docIndex",
      "signature": "const docIndex = createDocIndex(cacheForced(process.env));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 70,
      "name": "keyByModule",
      "signature": "const keyByModule = new Map(modules.map((rel) => [rel, moduleKey(rel, modules)]));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 71,
      "name": "workspaceKey",
      "signature": "const workspaceKey = workspaceMapKey(modules);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 72,
      "name": "changed",
      "signature": "const changed = selective ? selectStaleModules(docIndex, modules, keyByModule) : [...modules];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 73,
      "name": "doWorkspaceMap",
      "signature": "const doWorkspaceMap = !selective || !docIndex.unchanged(WORKSPACE_MAP_ID, workspaceKey);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 74,
      "name": "chunks",
      "signature": "const chunks = longestProcessingTimeBuckets("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 78,
      "name": "mapSuffix",
      "signature": "const mapSuffix = doWorkspaceMap ? WORKSPACE_MAP_SUFFIX : \"\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 79,
      "name": "unchanged",
      "signature": "const unchanged = modules.length - changed.length;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 92,
      "name": "results",
      "signature": "const results = await Promise.all(["
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 102,
      "name": "failed",
      "signature": "const failed = results.filter((result) => result.code !== 0).length;"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/docs#file-docs-runtime-entrypoints-readme-entrypoint-ts",
  "language": "typescript",
  "layer": "runtime",
  "name": "readme.entrypoint.ts",
  "path": "runtime/entrypoints/readme.entrypoint.ts",
  "ref": "anatomy:file-docs-runtime-entrypoints-readme-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/anatomy/docs#file-docs-configuration-strings-invocation-strings-ts",
          "json": "https://banes-lab.com/json/source/docs/configuration/strings/invocation.strings.ts",
          "label": "configuration/strings/invocation.strings.ts",
          "markdown": "https://banes-lab.com/source/docs/configuration/strings/invocation.strings.ts.md",
          "ref": "anatomy:file-docs-configuration-strings-invocation-strings-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/docs#file-docs-core-adapters-shell-adapter-ts",
          "json": "https://banes-lab.com/json/source/docs/core/adapters/shell.adapter.ts",
          "label": "core/adapters/shell.adapter.ts",
          "markdown": "https://banes-lab.com/source/docs/core/adapters/shell.adapter.ts.md",
          "ref": "anatomy:file-docs-core-adapters-shell-adapter-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-configuration-strings",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-configuration-strings",
          "label": "configuration/strings",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-configuration-strings.md",
          "ref": "chapter:/anatomy/docs#folder-docs-configuration-strings"
        },
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-core-adapters",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-adapters",
          "label": "core/adapters",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-adapters.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-adapters"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "entrypoint",
    "subject": "readme",
    "variant": null
  },
  "stats": {
    "bytes": 4114,
    "callable": 2,
    "definitions": 20,
    "edges": 2,
    "exported": 0,
    "files": 1,
    "findings": {},
    "flows": {
      "entry": 2,
      "isolated": 18
    },
    "lines": {
      "blank": 10,
      "code": 105,
      "total": 115
    }
  },
  "summary": "105 lines of code and 20 definitions.",
  "text": "https://banes-lab.com/source/docs/runtime/entrypoints/readme.entrypoint.ts.txt",
  "tree": "docs",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/docs#file-docs-runtime-entrypoints-system-entrypoint-ts",
      "json": "https://banes-lab.com/json/source/docs/runtime/entrypoints/system.entrypoint.ts",
      "label": "runtime/entrypoints/system.entrypoint.ts",
      "markdown": "https://banes-lab.com/source/docs/runtime/entrypoints/system.entrypoint.ts.md",
      "ref": "anatomy:file-docs-runtime-entrypoints-system-entrypoint-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/docs#file-docs-runtime-entrypoints-package-entrypoint-ts",
      "json": "https://banes-lab.com/json/source/docs/runtime/entrypoints/package.entrypoint.ts",
      "label": "runtime/entrypoints/package.entrypoint.ts",
      "markdown": "https://banes-lab.com/source/docs/runtime/entrypoints/package.entrypoint.ts.md",
      "ref": "anatomy:file-docs-runtime-entrypoints-package-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"
  }
}
