WOWSight體育社群素材工作平台
RELEASE NOTES

版本歷程

本站每一次程式變更的 git commit 記錄,最新在上。資料直接由伺服器上的 repo 讀取。

共 426 筆 · 持續累積(不設上限)
2026-12-03
ef361dd
docs: udn-V5 port + residuals report 2026-12-03
lcn-swe
9d1d9bd
feat(monitor): health probe for sns+v5 APIs, Telegram alert on state change
lcn-swe
變更內容
scripts/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.
538cc02
fix(crawl): systemd curl 改走 scripts/crawl.sh 帶 X-Team-Token(配合寫入閘門)
lcn-swe
變更內容
regression 修復:auth gate 上線後 curl POST 無 token 會 401;
ExecStart 改為腳本檔,從 ~/.config/wowsight-sns.env 讀令牌。
實測:systemctl start → Result=success,feed/refresh 200
120dc96
fix(service): create_case 併發 PK 競態 — IntegrityError 轉 duplicate 不再 500
lcn-swe
變更內容
實測:4 執行緒同題併發 → 1 create + 3 duplicate,零錯誤。
URL 層競態殘留已記錄(需正規化+UNIQUE 索引,影響極低:產出只是重複列非錯誤)
f1b0cb3
docs: P0/P1 fix round report 2026-12-03
lcn-swe
10038a0
fix(webui): boot status race + actmenu flip-up + stale-button guard + auth gate tests
lcn-swe
變更內容
- 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
feat(security+correctness): P0/P1 review fixes — SSRF guard, byte caps, write locks, search total, backup media
lcn-swe
變更內容
- 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
53d0086
feat(security): write-endpoint token gate + body cap + frontend token flow
lcn-swe
變更內容
P0-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)
2eefe14
docs: full-site review 2026-12-03 (P0 auth/413/SSRF/upload-cap, P1×9, P2 list)
lcn-swe
272ea90
fix(webui): icon badge colors per spec + help legend row
lcn-swe
b4bbf39
feat(webui): icon badges + kebab action menus
lcn-swe
變更內容
- genBadge: 文字徽章 -> tabler 圖示(sparkles=LLM 綠 / template=模版 灰紫 / circle-dashed=未產出 灰),title+aria 保留語義
- originBadge: 爬蟲為常態不再佔版面,只有手動建立才顯示 hand-click 圖示
- 討論/修改+複製兩顆文字按鈕收進 ⋯ kebab popover(cp-label 與 leadbtns,點選後自動關閉)
- 分享卡單一複製鈕維持直顯不收選單
- 版面前景還給內容:lead row 每列省 ~90px,rail 每列省 ~100px
495f4c4
feat(share): brevu.link integration — REST client, auto-mint, stats, share card (port from udn-V5)
lcn-swe
變更內容
Backend:
- 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
2026-12-02
daf659c
fix(kb): 同 session 並行 tools/call 會讓 server 永不回應(oci 實測 deadlock,sk_wait_data ESTABLISHED)——全局 call lock 串行化;撤回 templates 並行池
lcn-swe
1e3c22b
perf(templates): exemplars/timeline 兩 MCP 呼叫並行(P3-1:串行冷查最多 30s 吃掉 draft 預算); test: _Resp 重複定義清理(P3-7)
lcn-swe
b32b8a3
fix(templates): _guess_entity 剔除專欄前綴(看裝備/籃球等)+ 人名優先於書名號(審查 P3-2)
lcn-swe
5d2b8fb
fix(scripts): backup_pg.sh 指 wowsight-sns-pg(oci live 版本收入,repo==live)
lcn-swe
ccfa7f2
fix(kb): timeout 8→20s(冷 semantic_search 實測 11s)+ MCP session 進程內複用(省 2 RTT/呼叫)+ session 失效才重 handshake,timeout 不重試
lcn-swe
變更內容
oci 實測:exemplars 首次 15.5s 命中 UBA 範例文,cache hit 0s,timeline 正常回傳。
測試契約更新:session-per-call → session-reuse;setUp/tearDown 清模組狀態防洩漏。
1ae2d3c
fix(kb): L5 entity_timeline 參數名 entity→name(server 驗證不過,L5 從未運作)+ SSE CRLF/ping/多行 data 健壯化 + 傳輸失敗不負面快取 + publishedAt str 強制 + 引述 gate 連接詞豁免 + 比分 gate 全形數字/N比N
lcn-swe
變更內容
審查發現(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
a81d5a8
kb: TTL cache for exemplars/timeline; scripts/backfill_facts.py for existing cases
lcn-swe
b858d15
feat(templates): L3 voice anchor + L5 timeline 注入 + L4 fact-gate 加嚴
KbVoiceAnchor
變更內容
- 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
feat(kb): wowsight-kb MCP client(session 流程 + SSE 串流讀取 + fail-open)
KbVoiceAnchor
變更內容
- 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/例外皆回 []/None
f3fdae8
brand: reel footer is WOWSight Sport, not 運動視界 (brand has no such Chinese name)
lcn-swe
ee71160
deploy: drop udn-specific vhost confs; sns.wsit.cc conf is the live reference
lcn-swe
0c8b875
deploy: sync live unit files and nginx vhost into repo
lcn-swe
757d3ff
webui: decode percent-encoded wowsight URLs for display
lcn-swe
ad80a2c
service: WP per_page hard cap is 10 (rest_out_of_bounds); scan 6 pages x 10
lcn-swe
f16ca89
deploy: wowsight-sns deploy/rollback scripts (port 8691, sns.wsit.cc)
lcn-swe
6dd6a03
test: update suite to sports contract (themes, styles, recommend)
lcn-swe
變更內容
- 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
40125b3
chore: leftover finance word in comment
lcn-swe
0d085b6
store: default case theme to wowsight
lcn-swe
3df2bab
Merge remote-tracking branch 'origin/wp-data'
lcn-swe
a43b23f
recommend: sports keyword→style map; style ids from STYLES dynamically
WowsightBrand
79e8f5c
test: rewrite crawl tests for WP data layer
felix
變更內容
- 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)
9a353fc
refactor(fetch): drop udn crawler, keep generic og: fallback
felix
變更內容
Removed 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
refactor(service): route article data through WP API
felix
變更內容
- 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.py
6009134
feat(wp): add WP REST client (app/wp.py) for wowsight.tw posts
felix
變更內容
- 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-game
6eaa856
brand: WOWSight strings in changelog page and package docstring
WowsightBrand
173ca6e
theme: brighten wowsight dark accent to pass 4.5 contrast
WowsightBrand
878890f
webui+docs: WOWSight rebrand (brand strings, sports style lists, sns.wsit.cc)
WowsightBrand
638515f
templates: replace 8 finance styles with 8 sports styles (st-game default)
WowsightBrand
fcb245d
compose: WOWSight brand strings (footer, kicker, source, wowsight.tw)
WowsightBrand
e34e226
theme: add wowsight red palette (#C31023 + gold highlight) as default
WowsightBrand
7827751
brand: replace udn assets with WOWSight logo/favicon/icon
WowsightBrand
f6e24df
fix(html): restore stripped quotes in OG meta tags
felix
64431ae
docs: auth reverted per owner decision — site stays open, conf remains ready
felix
變更內容
Owner directed basic auth rollback at 13:29 UTC; docs now describe
open access with the auth snippet ready but not applied.
14ca042
docs: record basic auth revert
FakeRocket543
38368d7
feat(db): persist materials_log unique index in init
felix
a0ebb49
fix(adjust): bump material version on lead/caption edits
felix
變更內容
Required 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.
71c892a
docs: sync auth/backend reality — basic auth live since 2026-12-02, PG backend
felix
變更內容
README 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.
91939b7
fix(adjust): write materials_log on lead/caption edits
felix
變更內容
adjust_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.
07d299f
fix(api): respond to HEAD (uptime monitors got 501); add OG/Twitter meta to index
felix
變更內容
HEAD 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.
f392407
feat(templates): per-template guide anchors and remove dead modals
FakeRocket543
382de89
docs: report template help feature
FakeRocket543
adcfd7a
docs: cache-bust refreshed template screenshots
FakeRocket543
54b076c
feat(templates): metadata-driven help with mobile disclosure
FakeRocket543
d0c6a78
feat(db): secondary indexes for hot queries in PG init
felix
變更內容
PG 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.
750b965
fix(crawl): reindex crawled cases into search index
felix
變更內容
feed_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.
f53f989
docs: fix current intro copy for batch and framing
FakeRocket543
e510dfc
docs: report five-page sync and screenshot refresh
FakeRocket543
bc1bcf2
docs: cache-bust updated screenshots
FakeRocket543
fc6b584
docs: sync guide, help, FAQ, flow and changelog
FakeRocket543
9773780
fix(llm): migrate model chain off deprecated beam-free/hungerg-free (410)
felix
變更內容
beam-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.
0a7fd05
feat(batch): auto mode with per-case recommendations and progress
FakeRocket543
6c4f81d
feat(batch): show batch generation progress
FakeRocket543
變更內容
- poll job status every 2s, show done/failed, 5m timeout\n- completion summary and refresh; no infinite polling
bf63aec
fix(batch): inherit per-case no_image unless explicit
FakeRocket543
變更內容
- 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
fe2d7d3
docs: list batch endpoints
FakeRocket543
a7d256b
feat(batch): queue batch generation with confirmation
FakeRocket543
變更內容
- 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
fix(batch): cap selection and mark drafts stale
FakeRocket543
變更內容
- UI 選取上限 200,與後端一致;全選超過上限只取前 200 並提示\n- 批次改版型/風格後,已載入草稿標 stale;色系不影響
4e20b27
feat(ui): batch selection and batch settings
FakeRocket543
變更內容
- 左側多選:checkbox、Shift 範圍、Cmd/Ctrl 切換、Space/Enter\n- 篩選內全選、批次列、版型/風格/色系套用\n- POST /api/v1/batch/settings,最多 200 筆、單一 transaction、不呼叫 LLM\n- 後端 13 測試、Playwright 2 測試;全 suite 128 passed
ab86f75
fix(compose): story wide photo layout and frosted seam
FakeRocket543
變更內容
- tpl-story 極端横幅改上圖下文,照片不裁切、不再退摘要\n- frosted 模糊區前移 32px,消除清晰帶與霧面帶接縫\n- 更新 regression test 與視覺報告
2026-12-01
5402946
docs: finalize ratio-aware news and verification evidence
FakeRocket543
d8290d1
fix: ratio-aware news portrait and case write locks
FakeRocket543
變更內容
- 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
2f8bb17
docs: record review fixes and final deploy
FakeRocket543
7b6428d
fix: tie deploy gate to origin/master and guard extreme covers
FakeRocket543
變更內容
- 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
2a8a525
docs: next-round E2E/deploy/visual report
FakeRocket543
1918eab
fix(compose): ratio-aware photo fallbacks
FakeRocket543
變更內容
- _cover_force 放大守門改看 contain 的 min 縮放,3.2:1 橫幅不再六式全滅\n- tpl-news 直幅前景 <45% 退回品牌漸層,不產生中央細條\n- tpl-story 極端橫幅退回摘要卡\n- 新增覆蓋率 helper 與 regression tests
57878a3
test(e2e): add Playwright full-flow; docs: visual contain matrix
FakeRocket543
變更內容
- E2E: create → draft(fallback) → compose → download 1080x1080/1920\n- recompose_case 支援 PostgreSQL 與 SQLite\n- 記錄 contain 視覺驗收 P1/P2 findings
7aa6c1a
chore(deploy): test gate, rollback helper, recompose CLI
FakeRocket543
變更內容
- 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 說明
2105c1c
docs: record 2026-12-01 deployment
FakeRocket543
cac84f8
Merge remote-tracking branch 'origin/master' into docs/uiux-live-note
FakeRocket543
20a2410
feat(ui): 稿件用語、三階段重排、圖片 lightbox 與比例優先
FakeRocket543
變更內容
- 全站案件→稿件;左側清單改進案量;素材案→素材稿/稿件\n- 定調/文字草稿/生成素材三段重排,色系與配圖移入生成素材\n- 配圖縮圖可點擊放大 lightbox,可選用/取消選用\n- 照片改 contain + 模糊補邊,不裁切、不非等比拉伸\n- 新增 cover/poster/editorial 版型與相關文件/測試\n- 文件與 ui-flow 圖同步
35e761b
Merge PR #45: UIUX live note
felix
變更內容
docs only.
b08f8fc
docs(uiux): live 部署版號與 CDN 裸路徑快取註記
FakeRocket543
46b6179
Merge PR #44: static cache header
felix
變更內容
Immutable only for versioned asset URLs.
6a82950
fix(cache): 只有 ?v= 版本化 URL 才 immutable;裸路徑 no-cache
FakeRocket543
變更內容
- /app.js、/style.css 無 query 時改 Cache-Control: no-cache, must-revalidate
- 避免 Cloudflare 把裸路徑舊檔永久快取(本次 style.css 驗證踩到)
- 88 unittest/100 pytest OK
ef29354
Merge PR #43: mobile doc menu + inline src
felix
變更內容
Collapse mobile doc links, restore inline source link.
dd51da8
fix(uiux): 手機文件收成選單;來源連結維持 inline 例外
FakeRocket543
變更內容
- <=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
add3d36
Merge PR #42: UIUX 可及性修正
felix
變更內容
Mobile 44px targets, contrast, reduced motion, stage semantics.
968236f
fix(uiux): 手機 44px 觸控+對比+reduced-motion+stage 語意
FakeRocket543
變更內容
- <=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
af9966f
Merge PR #41: 工序分組 A/B 設定
felix
變更內容
A/B stage grouping as a setting; 44px gaps; reviewer P2 fixes.
23b180a
feat(ui): 工序分組 A/B 設定+段距加大
FakeRocket543
變更內容
- 案件頁三段:① 定調 / ② 文字草稿 / ③ 生成素材,外層 .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
Merge PR #40: changelog 測試收斂
felix
變更內容
只驗計數列,避免 commit 內文偽失敗。
63d77c9
test(changelog): 只檢查計數列,避免 commit 內文提到「上限」造成偽失敗
FakeRocket543
5724dec
Merge PR #39: changelog 無上限
felix
變更內容
版本歷程改為完整 git log,持續累積。
51908e3
feat(changelog): 移除 500 筆上限,版本歷程完整累積
FakeRocket543
變更內容
- 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)
4fb31fb
Merge PR #38: live jobs worker pool (6/6)
felix
變更內容
item 6/6: dirty worker-pool change + test.
50c020e
merge(live): jobs worker pool + per-case lock(dirty tree, 6/6)
FakeRocket543
變更內容
- 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
6b7d375
Merge PR #37: live draft-first versions (5/5)
felix
變更內容
item 5/5 from live; integrated with no_image/stale/new-flow/mobile.
33b29ea
fix(ui): 文字草稿版本整合我們的主線語意
FakeRocket543
變更內容
- loadDrafts 空回應不再清掉剛建立的新草稿(load/draft 競態)
- 版本切換保留 stale 狀態;startDraft 產完清除 stale
- compose-main 改用選定草稿版本;合成後保留草稿與版本
- 文件/help 補版本切換與 ①/③ 說明
- node --check OK;pytest 95 / unittest 85 OK
2026-11-30
ff141e4
feat: draft-first text versions + full hub crawl
felix
變更內容
- 文字稿入 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)
2026-12-01
d448180
Merge PR #36: live default theme fin-red
felix
變更內容
item 4/5 from live.
2026-11-30
411a69d
feat(theme): default palette is fin-red (red-gold)
felix
變更內容
- 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)
2026-12-01
e9390e0
Merge PR #35: live per-channel crawl
felix
變更內容
item 3/5 from live.
2026-11-30
daa3ceb
feat(crawl): per-channel expansion, 10 per channel
felix
變更內容
- 解析 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)
2026-12-01
67f39cc
Merge PR #34: live llm hy4-flash
felix
變更內容
item 2/5 from live.
2026-11-30
d86c3f1
feat(llm): paid hy4-flash, demoted before muse
felix
變更內容
- 移除 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)
2026-12-01
7924d81
Merge PR #33: live crawl timeout
felix
變更內容
item 1/5 from live.
2026-11-30
9fa1952
chore(crawl): raise systemd crawl timeout for 180-link runs
felix
變更內容
分頻道展開後掃描量 30→180;首跑抓文章+圖可超過原 200s,curl max-time 180→900、TimeoutStartSec 200→960。

