bpmax-cli 0.2.1-beta.71 → 0.2.1-beta.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +118 -2
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
- package/skills/bpmax-ai-taskbook/SKILL.md +1 -1
- package/skills/bpmax-ai-taskbook/references/blueprint-taskbook-gates.md +1 -0
- package/skills/bpmax-ai-taskbook/references/taskbook-template.md +1 -1
- package/skills/bpmax-list-template-editor/SKILL.md +3 -0
- package/skills/bpmax-list-template-editor/references/runtime-verified-workflow.md +45 -0
package/package.json
CHANGED
|
@@ -183,7 +183,7 @@ Every AI task row must include:
|
|
|
183
183
|
- Do not use UUIDs for form-template, dataset, dataset-field, page-template, role, workspace, flow_type, temporary ids, object locks, or examples.
|
|
184
184
|
- 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.
|
|
185
185
|
- Navigation work must use a separate `nav-config:<workspace>` lock when it changes PC/H5 navigation or shortcuts.
|
|
186
|
-
- 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.
|
|
186
|
+
- 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. Every critical business column must also declare `required_nonempty`, `allowed_empty_reason`, `source_dataset_field`, `detail_consistency`, `runtime_evidence`, and `icon_token`; incomplete contracts keep the task partial/blocked.
|
|
187
187
|
- 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.
|
|
188
188
|
- Dataset-field work must include source mapping evidence (`source_table`, `source_field`, `source_fk`) before submit.
|
|
189
189
|
- New flows must use `new-flow:<name>` until BPMAX returns a real `flow<number>`.
|
|
@@ -93,6 +93,7 @@ Use a table with:
|
|
|
93
93
|
- `结论` is exactly `complete`, `incomplete`, or `blocked`.
|
|
94
94
|
- All traceability rows for one flow must use the same final flow conclusion.
|
|
95
95
|
- `complete` requires all required configuration surfaces and runtime evidence for that flow.
|
|
96
|
+
- List-template runtime evidence is field-level: each critical column records nonempty/allowed-empty policy, dataset source, list/detail consistency, index/runtime evidence, and the confirmed icon name/color token. A row screenshot or successful static lint alone cannot make the flow `complete`.
|
|
96
97
|
|
|
97
98
|
## Prompt Inheritance
|
|
98
99
|
|
|
@@ -61,7 +61,7 @@ Write tasks must include `bpmax-cli config adapters --format json` evidence.
|
|
|
61
61
|
|---|---|---|---|---|
|
|
62
62
|
| 流程模板 | `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`、发布回读 |
|
|
63
63
|
| 表单模板 | `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` |
|
|
64
|
-
| 列表模板 | `list-template:<id>` | `bpmax-list-template-editor` | `config list-template lint/build/submit/verify` | 操作列、详情动作、删除 gate
|
|
64
|
+
| 列表模板 | `list-template:<id>` | `bpmax-list-template-editor` | `config list-template lint/build/submit/verify/runtime-check` | 操作列、详情动作、删除 gate、查询安全;关键列逐项记录 `required_nonempty`、`allowed_empty_reason`、`source_dataset_field`、`detail_consistency`、`runtime_evidence`、`icon_token`,并提供真实列表页证据 |
|
|
65
65
|
| 筛选器 | `filter-template:<id>` | `bpmax-filter-template-editor` | `config filter-template lint/build/submit/verify` | 筛选字段、查询条件、样本命中 |
|
|
66
66
|
| 项目详情模板 | `project-detail-template:<id>` | `bpmax-project-detail-template-editor` | `config project-detail-template lint/build/submit/verify` | 默认详情模板解析、运行页 proof |
|
|
67
67
|
| 环节模板 | `step-detail-template:<id>` | `bpmax-flow-template-editor` | flow 节点回读 + 页面模板回读 | `flow_page_template.type=6`、节点动作适配 |
|
|
@@ -59,6 +59,8 @@ description: "用于通过 bpmax-cli typed config 创建或编辑 BPMAX 项目
|
|
|
59
59
|
- 列表模板 `data_set_id` 必须指向当前流程实际发布并可刷新的数据集;切换数据集后必须重新检查所有字段 key。
|
|
60
60
|
- 列表模板验收必须核对“列表列 -> 表单字段 -> 数据集字段”的一致性。
|
|
61
61
|
- 每一列都要记录:列名、读取 key 或脚本来源、对应表单/数据集字段、业务语义、是否需要运行态验收;不能只抽查。
|
|
62
|
+
- 每个关键业务列必须声明可审计的 field contract:`required_nonempty`、`allowed_empty_reason`、`source_dataset_field`、`detail_consistency`、`runtime_evidence`、`icon_token`。`icon_token` 同时记录已确认的 icon class 与颜色 token;不得把任意 hex 颜色当成已确认 token。
|
|
63
|
+
- 用 `bpmax-cli config list-template runtime-check --evidence <file> --profile <profile> --format json` 校验 field contract。关键列源值为空、映射缺失、索引陈旧、列表/详情不一致、运行态证据缺失或 icon token 不一致时必须保持 `partial` / `blocked`,不得用 lint、HTTP 200 或单张页面截图宣告完成。
|
|
62
64
|
- 逐列检查是强要求;新增、删除、移动、重命名或改脚本列时,都要说明该列为什么属于 `requested` 或 `required-collateral`。
|
|
63
65
|
- 查询脚本不得把 `data_set_id` 当 ES dataset 查询入口;使用 `raw-es-search` / `ctx.$esQuery(...)` 时必须用 `data_set_key` 或已验证 helper。
|
|
64
66
|
- 默认禁止 `/bpmax/project/list`、用户态 `ESProjectList`、大批 ES 数据前端 `find/filter/some`、逐条循环里查 ES 或 SQL join;确需用户可见项目列表时必须写明 `bpmax-allow-user-scope-project-list: <reason>`。
|
|
@@ -98,6 +100,7 @@ description: "用于通过 bpmax-cli typed config 创建或编辑 BPMAX 项目
|
|
|
98
100
|
- 高风险触发条件包括:脚本列、badge/状态标签、icon/头像/颜色/单行溢出/列宽、操作列按钮、图片预览列、`data_set_id` 切换。
|
|
99
101
|
- 编辑页只做只读回显确认:新字段或新列标题已出现、目标列顺序符合预期、数据集绑定已回填。
|
|
100
102
|
- 运行态列表页必须证明目标列真实渲染、操作列可进入详情;有 `project.delete` 权限的管理员或有 `project.delete.my` 且为创建人的用户可见并能真实删除,无权限用户不可删除;筛选条件不引用已删除字段。
|
|
103
|
+
- 运行态证据必须逐个关键字段绑定真实列表行、对应详情值和索引/数据集值,并回填 field contract;图标列还必须记录实际 icon class 与颜色 token。只证明“页面有行”不等于关键字段验收通过。
|
|
101
104
|
- 如果接口 readback 成功但页面不一致,按页面运行态缺陷继续排查,不能只看 200 或 hash 宣告完成。
|
|
102
105
|
|
|
103
106
|
## 操作列与视觉 lint
|
|
@@ -93,6 +93,51 @@ vm.flow?.data?.meta?.table_list_template
|
|
|
93
93
|
- 基于 create 页默认骨架扩展
|
|
94
94
|
- 还是基于已有线上模板复制增强
|
|
95
95
|
|
|
96
|
+
## 关键字段运行态契约
|
|
97
|
+
|
|
98
|
+
页面有项目行、静态 lint 通过或接口返回 200 都不能证明关键业务列可用。对每个关键列生成 `schema_version=1` 的证据文件,并执行:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
bpmax-cli config list-template runtime-check --evidence <runtime-evidence.json> --profile <profile> --format json
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
最小证据结构:
|
|
105
|
+
|
|
106
|
+
```json
|
|
107
|
+
{
|
|
108
|
+
"schema_version": 1,
|
|
109
|
+
"field_contracts": [
|
|
110
|
+
{
|
|
111
|
+
"field": "award_amount",
|
|
112
|
+
"required_nonempty": true,
|
|
113
|
+
"allowed_empty_reason": null,
|
|
114
|
+
"source_dataset_field": "award_amount",
|
|
115
|
+
"detail_consistency": true,
|
|
116
|
+
"runtime_evidence": {
|
|
117
|
+
"page": "real list page",
|
|
118
|
+
"row": 1
|
|
119
|
+
},
|
|
120
|
+
"icon_token": {
|
|
121
|
+
"name": "ri ri_money-cny-circle-line",
|
|
122
|
+
"color": "text-muted"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"dataset_fields": ["award_amount"],
|
|
127
|
+
"list_row": { "award_amount": 12000 },
|
|
128
|
+
"detail_values": { "award_amount": 12000 },
|
|
129
|
+
"index_document": { "award_amount": 12000 },
|
|
130
|
+
"icon_tokens": {
|
|
131
|
+
"award_amount": {
|
|
132
|
+
"name": "ri ri_money-cny-circle-line",
|
|
133
|
+
"color": "text-muted"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
`field_contracts` 的六个契约项缺一不可。命令会区分 `source_empty`、`mapping_missing`、`index_stale`、`template_unresolved`、`icon_token_mismatch` 和 `contract_invalid`,任一关键字段不是 `ok` 都以非零状态退出。允许为空的字段必须设置 `required_nonempty=false` 并写明 `allowed_empty_reason`;没有图标的列仍要显式写 `icon_token: null`。
|
|
140
|
+
|
|
96
141
|
## 状态彩色标签的已验证方案
|
|
97
142
|
|
|
98
143
|
状态标签列可直接使用:
|