bpmax-cli 0.2.1-beta.6 → 0.2.1-beta.7

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.2.1-beta.6",
3
+ "version": "0.2.1-beta.7",
4
4
  "description": "CLI for BPMAX environments with multi-profile config and local login callback flow",
5
5
  "type": "module",
6
6
  "bin": {
@@ -169,10 +169,28 @@ description: "用于在 BPMAX 的表单模板页面中创建或编辑表单。
169
169
  - 数据集、接口查询、提交字段和流程消费语义
170
170
  - 不得新增、删除字段;不得把隐藏/只读/自动带出字段因为排版调整变成可编辑。若某个布局调整必须连带修改字段属性,必须先归类为 `required-collateral`,逐项说明“不改会导致什么布局或运行问题”,并等待用户确认后才允许进入 work diff。
171
171
  - 不得重写脚本,不得修改接口查询、校验规则、字段联动、`lambdaFields`、`quickValue`、`visibilityCondition` 或 `customeValidate`。如果 diff 中出现这些变化,默认归为 `out-of-scope`,必须回退;除非用户另行确认该项已经从“美化”升级为业务配置修改。
172
+ - 美化任务必须在 structured work 中启用 TypeScript 美观性 lint:
173
+
174
+ ```json
175
+ {
176
+ "lintHints": {
177
+ "visualReview": {
178
+ "enabled": true,
179
+ "confirmedNonBehavioralProps": true,
180
+ "maxColumnsPerRow": 2,
181
+ "maxRowTitleChars": 24,
182
+ "maxTitleCharsInMultiColumn": 12
183
+ }
184
+ }
185
+ }
186
+ ```
187
+
188
+ - `confirmedNonBehavioralProps=true` 只能在逐项确认 diff 不含业务逻辑变化后设置;不能为了通过 lint 预先填 true。
189
+ - `bpmax-cli config form-template lint --work <work-file>` 已将美观性问题作为 hard error:空行、单行字段过多、长标签挤在多列、`sub_form` / `i_textarea` / `raw` 等宽控件和其他字段挤在同一行都会阻断;`build` 会复用同一门禁,不得跳过 lint 直接构建。
172
190
  - 执行顺序固定为:
173
191
  1. 先读取线上最新表单模板,并确认目标 ID 是草稿态还是发布态;发布态只允许定位草稿,不允许直接编辑。
174
192
  2. 导出 structured work 文件,只改 `layout`、宽度、样式、标签展示等呈现相关配置。
175
- 3. 修改后先列出 work diff,并按 `requested` / `required-collateral` / `out-of-scope` 分类。
193
+ 3. 修改后先运行 `bpmax-cli config form-template lint --work <work-file>`,列出 work diff,并按 `requested` / `required-collateral` / `out-of-scope` 分类。
176
194
  4. 必须先让用户确认 work diff,再构建 submit 文件;不得直接 build/submit。
177
195
  5. submit 前再次确认 diff 中没有业务逻辑变化,没有字段增删,没有脚本、校验、联动、隐藏/只读语义变化。
178
196
  6. 提交后回读线上模板,并刷新表单编辑器页面确认布局生效;验收重点是常见桌面宽度下不拥挤、不换行混乱、字段顺序和分组更清晰。