{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/adapters/shell.adapter.ts",
          "name": "superviseJob",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-adapters-shell-adapter-ts",
            "json": "https://banes-lab.com/json/source/docs/core/adapters/shell.adapter.ts",
            "label": "core/adapters/shell.adapter.ts",
            "markdown": "https://banes-lab.com/source/docs/core/adapters/shell.adapter.ts.md",
            "ref": "anatomy:file-docs-core-adapters-shell-adapter-ts"
          }
        },
        {
          "file": "core/adapters/shell.adapter.ts",
          "name": "superviseJob",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-adapters-shell-adapter-ts",
            "json": "https://banes-lab.com/json/source/docs/core/adapters/shell.adapter.ts",
            "label": "core/adapters/shell.adapter.ts",
            "markdown": "https://banes-lab.com/source/docs/core/adapters/shell.adapter.ts.md",
            "ref": "anatomy:file-docs-core-adapters-shell-adapter-ts"
          }
        }
      ],
      "exported": true,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 23,
      "name": "settle",
      "signature": "const settle = (code: number): void => {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "configuration/strings/invocation.strings.ts",
          "name": "jobFailed",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-configuration-strings-invocation-strings-ts",
            "json": "https://banes-lab.com/json/source/docs/configuration/strings/invocation.strings.ts",
            "label": "configuration/strings/invocation.strings.ts",
            "markdown": "https://banes-lab.com/source/docs/configuration/strings/invocation.strings.ts.md",
            "ref": "anatomy:file-docs-configuration-strings-invocation-strings-ts"
          }
        },
        {
          "file": "core/adapters/shell.adapter.ts",
          "name": "settle",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-adapters-shell-adapter-ts",
            "json": "https://banes-lab.com/json/source/docs/core/adapters/shell.adapter.ts",
            "label": "core/adapters/shell.adapter.ts",
            "markdown": "https://banes-lab.com/source/docs/core/adapters/shell.adapter.ts.md",
            "ref": "anatomy:file-docs-core-adapters-shell-adapter-ts"
          }
        },
        {
          "file": "core/adapters/shell.adapter.ts",
          "name": "settle",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-core-adapters-shell-adapter-ts",
            "json": "https://banes-lab.com/json/source/docs/core/adapters/shell.adapter.ts",
            "label": "core/adapters/shell.adapter.ts",
            "markdown": "https://banes-lab.com/source/docs/core/adapters/shell.adapter.ts.md",
            "ref": "anatomy:file-docs-core-adapters-shell-adapter-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "runtime/entrypoints/readme.entrypoint.ts",
          "name": "runPackageJob",
          "source": {
            "href": "https://banes-lab.com/anatomy/docs#file-docs-runtime-entrypoints-readme-entrypoint-ts",
            "json": "https://banes-lab.com/json/source/docs/runtime/entrypoints/readme.entrypoint.ts",
            "label": "runtime/entrypoints/readme.entrypoint.ts",
            "markdown": "https://banes-lab.com/source/docs/runtime/entrypoints/readme.entrypoint.ts.md",
            "ref": "anatomy:file-docs-runtime-entrypoints-readme-entrypoint-ts"
          }
        }
      ],
      "exported": true,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 15,
      "name": "superviseJob",
      "signature": "export const superviseJob = async function superviseJob(spec: JobSpec): Promise<JobResult> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 6,
      "name": "TIMEOUT_CODE",
      "signature": "const TIMEOUT_CODE = 124;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 7,
      "name": "FAILURE_CODE",
      "signature": "const FAILURE_CODE = 1;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 8,
      "name": "KILL_SIGNAL",
      "signature": "const KILL_SIGNAL = \"SIGKILL\";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 10,
      "name": "runInherited",
      "signature": "export const runInherited = function runInherited(script: string, args: readonly string[]): number {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "outcome",
      "signature": "const outcome = spawnSync(process.execPath, [script, ...args], { stdio: \"inherit\" });"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "child",
      "signature": "const child = spawn(spec.command, spec.args, { cwd: spec.cwd, stdio: [\"ignore\", \"pipe\", \"pipe\"] });"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "chunks",
      "signature": "const chunks: string[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 19,
      "name": "state",
      "signature": "const state = { settled: false, timedOut: false };"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "collect",
      "signature": "const collect = (buffer: Buffer): void => {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "timer",
      "signature": "const timer = setTimeout(() => {"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/docs#file-docs-core-adapters-shell-adapter-ts",
  "language": "typescript",
  "layer": "infrastructure",
  "name": "shell.adapter.ts",
  "path": "core/adapters/shell.adapter.ts",
  "ref": "anatomy:file-docs-core-adapters-shell-adapter-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-core-adapters",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-adapters",
          "label": "core/adapters",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-adapters.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-adapters"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#file-docs-configuration-strings-invocation-strings-ts",
          "json": "https://banes-lab.com/json/source/docs/configuration/strings/invocation.strings.ts",
          "label": "configuration/strings/invocation.strings.ts",
          "markdown": "https://banes-lab.com/source/docs/configuration/strings/invocation.strings.ts.md",
          "ref": "anatomy:file-docs-configuration-strings-invocation-strings-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#file-docs-runtime-entrypoints-readme-entrypoint-ts",
          "json": "https://banes-lab.com/json/source/docs/runtime/entrypoints/readme.entrypoint.ts",
          "label": "runtime/entrypoints/readme.entrypoint.ts",
          "markdown": "https://banes-lab.com/source/docs/runtime/entrypoints/readme.entrypoint.ts.md",
          "ref": "anatomy:file-docs-runtime-entrypoints-readme-entrypoint-ts"
        }
      ],
      "relation": "used-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-configuration-strings",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-configuration-strings",
          "label": "configuration/strings",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-configuration-strings.md",
          "ref": "chapter:/anatomy/docs#folder-docs-configuration-strings"
        },
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-core-adapters",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-core-adapters",
          "label": "core/adapters",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-core-adapters.md",
          "ref": "chapter:/anatomy/docs#folder-docs-core-adapters"
        },
        {
          "href": "https://banes-lab.com/anatomy/docs#folder-docs-runtime-entrypoints",
          "json": "https://banes-lab.com/json/anatomy/docs/folder-docs-runtime-entrypoints",
          "label": "runtime/entrypoints",
          "markdown": "https://banes-lab.com/anatomy/docs/folder-docs-runtime-entrypoints.md",
          "ref": "chapter:/anatomy/docs#folder-docs-runtime-entrypoints"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "adapter",
    "subject": "shell",
    "variant": null
  },
  "stats": {
    "bytes": 1900,
    "callable": 4,
    "definitions": 12,
    "edges": 3,
    "exported": 9,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "relay": 1,
      "isolated": 10
    },
    "lines": {
      "blank": 3,
      "code": 44,
      "total": 47
    }
  },
  "summary": "44 lines of code and 12 definitions.",
  "text": "https://banes-lab.com/source/docs/core/adapters/shell.adapter.ts.txt",
  "tree": "docs",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/docs#file-docs-core-adapters-vcs-adapter-ts",
      "json": "https://banes-lab.com/json/source/docs/core/adapters/vcs.adapter.ts",
      "label": "core/adapters/vcs.adapter.ts",
      "markdown": "https://banes-lab.com/source/docs/core/adapters/vcs.adapter.ts.md",
      "ref": "anatomy:file-docs-core-adapters-vcs-adapter-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/docs#file-docs-core-adapters-markdown-adapter-ts",
      "json": "https://banes-lab.com/json/source/docs/core/adapters/markdown.adapter.ts",
      "label": "core/adapters/markdown.adapter.ts",
      "markdown": "https://banes-lab.com/source/docs/core/adapters/markdown.adapter.ts.md",
      "ref": "anatomy:file-docs-core-adapters-markdown-adapter-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/docs/core/adapters",
    "label": "core/adapters",
    "markdown": "https://banes-lab.com/api/source/docs/core/adapters.md",
    "ref": "api:source/docs/core/adapters"
  }
}
