{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "tools/core/resolvers/artifact.resolver.ts",
          "name": "boundRoot",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-resolvers-artifact-resolver-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/resolvers/artifact.resolver.ts",
            "label": "tools/core/resolvers/artifact.resolver.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/resolvers/artifact.resolver.ts.md",
            "ref": "anatomy:file-coordination-tools-core-resolvers-artifact-resolver-ts"
          }
        },
        {
          "file": "tools/core/resolvers/artifact.resolver.ts",
          "name": "boundRoot",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-resolvers-artifact-resolver-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/resolvers/artifact.resolver.ts",
            "label": "tools/core/resolvers/artifact.resolver.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/resolvers/artifact.resolver.ts.md",
            "ref": "anatomy:file-coordination-tools-core-resolvers-artifact-resolver-ts"
          }
        },
        {
          "file": "tools/core/resolvers/artifact.resolver.ts",
          "name": "boundRoot",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-resolvers-artifact-resolver-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/resolvers/artifact.resolver.ts",
            "label": "tools/core/resolvers/artifact.resolver.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/resolvers/artifact.resolver.ts.md",
            "ref": "anatomy:file-coordination-tools-core-resolvers-artifact-resolver-ts"
          }
        },
        {
          "file": "tools/core/resolvers/artifact.resolver.ts",
          "name": "boundRoot",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-resolvers-artifact-resolver-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/resolvers/artifact.resolver.ts",
            "label": "tools/core/resolvers/artifact.resolver.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/resolvers/artifact.resolver.ts.md",
            "ref": "anatomy:file-coordination-tools-core-resolvers-artifact-resolver-ts"
          }
        },
        {
          "file": "tools/core/resolvers/artifact.resolver.ts",
          "name": "resolveArtifactRoots",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-resolvers-artifact-resolver-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/resolvers/artifact.resolver.ts",
            "label": "tools/core/resolvers/artifact.resolver.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/resolvers/artifact.resolver.ts.md",
            "ref": "anatomy:file-coordination-tools-core-resolvers-artifact-resolver-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "unresolved",
      "signature": "const unresolved = function unresolved(key: string, data: ArtifactRootData, reason: string): ArtifactRoot {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/resolvers/artifact.resolver.ts",
          "name": "isDirectory",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-resolvers-artifact-resolver-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/resolvers/artifact.resolver.ts",
            "label": "tools/core/resolvers/artifact.resolver.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/resolvers/artifact.resolver.ts.md",
            "ref": "anatomy:file-coordination-tools-core-resolvers-artifact-resolver-ts"
          }
        },
        {
          "file": "tools/core/resolvers/artifact.resolver.ts",
          "name": "unresolved",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-resolvers-artifact-resolver-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/resolvers/artifact.resolver.ts",
            "label": "tools/core/resolvers/artifact.resolver.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/resolvers/artifact.resolver.ts.md",
            "ref": "anatomy:file-coordination-tools-core-resolvers-artifact-resolver-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "tools/core/steps/source.step.ts",
          "name": "codeFiles",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-steps-source-step-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/steps/source.step.ts",
            "label": "tools/core/steps/source.step.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/steps/source.step.ts.md",
            "ref": "anatomy:file-coordination-tools-core-steps-source-step-ts"
          }
        },
        {
          "file": "tools/rules/declaration.rule.ts",
          "name": "artifactFindings",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-declaration-rule-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/rules/declaration.rule.ts",
            "label": "tools/rules/declaration.rule.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/rules/declaration.rule.ts.md",
            "ref": "anatomy:file-coordination-tools-rules-declaration-rule-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 79,
      "name": "resolveArtifactRoots",
      "signature": "export const resolveArtifactRoots = function resolveArtifactRoots("
    },
    {
      "callable": true,
      "callees": [
        {
          "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": [
        {
          "file": "tools/core/resolvers/artifact.resolver.ts",
          "name": "resolveArtifactRoots",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-resolvers-artifact-resolver-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/resolvers/artifact.resolver.ts",
            "label": "tools/core/resolvers/artifact.resolver.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/resolvers/artifact.resolver.ts.md",
            "ref": "anatomy:file-coordination-tools-core-resolvers-artifact-resolver-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "isDirectory",
      "signature": "const isDirectory = function isDirectory(absolute: string): boolean {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/resolvers/artifact.resolver.ts",
          "name": "unresolved",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-resolvers-artifact-resolver-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/resolvers/artifact.resolver.ts",
            "label": "tools/core/resolvers/artifact.resolver.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/resolvers/artifact.resolver.ts.md",
            "ref": "anatomy:file-coordination-tools-core-resolvers-artifact-resolver-ts"
          }
        },
        {
          "file": "tools/core/resolvers/artifact.resolver.ts",
          "name": "unresolved",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-resolvers-artifact-resolver-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/resolvers/artifact.resolver.ts",
            "label": "tools/core/resolvers/artifact.resolver.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/resolvers/artifact.resolver.ts.md",
            "ref": "anatomy:file-coordination-tools-core-resolvers-artifact-resolver-ts"
          }
        },
        {
          "file": "tools/core/resolvers/artifact.resolver.ts",
          "name": "unresolved",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-resolvers-artifact-resolver-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/resolvers/artifact.resolver.ts",
            "label": "tools/core/resolvers/artifact.resolver.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/resolvers/artifact.resolver.ts.md",
            "ref": "anatomy:file-coordination-tools-core-resolvers-artifact-resolver-ts"
          }
        },
        {
          "file": "tools/core/resolvers/artifact.resolver.ts",
          "name": "unresolved",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-resolvers-artifact-resolver-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/resolvers/artifact.resolver.ts",
            "label": "tools/core/resolvers/artifact.resolver.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/resolvers/artifact.resolver.ts.md",
            "ref": "anatomy:file-coordination-tools-core-resolvers-artifact-resolver-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 47,
      "name": "boundRoot",
      "signature": "const boundRoot = function boundRoot("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/predicates/schema.predicate.ts",
          "name": "isObject",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-predicates-schema-predicate-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/predicates/schema.predicate.ts",
            "label": "tools/core/predicates/schema.predicate.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/predicates/schema.predicate.ts.md",
            "ref": "anatomy:file-coordination-tools-core-predicates-schema-predicate-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 13,
      "name": "readField",
      "signature": "const readField = function readField(source: unknown, field: readonly string[]): string | null {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "toPosix",
      "signature": "const toPosix = function toPosix(root: string, path: string): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "current",
      "signature": "let current: unknown = source;"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 39,
      "name": "parsedBinding",
      "signature": "const parsedBinding = function parsedBinding(absolute: string): { parsed: unknown; error: string | null } {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 52,
      "name": "bindingAbs",
      "signature": "const bindingAbs = resolve(repoRoot, entry.binding);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 57,
      "name": "{ error, parsed }",
      "signature": "const { error, parsed } = parsedBinding(bindingAbs);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 73,
      "name": "boundRel",
      "signature": "const boundRel = toPosix(repoRoot, resolve(repoRoot, bound));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 74,
      "name": "outside",
      "signature": "const outside = boundRel.startsWith(\"..\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 75,
      "name": "reason",
      "signature": "const reason = `${entry.field.join(\".\")} resolves to ${bound}, outside the repository`;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 84,
      "name": "bound",
      "signature": "const bound = boundRoot(repoRoot, key, entry);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 90,
      "name": "path",
      "signature": "const path = bound.path.length === 0 ? subtree : `${bound.path}/${subtree}`;"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-resolvers-artifact-resolver-ts",
  "language": "typescript",
  "layer": "infrastructure",
  "name": "artifact.resolver.ts",
  "path": "tools/core/resolvers/artifact.resolver.ts",
  "ref": "anatomy:file-coordination-tools-core-resolvers-artifact-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#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"
        },
        {
          "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-predicates-schema-predicate-ts",
          "json": "https://banes-lab.com/json/source/coordination/tools/core/predicates/schema.predicate.ts",
          "label": "tools/core/predicates/schema.predicate.ts",
          "markdown": "https://banes-lab.com/source/coordination/tools/core/predicates/schema.predicate.ts.md",
          "ref": "anatomy:file-coordination-tools-core-predicates-schema-predicate-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-steps-source-step-ts",
          "json": "https://banes-lab.com/json/source/coordination/tools/core/steps/source.step.ts",
          "label": "tools/core/steps/source.step.ts",
          "markdown": "https://banes-lab.com/source/coordination/tools/core/steps/source.step.ts.md",
          "ref": "anatomy:file-coordination-tools-core-steps-source-step-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-rules-declaration-rule-ts",
          "json": "https://banes-lab.com/json/source/coordination/tools/rules/declaration.rule.ts",
          "label": "tools/rules/declaration.rule.ts",
          "markdown": "https://banes-lab.com/source/coordination/tools/rules/declaration.rule.ts.md",
          "ref": "anatomy:file-coordination-tools-rules-declaration-rule-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "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-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"
        },
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-steps",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-steps",
          "label": "tools/core/steps",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-steps.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-steps"
        },
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-rules",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-rules",
          "label": "tools/rules",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-rules.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-rules"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "resolver",
    "subject": "artifact",
    "variant": null
  },
  "stats": {
    "bytes": 3535,
    "callable": 7,
    "definitions": 15,
    "edges": 8,
    "exported": 3,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "relay": 2,
      "entry": 2,
      "isolated": 10
    },
    "lines": {
      "blank": 12,
      "code": 84,
      "total": 96
    }
  },
  "summary": "84 lines of code and 15 definitions.",
  "text": "https://banes-lab.com/source/coordination/tools/core/resolvers/artifact.resolver.ts.txt",
  "tree": "coordination",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-resolvers-board-resolver-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/core/resolvers/board.resolver.ts",
      "label": "tools/core/resolvers/board.resolver.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/core/resolvers/board.resolver.ts.md",
      "ref": "anatomy:file-coordination-tools-core-resolvers-board-resolver-ts"
    },
    "previous": null
  },
  "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"
  }
}
