bpmax-cli 0.1.44-beta.20 → 0.1.44-beta.22

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.20",
3
+ "version": "0.1.44-beta.22",
4
4
  "description": "CLI for BPMAX environments with multi-profile config and local login callback flow",
5
5
  "type": "module",
6
6
  "bin": {
@@ -20,6 +20,31 @@ Use a taskbook before dispatching broad BPMAX implementation work. The taskbook
20
20
 
21
21
  Do not use this for a single narrow read-only query, one-field edit, or pure CLI auth/setup task.
22
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
+
23
48
  ## Compact Fix Taskbook
24
49
 
25
50
  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:
@@ -103,6 +128,7 @@ The taskbook must include:
103
128
  - `列表 lint`
104
129
  - `停机点`
105
130
  - `进度 CSV`
131
+ - `配置 Skill / Capability 依据表`
106
132
 
107
133
  Every AI task row must include:
108
134
 
@@ -112,6 +138,7 @@ Every AI task row must include:
112
138
  - `subagent_mode`: one of `none`, `readonly`, `draft-only`, or `exclusive-write`.
113
139
  - `dependencies`: upstream task IDs required before execution.
114
140
  - `evidence`: expected proof such as readback hash, browser screenshot, test report, or lint result.
141
+ - 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.
115
142
 
116
143
  ## Object Lock Rules
117
144
 
@@ -122,6 +149,8 @@ Every AI task row must include:
122
149
  - 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.
123
150
  - Navigation work must use a separate `nav-config:<workspace>` lock when it changes PC/H5 navigation or shortcuts.
124
151
  - 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.
152
+ - 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.
153
+ - Dataset-field work must include source mapping evidence (`source_table`, `source_field`, `source_fk`) before submit.
125
154
  - New flows must use `new-flow:<name>` until BPMAX returns a real `flow<number>`.
126
155
  - After creation, replace the lock with `flow:<generated flow_type>` before dependent write tasks continue.
127
156
  - Publishing, final sync, and cross-object integration must be single-threaded.
@@ -141,6 +141,13 @@ description: "用于在 BPMAX 的表单模板页面中创建或编辑表单。
141
141
  - `runtimeAccepted`:流程或运行页实际引用和加载的模板 ID 正确,页面实际回显正确
142
142
  - 如果用户目标只是“改模板结构本身”,达到 `templateAccepted` 即可结束。
143
143
  - 如果用户目标包含“让发起页生效”“让运行页修复”“让审批页真正加载新字段”,必须继续做到 `runtimeAccepted`。
144
+ - 当 structured work 的 `layout` 顺序、线上 `raw.value` 顺序、子表单内嵌顺序或详情页渲染顺序不一致时,不能只凭 `bpmax-cli config form-template verify --expect ...` 判定通过;必须分别比对:
145
+ - `bpmax-cli config form-template inspect --id <id> --field <sub_form_key> --format json` 输出的 `rule_order`、`layout_order`、`value_order`、`embedded_subform_order`
146
+ - 导出的线上 `raw.value`
147
+ - work 文件中的 `layout`
148
+ - 创建页/编辑页保存后的运行态值
149
+ - 项目详情页最终展示顺序
150
+ 只有这些证据都与业务期望一致,才能把子表单顺序类问题标记为 `runtimeAccepted`。
144
151
 
145
152
  ## 工作流
146
153
 
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: bpmax-plugin-config
3
+ version: 1.0.0
4
+ description: Discover BPMAX plugin-scoped Agent skills and install them explicitly with bpmax-cli.
5
+ ---
6
+
7
+ # BPMAX Plugin Config
8
+
9
+ Use this skill when a BPMAX task involves a plugin-provided capability and the exact plugin-specific skill may need to be installed locally first.
10
+
11
+ ## Required Flow
12
+
13
+ 1. Confirm the target profile and workspace from the user's context or existing `bpmax-cli` profile.
14
+ 2. List available plugin skills:
15
+
16
+ ```bash
17
+ bpmax-cli plugin skills list --profile <profile> --format json
18
+ ```
19
+
20
+ 3. If the needed plugin skill is not installed locally, install it explicitly:
21
+
22
+ ```bash
23
+ bpmax-cli plugin skills ensure <plugin_name> --profile <profile> --agent codex --format json
24
+ ```
25
+
26
+ 4. Read the installed plugin-specific `SKILL.md` before editing or testing that plugin's configuration.
27
+
28
+ ## Safety Rules
29
+
30
+ - Do not assume plugin installation also installed local Agent skills.
31
+ - Do not manually copy plugin skill folders unless `bpmax-cli plugin skills ensure` fails and the user explicitly approves a fallback.
32
+ - Treat `config.plugin.*` capabilities like other BPMAX configuration capabilities: they require an authorized profile and organization-admin configuration access.
33
+ - If `ensure` reports a checksum, name, version, or lint failure, stop and report the failure instead of using the package.
34
+
35
+ ## Useful Commands
36
+
37
+ ```bash
38
+ bpmax-cli plugin skills list --profile <profile> --format json
39
+ bpmax-cli plugin skills ensure <plugin_name> --profile <profile> --agent codex --format json
40
+ bpmax-cli plugin skills update <plugin_name> --profile <profile> --agent codex --format json
41
+ bpmax-cli plugin skills state --profile <profile> --agent codex --format json
42
+ ```
@@ -171,6 +171,14 @@ bpmax-cli step submit <step_id> --project-id <project_id> --action approve --lab
171
171
  - 行程类子表单如果有开始时间、结束时间、出发地、目的地等必填子字段,缺任一字段时不要生成 handoff URL;继续问用户补齐
172
172
  - 只有用户明确要求去页面填写时才走 Web 表单接管;接管会把已填内容写入 `init_value.key_to_value`,关联表单同样使用父字段 key 对应行对象数组
173
173
 
174
+ ### 复杂控件 handoff 失败后的处理顺序
175
+
176
+ - 先运行 `bpmax-cli project create ... --explain-validation --format json`,读取字段 `schema`、合法 `options`、`handoff_hint` 和本地校验错误;不要靠反复提交猜控件结构。
177
+ - `i_select` / 枚举选择字段只能填 CLI 输出的合法候选值;例如错误提示“智能制造平台不是合法选项,可选:泳池机器人/割草机器人”时,必须改成候选之一或追问用户。
178
+ - 只有标量字段、数字、布尔、日期、普通文本、明确枚举值才适合预填;项目选择器、人员选择器、团队选择器、预算项目、城市/组织等复杂控件默认转页面选择。
179
+ - `es_project_selector`、项目选择器等字段如果没有平台返回的真实 selector 对象,不要把名称、编号或 raw value 直接塞进 handoff JSON;应让用户在 BPMAX 页面选择,或先通过业务查询拿到平台对象后再预填。
180
+ - `sub_form` 必须使用“父字段 key -> 行对象数组”的 schema;如果 `--explain-validation` 输出子字段 schema,按该 schema 补齐行对象,不要把平台 `raw.value` 结构直接转换成 handoff JSON。
181
+
174
182
  ## 异常处理
175
183
 
176
184
  - 本地参数校验失败:先修正 `--flow-id`、`--name` 或 JSON