refactor: Netlify → Cloudflare, CloudStore split, SW version sync - #4
Draft
PaperPit wants to merge 6 commits into
Draft
refactor: Netlify → Cloudflare, CloudStore split, SW version sync#4PaperPit wants to merge 6 commits into
PaperPit wants to merge 6 commits into
Conversation
- 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>
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
netlify/,netlify.toml,@netlify/blobs);npm run devnow serves Cloudflare Pages Functions fromfunctions/api/scripts/bundle.mjsreadsAPP_VERSIONfromjs/core/version.ts(no morekar-v15.3-bundledrift)CloudStoreintocloud-pull/cloud-remote/cloud-sync-runtime+ thin facadebuildCardRecord; CI Node 22; removed tracked zip/tar archivesTest plan
npx tsc --noEmitnpm test(337 tests)npm run build:bundle→dist/sw.jsstarts withconst VERSION = 'kar-v15.4'npm run ext:buildnpm run dev—/api/yt-videoresponds via CF handlers