feat(agent): 支持自定义API配置并优化UI交互

- 为agent.json添加apiUrl、apiKey、apiModel字段支持
- 更新API接口类型定义,支持传递自定义API配置
- 优化AgentRepoList组件UI样式和交互效果
- 增强JSON文件上传校验逻辑,支持API配置验证
- 改进任务结果页面布局和视觉呈现
- 添加任务过程查看抽屉功能
- 实现执行按钮动态样式和悬停效果
- 优化节点连接线渲染逻辑和性能
This commit is contained in:
zhaoweijie
2025-12-15 20:46:54 +08:00
parent 6392301833
commit 77530c49f8
25 changed files with 2040 additions and 306 deletions

View File

@@ -38,7 +38,7 @@ export default defineConfig({
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
server: {
@@ -46,13 +46,13 @@ export default defineConfig({
'/api': {
changeOrigin: true,
// 接口地址
// target: 'http://82.157.183.212:21092',
target: 'http://localhost:8000',
rewrite: (path: string) =>
path.replace(/^\/api/, ''),
rewrite: (path: string) => path.replace(/^\/api/, ''),
configure: (proxy, options) => {
console.log('Proxy configured:', options)
}
},
},
},
}
},
})