{
  "ml": {
    "v": "7",
    "id": 2214,
    "lvl": -1,
    "conf": 0,
    "prob": 0.000020295381546020508,
    "type": "javascript",
    "version": "v18.18",
    "analyzed_at": "2026-10-22T10:20:50Z"
  },
  "path": "package/dist/cli.js##url@6208133",
  "raw": {
    "rev": "17dc6",
    "files": [
      {
        "id": 2461,
        "mol": "Md₂(Pt)",
        "pid": 520,
        "rel": "fetched",
        "sha": "0f684a4f0ba24d501c6db639fd356c036f80c966fd1d67bc7ea1247837630317",
        "via": "https://registry.npmjs.org/@oh-my-pi/pi-coding-agent/-/pi-coding-agent-18.12.2.tgz",
        "path": "pkg:npm/%40oh-my-pi/pi-coding-agent@18.12.2!!package/dist/cli.js!!package/dist/cli.js##url@6208133",
        "risk": 3,
        "size": 2934,
        "type": "shell",
        "depth": 4,
        "facts": {
          "imp": [
            [
              "",
              "which.Install"
            ],
            [
              "",
              "e.g"
            ],
            [
              "",
              "e.indexOf"
            ],
            [
              "",
              "Number.parseFloat"
            ],
            [
              "",
              "Number.isFinite"
            ],
            [
              "",
              "Number.parseFloat"
            ],
            [
              "",
              "e.slice"
            ],
            [
              "",
              "Number.parseFloat"
            ],
            [
              "",
              "e.slice"
            ],
            [
              "",
              "Number.isFinite"
            ],
            [
              "",
              "Number.isFinite"
            ],
            [
              "",
              "H1e"
            ],
            [
              "",
              "mu"
            ],
            [
              "",
              "Bun.spawn"
            ],
            [
              "",
              "r.kill"
            ],
            [
              "",
              "t.addEventListener"
            ],
            [
              "",
              "Te"
            ],
            [
              "",
              "Promise.all"
            ],
            [
              "",
              "U1e"
            ],
            [
              "",
              "U1e"
            ],
            [
              "",
              "mu"
            ],
            [
              "",
              "t.removeEventListener"
            ],
            [
              "",
              "mu"
            ],
            [
              "",
              "tlt.basename"
            ],
            [
              "",
              "s.trim.slice"
            ],
            [
              "",
              "s.trim"
            ],
            [
              "",
              "JSON.parse"
            ],
            [
              "",
              "mu"
            ],
            [
              "",
              "tlt.basename"
            ],
            [
              "",
              "l.streams.find"
            ],
            [
              "",
              "l.streams.find"
            ],
            [
              "",
              "Number.parseFloat"
            ],
            [
              "",
              "Number.isFinite"
            ],
            [
              "",
              "pho"
            ],
            [
              "",
              "pho"
            ],
            [
              "",
              "e.getReader"
            ],
            [
              "",
              "t.read"
            ],
            [
              "",
              "n.push"
            ],
            [
              "",
              "Buffer.concat.toString"
            ],
            [
              "",
              "Buffer.concat"
            ],
            [
              "",
              "Math.max"
            ],
            [
              "",
              "Math.floor"
            ],
            [
              "",
              "Math.floor"
            ],
            [
              "",
              "Math.floor"
            ],
            [
              "",
              "String.padStart"
            ],
            [
              "",
              "String"
            ],
            [
              "",
              "String.padStart"
            ],
            [
              "",
              "String"
            ],
            [
              "",
              "o.push"
            ],
            [
              "",
              "o.push"
            ],
            [
              "",
              "o.push"
            ],
            [
              "",
              "o.join"
            ],
            [
              "",
              "i.push"
            ],
            [
              "",
              "i.push"
            ],
            [
              "",
              "i.push"
            ],
            [
              "",
              "IHl"
            ],
            [
              "",
              "t.durationSec.toFixed"
            ],
            [
              "",
              "t.fps.toFixed"
            ],
            [
              "",
              "$1e"
            ]
          ],
          "mbr": [
            "Buffer.concat",
            "Buffer.concat.toString",
            "Bun.spawn",
            "JSON.parse",
            "Math.floor",
            "Math.max",
            "Number.isFinite",
            "Number.parseFloat",
            "Promise.all",
            "String.padStart",
            "c.avg_frame_rate",
            "c.codec_name",
            "c.height",
            "c.r_frame_rate",
            "c.width",
            "d.codec_name",
            "e.g",
            "e.getReader",
            "e.indexOf",
            "e.slice",
            "i.join",
            "i.push",
            "l.format",
            "l.format.duration",
            "l.format.format_name",
            "l.streams",
            "l.streams.find",
            "n.push",
            "o.join",
            "o.push",
            "p.codec_type",
            "r.exited",
            "r.kill",
            "r.stderr",
            "r.stdout",
            "s.trim",
            "s.trim.slice",
            "t.aborted",
            "t.addEventListener",
            "t.audioCodec",
            "t.durationSec",
            "t.durationSec.toFixed",
            "t.formatName",
            "t.fps",
            "t.fps.toFixed",
            "t.height",
            "t.read",
            "t.removeEventListener",
            "t.videoCodec",
            "t.width",
            "tlt.basename",
            "which.Install"
          ],
          "tgt": [
            "$1e",
            "Buffer.concat",
            "Buffer.concat.toString",
            "Bun.spawn",
            "H1e",
            "IHl",
            "JSON.parse",
            "Math.floor",
            "Math.max",
            "Number.isFinite",
            "Number.parseFloat",
            "Promise.all",
            "String",
            "String.padStart",
            "Te",
            "U1e",
            "e.g",
            "e.getReader",
            "e.indexOf",
            "e.slice",
            "i.push",
            "l.streams.find",
            "mu",
            "n.push",
            "o.join",
            "o.push",
            "pho",
            "r.kill",
            "s",
            "s.trim",
            "s.trim.slice",
            "t",
            "t.addEventListener",
            "t.durationSec.toFixed",
            "t.fps.toFixed",
            "t.read",
            "t.removeEventListener",
            "tlt.basename",
            "which.Install"
          ],
          "metrics": {
            "ast": {
              "op.eq": 6,
              "op.gt": 5,
              "op.le": 1,
              "op.ne": 6,
              "op.add": 1,
              "op.div": 3,
              "op.lor": 6,
              "op.sub": 2,
              "op.land": 4,
              "op.lnot": 5,
              "max_depth": 16,
              "call_count": 61,
              "node_count": 1578,
              "op.coalesce": 3,
              "member_count": 52,
              "max_array_len": 8,
              "op_density.eq": 0,
              "op_density.gt": 0,
              "op_density.le": 0,
              "op_density.ne": 0,
              "op_density.add": 0,
              "op_density.div": 0,
              "op_density.lor": 0,
              "op_density.sub": 0,
              "sequence_count": 3,
              "op_density.land": 0,
              "op_density.lnot": 0,
              "max_concat_chain": 2,
              "member_depth_max": 3,
              "op_density.coalesce": 0
            },
            "file": {
              "size": 2934,
              "entropy": 5.32
            },
            "text": {
              "lines": 1,
              "top_char": 101,
              "max_ws_run": 1,
              "digit_ratio": 0.04,
              "space_count": 109,
              "char_entropy": 5.32,
              "unique_chars": 81,
              "top_char_null": 0,
              "lines_over_200": 1,
              "lines_over_500": 1,
              "string_density": 41,
              "top_char_ratio": 0.07,
              "avg_line_length": 2934,
              "lines_over_1000": 1,
              "max_line_length": 2934,
              "last_line_length": 2934,
              "long_token_count": 7,
              "whitespace_ratio": 0.04,
              "identifier_density": 294,
              "normalized_string_count": 41,
              "suspicious_string_ratio": 0.17,
              "suspicious_identifier_ratio": 0.16
            },
            "binds": {
              "count": 19
            },
            "binary": {
              "peak_region_bytes": 2934,
              "peak_region_entropy": 5.3
            },
            "source": {
              "function_count": 4
            },
            "strings": {
              "bytes": 1202,
              "count": 41,
              "shell": 5,
              "avg_length": 29.32,
              "max_length": 223,
              "avg_entropy": 2.82,
              "empty_count": 1,
              "entropy_stddev": 1.49,
              "high_entropy_count": 1,
              "embedded_code_candidates": 2
            },
            "functions": {
              "count": 4,
              "nested": 1,
              "density": 700,
              "anonymous": 3,
              "avg_params": 1,
              "code_ratio": 7,
              "max_params": 2,
              "one_liners": 7,
              "avg_name_length": 2.75,
              "no_params_count": 1,
              "avg_length_lines": 1,
              "max_length_lines": 1,
              "min_length_lines": 1,
              "avg_nesting_depth": 0.43,
              "max_nesting_depth": 1,
              "single_char_params": 7,
              "numeric_suffix_names": 1,
              "avg_param_name_length": 1
            },
            "consistency": {
              "extension_content_mismatch": 1,
              "extension_content_mismatch.script_as_unknown": 1
            },
            "identifiers": {
              "count": 294,
              "unique": 92,
              "avg_length": 5.09,
              "max_length": 19,
              "min_length": 1,
              "avg_entropy": 1.8,
              "reuse_ratio": 0.31,
              "length_stddev": 3.56,
              "has_digit_ratio": 0.05,
              "sequential_names": 15,
              "single_char_count": 15,
              "single_char_ratio": 0.16,
              "all_lowercase_ratio": 0.62,
              "all_uppercase_ratio": 0.03,
              "numeric_suffix_count": 2
            }
          }
        },
        "traits": [
          {
            "id": "metadata/file/line::single-long-line-outlier",
            "conf": 0.9,
            "crit": 3,
            "desc": "Exactly one line exceeds 1000 characters"
          },
          {
            "id": "metadata/lang/natural::lang-english--atom-2",
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"and\"",
            "spans": [
              [
                327,
                0
              ]
            ]
          },
          {
            "id": "metadata/lang/natural::lang-english--atom-5",
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"for\"",
            "spans": [
              [
                1891,
                0
              ]
            ]
          },
          {
            "id": "metadata/lang/scripted::javascript-module-basename",
            "conf": 1.0,
            "crit": 3,
            "desc": "JavaScript module file extension"
          },
          {
            "id": "metadata/package/manager::homebrew-install-command",
            "conf": 0.5,
            "crit": 3,
            "desc": "Homebrew install command",
            "spans": [
              [
                304,
                12
              ]
            ]
          },
          {
            "id": "metadata/file/padding::low-whitespace",
            "conf": 0.7,
            "crit": 2,
            "desc": "Very low whitespace ratio (minified/compressed)"
          },
          {
            "id": "metadata/file/profile/identifier-population::sequential-identifiers",
            "conf": 0.8,
            "crit": 2,
            "desc": "Sequential source identifier names"
          },
          {
            "id": "metadata/package/error-handling::catch-keyword",
            "conf": 0.5,
            "crit": 2,
            "desc": "Contains a catch error handler",
            "spans": [
              [
                128,
                0
              ]
            ]
          },
          {
            "id": "micro-behaviors/process/create/shell/spawn::backtick-command-substitution",
            "conf": 1.0,
            "crit": 2,
            "desc": "shell backtick command substitution",
            "spans": [
              [
                303,
                0
              ]
            ]
          }
        ]
      }
    ]
  }
}