{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/core/resolvers/scope.resolver.ts",
          "name": "once",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-resolvers-scope-resolver-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/resolvers/scope.resolver.ts",
            "label": "tools/core/resolvers/scope.resolver.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/resolvers/scope.resolver.ts.md",
            "ref": "anatomy:file-coordination-tools-core-resolvers-scope-resolver-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 63,
      "name": "narrow",
      "signature": "const narrow = (paths: readonly string[]): string[] =>"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/resolvers/scope.resolver.ts",
          "name": "narrow",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-resolvers-scope-resolver-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/resolvers/scope.resolver.ts",
            "label": "tools/core/resolvers/scope.resolver.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/resolvers/scope.resolver.ts.md",
            "ref": "anatomy:file-coordination-tools-core-resolvers-scope-resolver-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 66,
      "name": "once",
      "signature": "const once = (paths: readonly string[]): string[] => [...new Set(narrow(paths))];"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "collect",
      "signature": "const collect = function collect(repoRoot: string, roots: readonly string[], ignored: readonly string[]): string[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 12,
      "name": "out",
      "signature": "const out: string[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 15,
      "name": "absolute",
      "signature": "const absolute = resolve(repoRoot, root);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "options",
      "signature": "const options = { excluded: BINARY_EXTENSIONS, extensions: [], ignored, root: absolute };"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 25,
      "name": "rootDocuments",
      "signature": "const rootDocuments = function rootDocuments(ignored: readonly string[]): string[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 26,
      "name": "own",
      "signature": "const own = surfaceRoot();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "prefix",
      "signature": "const prefix = surfacePrefix();"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 44,
      "name": "resolveScope",
      "signature": "export const resolveScope = function resolveScope("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 49,
      "name": "namingRoots",
      "signature": "const namingRoots = ["
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 57,
      "name": "artifactRoots",
      "signature": "const artifactRoots = resolveArtifactRoots(repoRoot, taxonomy);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 58,
      "name": "artifactPaths",
      "signature": "const artifactPaths = artifactRoots.filter((root) => root.unresolved === null).map((root) => root.path);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 60,
      "name": "authored",
      "signature": "const authored = AUTHORED_ROOTS.filter((root) => existsSync(resolve(repoRoot, root)));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 62,
      "name": "within",
      "signature": "const within = scope === null ? null : new Set(collect(repoRoot, [scope], taxonomy.ignored));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 68,
      "name": "taxonomyPaths",
      "signature": "const taxonomyPaths = once(collect(repoRoot, namingRoots, taxonomy.ignored));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 69,
      "name": "artifact",
      "signature": "const artifact = once(collect(repoRoot, artifactPaths, taxonomy.ignored));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 70,
      "name": "roots",
      "signature": "const roots = once(rootDocuments(taxonomy.ignored));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 71,
      "name": "tools",
      "signature": "const tools = once(collect(repoRoot, authored, taxonomy.ignored));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 73,
      "name": "all",
      "signature": "const all = [...new Set([...taxonomyPaths, ...artifact, ...roots, ...tools])];"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-resolvers-scope-resolver-ts",
  "language": "typescript",
  "layer": "infrastructure",
  "name": "scope.resolver.ts",
  "path": "tools/core/resolvers/scope.resolver.ts",
  "ref": "anatomy:file-coordination-tools-core-resolvers-scope-resolver-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-resolvers",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-resolvers",
          "label": "tools/core/resolvers",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-resolvers.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-resolvers"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-resolvers",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-resolvers",
          "label": "tools/core/resolvers",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-resolvers.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-resolvers"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "resolver",
    "subject": "scope",
    "variant": null
  },
  "stats": {
    "bytes": 3098,
    "callable": 5,
    "definitions": 20,
    "edges": 1,
    "exported": 13,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "entry": 1,
      "isolated": 18
    },
    "lines": {
      "blank": 14,
      "code": 62,
      "total": 76
    }
  },
  "summary": "62 lines of code and 20 definitions.",
  "text": "https://banes-lab.com/source/coordination/tools/core/resolvers/scope.resolver.ts.txt",
  "tree": "coordination",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-resolvers-snapshot-resolver-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/core/resolvers/snapshot.resolver.ts",
      "label": "tools/core/resolvers/snapshot.resolver.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/core/resolvers/snapshot.resolver.ts.md",
      "ref": "anatomy:file-coordination-tools-core-resolvers-snapshot-resolver-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-resolvers-reference-resolver-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/core/resolvers/reference.resolver.ts",
      "label": "tools/core/resolvers/reference.resolver.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/core/resolvers/reference.resolver.ts.md",
      "ref": "anatomy:file-coordination-tools-core-resolvers-reference-resolver-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/coordination/tools/core/resolvers",
    "label": "tools/core/resolvers",
    "markdown": "https://banes-lab.com/api/source/coordination/tools/core/resolvers.md",
    "ref": "api:source/coordination/tools/core/resolvers"
  }
}