(cherry picked from commit adfbc0736eb7477687fe19de6c9db2f0550290b0)
2026-12-01
e50a91b
Merge PR #32: 跨案競態 E2E 與 390 full-page 證據
felix
變更內容
docs only: 6s slow-stub cross-case draft test, full-page 390 evidence, np-check hitbox.
3d4f807
docs: 補跨案競態 E2E 與 390 full-page 證據
FakeRocket543
變更內容
- 慢速 stub 6s:A 草稿中 1.4s 切到 B;B 按鈕 6.4s 解鎖、note 未被污染、topbar 顯示 A 完成
- 390 full-page 2962px,確認色系/配圖/草稿皆存在
- np-check label 44px、checkbox 13×18
63867de
Merge PR #31: #/new 產草稿+無圖;跨案/隊列/合成狀態修正
felix
變更內容
建案後自動產文字草稿、可勾不用配圖;排隊草稿帶案件 id 與目標 template/style;合成以 c.id 併回並容忍 refresh 失敗;theme 重設、版本/通道文案、手機壓縮、站內說明連結。84 tests OK。
f14d762
feat(ui): #/new 建案後自動產草稿+無圖;修跨案/隊列/合成狀態
FakeRocket543
變更內容
- #/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 重置
2026-11-30
bc834f4
Merge PR #30: UI 管線流程圖+草稿 stale 防護
felix
變更內容
新增 UI 管線流程圖(SVG/PNG/Mermaid)與 review;修正切風格後合成仍可按、跨案 stale、草稿/合成按鈕卡在進行中;草稿盒移到一次生成前、help 改六步。84 tests OK。
2026-12-01
78026f1
fix(ui): 草稿/合成完成後按鈕不再卡在進行中
FakeRocket543
變更內容
- /draft 成功先解鎖 drafting 再 renderMain,避免「產出草稿中…」disabled 殘留
- 草稿/合成失敗還原按鈕文字(重新產草稿/合成素材)
- 更新 stale 截圖與 review(P0-2)
7cbe8d4
feat(ui): 草稿 stale 防護+主線重排;補 UI 管線流程圖與 review
FakeRocket543
變更內容
- 切換文章風格立即 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 立即反映
2026-11-30
e9c9311
Merge PR #29: 先定調(風格→文案)+無圖(純文字)
felix
變更內容
文章風格在文案生成前定調;配圖新增無圖(純文字)選項,含 tpl-story → summary 誠實退版、低解析標記、草稿過期語意與 compose no_image。84 tests OK。
2026-12-01
41cafa0
feat(gen): 無圖選項接上草稿→合成;風格先定調
FakeRocket543
變更內容
- compose_fields/API 支援 no_image:忽略 hero 與第二張圖,materials 記 no_image/template_used
- 配圖列新增「無圖(純文字)」與低解析標記;色系/配圖只影響合成,不再讓草稿過期
- 設定順序改為 文章風格 → 版型 → 色系 → 配圖;手動生成頁同步
- 草稿過期訊息明分:版型/風格要重產草稿,色系/配圖直接合成
- 文件更新(草稿→合成流程、無圖搭配表、FLOW 節點)
- tests 84 通過(含 compose_fields no_image)
3a3435f
feat(gen): 先定調(風格→文案)+無圖(純文字)配圖選項
FakeRocket543
變更內容
- prompt 合約測試:文章風格/語氣必須排在文章內容之前(順序不得回退)
- UI 改為 文章風格 → 版型 → 色系 → 配圖;進度列改為 定調→文案→選圖→合成
- 配圖新增「無圖(純文字)」;generate/API/jobs 支援 no_image,忽略 hero 與第二張圖
- 無圖時 tpl-story 誠實退摘要構圖(effective_template);materials 記錄 no_image/template_used
- 低解析縮圖標記;無圖時 recommend 只推純文字版型
- 文件同步;新增 5 個測試(全套 45 通過)
2026-11-30
bc14735
fix: backlog — 搜尋就地錯誤、長動作鎖、aria-pressed、state 拆分、圖片 304
felix
變更內容
- 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 更新
af48ec9
docs: 商情 hub 頻道/抓取範圍報告(110 篇、25 頻道、目前只抓 9 個)
felix
0befba6
fix: reviewer R1/R2 — 縮圖原子寫入、focus token 複合鍵
felix
變更內容
- _thumb: tempfile + os.replace,避免並行讀到半張 JPEG/壞檔永久快取
- focusToken: data-ver + data-kind 複合選擇器,reel v1 不再跳到 square v1;納入 data-slide
- REPORT: 加入 reviewer 段與修復驗證
d997481
docs: UIUX 報告更新(drawer/tab 已修)
felix
414849d
fix(ui): drawer 改 dialog(焦點進出/Esc/trap)+分頁 aria-selected;補 UIUX 報告
felix
變更內容
- #drawer: role=dialog aria-modal aria-label;開啟記住 opener、關閉回焦點(keyboard 開啟實測回抽屜鈕)
- 討論抽屜 Tab trap、Esc 關閉
- 案件分頁 role=tablist/tab + aria-selected
- docs/REPORT-uiux-20261130.md:修復/量測/未處理清單
3cdb1b4
feat(ui): UX/a11y/perf pass — 鍵盤操作、焦點保存、載入/錯誤回饋、縮圖與快取
felix
變更內容
- 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
feat(brand): favicon 改 SVG(紅底白 wordmark,PNG 保留為 fallback/apple-touch)
felix
變更內容
- 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
fix(ui): topbar 高度隨字級/換行即時同步;補獨立比例測試
felix
變更內容
- syncTopbarH 加 ResizeObserver + 字級切換即時呼叫(rail/drawer sticky 位移不再舊)
- test_reel_aspect: 合成正方形獨立量測 cover_force 與 hook band(4 tests)
- REPORT 補 reviewer P2/P3 與 ship 結論
27843de
fix(ui): 直式素材卡在窄視窗/大字級被裁切(非生成拉伸)
felix
變更內容
- .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
fix(ui): 圖片載入失敗不再顯示破圖示
felix
變更內容
- header logo onerror → 改顯文字「經濟日報」(圖被擋或被清時仍看得到品牌)
- 配圖縮圖 inline onerror → 隱藏破圖、標記 img-broken(不等 JS 綁定)
- guide/faq/文件模板 logo 同樣 onerror 隱藏
1d23772
feat(ui): 版本歷程頁 /changelog + 首頁與文件導覽加入口
felix
變更內容
- app/changelog.py:git log → 時間軸 HTML(HEAD sha 快取),另開 /api/v1/changelog JSON
- 導覽:素材台/使用說明/FAQ/流程圖/版本歷程(含 build_docs_site 模板)
9d31c16
fix(ui): 歷史版本與舊素材不再顯示無圖的純文字 base
felix
變更內容
- -square.png 依慣例是「純文字·亮」版(無配圖),舊版檢視直接指向它 → 看起來像圖片不見
- 歷史版本先載 -vN-square-band-light.png,404 才退回 base,並同步下載連結
- 新增 scripts/backfill_square_variants.py:為只有 base 的舊 materials 補 9/6 個變體(走 Postgres store)
0f1f8cb
fix(brand): header 改用經濟日報 wordmark;icon.png 是裁切方圖故看起來像 logo 不見
felix
變更內容
- index: white wordmark 30px + 平台名(避免與圖重複)
- guide/faq: red wordmark 26px(白底)
- favicon/apple-touch: 以 wordmark 產 512 方圖(favicon-512.png)
- build_docs_site.py 模板同步
3a9d030
Merge pull request 'fix(ui): 放大功能區塊上下間距' (#28) from fix/section-spacing into master
felix
2e9afb8
fix(ui): 放大各功能區塊上下間距
FakeRocket543
bbabc04
docs(report): 最後 debt 清理 Ralph 報告
FakeRocket543
5a79c11
Merge pull request 'refactor(maintenance): backfill script 精簡為 NOT EXISTS' (#27) from fix/final-debts into master
felix
35f6880
refactor(maintenance): backfill script 以 NOT EXISTS 取代 N+1(29->30 行)
FakeRocket543
68a71e8
docs(report): 部署 debt 清理 Ralph 報告
FakeRocket543
b9ab6af
Merge pull request 'refactor(deploy): 配圖回填移出 deploy.sh,修 PEP 668 pip 判斷' (#26) from fix/deploy-debts into master
felix
a2ee82b
fix(deploy): pin origin/master,避免 live 停在其他 branch 時部署舊碼
FakeRocket543
dec1f40
refactor(deploy): 配圖回填移出 deploy.sh,修 PEP 668 pip 判斷
FakeRocket543
a5fea3f
docs(report): 補入 self-review verdict 與部署債
FakeRocket543
6610843
docs(report): 部署後驗證 Ralph 報告與 parity 發現
FakeRocket543
129217f
Merge pull request 'feat(ui): 顯示配色與素材色系拆分 + 進階色彩模式(預設關閉)' (#25) from fix/separate-display-theme into master
felix
fe22922
chore(ralph): 標記顯示/素材色系拆分 run 完成
FakeRocket543
fead21c
fix(ui): P1/P2 修正 + Ralph 報告(顯示/素材色系拆分)
FakeRocket543
21cbea1
fix(ui): 關閉進階色彩模式時把素材色系拉回基本 3 組
FakeRocket543
8f19fc7
feat(ui): 顯示配色與素材色系拆分,進階色彩模式預設關閉
FakeRocket543
9f027b7
Merge pull request 'fix(fetch): CATE_URL 去除尾綴,回到無參數商情頻道網址' (#24) from fix/feed-source-bare into master
felix
336d925
fix(fetch): CATE_URL 去除尾綴,回到無參數商情頻道網址
FakeRocket543
3c71ffe
Merge pull request 'fix(fetch): 商情頻道爬蟲改用導覽列 URL 為主' (#23) from fix/feed-source-url into master
felix
e83c188
fix(fetch): 商情頻道來源改用導覽列 URL(含 from/dark_mode 參數)
FakeRocket543
6824c2b
Merge pull request 'fix(ui): 字體縮放功能生效(--font-scale)' (#22) from fix/font-scaling into master
felix
7c76c12
fix(ui): 字級改走 --font-scale,讓 px 字型真正縮放
FakeRocket543
4bdeb1d
Merge pull request 'feat(ui): croq.date 15 組色系 + 齒輪顯示設定 + topbar 隨 palette 變色' (#21) from feat/croq-palette into master
felix
c9bf324
docs(report): topbar palette 修正 Ralph 報告
FakeRocket543
174e44e
fix(ui): topbar 改用 highlight 混暗,對比全過且預設不再藍綠
FakeRocket543
f21bbde
fix(ui): topbar 藍綠漸層改隨 palette 色系變動
FakeRocket543
8b9962f
docs(report): croq.date 色系移植 Ralph 報告與證據
FakeRocket543
e7a92a0
docs(ui): 色系備注改中性詞,不再在 UI 外露來源品牌
FakeRocket543
39792c8
feat(ui): 移植 croq.date 15 組色系 + 齒輪顯示設定
FakeRocket543
370bcbe
Merge pull request 'ui: label feed action as 更新' (#20) from fix/update-button-label into master
felix
f171490
ui: label feed action as 更新
opencode-free
3cbbf22
Merge pull request 'docs: polish flow diagram for current brand' (#19) from feat/flow-polish-v7 into master
felix
c453793
docs: polish flow diagram for current brand
opencode-free
變更內容
- 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
394c04f
docs: 移除 snsprod 二次構圖字樣,FAQ 頁改寫為現行取景行為
felix
b6c118a
fix(ui): 討論與調整直接顯示伺服端調整紀錄,不再只顯示筆數提示
FakeRocket543
79636ff
docs: 移除 Postgres 搜尋與 tpl-data 負數兩則限制(FAQ、說明書、檢核表、/faq)
felix
271bc59
docs(faq): 刪除「業績表 xls」問答與目錄項
felix
變更內容
該段等於向讀者說明工作區有真實業績表;檔案未進交付包,但敘述本身不該公開。
d606a58
docs: 報告補第八輪
felix
3f96519
chore(brand): flow.svg 與離線頁移除殘留 udn-V5
felix
97a9647
docs(deck): 封面平台名,PDF/PPTX 重出
felix
3aef6cd
refactor(brand): udn-V5 全面改名為經濟日報 商情社群素材工作平台
felix
73de703
docs: 報告補第七輪
felix
3542704
fix(ui): 首頁補回文件導覽(使用說明/FAQ/流程圖)
felix
變更內容
先前從 snsprod 同步時,webui/index.html 被舊版覆蓋,導覽列整段消失。
ab9b6e0
docs: 採用 v7 母稿
felix
a316cbb
feat(llm): HTTP 模型階梯 hy4→beam→hungerg→muse(muse 付費墊底,可 env 覆寫)
FakeRocket543
8029319
docs: 報告補第六輪
felix
7b05222
docs: 改用 Pages 母稿匯出的 DOCX 與說明書 PDF
felix
eaf5515
docs: 報告補第五輪
felix
fd04913
docs(shots): 重拍 5 張,DOCX/離線頁同步
felix
4032aaa
feat(ui): 首頁品牌 mark 改用 assets/brand/icon.png(favicon 同步)
FakeRocket543
8f762da
fix(ui): 搜尋結果的版型/風格 badge 顯示名稱,不再露 tpl-*/st-* id
felix
9db6881
docs: 報告補第四輪(ReviewDocs 20 項)
felix
e30b770
docs: 修第二輪審查 20 項(名稱/頁數/取景/圖說/簡報用語)
felix
變更內容
- 使用說明、上課講義:改掉「生成後不能裁切」的舊敘述,改為可調主圖取景 1–3×
- 說明書:mermaid 自指邊、附錄標題、作品名、13 頁、截圖日期
- 檢核表:簽核列數字 63/66→68/60
- 截圖圖說:11-30、v3、討論 (4)
- 簡報:變體名對齊 UI(黑/白漸層、上圖下文、版型原色)、hero 第 3 幕用第二張圖、
  搜尋標題改寫、「會有出錯」語病、十分鐘→十幾分鐘、回覆內容→四幕文字
- PDF/PPTX/udn-V5.html 重出
d0f9ba9
docs(site): /guide 簡報頁數 15→13
felix
c201388
docs: README 標題改新品牌;報告補第三輪安全修正
felix
a4f7a6f
fix(privacy): 移除公開頁員工信箱、關閉 /mock-* 對外;文件對齊 13 頁與新作品名
felix
變更內容
- webui/app.js:錯誤空態改成「請聯絡管理員」,不再外露個資
- app/api.py:不再對外提供 webui/mock-*.html(舊帳密/34 項/12 頁文案)
- 作品說明書:作品名稱改「udn-V5|經濟日報 商情社群素材工作平台」
- 簡報頁數 15→13(介紹、使用說明、上課講義、說明書、HANDOFF)
- FAQ 移除「工作區有業績表 xls」一問
9043097
docs: 截圖註記改 75 案(截圖日)、新增送件驗證報告;FLOW/ADJUST 用語統一
felix
ac8b7c3
docs(shots): 換用新版 5 張 live 截圖,DOCX 同步
felix
4acdbae
fix(ui): 文字草稿提示錯字(認識字→確認文字)、按鈕繼承字型;/guide /faq 數字與用語同步
felix
458c0bd
docs: 文案定稿(去 AI 味、台灣用語、13 頁簡報、品牌名)
felix
變更內容
- 作品說明書/使用說明/FAQ/用法/上課講義/介紹/檢核表:改寫與數字對齊
  (68 案、60 項測試、免登入、08:00–21:00 只抓不生成、fallback 如實標記)
- 簡報 15 頁→13 頁(刪驗證與限制兩頁),文案依評稿意見改寫
- 品牌名改「經濟日報 商情社群素材工作平台」(首頁 topbar、title、簡報封面)
- 新增 udn-V5.html 單檔離線展示頁(樣式、flow.svg、5 張截圖內嵌)
- 重出 DOCX/PDF/PPTX
2026-11-29
54e5e68
Merge pull request 'docs: snapshot counts and full-width flow slide' (#17) from feat/final-docs-site-crawl into master
felix
a9aabde
docs: mark live counts as snapshots and show flow full-width
opencode-free
變更內容
- 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
f75bc11
Merge pull request 'ui: cache-bust flow diagram' (#16) from feat/final-docs-site-crawl into master
felix
778be2b
ui: bust cached flow diagram and keep SVG no-cache
opencode-free
4b15c94
Merge pull request 'ui: 更新 wording, homepage docs links, editorial SVG flow' (#15) from feat/final-docs-site-crawl into master
felix
c17369e
ui: use 更新 for feed action and add homepage doc links
opencode-free
變更內容
- 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
e76786d
Merge pull request 'docs: preserve historical deck counts' (#14) from feat/final-docs-site-crawl into master
felix
d42c7b2
docs: preserve historical deck counts and record 15-page addendum
opencode-free
6961122
Merge pull request 'docs: mobile FAQ code wrapping' (#13) from feat/final-docs-site-crawl into master
felix
f163afa
docs: prevent inline code overflow on mobile FAQ
opencode-free
60c5a74
Merge pull request 'docs: public guide polish + reference ignore' (#12) from feat/final-docs-site-crawl into master
felix
73422cd
docs: tighten public guide TOC and protect submission references
opencode-free
變更內容
- hide nested FAQ/guide TOC entries
- add FAQ, usage and lecture links
- ignore udn-docs/ in the repo
- record final delivery artifacts
f29c651
Merge pull request 'feat: submission docs, site guide/FAQ and scheduled crawler' (#11) from feat/final-docs-site-crawl into master
felix
a11c8ba
feat: publish docs, FAQ and scheduled fetch-only crawl
opencode-free
變更內容
- 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
8e79a34
Merge pull request 'docs: exact intro lengths and manual links' (#10) from docs/intro-discoverability into master
felix
74832a4
docs: make intro lengths exact and link it from the manual
opencode-free
4af0ffd
Merge pull request 'docs: stable version refs in final packet' (#9) from docs/update-final-refs into master
felix
bb0db04
docs: use stable V5 version references in final packet
opencode-free
9c44da8
Merge pull request 'docs: refresh final submission package, intro and references' (#8) from docs/update-final-20261129 into master
felix
5b2913e
docs: refresh final submission package, intro and handoff references
opencode-free
變更內容
- 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
2453c6b
Merge pull request 'docs: snsprod → V5 cherry-pick assessment' (#6) from docs/cherrypick-snsprod-20261129 into master
felix
0b6f645
Merge pull request 'docs: refresh V5 competition submission, manual, flow and deck' (#5) from docs/competition-20261129 into master
felix
8d73da6
docs: final V5 visual review report
opencode-free
3082de4
docs: refresh live screenshots after V5 visual fixes
opencode-free
9933b6b
Merge pull request 'fix(ui): full template descriptions + all square variants' (#7) from fix/visual-review-v5-20261129 into master
felix
ac2459d
fix(ui): show full template descriptions and all square variants
opencode-free
變更內容
- widen template cards to 150px and remove 2-line description clamp
- wrap all square variant chips instead of horizontal scroller
211dfdf
docs: analyze snsprod backport candidates for V5
opencode-free
變更內容
- 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
a5c07ea
docs: add V5 documentation update report
opencode-free
79d2e2d
docs: refresh V5 competition submission, manual, flow and deck
opencode-free
變更內容
- 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
2026-11-28
b8ef09e
test(search): 日期篩選測試改用獨立 DB(全套共用 DB 下其他案件會落入區間)
FakeRocket543
f552772
fix(search): 日期篩選 WHERE 改用 c.published(PG 不接受 SELECT 別名;自 PG 切換後日期篩選即失效);清除篩選後還原狀態提示;新增日期篩選測試
FakeRocket543
04a468e
feat(ui): 日期欄改文字輸入顯示 YYYY/MM/DD(可只打數字,送 API 轉 ISO;不完整不查、不合法提示)
FakeRocket543
2026-11-27
2056ada
docs(ollama): 簡化 vision 說明 — v5 純文字,官方 tag 直接可用
FakeRocket543
03b0ca7
docs: 作品說明書填寫版(試用人數/LLM 規範已補,個資留白)
FakeRocket543
2026-11-28
d7f4c85
fix(ui): visual review P3 — reel text pad, selection contrast, equal card height
opencode-free-oci-20261128
4847f90
style(ui): 選中態底色/檢視切換對比/素材卡等高(下載列貼底)
FakeRocket543
10f9039
fix(crop): keep numpy optional so compose imports with Pillow only
opencode-free
變更內容
- import numpy defensively; detect() returns None when unavailable
- add regression test for missing numpy; verify app.compose imports in a Pillow-only venv
21d3508
feat(crop): optional YuNet face-aware cover crop
opencode-free
變更內容
- 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
dc3142c
docs: 補視覺 review 幾何實測(1440/1024/1000)、commits 與限制
FakeRocket543
71d1822
docs: REPORT 視覺 review 第二輪(抽屜對稱/UX 修正/驗證)
FakeRocket543
0c3d6b0
fix(copy): 範本備援提示字改用 regex 移除(含截斷變體),state/generate/draft/compose 共用
FakeRocket543
5ae62af
feat(ui): 視覺 review 第二輪(導語按鈕/tag chips/縮圖 skeleton/varrow 捲動提示/手機輸入 44px/選案清搜尋/舊文案提示字清除;抽屜 30px 對齊)
FakeRocket543
e840c1a
fix(ui): 桌面抽屜對稱(與左欄同寬 268、貼齊 shell 右緣、topbar 下開始);generate 移除範本備援提示字
FakeRocket543
a95ca97
docs: REPORT UI polish(字級/觸控/變體選擇器,含審查與驗證)
FakeRocket543
bc554dd
fix(ui): 手機 varrow 加 max-width:100% 修正無法捲動/chips 被裁;補 focus ring 空間;清死碼 padding
FakeRocket543
307bcd5
fix(ui): .btn-mini 字級納入 scale(12px,原 UA 13.33px)
FakeRocket543
21d16ff
fix(ui): 手機 btn-mini/varchip 也補 44px(全域 24px 規則蓋掉 media)
FakeRocket543
8f113ee
feat(ui): type scale 收斂 7 級(11/12/13/14/15/22/34);mini/link 目標 24px、手機 44px;變體 chip 橫向捲動+放大
FakeRocket543
a66b9d5
fix(ui): 手機 captionbox flex-basis 改 auto(修正 100% 撐高造成大片空白)
FakeRocket543
c44390e
fix(ui): 手機素材卡改垂直堆疊(文案不再被擠成一直欄);桌面 caption 最小寬 220
FakeRocket543
d1bafa6
chore: ignore .env/*.key(避免 key 誤入版控)
FakeRocket543
aed045e
feat(share): 雙閘門 owner-only(BREVU_API_KEY+UDNV5_SHARE_ENABLED),預設不啟用;測試同步
FakeRocket543
2026-11-27
286ddf2
feat(share): optional brevu.link share-link module (default off, fail-open)
FakeRocket543
變更內容
app/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
2026-11-28
a517fb0
fix(qa): fact gate 跳過 variants 版型標註(32%/42% 非文案)
FakeRocket543
91e54e5
feat(qa): fact gate 擴到 draft/compose(URL/檔名豁免、corpus 含 title/summary);UI 顯示數字警示
FakeRocket543
6d83789
feat(qa): fact gate + self-heal retry + 可重複驗收腳本
FakeRocket543
變更內容
cherry-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
037a7f6
fix(draft): 上限 25→75s(雲端通道 40-60s),避免每次都落範本;UI 提示同步
FakeRocket543
4880523
fix(install): 選單改用 while-read 逐行解析,避免說明含空白被拆行
FakeRocket543
9000aee
docs(local): 27B 標為實驗/不建議,選單不再引導下載;預設最高 9B
FakeRocket543
8cd248d
feat(local): 互動安裝選單(4B/9B/27B,依 RAM 建議)+agent 導向安裝/驗收文件
FakeRocket543
7e8886d
docs: 補 27B 實測(17.5s/9-9 實體/0 幻覺;MLX 不支援 format)
FakeRocket543
462aec5
docs: 4B/9B 忠實度實測(實體命中/幻覺數字/禁用詞)
FakeRocket543
bd2fc89
docs: 補 PG 備份還原/entities/LLM 預算驗證
FakeRocket543
18c67e8
fix(llm/jobs): chat_http_env 用同一 deadline 封頂;job done 不覆蓋 error
FakeRocket543
6eec716
docs: PG 遷移報告與 4B/9B 模型分級實測
FakeRocket543
ffeb205
docs(db): 雲端 PG/本機 SQLite 分工、遷移與備份;新增 pg_dump 備份與遷移腳本
FakeRocket543
303064b
fix(pg): init 只跑一次(避免每個 request 搶 DDL 鎖造成死鎖);PgConn 死鎖重試一次
FakeRocket543
2026-11-27
7eb1418
feat(db): PostgreSQL 後端(UDNV5_DB_URL)+SQLite 保護(WAL/busy_timeout/backup);PG 相容查詢分支與 sqlite→PG 搬移
FakeRocket543
e015885
fix(jobs): 逾時包裝改在執行緒內自建 SQLite 連線(修正 cross-thread)
FakeRocket543
87b9f77
fix(jobs): 補 import os(240s 逾時用)
FakeRocket543
b3e49e5
fix(jobs): LLM 全域 deadline(避免多通道累積 4 分鐘)、job 240s 硬上限;前端顯示生成秒數
FakeRocket543
539d658
fix(draft): 逾時上限 15→25s(本機模型首次載入);補 Ollama prefix/fail-closed 測試
FakeRocket543
bbee007
fix(llm): ollama 失敗改回 unavailable(ollama),generate 正確標 template-fallback
FakeRocket543
c370039
fix(llm): Ollama 模式 fail-closed(失敗即 ollama-unavailable,不自動上雲);docs 註明
FakeRocket543
3153120
feat(llm): 原生 Ollama backend(think:false, format=json, UDNV5_MODEL=ollama/*);實測 4.8s 完成 generate
FakeRocket543
fca3e34
docs: 記錄測試資料清理與備份路徑;補 UI review 報告
FakeRocket543
2d7afe2
docs(ollama): 改為 Qwen3.5 Small — mac MLX / win GGUF
FakeRocket543
變更內容
- 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 載不了
af0433a
docs(ollama): 補 macOS/Windows 安裝指南與 PowerShell 切換
FakeRocket543
1590d0c
feat(llm): 可選本機 Ollama backend(UDNV5_MODEL)
FakeRocket543
變更內容
- 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 路徑
64b9cd6
docs: 補記 draft stale/預覽/上傳驗證修正與正式資料測試污染
FakeRocket543
cc63d43
chore(draft): 移除範本備援文案中的『AI 通道未回應』註記
FakeRocket543
fb42232
fix(api): ValueError 回 400(原 404),上傳格式錯誤語意正確
FakeRocket543
ef059d4
fix(draft): 條件變更作廢草稿(stale 停用合成)、預覽用草稿文案、backend 標示;上傳格式白名單;tags 字串正規化
FakeRocket543
cc86301
docs: REPORT 文字草稿→編修→合成與上傳配圖(含 bug 修復與限制)
FakeRocket543
436f94f
fix(compose): compose_reel 需要 {text,sub} dict;compose_fields 與 reuse 路徑統一轉換(修正直式空白)
FakeRocket543
b57c673
fix(draft): slides 物件正規化為純文字(text/sub),擋掉 [object Object];前端防禦性顯示
FakeRocket543
27c88e0
fix(state): 配圖清單優先帶入上傳圖、上限 6→12(大圖不再擠掉上傳)
FakeRocket543
eaeb53d
fix(draft): 15 秒硬上限,逾時即回範本文字(避免 LLM retry 卡 2 分鐘)
FakeRocket543
307881c
fix(draft): LLM 45s 上限、失敗即用範本文字(不讓前端等 90s+)
FakeRocket543
9130125
feat(draft): 文字草稿→編修→合成(不重跑 LLM);配圖可上傳自訂圖片;新增 /api/v1/draft /compose /images/upload
FakeRocket543
14e6c23
fix(ui): topbar 水平 gutter 對齊 rail 內容(14px);補 badge manual/gen-tpl 對比至 5.9/5.3
FakeRocket543
6392980
fix(ui): P1 — ⟳→SVG(含空狀態文案)、badge 對比 5.76、viewport-fit+safe-area、topbar 與內容同寬對齊
FakeRocket543
f8c9467
docs: 修正驗證引擎為 WebKit、記錄 topbar/rail 幾何與 --topbar-h 修正
FakeRocket543
d10c3e9
fix(rail): topbar sticky + 量測 --topbar-h,rail top/height 同源(首屏底部不再被切)
FakeRocket543
1ad49dd
docs: 更新報告(sticky top 已修、overscroll-contain)
FakeRocket543
e5f5269
fix(rail): sticky top 改 0(topbar 捲走後不留縫)、sheet 列表加 overscroll-contain
FakeRocket543
09c81d2
docs: REPORT 左欄捲動與行動版案件清單(含審查/邊界/E2E 證據)
FakeRocket543
269d01a
fix(rail): 空清單也更新標題計數
FakeRocket543
8007ce5
fix(rail): review P2 — closeRailSheet 僅在開啟時作用(不破壞桌面 a11y)、⟳ 不誤開 sheet;P3 一併修 dvh fallback/離線計數/初始 aria/title 可聚焦
FakeRocket543
16921cf
fix(rail): 修 P1(sheet 被 44px 收起規則壓過/路由切換未關 sheet)、P2(清搜尋一併清日期、Escape 不關 sheet、轉桌面自動關、aria-expanded/鍵盤)
FakeRocket543
89015da
fix(rail): 手機 sheet 綁定改為點擊時判斷裝置(縮放/轉向後仍可開)
FakeRocket543
283e9df
feat(rail): 桌面左欄 sticky + 只有案件列表捲動;手機改全螢幕案件清單(same DOM, no duplicate ids);標題顯示數量
FakeRocket543
8fb8d4e
fix(ui): 820px 補回 sticky 生成列與抽屜歷史高度(合併時誤刪)
FakeRocket543
fd4b525
merge ui/mobile-v5: 保留 44px 觸控/rail 收合/sticky 生成列,抽屜改底部工作表(88dvh)+遮罩
FakeRocket543
ef27062
ui(mobile): 抽屜改底部工作表(88dvh)+遮罩,可點外關閉;手機隱藏分頁/抽屜切換
FakeRocket543
b8f3c50
fix(ui): mobile-first rail, 44px tap targets, sticky generate bar
opencode-free-oci-20261127
b004a70
fix(ui): responsive phone layout — rail capped, single-column main, full-width drawer
opencode-free
變更內容
- <=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
dddf435
fix(api): /api/v1/threads 掛到 GET(先前誤掛 POST 區)
FakeRocket543
64ec0d4
feat(thread): GET /api/v1/threads;抽屜顯示伺服端完整調整歷史(時間/版號/備註/before-after)
FakeRocket543
70c2d6e
fix(ui): 抽屜版送出後保持開啟並刷新歷史;boot 帶入 drawer 模式即開抽屜;asset 版號 f
FakeRocket543
c977f31
fix(ui): 抽屜開啟時主區讓位(不再覆蓋內容)
FakeRocket543
34297f7
feat(ui): 抽屜版在抽屜內顯示調整歷史(與討論分頁同資料)
FakeRocket543
fefedd6
feat(ui): header 檢視切換(分頁版/抽屜版),選擇存 localStorage;分頁版含討論分頁,抽屜版討論固定右側
FakeRocket543
40bfaef
fix(generate): 參數正規化(null→""),去重簽章穩定
FakeRocket543
3b49564
fix(jobs): 去重改比參數簽章(換風格/色系再生成會另起 job);adjust 回 material_version
FakeRocket543
06ac4d8
mock(ui): header 常駐 A/B 切換列(可直接跳方案,不用回頭開 picker)
FakeRocket543
ac23525
fix(jobs): 同案 queued/running 去重(連按不再塞爆佇列);mock 頁 header 常駐 A/B 切換
FakeRocket543
17f6bee
feat(adjust): 改圖上主標並重出新版本;headline 未變則不重繪(rendered:false 顯示實情)
FakeRocket543
434c8f3
feat(style): 文章風格 4→8(政策解讀/產業供應鏈/投資理財/人物專訪);版型/風格/色系統一對齊+選中說明+色票圓點
FakeRocket543
30e67db
feat(thread): 討論/修改 改圖上主標並重出新版本(LLM 回 JSON;純文字退回只改 caption 且回 rendered:false)
FakeRocket543
fb1bfe7
merge: ui-doc-handoff(交付文件/skills/Google Fonts bootstrap);衝突保留本機新版 service/mock
felix
e4ed70f
fix(ui): 討論/修改 不再依賴 #thread-note(分頁後只在討論頁存在,導致抽屜不開)
FakeRocket543
58404e0
feat(ui): 主區分頁(素材/文案/Hashtags/討論)+右側討論抽屜(取代捲到頁尾)
FakeRocket543
70b6601
mock(ui): 補上並排 A+B 按鈕
FakeRocket543
818d100
mock(ui): 增加並排 A+B 選項
FakeRocket543
3a411d5
mock(docs): FAQ 表格改為 HTML table
FakeRocket543
11fa397
env: Google Fonts bootstrap — 任何人本機可一鍵架起
FakeRocket543
變更內容
- 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 檔
840cf30
mock(ui): 進站先選 A/B(可切換/看全部)
FakeRocket543
fa8425a
mock: ui-doc-handoff 交付文件預覽頁(使用說明/流程/說明書/簡報)
FakeRocket543
63d17a4
fix(dedupe): merge_cases 缺 import shutil(合併時 NameError)
FakeRocket543
3d2df14
fix(dedupe): merge_cases 包 transaction(失敗回滾)+沿用 drop 的主題色
FakeRocket543
213a01d
feat(dedupe): merge-cases 合併重複案(搬材料/版本/討論/steps、改寫檔名、刪 drop)
FakeRocket543
2783968
feat(dedupe): merge-cases 合併重複案(搬材料/版本/討論/steps、改寫檔名、刪 drop)
FakeRocket543
0b8f8f5
fix(ui): 從 #/help 點案件改走 #/ 路由(原本 view=help 導致主區不更新)
FakeRocket543
67c33bf
polish(help): 說明頁註明以線上為準;生成 FAQ 改為會自動更新
FakeRocket543
56ec474
fix(ui): #/help 也渲染左列清單;頁首文案改「正方形素材 + 直式素材」
FakeRocket543
5b00f2e
feat(ui): 新增 #/help 使用流程頁(五步/名詞/FAQ)與左列入口
FakeRocket543
3005049
mock: UI 方案 A/B/C 對照頁
FakeRocket543
9624651
mock: UI 方案 A/B/C 對照頁
FakeRocket543
99d6bfe
docs: 前端交接需求(給下一位 agent 的獨立規格)
FakeRocket543
6df94a7
docs: v5 交付文件、英文 skill 包與前端空態 Contact
FakeRocket543
變更內容
- 前端:素材案窗可收合、區段間距、錯誤訊息改為聯絡信箱
- 新增 README/流程圖/使用說明/作品說明書草稿/12頁簡報 HTML
- 新增英文 skill 包(含精確 pixel specs 與 worked example)
- nginx-v5-auth.conf 收斂為僅 basic auth(未套用)
41a2f75
docs: URL 正規化、重複案件與 ops CLI
FakeRocket543
25c62f2
feat(ops): /api/v1/duplicates 與 python3 -m app.cli(dedupe-report/reindex/backfill-*)
FakeRocket543
05d6f10
fix(dedupe): 建案/爬蟲以去參數 URL 去重;新增 find_duplicate_cases 報告(不自動刪)
FakeRocket543
3d92382
fix(images): 配圖查詢容忍 URL 追蹤參數(hero/第二張/state 三處)
FakeRocket543
08f7251
docs: 色系 presets 與對比檢查
FakeRocket543
bfcbf14
fix(theme): 快路徑也寫入 cases.theme;/state 暴露 theme
FakeRocket543
a51fdd6
fix(theme): _reel_insight 未收 theme 參數(TypeError)
FakeRocket543
63c536b
feat(theme): 色系 presets(原色/財經紅金/霧紫米)含 on_accent/on_highlight 與對比檢查;方圖變體與直式套用;UI 色系 chips;cases.theme
FakeRocket543
05818d4
docs: reviewer 六項發現與處置
FakeRocket543
8d555b4
fix(review): 輪詢失敗仍計時收尾(P1)、rebuild 重建實體(P2)、worker 例外不吞 job(P2)、實體 chips 清理與舊回應防護(P2)、WAL(P3)、api.main 補 recover(P3)
FakeRocket543
1962b8d
fix(jobs): 開機把殘留 queued/running 標為 error(程序重啟不假裝在跑)
FakeRocket543
0f261b0
docs: 日期篩選、jobs、實體抽取
FakeRocket543
b607412
fix(entities): repo 別名檔納入 loader、組織前綴上限8字+停用詞過濾(台積電美國布局/國泰金領軍三金控不再誤抓)
FakeRocket543
afac29e
fix(entities): 別名檔進 repo(27 家)、收窄組織後綴避免『台積電美國布局』這類過度擷取
FakeRocket543
c06ba41
feat(entities): 實體抽取模組整合(生成即索引)、/api/v1/entities 建議與共現、搜尋列實體 chips
FakeRocket543
3cb25c6
fix(jobs): GET /api/v1/jobs/<id> 誤放在 do_POST → 移到 do_GET
FakeRocket543
d84c5d6
feat(jobs): generate 非同步化(jobs 表+單 worker+輪詢);前端改 POST async 並輪詢狀態
FakeRocket543
0f70aba
fix(ui): 日期快捷改用本地時區組字串(UTC toISOString 在 +08 會差一天)
FakeRocket543
e9c9fd0
feat(search): 日期區間篩選(API from/to + 左列日期選擇器與快捷);LLM 合約測試 7 項;store.DB_PATH 動態化;nginx 認證片段(未套用)
FakeRocket543
b29384c
fix(ui): route() 的 renderThreadCtx 傳入未定義變數 c → 改 curCase()(每次換頁 ReferenceError)
FakeRocket543
8f433e7
fix(thread): 送出改用結構化 threadCtx.kind(lead 定向改寫),不再固定送 square
FakeRocket543
5871a8f
feat(thread): 討論區結構化上下文(對象 chips+摘要),不再把文案/URL 倒進輸入框;支援導語 lead_id 定向改寫
FakeRocket543
c2b2b06
polish(ui): 正方形卡移除重複的『提出調整』(文案旁已有討論/修改),與直式素材操作列一致
FakeRocket543
af7ebe9
docs: 快取版號自動化與切案狀態驗證
FakeRocket543
7eb0361
fix(web): index.html 版本字串改用 JS/CSS mtime 自動產生(避免改前端忘遞增被 CF 快取)
FakeRocket543
69492e3
fix: CTA 品牌重複移除、素色幕補頁尾品牌、移除舊 CTA 實作;搜尋 total/多詞交集、搜尋結果切案共用 selectCase
FakeRocket543
a6c3ff8
docs: 直式素材、討論修正、FTS/向量檢索
FakeRocket543
6089a0c
fix(search): 融合結果改 dict 並補 date_hint/snip 欄位(IndexError)
FakeRocket543
25740bf
feat(search): 本機 BGE-small-zh ONNX 向量索引(embeddings 表)+ FTS 混合 RRF;模型缺檔自動退回關鍵字
FakeRocket543
f4f68c1
fix(web): 靜態資產加版本查詢字串與 no-cache(CF 邊緣快取導致 app.js 更新不生效)
FakeRocket543
db1efe9
fix(ui): 討論/修改 會先展開討論區並聚焦(原本收合導致看似無反應);reels 改名直式素材、加下載這幕/下載全部與正方形對齊
FakeRocket543
1b204fe
feat(search): FTS5(trigram) 案件索引 + LIKE 短查詢 + 篩選 API,rail 搜尋框與片段高亮;素材/討論寫入即重索引
FakeRocket543
070d408
feat(reels): 角色驅動四幕(鉤子/證據大數字/轉折第二圖/CTA圖+面板)+第二張圖+prompt 角色約定
FakeRocket543
2509c34
docs: reels 單張預覽、文案討論/複製
FakeRocket543
2f397d6
feat(ui): 導語與方圖/reels 社群文案加「複製」(含連結,clipboard+fallback)
FakeRocket543
3e938da
feat: 社群文案(方圖/reels)加「討論/修改」帶入文案;adjust_thread 支援 kind,reels 文案改寫會回寫 reel 材料
FakeRocket543
94c4f0f
feat(ui): reels 改單張預覽+幕次 chips(1/4…4/4),與方圖變體同一操作語彙
FakeRocket543
51b8d02
docs: 補記建議/繁化/建議列小修
FakeRocket543
cd96123
fix: 建議分數封頂/唯一命中/完整詞加權;原文本『臺』不被改寫;建議列防切案與只覆寫未選維度;修回 fix_payload(26 tests)
FakeRocket543
6fa71d2
chore: 移除未使用 icon helper;報告補墨跡排版與識別收斂
FakeRocket543
1dfa817
fix(square/reels): 墨跡 bbox 排版(Noto 字面重心偏下)+底部對齊(CTA 上方 36/底距 56)+移除品牌 icon(與 logo 重複,二選一留書法 logo)
FakeRocket543
81ff392
docs: 簡體字 linter 與自動建議
FakeRocket543
c95d16a
feat: 簡體字 linter/修正(app/zhtw.py,只動文案欄位、保留台股寫法)+ 版型/風格自動建議(app/recommend.py + /api/v1/recommend + UI 一鍵套用)+ tests
FakeRocket543
7ce5c6c
chore: SQ_VARIANTS 補 text-template;報告補 paper/template production 實證
FakeRocket543
52db926
docs: 數字+單位斷句修正與變體標籤
FakeRocket543
6fea447
fix: 數字+單位+量詞視為原子(62.8萬宅不再斷成 62.8/萬宅年增);換行支援可選 jieba;only=square 走既有文案快路徑
FakeRocket543
45d6c4b
docs: 快路徑與 logo 自適應補記
FakeRocket543
d141a04
perf/fix: only=reel|hashtag 走既有材料快路徑(不問 LLM、不動案件版型/文案);未生成的 kind 回 None;CTA 水印與其餘 logo 全走明度自適應;移除固定 dark 的舊 _brand
FakeRocket543
5d533d8
docs: reels 版面、logo 自適應、hashtag 與三種版本分離
FakeRocket543
62ef01f
fix(reels): 帶高依照片解析度動態上限(1.6x),小圖不再整幕退素色
FakeRocket543
46f2887
fix(ui): 版本列在 renderMain 內誤用 oldV → selSqVer(主區整塊渲染失敗)
FakeRocket543
f45256a
feat(reels): 照片 70%、kicker、頁尾 logo、字級放大、壓條滿版無接縫;bar 幕補頁尾
FakeRocket543
1c63061
feat: hashtag 材料與獨立版本(手動編輯存新版)+ 方圖/reels/hashtag 版本歷史分離 + logo 依位置明度自動選白/紅版 + reels 版面(照片 70%、kicker、頁尾 logo、字級放大)
FakeRocket543
32c1728
docs: 補記六式 icon 與小圖跳過規則
FakeRocket543
90c7633
fix(square): 六式帶圖版補品牌 icon;小圖一律跳過帶圖(與 band 同規則,不再落 letterbox)
FakeRocket543
67daff3
docs+feat: lower-third 六式(帶高32/單行縮字/亮度自動排序)上線報告
FakeRocket543
2a8c2fa
feat(square): lower-third 六式變體(白帶/黑帶/黑漸層/白漸層/霧面/上下圖文),影像 65-74%
FakeRocket543
變更內容
- 依照片亮度自動排序(亮圖白帶先行、暗圖黑帶先行)
- 標題單行優先:96→58 逐級縮字,超過才兩行
- 漸層單一 ramp 接實色(無分段硬邊),壓圖 kicker 加底片
- 帶高 32%、頁尾預留 84px(CTA 左/logo 右)
fb741ce
docs: 補列已知欠債(導語送出仍走 adjust-sq、舊版變體 404、小圖降級、OG 切題)
FakeRocket543
094e012
docs: 補記導語區 flex 版面修復
FakeRocket543
d2dffc6
fix(ui): 導語區被 flex 擠成 116px — mat-body 允許換行、leadbox 獨佔一列
FakeRocket543
840e156
docs: 自我 E2E 與三路審查報告(含修復與已知限制)
FakeRocket543
2ab1802
fix(copy): 清掉內文版型污染(開頭破片/結尾 script)、末幕 sub 契約強制、prompt 禁止外推框架與升級語氣、materials_log 開機補登
FakeRocket543
0f58be8
mock: 按鈕改「討論/修改」(使用者定名)
FakeRocket543
c54f1fe
fix(ui): 切案後版型跟案件自己的 template(原本回預設,重生成會用錯版型)
FakeRocket543
a7eaa66
feat: 品牌資產(經濟日報 logo/icon 轉 SVG)+ 方圖四變體(明暗×純文字/帶圖·標題壓圖)+ OG 主圖優先 + 導語三案與討論/修改
FakeRocket543
變更內容
- 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 亦產三案不重複
34fc90b
feat(api): /mock-*.html 白名單靜態路由(設計稿給使用者看)
FakeRocket543
bdfcb88
mock: 方圖變體(明暗×純文字/帶圖/壓字/圖標分欄)+ 導語三案與即按即討論
FakeRocket543
c1f801d
polish(ui): 版型卡 desc 固定兩行,五卡等高
FakeRocket543
a1e12f4
fix(reels): 視覺審查三阻擋 — 放大保護(>1.6x 退素色幕,不再糊圖/letterbox)、hero 改解析度優先、數字+單位不可分割且不留孤字
FakeRocket543
53dfceb
fix: review 四項 — pendingGen 補拉/排隊、重複網址先查、刷新頻道 15 分鐘逾時
FakeRocket543
ecde1de
polish(reels): CTA 頁尾細線成組、淡印縮小柔化
FakeRocket543
81e22aa
fix(reels): 壓條幕/上下圖文幕一律禁用 letterbox(橫幅照填滿區帶、裁兩側)
FakeRocket543
85c97c1
fix(fallback): 樣板文案改語意斷句(不再從句中硬切);LLM max_tokens 16k 防推理燒光預算
FakeRocket543
4ba1b37
fix(reels): 橫幅首幕改帶狀構圖(16:9 不再被模糊填底成細條)+ 首幕品牌行 + CTA 淡化印;末幕 sub 由 prompt 留空避免與頁尾重複
FakeRocket543
c057551
fix: 手動生成帶版型/風格進建案;refreshState 失敗仍跳轉;api 加逾時
FakeRocket543
變更內容
- submitNew 送 template_id/style_id,後端 create_case 落庫(不再掉回預設)
- refreshState 失敗不再把按鈕永久釘在「建案中…」,照樣跳主頁重拉
- api() AbortController 逾時保護
6375f90
docs: 最終輪完稿 - 獨立頁/預覽卡/風格維度/URL-only 修復
FakeRocket543
d71bb03
feat: 手動生成獨立頁+URL驅動+版型預覽卡+文章風格晶片
FakeRocket543
變更內容
- #/new hash 路由獨立頁:URL 最上最大,標題/內文折疊進階
- 版型五張 CSS 即時預覽卡(配色對齊 compose.py)+desc 風格說明
- 文章風格四晶片:財經媒體/重大訊息/休閒民生/科技新知,與版型正交
- 修 URL-only 合約矛盾:blocker 指正——api 放行 url 或 title 擇一,
  create_case 空題自動抓文取題/內文/配圖(同 HTML 重用),實證 PASS
5fdc2f1
feat: 文章風格維度(與版型正交)- 財經媒體/重大訊息/休閒民生/科技新知
FakeRocket543
變更內容
- style 管文案口吻(寫進 LLM prompt),template 管視覺構圖
- cases.style 欄+migration;state 暴露 styles[];generate 收 style_id
- 預設 st-fin 財經媒體;組合式:版型x風格=20 種產出
fda1eea
feat: cover/blur-pad 比例分流 - 裁切損失≥45% 改全圖保留+模糊填底(advisory 指正,最佳呈現另一半)
FakeRocket543
c808d96
docs: 追加輪記錄(除名/比例裁切/置中)
FakeRocket543
f93b244
feat: 比例感知裁切 - 直向裁切焦點上移38%(人物保頭),全景>2.2維持中央
FakeRocket543
變更內容
onnx 兩平台皆缺依使用者指示不裝,輕量啟發式頂替
516b59d
fix: 快訊版文字區垂直置中(短標題中段大留白)
FakeRocket543
5d85a1f
feat: webui 換圖選單/版本歷史 chips/五版型按鈕/模型名除名
FakeRocket543
變更內容
- 配圖縮圖條:自動預設/點選切換/再點取消,生成帶 image_file
- 版本 chips:降序最新高亮,點舊版回看該版素材檔
- gen-channel 模型名除名:統一「生成:AI · 正常」(使用者要求)
- 五版型按鈕 data-driven,預設 tpl-summary
dfe3d59
docs: 增量報告驗證節+deploy 事故記錄
FakeRocket543
f9bbe1e
feat: 五版型視覺構圖+reels 全版型配圖(designer slice)
FakeRocket543
變更內容
- tpl-summary 紙感純文字/tpl-news 白底青帶/tpl-story 滿版壓字/tpl-data 大數字琥珀/tpl-quote 深青金句
- reels 全版型結合 hero:首幕滿版壓暗/偶數幕上圖下文/奇數幕壓條/末幕 CTA 色塊
- 確定性輸出,未知 template_id 向後相容落 tpl-news
d335904
deploy: 一次性配圖回填步驟(冪等)
FakeRocket543
9a51485
feat: 配圖整合根修+五版型文案層+素材版本歷史/換圖後端
FakeRocket543
變更內容
- 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 綠
e2934c5
fix: LLM 呼叫序改 key-first HTTP 優先 — oci CLI auth 已死,每次生成白燒 5s 快敗(reviewer 指正)
FakeRocket543
2d31cb4
docs: REPORT-v5-rebuild 完稿 — 驗證證據/限制/根因記錄
FakeRocket543
3529418
fix: 方圖三瑕疵 — band 去重/» 代 ▸ 豆腐/hero 430 版面平衡
FakeRocket543
7c90745
fix: store.connect 建 data 父目錄(fresh clone deploy 必踩)
FakeRocket543
81c35e0
feat: v5 後端全鏈 — 生成入口唯一/LLM 通道根因修復/合成+版型/真接線前端/deploy
FakeRocket543
變更內容
- 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
3d87971
docs: v5 重構計畫與 API 合約
FakeRocket543
454b67f
feat: MVP 前端 mock — 自動/手動雙路線,方圖+reels+文案,生成入口單一、通道可視
FakeRocket543