{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/core/analyzers/graph.analyzer.ts",
          "name": "moduleSource",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-analyzers-graph-analyzer-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/analyzers/graph.analyzer.ts",
            "label": "tools/core/analyzers/graph.analyzer.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/analyzers/graph.analyzer.ts.md",
            "ref": "anatomy:file-coordination-tools-core-analyzers-graph-analyzer-ts"
          }
        },
        {
          "file": "tools/core/validators/verdict.validator.ts",
          "name": "claimedByRule",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-validators-verdict-validator-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/validators/verdict.validator.ts",
            "label": "tools/core/validators/verdict.validator.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/validators/verdict.validator.ts.md",
            "ref": "anatomy:file-coordination-tools-core-validators-verdict-validator-ts"
          }
        },
        {
          "file": "tools/core/validators/writer.validator.ts",
          "name": "reachableFrom",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-validators-writer-validator-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/validators/writer.validator.ts",
            "label": "tools/core/validators/writer.validator.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/validators/writer.validator.ts.md",
            "ref": "anatomy:file-coordination-tools-core-validators-writer-validator-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 54,
      "name": "localImports",
      "signature": "export const localImports = function localImports(path: string, source: string, known: ReadonlySet<string>): string[] {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/core/analyzers/graph.analyzer.ts",
          "name": "cyclesIn",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-analyzers-graph-analyzer-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/analyzers/graph.analyzer.ts",
            "label": "tools/core/analyzers/graph.analyzer.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/analyzers/graph.analyzer.ts.md",
            "ref": "anatomy:file-coordination-tools-core-analyzers-graph-analyzer-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 15,
      "name": "walk",
      "signature": "const walk = (node: string, trail: readonly string[]): void => {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/core/analyzers/graph.analyzer.ts",
          "name": "moduleSource",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-analyzers-graph-analyzer-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/analyzers/graph.analyzer.ts",
            "label": "tools/core/analyzers/graph.analyzer.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/analyzers/graph.analyzer.ts.md",
            "ref": "anatomy:file-coordination-tools-core-analyzers-graph-analyzer-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 77,
      "name": "withoutTypeImports",
      "signature": "const withoutTypeImports = function withoutTypeImports(source: string): string {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/analyzers/graph.analyzer.ts",
          "name": "localImports",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-analyzers-graph-analyzer-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/analyzers/graph.analyzer.ts",
            "label": "tools/core/analyzers/graph.analyzer.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/analyzers/graph.analyzer.ts.md",
            "ref": "anatomy:file-coordination-tools-core-analyzers-graph-analyzer-ts"
          }
        },
        {
          "file": "tools/core/analyzers/graph.analyzer.ts",
          "name": "withoutTypeImports",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-analyzers-graph-analyzer-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/analyzers/graph.analyzer.ts",
            "label": "tools/core/analyzers/graph.analyzer.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/analyzers/graph.analyzer.ts.md",
            "ref": "anatomy:file-coordination-tools-core-analyzers-graph-analyzer-ts"
          }
        },
        {
          "file": "tools/core/predicates/file.predicate.ts",
          "name": "isFilesystemRefusal",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-predicates-file-predicate-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/predicates/file.predicate.ts",
            "label": "tools/core/predicates/file.predicate.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/predicates/file.predicate.ts.md",
            "ref": "anatomy:file-coordination-tools-core-predicates-file-predicate-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 95,
      "name": "moduleSource",
      "signature": "export const moduleSource = function moduleSource("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/analyzers/graph.analyzer.ts",
          "name": "walk",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-analyzers-graph-analyzer-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/analyzers/graph.analyzer.ts",
            "label": "tools/core/analyzers/graph.analyzer.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/analyzers/graph.analyzer.ts.md",
            "ref": "anatomy:file-coordination-tools-core-analyzers-graph-analyzer-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "cyclesIn",
      "signature": "export const cyclesIn = function cyclesIn(edges: ReadonlyMap<string, ReadonlySet<string>>): string[][] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 4,
      "name": "CYCLE_JOIN",
      "signature": "const CYCLE_JOIN = \">\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 5,
      "name": "IMPORT_LEAD",
      "signature": "const IMPORT_LEAD = \"import \";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 6,
      "name": "TYPE_IMPORT_LEAD",
      "signature": "const TYPE_IMPORT_LEAD = \"import type \";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 7,
      "name": "FROM_MARK",
      "signature": "const FROM_MARK = 'from \"';"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "QUOTE",
      "signature": "const QUOTE = '\"';"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "RELATIVE_LEADS",
      "signature": "const RELATIVE_LEADS = [\"./\", \"../\"];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 13,
      "name": "reported",
      "signature": "const reported = new Set<string>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "at",
      "signature": "const at = trail.indexOf(node);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "cycle",
      "signature": "const cycle = trail.slice(at);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "marker",
      "signature": "const marker = cycle.toSorted((left, right) => left.localeCompare(right)).join(CYCLE_JOIN);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 40,
      "name": "specifierIn",
      "signature": "const specifierIn = function specifierIn(line: string): string | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 41,
      "name": "from",
      "signature": "const from = line.indexOf(FROM_MARK);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 45,
      "name": "start",
      "signature": "const start = from + FROM_MARK.length;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 46,
      "name": "end",
      "signature": "const end = line.indexOf(QUOTE, start);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 50,
      "name": "isRelative",
      "signature": "const isRelative = function isRelative(specifier: string): boolean {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 56,
      "name": "directory",
      "signature": "const directory = dirname(path);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 57,
      "name": "inside",
      "signature": "let inside = false;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 61,
      "name": "specifier",
      "signature": "const specifier = inside ? specifierIn(line) : null;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 66,
      "name": "posix",
      "signature": "const posix = isRelative(specifier) ? resolve(directory, specifier).replaceAll(\"\\\\\", \"/\") : \"\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 78,
      "name": "out",
      "signature": "const out: string[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 79,
      "name": "skipping",
      "signature": "let skipping = false;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 82,
      "name": "trimmed",
      "signature": "const trimmed = line.trim();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 100,
      "name": "source",
      "signature": "const source = read(path);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 101,
      "name": "combined",
      "signature": "let combined = source;"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-analyzers-graph-analyzer-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "graph.analyzer.ts",
  "path": "tools/core/analyzers/graph.analyzer.ts",
  "ref": "anatomy:file-coordination-tools-core-analyzers-graph-analyzer-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-analyzers",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-analyzers",
          "label": "tools/core/analyzers",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-analyzers.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-analyzers"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-predicates-file-predicate-ts",
          "json": "https://banes-lab.com/json/source/coordination/tools/core/predicates/file.predicate.ts",
          "label": "tools/core/predicates/file.predicate.ts",
          "markdown": "https://banes-lab.com/source/coordination/tools/core/predicates/file.predicate.ts.md",
          "ref": "anatomy:file-coordination-tools-core-predicates-file-predicate-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-validators-verdict-validator-ts",
          "json": "https://banes-lab.com/json/source/coordination/tools/core/validators/verdict.validator.ts",
          "label": "tools/core/validators/verdict.validator.ts",
          "markdown": "https://banes-lab.com/source/coordination/tools/core/validators/verdict.validator.ts.md",
          "ref": "anatomy:file-coordination-tools-core-validators-verdict-validator-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-validators-writer-validator-ts",
          "json": "https://banes-lab.com/json/source/coordination/tools/core/validators/writer.validator.ts",
          "label": "tools/core/validators/writer.validator.ts",
          "markdown": "https://banes-lab.com/source/coordination/tools/core/validators/writer.validator.ts.md",
          "ref": "anatomy:file-coordination-tools-core-validators-writer-validator-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-analyzers",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-analyzers",
          "label": "tools/core/analyzers",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-analyzers.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-analyzers"
        },
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-predicates",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-predicates",
          "label": "tools/core/predicates",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-predicates.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-predicates"
        },
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-validators",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-validators",
          "label": "tools/core/validators",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-validators.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-validators"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "analyzer",
    "subject": "graph",
    "variant": null
  },
  "stats": {
    "bytes": 3399,
    "callable": 7,
    "definitions": 29,
    "edges": 4,
    "exported": 15,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 3,
      "entry": 2,
      "isolated": 24
    },
    "lines": {
      "blank": 15,
      "code": 99,
      "total": 114
    }
  },
  "summary": "99 lines of code and 29 definitions.",
  "text": "https://banes-lab.com/source/coordination/tools/core/analyzers/graph.analyzer.ts.txt",
  "tree": "coordination",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-analyzers-literal-analyzer-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/core/analyzers/literal.analyzer.ts",
      "label": "tools/core/analyzers/literal.analyzer.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/core/analyzers/literal.analyzer.ts.md",
      "ref": "anatomy:file-coordination-tools-core-analyzers-literal-analyzer-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-analyzers-fence-analyzer-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/core/analyzers/fence.analyzer.ts",
      "label": "tools/core/analyzers/fence.analyzer.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/core/analyzers/fence.analyzer.ts.md",
      "ref": "anatomy:file-coordination-tools-core-analyzers-fence-analyzer-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/coordination/tools/core/analyzers",
    "label": "tools/core/analyzers",
    "markdown": "https://banes-lab.com/api/source/coordination/tools/core/analyzers.md",
    "ref": "api:source/coordination/tools/core/analyzers"
  }
}
