From 4afd812ea6bf3a87a01d6fd6f5c7e55c5e13a668 Mon Sep 17 00:00:00 2001 From: Lucas Winther Date: Thu, 15 Oct 2026 14:31:25 +0200 Subject: [PATCH] docs: remove the finished plan 004 (the spec is the record) Co-Authored-By: Claude Opus 5.5 --- docs/plans/004-kakaopage.md | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 docs/plans/004-kakaopage.md diff --git a/docs/plans/004-kakaopage.md b/docs/plans/004-kakaopage.md deleted file mode 100644 index 2a5d785..0000000 --- a/docs/plans/004-kakaopage.md +++ /dev/null @@ -1,34 +0,0 @@ -# KakaoPage source — implementation plan - -> superpowers:executing-plans (native). **Spec:** [`docs/specs/004-kakaopage.md`](../specs/004-kakaopage.md). - -**Goal:** a `kakaopage` Source registered next to `webtoons` and `tapas`, plus per-host request headers. - -## Global constraints -`src/core` pure; tests offline on captured fixtures (done); no new dependencies. - -## Review focus -1. `seriesId=N` must not match `N0` in Wayback rows. → Task 1 test, Task 4 history test. -2. A series without `land_thumbnail` (19+ edition) → one cover, no crash. → Task 3 test. -3. Old `dn-img-page.kakao.com …&filename=th3` URLs normalise to the original. → Task 1 test. -4. The Referer reaches `bff-page.kakao.com` through both the server proxy and the userscript. → Task 2 tests. -5. An unknown id gives a clear error. → Task 4 test. - -### Task 1: URLs (`kakaopage/urls.ts`) -- [x] Links (`/content/N`, `/home?seriesId=N`, `m.`), rejects; `normalizeImageUrl`; `isSameKakaoSeries`; - `overviewUrl(id)`. RED → GREEN → commit. - -### Task 2: Request headers (`core/transport.ts`, `server/app.ts`, `userscript/gm.ts`) -- [x] `requestHeadersFor(url)`; the server proxy and `gmTransport` send it (tests on both). RED → GREEN → commit. - -### Task 3: Parsing (`kakaopage/parse.ts`) -- [x] `parseOverview(json)` (comic, novel, 19+ without land thumbnail, error body); `extractCovers(html, pageUrl)` - for 2020/2022/2024 captures. RED → GREEN → commit. - -### Task 4: Source and registry -- [x] `kakaopage` Source through `FakeTransport` (resolve, currentCovers, unknown id, Wayback over both CDX - fixtures keeps only this id); registry, allowlists, `@connect`, hint copy; README, ARCHITECTURE, DECISIONS. - RED → GREEN → commit. - -### Task 5: Verify and finish -- [x] Real run in headless Chrome; final review; remove this plan; merge; push.