feat(agent):重构智能体仓库并优化任务模板交互
-为 public/agent.json 中的每个智能体添加 Classification 字段以支持分类展示 - 新增 AgentRepoList 组件用于渲染智能体列表,提升代码复用性 - 在 src/layout/components/Main/TaskTemplate/AgentRepo/index.vue 中实现基于 Classification 的智能体分组展示逻辑- 移除旧版 popover 方式展示智能体详情,改用新的列表组件统一处理 - 修改任务搜索输入框为 textarea 类型,并优化其聚焦与失焦状态下的样式表现 - 调整任务模板页面布局高度计算方式,确保适配新 UI 结构 -修复任务结果流程图连线方向及透明度判断逻辑,增强可视化准确性- 引入流动动画效果至 jsPlumb 连线,区分 input/output 类型并美化视觉呈现 - 更新配置文件中部分动作类型的配色值,提高界面美观度 - 升级本地存储键名 agents 至 agents-v1,避免
This commit is contained in:
@@ -11,6 +11,7 @@ export interface Agent {
|
||||
Name: string
|
||||
Profile: string
|
||||
Icon: string
|
||||
Classification: string
|
||||
}
|
||||
|
||||
type HslColorVector = [number, number, number]
|
||||
@@ -50,7 +51,7 @@ export interface IRawPlanResponse {
|
||||
}
|
||||
|
||||
export const useAgentsStore = defineStore('counter', () => {
|
||||
const agents = useStorage<Agent[]>('agents', [])
|
||||
const agents = useStorage<Agent[]>('agents-v1', [])
|
||||
function setAgents(agent: Agent[]) {
|
||||
agents.value = agent
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user