Deploy-to-Agent-Relay button + restore intended agent resilience

Merged
KH
6mo ago
+44-19

Summary

Brings this branch up to date with main and lands two changes on top:

  • One-click deploy button (preview): adds assets/deploy-button.svg (branded "Deploy to Agent Relay" CTA matching the banner aesthetic) and a badge under the granola title linking to the cloud deploy URL. Preview-first on granola; remaining agents + top-level README pending design/URL sign-off.
  • Restore intended agent resilience: main's commit 090833b describes adding fetch resilience to hn-monitor, vendor-monitor, and spotify-releases, but that commit only actually touched granola/linear/review — the changes were never staged. This restores them:
    • hn-monitor, vendor-monitor: try/catch around fetch so a transient outage returns [] / undefined instead of crashing the run.
    • spotify-releases: fetch each artist's releases in parallel via Promise.allSettled so one failing artist doesn't sink the whole check.

Net diff vs main

 assets/deploy-button.svg  | 40 ++++++++++
 granola/README.md         |  2 ++
 hn-monitor/agent.ts       | 24 +++---
 spotify-releases/agent.ts | 14 ++--
 vendor-monitor/agent.ts   | 13 ++--

Testing

  • npx tsc --noEmit passes.

🤖 Generated with Claude Code


Summary by cubic

Adds a hosted “Launch Agent” badge to all agent READMEs with one-click deploy links. Restores resilience in hn-monitor, vendor-monitor, and spotify-releases so transient errors don’t crash runs.

  • New Features

  • Bug Fixes

    • hn-monitor: wrap front-page fetch; return [] on failure.
    • vendor-monitor: guard npm latest fetch; return undefined on failure.
    • spotify-releases: fetch per-artist releases with Promise.allSettled; skip failures.