bpmax-cli 0.1.44-beta.16 → 0.1.44-beta.18

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.1.44-beta.16",
3
+ "version": "0.1.44-beta.18",
4
4
  "description": "CLI for BPMAX environments with multi-profile config and local login callback flow",
5
5
  "type": "module",
6
6
  "bin": {
@@ -62,14 +62,16 @@ The taskbook must include:
62
62
  - `对象锁表`
63
63
  - `AI 最小任务单元`
64
64
  - `验收门禁`
65
+ - `导航入口策略`
66
+ - `列表 lint`
65
67
  - `停机点`
66
68
  - `进度 CSV`
67
69
 
68
70
  Every AI task row must include:
69
71
 
70
72
  - `business_goal`: concrete business outcome, not just a technical object name.
71
- - `required_skills`: concrete BPMAX skills such as `bpmax-flow-template-editor`, `bpmax-form-template-editor`, `bpmax-list-template-editor`, `bpmax-e2e-flow-test-operator`, or `bpmax-memory-protocol`.
72
- - `object_lock`: one lock per mutable BPMAX object, for example `flow:<flow_type>`, `form-template:<id>`, `dataset:<id>`, `workspace:<key>`, or `new-flow:<name>`.
73
+ - `required_skills`: concrete BPMAX skills such as `bpmax-flow-template-editor`, `bpmax-form-template-editor`, `bpmax-list-template-editor`, `bpmax-nav-config-editor`, `bpmax-e2e-flow-test-operator`, or `bpmax-memory-protocol`.
74
+ - `object_lock`: one lock per mutable BPMAX object, for example `flow:<flow_type>`, `form-template:<id>`, `dataset:<id>`, `list-template:<id>`, `nav-config:<workspace>`, `workspace:<key>`, or `new-flow:<name>`.
73
75
  - `subagent_mode`: one of `none`, `readonly`, `draft-only`, or `exclusive-write`.
74
76
  - `dependencies`: upstream task IDs required before execution.
75
77
  - `evidence`: expected proof such as readback hash, browser screenshot, test report, or lint result.
@@ -81,10 +83,22 @@ Every AI task row must include:
81
83
  - UUID values are forbidden in BPMAX configuration taskbooks and subagent prompts. BPMAX 配置 ID 只能使用平台返回的数字 ID 或 `flow<number>`;新建前只能使用 `new-flow:<name>` 这种逻辑锁。
82
84
  - Do not use UUIDs for form-template, dataset, dataset-field, page-template, role, workspace, flow_type, temporary ids, object locks, or examples.
83
85
  - Approval matrix work must use separate tasks and object locks for: creating the matrix app, creating matrix rule records, filling real approver users, and connecting business flow `matrix_owner` / `cc_matrix`. Do not mark "matrix created" complete until both app configuration and rule data are verified.
86
+ - Navigation work must use a separate `nav-config:<workspace>` lock when it changes PC/H5 navigation or shortcuts.
87
+ - List-template work must include a lint and runtime evidence item: operation column, view/detail action, guarded delete action, matching icons, query safety, and browser list-page verification.
84
88
  - New flows must use `new-flow:<name>` until BPMAX returns a real `flow<number>`.
85
89
  - After creation, replace the lock with `flow:<generated flow_type>` before dependent write tasks continue.
86
90
  - Publishing, final sync, and cross-object integration must be single-threaded.
87
91
 
92
+ ## Navigation And List Gates
93
+
94
+ - Every full flow-configuration taskbook must explicitly declare one navigation strategy:
95
+ - `nav-config:included` when this work creates or updates the menu/shortcut entry.
96
+ - `nav-config:skipped:<reason>` when no navigation entry is required.
97
+ - `nav-config:deferred:<reason>` when navigation is intentionally left for a later task.
98
+ - If navigation is included, add an AI task or acceptance item using `bpmax-nav-config-editor`, `nav-config:<workspace>`, typed `bpmax-cli config nav-config ...`, readback evidence, and browser proof that the entry opens the target list/create/detail page.
99
+ - If list configuration is included, add an AI task or acceptance item using `bpmax-list-template-editor`, typed `bpmax-cli config list-template lint/build/submit/verify`, lint evidence, and browser proof that the real list page renders data, opens detail, and enforces delete visibility correctly.
100
+ - Do not mark a full process configuration complete when list lint or required navigation verification is missing.
101
+
88
102
  ## Prompt Gate
89
103
 
90
104
  Before dispatching any subagent prompt, run `lint-prompt`. The prompt must explicitly include:
@@ -98,6 +112,8 @@ Before dispatching any subagent prompt, run `lint-prompt`. The prompt must expli
98
112
  - `输入依赖`
99
113
  - `输出物`
100
114
  - `验收方式`
115
+ - `导航入口策略`
116
+ - `列表 lint`
101
117
  - `进度 CSV`
102
118
 
103
119
  If `lint-prompt` fails, revise the prompt. Do not dispatch a vague prompt and rely on the subagent to infer scope.
@@ -53,6 +53,8 @@ bpmax-cli config flow-app create --workspace <workspace> --form-work <form-work-
53
53
  - 筛选器
54
54
  - 导航
55
55
  - 也就是:`流程 -> 表单 -> 数据集字段 -> 数据集 -> 列表 -> 筛选器 -> 导航`
56
+ - 完整流程配置的配置面完成后,必须再调用 `bpmax-e2e-flow-test-operator` 做真实运行态验收;不能只用配置回读或最终 latest pull 宣布完成。
57
+ - 真实运行态验收至少覆盖:导航入口可见并可点击进入目标页、列表真实数据或明确空态原因、操作列进入详情、筛选器可用、创建页能加载并提交到预期环节。
56
58
  - 计划第一步固定先进入 `bpmax-config-latest` 并执行当前配置环境的 `bpmax-cli config latest pull <env>`;全部配置和验证结束后,最后一步固定再通过 `bpmax-config-latest` 执行一次同一环境的 latest pull。
57
59
  - 若首次同步因本地脏工作区失败,默认下一步尝试追加 `--allow-dirty` 重试;若重试任一步失败,立即停下并向用户说明冲突点,由用户决定是否继续。
58
60
 
@@ -71,6 +73,7 @@ bpmax-cli taskbook lint-prompt --prompt-source .codex/tmp/TASK_PROMPT.md
71
73
  ```
72
74
 
73
75
  - 任务书里必须声明对象锁、`required_skills`、`subagent_mode`、依赖和验收证据;对象锁冲突、prompt lint 失败、或真实 `flow_type` 未回填时不得分发写任务。
76
+ - 完整流程配置的任务书必须声明 `导航入口策略` 和 `列表 lint`:导航使用 `nav-config:included/skipped/deferred`,列表任务必须保留 `bpmax-cli config list-template lint` 结果和真实列表页验收作为证据。
74
77
  - `bpmax-cli taskbook progress init --source .codex/tmp/TASKBOOK.md --out .codex/tmp/taskbook-progress.csv` 生成的进度 CSV 是执行状态来源;不得直接改飞书文档当作进度事实。
75
78
 
76
79
  ## Mem0 协议
@@ -140,6 +143,7 @@ bpmax-cli taskbook lint-prompt --prompt-source .codex/tmp/TASK_PROMPT.md
140
143
  - 第一步:执行 `bpmax-cli config latest pull <env>`
141
144
  - 若失败:尝试追加 `--allow-dirty` 重试;若仍失败则停下问用户
142
145
  - 中间步骤:按本次配置范围组合子 skill
146
+ - 收口步骤:调用 `bpmax-e2e-flow-test-operator` 完成真实浏览器运行态验收
143
147
  - 最后一步:全部配置和验证完成后,再执行一次 `bpmax-cli config latest pull <env>`
144
148
  - 计划中要显式说明:
145
149
  - 哪些配置面属于本次范围
@@ -162,6 +166,7 @@ bpmax-cli taskbook lint-prompt --prompt-source .codex/tmp/TASK_PROMPT.md
162
166
  - 控件选型:[$form-control-library](../form-control-library/SKILL.md)
163
167
  - 最新配置同步:[$bpmax-config-latest](../bpmax-config-latest/SKILL.md)
164
168
  - AI 任务书:[$bpmax-ai-taskbook](../bpmax-ai-taskbook/SKILL.md)
169
+ - 运行态验收:[$bpmax-e2e-flow-test-operator](../bpmax-e2e-flow-test-operator/SKILL.md)
165
170
  - 若流程或表单需求依赖控件能力判断,先用 [$form-control-library](../form-control-library/SKILL.md)。
166
171
  - 若某一步要求浏览器已打开特定页面,而当前页面不对,必须先让用户打开到正确页面,不要盲目继续。
167
172
  - `flow-app create` 完成后,必须再执行工作区视角的只读验证:
@@ -10,7 +10,8 @@
10
10
  6. `bpmax-list-template-editor`
11
11
  7. `bpmax-filter-template-editor`
12
12
  8. `bpmax-nav-config-editor`
13
- 9. `bpmax-config-latest` -> `bpmax-cli config latest pull <env>`
13
+ 9. `bpmax-e2e-flow-test-operator` -> 真实浏览器运行态验收
14
+ 10. `bpmax-config-latest` -> `bpmax-cli config latest pull <env>`
14
15
 
15
16
  ## 范围到 skill 的映射
16
17
  - 流程模板:`bpmax-flow-template-editor`
@@ -20,6 +21,7 @@
20
21
  - 列表模板:`bpmax-list-template-editor`
21
22
  - 筛选器模板:`bpmax-filter-template-editor`
22
23
  - 导航配置:`bpmax-nav-config-editor`
24
+ - 运行态验收:`bpmax-e2e-flow-test-operator`
23
25
  - 控件判断:`form-control-library`
24
26
  - 环境同步:`bpmax-config-latest` -> `bpmax-cli config latest pull <env>`
25
27
 
@@ -58,3 +60,4 @@
58
60
  - 详情回读是否正常
59
61
  - 软删对象是否已排除在业务列表口径之外
60
62
  - 如果上一面仍存在“坏草稿 / 短暂延迟 / 页面与接口不一致”,不要直接推进到下一面。
63
+ - 完整流程配置完成后必须做最终浏览器运行态验收:导航入口可见并点击到目标页、列表真实数据或明确空态原因、操作列进入详情、筛选器可用、创建页能加载并提交到预期环节。
@@ -118,7 +118,7 @@ description: "用于在 BPMAX 的工作区导航配置页面中创建或编辑 P
118
118
  - 读取线上真实结构
119
119
  - 辅助定位 icon / 权限 / 页面行为
120
120
  - 最终刷新回页验收
121
- - 默认不再把 `submitData()` 当作首选提交路径;脚本直提 `/api/configuration` 是默认提交路径。
121
+ - 不得把 `submitData()` 或脚本直提 `/api/configuration` 当作提交路径;它们只用于理解页面结构和验收行为,真实写入必须走 typed CLI。
122
122
 
123
123
  ### 3. 读取四类配置
124
124
  - 优先从页面运行时拿四类配置,而不是只看 DOM。
@@ -181,6 +181,7 @@ description: "用于在 BPMAX 的工作区导航配置页面中创建或编辑 P
181
181
  - H5 流程页:`/pages/index/project?flow_type=...`
182
182
  - PC 工作台:`/myProject`
183
183
  - H5 工作台:应优先参考当前工作区已有移动端可用路径
184
+ - 如果目标流程有非空 `flow_key`,PC/H5 路径都必须保留 `flow_key` 参数,例如 `/project?flow_type=<flowType>&flow_key=<flowKey>`;不要让导航入口落到默认流程列表。
184
185
  - 外链不要自动映射到 H5 内页;先按原路径保留,必要时提示用户。
185
186
  - 如果用户提供的是跨工作区路径,默认不擅自改写 workspace 前缀。
186
187
 
@@ -277,7 +278,7 @@ description: "用于在 BPMAX 的工作区导航配置页面中创建或编辑 P
277
278
  - 如果脚本 `verify_nav_config.py` 已通过:
278
279
  - `zhCN` 语言默认状态应视为 `runtime_pending`
279
280
  - 非 `zhCN` 语言默认状态应视为 `manual_followup_required`
280
- - 如果用户要求验收,再进入工作区首页或移动端首页检查渲染结果。
281
+ - 导航变更必须进入工作区首页或移动端首页检查渲染结果;至少确认入口可见、点击后 URL 带有正确 `flow_type` / `flow_key`,并能进入目标列表、创建页或详情页。
281
282
  - 验证通过后,把新的路径映射、权限模型和入口组织规则写回 Mem0。
282
283
 
283
284
  ## 输出要求
@@ -62,7 +62,9 @@ GET /api/group/sub_groups?group_ids=<id1,id2>&with_full_info=0
62
62
  其他三类仅替换 `type` 和 `content` 字段名。
63
63
 
64
64
  ## 推荐调用顺序
65
- 1. 从页面运行时读取四类配置。
66
- 2. 在内存里同时更新四类数据。
67
- 3. 优先调用页面 `submitData()`。
68
- 4. 保存后再调用 `getData()` 回读。
65
+ 1. 从页面运行时读取四类配置和请求骨架。
66
+ 2. 在本地 work 文件中同时更新四类数据。
67
+ 3. 执行 `bpmax-cli config nav-config lint/build/submit`,先 dry-run,再用精确 `--confirm` 正式提交。
68
+ 4. 提交后回读四类配置,并在浏览器首页点击入口验证。
69
+
70
+ `submitData()`、页面 `$post` 或直接 `POST/PUT /api/configuration` 只可用于理解页面行为,不得作为真实写入路径。
@@ -7,14 +7,19 @@
7
7
 
8
8
  ```text
9
9
  /project?flow_type=<flowType>
10
+ /project?flow_type=<flowType>&flow_key=<flowKey>
10
11
  ```
11
12
 
12
13
  - H5:
13
14
 
14
15
  ```text
15
16
  /pages/index/project?flow_type=<flowType>
17
+ /pages/index/project?flow_type=<flowType>&flow_key=<flowKey>
16
18
  ```
17
19
 
20
+ - `flow_key` 为空时省略;非空时必须保留。多变体流程如果丢掉 `flow_key`,导航会进入默认流程列表,属于验收失败。
21
+ - 浏览器验收必须点击入口后确认 URL 中的 `flow_type` 和 `flow_key` 与目标流程一致。
22
+
18
23
  ### 控制台 / 看板 / 外链
19
24
  - 不要机械把所有 PC 路径改成 `/pages/index/...`
20
25
  - 如果当前工作区已有同类移动端路径,优先复用现有样例。