{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/adapters/shell.adapter.ts",
          "name": "runTee",
          "source": {
            "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-adapters-shell-adapter-ts",
            "json": "https://banes-lab.com/json/source/pipeline/core/adapters/shell.adapter.ts",
            "label": "core/adapters/shell.adapter.ts",
            "markdown": "https://banes-lab.com/source/pipeline/core/adapters/shell.adapter.ts.md",
            "ref": "anatomy:file-pipeline-core-adapters-shell-adapter-ts"
          }
        },
        {
          "file": "core/adapters/shell.adapter.ts",
          "name": "runTee",
          "source": {
            "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-adapters-shell-adapter-ts",
            "json": "https://banes-lab.com/json/source/pipeline/core/adapters/shell.adapter.ts",
            "label": "core/adapters/shell.adapter.ts",
            "markdown": "https://banes-lab.com/source/pipeline/core/adapters/shell.adapter.ts.md",
            "ref": "anatomy:file-pipeline-core-adapters-shell-adapter-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 63,
      "name": "relay",
      "signature": "const relay = (buffer: Buffer, stream: WriteStream): void => {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/adapters/shell.adapter.ts",
          "name": "relay",
          "source": {
            "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-adapters-shell-adapter-ts",
            "json": "https://banes-lab.com/json/source/pipeline/core/adapters/shell.adapter.ts",
            "label": "core/adapters/shell.adapter.ts",
            "markdown": "https://banes-lab.com/source/pipeline/core/adapters/shell.adapter.ts.md",
            "ref": "anatomy:file-pipeline-core-adapters-shell-adapter-ts"
          }
        },
        {
          "file": "core/adapters/shell.adapter.ts",
          "name": "relay",
          "source": {
            "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-adapters-shell-adapter-ts",
            "json": "https://banes-lab.com/json/source/pipeline/core/adapters/shell.adapter.ts",
            "label": "core/adapters/shell.adapter.ts",
            "markdown": "https://banes-lab.com/source/pipeline/core/adapters/shell.adapter.ts.md",
            "ref": "anatomy:file-pipeline-core-adapters-shell-adapter-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 55,
      "name": "runTee",
      "signature": "export const runTee = async function runTee("
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 7,
      "name": "spawnCommand",
      "signature": "const spawnCommand = function spawnCommand("
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "runCaptured",
      "signature": "export const runCaptured = async function runCaptured("
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 28,
      "name": "collect",
      "signature": "const collect = (buffer: Buffer): void => {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 42,
      "name": "runLive",
      "signature": "export const runLive = async function runLive(shell: ShellDescriptor, command: string): Promise<number> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 61,
      "name": "child",
      "signature": "const child = spawnCommand(shell, command, \"pipe\", cwd);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 62,
      "name": "chunks",
      "signature": "const chunks: string[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 64,
      "name": "text",
      "signature": "const text = buffer.toString(\"utf8\");"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/pipeline#file-pipeline-core-adapters-shell-adapter-ts",
  "language": "typescript",
  "layer": "infrastructure",
  "name": "shell.adapter.ts",
  "path": "core/adapters/shell.adapter.ts",
  "ref": "anatomy:file-pipeline-core-adapters-shell-adapter-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/pipeline#folder-pipeline-core-adapters",
          "json": "https://banes-lab.com/json/anatomy/pipeline/folder-pipeline-core-adapters",
          "label": "core/adapters",
          "markdown": "https://banes-lab.com/anatomy/pipeline/folder-pipeline-core-adapters.md",
          "ref": "chapter:/anatomy/pipeline#folder-pipeline-core-adapters"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/pipeline#folder-pipeline-core-adapters",
          "json": "https://banes-lab.com/json/anatomy/pipeline/folder-pipeline-core-adapters",
          "label": "core/adapters",
          "markdown": "https://banes-lab.com/anatomy/pipeline/folder-pipeline-core-adapters.md",
          "ref": "chapter:/anatomy/pipeline#folder-pipeline-core-adapters"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "adapter",
    "subject": "shell",
    "variant": null
  },
  "stats": {
    "bytes": 2805,
    "callable": 6,
    "definitions": 9,
    "edges": 2,
    "exported": 8,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "entry": 1,
      "isolated": 7
    },
    "lines": {
      "blank": 4,
      "code": 77,
      "total": 81
    }
  },
  "summary": "77 lines of code and 9 definitions.",
  "text": "https://banes-lab.com/source/pipeline/core/adapters/shell.adapter.ts.txt",
  "tree": "pipeline",
  "siblings": {
    "next": null,
    "previous": null
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/pipeline/core/adapters",
    "label": "core/adapters",
    "markdown": "https://banes-lab.com/api/source/pipeline/core/adapters.md",
    "ref": "api:source/pipeline/core/adapters"
  }
}
