bpmax-cli 0.1.44-beta.27 → 0.1.44-beta.28

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.27",
3
+ "version": "0.1.44-beta.28",
4
4
  "description": "CLI for BPMAX environments with multi-profile config and local login callback flow",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1108,4 +1108,6 @@ bpmax-cli config form-template submit --id create --payload .codex/tmp/form-temp
1108
1108
 
1109
1109
  默认使用 `--work-format structured`,直接编辑 `basic/layout/fields/removedFields` 后再 build;只有兼容旧脚本时才导出 raw。
1110
1110
 
1111
+ 表单字段 `value.validateMap.required` 是必填结构,不是可省略字段。创建或编辑表单模板时,raw 顶层 `value[]`、structured `fields.<field>.value` 和 `preserve.value[]` 中的每个字段值都必须带 `validateMap` 对象,并至少显式包含 `required: true | false | null`。前端创建页 `i_form_create.setValue()` 会读取 `validateMap.required`;缺失时页面虽然可能显示字段标题,但初始化校验、回填或提交会抛异常。`bpmax-cli config form-template lint` 已把缺少 `value.validateMap` / `value.validateMap.required` 作为 hard error;`build` 也会在 submit payload 生成前执行同一门禁,不得跳过 lint 直接依赖 build 兜底。
1112
+
1111
1113
  旧来源中的 `scripts/` 和 `references/` 只作为字段结构、lint 规则和验收规则参考;真实远端写操作必须走 `bpmax-cli config form-template submit`,保留 dry-run、二次确认、审计和回读验证。create 能力缺失时不得退回旧脚本、raw API 或浏览器页面内 fetch。