From 1e3bd9835d153eb1dab7b81d2c7ac975a2c279fb Mon Sep 17 00:00:00 2001 From: ymq Date: Sun, 23 Aug 2026 10:32:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20TOOL=5FSCHEMAS=20=E8=A1=A5=20confirm=5F?= =?UTF-8?q?bug/reject=5Fbug/reopen=5Fbug=20=E4=B8=89=E4=B8=AA=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=20schema?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bug_capability.py 已有这三个函数,但 TOOL_SCHEMAS 缺 schema,导致 PM 无法确认/驳回/重开 Bug, bug 闭环断在 open→confirmed 第一步。补 schema 后 PM 可通过 bug_confirm_capability 拿到工具。 --- pipeline_service/capability_tools.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pipeline_service/capability_tools.py b/pipeline_service/capability_tools.py index 2cc07d7..9d03850 100644 --- a/pipeline_service/capability_tools.py +++ b/pipeline_service/capability_tools.py @@ -163,6 +163,24 @@ TOOL_SCHEMAS = { "params": {"bug_id": "Bug ID"}, "required": ["bug_id"], }, + "confirm_bug": { + "module": "bug_capability", + "description": "确认 Bug:open → confirmed(确认缺陷有效,准备派发修复)", + "params": {"bug_id": "Bug ID"}, + "required": ["bug_id"], + }, + "reject_bug": { + "module": "bug_capability", + "description": "驳回 Bug:open/confirmed → rejected(附驳回原因,如误报/重复/非缺陷)", + "params": {"bug_id": "Bug ID", "comment": "驳回原因"}, + "required": ["bug_id"], + }, + "reopen_bug": { + "module": "bug_capability", + "description": "重开 Bug:closed/rejected → open(复测未通过或驳回后重新处理)", + "params": {"bug_id": "Bug ID", "comment": "重开原因(可选)"}, + "required": ["bug_id"], + }, # ── deploy_capability ── "configure_env": { "module": "deploy_capability",