{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "core/predicates/location.predicate.ts",
          "name": "isRecord",
          "source": {
            "href": "https://banes-lab.com/anatomy/paths#file-paths-core-predicates-location-predicate-ts",
            "json": "https://banes-lab.com/json/source/paths/core/predicates/location.predicate.ts",
            "label": "core/predicates/location.predicate.ts",
            "markdown": "https://banes-lab.com/source/paths/core/predicates/location.predicate.ts.md",
            "ref": "anatomy:file-paths-core-predicates-location-predicate-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/resolvers/location.root.resolver.ts",
          "name": "deriveRoot",
          "source": {
            "href": "https://banes-lab.com/anatomy/paths#file-paths-core-resolvers-location-root-resolver-ts",
            "json": "https://banes-lab.com/json/source/paths/core/resolvers/location.root.resolver.ts",
            "label": "core/resolvers/location.root.resolver.ts",
            "markdown": "https://banes-lab.com/source/paths/core/resolvers/location.root.resolver.ts.md",
            "ref": "anatomy:file-paths-core-resolvers-location-root-resolver-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 7,
      "name": "isWorkspaceRoot",
      "signature": "const isWorkspaceRoot = function isWorkspaceRoot(dir: string): boolean {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "configuration/strings/location.strings.ts",
          "name": "rootNotFound",
          "source": {
            "href": "https://banes-lab.com/anatomy/paths#file-paths-configuration-strings-location-strings-ts",
            "json": "https://banes-lab.com/json/source/paths/configuration/strings/location.strings.ts",
            "label": "configuration/strings/location.strings.ts",
            "markdown": "https://banes-lab.com/source/paths/configuration/strings/location.strings.ts.md",
            "ref": "anatomy:file-paths-configuration-strings-location-strings-ts"
          }
        },
        {
          "file": "core/resolvers/location.root.resolver.ts",
          "name": "isWorkspaceRoot",
          "source": {
            "href": "https://banes-lab.com/anatomy/paths#file-paths-core-resolvers-location-root-resolver-ts",
            "json": "https://banes-lab.com/json/source/paths/core/resolvers/location.root.resolver.ts",
            "label": "core/resolvers/location.root.resolver.ts",
            "markdown": "https://banes-lab.com/source/paths/core/resolvers/location.root.resolver.ts.md",
            "ref": "anatomy:file-paths-core-resolvers-location-root-resolver-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "deriveRoot",
      "signature": "const deriveRoot = function deriveRoot(): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "manifest",
      "signature": "const manifest = join(dir, MANIFEST_NAME);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 12,
      "name": "parsed",
      "signature": "const parsed: unknown = JSON.parse(readFileSync(manifest, \"utf8\"));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "dir",
      "signature": "let dir = import.meta.dirname;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "parent",
      "signature": "const parent = dirname(dir);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 28,
      "name": "ROOT",
      "signature": "export const ROOT = deriveRoot();"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/paths#file-paths-core-resolvers-location-root-resolver-ts",
  "language": "typescript",
  "layer": "infrastructure",
  "name": "location.root.resolver.ts",
  "path": "core/resolvers/location.root.resolver.ts",
  "ref": "anatomy:file-paths-core-resolvers-location-root-resolver-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/paths#folder-paths-core-resolvers",
          "json": "https://banes-lab.com/json/anatomy/paths/folder-paths-core-resolvers",
          "label": "core/resolvers",
          "markdown": "https://banes-lab.com/anatomy/paths/folder-paths-core-resolvers.md",
          "ref": "chapter:/anatomy/paths#folder-paths-core-resolvers"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/paths#file-paths-configuration-strings-location-strings-ts",
          "json": "https://banes-lab.com/json/source/paths/configuration/strings/location.strings.ts",
          "label": "configuration/strings/location.strings.ts",
          "markdown": "https://banes-lab.com/source/paths/configuration/strings/location.strings.ts.md",
          "ref": "anatomy:file-paths-configuration-strings-location-strings-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/paths#file-paths-core-predicates-location-predicate-ts",
          "json": "https://banes-lab.com/json/source/paths/core/predicates/location.predicate.ts",
          "label": "core/predicates/location.predicate.ts",
          "markdown": "https://banes-lab.com/source/paths/core/predicates/location.predicate.ts.md",
          "ref": "anatomy:file-paths-core-predicates-location-predicate-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/paths#folder-paths-configuration-strings",
          "json": "https://banes-lab.com/json/anatomy/paths/folder-paths-configuration-strings",
          "label": "configuration/strings",
          "markdown": "https://banes-lab.com/anatomy/paths/folder-paths-configuration-strings.md",
          "ref": "chapter:/anatomy/paths#folder-paths-configuration-strings"
        },
        {
          "href": "https://banes-lab.com/anatomy/paths#folder-paths-core-predicates",
          "json": "https://banes-lab.com/json/anatomy/paths/folder-paths-core-predicates",
          "label": "core/predicates",
          "markdown": "https://banes-lab.com/anatomy/paths/folder-paths-core-predicates.md",
          "ref": "chapter:/anatomy/paths#folder-paths-core-predicates"
        },
        {
          "href": "https://banes-lab.com/anatomy/paths#folder-paths-core-resolvers",
          "json": "https://banes-lab.com/json/anatomy/paths/folder-paths-core-resolvers",
          "label": "core/resolvers",
          "markdown": "https://banes-lab.com/anatomy/paths/folder-paths-core-resolvers.md",
          "ref": "chapter:/anatomy/paths#folder-paths-core-resolvers"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "resolver",
    "subject": "location",
    "variant": "root"
  },
  "stats": {
    "bytes": 1021,
    "callable": 2,
    "definitions": 7,
    "edges": 3,
    "exported": 1,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 1,
      "entry": 1,
      "isolated": 5
    },
    "lines": {
      "blank": 3,
      "code": 25,
      "total": 28
    }
  },
  "summary": "25 lines of code and 7 definitions.",
  "text": "https://banes-lab.com/source/paths/core/resolvers/location.root.resolver.ts.txt",
  "tree": "paths",
  "siblings": {
    "next": null,
    "previous": {
      "href": "https://banes-lab.com/anatomy/paths#file-paths-core-resolvers-location-resolver-ts",
      "json": "https://banes-lab.com/json/source/paths/core/resolvers/location.resolver.ts",
      "label": "core/resolvers/location.resolver.ts",
      "markdown": "https://banes-lab.com/source/paths/core/resolvers/location.resolver.ts.md",
      "ref": "anatomy:file-paths-core-resolvers-location-resolver-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/paths/core/resolvers",
    "label": "core/resolvers",
    "markdown": "https://banes-lab.com/api/source/paths/core/resolvers.md",
    "ref": "api:source/paths/core/resolvers"
  }
}
