{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/steps/release.step.ts",
          "name": "uploadSite",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-release-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/release.step.ts",
            "label": "core/steps/release.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/release.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-release-step-ts"
          }
        },
        {
          "file": "core/steps/release.step.ts",
          "name": "uploadSite",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-release-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/release.step.ts",
            "label": "core/steps/release.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/release.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-release-step-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 43,
      "name": "outcomeLine",
      "signature": "const outcomeLine = function outcomeLine(prefix: string, uploaded: number, total: number): string {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "configuration/strings/deployment.strings.ts",
          "name": "unpackFailed",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-configuration-strings-deployment-strings-ts",
            "json": "https://banes-lab.com/json/source/deploy/configuration/strings/deployment.strings.ts",
            "label": "configuration/strings/deployment.strings.ts",
            "markdown": "https://banes-lab.com/source/deploy/configuration/strings/deployment.strings.ts.md",
            "ref": "anatomy:file-deploy-configuration-strings-deployment-strings-ts"
          }
        },
        {
          "file": "core/adapters/release.adapter.ts",
          "name": "packFolder",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-adapters-release-adapter-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/adapters/release.adapter.ts",
            "label": "core/adapters/release.adapter.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/adapters/release.adapter.ts.md",
            "ref": "anatomy:file-deploy-core-adapters-release-adapter-ts"
          }
        },
        {
          "file": "core/steps/release.step.ts",
          "name": "outcomeLine",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-release-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/release.step.ts",
            "label": "core/steps/release.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/release.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-release-step-ts"
          }
        },
        {
          "file": "core/steps/release.step.ts",
          "name": "outcomeLine",
          "source": {
            "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-release-step-ts",
            "json": "https://banes-lab.com/json/source/deploy/core/steps/release.step.ts",
            "label": "core/steps/release.step.ts",
            "markdown": "https://banes-lab.com/source/deploy/core/steps/release.step.ts.md",
            "ref": "anatomy:file-deploy-core-steps-release-step-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 60,
      "name": "uploadSite",
      "signature": "export const uploadSite = async function uploadSite(shell: Shell, journal: Journal): Promise<UploadStats> {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "tally",
      "signature": "const tally = function tally(directory: string): { readonly bytes: number; readonly files: number } {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "files",
      "signature": "let files = 0;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 33,
      "name": "bytes",
      "signature": "let bytes = 0;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "path",
      "signature": "const path = join(directory, entry.name);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "inner",
      "signature": "const inner = entry.isDirectory() ? tally(path) : { bytes: statSync(path).size, files: 1 };"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 55,
      "name": "remoteFileCount",
      "signature": "const remoteFileCount = async function remoteFileCount(shell: Shell): Promise<number> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 56,
      "name": "counted",
      "signature": "const counted = await shell.run(`find ${REMOTE_SITE} -type f | wc -l`);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 62,
      "name": "source",
      "signature": "const source = absolutePath(\"builds.web\");"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 63,
      "name": "planned",
      "signature": "const planned = tally(source);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 66,
      "name": "folder",
      "signature": "const folder = mkdtempSync(join(tmpdir(), ARCHIVE_TEMPORARY_PREFIX));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 67,
      "name": "archive",
      "signature": "const archive = join(folder, SITE_ARCHIVE);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 68,
      "name": "remote",
      "signature": "const remote = REMOTE_STAGING + PATH_SEPARATOR + SITE_ARCHIVE;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 73,
      "name": "upload",
      "signature": "const upload = createByteProgress(journal, UPLOAD_LABEL, ARCHIVE_UNIT);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 80,
      "name": "unpacked",
      "signature": "const unpacked = await shell.run("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 86,
      "name": "uploadedCount",
      "signature": "const uploadedCount = await remoteFileCount(shell);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-release-step-ts",
  "language": "typescript",
  "layer": "application",
  "name": "release.step.ts",
  "path": "core/steps/release.step.ts",
  "ref": "anatomy:file-deploy-core-steps-release-step-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/deploy#folder-deploy-core-steps",
          "json": "https://banes-lab.com/json/anatomy/deploy/folder-deploy-core-steps",
          "label": "core/steps",
          "markdown": "https://banes-lab.com/anatomy/deploy/folder-deploy-core-steps.md",
          "ref": "chapter:/anatomy/deploy#folder-deploy-core-steps"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/deploy#file-deploy-configuration-strings-deployment-strings-ts",
          "json": "https://banes-lab.com/json/source/deploy/configuration/strings/deployment.strings.ts",
          "label": "configuration/strings/deployment.strings.ts",
          "markdown": "https://banes-lab.com/source/deploy/configuration/strings/deployment.strings.ts.md",
          "ref": "anatomy:file-deploy-configuration-strings-deployment-strings-ts"
        },
        {
          "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-adapters-release-adapter-ts",
          "json": "https://banes-lab.com/json/source/deploy/core/adapters/release.adapter.ts",
          "label": "core/adapters/release.adapter.ts",
          "markdown": "https://banes-lab.com/source/deploy/core/adapters/release.adapter.ts.md",
          "ref": "anatomy:file-deploy-core-adapters-release-adapter-ts"
        }
      ],
      "relation": "uses"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/deploy#folder-deploy-configuration-strings",
          "json": "https://banes-lab.com/json/anatomy/deploy/folder-deploy-configuration-strings",
          "label": "configuration/strings",
          "markdown": "https://banes-lab.com/anatomy/deploy/folder-deploy-configuration-strings.md",
          "ref": "chapter:/anatomy/deploy#folder-deploy-configuration-strings"
        },
        {
          "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"
        },
        {
          "href": "https://banes-lab.com/anatomy/deploy#folder-deploy-core-steps",
          "json": "https://banes-lab.com/json/anatomy/deploy/folder-deploy-core-steps",
          "label": "core/steps",
          "markdown": "https://banes-lab.com/anatomy/deploy/folder-deploy-core-steps.md",
          "ref": "chapter:/anatomy/deploy#folder-deploy-core-steps"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "step",
    "subject": "release",
    "variant": null
  },
  "stats": {
    "bytes": 3372,
    "callable": 4,
    "definitions": 17,
    "edges": 4,
    "exported": 9,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "entry": 1,
      "isolated": 15
    },
    "lines": {
      "blank": 4,
      "code": 88,
      "total": 92
    }
  },
  "summary": "88 lines of code and 17 definitions.",
  "text": "https://banes-lab.com/source/deploy/core/steps/release.step.ts.txt",
  "tree": "deploy",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-remote-step-ts",
      "json": "https://banes-lab.com/json/source/deploy/core/steps/remote.step.ts",
      "label": "core/steps/remote.step.ts",
      "markdown": "https://banes-lab.com/source/deploy/core/steps/remote.step.ts.md",
      "ref": "anatomy:file-deploy-core-steps-remote-step-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-recovery-step-ts",
      "json": "https://banes-lab.com/json/source/deploy/core/steps/recovery.step.ts",
      "label": "core/steps/recovery.step.ts",
      "markdown": "https://banes-lab.com/source/deploy/core/steps/recovery.step.ts.md",
      "ref": "anatomy:file-deploy-core-steps-recovery-step-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/deploy/core/steps",
    "label": "core/steps",
    "markdown": "https://banes-lab.com/api/source/deploy/core/steps.md",
    "ref": "api:source/deploy/core/steps"
  }
}
