Repository navigation
技能目录一键升级:为已安装员工重装技能并刷新环境变量 - #116
Merged
Merged
Conversation
- POST /api/admin/skills/{id}/upgrade(委员会/平台管理员):按上次成功安装的
环境组、用户配置与数据源为每个已安装员工排队重装;预设取最新值。
内部技能沿用原批准范围与安全约束,由操作人自动批准一次;
有待审申请、安装进行中、缺实例等情况跳过并返回原因。
- 安装任务对升级放宽申请人须为机器人管理员的限制(须为在职委员会成员)。
- 前端技能目录操作列加「升级」按钮,确认后提示提交数与跳过明细。
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
改动
技能目录页(/skills)每个技能的操作列新增「升级」按钮,为所有已安装该技能的 AI 员工重装最新版本,并重新计算、下发环境变量。
后端
POST /api/admin/skills/{skill_id}/upgrade,仅ai_committee/platform_admin可用;技能停用时返回 409。installed_at非空且未卸载)复用现有input_snapshot+queue排队skill_install,reinstall_code=True:queued/skipped及原因。inputs.upgrade)的申请人为在职委员会成员即可,不再要求是该机器人的管理员;其余校验不变。skill.upgrade(提交数 / 跳过数)。无数据库迁移。前端
SkillsView操作列加「升级」,二次确认;完成后提示提交数,跳过的员工逐个列出原因。中 / 日 / 英文案。测试
tests/api/test_bot_skills.py:内部技能在目录修订、预设轮换后,由非机器人管理员的委员会成员升级成功,范围与安全约束保留、环境变量刷新、批准人为升级人;重复点击时安装中的员工被跳过;成员 403、停用技能 409。web/tests/SkillsView.spec.ts:确认后才调用、跳过明细展示。pytest3013 passed;相关 vitest / eslint 通过。🤖 Generated with Claude Code