Repository navigation
feat(connectors): add a website connector that syncs pages from a site's sitemaps - #10536
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
There was a problem hiding this comment.
All reported issues were addressed across 15 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
[Medium impact] The PR appears safe to merge; no actionable issues remain. SummaryAdds a website connector that discovers pages through sitemaps and reads their HTML within the configured scope.
|
…scheme, withdraw excluded pages, one request header
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 15 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
…lformed sitemaps, match robots in linear time, pin the port
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 16 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 16 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
…the rules it evaluates
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
No issues found across 16 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Turn on auto-fix | Re-trigger cubic
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 16 files
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Turn on auto-fix | Re-trigger cubic
…instead of failing it
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
No issues found across 16 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Turn on auto-fix | Re-trigger cubic
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 16 files
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Turn on auto-fix | Re-trigger cubic
…listing rebuilt mid-sync
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
No issues found across 16 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Turn on auto-fix | Re-trigger cubic
Summary
websiteknowledge connector: syncs the pages a site lists in its sitemaps (declared in robots.txt, orsitemap.xmlunder the configured path and at the host root, or a configured sitemap URL). Sitemaps are read with a streaming XML parser (CDATA, entities, namespace prefixes). Sitemap indexes and gzipped sitemaps are followed, bounded at 20 documents and 50,000 pages; a missing or invalid configured, declared or child sitemap fails the sync rather than shrinking the listing. Requests carry a 30s attempt timeout and a 120s deadlinewwware one site), under the configured path, optional include/exclude path patterns with*, robots.txt honored (RFC 9309 longest match,SimBotgroup or*), non-page files skippedsecureFetchWithRetry(configuredEndpoint, DNS-pinned, org egress route). A redirect is refused before it is followed unless it stays on the host and, for a page, inside the configured scopeName: valueline; cookies,Host, proxy, hop-by-hop andUser-Agentheaders and control characters are refused. An HTTPS site never sends it over plain HTTP<main>/<article>preferred, page chrome dropped, listed pages that are gone, not HTML,noindexor empty are withdrawn (skipped, replacing indexed content), pages over 2 MB recorded as skipped. robots.txt rules and path patterns match in one canonical URL encoding.html-parser.tsexportsloadedHtmlToStructuredTextso a caller that already loaded the document does not parse it again<lastmod>is the listing hash, so unchanged pages are not fetched; undated pages are fetched and their content hash decides whether anything is rewritten. A listing cut bymaxPagessetslistingCappedType of Change
Testing
connectors/website/website.integration.ts(9 tests) against real HTTP servers through the guarded fetch: sitemap index + gzipped child, host and robots filtering, header requirement, off-host and out-of-scope redirects (no request reaches the other host), lastmod hash parity, content-hash change detection, chrome stripping,noindex/ 404, oversize skip, cap and exact-caplistingCapped, robots and missing-sitemap failuresrobots.test.ts,site.test.ts(14 tests): robots precedence and group selection, wildcard/anchor matching, header refusals, path-prefix boundary, URL refusalbun run --cwd apps/sim test connectors lib/sim-search/connectors.test.ts lib/knowledge/connectors lib/file-parserspassbun run lint,bun run generate(docs icon copy updated),check:comment-hygiene,check:test-patterns,check:utils,check:explicit-any,check:bare-icons,check:icon-paths,check:icon-path-precision,check:organization-egress,check:client-boundary,check:file-names; full type-check and audits left to CIChecklist
test-auditauthoring gate)