You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tech-detect: count scripts dropped by the 5 MB fetch cap and the script limit, and show truncation when nothing was detected #1408
Follow-up to #1387 (PR #1392). Two limits upstream of tech detection decide what it can see, and neither is reported:
The crawl fetches a script only up to 5 MB (SCRIPT_FETCH_LIMITS.MAX_SCRIPT_SIZE_BYTES) and tech detection sees only the scripts the resource phase kept (10 for a small audit, at most 50, even with --store-scripts, which stores up to 60). A 6 MB bundle with a fingerprint at 3 MB is not detected, and nothing says so.
technologies.truncated is only on a section that has items: when the cut hid every technology there is no section, so the note is not shown either (the local scan returns nothing when it detects nothing).
Acceptance Criteria
A script the crawl dropped for size (over 5 MB) or never fetched because of the script count limit is counted in technologies.truncated with its own reason (for example script-too-large, script-limit) and a script count.
The 5 MB fetch cap and the script count are documented in docs/cloud/technologies.mdx and tied to a setting where one exists.
When detection finds nothing but a cap or budget cut it short, the report carries a technologies section with an empty items list and truncated, in every format that shows technologies, without clearing technologies synced from earlier cloud scans.
Tests: a 6 MB bundle with a fingerprint inside, 12 scripts with the fingerprint in the 11th, and a crawl where nothing is detected but a cap cut the scan.
Activity
feat(tech-detect): count scripts dropped by the fetch cap or the scri…
feat(tech-detect): count scripts dropped by the fetch cap or the scri…
nc9 commentedon Oct 31, 2026
Shipped in v0.0.148 (
6ee418b3), verified against main: every acceptance criterion is met. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.148nik
test(tech-detect): cover the cut-empty sync guard and the html/consol…
test(tech-detect): cover the cut-empty sync guard and the html/consol…