diff --git a/src/agentkit/server/frontend/src/api/skills.ts b/src/agentkit/server/frontend/src/api/skills.ts index 6586b42..9451000 100644 --- a/src/agentkit/server/frontend/src/api/skills.ts +++ b/src/agentkit/server/frontend/src/api/skills.ts @@ -13,11 +13,11 @@ export interface ISkillInfo { capabilities: string[] dependencies: string[] status: string - /** "agent_template" = 通用执行引擎 (react/direct/rewoo/...); "business_skill" = 业务领域技能 */ - category: SkillCategory - agent_type: string - execution_mode: string - task_mode: string + /** "agent_template" = 通用执行引擎 (react/direct/rewoo/...); "business_skill" = 业务领域技能. Optional for backward compat during rollout. */ + category?: SkillCategory + agent_type?: string + execution_mode?: string + task_mode?: string } export interface ISkillDetail { @@ -28,10 +28,10 @@ export interface ISkillDetail { dependencies: string[] config: Record health_status: string - category: SkillCategory - agent_type: string - execution_mode: string - task_mode: string + category?: SkillCategory + agent_type?: string + execution_mode?: string + task_mode?: string } export interface ICapabilityInfo { diff --git a/src/agentkit/server/frontend/src/components/layout/tabs/SkillsTab.vue b/src/agentkit/server/frontend/src/components/layout/tabs/SkillsTab.vue index 7f41deb..a0ca3e4 100644 --- a/src/agentkit/server/frontend/src/components/layout/tabs/SkillsTab.vue +++ b/src/agentkit/server/frontend/src/components/layout/tabs/SkillsTab.vue @@ -20,11 +20,19 @@ v-for="skill in skillsStore.skills" :key="skill.name" class="skills-tab__item" + :class="`skills-tab__item--${skill.category || 'business_skill'}`" @click="openSkill(skill.name)" >
- + {{ skill.name }} + + {{ isEngine(skill) ? '引擎' : '技能' }} +

{{ skill.description || '暂无描述' }}

- + {{ cap }} @@ -53,13 +61,22 @@