bpmax-cli 0.1.44-beta.9 → 0.2.1-beta.1
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 +49 -0
- package/dist/bin.js +10757 -4313
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
- package/skills/bpmax-ai-taskbook/SKILL.md +226 -0
- package/skills/bpmax-ai-taskbook/agents/openai.yaml +3 -0
- package/skills/bpmax-ai-taskbook/references/taskbook-template.md +68 -0
- package/skills/bpmax-approval-matrix/SKILL.md +87 -0
- package/skills/bpmax-cli/SKILL.md +3 -0
- package/skills/bpmax-dataset-field-template-editor/SKILL.md +3 -0
- package/skills/bpmax-dataset-template-editor/references/pre-process-script-example-catalog.md +8 -8
- package/skills/bpmax-e2e-flow-config-orchestrator/SKILL.md +26 -0
- package/skills/bpmax-e2e-flow-config-orchestrator/references/orchestration-matrix.md +4 -1
- package/skills/bpmax-e2e-flow-test-operator/SKILL.md +160 -3
- package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale.json +4 -4
- package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale_final_v2.json +4 -4
- package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale_main.json +4 -4
- package/skills/bpmax-e2e-flow-test-operator/profiles/negative_sale_region.json +4 -4
- package/skills/bpmax-e2e-flow-test-operator/references/ai-test-suite.md +333 -0
- package/skills/bpmax-e2e-flow-test-operator/references/filter-field-discovery.md +2 -2
- package/skills/bpmax-e2e-flow-test-operator/references/negative-sale-api-matrix.md +3 -3
- package/skills/bpmax-e2e-flow-test-operator/references/profile-schema.md +6 -4
- package/skills/bpmax-e2e-flow-test-operator/scripts/flow_test_profile.py +11 -11
- package/skills/bpmax-flow-template-editor/SKILL.md +30 -2
- package/skills/bpmax-flow-template-editor/references/lessons-from-price-plan-flow.md +3 -3
- package/skills/bpmax-flow-template-editor/references/matrix-flow-form-nav-collaboration.md +7 -4
- package/skills/bpmax-flow-template-editor/references/project-create-runtime-gotchas.md +54 -2
- package/skills/bpmax-flow-template-editor/references/script-review-hard-rules.md +3 -0
- package/skills/bpmax-form-template-editor/SKILL.md +23 -9
- package/skills/bpmax-list-template-editor/SKILL.md +10 -0
- package/skills/bpmax-list-template-editor/references/content-config-shape.md +17 -0
- package/skills/bpmax-list-template-editor/references/list-template-api-workflow.md +9 -4
- package/skills/bpmax-list-template-editor/references/runtime-verified-workflow.md +17 -10
- package/skills/bpmax-list-template-editor/references/special-formats.md +17 -0
- package/skills/bpmax-nav-config-editor/SKILL.md +6 -3
- package/skills/bpmax-nav-config-editor/references/api-workflow.md +6 -4
- package/skills/bpmax-nav-config-editor/references/path-mapping-rules.md +5 -0
- package/skills/bpmax-plugin-config/SKILL.md +42 -0
- package/skills/bpmax-project/SKILL.md +16 -1
- package/skills/bpmax-project-detail-template-editor/SKILL.md +26 -0
- package/skills/bpmax-project-detail-template-editor/references/module-catalog-and-config-notes.md +73 -0
- package/skills/bpmax-workspace-editor/SKILL.md +78 -0
- package/skills/bpmax-workspace-editor/agents/openai.yaml +4 -0
- package/skills/form-control-library/references/form-controls.md +37 -37
package/package.json
CHANGED
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "bpmax-ai-taskbook"
|
|
3
|
+
description: "Use when BPMAX configuration work needs an AI implementation taskbook, AI任务方案, 任务书, 任务拆解, subagent dispatch prompts, progress CSV, or object-lock review before editing flows, templates, datasets, roles, navigation, workspaces, or E2E assets."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# BPMAX AI Taskbook
|
|
7
|
+
|
|
8
|
+
## Core Rule
|
|
9
|
+
|
|
10
|
+
Use a taskbook before dispatching broad BPMAX implementation work. The taskbook is a local planning and safety gate; it is not a BPMAX configuration write path.
|
|
11
|
+
|
|
12
|
+
## When To Use
|
|
13
|
+
|
|
14
|
+
- The user asks for an AI task plan, taskbook, implementation task table, subagent split, or progress tracking.
|
|
15
|
+
- 用户要求 AI任务方案、任务书、任务拆解、实施任务表、subagent 分工、进度表或 P0/P1 review。
|
|
16
|
+
- The work spans multiple BPMAX objects such as flow, form, dataset, list, filter, detail, dashboard, role, navigation, workspace, or E2E cases.
|
|
17
|
+
- The work may use subagents or parallel review.
|
|
18
|
+
- A new flow/app/workspace may be created and the real platform-generated ID must be fed back into later tasks.
|
|
19
|
+
- The user asks for P0/P1 review before commit or before continuing configuration.
|
|
20
|
+
|
|
21
|
+
Do not use this for a single narrow read-only query, one-field edit, or pure CLI auth/setup task.
|
|
22
|
+
|
|
23
|
+
## Config Skill / Capability Basis Gate
|
|
24
|
+
|
|
25
|
+
Taskbooks are not free-form work breakdowns. Before writing each configuration task, read or explicitly reference the relevant BPMAX configuration skill and the typed CLI adapter surface:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
bpmax-cli config adapters --format json
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Each task that touches a BPMAX configuration object must include all of these in `required_skills`, `object_lock`, `evidence`, or `notes`:
|
|
32
|
+
|
|
33
|
+
- the matching configuration skill, such as `bpmax-flow-template-editor`, `bpmax-form-template-editor`, `bpmax-list-template-editor`, `bpmax-dataset-field-template-editor`, `bpmax-nav-config-editor`, or `bpmax-workspace-editor`
|
|
34
|
+
- the typed CLI domain commands used for that object, for example `bpmax-cli config form-template lint/build/submit/verify`
|
|
35
|
+
- the object lock for that exact domain, such as `form-template:<id>`, `list-template:<id>`, `dataset-field:<id>`, `nav-config:<workspace>`, or `workspace-flow:<workspace>`
|
|
36
|
+
- write tasks must mention the `bpmax-cli config adapters --format json` capability/adapter check
|
|
37
|
+
- readonly tasks may use export/readback evidence only, but must still cite the relevant skill and object scope
|
|
38
|
+
- domain-specific constraints from the skill, for example:
|
|
39
|
+
- flow-template: `project_after_create_path`, code-mode `message_template`, `matrix_owner`, publish/readback behavior
|
|
40
|
+
- form-template: field schema, `raw.value`, `layout`, `sub_form`, `form-template inspect`
|
|
41
|
+
- list-template: operation column, detail/view action, guarded delete action, icon match, query safety, browser list-page proof
|
|
42
|
+
- project-detail-template: default detail template resolution and runtime detail-page proof
|
|
43
|
+
- dataset-field: `source_table`, `source_field`, `source_fk` / source mapping
|
|
44
|
+
- nav-config: PC/H5 entries, shortcut entry, browser proof that the entry opens the target page
|
|
45
|
+
|
|
46
|
+
If any task lacks the matching skill/capability basis, `bpmax-cli taskbook lint` / `lint-prompt` must fail and the taskbook must be revised before dispatch.
|
|
47
|
+
|
|
48
|
+
For the full implementation taskbook shape, use [references/taskbook-template.md](./references/taskbook-template.md). The template is the canonical skill-side checklist for phases, object locks, typed CLI evidence, and progress CSV setup.
|
|
49
|
+
|
|
50
|
+
Taskbook lint is implemented in the TypeScript CLI core. Do not add or call Python lint scripts for taskbook validation. JSON lint output uses stable English fields such as `code`, `rule_id`, `domain`, and `path`; user-facing `message`, `suggestion`, and normal text output are Chinese.
|
|
51
|
+
|
|
52
|
+
## Configuration Surface Coverage
|
|
53
|
+
|
|
54
|
+
When a requirement touches an end-to-end BPMAX configuration, the taskbook must explicitly include or intentionally skip these surfaces:
|
|
55
|
+
|
|
56
|
+
- flow-template: `bpmax-flow-template-editor`, `flow:<flow_type>` or `new-flow:<name>`, typed `config flow-template export/lint/build/submit/verify`, plus `project_after_create_path`, code-mode `message_template`, `matrix_owner`, publish/readback behavior.
|
|
57
|
+
- form-template: `bpmax-form-template-editor`, `form-template:<id>`, typed `config form-template export/lint/build/submit/verify`, plus field schema, `raw.value`, `layout`, `sub_form`, and `form-template inspect`.
|
|
58
|
+
- list-template: `bpmax-list-template-editor`, `list-template:<id>`, typed `config list-template lint/build/submit/verify`, plus operation column, view/detail action, guarded delete action, icon, query safety, and browser list-page proof.
|
|
59
|
+
- filter-template: `bpmax-filter-template-editor`, `filter-template:<id>`, typed `config filter-template lint/build/submit/verify`, plus filter fields and sample hit proof.
|
|
60
|
+
- project-detail-template: `bpmax-project-detail-template-editor`, `project-detail-template:<id>`, typed `config project-detail-template lint/build/submit/verify`, plus default detail template resolution and runtime detail-page proof.
|
|
61
|
+
- step-detail-template: `bpmax-flow-template-editor`, `step-detail-template:<id>`, flow node readback plus `flow_page_template.type=6` validation; do not misclassify node processing templates as project-detail-template.
|
|
62
|
+
- console-template: `bpmax-console-template-editor`, `console-template:<id>`, typed `config console-template lint/build/submit/verify`, plus module/data-set-field/runtime dashboard proof.
|
|
63
|
+
- dataset and dataset-field: `bpmax-dataset-template-editor` / `bpmax-dataset-field-template-editor`, with source mapping and publish/readback evidence.
|
|
64
|
+
- nav-config: `bpmax-nav-config-editor`, `nav-config:<workspace>`, typed `config nav-config lint/build/submit/verify`, four record types, and browser proof that PC/H5 entries open the target page.
|
|
65
|
+
- e2e/test-suite: `bpmax-e2e-flow-test-operator`, `e2e:<scenario>` or `test-suite:<scenario>`, test-suite lint/promote evidence, realistic business test data, browser proof, and failure update loop.
|
|
66
|
+
|
|
67
|
+
## Compact Fix Taskbook
|
|
68
|
+
|
|
69
|
+
When a test run finds one configuration defect and the user only needs a repair taskbook, use this compact template instead of the full implementation template. It is still linted before execution, but it should stay short:
|
|
70
|
+
|
|
71
|
+
```markdown
|
|
72
|
+
# BPMAX 配置缺陷修复任务书
|
|
73
|
+
|
|
74
|
+
## 目标与边界
|
|
75
|
+
- defect: <one-sentence defect>
|
|
76
|
+
- workspace: <workspace>
|
|
77
|
+
- flow_type: <flow_type or none>
|
|
78
|
+
- requested_fix: <exact requested fix>
|
|
79
|
+
- out_of_scope: <what must not be touched>
|
|
80
|
+
|
|
81
|
+
## 对象锁表
|
|
82
|
+
| lock | mode | reason |
|
|
83
|
+
| --- | --- | --- |
|
|
84
|
+
| <domain>:<numeric_id_or_flow_type> | exclusive-write | <why this object must change> |
|
|
85
|
+
|
|
86
|
+
## 停机点
|
|
87
|
+
- capability 缺失即停止。
|
|
88
|
+
- latest/readback 基线漂移即停止。
|
|
89
|
+
- lint 或浏览器回归失败即停止。
|
|
90
|
+
|
|
91
|
+
## 验收门禁
|
|
92
|
+
- typed CLI lint/build/submit/verify 通过。
|
|
93
|
+
- 浏览器真实页面回归通过,或明确标记未执行原因。
|
|
94
|
+
- 若涉及列表,必须检查操作列、查看/详情、删除可见性、icon、查询安全。
|
|
95
|
+
- 若涉及导航,必须检查入口可见并能打开目标页面。
|
|
96
|
+
|
|
97
|
+
## 进度 CSV
|
|
98
|
+
task_id,status,evidence,next
|
|
99
|
+
T01,未开始,,
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Use compact taskbooks for “测试发现一个配置缺陷,需要形成修复任务书”, “只修一个列表/详情/表单 lint 问题”, or “P1 小修复需要对象锁和验收门禁”. Use the full template when work spans multiple objects, new flow/app/workspace creation, approval matrix lifecycle, or subagent parallel execution.
|
|
103
|
+
|
|
104
|
+
## Commands
|
|
105
|
+
|
|
106
|
+
Create the taskbook:
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
bpmax-cli taskbook init --out .codex/tmp/TASKBOOK.md
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Lint the taskbook before execution:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
bpmax-cli taskbook lint --source .codex/tmp/TASKBOOK.md
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
For taskbooks that do not create or edit flows, keep the same content gates but skip the generated `flow_type` rule:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
bpmax-cli taskbook lint --source .codex/tmp/TASKBOOK.md --allow-generated-flow-type-missing
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Lint each subagent or handoff prompt before dispatch:
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
bpmax-cli taskbook lint-prompt --prompt-source .codex/tmp/TASK_PROMPT.md
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Initialize progress tracking:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
bpmax-cli taskbook progress init --source .codex/tmp/TASKBOOK.md --out .codex/tmp/taskbook-progress.csv
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## Required Content
|
|
137
|
+
|
|
138
|
+
The taskbook must include:
|
|
139
|
+
|
|
140
|
+
- `目标与边界`
|
|
141
|
+
- `并行拆解硬规则`
|
|
142
|
+
- `阶段总览`
|
|
143
|
+
- `对象锁表`
|
|
144
|
+
- `AI 最小任务单元`
|
|
145
|
+
- `验收门禁`
|
|
146
|
+
- `导航入口策略`
|
|
147
|
+
- `列表 lint`
|
|
148
|
+
- `停机点`
|
|
149
|
+
- `进度 CSV`
|
|
150
|
+
- `配置 Skill / Capability 依据表`
|
|
151
|
+
|
|
152
|
+
Every AI task row must include:
|
|
153
|
+
|
|
154
|
+
- `business_goal`: concrete business outcome, not just a technical object name.
|
|
155
|
+
- `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`.
|
|
156
|
+
- `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>`.
|
|
157
|
+
- `subagent_mode`: one of `none`, `readonly`, `draft-only`, or `exclusive-write`.
|
|
158
|
+
- `dependencies`: upstream task IDs required before execution.
|
|
159
|
+
- `evidence`: expected proof such as readback hash, browser screenshot, test report, or lint result.
|
|
160
|
+
- For configuration write tasks, `evidence` or `notes` must include `bpmax-cli config adapters --format json`, the matching typed CLI lint/build/submit/verify commands, and the domain-specific constraints from the relevant skill.
|
|
161
|
+
|
|
162
|
+
## Object Lock Rules
|
|
163
|
+
|
|
164
|
+
- Duplicate object locks must not be edited in parallel.
|
|
165
|
+
- Read-only tasks may run in parallel, but must not save, publish, or submit payloads.
|
|
166
|
+
- UUID values are forbidden in BPMAX configuration taskbooks and subagent prompts. BPMAX 配置 ID 只能使用平台返回的数字 ID 或 `flow<number>`;新建前只能使用 `new-flow:<name>` 这种逻辑锁。
|
|
167
|
+
- Do not use UUIDs for form-template, dataset, dataset-field, page-template, role, workspace, flow_type, temporary ids, object locks, or examples.
|
|
168
|
+
- 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.
|
|
169
|
+
- Navigation work must use a separate `nav-config:<workspace>` lock when it changes PC/H5 navigation or shortcuts.
|
|
170
|
+
- 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.
|
|
171
|
+
- Form-template work must include field schema/order evidence when forms or subforms change; use `bpmax-cli config form-template inspect --field <key>` when raw value order or rendered order is part of the risk.
|
|
172
|
+
- Dataset-field work must include source mapping evidence (`source_table`, `source_field`, `source_fk`) before submit.
|
|
173
|
+
- New flows must use `new-flow:<name>` until BPMAX returns a real `flow<number>`.
|
|
174
|
+
- After creation, replace the lock with `flow:<generated flow_type>` before dependent write tasks continue.
|
|
175
|
+
- Publishing, final sync, and cross-object integration must be single-threaded.
|
|
176
|
+
|
|
177
|
+
## Navigation And List Gates
|
|
178
|
+
|
|
179
|
+
- Every full flow-configuration taskbook must explicitly declare one navigation strategy:
|
|
180
|
+
- `nav-config:included` when this work creates or updates the menu/shortcut entry.
|
|
181
|
+
- `nav-config:skipped:<reason>` when no navigation entry is required.
|
|
182
|
+
- `nav-config:deferred:<reason>` when navigation is intentionally left for a later task.
|
|
183
|
+
- 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.
|
|
184
|
+
- 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.
|
|
185
|
+
- Do not mark a full process configuration complete when list lint or required navigation verification is missing.
|
|
186
|
+
|
|
187
|
+
## Prompt Gate
|
|
188
|
+
|
|
189
|
+
Before dispatching any subagent prompt, run `lint-prompt`. The prompt must explicitly include:
|
|
190
|
+
|
|
191
|
+
- `业务目标场景`
|
|
192
|
+
- `required_skills`
|
|
193
|
+
- `对象锁`
|
|
194
|
+
- `subagent_mode`
|
|
195
|
+
- `允许操作`
|
|
196
|
+
- `不得修改`
|
|
197
|
+
- `输入依赖`
|
|
198
|
+
- `输出物`
|
|
199
|
+
- `验收方式`
|
|
200
|
+
- `导航入口策略`
|
|
201
|
+
- `列表 lint`
|
|
202
|
+
- `进度 CSV`
|
|
203
|
+
|
|
204
|
+
If `lint-prompt` fails, revise the prompt. Do not dispatch a vague prompt and rely on the subagent to infer scope.
|
|
205
|
+
|
|
206
|
+
## Execution Gate
|
|
207
|
+
|
|
208
|
+
Only after taskbook lint and prompt lint pass:
|
|
209
|
+
|
|
210
|
+
1. Run the latest configuration sync required by the target workspace.
|
|
211
|
+
2. Execute tasks according to object locks and dependencies.
|
|
212
|
+
3. Use typed `bpmax-cli config ...` commands for all BPMAX writes.
|
|
213
|
+
4. Update the progress CSV after each task.
|
|
214
|
+
5. Stop on capability gaps, baseline drift, object-lock conflict, failed lint, or failed browser/runtime verification.
|
|
215
|
+
|
|
216
|
+
不得把 taskbook 当作 BPMAX 配置写入命令。Taskbook commands are local file gates; they do not write BPMAX configuration and do not replace typed adapters.
|
|
217
|
+
|
|
218
|
+
## Memory
|
|
219
|
+
|
|
220
|
+
Start non-trivial taskbooks by consulting `bpmax-memory-protocol` or:
|
|
221
|
+
|
|
222
|
+
```bash
|
|
223
|
+
bpmax-cli memory search --scope all --query "<workspace> <flow_type> taskbook implementation plan" --format json
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
After verified completion, write only reusable `decision`, `task_learning`, `anti_pattern`, or `session_state` memory. Do not write API keys, passwords, cookies, tokens, verification codes, phone numbers, full payloads, or large raw API responses.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
name: bpmax-ai-taskbook
|
|
2
|
+
description: Generate and lint BPMAX AI implementation taskbooks with object locks, typed CLI capability evidence, and execution progress CSV guidance.
|
|
3
|
+
default_prompt: "使用 $bpmax-ai-taskbook 生成或审查 BPMAX AI 实施任务书。必须检查对象锁、配置 skill、typed CLI capability/adapters、验收门禁和进度 CSV。"
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# BPMAX AI Taskbook Template
|
|
2
|
+
|
|
3
|
+
Use this template when BPMAX configuration work spans multiple objects or agents.
|
|
4
|
+
The taskbook defines the execution plan; runtime progress belongs in a separate CSV.
|
|
5
|
+
|
|
6
|
+
## 目标与边界
|
|
7
|
+
|
|
8
|
+
- 业务目标:
|
|
9
|
+
- 工作区:
|
|
10
|
+
- 范围内对象:
|
|
11
|
+
- 不得修改:
|
|
12
|
+
- 线上基线来源:
|
|
13
|
+
- 验收方式:
|
|
14
|
+
|
|
15
|
+
## 配置 Skill / Capability 依据
|
|
16
|
+
|
|
17
|
+
Before writing each task, identify the matching BPMAX configuration skill and typed CLI domain.
|
|
18
|
+
Write tasks must include `bpmax-cli config adapters --format json` evidence.
|
|
19
|
+
|
|
20
|
+
| 配置面 | object_lock | required_skills | typed CLI evidence | 专项约束 |
|
|
21
|
+
|---|---|---|---|---|
|
|
22
|
+
| 流程模板 | `flow:<flow_type>` / `new-flow:<name>` | `bpmax-flow-template-editor` | `config flow-template export/lint/build/submit/verify` | `project_after_create_path`、code-mode `message_template`、`matrix_owner`、发布回读 |
|
|
23
|
+
| 表单模板 | `form-template:<id>` | `bpmax-form-template-editor`、`form-control-library` | `config form-template export/lint/build/submit/verify` | 字段 schema、表单顺序、`raw.value`、`layout`、`sub_form`、`inspect` |
|
|
24
|
+
| 列表模板 | `list-template:<id>` | `bpmax-list-template-editor` | `config list-template lint/build/submit/verify` | 操作列、详情动作、删除 gate、icon、查询安全、真实列表页 |
|
|
25
|
+
| 筛选器 | `filter-template:<id>` | `bpmax-filter-template-editor` | `config filter-template lint/build/submit/verify` | 筛选字段、查询条件、样本命中 |
|
|
26
|
+
| 项目详情模板 | `project-detail-template:<id>` | `bpmax-project-detail-template-editor` | `config project-detail-template lint/build/submit/verify` | 默认详情模板解析、运行页 proof |
|
|
27
|
+
| 环节模板 | `step-detail-template:<id>` | `bpmax-flow-template-editor` | flow 节点回读 + 页面模板回读 | `flow_page_template.type=6`、节点动作适配 |
|
|
28
|
+
| 看板模板 | `console-template:<id>` | `bpmax-console-template-editor` | `config console-template lint/build/submit/verify` | 指标、模块、数据集字段、运行页 proof |
|
|
29
|
+
| 数据集 | `dataset:<id>` | `bpmax-dataset-template-editor` | `config dataset lint/build/submit/verify` | 预处理脚本、字段发布、刷新 |
|
|
30
|
+
| 数据集字段 | `dataset-field:<id>` | `bpmax-dataset-field-template-editor` | `config dataset-field lint/build/submit/verify` | `source_table/source_field/source_fk`、字段映射 |
|
|
31
|
+
| 导航配置 | `nav-config:<workspace>` | `bpmax-nav-config-editor` | `config nav-config lint/build/submit/verify` | PC/H5 导航、快捷入口、浏览器打开 |
|
|
32
|
+
| 工作区流程 | `workspace-flow:<workspace>` | `bpmax-workspace-editor` | `config workspace-flow export/lint/build/submit/verify` | 全量替换,提交前重新 export 并 merge |
|
|
33
|
+
| E2E | `e2e:<scenario>` | `bpmax-e2e-flow-test-operator` | `test-suite lint/promote`、浏览器证据 | 真实业务数据、截图、失败更新循环 |
|
|
34
|
+
|
|
35
|
+
## 阶段模型
|
|
36
|
+
|
|
37
|
+
| 阶段 | 执行方式 | 目标 |
|
|
38
|
+
|---|---|---|
|
|
39
|
+
| 阶段 0 | 单线 | 线上基线确认、范围 gate、初始对象清单 |
|
|
40
|
+
| 阶段 1 | 多线只读并行 | 流程、表单、数据集、控件、截图、验证样例调研 |
|
|
41
|
+
| 阶段 2 | 单线 | 合并调研结果,建立对象锁表和最终任务队列 |
|
|
42
|
+
| 阶段 3 | 对象独占配置 | 仅对象锁互不重复的写任务可并行 |
|
|
43
|
+
| 阶段 4 | 单线 | 发布、集成、导航挂载、线上读回 |
|
|
44
|
+
| 阶段 5 | 多线只读验证 | 表单、流程、自动化、列表/详情、筛选器、导航入口、数据回读 |
|
|
45
|
+
| 阶段 6 | 单线 | 汇总证据、同步配置、沉淀记忆或 skill |
|
|
46
|
+
|
|
47
|
+
## AI 最小任务表
|
|
48
|
+
|
|
49
|
+
| task_id | status | phase | parallel_type | subagent_mode | business_goal | required_skills | object_lock | dependencies | owner | evidence | notes |
|
|
50
|
+
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
51
|
+
| T00 | 未开始 | 0 | 单线 | none | 确认线上基线和范围 | bpmax-e2e-flow-config-orchestrator | global:baseline | | 主线程 | latest/readback proof | 不修改配置 |
|
|
52
|
+
|
|
53
|
+
## 停机点
|
|
54
|
+
|
|
55
|
+
- 线上基线无法确认。
|
|
56
|
+
- 对象锁冲突。
|
|
57
|
+
- capability / adapter 缺失。
|
|
58
|
+
- typed CLI lint/build/submit/verify 任一失败。
|
|
59
|
+
- 浏览器真实页面验收失败或缺证据。
|
|
60
|
+
|
|
61
|
+
## 进度 CSV
|
|
62
|
+
|
|
63
|
+
执行前创建单独 CSV,飞书或 Markdown 任务书不承载运行态进度。
|
|
64
|
+
|
|
65
|
+
```csv
|
|
66
|
+
task_id,status,evidence,next
|
|
67
|
+
T00,未开始,,
|
|
68
|
+
```
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "bpmax-approval-matrix"
|
|
3
|
+
description: "Use when BPMAX work involves approval matrix, role matrix, department matrix, matrix_owner, cc_matrix, matrix rule records, approver mapping, seed rules, or connecting a business flow to matrix-based owners or CC users."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# BPMAX Approval Matrix
|
|
7
|
+
|
|
8
|
+
## Core Boundary
|
|
9
|
+
|
|
10
|
+
审批矩阵不是一个单一配置项。必须把生命周期拆成四段:
|
|
11
|
+
|
|
12
|
+
1. 创建矩阵应用:矩阵流程、表单、列表、筛选器、工作区绑定和导航入口。
|
|
13
|
+
2. 创建矩阵规则记录:在线上矩阵流程中创建项目记录。
|
|
14
|
+
3. 填充真实审批人:规则记录里的用户字段必须是真实用户对象或用户 ID,不得是示例文本、空值或本地占位。
|
|
15
|
+
4. 主流程接入矩阵:业务流程节点配置 `matrix_owner` 或 `cc_matrix`,并验证命中规则后能返回审批人。
|
|
16
|
+
|
|
17
|
+
只有第 1 段完成时,不能宣称“审批矩阵已可用”。
|
|
18
|
+
|
|
19
|
+
## Required Skills
|
|
20
|
+
|
|
21
|
+
- 先用 `bpmax-ai-taskbook` 拆任务和对象锁。
|
|
22
|
+
- 矩阵应用配置用 `bpmax-e2e-flow-config-orchestrator`、`bpmax-flow-template-editor`、`bpmax-form-template-editor`、`bpmax-list-template-editor`、`bpmax-filter-template-editor`。
|
|
23
|
+
- 规则记录创建用 `bpmax-project`,默认走 `bpmax-cli project create --json ...` 的安全引导或 handoff。
|
|
24
|
+
- 浏览器验证用 `bpmax-e2e-flow-test-operator`。
|
|
25
|
+
|
|
26
|
+
## Hard Rules
|
|
27
|
+
|
|
28
|
+
- UUID 禁止用于任何矩阵配置 ID、规则记录 ID、表单模板 ID、数据集 ID、页面模板 ID 或临时 object lock。
|
|
29
|
+
- 矩阵流程必须是 `category = "matrix"`。
|
|
30
|
+
- 矩阵录入表单挂在 `flow.data.meta.form_template`,不是普通节点 `node.form_template`。
|
|
31
|
+
- `flow-app create` 只创建矩阵应用配置,不会创建矩阵规则记录。
|
|
32
|
+
- `seed-rules.json` 只是本地规则种子,不代表线上已有规则数据。
|
|
33
|
+
- seed 缺少真实审批人用户值时,不允许进入主流程接入验收。
|
|
34
|
+
- `workspace-flow` 是全量替换接口;提交前必须重新 export 当前绑定并 merge,不能复用旧 dry-run payload。
|
|
35
|
+
|
|
36
|
+
## Minimal Workflow
|
|
37
|
+
|
|
38
|
+
1. Baseline:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
bpmax-cli config latest pull <env> --profile <profile> --format json
|
|
42
|
+
bpmax-cli taskbook lint --source .codex/tmp/TASKBOOK.md
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
2. Matrix app:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
bpmax-cli config flow-app create --workspace <workspace> --form-work <matrix-form-work> --flow-work <matrix-flow-work> --name "<matrix name>"
|
|
49
|
+
bpmax-cli config flow-app create --workspace <workspace> --form-work <matrix-form-work> --flow-work <matrix-flow-work> --name "<matrix name>" --confirm "create flow-app <matrix name> in <workspace>"
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
3. Matrix rule records:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
bpmax-cli matrix seed <matrix_flow_type> --profile <profile> --rules @seed-rules.json --approver-field <owner_field> --format json
|
|
56
|
+
bpmax-cli project create --profile <profile> --flow-type <matrix_flow_type> --json '{"form":{...}}' --format json
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
`matrix seed` 只做本地校验和输出 `project create` checklist,不写线上项目记录。If CLI returns `handoff: true`, use the returned page link. Do not force `--no-interactive` unless the form is proven safe for direct create.
|
|
60
|
+
|
|
61
|
+
4. Business flow consumption:
|
|
62
|
+
|
|
63
|
+
- Owner: set `node.auto_range_type = "matrix"` and configure `node.matrix_owner.flow` plus `node.matrix_owner.script`.
|
|
64
|
+
- CC: set `node.cc_type = "matrix"` and configure `node.cc_matrix.flow` plus `node.cc_matrix.script`.
|
|
65
|
+
- Scripts must return user objects, user IDs, or arrays of them.
|
|
66
|
+
|
|
67
|
+
5. Verification:
|
|
68
|
+
|
|
69
|
+
- Matrix app is visible in the target workspace.
|
|
70
|
+
- Matrix rule project exists online with real approver fields.
|
|
71
|
+
- Business flow create/submit reaches the matrix-owned step.
|
|
72
|
+
- Runtime owner/CC resolves to the expected user.
|
|
73
|
+
- If owner resolution is unclear, run the read-only diagnostic first:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
bpmax-cli matrix owner-resolve --profile <profile> --flow-type <business_flow_type> --node <node_id> --project-id <project_id> --format json
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
The diagnostic only reports node-side `matrix_owner` config paths and project form context. It does not create matrix rule records and does not replace browser/runtime E2E verification.
|
|
80
|
+
|
|
81
|
+
## Stop Conditions
|
|
82
|
+
|
|
83
|
+
- Any required ID is UUID-shaped.
|
|
84
|
+
- Matrix app exists but no rule records exist.
|
|
85
|
+
- Rule records exist but approver fields are empty or not real BPMAX users.
|
|
86
|
+
- `project create --no-interactive` returns 500; switch to CLI handoff diagnostics instead of raw API.
|
|
87
|
+
- Business flow `matrix_owner.flow` points to a flow that is not `category = "matrix"`.
|
|
@@ -41,11 +41,14 @@ bpmax-cli init --agent <agent> --channel feishu --url "<BPMAX_URL>" --name local
|
|
|
41
41
|
- 刷新配置库、同步最新配置、latest pull:读 `../bpmax-config-latest/SKILL.md`
|
|
42
42
|
- 流程列表、流程选项、流程详情:读 `../bpmax-flow/SKILL.md`
|
|
43
43
|
- 项目列表、项目详情、我的待办、最小创建:读 `../bpmax-project/SKILL.md`
|
|
44
|
+
- 审批矩阵、矩阵规则 seed、matrix_owner / cc_matrix:读 `../bpmax-approval-matrix/SKILL.md`
|
|
44
45
|
- 环节推进、审批通过/拒绝、完成 step:读 `../bpmax-project/SKILL.md`,必须使用 `step context/actions/requirements/submit` 的安全链路
|
|
45
46
|
- 系统内页面 URL 生成:先读 `../bpmax-shared/SKILL.md` 的“系统内 URL 生成”
|
|
46
47
|
- 本地 schema manifest:读 `../bpmax-schema/SKILL.md`
|
|
47
48
|
- 服务端能力白名单:先用 `capabilities status/refresh` 查看当前 profile 已授权 capability,不要绕过白名单手写 raw API
|
|
48
49
|
- BPMAX Business Skills 查询、同步、安装、更新、卸载:读 `../bpmax-business-skill/SKILL.md`
|
|
50
|
+
- AI 任务方案、任务书、任务拆解、subagent 分工、实施任务表、进度 CSV:读 `../bpmax-ai-taskbook/SKILL.md`
|
|
51
|
+
- 审批矩阵、角色矩阵、矩阵规则记录、`matrix_owner`、`cc_matrix`、规则 seed、审批人映射:读 `../bpmax-approval-matrix/SKILL.md`
|
|
49
52
|
|
|
50
53
|
## 规则
|
|
51
54
|
|
|
@@ -238,6 +238,8 @@ PYTHON_BIN=./venv/bin/python
|
|
|
238
238
|
- `meta/create__<flow_type>__<key>.json`:本地创建状态机
|
|
239
239
|
- `diffs/create__<flow_type>__<key>.work.diff.txt`:种子 vs 工作副本差异摘要
|
|
240
240
|
- `artifact-id` 默认按 `create__<flow_type>__<key>` 生成;如有冲突可以手动传 `--artifact-id` 覆盖。
|
|
241
|
+
- 新建字段的 `meta` 必须明确写入 `domain: "dataset-field"` 与 `mode: "create"`;如果本地脚本或手工 work 缺这两个字段,先补齐再 build,不要让 build 阶段靠猜测进入创建模式。
|
|
242
|
+
- 创建 payload 必须同时保留后端需要的来源字段:`source_table/source_field/source_fk`,并由 CLI 兼容补齐 `sourceTable/sourceField/sourceFk`;任一来源表字段为空时,不得真实 submit。
|
|
241
243
|
|
|
242
244
|
### 3.5 优先检索现有字段模板
|
|
243
245
|
- 只要需求涉及“新建字段”“批量加字段”“从业务含义生成字段”,先在当前已激活配置仓库检索 `think_data_set_field`。
|
|
@@ -327,6 +329,7 @@ PYTHON_BIN=./venv/bin/python
|
|
|
327
329
|
- `source_relation_filter`
|
|
328
330
|
- `relation_flow`
|
|
329
331
|
- `post_script`
|
|
332
|
+
- 创建提交体的 meta 仍必须是 `domain: "dataset-field"` 与 `mode: "create"`;不要把编辑态 meta 复用到创建态,否则 CLI 会走错误的提交语义。
|
|
330
333
|
- 创建模式下若 `flow_key` 为空,依然必须直接省略,不要传空字符串。
|
|
331
334
|
- `advanced` 字段按“显式存在才发”处理:
|
|
332
335
|
- `work.advanced` 不存在:不在提交体里写 `sourceComputed` / `matchRule` / `matchLogic`
|
package/skills/bpmax-dataset-template-editor/references/pre-process-script-example-catalog.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- 项目选择器或弹窗选择场景,不适合继续沿用默认列表组合逻辑。
|
|
10
10
|
- 代表样例:
|
|
11
11
|
- `business_policy` 数据集,`flow143372620`
|
|
12
|
-
- [sysconfig-example 样例](../../../../think_data_set
|
|
12
|
+
- [sysconfig-example 样例](../../../../think_data_set/<local-mirror-data-set-dir>/data_set.pre_process_script)
|
|
13
13
|
- 做法:
|
|
14
14
|
- 检查 `ctx.clientPayload.query.is_project_select`
|
|
15
15
|
- 直接用 `ctx.clientFormatQuery` 重写 `ctx.body.query`
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
- 默认 `__all_owner_ids` 不符合业务,想改成关注人、跟进人等视角。
|
|
20
20
|
- 代表样例:
|
|
21
21
|
- `matrix` 数据集,`flow938235363`
|
|
22
|
-
- [sysconfig-example 样例](../../../../think_data_set
|
|
22
|
+
- [sysconfig-example 样例](../../../../think_data_set/<local-mirror-data-set-dir>/data_set.pre_process_script)
|
|
23
23
|
- 做法:
|
|
24
24
|
- 定位默认 `bool.should` 里的 `match.__all_owner_ids`
|
|
25
25
|
- 替换成 `nested followUser.id = 当前用户`
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
- 不同角色看不同问题、任务、项目集合。
|
|
30
30
|
- 代表样例:
|
|
31
31
|
- `BPMAX 问题管理(flow138055947)` 的 `IssueManagement`
|
|
32
|
-
- [sysconfig-cltxtest 样例](../../../../../sysconfig-cltxtest/think_data_set
|
|
32
|
+
- [sysconfig-cltxtest 样例](../../../../../sysconfig-cltxtest/think_data_set/<local-mirror-data-set-dir>/data_set.pre_process_script)
|
|
33
33
|
- 做法:
|
|
34
34
|
- `pm` 角色先查 `BPMAX 项目立项(flow160679070)` 的 `matrix`
|
|
35
35
|
- 把命中的项目 id 塞回问题列表的 `project_id`
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
- 非管理员只能看自己任务,且列表默认排序需要稳定。
|
|
41
41
|
- 代表样例:
|
|
42
42
|
- `BPMAX 项目执行任务(flow671032636)` 的 `plan_task`
|
|
43
|
-
- [sysconfig-cltxtest 样例](../../../../../sysconfig-cltxtest/think_data_set
|
|
43
|
+
- [sysconfig-cltxtest 样例](../../../../../sysconfig-cltxtest/think_data_set/<local-mirror-data-set-dir>/data_set.pre_process_script)
|
|
44
44
|
- 做法:
|
|
45
45
|
- 非管理员追加 `__owner_id = 当前用户`
|
|
46
46
|
- 无自定义排序时,按业务状态脚本排序,再按更新时间倒序
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
- 权限写在元数据或主数据里,不在角色点位上。
|
|
51
51
|
- 代表样例:
|
|
52
52
|
- `采购申请(flow71669656)`
|
|
53
|
-
- [sysconfig-xingmai 样例](../../../../../sysconfig-xingmai/think_data_set
|
|
53
|
+
- [sysconfig-xingmai 样例](../../../../../sysconfig-xingmai/think_data_set/<local-mirror-data-set-dir>/data_set.pre_process_script)
|
|
54
54
|
- 做法:
|
|
55
55
|
- 先查 `采购大类-采购类别元数据(flow558104702)` 的 `procurement_info`
|
|
56
56
|
- 根据采购员身份判断当前人负责哪些产品线
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
- 当前用户要映射到 OA / 飞书 / 导入人姓名等多套身份字段。
|
|
62
62
|
- 代表样例:
|
|
63
63
|
- `合同审批(flow48198545)`
|
|
64
|
-
- [sysconfig-xingmai 样例](../../../../../sysconfig-xingmai/think_data_set
|
|
64
|
+
- [sysconfig-xingmai 样例](../../../../../sysconfig-xingmai/think_data_set/<local-mirror-data-set-dir>/data_set.pre_process_script)
|
|
65
65
|
- 做法:
|
|
66
66
|
- 先用 SQL 查 `think_platform_user`
|
|
67
67
|
- 再把 `feishu_user_id`、`contract_owner_id`、`import_data_owner_names` 追加到 `should`
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
- 前端筛的是“月份”,ES 存的是起止区间。
|
|
72
72
|
- 代表样例:
|
|
73
73
|
- `营销项目预算申请(flow168700401)` 的 `yx_budget`
|
|
74
|
-
- [sysconfig-xingmai 样例](../../../../../sysconfig-xingmai/think_data_set
|
|
74
|
+
- [sysconfig-xingmai 样例](../../../../../sysconfig-xingmai/think_data_set/<local-mirror-data-set-dir>/data_set.pre_process_script)
|
|
75
75
|
- 做法:
|
|
76
76
|
- 把 `budget_month=YYYY-MM` 改写成 `budget_start_month <= 月份 <= budget_end_month`
|
|
77
77
|
- 再叠加 `budget_owner_id = 当前用户`
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
- 数据权限不变,但列表必须稳定排序。
|
|
82
82
|
- 代表样例:
|
|
83
83
|
- `质量阀交付物模板(flow381001006)`
|
|
84
|
-
- [sysconfig-cltxtest 样例](../../../../../sysconfig-cltxtest/think_data_set
|
|
84
|
+
- [sysconfig-cltxtest 样例](../../../../../sysconfig-cltxtest/think_data_set/<local-mirror-data-set-dir>/data_set.pre_process_script)
|
|
85
85
|
- 做法:
|
|
86
86
|
- 只改 `ctx.body.sort`
|
|
87
87
|
- 不碰查询条件
|
|
@@ -12,6 +12,7 @@ description: "用于按 BPMAX 完整流程配置需求先调研、再出计划
|
|
|
12
12
|
- `required-collateral` 必须逐项解释“不改会坏/会失真/会不闭合”的原因并取得确认;`out-of-scope` 一律不得提交或顺手混入。
|
|
13
13
|
- 不得以历史脏配置、顺手修复、统一风格、编辑器自动补字段、方便调试为理由修改需求外配置。
|
|
14
14
|
- 所有远端写入必须走 `bpmax-cli config ...` typed adapter。没有相关流程且用户要求创建时,优先评估 `config flow-app create`;如果当前 profile 缺 `config.flow_app.create`、`config.form_template.create`、`config.flow_template.create` 或 `config.workspace_flow.submit`,必须停止并要求补授权/升级 CLI,不得改用 raw API、页面 fetch 或旧 submit 脚本。
|
|
15
|
+
- 大型、多对象、需要 subagent 或需要 P0/P1 review 的配置任务,必须先进入 [$bpmax-ai-taskbook](../bpmax-ai-taskbook/SKILL.md),生成并 lint AI 任务书,再开始分发执行;不得直接口头拆任务后写配置。
|
|
15
16
|
|
|
16
17
|
## 何时使用
|
|
17
18
|
- 用户要做一整套 BPMAX 流程相关配置,而不是单改某一个模板。
|
|
@@ -52,9 +53,29 @@ bpmax-cli config flow-app create --workspace <workspace> --form-work <form-work-
|
|
|
52
53
|
- 筛选器
|
|
53
54
|
- 导航
|
|
54
55
|
- 也就是:`流程 -> 表单 -> 数据集字段 -> 数据集 -> 列表 -> 筛选器 -> 导航`
|
|
56
|
+
- 完整流程配置的配置面完成后,必须再调用 `bpmax-e2e-flow-test-operator` 做真实运行态验收;不能只用配置回读或最终 latest pull 宣布完成。
|
|
57
|
+
- 真实运行态验收至少覆盖:导航入口可见并可点击进入目标页、列表真实数据或明确空态原因、操作列进入详情、筛选器可用、创建页能加载并提交到预期环节。
|
|
55
58
|
- 计划第一步固定先进入 `bpmax-config-latest` 并执行当前配置环境的 `bpmax-cli config latest pull <env>`;全部配置和验证结束后,最后一步固定再通过 `bpmax-config-latest` 执行一次同一环境的 latest pull。
|
|
56
59
|
- 若首次同步因本地脏工作区失败,默认下一步尝试追加 `--allow-dirty` 重试;若重试任一步失败,立即停下并向用户说明冲突点,由用户决定是否继续。
|
|
57
60
|
|
|
61
|
+
## AI 任务书门禁
|
|
62
|
+
- 当本次配置跨 2 个以上配置面、会创建新流程/工作区、需要 subagent 并行、或用户明确要求 review P0/P1 时,先调用 [$bpmax-ai-taskbook](../bpmax-ai-taskbook/SKILL.md)。
|
|
63
|
+
- 任务书必须先通过:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
bpmax-cli taskbook lint --source .codex/tmp/TASKBOOK.md
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
- 每个 subagent prompt 必须先通过:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
bpmax-cli taskbook lint-prompt --prompt-source .codex/tmp/TASK_PROMPT.md
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
- 任务书里必须声明对象锁、`required_skills`、`subagent_mode`、依赖和验收证据;对象锁冲突、prompt lint 失败、或真实 `flow_type` 未回填时不得分发写任务。
|
|
76
|
+
- 完整流程配置的任务书必须声明 `导航入口策略` 和 `列表 lint`:导航使用 `nav-config:included/skipped/deferred`,列表任务必须保留 `bpmax-cli config list-template lint` 结果和真实列表页验收作为证据。
|
|
77
|
+
- `bpmax-cli taskbook progress init --source .codex/tmp/TASKBOOK.md --out .codex/tmp/taskbook-progress.csv` 生成的进度 CSV 是执行状态来源;不得直接改飞书文档当作进度事实。
|
|
78
|
+
|
|
58
79
|
## Mem0 协议
|
|
59
80
|
- 编排开始前先调用 [$bpmax-memory-protocol](../bpmax-memory-protocol/SKILL.md),检索词至少包含:
|
|
60
81
|
- 业务名 / 流程名
|
|
@@ -98,6 +119,7 @@ bpmax-cli config flow-app create --workspace <workspace> --form-work <form-work-
|
|
|
98
119
|
- 列表模板
|
|
99
120
|
- 筛选器模板
|
|
100
121
|
- 导航配置
|
|
122
|
+
- 如果配置面超过 2 个,或存在新建/发布/多角色验收,计划中必须加入 `bpmax-ai-taskbook` 前置任务书步骤。
|
|
101
123
|
- 如果用户说“全部都做”,按完整流程配置处理。
|
|
102
124
|
- 如果用户只做一部分,只编排对应子 skill,不强行扩展到其他无关面。
|
|
103
125
|
- 如果用户要求“没有就新建”,计划中必须显式写出:
|
|
@@ -121,10 +143,12 @@ bpmax-cli config flow-app create --workspace <workspace> --form-work <form-work-
|
|
|
121
143
|
- 第一步:执行 `bpmax-cli config latest pull <env>`
|
|
122
144
|
- 若失败:尝试追加 `--allow-dirty` 重试;若仍失败则停下问用户
|
|
123
145
|
- 中间步骤:按本次配置范围组合子 skill
|
|
146
|
+
- 收口步骤:调用 `bpmax-e2e-flow-test-operator` 完成真实浏览器运行态验收
|
|
124
147
|
- 最后一步:全部配置和验证完成后,再执行一次 `bpmax-cli config latest pull <env>`
|
|
125
148
|
- 计划中要显式说明:
|
|
126
149
|
- 哪些配置面属于本次范围
|
|
127
150
|
- 哪些子 skill 会被调用
|
|
151
|
+
- 是否需要 `bpmax-ai-taskbook`,以及任务书 lint、prompt lint、进度 CSV 的路径
|
|
128
152
|
- 哪些页面必须先在浏览器中打开
|
|
129
153
|
- 哪些地方以浏览器实时配置为准
|
|
130
154
|
- 新建场景使用哪个 typed create 命令、确认文本是什么、失败后停止在哪一步
|
|
@@ -141,6 +165,8 @@ bpmax-cli config flow-app create --workspace <workspace> --form-work <form-work-
|
|
|
141
165
|
- 导航:[$bpmax-nav-config-editor](../bpmax-nav-config-editor/SKILL.md)
|
|
142
166
|
- 控件选型:[$form-control-library](../form-control-library/SKILL.md)
|
|
143
167
|
- 最新配置同步:[$bpmax-config-latest](../bpmax-config-latest/SKILL.md)
|
|
168
|
+
- AI 任务书:[$bpmax-ai-taskbook](../bpmax-ai-taskbook/SKILL.md)
|
|
169
|
+
- 运行态验收:[$bpmax-e2e-flow-test-operator](../bpmax-e2e-flow-test-operator/SKILL.md)
|
|
144
170
|
- 若流程或表单需求依赖控件能力判断,先用 [$form-control-library](../form-control-library/SKILL.md)。
|
|
145
171
|
- 若某一步要求浏览器已打开特定页面,而当前页面不对,必须先让用户打开到正确页面,不要盲目继续。
|
|
146
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-
|
|
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
|
+
- 完整流程配置完成后必须做最终浏览器运行态验收:导航入口可见并点击到目标页、列表真实数据或明确空态原因、操作列进入详情、筛选器可用、创建页能加载并提交到预期环节。
|