feat: embed absolute GitHub Release URLs in index.json#87
Merged
Conversation
Read version from .release-please-manifest.json at build time so published index.json contains absolute tar.gz URLs instead of relative ones. Consumers can now serve index.json verbatim without rewriting URLs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
b3d0287 to
d011fc2
Compare
gregnr
reviewed
May 21, 2026
Replace hardcoded repo constant and brittle manifest parsing with GITHUB_SERVER_URL/GITHUB_REPOSITORY (injected by GitHub Actions) and RELEASE_TAG (passed from release-please tag_name output). Also add tsconfig.json so @types/node is recognized by the language server. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
gregnr
approved these changes
May 21, 2026
Rodriguespn
added a commit
to supabase/supabase
that referenced
this pull request
May 22, 2026
## Summary - Adds `apps/www/scripts/fetchAgentSkills.mjs` — at build time (`pnpm content:build`) fetches the latest `index.json` from `supabase/agent-skills` release assets and writes it verbatim to `public/.well-known/agent-skills/index.json` - Skill URLs are absolute GitHub Release asset URLs, embedded by the agent-skills repo at release time (supabase/agent-skills#87) — no URL rewriting needed on this side ## How it works 1. Fetches latest release from `supabase/agent-skills` via GitHub API 2. Downloads `index.json` from the release assets 3. Writes it verbatim to `public/.well-known/agent-skills/index.json` Clients discover and install skills from `supabase.com/.well-known/agent-skills/index.json` and fetch tarballs directly from GitHub Release assets. ## Dependency Requires supabase/agent-skills#87 to be merged and released so the published `index.json` contains absolute URLs. --------- Co-authored-by: Pedro Rodrigues <44656907+Rodriguespn@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Pedro Rodrigues <pedro.rodrigues@supabase.io>
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
build-release.tsreads the version from.release-please-manifest.jsonat build time and embeds absolute GitHub Release asset URLs inindex.json(e.g.https://github.com/supabase/agent-skills/releases/download/v0.1.4/supabase.tar.gz)supabase.tar.gz) that consumers had to resolve into absolute URLs themselvesCompanion PR: supabase/supabase#44878 (simplified to drop all URL rewriting logic once this lands and a release is cut).