ef361dddocs: udn-V5 port + residuals report 2026-12-03
lcn-swe
本站每一次程式變更的 git commit 記錄,最新在上。資料直接由伺服器上的 repo 讀取。
ef361dd9d1d9bdscripts/health_probe.sh curls /api/v1/health on 127.0.0.1:8691 (sns) and :8690 (udn-V5) every 5min via health-probe.timer. Alerts through hermes send -t telegram only on healthy->fail transition, one repeat after 30min while still failing, and a recovery notice. State in ~/.local/state/health_probe/state.json; flock-guarded, DRY_RUN=1 for tests.
538cc02regression 修復:auth gate 上線後 curl POST 無 token 會 401; ExecStart 改為腳本檔,從 ~/.config/wowsight-sns.env 讀令牌。 實測:systemctl start → Result=success,feed/refresh 200
120dc96實測:4 執行緒同題併發 → 1 create + 3 duplicate,零錯誤。 URL 層競態殘留已記錄(需正規化+UNIQUE 索引,影響極低:產出只是重複列非錯誤)
f1b0cb310038a0- boot: 連線中 狀態提前到 refreshState 啟動前,修快速回應下永遠卡住(實測 3 次 reload 全正確) - actmenu popover 靠近視窗底部自動向上翻 - 動作鈕烙 data-for-case,切稿後殘留 DOM 不再誤操作新稿(實測 stamp 存在) - tests/test_auth_gate.py: 無 token 401/錯 token 401/未設 env 503/GET 公開/大 body 413
d515c6b- SSRF: fetch._validate_public_url 擋 loopback/private/link-local/metadata IP,redirect 逐跳驗證;images download 15MB chunk cap (實測 127.0.0.1/169.254 blocked,合法 wowsight 抓取正常) - correctness: save_draft/set_hashtags/adjust_thread 包 case_write_lock;search total 改預分頁 COUNT(實測 total:37 vs items:5);_items 雙重分頁 bug 修正 - tests: test_ssrf 8 項 + test_search_total 5 項 + test_auth_gate 5 項;e2e/batch 測試帶 X-Team-Token;conftest 測試令牌固定 - backup: data/ 媒體每日 tar(原子寫入+600+14 天 retention);PG dump 原子化;實測 data-20261203.tar 180MB integrity ok - webui: actmenu 底部自動翻轉(popover 不再出屏);動作鈕烙 data-for-case 防切稿競態 - 全套 158 passed, 10 skipped
53d0086P0-1/P0-4 partial: - do_POST 全端點需 X-Team-Token == UDNV5_WRITE_TOKEN;未設定 env = fail-closed 503 - GET 永遠公開(瀏覽案例不需令牌) - _body 加 20MB cap,超過 413 不進記憶體 - CORS allow-headers 加 X-Team-Token - webui api() 自動帶 token;401 時 prompt 一次存 localStorage 並重試 - 實測:無 token POST 401 / 有 token 200 / GET 無 token 200 nginx client_max_body_size 20m 已另行部署(etcd 層,不在 repo)
2eefe14272ea90b4bbf39- genBadge: 文字徽章 -> tabler 圖示(sparkles=LLM 綠 / template=模版 灰紫 / circle-dashed=未產出 灰),title+aria 保留語義 - originBadge: 爬蟲為常態不再佔版面,只有手動建立才顯示 hand-click 圖示 - 討論/修改+複製兩顆文字按鈕收進 ⋯ kebab popover(cp-label 與 leadbtns,點選後自動關閉) - 分享卡單一複製鈕維持直顯不收選單 - 版面前景還給內容:lead row 每列省 ~90px,rail 每列省 ~100px
495f4c4Backend: - share.py: REST client replacing dead MCP/SSE path; mint_for_case + fetch_stats + refresh_og (PATCH og); utm_source via BREVU_UTM_SOURCE (wowsight-sns), utm_medium=social, utm_campaign=<case_id> - service.py: brevu_url in case payloads; early-mint before leads assembly so first compose carries short URL; post-commit _share_mint(refresh=True) PATCHes og to current materials; fail-open, steps log - api.py: POST /api/v1/share (manual mint/force), GET /api/v1/share/stats?case_id= (thin proxy) Frontend: - share card in materials/copy tabs: short link + copy + lazy click stats (per-case cache); mint button when materials exist but no link yet - lead display/copy prefer brevu_url - deep-link boot fixes ported: slice(4) for #/c/ prefix, guard renders instead of blank, boot no longer clobbers cur before route() restore, udnv5_case persistence, replaceState routing Live-verified: mint 000sRx/Ry/Rz; 302 with full UTM; compose chain mint->compose->refreshed=True; 17 share tests + 140 suite passed
daf659c1e3c22bb32b8a35d2b8fbccfa7f2oci 實測:exemplars 首次 15.5s 命中 UBA 範例文,cache hit 0s,timeline 正常回傳。 測試契約更新:session-per-call → session-reuse;setUp/tearDown 清模組狀態防洩漏。
1ae2d3c審查發現(wowsight-sns-review-kb.md): - P1 級實害:entity_timeline 送錯參數名,L5 timeline 在 production 從未注入 - P2-1 非 dict item sort 前未過濾 → 先過濾 - P2-2 換句話說/老實說等連接詞誤殺 → 白名單豁免 - P2-3 故障負面快取 6h → _Fail sentinel 只快取成功 - P2-4 CRLF server 吃滿 timeout → \r\n\r\n 邊界 - P2-5 ping comment 截斷 → 跳過非 data event - P2-6 publishedAt 非字串炸穿 → str() 單點收口 - P3-3 全形數字比分誤殺 → translate 正規化 - P3-5 補 MCP-Protocol-Version header
a81d5a8b858d15- build_prompt 加 exemplars/timeline kwargs;None 時 lazy 走 app.kb (需 WKB_MCP_TOKEN,無 token 輸出與舊版 byte-identical) - KB 區塊插在風格行後、文章標題前;含比分/引述一致性規則 - _guess_entity heuristic:書名號/全大寫拉丁詞/漢字+角色後綴 - fact_gate 新增:N:N 比分必須在原文(容忍全半形冒號)、 caption/leads「X表示/指出/說」的 X 必須在原文 - tests/test_kb_voice.py:mock urlopen + chunked keep-alive 實測
86aa755- initialize → mcp-session-id → notifications/initialized → tools/call
- _read_first_sse_event:chunked/keep-alive stream 讀到第一個 event 即停
(oci 實測 server 送完不關連線,r.read() 會 timeout)
- exemplars(): semantic_search top N + 最高分 get_post 全文截 600 字
- timeline(): entity_timeline → [{title, publishedAt}]
- 全程 fail-open:無 WKB_MCP_TOKEN/逾時/非 200/例外皆回 []/Nonef3fdae8ee711600c8b875757d3ffad80a2cf16ca896dd6a03- test_themes: default theme is wowsight, presets=4 base ids, display palettes=19 - test_zhtw_recommend: recommend tests rewritten with sports content and new style ids (st-game/st-data/st-profile); pure-finance regression content now expects fallback st-game per sports-platform semantics - test_llm_contract: pin new style prompt anchors (st-profile 人物故事, st-data 數據解析) keeping style-before-body ordering assertion - test_batch_generate / test_batch_settings: replace removed style ids (st-life/st-tech/st-fin) with valid sports ids; fixture default theme wowsight
40125b30d085b63df2baba43b23f79e8f5c- test_fetch_source.py → WP slug parsing, feed_refresh signature, _normalize_post (title/summary/body/images/main, CJK+full-width filename URL encoding) - test_pipeline.py: drop extract_links helper/class (crawler removed), section default assertion 商情→體育 - deleted test_crawl_channels.py (tested removed udn AJAX crawler; superseded by WP mock tests)
9a353fcRemoved CATE_URL/AJAX_HEADERS/extract_links/extract_channels/ channel_stories/parse_story_items/hub_channel_links/EXCLUDE_CHANNELS — no crawler remains on this platform. Kept get_html, UA, parse_article (og: generic) for non-wowsight manual URLs; scrub_body retained as generic body cleanup (renamed public, _scrub_body alias kept).
373eab3- feed_refresh now polls WP REST (pages 1-3, stop on 3 consecutive
existing); keeps {added, scanned} return shape
- create_case/refetch_images use wp.fetch_post_by_url for wowsight.tw
URLs; non-wowsight URLs keep HTML parse fallback via app/fetch
- shared _store_article_images helper for API+HTML image paths
- default section 商情→體育, style st-fin→st-game throughout service.py6009134- list_recent_posts(page, per_page) with _embed; normalized dict aligned
with fetch.parse_article plus images[{url,alt,main}] and wp_id
- fetch_post_by_url: slug lookup for wowsight.tw /YYYY/MM/DD/<slug>/ URLs
- WP_API_BASE env override (default http://127.0.0.1:18180), Host: wowsight.tw
header on every request
- image URLs percent-encoded (WP filenames contain full-width/CJK chars)
- defaults: section 體育, style st-game6eaa856173ca6e878890f638515ffcb245de34e2267827751f6e24df64431aeOwner directed basic auth rollback at 13:29 UTC; docs now describe open access with the auth snippet ready but not applied.
14ca04238368d7a0ebb49Required for integrity and correctness: materials_log now has a unique index on (case_id,kind,version) — applied to live PG after deduping 109 duplicate rows. Same-version inserts would violate it; bumping also makes edit history fully replayable.
71c892aREADME said sqlite-only and auth not yet applied; 作品說明書 and 使用說明 said no login. All now reflect: basic auth enabled, /materials//images/ exempt for OG crawlers, PostgreSQL on prod.
91939b7adjust_thread updated materials.json in the lead and unchanged-caption paths without logging to materials_log, so version history silently diverged from actual content. Both paths now append a log row with actor=adjust-lead/adjust-caption at the current version.
07d299fHEAD now runs the GET path with body suppressed so headers match. og:title/description/image + twitter:card added — sharing the platform link to LINE/FB now renders a preview card.
f392407382de89adcfd7a54b076cd0c6a78PG had zero non-PK indexes; every hot query was a seq scan. Index DDL added to store.init PG branch (idempotent), and the same indexes were applied to the live database directly. Orphan rows (196 across 7 tables) cleaned; dead sqlite file renamed .disabled.
750b965feed_refresh never called reindex_case, and the auto-backfill in search only fires when case_search is empty. Result: 416/517 crawled cases (2026-11-30 onward) were invisible to /api/v1/search keyword/hybrid branches. One-line fix + reindex backfilled to 523 rows.
f53f989e510dfcbc1bcf2fc6b5849773780beam-free → beam-contributor, hungerg-free → iceman-contributor-free. Both free models retired by opencode (HTTP 410 ModelDeprecated) on/before 2026-12-02; chain burned 10s+ on 410s then paid models reasoning-timed-out, so all generations silently fell back to template. Verified live: beam-contributor and iceman-contributor-free return content on /zen/go/v1; hy4-flash/muse remain as paid backstop. probe endpoint only asks for one char so 410 burn was invisible in health badge.
0a7fd056c4f81d- poll job status every 2s, show done/failed, 5m timeout\n- completion summary and refresh; no infinite polling
bf63aec- API distinguishes absent no_image (inherit latest square) from explicit false (override)\n- service respects per-case no_image; test explicit false override\n- full suite 151 passed
fe2d7d3a7d256b- POST /api/v1/batch/generate: confirm required, max 50, jobs queue, per-case failure isolation\n- respect no_image per case; no LLM in request\n- UI batch-generate confirm + cap + success/error notes\n- 20 backend tests + 2 Playwright tests; full suite 150 passed
d926be4- UI 選取上限 200,與後端一致;全選超過上限只取前 200 並提示\n- 批次改版型/風格後,已載入草稿標 stale;色系不影響
4e20b27- 左側多選:checkbox、Shift 範圍、Cmd/Ctrl 切換、Space/Enter\n- 篩選內全選、批次列、版型/風格/色系套用\n- POST /api/v1/batch/settings,最多 200 筆、單一 transaction、不呼叫 LLM\n- 後端 13 測試、Playwright 2 測試;全 suite 128 passed
ab86f75- tpl-story 極端横幅改上圖下文,照片不裁切、不再退摘要\n- frosted 模糊區前移 32px,消除清晰帶與霧面帶接縫\n- 更新 regression test 與視覺報告
5402946d8290d1- tpl-news 直幅改右圖左文分欄,保留照片\n- compose_fields/generate 以 store.case_write_lock 序列化;PG advisory lock、SQLite per-case lock\n- Playwright E2E 跑 Chromium/WebKit/Firefox + 390px mobile\n- PG 臨時庫 4 執行緒併發驗證 lost_updates=0\n- 新增對應 regression tests
2f8bb177b6428d- deploy gate requires clean HEAD == origin/master before tests\n- _cover_force rejects contain coverage <20%\n- recompose respects no_image and dry-run reports it\n- CI installs pytest/Pillow on runner python\n- tests for extreme portrait rejection
2a8a5251918eab- _cover_force 放大守門改看 contain 的 min 縮放,3.2:1 橫幅不再六式全滅\n- tpl-news 直幅前景 <45% 退回品牌漸層,不產生中央細條\n- tpl-story 極端橫幅退回摘要卡\n- 新增覆蓋率 helper 與 regression tests
57878a3- E2E: create → draft(fallback) → compose → download 1080x1080/1920\n- recompose_case 支援 PostgreSQL 與 SQLite\n- 記錄 contain 視覺驗收 P1/P2 findings
7aa6c1a- deploy.sh 預設走 oci alias,部署前跑單元/合約測試\n- 新增 deploy/rollback.sh(需 --yes)\n- 新增 scripts/recompose_case.py,不呼叫 LLM 重合成並保留 reel sub\n- compose_fields 支援 slides {text,sub}\n- 新增 Forgejo test workflow;README 補部署/rollback/hook 說明2105c1ccac84f820a2410- 全站案件→稿件;左側清單改進案量;素材案→素材稿/稿件\n- 定調/文字草稿/生成素材三段重排,色系與配圖移入生成素材\n- 配圖縮圖可點擊放大 lightbox,可選用/取消選用\n- 照片改 contain + 模糊補邊,不裁切、不非等比拉伸\n- 新增 cover/poster/editorial 版型與相關文件/測試\n- 文件與 ui-flow 圖同步
35e761bdocs only.
b08f8fc46b6179Immutable only for versioned asset URLs.
6a82950- /app.js、/style.css 無 query 時改 Cache-Control: no-cache, must-revalidate - 避免 Cloudflare 把裸路徑舊檔永久快取(本次 style.css 驗證踩到) - 88 unittest/100 pytest OK
ef29354Collapse mobile doc links, restore inline source link.
dd51da8- <=520px:五個文件連結收進原生 details「文件」選單(summary 44x44,展開連結 44 高);390 topbar 降到 102px - 移除 .casehead .src a 的 44px 行高,恢復自然行距;依 WCAG 2.5.8 inline 例外 - 更新 390/768/1280 截圖與 review 數字 - 88 unittest/100 pytest/node --check OK
add3d36Mobile 44px targets, contrast, reduced motion, stage semantics.
968236f- <=820px:topbar 文件連結、齒輪、rail toggle、來源/上傳、版本/幕次 chips、討論複製、設定 chips 全部 >=44x44 - 金句縮圖裝飾引號 .35→.55、aria-hidden - stage section 加 aria-labelledby(stage-head-N) - 加 prefers-reduced-motion reduce 規則 - 新增 docs/UIUX-REVIEW-20261201.md+390/768/1280/settings 截圖 - 88 unittest/100 pytest/node --check OK
af9966fA/B stage grouping as a setting; 44px gaps; reviewer P2 fixes.
23b180a- 案件頁三段:① 定調 / ② 文字草稿 / ③ 生成素材,外層 .stages - 顯示設定新增「工序分組」:卡片(A)/ 色條(B),存 localStorage,預設 A - 段距 44px(<=820 30 / <=520 24);A 同底色+框線、內層草稿去框;B 左側色條+白卡 - 草稿盒移除重複標題;建議列補回 &no_image=1 - reviewer 3 個 P2 修正:深色 fallback、stage-head+field selector、B 版 safe-area - 文件/help/report 與 A/B/390/settings 截圖 - unittest 88 OK;pytest 100 passed;node --check OK
663fb5e只驗計數列,避免 commit 內文偽失敗。
63d77c95724dec版本歷程改為完整 git log,持續累積。
51908e3- commits() 預設抓完整 git log(快取以 HEAD sha 為鍵);limit 參數僅保留相容 - 頁面計數改「共 N 筆 · 持續累積(不設上限)」 - 新增 tests/test_changelog.py:完整歷史筆數、limit 切片、頁面無上限標籤 - unittest 88 OK;pytest 100 passed;HTTP /changelog 與 API 均回 331 筆(= git rev-list)
4fb31fbitem 6/6: dirty worker-pool change + test.
50c020e- worker pool 預設 3(UDNV5_JOB_WORKERS,1–8);同案 per-case lock 串行 - 保留 no_image 傳遞;逾時/去重/recover 行為不變 - docs: worker pool 與 queued 說明 - tests/test_jobs_pool.py:不同案件平行、同案序列化 - pytest 97 / unittest 85 OK
6b7d375item 5/5 from live; integrated with no_image/stale/new-flow/mobile.
33b29ea- loadDrafts 空回應不再清掉剛建立的新草稿(load/draft 競態) - 版本切換保留 stale 狀態;startDraft 產完清除 stale - compose-main 改用選定草稿版本;合成後保留草稿與版本 - 文件/help 補版本切換與 ①/③ 說明 - node --check OK;pytest 95 / unittest 85 OK
ff141e4- 文字稿入 drafts 表,含版本切換;編輯 700ms debounce 寫回同版本 - ③ 生成素材直接使用目前畫面文字,不呼叫 LLM;文字稿與素材版本分離 - 合成中鎖定輸入/按鈕,切案取消 old debounce,避免輸入遺失或寫錯案 - extract_links 移除 [:30]:商情 hub 110 篇/25 次頻道全抓 - tests/conftest.py 強制測試用暫存 sqlite,禁止連正式 Postgres(11-30 事故) - 文件:REPORT-draft-first-20261130、crawl 報告決策更新 (cherry picked from commit 1a788adc8f02aca40c72d16f5faa8ce238b962d9)
d448180item 4/5 from live.
411a69d- themes.DEFAULT_THEME_ID=fin-red;未知/未指定 theme 一律落財金紅金 - service/store 預設 theme 改 fin-red;新案不再落舊 default - UI 初始 curTheme/displayPalette=fin-red,CSS :root 同步紅金(避免首屏藍綠) - 既有 267 筆 theme=default 的案例已遷移為 fin-red - 測試:預設與未知 theme 都回 fin-red (cherry picked from commit 8261ed40c3d4d90ba7a114e306d54c2433a6e096)
e9390e0item 3/5 from live.
daa3ceb- 解析 hub data-sub 次頻道;每頻道打 get_article/1..3 頁 AJAX(每頁 5 篇),時間新到舊取 10 - 排除 5599(hub 主頻道)與 124261(讀者投書);全域 URL 去重 - 實測 scanned=180,重跑 added=0;124261 既有案例已清除 - tests: 頻道解析/片段解析/10 篇上限/排序/去重/排除 (cherry picked from commit 62c2a4af82a940eca3720a9482c24996cdbfe88c)
67f39ccitem 2/5 from live.
d86c3f1- 移除 hy4-flash-free;改用收費 hy4-flash(zen/go 目錄確認存在) - 階梯改為 beam-free → hungerg-free → hy4-flash → muse-spark-1.3-contributor - MODEL 預設同步改 opencode-go/hy4-flash;測試與文件更新 (cherry picked from commit 1e74004b9eac3acb6259a21b134b8517b2bd56f2)
7924d81item 1/5 from live.
9fa1952分頻道展開後掃描量 30→180;首跑抓文章+圖可超過原 200s,curl max-time 180→900、TimeoutStartSec 200→960。 (cherry picked from commit adfbc0736eb7477687fe19de6c9db2f0550290b0)
e50a91bdocs only: 6s slow-stub cross-case draft test, full-page 390 evidence, np-check hitbox.
3d4f807- 慢速 stub 6s:A 草稿中 1.4s 切到 B;B 按鈕 6.4s 解鎖、note 未被污染、topbar 顯示 A 完成 - 390 full-page 2962px,確認色系/配圖/草稿皆存在 - np-check label 44px、checkbox 13×18
63867de建案後自動產文字草稿、可勾不用配圖;排隊草稿帶案件 id 與目標 template/style;合成以 c.id 併回並容忍 refresh 失敗;theme 重設、版本/通道文案、手機壓縮、站內說明連結。84 tests OK。
f14d762- #/new 建案改產文字草稿(pendingDraft 以案件 id 排隊);表單可勾「不用配圖(純文字)」 - startDraft 共用:切換案件仍會解鎖按鈕;排隊草稿用目標案件自己的 template/style - 合成成功以 c.id 併回案件、容忍 refresh 失敗;gen 依 gen_actor 映射;清版本 pin - themePicked 切案/刷新/新建案重設;版本列改「素材版本」;pill 改「生成:範本備援」 - 手機 <=520:版型橫向捲動、隱藏卡說明、一次生成不再 sticky(draft 位置 -571px) - 頂欄加「站內說明」#/help;移除 pendingGen 死碼;文件/截圖同步 - 84 tests OK;node --check OK;CDP 驗證 #/new→草稿、無圖、theme 重置
bc834f4新增 UI 管線流程圖(SVG/PNG/Mermaid)與 review;修正切風格後合成仍可按、跨案 stale、草稿/合成按鈕卡在進行中;草稿盒移到一次生成前、help 改六步。84 tests OK。
78026f1- /draft 成功先解鎖 drafting 再 renderMain,避免「產出草稿中…」disabled 殘留 - 草稿/合成失敗還原按鈕文字(重新產草稿/合成素材) - 更新 stale 截圖與 review(P0-2)
7cbe8d4- 切換文章風格立即 disable 合成並改提示;compose 端再擋 stale(避免舊語氣文字合成新風格) - markDraftStale(caseId) 只影響該案草稿;套用建議也會標過期 - 草稿盒移到「一次生成」之前,產出草稿改 primary;一次生成降級為旁路 - help 改六步(定調→配圖→草稿→合成→檢視)並補無圖;空態文案同步 - 新增 docs/UI-FLOW.md、ui-flow.svg/.png、UI 管線 review 與 1440/390/stale/help 截圖 - tests 84 OK;node --check OK;CDP 實測 stale 立即反映
e9c9311文章風格在文案生成前定調;配圖新增無圖(純文字)選項,含 tpl-story → summary 誠實退版、低解析標記、草稿過期語意與 compose no_image。84 tests OK。
41cafa0- compose_fields/API 支援 no_image:忽略 hero 與第二張圖,materials 記 no_image/template_used - 配圖列新增「無圖(純文字)」與低解析標記;色系/配圖只影響合成,不再讓草稿過期 - 設定順序改為 文章風格 → 版型 → 色系 → 配圖;手動生成頁同步 - 草稿過期訊息明分:版型/風格要重產草稿,色系/配圖直接合成 - 文件更新(草稿→合成流程、無圖搭配表、FLOW 節點) - tests 84 通過(含 compose_fields no_image)
3a3435f- prompt 合約測試:文章風格/語氣必須排在文章內容之前(順序不得回退) - UI 改為 文章風格 → 版型 → 色系 → 配圖;進度列改為 定調→文案→選圖→合成 - 配圖新增「無圖(純文字)」;generate/API/jobs 支援 no_image,忽略 hero 與第二張圖 - 無圖時 tpl-story 誠實退摘要構圖(effective_template);materials 記錄 no_image/template_used - 低解析縮圖標記;無圖時 recommend 只推純文字版型 - 文件同步;新增 5 個測試(全套 45 通過)
bc14735- search 失敗寫 searchState.error,#case-list 顯示錯誤+重試(不再留過期結果)
- drafting/composing/uploading 旗標:重繪後仍鎖定,防重送
- tpl/style/verchip/varchip/slidechip 補 aria-pressed
- /api/v1/cases(清單)+ /api/v1/case/{id}(單案);前端按需載入,state 保留相容
· cases 92,760B raw / 36,075B gz(state 231,250/65,120)
- images/thumbs:ETag/Last-Modified + no-cache + 304(重爬後立即反映)
- 報告 §9 更新af48ec90befba6- _thumb: tempfile + os.replace,避免並行讀到半張 JPEG/壞檔永久快取 - focusToken: data-ver + data-kind 複合選擇器,reel v1 不再跳到 square v1;納入 data-slide - REPORT: 加入 reviewer 段與修復驗證
d997481414849d- #drawer: role=dialog aria-modal aria-label;開啟記住 opener、關閉回焦點(keyboard 開啟實測回抽屜鈕) - 討論抽屜 Tab trap、Esc 關閉 - 案件分頁 role=tablist/tab + aria-selected - docs/REPORT-uiux-20261130.md:修復/量測/未處理清單
3cdb1b4- a11y:case list role=button+Enter/Space、焦點 token 保存/還原、settings focus trap(已)、drawer 尚待 - 狀態:main/rail 載入占位、aria-live、gen 進度重繪顯示「生成中」、草稿輸入寫回 state - 表單:日期可見標籤+ISO 值(quickdate 修復)、搜尋/討論/Hashtag aria-label - 上傳:label→button(可鍵盤)、onerror 防破圖 - 效能:boot 三請求並行;縮圖 /images/thumb/192(8KB vs 93KB);DB 初始化移出靜態路由 - 快取:app.js/style.css immutable;images/thumbs/materials/assets 明確 max-age
818f56c- assets/brand/favicon.svg:由 logo-white.svg 內嵌 paths + 紅底圓角,512 viewBox - 傳輸 15.1KB(gzip) vs PNG 21.3KB;任意尺寸清晰 - header/guide 早已使用 SVG wordmark(logo-white/red.svg) - compose.py 仍需 PNG(Pillow 不解析 SVG)
285d475- syncTopbarH 加 ResizeObserver + 字級切換即時呼叫(rail/drawer sticky 位移不再舊) - test_reel_aspect: 合成正方形獨立量測 cover_force 與 hook band(4 tests) - REPORT 補 reviewer P2/P3 與 ship 結論
27843de- .materials 改 auto-fit minmax(min(100%,420px),1fr):欄位不足自動單欄 - .reelstage width:min(220px,100%)+aspect-ratio 9:16;.reelview width:100% - .slideinfo/.captionbox min-width:0;.mat-head 可換行 - header: doclinks/viewsw nowrap + topbar 可換行;長網址 overflow-wrap - tests/test_reel_aspect.py:band 必須等於等比 cover crop、四幕 1080x1920 - docs/REPORT-reel-layout-20261130.md
16e462d- header logo onerror → 改顯文字「經濟日報」(圖被擋或被清時仍看得到品牌) - 配圖縮圖 inline onerror → 隱藏破圖、標記 img-broken(不等 JS 綁定) - guide/faq/文件模板 logo 同樣 onerror 隱藏
1d23772- app/changelog.py:git log → 時間軸 HTML(HEAD sha 快取),另開 /api/v1/changelog JSON - 導覽:素材台/使用說明/FAQ/流程圖/版本歷程(含 build_docs_site 模板)
9d31c16- -square.png 依慣例是「純文字·亮」版(無配圖),舊版檢視直接指向它 → 看起來像圖片不見 - 歷史版本先載 -vN-square-band-light.png,404 才退回 base,並同步下載連結 - 新增 scripts/backfill_square_variants.py:為只有 base 的舊 materials 補 9/6 個變體(走 Postgres store)
0f1f8cb- index: white wordmark 30px + 平台名(避免與圖重複) - guide/faq: red wordmark 26px(白底) - favicon/apple-touch: 以 wordmark 產 512 方圖(favicon-512.png) - build_docs_site.py 模板同步
3a9d0302e9afb8bbabc045a79c1135f688068a71e8b9ab6afa2ee82bdec1f40a5fea3f6610843129217ffe22922fead21c21cbea18f19fc79f027b7336d9253c71ffee83c1886824c2b7c76c124bdeb1dc9bf324174e44ef21bbde8b9962fe7a92a039792c8370bcbef1714903cbbf22c453793- replace flow.svg/png with the tighter five-stage editorial layout - keep source/case/output summary and remove overflowing label geometry - point homepage, guide and FAQ at cache key c
394c04fb6c118a79636ff271bc59該段等於向讀者說明工作區有真實業績表;檔案未進交付包,但敘述本身不該公開。
d606a583f9651997a96473aef6cd73de7033542704先前從 snsprod 同步時,webui/index.html 被舊版覆蓋,導覽列整段消失。
ab9b6e0a316cbb80293197b05222eaf5515fd049134032aaa8f762da9db6881e30b770- 使用說明、上課講義:改掉「生成後不能裁切」的舊敘述,改為可調主圖取景 1–3× - 說明書:mermaid 自指邊、附錄標題、作品名、13 頁、截圖日期 - 檢核表:簽核列數字 63/66→68/60 - 截圖圖說:11-30、v3、討論 (4) - 簡報:變體名對齊 UI(黑/白漸層、上圖下文、版型原色)、hero 第 3 幕用第二張圖、 搜尋標題改寫、「會有出錯」語病、十分鐘→十幾分鐘、回覆內容→四幕文字 - PDF/PPTX/udn-V5.html 重出
d0f9ba9c201388a4f7a6f- webui/app.js:錯誤空態改成「請聯絡管理員」,不再外露個資 - app/api.py:不再對外提供 webui/mock-*.html(舊帳密/34 項/12 頁文案) - 作品說明書:作品名稱改「udn-V5|經濟日報 商情社群素材工作平台」 - 簡報頁數 15→13(介紹、使用說明、上課講義、說明書、HANDOFF) - FAQ 移除「工作區有業績表 xls」一問
9043097ac8b7c34acdbae458c0bd- 作品說明書/使用說明/FAQ/用法/上課講義/介紹/檢核表:改寫與數字對齊 (68 案、60 項測試、免登入、08:00–21:00 只抓不生成、fallback 如實標記) - 簡報 15 頁→13 頁(刪驗證與限制兩頁),文案依評稿意見改寫 - 品牌名改「經濟日報 商情社群素材工作平台」(首頁 topbar、title、簡報封面) - 新增 udn-V5.html 單檔離線展示頁(樣式、flow.svg、5 張截圖內嵌) - 重出 DOCX/PDF/PPTX
54e5e68a9aabde- label 63 cases as a 2026-11-29 snapshot; point to /state - replace the 15th slide with a full-width flow reading - regenerate DOCX/PDF/PPTX and site guide
f75bc11778be2b4b15c94c17369e- replace feed-action 刷新 with 更新 in UI and docs - add guide, FAQ and flow links to top bar and rail - redraw flow.svg in diagram-design editorial style; regenerate PNG/PDF/PPTX/DOCX
e76786dd42c7b26961122f163afa60c5a7473422cd- hide nested FAQ/guide TOC entries - add FAQ, usage and lecture links - ignore udn-docs/ in the repo - record final delivery artifacts
f29c651a11c8ba- add DOCX, 15-slide PDF/PPTX and flow PNG - add usage, FAQ, lecture handout and site pages /guide /faq - add 08:00-21:00 every-15-minute fetch-only systemd timer - update docs and UI for the schedule
8e79a3474832a44af0ffdbb0db049c44da85b2913e- add 30/100/300-character work introduction - align README, application, manual, flow, checklist and deck with master 2453c6b - record 9 of 9 square variants visible and 66 tests on 2026-11-29
2453c6b0b6f6458d73da63082de49933b6bac2459d- widen template cards to 150px and remove 2-line description clamp - wrap all square variant chips instead of horizontal scroller
211dfdf- classify Rust CLI, framing, post-gen adjust, CSS, and UI cleanup by fit/risk - document facecrop and search/date/PG conflicts; recommend 4 separate PRs - explicitly reject whole-tree merge and self-use UI cleanup
a5c07ea79d2e2d- application form + submission checklist: current 63 cases, 66 tests, 5 templates, 8 styles, 3 themes, async, search/date/entities, SQLite/PG, no-login reality - operator manual: detailed step-by-step, failure recovery, version/discussion concepts, real live screenshots - FLOW.md + flow.svg: current data flow, async job, search/version diagrams - presentation: 14 slides, current metrics, no login, CSS-only visuals, mobile scroll fix
b8ef09ef55277204a468e2056ada03b0ca7d7f4c854847f9010f9039- import numpy defensively; detect() returns None when unavailable - add regression test for missing numpy; verify app.compose imports in a Pillow-only venv
21d3508- bundle MIT YuNet 2023mar (~228KB) and run via existing onnxruntime; no OpenCV dependency - detect once per image, score candidate crops for complete faces + headroom - single face ~42% height; close groups keep all faces; wide groups fall back - model missing/disabled/no safe window -> existing center/38% heuristic unchanged - add geometric tests + blank-image detector contract; docs/FACE-CROP.md - verified: 62 tests OK on oci; UDNV5_FACE_CROP=0 preserves old output
dc3142c71d18220c3d6b05ae62afe840c1aa95ca97bc554dd307bcd521d16ff8f113eea66b9d5c44390ed1bafa6aed045e286ddf2app/share.py mints a brevu short link per case via brevu's MCP/SSE surface: og:image is the case's own generated square (data/materials/ is already a public route via nginx), og:title/description from headline/caption, utm_source=udn-v5 for click attribution. Mapping stored in cases.brevu_url (auto-migrated in store.init). Pure stdlib — includes a minimal MCP/SSE client; no new dependencies (requirements stays Pillow-only). - default OFF: no-op unless BREVU_API_KEY set; network/API failures return errors instead of raising (fail-open), pipeline untouched - CLI: python3 -m app.share --case/--recent [--force|--dry-run|--og-image|--platform-og] - tests/test_share.py: offline fake SSE server — happy path (headline/ caption/og-image assertions), idempotent skip, fail-open, disabled, migration, error-result rejection (7 cases); discover failures unchanged vs master (2 pre-existing) - README: module section
a517fb091e54e56d83789cherry-pick from cardprinter / card-news-harvest(決策見 gbrain projects/udn-v5-cherry-pick-decision-20261128) - templates.py: fact_gate() — 文案數字必須在 body_text;序號/版號豁免 - service.py: generate() 在 LLM 回應驗證失敗時帶回饋重問一次,如實標 actor+retry - service.py 回傳新增 fact_findings / retried - scripts/qa.py: --case/--all/--strict,檢查 fact/zhtw/檔案存在/channel 標記 - tests/test_fact_gate.py: 4 項測試 - 44 tests OK
037a7f648805239000aee8cd248d7e8886d462aec5bd2fc8918c67e86eec716ffeb205303064b7eb1418e01588587b9f77b3e49e5539d658bbee007c3700393153120fca3e342d7afe2- qwen3:4b 是舊型號;改用 qwen3.5:4b-mlx(mac)與 qwen3.5:4b-q4_K_M(win) - 更新的型號與記憶體表(0.8/2/4/9B) - 提醒 256K context 的 KV cache 會吃掉 RAM,設 OLLAMA_CONTEXT_LENGTH=8192 - 標明 Unsloth HF GGUF 因 vision projector 分離,Ollama 載不了
af0433a1590d0c- app/llm.py: MODEL 由 UDNV5_MODEL 覆寫;新增 opencode_cmd() 每次讀目前模型 - deploy/opencode-ollama.json.example: OpenCode Ollama provider 範例 - docs/OLLAMA.md: 安裝、切換、限制與不要做的事 - tests/test_llm_model.py: 預設值與 env 覆寫測試 - 不碰 production 的 opencode-go 通道;不碰 AFM/apfel 路徑
64b9cd6cc63d43fb42232ef059d4cc86301436f94fb57c67327c88e0eaeb53d307881c913012514e6c236392980f8c9467d10c3e91ad49dde5f526909c81d2269d01a8007ce516921cf89015da283e9df8fb8d4efd4b525ef27062b8f3c50b004a70- <=820px: topbar wraps, rail max-height 42vh, main single column, materials stack - drawer full width; sq/reel previews keep aspect ratio - verified at 390px: scrollWidth 390, main starts y≈450, tabs/drawer no horizontal overflow
dddf43564ec0d470c2d6ec977f3134297f7fefedd640bfaef3b4956406ac4d8ac2352517f6bee434c8f330e67dbfb1bfe7e4ed70f58404e070b6601818d1003a411d511fa397- scripts/bootstrap.sh:venv + Pillow + Google Fonts Noto Sans TC 可變 TTF + 啟動/健康檢查 - compose.py:支援可變字型並正確設定 Regular/Bold 字重 - webui/index.html:接 Google Fonts CSS(系統字型為離線 fallback) - README/QUICKSTART/bootstrap skill:本機架設說明 - .gitignore:.venv/ 與 pid 檔
840cf30fa8425a63d17a43d2df14213a01d27839680b8f8f567c33bf56ec4745b00f2e3005049962465199d6bfe6df94a7- 前端:素材案窗可收合、區段間距、錯誤訊息改為聯絡信箱 - 新增 README/流程圖/使用說明/作品說明書草稿/12頁簡報 HTML - 新增英文 skill 包(含精確 pixel specs 與 worked example) - nginx-v5-auth.conf 收斂為僅 basic auth(未套用)
41a2f7525c62f205d6f103d9238208f7251bfcbf14a51fdd663c536b05818d48d555b41962b8d0f261b0b607412afac29ec06ba413cb25c6d84c5d60f70abae9c9fd0b29384c8f433e75871a8fc2b2b06af7ebe97eb036169492e3a6c3ff86089a0c25740bff4f68c1db1efe91b204fe070d4082509c342f397d63e938da94c4f0f51b8d02cd961236fa71d21dfa81781ff392c95d16a7ce5c6c52db9266fea44745d6c4bd141a045d533d862ef01f46f2887f45256a1c6306132c172890c763367daff32a8c2fa- 依照片亮度自動排序(亮圖白帶先行、暗圖黑帶先行) - 標題單行優先:96→58 逐級縮字,超過才兩行 - 漸層單一 ramp 接實色(無分段硬邊),壓圖 kicker 加底片 - 帶高 32%、頁尾預留 84px(CTA 左/logo 右)
fb741ce094e012d2dffc6840e1562ab18020f58be8c54f1fea7eaa66- assets/brand: .ai→SVG(pdftocairo),紅/白 logo 與 icon(512) - compose: _brand 改真 logo;icon 上各版型;photo 版用實色文字板保可讀 - service: compose_square_variants 四版;hero 先 og:image 再解析度;leads 三案入 materials - webui: 變體 chips 切換、導語卡「討論/修改」帶入討論框 - prompt: leads 三案(結論/疑問/數字),fallback 亦產三案不重複
34fc90bbdfcb88c1f801da1e12f453dfcebecde1de81e22aa85c97c14ba1b37c057551- submitNew 送 template_id/style_id,後端 create_case 落庫(不再掉回預設) - refreshState 失敗不再把按鈕永久釘在「建案中…」,照樣跳主頁重拉 - api() AbortController 逾時保護
6375f90d71bb03- #/new hash 路由獨立頁:URL 最上最大,標題/內文折疊進階 - 版型五張 CSS 即時預覽卡(配色對齊 compose.py)+desc 風格說明 - 文章風格四晶片:財經媒體/重大訊息/休閒民生/科技新知,與版型正交 - 修 URL-only 合約矛盾:blocker 指正——api 放行 url 或 title 擇一, create_case 空題自動抓文取題/內文/配圖(同 HTML 重用),實證 PASS
5fdc2f1- style 管文案口吻(寫進 LLM prompt),template 管視覺構圖 - cases.style 欄+migration;state 暴露 styles[];generate 收 style_id - 預設 st-fin 財經媒體;組合式:版型x風格=20 種產出
fda1eeac808d96f93b244onnx 兩平台皆缺依使用者指示不裝,輕量啟發式頂替
516b59d5d85a1f- 配圖縮圖條:自動預設/點選切換/再點取消,生成帶 image_file - 版本 chips:降序最新高亮,點舊版回看該版素材檔 - gen-channel 模型名除名:統一「生成:AI · 正常」(使用者要求) - 五版型按鈕 data-driven,預設 tpl-summary
dfe3d59f9bbe1e- tpl-summary 紙感純文字/tpl-news 白底青帶/tpl-story 滿版壓字/tpl-data 大數字琥珀/tpl-quote 深青金句 - reels 全版型結合 hero:首幕滿版壓暗/偶數幕上圖下文/奇數幕壓條/末幕 CTA 色塊 - 確定性輸出,未知 template_id 向後相容落 tpl-news
d3359049a51485- images: og 主圖標記/內文 scope/噪音黑名單/udn 圖床提質/alt 入庫
- hero SQL precedence bug 修(全表扯入)
- materials_log 表+檔名版本化 {case}-v{n}-*.png(歷史不覆寫)
- state 暴露 images[]/versions[];generate 收 image_file
- templates 五款:tpl-summary(default)/news/story/data/quote
- POST /api/v1/images/refetch 重抓配圖端點
- 14 tests 綠e2934c52d31cb435294187c9074581c35e0- llm: hy4 推理燒光 token content 全空被當通道死 — max_tokens 8192+EMPTY CONTENT 記錄,5/5 連發全通 - llm: OPENCODE_GO_KEY(m4max 本機 opencode.db)/zen/go/v1,key 指紋入日誌 - compose/templates: 方圖 1080²+reels 1920×4,PIL 逐字換行;字體系統優先(oci fonts-noto-cjk) - service/api: 五表,fetch-only 爬蟲,summary 截斷,hero 按文章歸屬 - webui: 真 API 接線,fallback 可視 - deploy: systemd user+nginx 全 proxy+deploy.sh
3d87971454b67f