bpmax-cli 0.2.1-beta.2 → 0.2.1-beta.4
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
|
@@ -158,7 +158,10 @@ Every AI task row must include:
|
|
|
158
158
|
- `subagent_mode`: one of `none`, `readonly`, `draft-only`, or `exclusive-write`.
|
|
159
159
|
- `dependencies`: upstream task IDs required before execution.
|
|
160
160
|
- `evidence`: expected proof such as readback hash, browser screenshot, test report, or lint result.
|
|
161
|
-
- 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.
|
|
161
|
+
- For configuration write tasks, `evidence` or `notes` must include `bpmax-cli config adapters --format json`, the matching typed CLI lint/build/submit/verify/readback commands, and the domain-specific constraints from the relevant skill.
|
|
162
|
+
- Migration tasks that create or update multiple config objects must specify whether they will use `bpmax-cli config batch submit --manifest ...` and `bpmax-cli config batch readback --manifest ...`; if not, the task must explain why batch evidence is intentionally skipped.
|
|
163
|
+
- Tasks that depend on IDs returned by direct typed create/submit must consume the standard top-level `id` / `key` / `readback_hint` response fields instead of asking subagents to parse domain-specific response bodies.
|
|
164
|
+
- Batch `response_out` files are row envelopes: consume `ok` / `domain` / `id` / `action` at the top level, then read created IDs and hints from `response.id` / `response.key` / `response.readback_hint`; if a row is dry-run, copy `response.required_confirm` into the manifest `confirm` before retrying.
|
|
162
165
|
|
|
163
166
|
## Object Lock Rules
|
|
164
167
|
|
|
@@ -7,7 +7,7 @@ description: "用于在 BPMAX 的数据集页面中创建、编辑、发布、
|
|
|
7
7
|
|
|
8
8
|
## 写入路径硬约束
|
|
9
9
|
- 执行前必须先运行 `bpmax-cli config adapters --format json` 核对 `dataset`;只有 `build_status` 和 `submit_status` 都是 `supported` 时才允许进入 build/submit。当前 typed CLI 通过 huanpingtong `/api/data_set*` 代理访问 bpmax-server `/data-set*` 运行态接口;若 adapter 显示 `blocked`,只能导出、编辑 work、lint 和形成变更建议,不得提交。
|
|
10
|
-
- 当前 bpmax-cli typed adapter 支持数据集的 `dataset export/lint/build/submit/verify`,编辑提交路径为 huanpingtong `/api/data_set/relationFields/:id`,新建提交路径为 huanpingtong `/api/data_set`,均代理到 bpmax-server
|
|
10
|
+
- 当前 bpmax-cli typed adapter 支持数据集的 `dataset export/lint/build/submit/verify`,编辑提交路径为 huanpingtong `/api/data_set/relationFields/:id`,新建提交路径为 huanpingtong `/api/data_set`,均代理到 bpmax-server 运行态接口。relationFields 也可以用显式子命令 `bpmax-cli config dataset relation-fields submit/readback`。发布、暂停、取消刷新和索引刷新必须使用 `bpmax-cli config dataset publish|pause|cancel-refresh|refresh|reindex`,不得把旧脚本、raw API、页面 fetch 当作替代提交路径。
|
|
11
11
|
- 旧来源脚本 `scripts/submit*.py` 只保留为结构参考,默认会硬失败;不得用它们直调 BPMAX API。
|
|
12
12
|
- 不得用 `bpmax-cli api POST/PUT/DELETE /data_set*` 或其它 raw API 绕过 typed config submit。
|
|
13
13
|
|
|
@@ -54,7 +54,17 @@ description: "用于在 BPMAX 的数据集页面中创建、编辑、发布、
|
|
|
54
54
|
- 浏览器实时线上页面、实时接口返回、当前页面真实请求体优先级高于本地仓库里的 `think_data_set` / `think_data_set_field` 镜像;本地配置只作为候选、检索和回放参考,不能覆盖线上事实。
|
|
55
55
|
- 优先从真实页面和真实接口返回抽取 payload 骨架,不从零臆造。
|
|
56
56
|
- 优先检索现有数据集,再决定是否新建;优先判断当前流程下是否已有同语义可复用数据集。
|
|
57
|
-
- 当前默认走“线上详情导出到本地临时文件 -> 修改 work 文件 -> lint -> build submit -> 二次确认 -> typed CLI submit -> verify”。只有 `bpmax-cli config adapters` 显示 `dataset` 的 `build_status/submit_status` 为 `supported` 时,才允许进入提交闭环。
|
|
57
|
+
- 当前默认走“线上详情导出到本地临时文件 -> 修改 work 文件 -> lint -> build submit -> 二次确认 -> typed CLI submit -> verify/readback”。只有 `bpmax-cli config adapters` 显示 `dataset` 的 `build_status/submit_status` 为 `supported` 时,才允许进入提交闭环。
|
|
58
|
+
- 数据集 relationFields 编辑优先使用:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
bpmax-cli config dataset relation-fields submit --id <dataset_id> --payload <submit.json> --confirm "submit dataset <dataset_id>" --response-out <response.json> --format json
|
|
62
|
+
bpmax-cli config dataset relation-fields readback --id <dataset_id> --format json
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
- 批量迁移多个数据集或字段时,优先生成 batch manifest 并使用 `bpmax-cli config batch submit/readback`。manifest 每行必须写 `domain`、`id`、`payload`、`confirm`、`response_out`;不要为每个字段临时写 collector 解析不同 response shape。
|
|
66
|
+
- 直接执行 typed submit/create 时,要读取响应顶层标准字段 `id`、`key`、`readback_hint`;如果还需要兼容旧字段,只能作为 fallback,不能把旧 response shape 当主路径。
|
|
67
|
+
- 通过 `bpmax-cli config batch submit/readback` 执行时,`response_out` 是行级 envelope:顶层读取 `ok`、`domain`、`id`、`action`,真实 typed 响应在 `response` 下,创建 ID 和回读提示读取 `response.id`、`response.key`、`response.readback_hint`。若某行停在 dry-run,必须把 `response.required_confirm` 写回 manifest 的 `confirm` 后重跑。
|
|
58
68
|
- 提交前硬门禁:必须先跑数据集 lint;`basicTableAudit` blocker 或脚本位点里把 ES dataset 查询入口写成 `data_set_id` 时,直接阻断提交。
|
|
59
69
|
- 脚本类查询默认口径:
|
|
60
70
|
- 前端验数或调试样例默认优先 `raw-es-search`
|
|
@@ -42,6 +42,7 @@ bpmax-cli config flow-app create --workspace <workspace> --form-work <form-work-
|
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
- `flow-app create` 的 dry-run 必须展示完整 operation plan:创建表单、发布表单、创建流程壳、绑定 `data.meta.form_template=<published_id>`、保存/发布流程、绑定工作区、回读验证。缺任何关键步骤都不得确认执行。
|
|
45
|
+
- 确认文本不得猜:dry-run JSON 必须包含 `required_confirm`,真实执行时直接复制该值;若确认文本不匹配,必须视为失败,不得把 dry-run JSON 当成功结果。
|
|
45
46
|
- 确认执行必须同时保留 `--response-out` 和 `--evidence-out`:前者保存完整响应、created IDs 和恢复上下文,后者保存给后续配置面复用的 target context。不得只保留 shell 重定向输出。
|
|
46
47
|
- 新建或迁移流程进入 dataset/list/filter/nav 任一后续阶段前,必须先取得 target context evidence:
|
|
47
48
|
|
|
@@ -51,6 +52,15 @@ bpmax-cli config readback flow-template --id <flow_type> --format json
|
|
|
51
52
|
bpmax-cli config readback form-template --id <form_template_id> --format json
|
|
52
53
|
```
|
|
53
54
|
|
|
55
|
+
- 迁移工具只读回收证据统一使用 `bpmax-cli config readback <domain> --id <id> --format json`,不要生成 `bpmax-cli api GET ...` 或按 domain 手写 export/readback 差异。
|
|
56
|
+
- 批量提交或批量回读必须优先使用 batch manifest:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
bpmax-cli config batch submit --manifest .codex/tmp/config-batch.json --continue-on-error --format json
|
|
60
|
+
bpmax-cli config batch readback --manifest .codex/tmp/config-readback-batch.json --continue-on-error --format json
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
- batch manifest 每行必须保留 `domain`、`id`、`payload`(submit 时)、`confirm` 和 `response_out`;失败项要进入最终 summary,不能因为一条失败丢失前面成功项和剩余待处理项。
|
|
54
64
|
- `target_context.evidence_status` 必须是 `verified`,且 `missing_context` 必须为空;否则停止在 target context 修复阶段,不得继续生成 dataset、列表、导航或 E2E 任务。
|
|
55
65
|
- `target-context.csv/json` 是后续迁移 apply-ready evidence:至少包含 `flow_type`、`flow_template_id`、`form_template_id`、`form_template_draft_id`、`workspace_key`、`workspace_readback_hash`。不得让 subagent 重新猜这些 ID。
|
|
56
66
|
- `flow-app create` 的 flow work 必须预置表单驱动发起默认基线:隐藏 `project.name` / `project.brief` / `project.plan_end_time`,启用 `meta.use_template_project_name = true`,并提供非空 `meta.project_name_template`。这是 typed CLI 写入前 gate,不是可选建议。
|