Releases: luyishui/clapback
Releases · luyishui/clapback
v0.1.4
release: v0.1.4 ## Bug Fixes ### Bug 1: Intent misinterpreted as attack target (P0) - generation.ts: Clarified prompt constraint — intent = attack strategy/direction, not the thing to attack. Replaced ambiguous '攻击焦点必须从用户意图中选择' with explicit constraint across all 4 prompt paths - commentAgentPrompts.ts: Applied same constraint to execute prompt in the comment agent pipeline ### Bug 2: Ammo boxes not mounting / not clickable (P1) - zhihuAdapter.ts / weiboAdapter.ts / xiaohongshuAdapter.ts / globalTrigger.ts: Changed all 4 adapters from fire-and-forget to async await pre-load; ammo/skill data now loaded before buildPanel, checkboxes immediately visible ### Bug 3: Floating ball opens duplicate panels instead of toggling (P1) - globalTrigger.ts: Unified selector from .clapback-global-panel to .clapback-panel so per-comment panels are detected and removed; added globalPanelOpening boolean guard to prevent async race double-opening ## Feature - Default target word count changed from 20 to 50 characters (lengthConstraints.ts) ## Test Updates - App.test.tsx: Mock tryout reply lengthened to pass minChars=30 bound at target=50 - All adapter tests: Added await vi.waitFor after async trigger clicks - All length-dependent assertions updated from 20 to 50
v0.1.3
fix: 添加 Linux 平台 rollup 依赖修复构建失败