bpmax-cli 0.2.1-beta.34 → 0.2.1-beta.35
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
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: bpmax-flow-detail-template-editor
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
description: "Use the typed CLI when discovering, creating, editing, reading back, or verifying BPMAX flow_page_template type=5 flow report/document templates."
|
|
5
|
+
metadata:
|
|
6
|
+
requires:
|
|
7
|
+
bins: ["bpmax-cli"]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# BPMAX Flow Report Template Editor
|
|
11
|
+
|
|
12
|
+
该 Skill 管理 `report_template` 编辑器使用的 `flow_page_template type=5` 流程报告/文档模板。`flow-detail-template` 是为兼容既有 issue 和命令体系保留的 CLI 名称,不表示页面布局型“流程详情模板”。
|
|
13
|
+
|
|
14
|
+
## 边界
|
|
15
|
+
|
|
16
|
+
- type=5 流程报告/文档模板使用 `config flow-detail-template`。
|
|
17
|
+
- type=2 项目详情模板使用 `config project-detail-template`。
|
|
18
|
+
- type=6 环节详情模板使用 `config step-detail-template`,并由流程节点 `step_detail_id` 引用。
|
|
19
|
+
- 三种模板不得混用;不得用 type=5 ID 填充 `node.step_detail_id`。
|
|
20
|
+
- 配置写入只能通过 typed CLI 完成,不得直接修改 `think_flow_page_template` 文件,也不得用 raw API 绕过门禁。
|
|
21
|
+
- 不知道模板 ID 时,必须先按 `flow_type/flow_key` 使用 typed list 发现,不能猜测 ID。
|
|
22
|
+
|
|
23
|
+
## 标准流程
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
bpmax-cli config flow-detail-template list --flow-type <flow_type> --flow-key <flow_key> --profile <profile> --format json
|
|
27
|
+
bpmax-cli config flow-detail-template export --id <id> --profile <profile> --out <dir> --format json
|
|
28
|
+
bpmax-cli config flow-detail-template lint --work <work.json> --format json
|
|
29
|
+
bpmax-cli config flow-detail-template build --work <work.json> --meta <meta.json> --out <submit.json> --format json
|
|
30
|
+
bpmax-cli config flow-detail-template submit --id <id> --payload <submit.json> --profile <profile> --format json
|
|
31
|
+
bpmax-cli config flow-detail-template verify --id <id> --profile <profile> --format json
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
新建时使用 `config flow-detail-template create` 生成 work/meta,再执行 lint、build 和带精确确认文本的 submit。删除同样必须先 dry-run,再复制 CLI 返回的确认文本。
|
|
35
|
+
|
|
36
|
+
## 门禁
|
|
37
|
+
|
|
38
|
+
- work 和 readback 的 `type` 必须为 `5`。
|
|
39
|
+
- `content` 必须是 `{ fields, templateFile }`:`fields[]` 的 `field/desc/expression` 均为非空字符串且 field 不重复;`templateFile[]` 至少包含一个带 `name/url` 的文件。
|
|
40
|
+
- 平台生成报告时只读取 `templateFile[0]`;配置多个文件时必须确认第一个文件就是实际生效文件。
|
|
41
|
+
- 必须保留 `flow_type`、`flow_key`、`data_set_id` 和报告表达式的原有语义,不得套用 type=2/type=6 的 layout 模块规则。
|
|
42
|
+
- lint/build/submit/verify 任一步失败都不能宣称配置完成。
|
|
43
|
+
- 完成后必须保留 typed readback hash;涉及真实展示效果时,再补充运行态页面证据。
|
|
@@ -114,7 +114,7 @@ bpmax-cli project handoff status \
|
|
|
114
114
|
|
|
115
115
|
```bash
|
|
116
116
|
bpmax-cli project list --format table
|
|
117
|
-
bpmax-cli project get
|
|
117
|
+
bpmax-cli project get 1001 --format json
|
|
118
118
|
bpmax-cli project my-step --format table
|
|
119
119
|
bpmax-cli project my-step --flow-type flow802926525 --format json
|
|
120
120
|
bpmax-cli project my-step --key-of-flow-node 'flow802926525::1776572829122' --format json
|
|
@@ -168,6 +168,7 @@ bpmax-cli step submit <step_id> --project-id <project_id> --action approve --lab
|
|
|
168
168
|
- 不要向 `project search` 或 `es project-search` 传包含顶层 `body` 的 raw ES DTO;`huanpingtong-server` 没有公开 `/api/project/raw-es-search`,CLI 会在发请求前阻断
|
|
169
169
|
- 预算汇总、趋势分析等统计只能先使用 `/api/project/list` ES 模式能表达的查询体;确实需要 raw ES 聚合时,必须先让服务端增加明确公开接口,不能复用 `/api/project/<unknown>`
|
|
170
170
|
- 单项目详情走 `project get`
|
|
171
|
+
- `project get` 首选位置参数 `project get <id>`;为兼容旧自动化也接受 `project get --project-id <id>`,两者同时出现时必须一致。
|
|
171
172
|
- 待办相关优先 `project my-step`
|
|
172
173
|
- 待办需要限定流程时,用 `project my-step --flow-type <flow_type>`,不要先全量拉取再本地筛选
|
|
173
174
|
- 待办需要限定到流程节点时,用 `project my-step --key-of-flow-node '<flow_type>:<flow_key>:<flow_step_id>'`;流程 key 为空时保留中间冒号,例如 `flow802926525::1776572829122`
|