Skip to content

feat(report): --include-pages rows carry finalUrl and outcome #1260 - #1397

Closed
nc9 wants to merge 3 commits into
mainfrom
feat/pages-outcome-1260
Closed

nc9 wants to merge 3 commits into
mainfrom
feat/pages-outcome-1260

Conversation

@nc9

@nc9 nc9 commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Refs #1260 (the opt-in --include-pages list shipped in v0.0.144; this adds the outcome fields the request asked for). Restated criteria are in the issue comment; the rest is split to #1396.

  • Each pages row now carries finalUrl (where the page was served from after redirects; url when it did not redirect) and outcome: ok (under 400), rate-limited (429), http-error (any other 4xx or 5xx), error (no usable status). pageOutcome(status) is exported from @squirrelscan/report.
  • PageAudit.finalUrl is filled from the stored page record in reconstruct.ts; a report read back from JSON has no pages, as before.
  • meta.schemaVersion 1.1 to 1.2. All additions are optional: the list is still opt-in, and the published-report schema is untouched.
  • Not here: executedRules, and a reason/skipped outcome for URLs that never answered (they are not stored pages). Filed as JSON report: executedRules and a reason for pages that never answered #1396 with acceptance criteria.

Tests: packages/report/tests/json-pages-1260.test.ts (rows, pageOutcome boundaries, a 429 row, schema 1.2, extra fields not copied), apps/cli/tests/cli/audit-include-pages-e2e.test.ts (a redirected /old keeps its URL and names /about, a 404 is http-error, / is ok; the audit and the stored-report read-back agree). Gates: tsgo in packages/report and apps/cli, cli format:check and lint, make validate, released-changelog guard.

Docs: docs/cli/audit.mdx, docs/cli/report.mdx, docs/configuration/output.mdx (schema example, field list, 1.2). CHANGELOG under Unreleased / Added. Skill: no change needed (opt-in additive fields).

nik

@nc9 nc9 mentioned this pull request Oct 31, 2026
@nc9

nc9 commented Oct 31, 2026

Copy link
Copy Markdown
Contributor Author

Landed in v0.0.147 as d1d1ab06 26966b46 59d9819f via #1412. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.147. Closing this original.

nik

@nc9 nc9 closed this Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant