Draft
Conversation
Expose api-catalog, service-desc, service-doc, and describedby on homepage responses: api-catalog served at /.well-known/api-catalog.json, OpenAPI alias at /docs/openapi.json, plus copied README and payload-format docs in the static export. Post-export step writes Cloudflare Pages _headers and copies docs; preview and self-hosted servers set the same Link header on index HTML. Co-authored-by: Aanish Bhirud <baanish@users.noreply.github.com>
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Deploying agent-render with
|
| Latest commit: |
22bf15a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://58167252.agent-render.pages.dev |
| Branch Preview URL: | https://cursor-link-headers-rfc8288.agent-render.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements RFC 8288
Linkresponse headers on the homepage for agent discovery, using registered relation types from the link-headers skill.What ships
Linkheader (comma-separated):api-catalog→/.well-known/api-catalog.json,service-desc→/docs/openapi.json(OpenAPI 3.1 copy of the catalog),service-doc→/README.md,describedby→/docs/payload-format.md.public/.well-known/api-catalog.jsonis emitted toout/. Post-export copiesREADME.mdanddocs/payload-format.mdintoout/and writesout/_headersfor Cloudflare Pages.npm run preview: sets the same header when servingout/index.html.index.htmland injected UUID viewer HTML; Docker copiesscripts/so the shared header builder loads at runtime.Validation
npm run checkcurl -Iagainst preview server confirmsLink:on/.Notes
NEXT_PUBLIC_BASE_PATHis set at build time, post-export_headersuses the prefixed paths; preview and self-hosted respect the same env.