Commit Graph
30 Commits
Author SHA1 Message Date
yokowu b98377b371 功能:支持 OhMyAgent 独立代理密钥与提示词校验 2026-07-31 15:57:48 +08:00
xmv97andClaude Opus 4.7 2e74472cde feat(migration): add tasks.skill_ids/plugin_ids columns
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-20 11:29:31 +08:00
xmv97andClaude Opus 4.7 0baf1a7102 fix(migration): 补软删过滤,避免唯一索引阻塞重建同名资源
agent_skills / agent_plugins 的 (repo_id, name) 唯一索引未带
is_deleted 过滤,mcp_tools 的两个 partial unique 也未带
deleted_at IS NULL,导致软删旧资源后重建/上传同名资源会撞
unique constraint。统一改为 partial unique。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-23 11:07:55 +00:00
yokowu 0e2da1cdff feat: 记录规则扩展包来源 2026-06-22 15:33:08 +08:00
yokowu ae2aad677b feat: 增加团队 MCP 数据模型 2026-06-17 17:27:00 +08:00
xmv97andClaude Opus 4.6 db7943ba4c feat(agent-resources): three-tier skill/plugin architecture with team-admin CRUD
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-06-17 06:13:09 +00:00
yokowu 61db5dda86 功能:支持团队扩展包导入 2026-06-16 18:49:49 +08:00
yokowu f51b183ed5 feat: 添加团队任务并发数配置持久化 2026-06-15 18:53:55 +08:00
yokowu 9aa280fb83 feat: 补齐团队 Skills 后端存储逻辑 2026-06-12 19:37:38 +08:00
yokowu 973ba6b401 feat: 新增团队 OIDC 企业登录 2026-06-10 19:12:54 +08:00
LydiaCai1203 c15082cce3 feat: support codeup && cnb && atomgit 2026-06-10 16:32:19 +08:00
yokowu 50194afb40 fix(clickhouse): 统一模型用量表时间字段时区 2026-06-08 10:39:39 +08:00
yokowu c8e155d0e4 feat: 增加团队任务开发环境空闲策略字段 2026-06-05 19:08:08 +08:00
Yoko b70a136111 feat: 新增团队管理概览 Dashboard (#645)
* feat: 新增团队管理Dashboard接口

* chore: 更新团队管理Dashboard接口定义

* feat: 新增团队管理Dashboard页面

* fix: 修复Dashboard平均耗时PostgreSQL兼容性

* fix: 修复Dashboard Token消耗统计口径

* feat: 新增模型消耗ClickHouse表和读写接口

* feat: 增加模型缓存Token解析和消耗记录器

* feat: Dashboard消耗统计改读ClickHouse

* feat: 增加模型消耗历史回填能力

* refactor: 移除模型消耗历史回填逻辑

* refactor: 拆分ClickHouse迁移DDL目录
2026-06-05 11:38:45 +08:00
YokoandLydiaCai1203 7da36023cd fix: migration 确实 is_hidden 字段 (#644)
Co-authored-by: LydiaCai1203 <1125862926@qq.com>
2026-06-02 20:18:41 +08:00
twurscandLydiaCai1203 cc28479493 Feat models add field (#643)
* feat: 模型配置支持配置多模态

* feat: models add is_hidden field

---------

Co-authored-by: LydiaCai1203 <1125862926@qq.com>
2026-06-02 19:59:51 +08:00
Yoko b4135f9609 feat: 使用 expired_at 管理虚拟机过期时间 (#623) 2026-05-28 18:35:27 +08:00
LydiaCai1203 13912ce331 feat: 支持 wechat msg push 2026-05-26 18:10:55 +08:00
yokowu 8e5fb37d56 refactor: 重写后端数据库迁移 2026-05-11 15:52:31 +08:00
yokowu d1417f39c5 feat(tasklog): 新增 ClickHouse 日志访问层 2026-04-29 11:35:22 +08:00
yokowu fa70435e9d feat: 支持任务运行中切换模型 2026-04-28 19:33:21 +08:00
yokowu 2211849571 feat(task): 增加任务最近活跃时间 2026-04-21 18:53:14 +08:00
yokowuandClaude Opus 4.6 f7dd05aeb3 feat: 添加任务 token 用量统计数据层
新增 task_usage_stats 表及对应的 Ent Schema,实现 Stat/StatByIDs
repo 方法的真实数据库查询,替换原有的空实现。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 19:20:41 +08:00
yokowu df87284bc3 feat: 实现开发环境空闲休眠与回收机制
替换原有 TTL 过期机制,改为基于空闲检测的自动管理策略:
- 10 分钟无 TaskStream 交互 → 休眠开发环境
- 7 天无活动 → 回收开发环境(完全删除)
- 回收前 1 小时通知用户

主要改动:
- 新增三个 Redis DelayQueue(sleep/notify/recycle)管理空闲计时器
- taskflow 侧 TaskStream 消息时通过 EventReport 上报活跃
- MonkeyCode 侧接收回调并刷新计时器(含 30s 去抖)
- VM 交互(终端连接、端口申请等)时刷新计时器
- 移除旧的 periodicEnqueueVm/vmexpireConsumer/FireExpiredVM 等 TTL 机制
2026-03-23 15:21:03 +08:00
yokowu 34320f9ed5 feat(phase6): 添加 gitbot/gittask 实体 schema 和 migration
- 新增 git_bots, git_bot_users, git_bot_tasks, project_git_bots 表
- 添加 user, host, project 到 gitbot 的关联边
- 使用 soft delete 和 created_at 游标
2026-03-19 18:14:53 +08:00
yokowu 5a9c686a49 feat(phase5): 添加 GitIdentity/Project/Git平台集成 2026-03-18 19:03:43 +08:00
yokowu 62a25fb389 feat(phase4): 添加 Task/Notify/TaskSummary 模块完整实现 2026-03-18 18:25:32 +08:00
yokowu c30c73aa93 feat: 添加 Host/VM ent schema 和数据库迁移
- ent/schema: host, virtualmachine, teamhost, teamgrouphost
- 修改 user/team/teamgroup/model schema 添加 host/vm edges
- migration/000003: hosts, virtualmachines, team_hosts, team_group_hosts 建表
2026-03-17 14:38:26 +08:00
yokowu d4aecca9db feat: 添加模型和镜像管理模块(Phase 2 迁移)
从内部项目迁移模型配置和镜像配置模块,包括个人用户设置和团队级管理,
涵盖完整 CRUD、健康检查、供应商模型列表、所有权模型和 Swagger 注释。

- Ent schema: model, image, team_model, team_image, team_group_model, team_group_image
- Domain 层: 接口、请求/响应类型、From 转换器
- Setting 模块: 个人模型/镜像 repo、usecase(代理重试、健康检查)、handler
- Team 模块: 团队模型/镜像 repo、usecase、handler(TeamAuth + 审计中间件)
- SQL 迁移: 000002_model_image up/down
2026-03-16 21:11:42 +08:00
yokowu a9f43bbfaa feat: 用户认证 + 团队管理 + 基础设施 2026-03-13 15:48:19 +08:00