PkgRadar

Package evidence

@sf-agentscript/[email protected]

Install Lifecycle Suppresses Failure: postinstall="pnpm rebuild tree-sitter 2>/dev/null || true"

Trust signals

Why this verdict

PkgRadar discounts a release’s score when public reputation argues against novel malware. The verdict above already reflects these — the panel just explains what was applied.

Weekly downloads
228
Versions published
3
First published
May 2026
Publisher
nasiruddin.khan

Recommended action

Block this update

Static evidence trips multiple high-signal indicators. Quarantine the release until the publisher validates the change or you can rule out the indicators below.

Block this release in CIcurl · GitHub Actions

Fail the build when this package version is added or upgraded. Replace $PKGRADAR_TOKEN with a Pro / Team API key from your dashboard.

curl -fsS https://pkgradar.com/gate/npm \
  -H "Authorization: Bearer $PKGRADAR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"specs":["@sf-agentscript/[email protected]"],"fail_on":"high"}'

GitHub Actions step:

- name: PkgRadar gate
  run: |
    curl -fsS https://pkgradar.com/gate/npm \
      -H "Authorization: Bearer ${{ secrets.PKGRADAR_TOKEN }}" \
      -H "Content-Type: application/json" \
      -d '{"specs":["@sf-agentscript/[email protected]"],"fail_on":"high"}'
Artifact bytes162,897
Previous version2.4.1
Published2026-06-11T19:24:11.747Z
SHA-25617204933217f66441008ef9131f27ba421623d3993fb3f8568accf15cb5c4714

Why flagged

What the scanner saw

Install Lifecycle Suppresses Failure: postinstall="pnpm rebuild tree-sitter 2>/dev/null || true"

Not observed: package install, lifecycle script execution, or sandbox execution. PkgRadar only inspects on-disk artifacts.

Availability ledger

available

high
Last checked
highRisk
35Score
2.4.2Version
Status history (1 event)
  1. newavailable · risk high · score 35 · status changed

Evidence

Static findings

5 static · 0 from release diff · showing high-signal first.

SeverityKindPathDetailPoints
highInstall Lifecycle Suppresses Failurepackage.jsonpostinstall="pnpm rebuild tree-sitter 2>/dev/null || true"20
mediumNew Account With Lifecycle Hookpackage.jsonpackage first published 34 day(s) ago, 3 total version(s), has lifecycle hook10
Show all 5 findings (low-signal and informational)
SeverityKindPathDetailPoints
highInstall Lifecycle Suppresses Failurepackage.jsonpostinstall="pnpm rebuild tree-sitter 2>/dev/null || true"20
mediumNew Account With Lifecycle Hookpackage.jsonpackage first published 34 day(s) ago, 3 total version(s), has lifecycle hook10
lowInstall-time lifecycle scriptpackage.jsonpreinstall="node scripts/preinstall.cjs"5
lowInstall-time lifecycle scriptpackage.jsoninstall="node-gyp-build"5
lowInstall-time lifecycle scriptpackage.jsonpostinstall="pnpm rebuild tree-sitter 2>/dev/null || true"5

Manifest

Package metadata

Scripts20
  • buildpnpm run generate && pnpm run build:node
  • build:allpnpm run build && pnpm run build:python
  • build:fullpnpm run generate && pnpm run build:node && pnpm run build:wasm
  • build:nodenode-gyp rebuild
  • build:pythonpip install -e . || echo 'Python build requires pip in PATH'
  • build:wasmtree-sitter build --wasm
  • cleanrm -rf build prebuilds *.wasm
  • generatetree-sitter generate
  • installnode-gyp-build
  • parsetree-sitter parse
  • postinstallpnpm rebuild tree-sitter 2>/dev/null || true
  • prebuildpnpm run generate && prebuildify --napi --strip
  • prebuild:linux-x64./scripts/build-prebuilds-linux-x64.sh
  • preinstallnode scripts/preinstall.cjs
  • prestartpnpm run build:wasm
  • starttree-sitter playground
  • testrm -rf coverage && mkdir -p coverage && NODE_V8_COVERAGE=coverage/node node --test bindings/node/*_test.js && CC=gcc tree-sitter test
  • test:allpnpm test && pnpm run test:wasm
  • test:corpus:updatetree-sitter test --update
  • test:wasmnode test_wasm.mjs
Dependencies2
  • node-addon-api^8.5.0
  • node-gyp-build^4.8.4