openpencil/apps/web/src/services
Fini db5fc9a4b0 fix(ai): expand Type 0 disqualifier so dashboard/admin/mobile prompts skip component
Why: Codex stop-time review #5 — broadening the component trigger list
from 17 to 25 nouns introduced false positives:
  "admin dashboard with metric tiles" → matched `tile` → Type 0 (400×0)
when the user clearly wants a desktop dashboard. Same for "design an
admin panel" / "workspace with charts" / Chinese 后台管理 + 卡片.

What: COMPONENT_DISQUALIFIER_RE gains three new keyword buckets in
addition to the existing screen / page / home / onboarding / flow:
  - mobile-screen markers — mobile, phone, ios, android, 手机, 移动端
  - workspace markers — dashboard, admin, workspace, console, 管理,
    后台, 控制台
  + zh-Hans 屏幕 (screen) was already added in C5.

These ensure component classification is reserved for "X card / X chip /
…" prompts that have no surrounding screen/dashboard/mobile context.
The dashboard / mobile prompts then continue down to their own explicit
detector branches and produce the right preset.

Tests: 7 new negative cases covering admin dashboards with tiles,
charts, panels, Chinese 后台 with 卡片, and mobile/phone prompts that
also mention card/badge. 1062 / 1062 AI tests pass (was 1055; +7).
2026-05-09 21:14:00 +08:00
..
__tests__ V0.7.0 (#95) 2026-04-11 23:25:13 +08:00
ai fix(ai): expand Type 0 disqualifier so dashboard/admin/mobile prompts skip component 2026-05-09 21:14:00 +08:00
figma V0.7.2-bugfix (#109) 2026-04-14 21:42:56 +08:00
git-client.ts V0.7.0 (#95) 2026-04-11 23:25:13 +08:00
git-error.ts V0.7.0 (#95) 2026-04-11 23:25:13 +08:00
git-types.ts V0.7.0 (#95) 2026-04-11 23:25:13 +08:00