Repository navigation
fix(hub): single npm README + fresh catalog on deploy + version on cards - #1836
Conversation
…n cards Two things: - Cache-bust the index.json fetch. A release publishes the new catalog moments before the website redeploy, but the Cloudflare edge in front of hub.amd-gaia.ai can still serve a stale copy (the deploy races the cache invalidation), so the site builds from the previous version's catalog. A per-build query param + no-store forces a fresh origin fetch — every build reflects the just-published catalog. Build-time only, no runtime cost. - Show the agent version (v<latest_version>) on the hub listing card (AgentRow) and the homepage featured card (FeaturedCard).
|
Verdict: Approve ✅ This is a small, well-scoped website fix: it cache-busts the build-time hub catalog fetch so a freshly-released The only thing worth a glance is that website component changes have no automated test here — verification is the manual build/ 🔍 Technical detailsIssues🟢 No automated coverage for the version-on-card change — The two 🟢 Cache-bust comment is on the longer side ( Strengths
|
…README The hub renders whatever the release publishes via --readme, which was the python-side README (capabilities narrative, no architecture diagram / install flow). The npm client README is the richer, actively-maintained one (diagram, version badge, install/usage, ./client) — make it the single source published to BOTH npm and the hub. Effective on the next release (the catalog snapshots the README at publish time). The python README is retired with the upcoming agent-structure reorg.
## Why this matters The live hub page at `hub.amd-gaia.ai/hub/email` is still showing the **0.2.0** catalog — which snapshots the *old python README* with no architecture diagram and no npm install flow. amd#1836 (single canonical npm README + version-on-cards) and amd#1833 (in-repo raw architecture image) already merged, but the catalog only refreshes its README snapshot **on a new publish**. This patch cuts that publish. No client API or wire-contract change — `SCHEMA_VERSION` stays **2.0**. This is a docs/packaging republish so the hub catalog picks up the current README (diagram + GAIA/npm install flow + version badge). The version triple the release gate validates (tag == npm `package.json` == `gaia-agent.yaml`) is all **0.2.1**, synced from `version.py` (the source of truth) via `stamp_version.py`. ## Test plan - [x] `stamp_version.py --check` → all targets match `AGENT_VERSION` 0.2.1 (npm README architecture image correctly SKIPs — it uses the raw-GitHub URL post-amd#1833) - [x] npm pre-flight in `hub/agents/npm/agent-email/`: `npm ci && npm run build && npm test` → 32 passed; `npm pack --dry-run` ships README (16.2kB) + CHANGELOG - [x] `test_stamp_version.py` → 10 passed - [ ] After merge: tag `agent-pkg-email-v0.2.1` from main → freeze → approve `agent-publish` gate → publish republishes the catalog; confirm `/hub/email` shows the diagram + npm flow + `v0.2.1`
Three fixes for what the hub website shows after an agent release — all surfaced while shipping email
0.2.0.Threads (reviewer can evaluate independently):
--readme, which was the python-side README (capabilities narrative — no architecture diagram, no install/usage flow). The npm client README is the richer, actively-maintained one, so it's now the single source published to both npm and the hub. One README per agent (the python one retires with the upcoming agent-structure reorg).0.2.0page still shows the old README until a re-publish.index.jsonmoments before the website redeploy, but the Cloudflare edge can still serve the previous version's catalog (the deploy races the cache invalidation). The build-time fetch now uses a per-build query param +no-store, so every build pulls fresh from the Worker origin. Build-time only, no runtime cost.v<latest_version>now appears on the hub listing card and the homepage featured card.Test plan
HUB_CATALOG_URL=https://hub.amd-gaia.ai npm run buildinwebsite/→astro check0 errors, loads the live catalog, builds/hub+/hub/email(verified locally).v0.2.0next to the email agent name./hub/emailpage renders the npm README (architecture diagram + install flow) instead of the python one.python -c "import yaml; yaml.safe_load(open('.github/workflows/release_agent_email.yml'))"parses.