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
apps/cli/src/crawl/sitemaps.ts, robots.ts and index.ts (and possibly csr-detect.ts) are not imported by any CLI source file. Only src/crawl/hybrid-fetcher.ts is reachable, from src/controllers/audit.ts. Sitemap and robots fetching for audits lives in packages/crawler. The dead modules are still imported by tests (tests/tools/request-deadline.test.ts, tests/crawler/fetch-deadline.test.ts).
They matter because they look live. crawl/sitemaps.ts fetches a site URL with a plain fetch() and an unbounded response.text(), the compression-bomb shape that #699 removed from every live path. A review of #699 flagged it as a remaining gap. A later change could wire it back in without noticing.
Acceptance Criteria
No file under apps/cli/src/crawl/ exists that nothing in apps/cli/src imports (check with a grep for the module path and ./<name> imports).
Tests that only exercised the removed modules are removed, or point at the packages/crawler equivalents. The remaining CLI tests pass.
bun run build in apps/cli still produces a working squirrel audit against a local site.
Status after #782 (#756): sitemaps.ts, robots.ts and index.ts are gone from apps/cli/src/crawl/, and their tests moved to the crawler and utils packages. Still open for criterion 1: apps/cli/src/crawl/csr-detect.ts is a re-export of @squirrelscan/fetchers that only apps/cli/tests/crawler/csr-detect.test.ts imports. Point that test at @squirrelscan/fetchers and delete the shim. Criterion 3 (bun run build produces a working squirrel audit) is not yet re-verified.
Activity
nc9 commentedon Oct 15, 2026
Status after #782 (#756):
sitemaps.ts,robots.tsandindex.tsare gone fromapps/cli/src/crawl/, and their tests moved to the crawler and utils packages. Still open for criterion 1:apps/cli/src/crawl/csr-detect.tsis a re-export of@squirrelscan/fetchersthat onlyapps/cli/tests/crawler/csr-detect.test.tsimports. Point that test at@squirrelscan/fetchersand delete the shim. Criterion 3 (bun run buildproduces a workingsquirrel audit) is not yet re-verified.chore(cli): drop the csr-detect re-export shim and orphaned crawl fix…