fischer-agentkit/tests/unit/server
chiguyong a672dddc9a
Deploy to Production / deploy (push) Waiting to run Details
feat(skills): distinguish agent templates from business skills in UI
The skills tab mixed generic execution-engine templates (react/direct/
rewoo/...) with business-domain skills (monitor/geo_optimizer/...) with
no visual or data distinction. Adds a derived `category` field to the
SkillInfo/SkillDetail API models and groups the frontend display.

Backend:
- SkillInfo/SkillDetail: add category (Literal), agent_type, execution_mode,
  task_mode fields
- _skill_to_info: derive category from explicit _ENGINE_TEMPLATE_NAMES set
  (not name suffix — trend_agent/deai_agent are business skills despite
  the _agent suffix)
- Simplify repetitive hasattr pattern with getattr

Frontend:
- ISkillInfo/ISkillDetail: add category + mode fields
- skills store: agentTemplates/businessSkills computed getters
  (businessSkills is defensive: anything not explicitly engine template)
- SkillsView: group into 执行引擎 / 业务技能 sections with counts
- SkillCard: type badge (引擎/技能), category-based icon, mode display,
  dark-mode-aware accent color

Tests:
- test_category_derived_from_name_suffix: verifies field exposure
- test_category_no_orphans: invariant — every skill has a valid category
- test_trend_agent_classified_as_business_skill: regression guard for
  the _agent suffix misclassification bug

Code review (ce-code-review): 2 P1 + 5 P2 findings applied.
2026-06-23 15:55:59 +08:00
..
__init__.py fix: resolve code review issues from deferred improvements 2026-06-11 13:49:02 +08:00
test_atomic_write.py fix(review): U3 atomic file writes for YAML + .env + skill config 2026-06-22 17:03:27 +08:00
test_chat_team.py feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
test_event_queue_integration.py feat: integrate SQ/EQ into portal WebSocket and CLI (Phase 4) 2026-06-17 11:05:04 +08:00
test_evolution_dashboard.py feat: frontend productization with code review fixes 2026-06-13 01:29:58 +08:00
test_kb_management.py feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
test_portal_routes.py feat: SQLite persistence, verification loop, spec-driven execution 2026-06-17 10:45:20 +08:00
test_portal_ws_background.py fix: WebSocket task persistence three-layer defense with security hardening 2026-06-17 22:11:51 +08:00
test_settings_routes.py feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
test_skill_management.py feat(skills): distinguish agent templates from business skills in UI 2026-06-23 15:55:59 +08:00
test_terminal_routes.py feat: 企业级客户端-服务端架构 + 代码审查修复 2026-06-20 06:48:18 +08:00
test_workflow_routes.py feat: frontend productization with code review fixes 2026-06-13 01:29:58 +08:00