{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "tools/core/formatters/board.formatter.ts",
          "name": "join",
          "source": {
            "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-formatters-board-formatter-ts",
            "json": "https://banes-lab.com/json/source/coordination/tools/core/formatters/board.formatter.ts",
            "label": "tools/core/formatters/board.formatter.ts",
            "markdown": "https://banes-lab.com/source/coordination/tools/core/formatters/board.formatter.ts.md",
            "ref": "anatomy:file-coordination-tools-core-formatters-board-formatter-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 7,
      "name": "nodeCliOf",
      "signature": "const nodeCliOf = function nodeCliOf(tool: string): string | undefined {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 12,
      "name": "binDir",
      "signature": "const binDir = dirname(process.execPath);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 13,
      "name": "bases",
      "signature": "const bases = [binDir, dirname(binDir)];"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "launchOf",
      "signature": "const launchOf = function launchOf(tool: string, args: readonly string[]): Launch {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "cli",
      "signature": "const cli = nodeCliOf(tool);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "runTool",
      "signature": "export const runTool = function runTool("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "launch",
      "signature": "const launch = launchOf(tool, args);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "result",
      "signature": "const result = spawnSync(launch.command, launch.args, { cwd, encoding: \"utf8\" });"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 34,
      "name": "launched",
      "signature": "const launched = result.error === undefined;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "output",
      "signature": "const output = launched ? `${result.stdout}${result.stderr}`.trim() : String(result.error);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "exitCode",
      "signature": "const exitCode = launched ? (result.status ?? -1) : -1;"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-runners-process-runner-ts",
  "language": "typescript",
  "layer": "product",
  "name": "process.runner.ts",
  "path": "tools/core/runners/process.runner.ts",
  "ref": "anatomy:file-coordination-tools-core-runners-process-runner-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-runners",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-runners",
          "label": "tools/core/runners",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-runners.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-runners"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-formatters-board-formatter-ts",
          "json": "https://banes-lab.com/json/source/coordination/tools/core/formatters/board.formatter.ts",
          "label": "tools/core/formatters/board.formatter.ts",
          "markdown": "https://banes-lab.com/source/coordination/tools/core/formatters/board.formatter.ts.md",
          "ref": "anatomy:file-coordination-tools-core-formatters-board-formatter-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#folder-coordination-tools-core-formatters",
          "json": "https://banes-lab.com/json/anatomy/coordination/folder-coordination-tools-core-formatters",
          "label": "tools/core/formatters",
          "markdown": "https://banes-lab.com/anatomy/coordination/folder-coordination-tools-core-formatters.md",
          "ref": "chapter:/anatomy/coordination#folder-coordination-tools-core-formatters"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "runner",
    "subject": "process",
    "variant": null
  },
  "stats": {
    "bytes": 1530,
    "callable": 3,
    "definitions": 11,
    "edges": 1,
    "exported": 6,
    "files": 1,
    "findings": {},
    "flows": {
      "entry": 1,
      "isolated": 10
    },
    "lines": {
      "blank": 5,
      "code": 34,
      "total": 39
    }
  },
  "summary": "34 lines of code and 11 definitions.",
  "text": "https://banes-lab.com/source/coordination/tools/core/runners/process.runner.ts.txt",
  "tree": "coordination",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-runners-record-runner-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/core/runners/record.runner.ts",
      "label": "tools/core/runners/record.runner.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/core/runners/record.runner.ts.md",
      "ref": "anatomy:file-coordination-tools-core-runners-record-runner-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/coordination#file-coordination-tools-core-runners-member-runner-ts",
      "json": "https://banes-lab.com/json/source/coordination/tools/core/runners/member.runner.ts",
      "label": "tools/core/runners/member.runner.ts",
      "markdown": "https://banes-lab.com/source/coordination/tools/core/runners/member.runner.ts.md",
      "ref": "anatomy:file-coordination-tools-core-runners-member-runner-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/coordination/tools/core/runners",
    "label": "tools/core/runners",
    "markdown": "https://banes-lab.com/api/source/coordination/tools/core/runners.md",
    "ref": "api:source/coordination/tools/core/runners"
  }
}
