Skip to content

Add metadata for agent-discovery#4244

Merged
ewels merged 6 commits into
mainfrom
agent-discovery-link-headers
Jun 23, 2026
Merged

Add metadata for agent-discovery#4244
ewels merged 6 commits into
mainfrom
agent-discovery-link-headers

Conversation

@ewels

@ewels ewels commented Jun 2, 2026

Copy link
Copy Markdown
Member

@ewels ewels requested a review from mashehu June 2, 2026 17:42
@netlify

netlify Bot commented Jun 2, 2026

Copy link
Copy Markdown

Deploy Preview for nf-core-main-site ready!

Name Link
🔨 Latest commit e57f561
🔍 Latest deploy log https://app.netlify.com/projects/nf-core-main-site/deploys/6a31967420a80c00087ee38c
😎 Deploy Preview https://deploy-preview-4244--nf-core-main-site.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot deleted a comment from netlify Bot Jun 2, 2026
Comment thread sites/main-site/netlify.toml Outdated
Comment thread sites/main-site/public/.well-known/api-catalog
Comment thread sites/main-site/netlify.toml Outdated
Validates sites/main-site/public/.well-known/api-catalog against public/:
drift (catalog links a static file that's missing) and coverage (a
machine-readable file exists but isn't listed). Runs as a job in linting.yml
and via `npm run check-api-catalog`.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Comment thread .github/workflows/linting.yml
Addresses review feedback: revert the Access-Control-Allow-Origin splat
from /* back to /_astro/* (its original purpose: cross-origin assetsPrefix
modules), and add ACAO only to the homepage and the machine-readable
discovery resources that browser JS actually reads cross-origin. The paths
are disjoint, so ACAO is set by exactly one rule per request.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Comment thread sites/main-site/netlify.toml Outdated
ewels and others added 2 commits June 8, 2026 13:53
Extend check-api-catalog.js with a third check: every static discovery
resource (the catalog plus the .json/.txt files it links to) must have an
Access-Control-Allow-Origin rule in netlify.toml, and no stale discovery
CORS rules linger — the same resource list, kept consistent across files.

Move the check from a standalone linting.yml job to a local pre-commit hook,
so it runs locally on commit and is picked up automatically by the existing
prek CI job. Scoped to the relevant paths, so it only runs when they change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Per review: the catalog is the single discovery entry point, so drop the
per-JSON and llms.txt Access-Control-Allow-Origin rules (those files are
served same-origin from every sub-site via symlinks, and crawlers read them
server-side where CORS is moot). CORS now covers /_astro/*, /, and
/.well-known/api-catalog only.

Rework the api-catalog check #3 to match: assert the catalog itself is
cross-origin readable, rather than requiring CORS on every listed resource.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ewels ewels force-pushed the agent-discovery-link-headers branch from b85bf6f to 155fe30 Compare June 8, 2026 12:26
@ewels ewels merged commit b528cec into main Jun 23, 2026
12 of 13 checks passed
@ewels ewels deleted the agent-discovery-link-headers branch June 23, 2026 12:46
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.

2 participants