@zeyue0329/xiaoma-cli 1.16.1-next.0 → 1.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@zeyue0329/xiaoma-cli",
4
- "version": "1.16.1-next.0",
4
+ "version": "1.17.0",
5
5
  "description": "XiaoMa Universal AI Agent Framework",
6
6
  "keywords": [
7
7
  "agile",
@@ -44,8 +44,39 @@ bug_list_file = "{implementation_artifacts}/bug-queue.md"
44
44
  # your defect platform (queue query, detail fetch, status write-back, scope
45
45
  # filter, data-verification tools). Contract and a complete MySQL-MCP example:
46
46
  # workflow.md appendix "Platform Spec Contract".
47
-
48
- platform_spec = ""
47
+ # Default below: the AI 测试平台 MySQL defect library. Override (or blank out)
48
+ # in {project-root}/_xiaoma/custom/xiaoma-bug-resolve.toml per project.
49
+
50
+ platform_spec = """
51
+ 缺陷平台:AI 测试平台,MySQL 缺陷库(库名 xiaoma_one_dev1),通过 `mcp__xiaoma-dev-mysql__mysql_query` 工具访问。
52
+ 表 `t_defect_info`;状态枚举 defect_status:0=新增, 1=已验证, 2=已修复, 3=非缺陷(误报);软删字段 is_del(0未删除,1已删除)。
53
+ 严重等级 severity:1=紧急, 2=高, 3=中, 4=低。缺陷类型 defect_type:前端 / 后端。
54
+
55
+ 批量必须按 scope 过滤(scope is REQUIRED):每条 SELECT/UPDATE/COUNT 都必须携带 AND jira_id = '<scope>'(JIRA 项目号,如 GYLPJ-1153)。缺少 scope 时调度器必须 HALT。
56
+
57
+ 队列查询(待处理,最旧优先):
58
+ SELECT defect_id, title, severity, defect_type, module_path, discover_time
59
+ FROM t_defect_info
60
+ WHERE is_del = 0 AND defect_status = 0 AND jira_id = '<scope>'
61
+ ORDER BY create_time ASC;
62
+
63
+ 队列统计:
64
+ SELECT defect_status, COUNT(*) AS cnt
65
+ FROM t_defect_info
66
+ WHERE is_del = 0 AND jira_id = '<scope>'
67
+ GROUP BY defect_status;
68
+ (pending = defect_status=0 的条数;fixed = 2;false-positive = 3)
69
+
70
+ 详情拉取(按缺陷 ID):
71
+ SELECT * FROM t_defect_info WHERE defect_id = '<id>' AND is_del = 0;
72
+ 关键字段:title(缺陷描述), steps(重现步骤), error_front(前端错误日志), error_apis(接口报错信息), url(页面URL), module_path(所属模块), severity(严重等级), defect_type(前端/后端)。
73
+
74
+ 状态写回(写回后须重新 SELECT 确认):
75
+ 已修复: UPDATE t_defect_info SET defect_status = 2, update_time = NOW() WHERE defect_id = '<id>' AND jira_id = '<scope>' AND is_del = 0;
76
+ 误报: UPDATE t_defect_info SET defect_status = 3, update_time = NOW() WHERE defect_id = '<id>' AND jira_id = '<scope>' AND is_del = 0;
77
+
78
+ 数据验证:业务数据用本项目 Oracle 库验证,工具 `mcp__oracle_zqyl_pj_incentive_test4__execute_query`(schema ZQYL_PJ_INCENTIVE_TEST4),用于复现/验证查询逻辑与数据正确性。
79
+ """
49
80
 
50
81
  # Frontend base URL for browser-automation verification of interaction bugs.
51
82
  # Can also be passed per-run as a `testUrl=...` arg. Empty = ask when needed.