bpmax-cli 0.2.1-beta.12 → 0.2.1-beta.15

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,6 +1,6 @@
1
1
  {
2
2
  "name": "bpmax-cli",
3
- "version": "0.2.1-beta.12",
3
+ "version": "0.2.1-beta.15",
4
4
  "description": "CLI for BPMAX environments with multi-profile config and local login callback flow",
5
5
  "type": "module",
6
6
  "bin": {
@@ -33,6 +33,35 @@ bpmax-cli init --agent <agent> --channel feishu --url "<BPMAX_URL>" --name local
33
33
  - 找到匹配业务 skill 后,先复制 `next_commands.bbs_list` 里的 `--config-dir` 前缀运行 `bpmax-cli --config-dir <config_dir> bbs ensure <skill-key> --agent <agent> --profile <profile> --format json`,再按该业务 skill 的规则执行。
34
34
  - 只有没有匹配 BBS,或 BBS 不覆盖当前需求时,才回落到通用 `bpmax-flow`、`bpmax-project` 或 `bpmax-api` 路径。
35
35
 
36
+ ## Issue 提报
37
+
38
+ 用户要求“提 issue”、“创建 GitLab issue”、“报 bug 到 bpmax-cli”或需要把当前问题沉淀到 bpmax-cli 仓库时,使用 `bpmax-cli issue create` 或语义别名 `bpmax-cli issue report`。
39
+
40
+ 如果工作中发现 bpmax-cli 自身的稳定问题,也可以自动创建 issue,不需要等用户再次下达“提 issue”:
41
+
42
+ - 适用:可复现的 bpmax-cli 缺陷、回归、缺失 typed capability、错误/误导性诊断、lint 漏检、危险默认行为、skill 与 CLI 能力不一致。
43
+ - 不适用:客户业务配置缺陷、环境临时波动、权限未授权、证据不足的猜测、只在本地脏工作区出现的问题。这些先写入本轮报告或任务书,除非用户明确要求提到 bpmax-cli。
44
+ - 自动提报前必须先写一份精简 issue 描述文件,包含:现象、复现命令或最小步骤、期望行为、实际行为、影响范围、已验证的排除项、建议修复方向。
45
+ - 正式创建前必须先执行 `bpmax-cli issue create ... --dry-run --format json`,检查标题、正文、标签、项目、assignee 和保密标记;dry-run 中不得包含 token、API Key、cookie、手机号、完整 raw payload、客户敏感数据或大段日志。
46
+ - dry-run 检查通过且问题稳定可复现时,再去掉 `--dry-run` 创建;创建成功后最终回复必须给出 `issue.web_url`。
47
+ - 如果证据还不完整,先保留本地 notes/report,不要为了“自动提报”制造低质量 issue。
48
+
49
+ 推荐流程:
50
+
51
+ ```bash
52
+ bpmax-cli issue create --title "<标题>" --description-file <file.md> --label bug --dry-run --format json
53
+ bpmax-cli issue create --title "<标题>" --description-file <file.md> --label bug --format json
54
+ ```
55
+
56
+ 规则:
57
+
58
+ - 默认 GitLab 地址是 `https://gitlab.yitaiyitai.com`,默认项目是 `bpmax/bpmax-cli`;跨项目时显式加 `--project <group/project>`。
59
+ - 复杂描述先写到临时 markdown 文件,再用 `--description-file <file>`,不要把长日志或多行正文塞进命令行参数。
60
+ - 涉及 assignee 时用 `--assignee-id <id>`,可重复或传逗号分隔;涉及保密问题时加 `--confidential`。
61
+ - 默认先跑 `--dry-run --format json` 核对标题、正文、标签、项目和 assignee;确认后再去掉 `--dry-run` 实际提交。
62
+ - 需要指定凭据来源时用 `--token-env <ENV_NAME>`;不要在命令行、skill、memory、issue 正文或日志里写入 token 原文。
63
+ - 创建成功后,最终回复必须包含 CLI 返回的 issue URL;`pretty` 输出会直接打印 URL,`json` 输出读取 `issue.web_url`。
64
+
36
65
  ## 路由规则
37
66
 
38
67
  - 环境配置、全局参数、命令发现、原始 API 降级:先读 `../bpmax-shared/SKILL.md`
@@ -49,6 +78,7 @@ bpmax-cli init --agent <agent> --channel feishu --url "<BPMAX_URL>" --name local
49
78
  - BPMAX Business Skills 查询、同步、安装、更新、卸载:读 `../bpmax-business-skill/SKILL.md`
50
79
  - AI 任务方案、任务书、任务拆解、subagent 分工、实施任务表、进度 CSV:读 `../bpmax-ai-taskbook/SKILL.md`
51
80
  - 审批矩阵、角色矩阵、矩阵规则记录、`matrix_owner`、`cc_matrix`、规则 seed、审批人映射:读 `../bpmax-approval-matrix/SKILL.md`
81
+ - bpmax-cli 自身问题提报、GitLab issue 创建:留在本 skill 的 “Issue 提报” 小节,使用 `bpmax-cli issue create/report`
52
82
 
53
83
  ## 规则
54
84
 
@@ -390,6 +390,8 @@ PYTHON_BIN=./venv/bin/python
390
390
  ### 5. 失败后的修复闭环
391
391
  - 修配置时,回到对应 skill,不在本 skill 里重复定义实现细节。
392
392
  - 修完后立刻复测当前失败场景,不要先跳去跑别的场景。
393
+ - 如果失败原因是 bpmax-cli、test-suite、E2E 命令、skill lint 或诊断文案自身的问题,而不是客户业务配置或运行态数据问题,按 [$bpmax-cli](../bpmax-cli/SKILL.md) 的 “Issue 提报” 规则创建 bpmax-cli issue:先写精简描述文件,先跑 `bpmax-cli issue create ... --dry-run --format json`,确认无 token、cookie、手机号、完整 payload 或客户敏感数据后再正式创建,并在结论里记录 `issue.web_url`。
394
+ - 客户配置缺陷、流程运行态缺陷、业务数据不足或权限缺口,默认写入本轮 E2E 报告、任务书或修复清单;除非用户明确要求,不要把这类问题提成 bpmax-cli issue。
393
395
  - 如果失败原因是稳定反模式,更新来源 skill:
394
396
  - 流程脚本问题:更新 [$bpmax-flow-template-editor](../bpmax-flow-template-editor/SKILL.md) 或其 `references/`
395
397
  - 表单显隐/校验问题:更新 [$bpmax-form-template-editor](../bpmax-form-template-editor/SKILL.md) 或其 `references/`