Fix architecture + health links in SPA#19
Open
arc0btc wants to merge 10 commits into
Open
Conversation
Test job runs type checking and vitest on all pushes and PRs. Deploy job gates on test success and only runs on main branch pushes. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Feed endpoints (upstream, trends, arxiv, digest, combined) returned 404 because FEEDS_KV was never populated. Rather than implement the missing data pipeline, remove the endpoints entirely so the site only advertises working services. Changes: - Remove all /api/feed/* routes and handlers - Remove FEEDS_KV binding from wrangler config - Remove unused utils (digest.ts, markdown.ts) - Update agent.json to list only ask-arc service - Update landing page JSON services to match - Remove Intelligence Feeds service card from HTML - Fix stale '88% defer rate' claim (unverified stat) - Fix 'Not an LLM hallucination' claim → 'Answers grounded in curated knowledge base' Co-Authored-By: Claude Opus 4.6 <[email protected]>
Replace static HTML landing page with a Vite-built React SPA. - Add react, react-dom, @stacks/connect, @stacks/network, @stacks/transactions - Create client scaffold: App, Layout, WalletConnect, Home components - Configure Vite client build (vite.config.client.ts) - Add wrangler assets binding for SPA serving with SPA fallback - Update Worker routing: JSON for agents, SPA for humans - Keep all Hono backend API routes intact (/api/ask-arc, /health, /.well-known/agent.json) Co-Authored-By: Claude Opus 4.6 <[email protected]>
Migrate research endpoints from arc0me-site: - GET /api/research (free discovery) - GET /api/research/latest (2500 sats sBTC) - GET /api/research/:date (1000 sats sBTC) Add relay-based x402 payment helpers (src/lib/x402.ts). Add RESEARCH_KV binding for digest storage. Update agent card and service directory. Co-Authored-By: Claude Opus 4.6 <[email protected]>
- Add hash-based routing (home + services) to App.tsx - Create Services.tsx with full capability inventory across 6 categories: Paid API, Autonomous Ops, Bitcoin/Stacks, Content, Agent Network, Monitoring - Wallet-gated interactive forms: Ask Arc query + Research Feed browser - Add navigation links (Home/Services) in Layout header - Update Home page to link to services catalog - All services show status (live/coming-soon), endpoints, cost, tags Co-Authored-By: Claude Opus 4.6 <[email protected]>
Serves Arc's agent registration file at /.well-known/agent-registration.json for ERC-8004 domain verification and agent discovery. Includes identity, services, trust models, and global ID per the ERC-8004 spec. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Add Ask Arc tiers (250/2500/10000 sats) and PR Review service (15000/30000 sats) to services catalog. Add /services/ route with path-based routing. Update agent card, landing page, and JSON service directory to reflect new pricing structure. Co-Authored-By: Claude Opus 4.6 <[email protected]>
…achine Exposes Arc's architecture diagram on arc0btc.com. New standalone HTML page at /architecture/ renders the state machine (73 sensors, dispatch flow, decision points) via Mermaid.js CDN. Agents get JSON metadata. Nav updated with Architecture link. Home page links to it near Services section. Source: skills/arc-architecture-review/state-machine.md (2026-03-12T06:46Z) Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
HTML meta description now includes "services" for sensor compatibility. New /.well-known/x402 endpoint advertises x402 payment capabilities. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Architecture was a separate server-rendered page causing jarring full-page reload when navigating from the SPA. Now handled as a proper React route with Mermaid diagram loaded dynamically. Server route updated to serve SPA for human visitors (agents still get JSON). Footer and home page health/agent-card links now open in new tab since they return raw JSON. Co-Authored-By: Claude Opus 4.6 <[email protected]>
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
target="_blank")./architecture/route updated to serve the SPA for human visitors (agent clients still get JSON).Test plan
/healthJSON in a new tab/architecture/with JSON accept header still get JSON response🤖 Generated with Claude Code