bpmax-cli 0.2.1-beta.65 → 0.2.1-beta.68
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/dist/bin.js +1450 -909
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
- package/skills/bpmax-e2e-flow-test-operator/SKILL.md +1 -0
- package/skills/bpmax-list-template-editor/SKILL.md +9 -1
- package/skills/bpmax-list-template-editor/references/full-detail-guide.md +6 -3
- package/skills/bpmax-list-template-editor/references/runtime-verified-workflow.md +5 -2
package/package.json
CHANGED
|
@@ -156,6 +156,7 @@ description: "用于在 BPMAX 中做全链路流程测试、场景回归、前
|
|
|
156
156
|
- 测试前必须审计流程节点页模板和操作方式:填写当前环节表单的节点应绑定“项目详情 + 当前环节表单填写模块”,审批/审核/确认/验收类节点应绑定“项目详情”,打回修改或发起人补充节点应绑定“只填写项目表单”。
|
|
157
157
|
- 带子流程联动的父流程节点应禁止人工直接处理;如果页面仍展示通过/驳回/提交等人工操作,标为配置缺陷并修复后再回归。
|
|
158
158
|
- 测试项目列表页时,必须核对列表模板字段与当前表单、数据集一致;页面验收要确认真实数据能渲染到对应列,不能只用接口回读模板成功作为通过依据。
|
|
159
|
+
- 权限类列表模板回归不得只验证一个账号或“页面有行”。至少覆盖无查看、仅查看、完整操作和多角色并集;全部产品、指定范围、GTM 与组织范围交集;管理员原生行和受限账号合成行;首次进入、菜单往返、刷新、筛选、清空筛选、无结果和分页。每个场景记录账号类型、预期/实际条数、关键按钮、列值抽样与 loading/table/empty 最终状态,并在提交前通过 `bpmax-cli config list-template smoke --evidence <report> --format json`。
|
|
159
160
|
- 测试前必须对照需求、设计稿、流程说明或用户确认字段,核对字段存在性、中文名、控件类型、必填/只读/隐藏/可编辑、默认值、自动回填、数据源、校验提示、字段顺序或分组。
|
|
160
161
|
- 没有截图,不得写“已验证 / 已证明 / 页面真实报错 / 页面真实带出 / 页面真实可见或不可见”。
|
|
161
162
|
- 修复发布后优先造新样本;旧样本只能写“旧样本对照”,不能作为发布后闭环结论。
|
|
@@ -37,9 +37,10 @@ description: "用于通过 bpmax-cli typed config 创建或编辑 BPMAX 项目
|
|
|
37
37
|
```bash
|
|
38
38
|
bpmax-cli config list-template lint --work .codex/tmp/list-template-editor/work/<file>.json --profile <profile> --format json
|
|
39
39
|
bpmax-cli config list-template impact --raw .codex/tmp/list-template-editor/raw/<file>.json --work .codex/tmp/list-template-editor/work/<file>.json --out .codex/tmp/list-template-editor/result/<file>.impact.json --profile <profile> --format json
|
|
40
|
-
bpmax-cli config list-template build --work .codex/tmp/list-template-editor/work/<file>.json --meta .codex/tmp/list-template-editor/meta/<file>.meta.json --out .codex/tmp/list-template-editor/submit/<file>.json --profile <profile> --format json
|
|
40
|
+
bpmax-cli config list-template build --work .codex/tmp/list-template-editor/work/<file>.json --meta .codex/tmp/list-template-editor/meta/<file>.meta.json --out .codex/tmp/list-template-editor/submit/<file>.json --impact-report .codex/tmp/list-template-editor/result/<file>.impact.json --profile <profile> --format json
|
|
41
41
|
```
|
|
42
42
|
列字段、读取 key、`data_set_id`、格式化/操作脚本或模板绑定变化时,必须检查数据集、筛选器、导航和 E2E 引用;未确认的联动项不得 build。
|
|
43
|
+
权限、角色、产品范围、组织范围、GTM 范围或操作按钮权限脚本发生变化时,还必须提供 `--boundary-manifest <file>`。manifest 使用 `schema_version=1`、`change_type=list-template-permission`,并列出 `allowed_paths`、`allowed_functions`、`forbidden_paths` 和具体 `rationale`;越界 diff 会阻断 build。
|
|
43
44
|
7. 展示 work diff、submit diff、lint 摘要、字段映射摘要和高风险验收计划;用户二次确认 submit 后才能提交。
|
|
44
45
|
8. typed CLI submit/create/delete:
|
|
45
46
|
```bash
|
|
@@ -47,6 +48,7 @@ description: "用于通过 bpmax-cli typed config 创建或编辑 BPMAX 项目
|
|
|
47
48
|
bpmax-cli config list-template submit --id create:list-template --payload .codex/tmp/list-template-editor/submit/<create-file>.json --profile <profile> --confirm "submit list-template create:list-template" --format json
|
|
48
49
|
bpmax-cli config list-template delete --id <id> --profile <profile> --confirm "delete list-template <id>" --format json
|
|
49
50
|
```
|
|
51
|
+
当 build 产物标记 `list_template_safety.submit_gate.validation_required=true` 时,submit 还必须传 `--validation-report <file>`。只有经过审计的紧急情形可用 `--override-reason "<具体原因>"` 绕过;覆盖原因会进入 dry-run 和执行回执,不能用空泛文案代替证据。
|
|
50
52
|
9. 提交后必须 `verify/readback`,确认顶层字段、`content.level`、`content.config[]`、列标题顺序、关键 `$template` 和数据集字段引用一致。
|
|
51
53
|
10. 高风险改动必须以真实用户身份打开运行态列表页,只读验证目标列、操作按钮、图标/头像/badge/图片预览、筛选和 console/network 错误;不得把接口提交伪装成页面回归。
|
|
52
54
|
|
|
@@ -87,6 +89,12 @@ description: "用于通过 bpmax-cli typed config 创建或编辑 BPMAX 项目
|
|
|
87
89
|
## 验收分级
|
|
88
90
|
- 低风险改动至少需要 `readbackAccepted` 和 `editorPageAccepted`。
|
|
89
91
|
- 高风险改动至少需要 `readbackAccepted`、`editorPageAccepted`、`listPageAccepted`。
|
|
92
|
+
- 权限类高风险改动必须覆盖以下矩阵维度,并在一个 `schema_version=1`、`result=pass` 的验证报告中绑定 `template_id`、`profile`、`submit_payload_hash`、`checked_at`:
|
|
93
|
+
- 账号:`no_view`、`view_only`、`full_access`、`multi_role_union`;
|
|
94
|
+
- 范围:`all`、`specified`、`gtm_organization_intersection`,并记录组织范围;
|
|
95
|
+
- 行来源:`native`、`synthetic`;
|
|
96
|
+
- 页面路径:`first_entry`、`menu_return`、`refresh`、`filter`、`clear_filter`、`no_results`、`pagination`。
|
|
97
|
+
- 每个权限场景必须记录 `expected_count`、`actual_count`、关键 `buttons`、`column_samples` 和 `final_state.loading/table/empty`。运行 `bpmax-cli config list-template smoke --evidence <report> --format json`,只有行数一致、按钮可见性符合权限、列值未异常同值且三态互斥时才算通过。
|
|
90
98
|
- 高风险触发条件包括:脚本列、badge/状态标签、icon/头像/颜色/单行溢出/列宽、操作列按钮、图片预览列、`data_set_id` 切换。
|
|
91
99
|
- 编辑页只做只读回显确认:新字段或新列标题已出现、目标列顺序符合预期、数据集绑定已回填。
|
|
92
100
|
- 运行态列表页必须证明目标列真实渲染、操作列可进入详情;有 `project.delete` 权限的管理员或有 `project.delete.my` 且为创建人的用户可见并能真实删除,无权限用户不可删除;筛选条件不引用已删除字段。
|
|
@@ -447,12 +447,15 @@ bpmax-cli config list-template submit \
|
|
|
447
447
|
```bash
|
|
448
448
|
bpmax-cli config list-template export --id <id> --out .codex/tmp/list-template-editor
|
|
449
449
|
bpmax-cli config list-template lint --work .codex/tmp/list-template-editor/work/<file>.json
|
|
450
|
-
bpmax-cli config list-template
|
|
451
|
-
bpmax-cli config list-template
|
|
452
|
-
bpmax-cli config list-template submit --id <id> --payload .codex/tmp/list-template-editor/submit/<file>.json --
|
|
450
|
+
bpmax-cli config list-template impact --raw .codex/tmp/list-template-editor/raw/<file>.json --work .codex/tmp/list-template-editor/work/<file>.json --out .codex/tmp/list-template-editor/result/<file>.impact.json
|
|
451
|
+
bpmax-cli config list-template build --work .codex/tmp/list-template-editor/work/<file>.json --meta .codex/tmp/list-template-editor/meta/<file>.meta.json --out .codex/tmp/list-template-editor/submit/<file>.json --impact-report .codex/tmp/list-template-editor/result/<file>.impact.json
|
|
452
|
+
bpmax-cli config list-template submit --id <id> --payload .codex/tmp/list-template-editor/submit/<file>.json --validation-report .codex/tmp/list-template-editor/result/<file>.runtime.json
|
|
453
|
+
bpmax-cli config list-template submit --id <id> --payload .codex/tmp/list-template-editor/submit/<file>.json --validation-report .codex/tmp/list-template-editor/result/<file>.runtime.json --confirm "submit list-template <id>"
|
|
453
454
|
bpmax-cli config list-template verify --id <id> --expect .codex/tmp/list-template-editor/work/<file>.json
|
|
454
455
|
```
|
|
455
456
|
|
|
457
|
+
权限相关修改还必须在 build 时传 `--boundary-manifest <file>`。当 build 产物要求运行态证据时,先用 `config list-template smoke --evidence <runtime-report>` 校验完整矩阵;只有审计过的紧急情况才能用 `--override-reason "<具体原因>"` 覆盖。
|
|
458
|
+
|
|
456
459
|
授权前置:当前 profile 必须通过校对码授权,并在授权页开启“配置能力”。如果 CLI 返回 capability 缺失,停止并让用户使用有管理权限的账号重新授权。
|
|
457
460
|
|
|
458
461
|
旧来源中的 `scripts/` 和 `references/` 只作为字段结构、lint 规则和验收规则参考;真实远端写操作必须走 `bpmax-cli config list-template build/submit/create/delete/verify` typed adapter,保留 dry-run、二次确认、审计和回读验证。
|
|
@@ -74,10 +74,13 @@ const res = await vm.$axios.$post('/flow_page_template', payload);
|
|
|
74
74
|
实际提交必须改为:
|
|
75
75
|
|
|
76
76
|
```bash
|
|
77
|
-
bpmax-cli config list-template
|
|
78
|
-
bpmax-cli config list-template
|
|
77
|
+
bpmax-cli config list-template impact --raw <raw-file> --work <work-file> --out <impact-report>
|
|
78
|
+
bpmax-cli config list-template build --work <work-file> --meta <meta-file> --out <submit-file> --impact-report <impact-report>
|
|
79
|
+
bpmax-cli config list-template submit --id <template-id> --payload <submit-file> --validation-report <runtime-report> --confirm "submit list-template <template-id>"
|
|
79
80
|
```
|
|
80
81
|
|
|
82
|
+
权限相关修改还必须在 build 时传 `--boundary-manifest <file>`;只有审计过的紧急情况才能用 `--override-reason "<具体原因>"` 代替运行态验证报告。
|
|
83
|
+
|
|
81
84
|
## 创建页默认模板与线上默认模板
|
|
82
85
|
- `create` 页默认骨架不一定等于当前流程线上已挂的默认列表模板
|
|
83
86
|
- 应优先读取:
|