Skip to content

refactor: Netlify → Cloudflare, CloudStore split, SW version sync - #4

Draft
PaperPit wants to merge 6 commits into
mainfrom
cursor/netlify-cloudflare-refactor-0aab
Draft

refactor: Netlify → Cloudflare, CloudStore split, SW version sync#4
PaperPit wants to merge 6 commits into
mainfrom
cursor/netlify-cloudflare-refactor-0aab

Conversation

@PaperPit

@PaperPit PaperPit commented Jul 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • Dropped Netlify (netlify/, netlify.toml, @netlify/blobs); npm run dev now serves Cloudflare Pages Functions from functions/api/
  • Prod SW version in scripts/bundle.mjs reads APP_VERSION from js/core/version.ts (no more kar-v15.3-bundle drift)
  • Split CloudStore into cloud-pull / cloud-remote / cloud-sync-runtime + thin facade
  • DRY extension card creation via shared buildCardRecord; CI Node 22; removed tracked zip/tar archives

Test plan

  • npx tsc --noEmit
  • npm test (337 tests)
  • npm run build:bundledist/sw.js starts with const VERSION = 'kar-v15.4'
  • npm run ext:build
  • Smoke: npm run dev/api/yt-video responds via CF handlers
  • Confirm Cloudflare Pages deploy still works after merge
Open in Web Open in Cursor 

cursoragent and others added 6 commits July 25, 2026 05:42
- Read APP_VERSION from js/core/version.ts in bundle.mjs for prod SW
- Remove netlify/ and @netlify/blobs; wire npm run dev to functions/api
- Split CloudStore into cloud-pull / cloud-remote / cloud-sync-runtime
- DRY extension create-cards via buildCardRecord; CI on Node 22
- Remove deploy zip / design archive from the repo

Co-authored-by: PaperPit <PaperPit@users.noreply.github.com>
- Update store-cloud tests for fetchFromCloud/loadCloudFlags; CI emits tsc before tests
- Regenerate sw.js (kar-v15.5) with new cloud-* modules; VERSION from version.ts
- Narrow CloudStoreHost via _compat flags; extract cloud-import + cloud-queries
- Prefer slim srs_meta/mirror for folder and review queries when warm
- Extension yt-api wraps shared yt-transcript (apiBase); remove cleanApiKey duplicates

Co-authored-by: PaperPit <PaperPit@users.noreply.github.com>
Install once with bash scripts/install-kar-push.sh, then use kar-push "msg" from any directory.

Co-authored-by: PaperPit <PaperPit@users.noreply.github.com>
Co-authored-by: PaperPit <PaperPit@users.noreply.github.com>
Stale compiled .js without _compat broke store-cloud tests; ensureCompat()
initializes the flags bag, and kar-push runs tsc before vitest.

Co-authored-by: PaperPit <PaperPit@users.noreply.github.com>
Failed cards are re-queued; using answered made the bar hit N/N while
the queue still had cards. Progress now tracks done (known).

Co-authored-by: PaperPit <PaperPit@users.noreply.github.com>
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