Skip to content

Align URL scanner with shared hints#23

Merged
alyldas merged 3 commits into
mainfrom
feat/shared-hints-url-scanner
Jun 29, 2026
Merged

Align URL scanner with shared hints#23
alyldas merged 3 commits into
mainfrom
feat/shared-hints-url-scanner

Conversation

@alyldas

@alyldas alyldas commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add boolean URL scanner checks and sink-based range streaming with early stop support.
  • Accept shared-style text hints for cheap clean-text rejection while preserving legacy scan(input) output.
  • Keep URL parsing and validation inside the URL package and preserve existing filter wrapper behavior.
  • Extend URL benchmarks with scanner setup, check(), bare-domain, hinted clean, and late-match rows.

Validation

  • npm ci
  • npm run check
  • npm run benchmark:url
  • npm pack --dry-run
  • Public runtime exports and package dry-run contents reviewed

Benchmarks

Latest URL benchmark highlights:

  • check hinted short clean: 0.0003 avg ms
  • check direct URL: 0.0086 avg ms
  • check bare domain: 0.0061 avg ms
  • check late-match URL: 0.6098 avg ms
  • censor direct URL: 0.0114 avg ms
  • censor bare domain: 0.0073 avg ms
  • censor obfuscated URL: 0.0114 avg ms
  • censor late-match URL: 0.6316 avg ms

Closes #22

No publish, no merge, no tag/release.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 475ae0484b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/scanner.ts

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: acb36fcd5b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/scanner.ts Outdated
@alyldas alyldas merged commit 16dc6d4 into main Jun 29, 2026
4 checks passed
@alyldas alyldas deleted the feat/shared-hints-url-scanner branch June 29, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Align URL scanner with shared hints and allocation-aware contract

1 participant