Spaces:
Sleeping
Sleeping
Commit History
-
connect frontend to HF Space backend, fix CORS defaultβ
- frontend/.env.production: VITE_API_BASE_URL=https://pymite6941-squint-backend.hf.space - .gitignore: allow frontend/.env.production (URL is public, not a secret) - backend/main.py: include squint-ten.vercel.app in default ALLOWED_ORIGINS Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>bc5eb86
-
fix: drop conflicting version pins, let crewai drive dep resolutionβ
crewai==1.14.5 requires pydantic>=2.11.9 and httpx~=0.28.1. Removing tight pins on pydantic, httpx so pip can resolve correctly. Keeping crewai==1.14.5 pinned; all other packages use >= floor only. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>47c3d51 -
fix: httpx~=0.28.1 to satisfy crewai==1.14.5 dependency constraintβ
crewai requires httpx~=0.28.1; our pinned httpx==0.27.0 caused a ResolutionImpossible error during Docker build on HF Space. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1a17e57 -
fix: use python:3.11 full image β crewai deps need C build toolsβ
python:3.11-slim is missing gcc/make required to compile crewai's native extension dependencies (regex, greenlet, etc.) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>e18e64c -
fix: add HF Space README.md, remove stale backend filesβ
- README.md: required HF Docker Space frontmatter (sdk: docker, app_port: 7860) β fixes CONFIG_ERROR on the Space - Remove leftover files from old Supabase/Render backend: supabase_client.py, ratelimit.py, render.yaml, Procfile, __init__.py, requirements-dev.txt, test_prompt.py Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>31f4535 -
fix: 5 bugs found in security and payment flowβ
- main.py: merge _free_remaining + _consume_free into atomic _try_consume_free to eliminate TOCTOU race on free-tier limit - main.py: remove erroneous '==' suffix in _redeem_token base64 decode (encoded string from urlsafe_b64encode is already properly padded; adding extra padding corrupted decode, breaking all paid tokens) - main.py: update /convert to use _try_consume_free - api.ts + wallet.ts: parse FastAPI {"detail":"..."} JSON from error responses instead of showing raw JSON string to user - wallet.ts: explicit wallet_switchEthereumChain after addEthereumChain for MetaMask versions that don't auto-switch on chain add - vite.config.ts: remove dead vendor-supabase manual chunk Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>d8f840b -
feat: server-side payment enforcement with on-chain tx verificationβ
Backend: - /verify-payment: calls Base RPC to confirm tx (correct recipient, correct amount, status 0x1), then issues HMAC-SHA256 signed token - /convert: requires valid payment token OR IP within 3/month free limit - In-memory IP rate limiter (per-month counter, thread-safe) - In-memory used-tx-hash set prevents token replay attacks - Payment disabled gracefully if PAYMENT_SECRET not set (dev mode) Frontend: - wallet.ts: verifyPayment() calls /verify-payment and returns token - App.tsx: handlePayAndConvert now verifies on-chain before converting - api.ts: convertScreenshot forwards X-Payment-Token header when provided Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>6fb98b0
-
fix: remove crewai-tools dep, rewrite Docs/Pricing for no-auth free toolβ
- Drop crewai-tools==1.14.5 from requirements.txt (pulls heavy compiled deps that fail to build on python:3.11-slim); BaseTool lives in crewai - Docs.tsx: remove magic-link auth copy, add 4-agent pipeline explainer - Pricing.tsx: drop VITE_LEMON_CHECKOUT_URL, rewrite as free-forever page Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>aaa272d -
refactor: remove Supabase/auth/paywall β no DB neededβ
App is now fully stateless. Only env vars required are OPENROUTER_API_KEY and optionally GROQ_API_KEY. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>38e06bd -
Initial commit β Squint screenshot-to-code appβ
CrewAI 4-agent pipeline (UI Analyst β Architect β Generator β Polisher) FastAPI backend with SSE streaming, Supabase auth, optional Upstash rate limiting React + Vite + Tailwind frontend with live agent activity stream Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>00e94a1