feat(agent-resources): Agent 资源 (Rules / Skills / Plugin) 的分级配置#705
Merged
Conversation
…-admin CRUD Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
7fe1264 to
db7943b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
引入 Agent 资源(Rules / Skills / Plugins)三级 scope 架构(global → team → user),支持团队管理员通过现有团队后台上传私有 Skill,并在用户创建任务时按 scope 优先级下发到 codingmatrix agent。
架构
主要改动
存储层
000019_agent_resources: 建 agent_rules/skills/plugins + repos + versions + sync_jobs + group_bindings,一步到位含三级 scope CHECK + bare source_type + enabled/admin_description/admin_tags/extension_package_id 列团队管理员 CRUD(
/api/v1/teams/skills/*,5 端点)TeamSkillUsecase.Add复用标准流程用户态查询(
/api/v1/skills、/api/v1/plugins)任务下发
getCodingConfigs走SkillRefsScoped/PluginRefsScoped,scope 感知 + enabled 过滤AgentResources.Skills[](JSON 对齐 protoagent.AgentResources_AssetRef)其他
pkg/oss: 新增PresignGet(按 full key 签发)+PutFile加入 ObjectStore 接口,同步实现 AliyunClient 用于维持线上环境存取 Aliyun OSS 的 bucket 的能力依赖