bpmax-cli 0.2.1-beta.26 → 0.2.1-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/dist/bin.js +3071 -2053
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
- package/skills/bpmax-cli/SKILL.md +1 -0
- package/skills/bpmax-dataset-field-template-editor/SKILL.md +1 -0
- package/skills/bpmax-dataset-template-editor/SKILL.md +1 -0
- package/skills/bpmax-e2e-flow-test-operator/SKILL.md +3 -0
- package/skills/bpmax-flow-template-editor/SKILL.md +1 -0
- package/skills/bpmax-form-template-editor/SKILL.md +1 -0
- package/skills/bpmax-list-template-editor/SKILL.md +4 -2
- package/skills/bpmax-list-template-editor/references/content-config-shape.md +11 -2
- package/skills/bpmax-list-template-editor/references/full-detail-guide.md +2 -1
- package/skills/bpmax-plugin-config/SKILL.md +16 -4
- package/skills/bpmax-project/SKILL.md +1 -0
package/package.json
CHANGED
|
@@ -80,6 +80,7 @@ bpmax-cli issue create --title "<标题>" --description-file <file.md> --label b
|
|
|
80
80
|
- 系统内页面 URL 生成:先读 `../bpmax-shared/SKILL.md` 的“系统内 URL 生成”
|
|
81
81
|
- 本地 schema manifest:读 `../bpmax-schema/SKILL.md`
|
|
82
82
|
- 服务端能力白名单:先用 `capabilities status/refresh` 查看当前 profile 已授权 capability,不要绕过白名单手写 raw API
|
|
83
|
+
- 插件提供的配置 Skill:先进入 `../bpmax-plugin-config/SKILL.md`。CLI 会按远端 sha256 自动发现更新;依赖过期或冲突 Skill 的配置 lint/build/submit 不得继续。
|
|
83
84
|
- BPMAX Business Skills 查询、同步、安装、更新、卸载:读 `../bpmax-business-skill/SKILL.md`
|
|
84
85
|
- AI 任务方案、任务书、任务拆解、subagent 分工、实施任务表、进度 CSV:读 `../bpmax-ai-taskbook/SKILL.md`
|
|
85
86
|
- 审批矩阵、角色矩阵、矩阵规则记录、`matrix_owner`、`cc_matrix`、规则 seed、审批人映射:读 `../bpmax-approval-matrix/SKILL.md`
|
|
@@ -61,6 +61,7 @@ bpmax-cli config dataset-field delete --id <id> --profile <profile> --confirm "d
|
|
|
61
61
|
- 新建字段的 meta 必须包含 `domain: "dataset-field"` 和 `mode: "create"`;编辑态 meta 不得复用到创建态。
|
|
62
62
|
- 创建 payload 必须保留 snake_case 后端字段:`source_table/source_field/source_fk`,并由 CLI 兼容补齐 `sourceTable/sourceField/sourceFk`。
|
|
63
63
|
- 本地 preflight 必须在提交前阻断缺字段:`payload.flow_type`、`payload.data_set_id`、`payload.source_table`、`payload.source_field`、`payload.source_fk` 都必须非空。
|
|
64
|
+
- 上述 `payload.data_set_id` 只属于 create 契约;edit payload 必须省略 `data_set_id` / `dataSetId` / `dataset_id`,由 URL 中的字段 ID 保持编辑身份,不能把空数据集 ID 发送给服务端。
|
|
64
65
|
- `flow_key` 为空时必须省略该字段,不要传 `flow_key: ""`。
|
|
65
66
|
- 服务端报“流程类型不能为空/来源表不能为空”时,先检查 work/meta/payload 路径,不要直接归因为远端问题。
|
|
66
67
|
- 创建成功后必须从 response 捕获真实字段 id,再用该 id 做 readback verify。
|
|
@@ -65,6 +65,7 @@ description: "用于通过 bpmax-cli typed config 创建、编辑、发布、暂
|
|
|
65
65
|
- `basic_table` 必须做合法性校验,不能只“尊重页面当前值”。项目型数据集默认优先检查是否应为 `think_project`,`project` 这类历史脏值要标红。
|
|
66
66
|
- `custom_key` 是稳定引用,不是装饰字段;涉及 API、页面脚本、列表、筛选器、看板或权限条件时,不能随意改名或删除。
|
|
67
67
|
- `relationFields` 回包不能直接当最终字段集合;更新字段关联后必须再次执行 readback/export,以详情里的 `dataSetFields` / `fields` 作为当前有效字段集合。
|
|
68
|
+
- export、lint、build、verify 使用同一份 canonical dataset schema;`dataSetFields`、`relationFields`、`fields` 只是在不同接口阶段的别名,比较时按字段 key 归一化,不能因返回字段名或持久化顺序不同误报 mismatch。
|
|
68
69
|
- 字段大改、创建新数据集或影响 ES mapping 时,保存成功不等于列表可用;必须检查发布状态、批次、ES 数据和页面读取。
|
|
69
70
|
- 删除旧数据集或旧字段关联时,默认按软删除理解;验收时不要被 `is_del=1` 历史记录误导。
|
|
70
71
|
- 替换旧数据集或默认数据集时,必须额外检查列表模板、看板模板、筛选器、详情模板和其它页面模板是否写死旧 `data_set_id`。
|
|
@@ -68,12 +68,15 @@ description: "用于在 BPMAX 中做全链路流程测试、场景回归、前
|
|
|
68
68
|
- 用户明确要求“重新运行测试用例”“全量重跑”“重新回归”时,报告必须写 `rerun_policy: full_rerun` 并逐 case 重新执行。禁止直接查找旧结果、旧报告、旧状态文件或旧截图来填充本轮 `executed_cases`、pass 结论或页面证据。
|
|
69
69
|
- `full_rerun` 报告的 `run_id:` 必须等于当前报告目录名;`state_file:`、`precondition_check:`、`report_run:` 必须指向本轮 run 或本轮日期;截图文件必须位于本轮 `screenshots/` 且修改时间落在 `started_at` / `finished_at` 时间窗内。
|
|
70
70
|
- 本轮截图必须是可解析且尺寸至少 100x80 的真实 PNG;改后缀的文本文件、空白占位图或损坏图片不能作为 pass evidence。
|
|
71
|
+
- `e2e step-run` 在任何远端提交前必须完成 evidence 目录范围和可写性预检;结果必须分别检查 `remote_submitted`、`evidence_failed`、`readback_confirmed`。只要证据失败或回读未确认,就停止后续步骤,不得重复提交,也不得形成 pass evidence。
|
|
72
|
+
- 标准 evidence manifest 必须记录运行状态、远端响应摘要、写后回读,以及每个证据文件的 SHA-256、实际 MIME 和扩展名一致性;JPEG 内容伪装成 `.png` 不得通过。
|
|
71
73
|
- 正式 browser 步骤的 evidence JSON 必须写当前 `case_id`、`case_step_id`、`browser_verified: true`、`runtime_scope: page|project|step`、真实 `runtime_url`、本轮 PNG 的 `screenshot` 路径和非空 `assertions`,且所有 assertion 都是 `passed: true`;要求 DOM 时还必须写可定位的 `dom_snapshot`。仅自声明 `browser_verified: true` 不算证据。
|
|
72
74
|
- `runtime_scope=page` 用于首页、列表、搜索等非项目页面,不要求业务 ID;`project` 必须有数字 `project_id`;`step` 必须同时有数字 `project_id` 和业务 `step_id`。测试用例的 `step_no` 绝不能冒充业务 step ID。
|
|
73
75
|
- evidence 必须声明 `runtime_environment: profile|local-browser`。`profile` 模式下 `runtime_url` origin 必须等于 manifest 的 `profile_origin`;源码本地联调必须显式使用 `local-browser`,且 URL 只能是 localhost/127.0.0.1/::1,不能把远端 profile 名伪装成本地页面身份。
|
|
74
76
|
- execution manifest 由 CLI 单写者管理,禁止 agent 手工覆盖、恢复或编辑 JSON。并发 record 会触发 `test_suite.run.concurrent_write`,回滚旧 manifest 会触发 `test_suite.run.manifest_rollback`。
|
|
75
77
|
- 每一步必须重新截图;同一 run 内不同 browser 步骤的截图内容完全相同会被视为截图复用并阻断。无视觉变化的检查应改成有明确 source evidence 的 `observe` 步骤。
|
|
76
78
|
- `checkpoint` / `evidence_only` 只能给局部或对照结论。每个 `executed_cases` 中的通过用例,都必须在结果表、截图 alt/path、项目 ID、step ID 或本轮证据路径中能定位到当前 case。
|
|
79
|
+
- `test-suite lint-report` 默认只检查当前/最新 run,避免历史失败污染本轮结论;只有明确做全仓历史治理时才使用 `--all-runs`。
|
|
77
80
|
|
|
78
81
|
## 标准执行流
|
|
79
82
|
1. 查 memory:搜索业务名、`flow_type`、模板、数据集、上次状态和已知坑点;不要把完整 JSON 贴给用户。CLI 出现 skills out-of-sync notice 时,源码验证必须显式读取当前仓库 skill,正式分发前必须 update/install skills 消除版本差异。
|
|
@@ -79,6 +79,7 @@ description: "用于通过 bpmax-cli typed config 能力创建和编辑 BPMAX
|
|
|
79
79
|
- typed CLI 主路径已覆盖同一硬门禁:`config flow-template lint/build/submit/create` 和 `config flow-app create` 会阻断本地 `uuid`、目录引用或非数字模板引用。
|
|
80
80
|
- 线上模板引用硬门禁:`meta_form_id`、`data.meta.form_template`、`data.meta.table_list_template`、`data.meta.table_filter_template`、`data.meta.step_detail_id`、`data.nodes[].form_template`、`data.nodes[].step_detail_id` 只允许当前环境远端数字 `id`。
|
|
81
81
|
- 环节模板硬门禁:环节详情模板引用必须核对远端存在性和语义适配;输出中要包含 `节点名 -> step_detail_id -> 模板名/类型/关键模块 -> 适配结论`。
|
|
82
|
+
- 环节详情模板必须使用独立 typed domain `bpmax-cli config step-detail-template ...` 导出、lint、build、submit 和 verify;该 domain 固定校验 `flow_page_template.type=6`,不得借用 `project-detail-template`、`list-template` 或浏览器配置路径。
|
|
82
83
|
- 每个会进入人工办理或页面展示的环节都必须明确核对 `node.step_detail_id`。审批/审核节点、填写节点、系统等待节点的模板选型不能混用。
|
|
83
84
|
- 带子流程联动的父流程节点默认是系统等待/汇总状态,不应允许人工直接通过或驳回;若业务要求人工兜底,列为 `required-collateral`。
|
|
84
85
|
- `CLI gate 已硬性覆盖表单驱动新建流程`:`flow-template create` 若声明 `data.meta.form_template`,以及 `flow-app create` 的所有新建流程,都必须隐藏 `project.name` / `project.brief` / `project.plan_end_time`,设置 `meta.use_template_project_name = true` 和非空 `meta.project_name_template`。
|
|
@@ -49,6 +49,7 @@ description: "用于通过 bpmax-cli typed config 创建、编辑、校验或美
|
|
|
49
49
|
- 修改已有模板前必须拿到当前线上详情、`base_hash`、草稿/发布态身份和最近回读时间;若远端在 work 生成后变化,必须停止并重新导出。
|
|
50
50
|
- 发布态模板 ID 不能作为 submit 目标;它只能用于定位草稿、验证 live 引用和运行态排障。
|
|
51
51
|
- `verify` 出现 `ok=false` 时必须读取结构化 reason,不得只看 `mismatch_count`;如果是平台系统回填字段漂移,应使用 CLI 的系统字段忽略能力或记录 `server_default_drift`。
|
|
52
|
+
- `verify` 比较顶层 `value[]` 时按 `field` / `key` 等稳定身份归一化,不把服务端持久化数组顺序变化当成业务差异;嵌套子表行列顺序仍属于业务与布局语义,不得被排序掩盖。
|
|
52
53
|
- structured work 的 `layout`、线上 `raw.value`、子表单内嵌顺序或详情页渲染顺序不一致时,不能只凭 hash 通过;必须用 `config form-template inspect --id <id> --field <sub_form_key> --format json` 比对 `rule_order`、`layout_order`、`value_order`、`embedded_subform_order`。
|
|
53
54
|
- 新建或复制模板时必须优先复用已验证样例;submit payload 里不得保留来自样例的字段级持久化 ID,也不得猜未来远端 ID。
|
|
54
55
|
- 如果需求是给流程挂表单,必须同时核对流程 `data.meta.form_template` 和发布后 live 引用;表单保存成功不等于流程已引用新模板。
|
|
@@ -75,7 +75,7 @@ description: "用于通过 bpmax-cli typed config 创建或编辑 BPMAX 项目
|
|
|
75
75
|
- 操作列缺详情/查看动作、缺删除/移除动作、删除动作无权限 guard、按钮缺 icon、列根误配 `icon/iconColor`。
|
|
76
76
|
- 删除 guard 使用 `current_flow_step_id/name` 为空作为前置条件,或 `disabled` 权限极性写反。
|
|
77
77
|
- `icon` 不是完整 `ri ri_*`,普通图标列数量少于 1 或多于 3。
|
|
78
|
-
-
|
|
78
|
+
- 人员列没有头像,长文本固定列没有溢出提示,或所有数据列都写死 `width`、没有至少一个自适应列。
|
|
79
79
|
- 日期字段没有按 `YYYY-MM-DD` 处理,HTML badge 未使用已验证组件/结构。
|
|
80
80
|
- `data_set_id` 不存在于实时数据集列表,或模板引用当前数据集不存在的字段 key。
|
|
81
81
|
- 切换 `data_set_id` 后仍保留旧字段引用。
|
|
@@ -98,7 +98,9 @@ description: "用于通过 bpmax-cli typed config 创建或编辑 BPMAX 项目
|
|
|
98
98
|
- 操作列列根不得配置 `icon` / `iconColor`;每个操作按钮必须带按钮级 icon。
|
|
99
99
|
- icon 必须写完整 class:`ri ri_*`;普通数据列至少 1 列、最多 3 列带 icon。
|
|
100
100
|
- 人员列必须渲染头像,优先 `el-avatar + span`;只显示姓名文本不合格。
|
|
101
|
-
-
|
|
101
|
+
- 至少一个非操作数据列必须自适应:不写 `props.width`,可用 `props.minWidth` 保证最低可读宽度;操作/选择/序号列不计入自适应列。
|
|
102
|
+
- 固定数据列可只写 `width`;需要同时约束下限时再写 `minWidth`,并保证 `minWidth <= width`。标题必须能在列宽内完整展示,禁止 `auto`、百分比、非正数等不可验证宽度。
|
|
103
|
+
- 备注、描述、内容、原因、意见、地址、标题等长文本列使用固定宽度时必须提供完整内容提示;优先 `props.showOverflowTooltip: true`,也接受已验证的 `attribute.title` 或 tooltip/popover;日期默认显示 `YYYY-MM-DD`。
|
|
102
104
|
- HTML badge、复杂脚本列、图标/头像、操作列、图片预览、`data_set_id` 切换都属于高风险,默认进入真实列表页验收。
|
|
103
105
|
|
|
104
106
|
## 必读 Reference 路由
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
{
|
|
10
10
|
"title": "名称",
|
|
11
11
|
"props": {
|
|
12
|
-
"
|
|
12
|
+
"minWidth": "240px"
|
|
13
13
|
},
|
|
14
14
|
"createElement": {
|
|
15
15
|
"is": "span",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
- 列标题
|
|
33
33
|
- `props`
|
|
34
34
|
- 透传给 `el-table-column`
|
|
35
|
-
- 常见如 `width`、`fixed`
|
|
35
|
+
- 常见如 `width`、`minWidth`、`fixed`、`showOverflowTooltip`
|
|
36
36
|
- `createElement`
|
|
37
37
|
- 列单元格的渲染定义
|
|
38
38
|
- `icon`
|
|
@@ -141,6 +141,15 @@
|
|
|
141
141
|
- 不得用 `!ctx.current_flow_step_id` / `!ctx.current_flow_step_name` 控制删除按钮;创建后立即进入首节点的流程会让该条件永远无法命中。
|
|
142
142
|
- 如需附加业务状态限制,应写成 `ctx.$CAN_DELETE && <业务状态条件>`,不能用状态条件替代权限判断。
|
|
143
143
|
|
|
144
|
+
## 列宽与内容可读性
|
|
145
|
+
|
|
146
|
+
- 每个列表至少保留一个非操作数据列作为自适应列:省略 `props.width`,需要下限时只写 `props.minWidth`。
|
|
147
|
+
- 操作列、选择列、序号列和展开列不计入自适应数据列。
|
|
148
|
+
- 固定数据列使用 `props.width`;如同时设置 `props.minWidth`,两者都必须是正数或 `px` 数值,并保证 `minWidth <= width`。
|
|
149
|
+
- 不要写 `width: "auto"` 或百分比来表示自适应;直接删除 `width`,让表格分配剩余空间。
|
|
150
|
+
- 列宽至少应完整容纳标题。长文本列固定宽度时必须提供完整内容提示,优先 `props.showOverflowTooltip: true`,也可使用已验证的 `attribute.title` 或 tooltip/popover,避免内容被无提示截断。
|
|
151
|
+
- 列宽修改属于高风险视觉改动,提交后必须在常见桌面宽度下检查标题、内容、操作按钮和横向滚动行为。
|
|
152
|
+
|
|
144
153
|
## 图标列
|
|
145
154
|
- 渲染层会把 `icon` / `iconColor` 作为列外层配置传入
|
|
146
155
|
- 图标不是一定要写进 `createElement`
|
|
@@ -435,7 +435,8 @@ bpmax-cli config list-template submit \
|
|
|
435
435
|
- 图标 class 必须完整,不能写成 `ri_file-text-line` 这种半截格式。
|
|
436
436
|
- 操作列列根配置 `icon` / `iconColor` 或任一按钮缺少 icon 都视为 lint 阻断项;普通列按“至少 1 列、最多 3 列”控制 icon 覆盖数量。
|
|
437
437
|
- 涉及到人的列必须带头像,优先复用 `el-avatar + span`;只写姓名文本视为 lint 阻断项。
|
|
438
|
-
-
|
|
438
|
+
- 至少一个非操作数据列必须省略 `width` 作为自适应列;操作/选择/序号列不能代替数据列满足该要求。
|
|
439
|
+
- 固定数据列可只写 `width`;同时设置 `minWidth` 时保证 `minWidth <= width`,且标题可以完整展示;长文本固定列必须提供 `showOverflowTooltip`、`attribute.title` 或 tooltip/popover 等完整内容提示。
|
|
439
440
|
- HTML 字符串 badge、复杂脚本列、图标和操作列都属于高风险改动,默认必须进真实列表页验收。
|
|
440
441
|
|
|
441
442
|
|
|
@@ -6,15 +6,24 @@ description: Discover BPMAX plugin-scoped Agent skills and install them explicit
|
|
|
6
6
|
|
|
7
7
|
# BPMAX Plugin Config
|
|
8
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.
|
|
9
|
+
Use this skill when a BPMAX task involves a plugin-provided capability and the exact plugin-specific skill may need to be discovered, installed, or updated locally first.
|
|
10
|
+
|
|
11
|
+
## Automatic discovery
|
|
12
|
+
|
|
13
|
+
- `bpmax-cli` compares the platform manifest `sha256` with the profile/origin/agent-scoped local state. Do not rely on the semantic version alone; a plugin may publish corrected Skill content without changing `version`.
|
|
14
|
+
- The default `plugin_skill_update_policy=check` discovers updates and reports the exact next command. `prompt` also blocks dependent configuration work until the operator explicitly updates. `auto` updates official same-origin packages before dependent lint/build/submit. `off` disables update comparison; required plugin lint declaration discovery still runs.
|
|
15
|
+
- Configure the current profile with `bpmax-cli config set plugin_skill_update_policy check|prompt|auto|off --profile <profile> --format json`.
|
|
16
|
+
- Discovery runs after authorization/capability refresh and before plugin-dependent flow-template lint/build/submit. Results are cached for at most six hours.
|
|
17
|
+
- A locally modified or unowned Skill directory is `conflicted` and is never overwritten by automatic update. Both the Agent-visible copy and the profile-scoped lint/config adapter copy are hash-checked. An explicit `plugin skills update` may adopt a legacy unowned copy after the operator chooses to replace it.
|
|
18
|
+
- The install directory records `.bpmax-plugin-skill.json` with the source profile, origin, plugin, version, and hash. A running Agent may need a new task before it reloads updated instructions; CLI lint/adapters are effective immediately.
|
|
10
19
|
|
|
11
20
|
## Required Flow
|
|
12
21
|
|
|
13
|
-
1. Confirm the target profile and
|
|
14
|
-
2.
|
|
22
|
+
1. Confirm the target profile and origin from the user's context or existing `bpmax-cli` profile. Plugin Skill discovery is site-wide and is not bound to a BPMAX business workspace.
|
|
23
|
+
2. Check available and outdated plugin skills:
|
|
15
24
|
|
|
16
25
|
```bash
|
|
17
|
-
bpmax-cli plugin skills
|
|
26
|
+
bpmax-cli plugin skills check --profile <profile> --agent codex --format json
|
|
18
27
|
```
|
|
19
28
|
|
|
20
29
|
3. If the needed plugin skill is not installed locally, install it explicitly:
|
|
@@ -31,6 +40,8 @@ bpmax-cli plugin skills ensure <plugin_name> --profile <profile> --agent codex -
|
|
|
31
40
|
- Do not manually copy plugin skill folders unless `bpmax-cli plugin skills ensure` fails and the user explicitly approves a fallback.
|
|
32
41
|
- Treat `config.plugin.*` capabilities like other BPMAX configuration capabilities: they require an authorized profile and organization-admin configuration access.
|
|
33
42
|
- If `ensure` reports a checksum, name, version, or lint failure, stop and report the failure instead of using the package.
|
|
43
|
+
- If discovery reports `update_available`, `update_failed`, `not_installed`, `state_missing`, `conflicted`, or `checksum_unavailable`, do not continue plugin-dependent configuration with stale or unverifiable lint rules.
|
|
44
|
+
- If a flow contains plugin-like node arrays such as `*_triggers[]` but neither the platform nor local state provides a `flow-template-node` lint declaration, strict lint must fail instead of silently accepting the configuration.
|
|
34
45
|
- Preserve existing plugin extension fields when editing a flow. Never delete a remote `plugin_*` block merely because the platform or local installation has no matching lint declaration.
|
|
35
46
|
- On an exported existing flow with a remote `flow_type`, an unknown plugin extension whose every occurrence explicitly sets `enabled: false` is retained and reported as a warning; plugin-specific lint is skipped because the extension cannot execute.
|
|
36
47
|
- A new flow cannot use this compatibility path. Even a disabled unknown extension remains a hard error until the plugin publishes or installs its lint declaration.
|
|
@@ -40,6 +51,7 @@ bpmax-cli plugin skills ensure <plugin_name> --profile <profile> --agent codex -
|
|
|
40
51
|
|
|
41
52
|
```bash
|
|
42
53
|
bpmax-cli plugin skills list --profile <profile> --format json
|
|
54
|
+
bpmax-cli plugin skills check --profile <profile> --agent codex --format json
|
|
43
55
|
bpmax-cli plugin skills ensure <plugin_name> --profile <profile> --agent codex --format json
|
|
44
56
|
bpmax-cli plugin skills update <plugin_name> --profile <profile> --agent codex --format json
|
|
45
57
|
bpmax-cli plugin skills state --profile <profile> --agent codex --format json
|
|
@@ -131,6 +131,7 @@ bpmax-cli step submit <step_id> --project-id <project_id> --action approve --lab
|
|
|
131
131
|
- 概览优先 `project list`
|
|
132
132
|
- 按候选人姓名、表单字段、流程内关键词定位项目时,优先 `project search`;该命令会走 `huanpingtong-server` 的 `/api/project/list` ES 模式,由 huanpingtong 侧 API Key 和权限上下文转发到 bpmax-server `/project/list`
|
|
133
133
|
- 全量分页扫描时,分页必须进入 `/project/list` body:新版 CLI 会把 `--page` / `--page-size` 合并为 body 中的 `page` / `page_size`;兼容旧版 CLI 时,直接把 `page` / `page_size` 写进 `--body` JSON。扫描必须记录每页项目 ID,发现连续页 ID 完全相同或 raw rows 大于 unique rows 很多时,立即判定分页可能失效,不得给出“未命中”结论。
|
|
134
|
+
- `page` 和 `page_size` 必须是大于等于 1 的安全整数;CLI 会在 HTTP 前同时归一化命令参数和 body 中的数字字符串,空串、0、负数、小数和非数字都应本地失败。
|
|
134
135
|
- `es project-search` 只是兼容别名;新场景必须写 `project search`
|
|
135
136
|
- 不要向 `project search` 或 `es project-search` 传包含顶层 `body` 的 raw ES DTO;`huanpingtong-server` 没有公开 `/api/project/raw-es-search`,CLI 会在发请求前阻断
|
|
136
137
|
- 预算汇总、趋势分析等统计只能先使用 `/api/project/list` ES 模式能表达的查询体;确实需要 raw ES 聚合时,必须先让服务端增加明确公开接口,不能复用 `/api/project/<unknown>`
|