|
Deploy to Production / deploy (push) Waiting to run
Details
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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_atomic_write.py | ||
| test_chat_team.py | ||
| test_event_queue_integration.py | ||
| test_evolution_dashboard.py | ||
| test_kb_management.py | ||
| test_portal_routes.py | ||
| test_portal_ws_background.py | ||
| test_settings_routes.py | ||
| test_skill_management.py | ||
| test_terminal_routes.py | ||
| test_workflow_routes.py | ||