{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "core/loaders/algorithm.loader.ts",
          "name": "loadBundledSymbols",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-loaders-algorithm-loader-ts",
            "json": "https://banes-lab.com/json/source/context/core/loaders/algorithm.loader.ts",
            "label": "core/loaders/algorithm.loader.ts",
            "markdown": "https://banes-lab.com/source/context/core/loaders/algorithm.loader.ts.md",
            "ref": "anatomy:file-context-core-loaders-algorithm-loader-ts"
          }
        },
        {
          "file": "core/loaders/algorithm.loader.ts",
          "name": "loadContracts",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-loaders-algorithm-loader-ts",
            "json": "https://banes-lab.com/json/source/context/core/loaders/algorithm.loader.ts",
            "label": "core/loaders/algorithm.loader.ts",
            "markdown": "https://banes-lab.com/source/context/core/loaders/algorithm.loader.ts.md",
            "ref": "anatomy:file-context-core-loaders-algorithm-loader-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "method_definition",
      "line": 28,
      "name": "constructor",
      "signature": "public constructor(options: AlgoGrammarOptions = {}, audit = new ReadAudit(COLLECTIONS.algorithms)) {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "class_declaration",
      "line": 24,
      "name": "AlgorithmStore",
      "signature": "export class AlgorithmStore extends BaseOntology<Contract, ContractFilter> implements AlgoGrammar {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 25,
      "name": "symbolIndex",
      "signature": "private readonly symbolIndex: SymbolEntry[];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 26,
      "name": "logger",
      "signature": "private readonly logger?: Logger | undefined;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 40,
      "name": "symbols",
      "signature": "public symbols = (): SymbolEntry[] => [...this.symbolIndex];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 42,
      "name": "byForce",
      "signature": "public byForce = (force: string): Contract[] => this.query({ force });"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 44,
      "name": "resolveClosure",
      "signature": "public resolveClosure = (ids: string[]): ClosureResult => {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 45,
      "name": "byId",
      "signature": "const byId = this.index();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 46,
      "name": "seed",
      "signature": "const seed = ids.filter((id) => byId.has(id));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 50,
      "name": "order",
      "signature": "const order = traverseComposes(byId, seed);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 53,
      "name": "contract",
      "signature": "const contract = byId.get(id);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 61,
      "name": "cluster",
      "signature": "public cluster = (): Cluster[] => clustersOf(this.all());"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 63,
      "name": "joinConcerns",
      "signature": "public joinConcerns = (resolvers: ConcernResolvers = {}): ConcernJoinRow[] => concernJoinOf(this.all(), resolvers);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "public_field_definition",
      "line": 65,
      "name": "validateOntology",
      "signature": "public validateOntology = (): ContractIssues => {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 66,
      "name": "base",
      "signature": "const base = this.validateEdges("
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/context#file-context-core-stores-algorithm-store-ts",
  "language": "typescript",
  "layer": "application",
  "name": "algorithm.store.ts",
  "path": "core/stores/algorithm.store.ts",
  "ref": "anatomy:file-context-core-stores-algorithm-store-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-core-stores",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-core-stores",
          "label": "core/stores",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-core-stores.md",
          "ref": "chapter:/anatomy/context#folder-context-core-stores"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#file-context-core-loaders-algorithm-loader-ts",
          "json": "https://banes-lab.com/json/source/context/core/loaders/algorithm.loader.ts",
          "label": "core/loaders/algorithm.loader.ts",
          "markdown": "https://banes-lab.com/source/context/core/loaders/algorithm.loader.ts.md",
          "ref": "anatomy:file-context-core-loaders-algorithm-loader-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-core-loaders",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-core-loaders",
          "label": "core/loaders",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-core-loaders.md",
          "ref": "chapter:/anatomy/context#folder-context-core-loaders"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "store",
    "subject": "algorithm",
    "variant": null
  },
  "stats": {
    "bytes": 2928,
    "callable": 1,
    "definitions": 15,
    "edges": 2,
    "exported": 15,
    "files": 1,
    "findings": {},
    "flows": {
      "entry": 1,
      "isolated": 14
    },
    "lines": {
      "blank": 8,
      "code": 67,
      "total": 75
    }
  },
  "summary": "67 lines of code and 15 definitions.",
  "text": "https://banes-lab.com/source/context/core/stores/algorithm.store.ts.txt",
  "tree": "context",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/context#file-context-core-stores-architecture-store-ts",
      "json": "https://banes-lab.com/json/source/context/core/stores/architecture.store.ts",
      "label": "core/stores/architecture.store.ts",
      "markdown": "https://banes-lab.com/source/context/core/stores/architecture.store.ts.md",
      "ref": "anatomy:file-context-core-stores-architecture-store-ts"
    },
    "previous": null
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/context/core/stores",
    "label": "core/stores",
    "markdown": "https://banes-lab.com/api/source/context/core/stores.md",
    "ref": "api:source/context/core/stores"
  }
}
