19 lines
535 B
TypeScript
19 lines
535 B
TypeScript
export type SkillDisplayInfo = {
|
|
name: string;
|
|
description: string;
|
|
};
|
|
|
|
const SKILL_DISPLAY_BY_ID: Record<string, SkillDisplayInfo> = {
|
|
'agent-browser': {
|
|
name: '开发浏览器',
|
|
description: '打开、查看或调试本地及公网网页,读取 Console、Network、DOM 和样式信息。',
|
|
},
|
|
};
|
|
|
|
export function getSkillDisplayInfo(skillId: string): SkillDisplayInfo {
|
|
return SKILL_DISPLAY_BY_ID[skillId] ?? {
|
|
name: '自定义技能',
|
|
description: '用于扩展伙伴能力的自定义工具。',
|
|
};
|
|
}
|