{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 5,
      "name": "logSize",
      "signature": "export const logSize = async function logSize(shell: Shell, log: string): Promise<number> {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "loggedSince",
      "signature": "export const loggedSince = async function loggedSince(shell: Shell, log: string, offset: number): Promise<string> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 15,
      "name": "size",
      "signature": "const size = await logSize(shell, log);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "from",
      "signature": "const from = size < offset ? 0 : offset;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "result",
      "signature": "const result = await shell.run(`${LOG_TAIL_COMMAND}${String(from + 1)} ${log}`);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-adapters-server-adapter-ts",
  "language": "typescript",
  "layer": "infrastructure",
  "name": "server.adapter.ts",
  "path": "core/adapters/server.adapter.ts",
  "ref": "anatomy:file-deploy-core-adapters-server-adapter-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/deploy#folder-deploy-core-adapters",
          "json": "https://banes-lab.com/json/anatomy/deploy/folder-deploy-core-adapters",
          "label": "core/adapters",
          "markdown": "https://banes-lab.com/anatomy/deploy/folder-deploy-core-adapters.md",
          "ref": "chapter:/anatomy/deploy#folder-deploy-core-adapters"
        }
      ],
      "relation": "contained-in"
    }
  ],
  "slots": {
    "concern": "adapter",
    "subject": "server",
    "variant": null
  },
  "stats": {
    "bytes": 1037,
    "callable": 2,
    "definitions": 5,
    "edges": 0,
    "exported": 5,
    "files": 1,
    "findings": {},
    "flows": {
      "isolated": 5
    },
    "lines": {
      "blank": 2,
      "code": 23,
      "total": 25
    }
  },
  "summary": "23 lines of code and 5 definitions.",
  "text": "https://banes-lab.com/source/deploy/core/adapters/server.adapter.ts.txt",
  "tree": "deploy",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-adapters-shell-adapter-ts",
      "json": "https://banes-lab.com/json/source/deploy/core/adapters/shell.adapter.ts",
      "label": "core/adapters/shell.adapter.ts",
      "markdown": "https://banes-lab.com/source/deploy/core/adapters/shell.adapter.ts.md",
      "ref": "anatomy:file-deploy-core-adapters-shell-adapter-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-adapters-search-adapter-ts",
      "json": "https://banes-lab.com/json/source/deploy/core/adapters/search.adapter.ts",
      "label": "core/adapters/search.adapter.ts",
      "markdown": "https://banes-lab.com/source/deploy/core/adapters/search.adapter.ts.md",
      "ref": "anatomy:file-deploy-core-adapters-search-adapter-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/deploy/core/adapters",
    "label": "core/adapters",
    "markdown": "https://banes-lab.com/api/source/deploy/core/adapters.md",
    "ref": "api:source/deploy/core/adapters"
  }
}
