Skip to content

feat: embed absolute GitHub Release URLs in index.json#87

Merged
Rodriguespn merged 3 commits into
mainfrom
feat/absolute-urls-in-index
May 22, 2026
Merged

feat: embed absolute GitHub Release URLs in index.json#87
Rodriguespn merged 3 commits into
mainfrom
feat/absolute-urls-in-index

Conversation

@Rodriguespn
Copy link
Copy Markdown
Collaborator

@Rodriguespn Rodriguespn commented May 21, 2026

Summary

  • build-release.ts reads the version from .release-please-manifest.json at build time and embeds absolute GitHub Release asset URLs in index.json (e.g. https://github.com/supabase/agent-skills/releases/download/v0.1.4/supabase.tar.gz)
  • Previously the index used relative filenames (supabase.tar.gz) that consumers had to resolve into absolute URLs themselves

Companion PR: supabase/supabase#44878 (simplified to drop all URL rewriting logic once this lands and a release is cut).

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>
Comment thread scripts/build-release.ts Outdated
Rodriguespn and others added 2 commits May 21, 2026 21:15
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>
@Rodriguespn Rodriguespn merged commit 5ce9c70 into main May 22, 2026
4 checks passed
@Rodriguespn Rodriguespn deleted the feat/absolute-urls-in-index branch May 22, 2026 11:09
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>
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