{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/strings/snapshot.strings.ts",
          "name": "unreadItems",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-strings-snapshot-strings-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/strings/snapshot.strings.ts",
            "label": "tools/core/strings/snapshot.strings.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/strings/snapshot.strings.ts.md",
            "ref": "anatomy:file-coordination-tools-core-strings-snapshot-strings-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "tools/core/coordinators/record.coordinator.ts",
          "name": "postItem",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-coordinators-record-coordinator-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/coordinators/record.coordinator.ts",
            "label": "tools/core/coordinators/record.coordinator.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/coordinators/record.coordinator.ts.md",
            "ref": "anatomy:file-coordination-tools-core-coordinators-record-coordinator-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 44,
      "name": "unreadEcho",
      "signature": "export const unreadEcho = function unreadEcho(interval: UnreadInterval | null, target: string): string {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/resolvers/sweep.resolver.ts",
          "name": "itemSpans",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-resolvers-sweep-resolver-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/resolvers/sweep.resolver.ts",
            "label": "tools/core/resolvers/sweep.resolver.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/resolvers/sweep.resolver.ts.md",
            "ref": "anatomy:file-coordination-tools-core-resolvers-sweep-resolver-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 5,
      "name": "unreadSince",
      "signature": "export const unreadSince = function unreadSince("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "held",
      "signature": "const held = new Set(itemSpans(snapshot).map((span) => span.key));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 15,
      "name": "keys",
      "signature": "const keys: string[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "agents",
      "signature": "const agents = new Set<string>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "earliest",
      "signature": "let earliest = 0;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "latest",
      "signature": "let latest = 0;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 42,
      "name": "SECOND",
      "signature": "const SECOND = 1000;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 49,
      "name": "span",
      "signature": "const span = interval.latest > interval.earliest ? Math.round((interval.latest - interval.earliest) / SECOND) : 0;"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-resolvers-snapshot-resolver-ts",
  "language": "typescript",
  "layer": "infrastructure",
  "name": "snapshot.resolver.ts",
  "path": "tools/core/resolvers/snapshot.resolver.ts",
  "ref": "anatomy:file-coordination-tools-core-resolvers-snapshot-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-resolvers-sweep-resolver-ts",
          "json": "https://banes-lab.com/json/source/coordination/tools/core/resolvers/sweep.resolver.ts",
          "label": "tools/core/resolvers/sweep.resolver.ts",
          "markdown": "https://banes-lab.com/source/coordination/tools/core/resolvers/sweep.resolver.ts.md",
          "ref": "anatomy:file-coordination-tools-core-resolvers-sweep-resolver-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-strings-snapshot-strings-ts",
          "json": "https://banes-lab.com/json/source/coordination/tools/core/strings/snapshot.strings.ts",
          "label": "tools/core/strings/snapshot.strings.ts",
          "markdown": "https://banes-lab.com/source/coordination/tools/core/strings/snapshot.strings.ts.md",
          "ref": "anatomy:file-coordination-tools-core-strings-snapshot-strings-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-coordinators-record-coordinator-ts",
          "json": "https://banes-lab.com/json/source/coordination/tools/core/coordinators/record.coordinator.ts",
          "label": "tools/core/coordinators/record.coordinator.ts",
          "markdown": "https://banes-lab.com/source/coordination/tools/core/coordinators/record.coordinator.ts.md",
          "ref": "anatomy:file-coordination-tools-core-coordinators-record-coordinator-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-coordinators",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-coordinators",
          "label": "tools/core/coordinators",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-coordinators.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-coordinators"
        },
        {
          "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-strings",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-strings",
          "label": "tools/core/strings",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-strings.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-strings"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "resolver",
    "subject": "snapshot",
    "variant": null
  },
  "stats": {
    "bytes": 1499,
    "callable": 2,
    "definitions": 9,
    "edges": 2,
    "exported": 8,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 1,
      "entry": 1,
      "isolated": 7
    },
    "lines": {
      "blank": 10,
      "code": 42,
      "total": 52
    }
  },
  "summary": "42 lines of code and 9 definitions.",
  "text": "https://banes-lab.com/source/coordination/tools/core/resolvers/snapshot.resolver.ts.txt",
  "tree": "coordination",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-resolvers-surface-resolver-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/core/resolvers/surface.resolver.ts",
      "label": "tools/core/resolvers/surface.resolver.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/core/resolvers/surface.resolver.ts.md",
      "ref": "anatomy:file-coordination-tools-core-resolvers-surface-resolver-ts"
    },
    "previous": {
      "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"
    }
  },
  "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"
  }
}
