bpmax-cli 0.2.1-beta.36 → 0.2.1-beta.38
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/README.md +2 -0
- package/dist/bin.js +1303 -499
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
- package/skills/bpmax-ai-taskbook/SKILL.md +1 -0
- package/skills/bpmax-builder-shared/SKILL.md +1 -0
- package/skills/bpmax-builder-shared/configuration-impact-review.md +76 -0
- package/skills/bpmax-cli/SKILL.md +1 -0
- package/skills/bpmax-console-template-editor/SKILL.md +4 -2
- package/skills/bpmax-dataset-field-template-editor/SKILL.md +4 -2
- package/skills/bpmax-dataset-template-editor/SKILL.md +4 -1
- package/skills/bpmax-e2e-flow-config-orchestrator/SKILL.md +7 -0
- package/skills/bpmax-e2e-flow-config-orchestrator/agents/openai.yaml +2 -2
- package/skills/bpmax-e2e-flow-config-orchestrator/references/orchestration-matrix.md +13 -9
- package/skills/bpmax-e2e-flow-test-operator/SKILL.md +14 -6
- package/skills/bpmax-e2e-flow-test-operator/agents/openai.yaml +2 -2
- package/skills/bpmax-e2e-flow-test-operator/references/ai-test-suite.md +15 -0
- package/skills/bpmax-e2e-flow-test-operator/references/full-detail-guide.md +3 -1
- package/skills/bpmax-filter-template-editor/SKILL.md +4 -2
- package/skills/bpmax-flow-template-editor/SKILL.md +5 -1
- package/skills/bpmax-flow-template-editor/references/project-create-runtime-gotchas.md +17 -0
- package/skills/bpmax-form-template-editor/SKILL.md +5 -1
- package/skills/bpmax-list-template-editor/SKILL.md +5 -2
- package/skills/bpmax-ui-ux-audit/LICENSE.upstream +23 -0
- package/skills/bpmax-ui-ux-audit/SKILL.md +42 -0
- package/skills/bpmax-ui-ux-audit/agents/openai.yaml +4 -0
- package/skills/bpmax-ui-ux-audit/references/audit-framework.md +39 -0
- package/skills/bpmax-ui-ux-audit/references/bpmax-ux-findings.md +56 -0
package/package.json
CHANGED
|
@@ -159,6 +159,7 @@ Every AI task row must include:
|
|
|
159
159
|
- `dependencies`: upstream task IDs required before execution.
|
|
160
160
|
- `evidence`: expected proof such as readback hash, browser screenshot, test report, or lint result.
|
|
161
161
|
- For configuration write tasks, `evidence` or `notes` must include `bpmax-cli config adapters --format json`, the matching typed CLI lint/build/submit/verify/readback commands, and the domain-specific constraints from the relevant skill.
|
|
162
|
+
- Configuration write tasks that change fields, stable keys, value types, permissions, scripts, data sources, or template bindings must also include `bpmax-cli config <domain> impact --raw <raw> --work <work> --format json`. The task must classify discovered references as `checked-and-compatible`, confirmed `required-collateral`, `recommended-next-step`, or `unverified`; single-object lint/verify is not cross-object completion proof.
|
|
162
163
|
- Migration tasks that create or update multiple config objects must specify whether they will use `bpmax-cli config batch submit --manifest ...` and `bpmax-cli config batch readback --manifest ...`; if not, the task must explain why batch evidence is intentionally skipped.
|
|
163
164
|
- Tasks that depend on IDs returned by direct typed create/submit must consume the standard top-level `id` / `key` / `readback_hint` response fields instead of asking subagents to parse domain-specific response bodies.
|
|
164
165
|
- Batch `response_out` files are row envelopes: consume `ok` / `domain` / `id` / `action` at the top level, then read created IDs and hints from `response.id` / `response.key` / `response.readback_hint`; if a row is dry-run, copy `response.required_confirm` into the manifest `confirm` before retrying.
|
|
@@ -32,6 +32,7 @@ description: "BPMAX 配置类 skill 的共享规则和脚本库。用于复用
|
|
|
32
32
|
- `skill_audit.py`:配置类 skill 静态审计。
|
|
33
33
|
- `runtime-script-site-matrix.md`:运行时脚本站点矩阵说明。
|
|
34
34
|
- `runtime-script-template-catalog.md`:模板脚本分类参考。
|
|
35
|
+
- `configuration-impact-review.md`:字段、稳定 key、类型、权限、脚本、来源或模板绑定变化后的跨配置影响审查和下一步建议。
|
|
35
36
|
|
|
36
37
|
## 验证
|
|
37
38
|
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# 配置变更影响审查
|
|
2
|
+
|
|
3
|
+
配置对象自己的 lint、build、submit、verify 通过,只能证明该对象配置合法且写入一致,不能证明所有下游引用仍然兼容。字段、模板绑定、数据来源、脚本值形态或页面入口发生变化时,必须补做影响审查。
|
|
4
|
+
|
|
5
|
+
## 标准命令
|
|
6
|
+
|
|
7
|
+
使用导出时保存的 raw 基线和修改后的 work 文件运行:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
bpmax-cli config <domain> impact \
|
|
11
|
+
--raw <raw-file> \
|
|
12
|
+
--work <work-file> \
|
|
13
|
+
--out <impact-report.json> \
|
|
14
|
+
--profile <profile> \
|
|
15
|
+
--format json
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
新建配置没有 raw 基线时省略 `--raw`,CLI 会按空基线分析新增标识和潜在引用。
|
|
19
|
+
|
|
20
|
+
CLI 会从当前 BPMAX 配置目录向下扫描 `think_*` 配置,输出:
|
|
21
|
+
|
|
22
|
+
- `changed_identifiers`:新增、删除、改名、类型变化、可见性/可编辑性等行为变化的稳定标识。
|
|
23
|
+
- `references_found`:本地配置镜像中命中的数据集字段、数据集、流程、页面模板、配置脚本等引用。
|
|
24
|
+
- `required_collateral_candidates`:高风险变化命中现有引用时,需要逐项确认的联动修改候选。
|
|
25
|
+
- `recommended_next_steps`:建议继续检查或修改的配置面。
|
|
26
|
+
- `unverified_surfaces`:本地扫描不能证明的线上脚本、插件运行态、真实页面或 E2E 面。
|
|
27
|
+
|
|
28
|
+
`references_found` 只证明“发现引用”,不证明引用一定需要修改;`unverified_surfaces` 也不等于缺陷。Agent 必须结合字段值形态、业务语义和运行态判断,不能机械批量改写。
|
|
29
|
+
|
|
30
|
+
## 必须执行的变化
|
|
31
|
+
|
|
32
|
+
以下变化必须在 build 前运行 impact,并把报告纳入 work diff 确认:
|
|
33
|
+
|
|
34
|
+
- 字段或业务 key 新增、删除、改名。
|
|
35
|
+
- 字段类型、值结构、选项值、默认值变化。
|
|
36
|
+
- 隐藏、只读、必填、字段权限、动态条件变化。
|
|
37
|
+
- lambda、校验、联动、查询、格式化或提交脚本变化。
|
|
38
|
+
- 数据集字段来源、关联字段、mapping、`custom_key` 变化。
|
|
39
|
+
- 表单、列表、筛选、详情、看板、导航或环节模板绑定变化。
|
|
40
|
+
- 流程节点、条件路由、owner、抄送、模板引用变化。
|
|
41
|
+
|
|
42
|
+
纯文案、间距、布局、列宽等确认不改变稳定标识和值语义的展示修改,可以产生 `impact_status=no_identifier_changes`,但仍要保留报告作为“未发生标识变化”的证据。
|
|
43
|
+
|
|
44
|
+
## 范围与确认
|
|
45
|
+
|
|
46
|
+
影响报告必须转换为以下交付分类:
|
|
47
|
+
|
|
48
|
+
- `checked-and-compatible`:已检查且无需修改,说明判断依据。
|
|
49
|
+
- `required-collateral`:不修改会导致读取错误、值形态不兼容、页面缺列、条件失效或运行时报错;逐项解释并等待用户确认。
|
|
50
|
+
- `recommended-next-step`:不阻断当前对象提交,但建议后续优化或重新验证。
|
|
51
|
+
- `unverified`:本地配置无法证明,必须依靠线上 readback、真实页面、插件状态或 E2E 验证。
|
|
52
|
+
|
|
53
|
+
不得因为报告发现引用就擅自修改其它对象,也不得在存在未确认的 `required-collateral` 时继续 build/submit。
|
|
54
|
+
|
|
55
|
+
## 常见关联面
|
|
56
|
+
|
|
57
|
+
表单字段变化至少检查:
|
|
58
|
+
|
|
59
|
+
- 数据集字段的 `source_field`、字段类型和返回值形态。
|
|
60
|
+
- 数据集字段关联、处理脚本和 ES mapping。
|
|
61
|
+
- 列表列、筛选器、项目详情、环节详情和看板模块。
|
|
62
|
+
- 流程条件、节点脚本、消息脚本和表单运行时脚本。
|
|
63
|
+
- 正式测试用例、测试数据和真实页面回归。
|
|
64
|
+
|
|
65
|
+
数据集或数据集字段变化至少检查页面模板、查询脚本、发布/刷新状态和样本数据。流程或模板绑定变化至少检查导航入口、创建页、列表/详情页、节点页面和完整 E2E 链路。
|
|
66
|
+
|
|
67
|
+
## 最终输出
|
|
68
|
+
|
|
69
|
+
配置任务结束时必须说明:
|
|
70
|
+
|
|
71
|
+
1. 改了哪些稳定标识或行为。
|
|
72
|
+
2. 扫描了哪些配置目录和对象。
|
|
73
|
+
3. 哪些引用已确认兼容。
|
|
74
|
+
4. 哪些联动修改已完成或等待确认。
|
|
75
|
+
5. 哪些面仍未验证。
|
|
76
|
+
6. 建议用户下一步继续修改或测试什么。
|
|
@@ -30,6 +30,7 @@ bpmax-cli init --agent <agent> --channel feishu --url "<BPMAX_URL>" --name local
|
|
|
30
30
|
- 授权初始化与本地配置目录初始化是两个阶段。执行配置任务前必须先完成 `config workspace init`,再进入生成的 sysconfig 目录或其子目录;这里的“配置目录”不是 BPMAX 的 `w:xxx` 业务工作区。
|
|
31
31
|
- 配置类命令由 CLI 自动校验当前目录:向上查找同时包含 `AGENTS.md`、`think_configuration/`、`think_flow/`、`think_form_template/` 的最近目录,并核对它是否绑定到当前 profile。用户不需要额外说“请检查当前目录”,Agent 也不得绕过或通过切换 profile 猜测环境。
|
|
32
32
|
- CLI 返回 `config_workspace_required`、`config_workspace_profile_mismatch` 或 `config_workspace_environment_unbound` 时,停止读取 work、生成 payload 和远端配置请求;按提示重新执行 `config workspace init` 修复后,进入该目录重试。
|
|
33
|
+
- 配置对象发生字段、稳定 key、类型、权限、脚本、数据来源或模板绑定变化时,单对象 lint/verify 不代表关联面兼容。进入对应编辑 Skill 后必须运行 `bpmax-cli config <domain> impact --raw <raw> --work <work> --format json`,向用户说明已检查引用、必须联动项、未验证面和下一步建议;不得自动批量修改命中的其它配置。
|
|
33
34
|
|
|
34
35
|
## 业务需求优先 BBS
|
|
35
36
|
|
|
@@ -31,7 +31,7 @@ description: "用于通过 bpmax-cli typed config 创建或编辑 BPMAX 数据
|
|
|
31
31
|
4. 确认模式:`edit` / `create` / `copy` / `delete` / `preview-only`。
|
|
32
32
|
5. 输出范围 gate:列出 `requested`、`required-collateral`、`out-of-scope`,以及目标模板、`data_set_id`、`search_temp_id`。
|
|
33
33
|
6. 修改 work:只改用户授权范围内的 `basic`、`content`、`modules`、`keepLayoutItems`、`removedLayoutItems`。
|
|
34
|
-
7. 运行 lint/build:lint
|
|
34
|
+
7. 运行 lint/impact/build:lint 后用 raw/work 执行 `config console-template impact`,检查数据集、筛选器、导航和模块脚本引用;未确认的联动项不得 build。
|
|
35
35
|
8. 二次确认:展示 work diff、submit diff、lint 摘要和即将提交的模块/绑定变化。
|
|
36
36
|
9. typed CLI submit/create/delete:使用精确 `--confirm`,默认 dry-run 不算完成。
|
|
37
37
|
10. typed CLI verify/readback:确认顶层字段和 `content.layout` 与 submit 一致。
|
|
@@ -41,6 +41,7 @@ description: "用于通过 bpmax-cli typed config 创建或编辑 BPMAX 数据
|
|
|
41
41
|
```bash
|
|
42
42
|
bpmax-cli config console-template export --id <id> --out .codex/tmp/console-template-editor --profile <profile> --format json
|
|
43
43
|
bpmax-cli config console-template lint --work .codex/tmp/console-template-editor/work/<file>.json --profile <profile> --format json
|
|
44
|
+
bpmax-cli config console-template impact --raw .codex/tmp/console-template-editor/raw/<file>.json --work .codex/tmp/console-template-editor/work/<file>.json --out .codex/tmp/console-template-editor/result/<file>.impact.json --profile <profile> --format json
|
|
44
45
|
bpmax-cli config console-template build --work .codex/tmp/console-template-editor/work/<file>.json --meta .codex/tmp/console-template-editor/meta/<file>.meta.json --out .codex/tmp/console-template-editor/submit/<file>.json --profile <profile> --format json
|
|
45
46
|
bpmax-cli config console-template submit --id <id> --payload .codex/tmp/console-template-editor/submit/<file>.json --profile <profile> --confirm "submit console-template <id>" --format json
|
|
46
47
|
bpmax-cli config console-template create --id create:console-template --payload .codex/tmp/console-template-editor/submit/<create-file>.json --profile <profile> --confirm "submit console-template create:console-template" --format json
|
|
@@ -102,9 +103,10 @@ bpmax-cli config console-template delete --id <id> --profile <profile> --confirm
|
|
|
102
103
|
- 删除后必须 readback/list 验证目标消失,且没有误删其它 type=4 模板。
|
|
103
104
|
|
|
104
105
|
## 输出要求
|
|
105
|
-
- 输出必须包含:操作模式、目标模板、work 文件、submit 文件、lint 结果、confirm 文本、verify/readback 结果、是否做了预览验收。
|
|
106
|
+
- 输出必须包含:操作模式、目标模板、work 文件、impact 报告、submit 文件、lint 结果、confirm 文本、verify/readback 结果、是否做了预览验收。
|
|
106
107
|
- 变更说明按 `requested` / `required-collateral` / `out-of-scope` 分类;`out-of-scope` 非空时停止在待确认状态。
|
|
107
108
|
- 高风险点必须显式说明:`data_set_id`、`search_temp_id`、模块增删、layout 坐标、`dataSource`、统计口径和导出分页语义是否变化。
|
|
109
|
+
- 输出已检查引用、未验证面和下一步建议;统一规则见 `../bpmax-builder-shared/configuration-impact-review.md`。
|
|
108
110
|
|
|
109
111
|
## 测试要求
|
|
110
112
|
- 当前 skill 专项测试:`python3 -m unittest discover -s skills/bpmax-console-template-editor/tests -p 'test_*.py'`
|
|
@@ -22,7 +22,7 @@ description: "用于通过 bpmax-cli typed config 创建、编辑、复制、删
|
|
|
22
22
|
2. 读取线上最新:优先 typed CLI export/readback;只读运行态证据只用于核对展示结果,本地 `think_*` 只做候选检索和结构参考。
|
|
23
23
|
3. 做范围 gate:把变更分成 `requested`、`required-collateral`、`out-of-scope`;`required-collateral` 必须逐项解释并取得确认,`out-of-scope` 不得进入 submit。
|
|
24
24
|
4. 生成/修改 work:只改用户需求允许的字段面,默认未点名的 `type`、`classify`、来源映射、`postScript`、`advanced` 保持 `unchanged`。
|
|
25
|
-
5. 运行 lint/build:先 `lint
|
|
25
|
+
5. 运行 lint/impact/build:先 `lint`,再用 raw/work 执行 `config dataset-field impact`;字段 key、类型、来源、关联、值结构或脚本变化命中其它配置引用时,逐项转为 `checked-and-compatible`、`required-collateral`、`recommended-next-step` 或 `unverified`,未确认的联动项不得进入 build。
|
|
26
26
|
6. 二次确认 submit:展示 work diff、submit diff 和范围对照;用户确认后才允许真实 submit/create/delete。
|
|
27
27
|
7. 提交后 verify:回读详情、字段列表或数据集编辑视图的只读证据,确认字段存在、来源映射一致、展示可定位。
|
|
28
28
|
|
|
@@ -30,6 +30,7 @@ description: "用于通过 bpmax-cli typed config 创建、编辑、复制、删
|
|
|
30
30
|
```bash
|
|
31
31
|
bpmax-cli config dataset-field export --id <id> --out .codex/tmp/dataset-field-editor --profile <profile> --format json
|
|
32
32
|
bpmax-cli config dataset-field lint --work .codex/tmp/dataset-field-editor/work/<file>.json --profile <profile> --format json
|
|
33
|
+
bpmax-cli config dataset-field impact --raw .codex/tmp/dataset-field-editor/raw/<file>.json --work .codex/tmp/dataset-field-editor/work/<file>.json --out .codex/tmp/dataset-field-editor/result/<file>.impact.json --profile <profile> --format json
|
|
33
34
|
bpmax-cli config dataset-field build --work .codex/tmp/dataset-field-editor/work/<file>.json --meta .codex/tmp/dataset-field-editor/meta/<file>.meta.json --out .codex/tmp/dataset-field-editor/submit/<file>.json --profile <profile> --format json
|
|
34
35
|
bpmax-cli config dataset-field submit --id <id> --payload .codex/tmp/dataset-field-editor/submit/<file>.json --profile <profile> --confirm "submit dataset-field <id>" --response-out .codex/tmp/dataset-field-editor/result/<file>.response.json --format json
|
|
35
36
|
bpmax-cli config dataset-field create --id create:dataset-field --payload .codex/tmp/dataset-field-editor/submit/<create-file>.json --profile <profile> --confirm "submit dataset-field create:dataset-field" --response-out .codex/tmp/dataset-field-editor/result/<create-file>.response.json --format json
|
|
@@ -121,10 +122,11 @@ bpmax-cli config dataset-field delete --id <id> --profile <profile> --confirm "d
|
|
|
121
122
|
- 提交前至少运行 `npm run typecheck`、`npm run build`、`git diff --check`。
|
|
122
123
|
|
|
123
124
|
## 输出要求
|
|
124
|
-
- 输出必须包含:操作模式、目标字段、当前 `flow_type` / `flow_key` / `data_set_id`、work 文件、submit 文件、response 文件、verify 结果和只读展示验收结果。
|
|
125
|
+
- 输出必须包含:操作模式、目标字段、当前 `flow_type` / `flow_key` / `data_set_id`、work 文件、impact 报告、submit 文件、response 文件、verify 结果和只读展示验收结果。
|
|
125
126
|
- 变更说明按 `requested` / `required-collateral` / `out-of-scope` 分类;`out-of-scope` 非空时停止在待确认状态。
|
|
126
127
|
- 对非用户原始直述的联动改动,说明为什么是 `required-collateral`,不改会有什么风险,以及是否已逐项确认。
|
|
127
128
|
- 高风险点必须显式说明:`virtual` 关联字段、`nested` JSON 解析、`postScript` 查询方式、`flow_key` 省略、只读展示是否已验证。
|
|
129
|
+
- 必须列出数据集、列表、筛选、详情、看板、流程脚本中的引用检查结果和下一步建议;统一规则见 `../bpmax-builder-shared/configuration-impact-review.md`。
|
|
128
130
|
|
|
129
131
|
## Reference 路由
|
|
130
132
|
- 完整历史细节与命令样例:`references/full-detail-guide.md`
|
|
@@ -33,6 +33,8 @@ description: "用于通过 bpmax-cli typed config 创建、编辑、发布、暂
|
|
|
33
33
|
- 输出应进入 `.codex/tmp/dataset-editor/raw/`、`work/`、`meta/`。
|
|
34
34
|
5. 只改 `.codex/tmp/dataset-editor/work/`;脚本位点先抽取到独立文件,局部 patch,再按可读单行化规则回写,禁止在 JSON 中手工拼大段转义。
|
|
35
35
|
6. 修改后先运行 `bpmax-cli config dataset lint --work <work-file> --profile <profile> --format json`,列出 work diff,并按范围分类。
|
|
36
|
+
- 同时运行 `bpmax-cli config dataset impact --raw <raw-file> --work <work-file> --out .codex/tmp/dataset-editor/result/<file>.impact.json --profile <profile> --format json`,检查字段关联、`custom_key`、脚本和 mapping 对页面模板及查询脚本的影响。
|
|
37
|
+
- `required_collateral_candidates` 非空时必须逐项确认;不能因为当前 dataset verify 通过就忽略列表、筛选、详情、看板或 ES 运行态。
|
|
36
38
|
7. 必须先让用户确认 work diff,再构建 submit 文件;不得直接 build/submit。
|
|
37
39
|
8. 构建 submit:
|
|
38
40
|
- `bpmax-cli config dataset build --work <work-file> --meta <meta-file> --out <submit-file> --profile <profile> --format json`
|
|
@@ -114,7 +116,7 @@ description: "用于通过 bpmax-cli typed config 创建、编辑、发布、暂
|
|
|
114
116
|
- 如果没有发布/刷新,只能声明草稿或配置层完成,不能声明 ES/list runtime 已生效。
|
|
115
117
|
|
|
116
118
|
## 输出要求
|
|
117
|
-
- 最终回复必须包含:变更范围分类、work/submit diff 摘要、lint/build/submit/verify 结果、readback/list/publish-health 证据、页面验收结果。
|
|
119
|
+
- 最终回复必须包含:变更范围分类、work/submit diff 摘要、impact 报告、lint/build/submit/verify 结果、readback/list/publish-health 证据、页面验收结果。
|
|
118
120
|
- 如果没有提交,明确说明停在哪个 gate。
|
|
119
121
|
- 如果创建成功,必须给出新数据集 ID、`custom_key`、`readback_hint` 和 verify/readback 路径。
|
|
120
122
|
- 如果做过发布、暂停、刷新或 reindex,必须写明命令、状态回读、批次/ES 健康结论和证据路径。
|
|
@@ -122,3 +124,4 @@ description: "用于通过 bpmax-cli typed config 创建、编辑、发布、暂
|
|
|
122
124
|
- 若发现可复用经验,按 `bpmax-memory-protocol` 写入;不得写 API Key、Authorization、token、cookie、手机号、完整 payload 或大段接口响应。
|
|
123
125
|
- 结束前必须说明本次达到的是配置级、字段关联级、发布刷新级,还是页面运行态验收。
|
|
124
126
|
- 若发现 bpmax-cli 自身问题,可按 `bpmax-cli` skill 的 issue 流程创建 CLI issue;不要把 CLI 缺陷伪装成客户配置问题。
|
|
127
|
+
- 必须根据 impact 报告给出列表、筛选、详情、看板、导航、脚本、发布刷新和 E2E 的下一步建议;统一规则见 `../bpmax-builder-shared/configuration-impact-review.md`。
|
|
@@ -29,10 +29,13 @@ description: "用于按 BPMAX 完整流程配置需求先调研、再出计划
|
|
|
29
29
|
|
|
30
30
|
## 核心原则
|
|
31
31
|
- 这是编排型 skill,不重复实现各子 skill 的具体执行细节;它负责调研、计划、编排顺序、停机条件和结果闭环。
|
|
32
|
+
- 搭建前必须同时使用 [$bpmax-functional-test-design](../bpmax-functional-test-design/SKILL.md) 和 [$bpmax-ui-ux-audit](../bpmax-ui-ux-audit/SKILL.md) 思考主路径、分支、边界、状态、角色、表单信息架构、动作文案、错误恢复、状态反馈、可访问性和跨页一致性;把结论写入计划、任务书和各配置面的 typed config lint 检查项。
|
|
33
|
+
- 所有确认的体验问题都属于 `BUG`,设计期发现也不得降级为建议。配置 lint 通过不等于 UX/E2E 通过;配置完成后仍必须按双 skill 用例执行真实页面并通过 `bpmax-cli test-suite lint-report`。
|
|
32
34
|
- 默认先进入计划模式;如果当前环境不能自动切换到计划模式,必须明确要求用户手动切换到计划模式,然后再继续。
|
|
33
35
|
- 不直接开始执行。先把流程需求讲清楚,再把本次要做的配置面讲清楚,再看是否还缺高影响信息。
|
|
34
36
|
- typed CLI 线上回读、实时接口返回和只读页面验收优先级高于本地 `think_*` 配置镜像;本地仓库只作为候选检索和结构参考。
|
|
35
37
|
- 每完成一个配置面,默认先做 typed CLI verify/readback 和只读页面验收,再进入下一面;不要把上一步的陈旧草稿或本地镜像误当成当前线上事实继续往下串。
|
|
38
|
+
- 每个配置面在 build 前必须运行对应的 `bpmax-cli config <domain> impact --raw <raw> --work <work>`。编排器负责把 `references_found` 转成后续配置任务,把高风险 `required_collateral_candidates` 停在用户确认点,并把 `recommended_next_steps` 与 `unverified_surfaces` 带入后续页面验收和 E2E;不得让单域 Skill verify 通过后直接结束整条链路。
|
|
36
39
|
- 新建主流程时必须通过 typed CLI 让平台创建流程壳,拿到 `flow<number>` 格式的真实 `flow_type` 后再继续配置;不得把业务名、测试 marker 或语义 key 拼成 `flow_type`。语义标识只能放在 `testMarker`、配置备注、测试 profile 或 metadata 中。
|
|
37
40
|
- “没有相关流程,需要创建新表单、新流程并绑定到工作区”时,默认首选端到端 typed 命令:
|
|
38
41
|
|
|
@@ -178,6 +181,8 @@ bpmax-cli taskbook lint-prompt --prompt-source .codex/tmp/TASK_PROMPT.md
|
|
|
178
181
|
- 哪些页面必须先在浏览器中打开
|
|
179
182
|
- 哪些地方以 typed CLI 线上回读和只读页面验收为准
|
|
180
183
|
- 新建场景使用哪个 typed create 命令、确认文本是什么、失败后停止在哪一步
|
|
184
|
+
- `bpmax-functional-test-design` 生成的主/备/异常/边界/状态/角色覆盖,以及 `bpmax-ui-ux-audit` 生成的界面体验 lint 清单
|
|
185
|
+
- 每个配置面的 typed config lint 如何吸收上述两份清单,最终如何进入双 skill E2E 和 `test-suite lint-report`
|
|
181
186
|
|
|
182
187
|
### 6. 计划后的执行编排
|
|
183
188
|
- 用户切出计划模式并要求继续后,由同一个 skill 按计划推进。
|
|
@@ -193,6 +198,8 @@ bpmax-cli taskbook lint-prompt --prompt-source .codex/tmp/TASK_PROMPT.md
|
|
|
193
198
|
- 最新配置同步:[$bpmax-config-latest](../bpmax-config-latest/SKILL.md)
|
|
194
199
|
- AI 任务书:[$bpmax-ai-taskbook](../bpmax-ai-taskbook/SKILL.md)
|
|
195
200
|
- 运行态验收:[$bpmax-e2e-flow-test-operator](../bpmax-e2e-flow-test-operator/SKILL.md)
|
|
201
|
+
- 功能用例设计:[$bpmax-functional-test-design](../bpmax-functional-test-design/SKILL.md)
|
|
202
|
+
- UI/UX 审计:[$bpmax-ui-ux-audit](../bpmax-ui-ux-audit/SKILL.md)
|
|
196
203
|
- 若流程或表单需求依赖控件能力判断,先用 [$form-control-library](../form-control-library/SKILL.md)。
|
|
197
204
|
- 若某一步要求浏览器已打开特定页面,而当前页面不对,必须先让用户打开到正确页面,不要盲目继续。
|
|
198
205
|
- `flow-app create` 完成后,必须再执行工作区视角的只读验证:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
2
|
display_name: "BPMAX E2E Flow Config Orchestrator"
|
|
3
|
-
short_description: "
|
|
4
|
-
default_prompt: "使用 $bpmax-e2e-flow-config-orchestrator
|
|
3
|
+
short_description: "用功能与 UX 双门禁编排 BPMAX 完整流程配置"
|
|
4
|
+
default_prompt: "使用 $bpmax-e2e-flow-config-orchestrator 先调研和计划,并用 bpmax-functional-test-design、bpmax-ui-ux-audit 形成设计与 lint 门禁后完成整套流程配置。"
|
|
@@ -3,15 +3,17 @@
|
|
|
3
3
|
## 默认编排顺序
|
|
4
4
|
- 完整流程配置:
|
|
5
5
|
1. `bpmax-config-latest` -> `bpmax-cli config latest pull <env>`
|
|
6
|
-
2. `bpmax-
|
|
7
|
-
3. `bpmax-
|
|
8
|
-
4. `bpmax-
|
|
9
|
-
5. `bpmax-dataset-template-editor`
|
|
10
|
-
6. `bpmax-
|
|
11
|
-
7. `bpmax-
|
|
12
|
-
8. `bpmax-
|
|
13
|
-
9. `bpmax-
|
|
14
|
-
10. `bpmax-
|
|
6
|
+
2. 设计期双 skill gate:`bpmax-functional-test-design` + `bpmax-ui-ux-audit`,形成测试覆盖和界面体验 lint 清单
|
|
7
|
+
3. `bpmax-flow-template-editor`
|
|
8
|
+
4. `bpmax-form-template-editor`
|
|
9
|
+
5. `bpmax-dataset-field-template-editor`
|
|
10
|
+
6. `bpmax-dataset-template-editor`
|
|
11
|
+
7. `bpmax-list-template-editor`
|
|
12
|
+
8. `bpmax-filter-template-editor`
|
|
13
|
+
9. `bpmax-nav-config-editor`
|
|
14
|
+
10. `bpmax-e2e-flow-test-operator` -> 按双 skill 做真实浏览器运行态验收
|
|
15
|
+
11. 交付期 lint-report gate:`bpmax-cli test-suite lint-report --root .ai_test/report/<run> --format json`
|
|
16
|
+
12. `bpmax-config-latest` -> `bpmax-cli config latest pull <env>`
|
|
15
17
|
|
|
16
18
|
## 范围到 skill 的映射
|
|
17
19
|
- 流程模板:`bpmax-flow-template-editor`
|
|
@@ -22,6 +24,8 @@
|
|
|
22
24
|
- 筛选器模板:`bpmax-filter-template-editor`
|
|
23
25
|
- 导航配置:`bpmax-nav-config-editor`
|
|
24
26
|
- 运行态验收:`bpmax-e2e-flow-test-operator`
|
|
27
|
+
- 功能测试设计:`bpmax-functional-test-design`
|
|
28
|
+
- UI/UX BUG 审计:`bpmax-ui-ux-audit`
|
|
25
29
|
- 控件判断:`form-control-library`
|
|
26
30
|
- 环境同步:`bpmax-config-latest` -> `bpmax-cli config latest pull <env>`
|
|
27
31
|
|
|
@@ -17,6 +17,12 @@ description: "用于在 BPMAX 中做全链路流程测试、场景回归、前
|
|
|
17
17
|
- 不要把草稿接口、画布显示、配置回读和运行态行为混为一谈;E2E 结论以运行态行为为准。
|
|
18
18
|
- 不要把 token、API Key、cookie、手机号、密码、Authorization、完整 raw payload、大段日志写入 memory、issue、报告或测试资产。
|
|
19
19
|
|
|
20
|
+
## 双 skill 与 UX BUG 门禁
|
|
21
|
+
- 正式 E2E 在生成/更新用例前必须使用 [$bpmax-functional-test-design](../bpmax-functional-test-design/SKILL.md),在页面执行和报告收口时必须使用 [$bpmax-ui-ux-audit](../bpmax-ui-ux-audit/SKILL.md)。两者缺一,UX 审计未完成,只能给 `partial` 或 `blocked`。
|
|
22
|
+
- 所有确认的体验问题都属于 `BUG`,不得改写成建议、观察或美化项规避门禁。未解决 P0/P1 UX BUG 要求总结果 `fail`;只有未解决 P2/P3 时使用 `pass-with-warnings`;无未解决 UX BUG 且其他门禁通过才允许 `pass`。`verified` 必须有晚于原始证据的本轮复测证据。
|
|
23
|
+
- 每轮必须在报告目录写 `ux-findings.json`,并在场景报告写双 skill 元数据、UX 审计状态和 P0-P3 数量。
|
|
24
|
+
- 任何完整结论前必须运行 `bpmax-cli test-suite lint-report --root .ai_test/report/<run> --format json`,保留返回的功能设计、UX 审计和 BUG 数量汇总。
|
|
25
|
+
|
|
20
26
|
## 真实页面原则
|
|
21
27
|
- 线上完整链路必须在真实运行页完成发起、填单、选择、提交、审批、驳回、回退等关键用户动作;不得用脚本、控制台、手改 request body 或接口直调绕过界面。
|
|
22
28
|
- 脚本和接口可用于摸底、状态记录、接口回读、证据补充、首次抓请求骨架;即使用户明确接受“非页面路径”,也只能输出降级/诊断结论,不得写完整 E2E 通过。
|
|
@@ -81,13 +87,15 @@ description: "用于在 BPMAX 中做全链路流程测试、场景回归、前
|
|
|
81
87
|
|
|
82
88
|
## 标准执行流
|
|
83
89
|
1. 查 memory:搜索业务名、`flow_type`、模板、数据集、上次状态和已知坑点;不要把完整 JSON 贴给用户。CLI 出现 skills out-of-sync notice 时,源码验证必须显式读取当前仓库 skill,正式分发前必须 update/install skills 消除版本差异。
|
|
84
|
-
2.
|
|
90
|
+
2. 用 `bpmax-functional-test-design` 从需求、状态、规则、边界和角色旅程生成可追踪用例;设计完成不等于执行通过。
|
|
91
|
+
3. 强制从用例启动:运行 `bpmax-cli test-suite run start --scenario <id> --case-id <id> ...` 生成本轮 execution manifest。不得先临场打开浏览器或直接运行正式 `bpmax-cli e2e`。源码联调必须额外传 `--source-skill <repo>/skills/bpmax-e2e-flow-test-operator/SKILL.md`;分发版默认硬检查安装 skill stamp 与 CLI 版本一致。
|
|
85
92
|
`run start` 会同时生成 `<scenario_id>.md` 报告草稿;执行过程中必须持续更新该文件,不要另找历史报告套用。
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
93
|
+
4. 执行当前步骤:只执行 `test-suite run next` 返回的当前 `case_id/case_step_id`;正式 `e2e` 命令必须带 `--execution-manifest --case-id --case-step-id`。
|
|
94
|
+
5. 准备真实业务样本:确认业务对象、主数据关系、边界值、审批人、权限、页面入口和预期业务后果。
|
|
95
|
+
6. 逐步记录:每完成一个步骤立即运行 `test-suite run record`,写入本轮证据后才能获取下一步;不得跳步或补写旧证据。record 会按 manifest 自动同步场景报告;若返回 `report_sync.ok=false`,必须执行返回的 `test-suite run report-sync` 修复命令,不得手工提前写 pass。
|
|
96
|
+
7. 用 `bpmax-ui-ux-audit` 审计本轮实际到达的全部界面,写 `ux-findings.json`;未到达界面不得编造结论。
|
|
97
|
+
8. 失败闭环:记录 `fail` / `blocked` 后停止后续步骤,先分清配置、环境、旧样本、权限、缓存或测试资产问题;修配置回到对应 skill。
|
|
98
|
+
9. 输出报告并运行 `lint-report`:报告引用本轮 manifest,逐条对账 case/step、UX BUG 和证据;lint 未通过不得给完整结论。
|
|
91
99
|
|
|
92
100
|
排障只能显式使用 `--diagnostic`。该模式可以不带 manifest,但输出不能进入正式 pass evidence,也不能用来绕过用例链路。
|
|
93
101
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
2
|
display_name: "BPMAX E2E Flow Test Operator"
|
|
3
|
-
short_description: "
|
|
4
|
-
default_prompt: "使用 $bpmax-e2e-flow-test-operator 对当前 BPMAX
|
|
3
|
+
short_description: "用功能设计与 UX BUG 审计完成 BPMAX E2E 回归"
|
|
4
|
+
default_prompt: "使用 $bpmax-e2e-flow-test-operator 对当前 BPMAX 流程做全链路测试,强制结合 bpmax-functional-test-design 和 bpmax-ui-ux-audit,并以 lint-report 收口。"
|
|
@@ -25,11 +25,24 @@
|
|
|
25
25
|
<YYYYMMDD-NNN>/
|
|
26
26
|
summary.md
|
|
27
27
|
<scenario_id>.md
|
|
28
|
+
ux-findings.json
|
|
28
29
|
screenshots/
|
|
29
30
|
```
|
|
30
31
|
|
|
31
32
|
`suite` 是正式用例库,`suite_draft` 是 AI 生成或更新后的待确认草稿,`report` 是每次运行的证据目录。
|
|
32
33
|
|
|
34
|
+
正式用例设计必须使用 `bpmax-functional-test-design`;本轮页面体验审计必须使用 `bpmax-ui-ux-audit`。场景报告必须包含:
|
|
35
|
+
|
|
36
|
+
```text
|
|
37
|
+
test_design_skill: bpmax-functional-test-design
|
|
38
|
+
ux_audit_skill: bpmax-ui-ux-audit
|
|
39
|
+
ux_audit_status: completed|blocked
|
|
40
|
+
ux_findings: ux-findings.json
|
|
41
|
+
ux_bug_counts: P0=<n>,P1=<n>,P2=<n>,P3=<n>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
所有确认的体验问题都是 `classification: "BUG"`。`ux-findings.json` 的 run/scenario 必须匹配当前报告,每个 BUG 必须有严重度、影响、复现步骤、启发式引用、本轮证据、整改建议和 `open|fixed|verified` 状态。证据必须由当前 execution manifest 登记或引用;`verified` 还必须提供不同且更晚的 `retest_evidence`。`ux_bug_counts` 只统计未解决的 `open|fixed` BUG:P0/P1 要求 `fail`;仅 P2/P3 时为 `pass-with-warnings`;无未解决 BUG 才允许 `pass`;审计 blocked 时只能 `partial|blocked`。
|
|
45
|
+
|
|
33
46
|
`.copy_diff/` 是覆盖同名场景目录时自动生成的覆盖审计证据,只在 `draft-update --replace` 或 `promote --replace` 的目标目录已存在时出现。
|
|
34
47
|
|
|
35
48
|
## README 模板
|
|
@@ -157,6 +170,8 @@ bpmax-cli test-suite run report-sync --manifest .ai_test/report/<run_id>/executi
|
|
|
157
170
|
|
|
158
171
|
`execution_plan_generated`、`browser_execution_pending`、`bootstrap_required` 表示尚未形成正式执行证据;只有真实提交或正式记录后才能出现 `execution_evidence_recorded`。不得依据 plan/template/dry-run 状态推进用例结论。
|
|
159
172
|
|
|
173
|
+
报告同步只更新执行状态,不会替代理解页面并完成 UX 审计。必须人工/agent 基于本轮证据更新 `ux-findings.json` 和场景报告,然后运行 `bpmax-cli test-suite lint-report`。
|
|
174
|
+
|
|
160
175
|
旧版聚合示例已废弃;以下是用例级示例:
|
|
161
176
|
|
|
162
177
|
```csv
|
|
@@ -194,6 +194,8 @@ bpmax-cli test-suite lint-report --root .ai_test/report
|
|
|
194
194
|
|
|
195
195
|
### 报告完整性门禁
|
|
196
196
|
- 单次执行报告必须位于 `.ai_test/report/<YYYYMMDD-NNN>/`,截图必须位于同一 run 的 `screenshots/` 下;`.codex/docs/` 只放复盘、长周期总结或交付版文档,并引用 `run_id` 和原始报告路径。
|
|
197
|
+
- 用 `bpmax-functional-test-design` 固化功能覆盖,用 `bpmax-ui-ux-audit` 审计本轮页面;报告必须引用同目录 `ux-findings.json`。UX 审计未完成时只能写 `partial` 或 `blocked`。
|
|
198
|
+
- 所有确认体验问题都按 BUG 管理:未解决 P0/P1 强制 `fail`;只有未解决 P2/P3 时用 `pass-with-warnings`;无未解决 UX BUG 且功能与证据门禁都通过才允许 `pass`。`verified` 必须保留原始证据和晚于原始证据的本轮 `retest_evidence`。
|
|
197
199
|
- 场景报告必须写 `planned_cases:`、`executed_cases:`、`planned_steps:`、`executed_steps:`、`execution_manifest:`、`precondition_check:`、`state_file:`、`report_run:`、`browser_tool:`、`rerun_policy:`。case 与 step 都必须逐条对账;有未执行步骤时只能写阶段/局部结论。
|
|
198
200
|
- 报告出现 `not run`、`未执行`、`跳过` 时,`result:` 必须降级为 `partial`、`stage`、`blocked` 或明确“阶段/局部/不完整”。没有用户确认缩小范围时,不得把跳过用例合并进完整结论。
|
|
199
201
|
- 没有合规浏览器工具或页面证据时,必须使用浏览器阻塞模板:`browser_status: blocked`,并写“页面结论停止”;不得用 API/readback 证据冒充页面验证。
|
|
@@ -418,7 +420,7 @@ PYTHON_BIN=./venv/bin/python
|
|
|
418
420
|
- 再导入飞书文档
|
|
419
421
|
- 最后按用户指定手机号或邮箱授权
|
|
420
422
|
|
|
421
|
-
旧 `scripts/e2e_doc.py` 只允许生成接口/脚本诊断草稿,不能作为重新运行报告或完整 E2E 通过报告。正式报告必须创建 `.ai_test/report/<YYYYMMDD-NNN>/`,补齐 `run_id`、`rerun_policy`、case/step planned-executed 对账、`execution_manifest`、`started_at`、`finished_at`、本轮 `screenshots
|
|
423
|
+
旧 `scripts/e2e_doc.py` 只允许生成接口/脚本诊断草稿,不能作为重新运行报告或完整 E2E 通过报告。正式报告必须创建 `.ai_test/report/<YYYYMMDD-NNN>/`,补齐 `run_id`、`rerun_policy`、case/step planned-executed 对账、`execution_manifest`、`started_at`、`finished_at`、本轮 `screenshots/`、双 skill 元数据和 `ux-findings.json`,并运行 `bpmax-cli test-suite lint-report`。
|
|
422
424
|
|
|
423
425
|
## 强制约束
|
|
424
426
|
- 不要一开始就同时打开太多配置面;按“流程/表单/数据集/列表/筛选器/导航/测试”最小闭环推进。
|
|
@@ -31,7 +31,7 @@ description: "用于通过 bpmax-cli typed config 创建、编辑、切换生效
|
|
|
31
31
|
4. 确认模式:`create` / `edit` / `copy` / `delete` / `switch-default` / `preview-only`。
|
|
32
32
|
5. 输出范围 gate:列出 `requested`、`required-collateral`、`out-of-scope` 和当前 `flow_type` / `flow_key` / 模板 id。
|
|
33
33
|
6. 修改 work:只改用户授权范围内的 `basic`、`content.config[]`、`customQuery`、`beforeSearch`、`tabFilters`。
|
|
34
|
-
7. 运行 lint/build:lint
|
|
34
|
+
7. 运行 lint/impact/build:lint 后用 raw/work 执行 `config filter-template impact`,检查字段 key、查询值形态、列表绑定、导航入口和脚本引用;未确认的 `required-collateral` 不得 build。
|
|
35
35
|
8. 二次确认:展示 work diff、submit diff、lint 摘要和即将提交的关键字段。
|
|
36
36
|
9. typed CLI submit/create/delete:使用精确 `--confirm`,默认 dry-run 不算完成。
|
|
37
37
|
10. 回读 verify:执行 typed CLI verify/readback,确认 `content`、模板 id、`flow_type`、`flow_key` 一致。
|
|
@@ -42,6 +42,7 @@ description: "用于通过 bpmax-cli typed config 创建、编辑、切换生效
|
|
|
42
42
|
```bash
|
|
43
43
|
bpmax-cli config filter-template export --id <id> --out .codex/tmp/filter-template-editor --profile <profile> --format json
|
|
44
44
|
bpmax-cli config filter-template lint --work .codex/tmp/filter-template-editor/work/<file>.json --profile <profile> --format json
|
|
45
|
+
bpmax-cli config filter-template impact --raw .codex/tmp/filter-template-editor/raw/<file>.json --work .codex/tmp/filter-template-editor/work/<file>.json --out .codex/tmp/filter-template-editor/result/<file>.impact.json --profile <profile> --format json
|
|
45
46
|
bpmax-cli config filter-template build --work .codex/tmp/filter-template-editor/work/<file>.json --meta .codex/tmp/filter-template-editor/meta/<file>.meta.json --out .codex/tmp/filter-template-editor/submit/<file>.json --profile <profile> --format json
|
|
46
47
|
bpmax-cli config filter-template submit --id <id> --payload .codex/tmp/filter-template-editor/submit/<file>.json --profile <profile> --confirm "submit filter-template <id>" --format json
|
|
47
48
|
bpmax-cli config filter-template create --id create:filter-template --payload .codex/tmp/filter-template-editor/submit/<create-file>.json --profile <profile> --confirm "submit filter-template create:filter-template" --format json
|
|
@@ -101,10 +102,11 @@ bpmax-cli config filter-template delete --id <id> --profile <profile> --confirm
|
|
|
101
102
|
- verify 不一致、默认模板未指向目标、字段池缺字段、列表请求未变化时,不得宣布完成。
|
|
102
103
|
|
|
103
104
|
## 输出要求
|
|
104
|
-
- 输出必须包含:操作模式、目标模板、`flow_type` / `flow_key`、是否切换默认模板、work 文件、submit 文件、lint 结果、confirm 文本、verify/readback 结果。
|
|
105
|
+
- 输出必须包含:操作模式、目标模板、`flow_type` / `flow_key`、是否切换默认模板、work 文件、impact 报告、submit 文件、lint 结果、confirm 文本、verify/readback 结果。
|
|
105
106
|
- 变更说明按 `requested` / `required-collateral` / `out-of-scope` 分类;`out-of-scope` 非空时停止在待确认状态。
|
|
106
107
|
- 高风险点必须显式说明:字段池来源、`data_set_id` 是否只是业务语义、`customQuery` / `beforeSearch` / `tabFilters` 是否改动、筛选行为是否强验证。
|
|
107
108
|
- 如果使用了只读运行态验收,明确说明它只证明展示/行为,不是配置写入路径。
|
|
109
|
+
- 输出已检查引用、未验证面和下一步建议;统一规则见 `../bpmax-builder-shared/configuration-impact-review.md`。
|
|
108
110
|
|
|
109
111
|
## 测试要求
|
|
110
112
|
- 当前 skill 专项测试:`python3 -m unittest discover -s skills/bpmax-filter-template-editor/tests -p 'test_*.py'`
|
|
@@ -37,7 +37,9 @@ description: "用于通过 bpmax-cli typed config 能力创建和编辑 BPMAX
|
|
|
37
37
|
5. 脚本字段先 extract 到独立 `.js`,局部 patch,再 single-line/writeback;禁止在 JSON 里手工拼转义。
|
|
38
38
|
6. 第一次确认 work diff 后运行:
|
|
39
39
|
- `bpmax-cli config flow-template lint --work .codex/tmp/flow-template-editor/work/flow-template-<id>.json --profile <profile> --format json`
|
|
40
|
+
- `bpmax-cli config flow-template impact --raw .codex/tmp/flow-template-editor/raw/flow-template-<id>.json --work .codex/tmp/flow-template-editor/work/flow-template-<id>.json --out .codex/tmp/flow-template-editor/result/flow-template-<id>.impact.json --profile <profile> --format json`
|
|
40
41
|
- `bpmax-cli config flow-template build --work .codex/tmp/flow-template-editor/work/flow-template-<id>.json --meta .codex/tmp/flow-template-editor/meta/flow-template-<id>.meta.json --out .codex/tmp/flow-template-editor/submit/flow-template-<id>.json --profile <profile> --format json`
|
|
42
|
+
- 节点、条件、owner、脚本或模板引用变化时,impact 报告必须检查表单、数据集、列表、筛选、详情、导航和 E2E;未确认的联动项不得 build。
|
|
41
43
|
7. 第二次确认 submit diff 后先 dry-run,再用精确确认提交:
|
|
42
44
|
- `bpmax-cli config flow-template submit --id <id> --payload .codex/tmp/flow-template-editor/submit/flow-template-<id>.json --profile <profile> --format json`
|
|
43
45
|
- `bpmax-cli config flow-template submit --id <id> --payload .codex/tmp/flow-template-editor/submit/flow-template-<id>.json --profile <profile> --confirm "submit flow-template <id>" --format json`
|
|
@@ -86,6 +88,7 @@ description: "用于通过 bpmax-cli typed config 能力创建和编辑 BPMAX
|
|
|
86
88
|
- 每个会进入人工办理或页面展示的环节都必须明确核对 `node.step_detail_id`。审批/审核节点、填写节点、系统等待节点的模板选型不能混用。
|
|
87
89
|
- 带子流程联动的父流程节点默认是系统等待/汇总状态,不应允许人工直接通过或驳回;若业务要求人工兜底,列为 `required-collateral`。
|
|
88
90
|
- `CLI gate 已硬性覆盖表单驱动新建流程`:`flow-template create` 若声明 `data.meta.form_template`,以及 `flow-app create` 的所有新建流程,都必须隐藏 `project.name` / `project.brief` / `project.plan_end_time`,设置 `meta.use_template_project_name = true` 和非空 `meta.project_name_template`。
|
|
91
|
+
- 表单驱动流程中,创建页提交就是申请动作完成;不要把 `申请人` / `发起人` / `提交人` 作为由创建人办理的首个普通节点,否则项目创建后会再次生成申请人待办。创建后的首个审批或分流必须使用 `data.meta.condational_jump`,且每条 `result` 都不得再指回该申请人首节点。确需二次申请人确认时,只能在 work 中显式设置 `bpmax_lint.allow_post_create_initiator_step = true` 并说明业务依据;该 lint-only 字段不会进入提交 payload。
|
|
89
92
|
- 标准整页创建页必须配置 `data.meta.form_template`;创建页不会从首个 `nodes[].form_template` 推断发起表单。
|
|
90
93
|
- 脚本类查询不得把 `data_set_id` 当 ES 查询入口;项目 ES 数据优先用 `raw-es-search` + `data_set_key`、`ctx.$esQuery(...)` 或已验证 helper。
|
|
91
94
|
|
|
@@ -116,9 +119,10 @@ description: "用于通过 bpmax-cli typed config 能力创建和编辑 BPMAX
|
|
|
116
119
|
- 既有未知扩展字段必须原样保留,不得因 lint/build 归一化删除。
|
|
117
120
|
|
|
118
121
|
## 输出要求
|
|
119
|
-
- 最终回复必须包含:变更范围分类、work/submit diff 摘要、lint/build/submit/verify 结果、readback/drift 路径、页面验收结果。
|
|
122
|
+
- 最终回复必须包含:变更范围分类、work/submit diff 摘要、impact 报告、lint/build/submit/verify 结果、readback/drift 路径、页面验收结果。
|
|
120
123
|
- 若涉及脚本字段,列出脚本文件路径、回写字段路径和 lint 结论。
|
|
121
124
|
- 若涉及模板引用,列出每个远端数字 id 的对象类型、名称和 readback 证明。
|
|
122
125
|
- 若没有提交,明确说明停在哪个 gate。
|
|
123
126
|
- 若发布 live 或执行运行态回测,写明发布命令、样本项目、当前节点、流转结果和证据路径。
|
|
124
127
|
- 若发现可复用经验,按 `bpmax-memory-protocol` 写入;不得写 API Key、Authorization、token、cookie、手机号、完整 payload 或大段接口响应。
|
|
128
|
+
- 输出已检查兼容的关联面、待确认的 `required-collateral`、未验证面和下一步建议;统一规则见 `../bpmax-builder-shared/configuration-impact-review.md`。
|
|
@@ -57,6 +57,23 @@ return (function () {
|
|
|
57
57
|
- `form_template` 必须是当前环境远端数字 `id`,不能是本地 `uuid`、目录名或模板名。
|
|
58
58
|
- typed CLI lint 会阻断“standard/page + node.form_template + meta.form_template 为空”的配置。
|
|
59
59
|
|
|
60
|
+
## 创建页提交后不要再生成申请人首节点
|
|
61
|
+
- 表单驱动创建页本身已经承载申请填写与提交。项目初始化时,后端默认直接创建并进入 `data.nodes[0]`;`start_step=true` 或 `create_step=true` 主要是编辑器标记,不能可靠地把该节点视为已完成。
|
|
62
|
+
- 因此不要把由创建人办理的 `申请人`、`发起人`、`提交人` 节点放在 `data.nodes[0]`,再依赖它的 `condational_nodes` 去选择审批人。这会在创建成功后产生一条新的申请人待办,必须人工再次确认才能进入审批。
|
|
63
|
+
- 正确做法是把申请人节点上的创建期分流迁移到 `data.meta.condational_jump`,让每条规则直接返回创建后的真实首个审批节点 id,并在最后增加 `return true;` 的显式兜底。
|
|
64
|
+
- typed CLI semantic lint 会阻断以下高风险组合:已配置创建表单、首节点名称具有申请人/发起人/提交人语义、`owner_is_creater=true`,且 `data.meta.condational_jump` 为空或任一 `result` 仍指回该首节点。
|
|
65
|
+
- 如果业务明确要求“创建后由申请人二次确认”,可在本地 work 根节点声明:
|
|
66
|
+
|
|
67
|
+
```json
|
|
68
|
+
{
|
|
69
|
+
"bpmax_lint": {
|
|
70
|
+
"allow_post_create_initiator_step": true
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
- 这是 lint-only 豁免,不会进入提交 payload。使用豁免时必须在验收证据中说明二次确认的业务依据,并验证创建后确实应停留在申请人待办。
|
|
76
|
+
|
|
60
77
|
## 经验 1:脚本存在不等于校验生效
|
|
61
78
|
- BPMAX 后端通过 `parseEvalFunction()` 执行创建期脚本。
|
|
62
79
|
- 这类脚本不是直接 `eval` 结果,而是作为“函数体”包进去执行。
|
|
@@ -34,6 +34,8 @@ description: "用于通过 bpmax-cli typed config 创建、编辑、校验或美
|
|
|
34
34
|
- 输出应进入 `.codex/tmp/form-template-editor/raw/`、`work/`、`meta/`。
|
|
35
35
|
5. 只改 `.codex/tmp/form-template-editor/work/`;脚本字段先抽取到独立文件,局部 patch,再按可读单行化规则回写,禁止在 JSON 中手工拼大段转义。
|
|
36
36
|
6. 修改后先运行 `bpmax-cli config form-template lint --work <work-file> --profile <profile> --format json`,列出 work diff,并按范围分类。
|
|
37
|
+
- 同时运行 `bpmax-cli config form-template impact --raw <raw-file> --work <work-file> --out .codex/tmp/form-template-editor/result/<file>.impact.json --profile <profile> --format json`。
|
|
38
|
+
- 字段/key 新增、删除、改名、类型、值结构、默认值、隐藏、只读、必填、权限、lambda、校验或联动变化时,必须逐项审阅 `references_found` 和 `required_collateral_candidates`;存在未确认联动项不得 build。
|
|
37
39
|
7. 必须先让用户确认 work diff,再构建 submit 文件;不得直接 build/submit。
|
|
38
40
|
8. 构建 submit:
|
|
39
41
|
- `bpmax-cli config form-template build --work <work-file> --meta <meta-file> --out <submit-file> --profile <profile> --format json`
|
|
@@ -124,10 +126,12 @@ description: "用于通过 bpmax-cli typed config 创建、编辑、校验或美
|
|
|
124
126
|
- 美化类验收默认是模板编辑器验收,必须刷新表单编辑器页面确认布局生效;只有用户要求发起页/运行页生效时,才继续做运行态验收。
|
|
125
127
|
|
|
126
128
|
## 验收与输出
|
|
127
|
-
- 最终回复必须包含:变更范围分类、work/submit diff 摘要、lint/build/submit/verify 结果、线上回读或 drift 证据、表单编辑器页面验收结果。
|
|
129
|
+
- 最终回复必须包含:变更范围分类、work/submit diff 摘要、impact 报告、lint/build/submit/verify 结果、线上回读或 drift 证据、表单编辑器页面验收结果。
|
|
130
|
+
- impact 输出必须说明数据集字段、数据集、列表、筛选、详情、看板、流程/表单脚本和 E2E 中哪些引用已检查兼容,哪些需要联动修改,哪些仍未验证,并给出下一步建议。
|
|
128
131
|
- 如果没有提交,明确说明停在哪个 gate。
|
|
129
132
|
- 如果新建成功,必须回读 draft id 与 published id;缺少任一回读 hash 或回读失败都不能宣布完成。
|
|
130
133
|
- 如果运行态发起页、审批页或详情页需要生效,必须补齐运行态证据;接口提交成功不等于运行态可用。
|
|
131
134
|
- 若发现可复用经验,按 `bpmax-memory-protocol` 写入;不得写 API Key、Authorization、token、cookie、手机号、完整 payload 或大段接口响应。
|
|
132
135
|
- 结束前必须说明本次是否只达到模板编辑器验收,还是已经达到发起页、审批页或详情页运行态验收。
|
|
133
136
|
- 若发现 bpmax-cli 自身问题,可按 `bpmax-cli` skill 的 issue 流程创建 CLI issue;不要把 CLI 缺陷伪装成客户配置问题。
|
|
137
|
+
- 跨配置影响审查的统一解释和范围分类见 `../bpmax-builder-shared/configuration-impact-review.md`。
|
|
@@ -33,11 +33,13 @@ description: "用于通过 bpmax-cli typed config 创建或编辑 BPMAX 项目
|
|
|
33
33
|
```
|
|
34
34
|
4. 若涉及字段映射或切换数据集,先导出当前数据集/字段并逐列对齐“列表列 -> 表单字段 -> 数据集字段”。
|
|
35
35
|
5. 只修改 `work/<file>.json`;用户确认 work diff 前不得 build submit。
|
|
36
|
-
6. 运行 typed CLI lint/build:
|
|
36
|
+
6. 运行 typed CLI lint/impact/build:
|
|
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
|
+
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
|
|
39
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
41
|
```
|
|
42
|
+
列字段、读取 key、`data_set_id`、格式化/操作脚本或模板绑定变化时,必须检查数据集、筛选器、导航和 E2E 引用;未确认的联动项不得 build。
|
|
41
43
|
7. 展示 work diff、submit diff、lint 摘要、字段映射摘要和高风险验收计划;用户二次确认 submit 后才能提交。
|
|
42
44
|
8. typed CLI submit/create/delete:
|
|
43
45
|
```bash
|
|
@@ -119,7 +121,8 @@ description: "用于通过 bpmax-cli typed config 创建或编辑 BPMAX 项目
|
|
|
119
121
|
## 输出要求
|
|
120
122
|
- 明确本次是 `edit` / `create` / `copy` / `delete` / `preview-only`。
|
|
121
123
|
- 列出 `requested`、`required-collateral`、`out-of-scope` 和目标模板、`data_set_id`、`flow_type`、`flow_key`。
|
|
122
|
-
- 汇报本次用到的 typed CLI 命令:export、lint、build、submit、verify。
|
|
124
|
+
- 汇报本次用到的 typed CLI 命令:export、lint、impact、build、submit、verify。
|
|
125
|
+
- 汇报 impact 报告中的已检查引用、`required-collateral`、未验证面和下一步建议;统一规则见 `../bpmax-builder-shared/configuration-impact-review.md`。
|
|
123
126
|
- 汇报逐列映射表:列名、模板读取、表单/数据集来源、业务语义、风险级别。
|
|
124
127
|
- 明确 `work` 是否确认、lint 是否通过、`submit` 是否确认、接口回读是否通过、真实列表页是否验收。
|
|
125
128
|
- 如发现 bpmax-cli 自身 lint/submit/readback 行为异常,可按 [$bpmax-cli](../bpmax-cli/SKILL.md) 的 issue 规则记录 CLI 缺陷;不要把客户配置缺陷误报为 CLI issue。
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Adapted from https://github.com/EliaAlberti/ux-audit-skill at commit 76eb1ab73560c90275823395fda52c3ca4ea8b2b.
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2026 Elia Alberti
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
in the Software without restriction, including without limitation the rights
|
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
SOFTWARE.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: bpmax-ui-ux-audit
|
|
3
|
+
description: Use when auditing BPMAX forms, lists, details, approval pages, responsive pages, or end-to-end journeys for usability, accessibility, error recovery, visual hierarchy, interaction clarity, or cross-page consistency; also use during BPMAX flow design and before reporting E2E completion.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# BPMAX UI/UX Audit
|
|
7
|
+
|
|
8
|
+
Audit the user journey with current-run(本轮)page or screenshot evidence. Every confirmed experience issue is a product `classification: BUG`, not optional polish.
|
|
9
|
+
|
|
10
|
+
## Hard gates
|
|
11
|
+
|
|
12
|
+
- Use `bpmax-functional-test-design` first to establish user goals, actors, paths, states, boundaries, and expected outcomes. UX review supplements functional coverage; it does not replace it.
|
|
13
|
+
- Inspect every in-scope surface actually reached in this run. Record unvisited or unavailable surfaces as not evaluated.
|
|
14
|
+
- Base each finding on a named current-run page, screenshot, DOM snapshot, or interaction observation. 不得编造 DOM、键盘、焦点、读屏、动画、延迟或响应式事实。
|
|
15
|
+
- Keep evidence under `.ai_test/report/<run>/`. Historical evidence may inform investigation but cannot prove the current result.
|
|
16
|
+
- Classify every confirmed issue as `BUG` with `P0|P1|P2|P3`, user impact, reproduction steps, evidence, heuristic references, recommendation, and `open|fixed|verified` status.
|
|
17
|
+
- Do not automatically install Python or image packages. Use available image/view capabilities for annotations; if unavailable, keep the textual finding and state that annotation was not produced.
|
|
18
|
+
- Run `bpmax-cli test-suite lint-report --root .ai_test/report/<run> --format json` before any complete E2E conclusion.
|
|
19
|
+
|
|
20
|
+
## Audit workflow
|
|
21
|
+
|
|
22
|
+
1. Define the journey goal, actors, platform, current run, and evaluated surfaces from the functional cases.
|
|
23
|
+
2. Review each surface in four passes: goal completion, framework heuristics, recurring checks, and journey-level consistency.
|
|
24
|
+
3. Separate visible facts from unavailable interaction properties. Capture a new screenshot or structured browser evidence when a claim needs proof.
|
|
25
|
+
4. Merge duplicate symptoms into one BUG when they share a cause and recommendation; list every affected surface.
|
|
26
|
+
5. Write `ux-findings.json` using `references/bpmax-ux-findings.md`.
|
|
27
|
+
6. Update the scenario report metadata and findings section. Re-test fixed BUGs and change status to `verified` only with new current-run evidence.
|
|
28
|
+
7. Apply the result gate and run `lint-report`.
|
|
29
|
+
|
|
30
|
+
## Result gate
|
|
31
|
+
|
|
32
|
+
- Unresolved P0/P1 BUG present: `result: fail`.
|
|
33
|
+
- Only unresolved P2/P3 BUGs present: `result: pass-with-warnings`.
|
|
34
|
+
- No unresolved UX BUG and all other E2E gates pass: `result: pass`.
|
|
35
|
+
- Audit incomplete or blocked: only `partial` or `blocked`.
|
|
36
|
+
|
|
37
|
+
Never downgrade a BUG to “suggestion”, “observation”, or “polish” to obtain a passing result.
|
|
38
|
+
|
|
39
|
+
## References
|
|
40
|
+
|
|
41
|
+
- Read `references/audit-framework.md` for the review passes, named heuristics, and recurring checks.
|
|
42
|
+
- Read `references/bpmax-ux-findings.md` for the JSON contract, evidence rules, severity mapping, and report metadata.
|