Skip to content

Commit 7a8898a

Browse files
committed
fix(website): keep crawler smoke checks deployable
1 parent 72b4a00 commit 7a8898a

4 files changed

Lines changed: 1 addition & 22 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
- Added a release-prep checklist for auditing changelog, package metadata, and dry-run package contents without publishing.
2222
- Improved bounded source grouping so large flat directories split repeated filename families like command, plugin, doctor, and runtime files into more coherent review slices.
2323
- Fixed acpx provider error reporting by reading the terminal `result.stopReason` envelope and surfacing non-`end_turn` reasons as typed `ClawpatchError` codes (`agent-cancelled`, `agent-refused`, `agent-truncated`) instead of opaque `malformed-output`, thanks @coletebou.
24+
- Added website crawler artifacts and a static smoke check for metadata, anchors, and social-card dimensions, thanks @zack-dev-cm.
2425
- Improved OpenCode malformed JSON diagnostics with output length, event kinds, and a bounded preview, thanks @rohitjavvadi.
2526
- Fixed finding signatures so equivalent evidence remains stable across re-reviews, thanks @rohitjavvadi.
2627
- Fixed provider exit-code classification for stdout-only authentication and quota failures, thanks @rohitjavvadi.

scripts/website-smoke.mjs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ function extractFirst(html, pattern, label) {
3838
const html = await mustRead("website/index.html");
3939
const robots = await mustRead("website/robots.txt");
4040
const sitemap = await mustRead("website/sitemap.xml");
41-
const headers = await mustRead("website/_headers");
4241

4342
const title = stripTags(extractFirst(html, /<title>([\s\S]*?)<\/title>/iu, "title"));
4443
if (title !== "Clawpatch — Automated Code Review") {
@@ -69,19 +68,6 @@ if (!sitemap.includes("<loc>https://clawpatch.ai/</loc>")) {
6968
fail("sitemap.xml missing canonical homepage loc");
7069
}
7170

72-
for (const expectedHeader of [
73-
"Strict-Transport-Security",
74-
"X-Content-Type-Options",
75-
"X-Frame-Options",
76-
"Referrer-Policy",
77-
"Permissions-Policy",
78-
"Content-Security-Policy",
79-
]) {
80-
if (!headers.includes(expectedHeader)) {
81-
fail(`_headers missing ${expectedHeader}`);
82-
}
83-
}
84-
8571
const socialCard = await readFile(join(website, "social-card.png"));
8672
if (socialCard.toString("ascii", 1, 4) !== "PNG") {
8773
fail("social-card.png is not a PNG");

website/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Files:
1010
- `social-card.png`: raster link preview card for Open Graph/Twitter
1111
- `robots.txt`: crawler policy with sitemap reference
1212
- `sitemap.xml`: canonical single-page sitemap
13-
- `_headers`: static security headers for hosts that support header files
1413

1514
Preview:
1615

website/_headers

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)