bpmax-cli 0.1.30 → 0.1.32
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 +158 -38
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
- package/skills/bpmax-project/SKILL.md +4 -4
package/package.json
CHANGED
|
@@ -36,7 +36,7 @@ metadata:
|
|
|
36
36
|
- 不得从 `flow_type`、`flow_key`、host、workspace、路由片段重新拼接链接
|
|
37
37
|
- 不得把 CLI 输出的 URL 截断成 `.../project/create?flow_type=...`
|
|
38
38
|
- 如果最终要发送的链接与 CLI JSON 的 `url`/`pc_url` 不完全一致,停止回复链接并报告“无法生成带预填参数的创建页链接”
|
|
39
|
-
- 典型错误链接:`https://yuanrongtest.yitaiyitai.com/w:oa/project/create?flow_type=flow322497069`。这种只有 `flow_type`、没有 `init_value` 的链接永远不能发给用户
|
|
39
|
+
- 典型错误链接:`https://yuanrongtest.yitaiyitai.com/w:oa/project/create?flow_type=flow322497069`。这种只有 `flow_type`、没有 `prefill_token` 或 `init_value` 的链接永远不能发给用户
|
|
40
40
|
|
|
41
41
|
## 安全创建流程
|
|
42
42
|
|
|
@@ -58,11 +58,11 @@ bpmax-cli project create --flow-id 123 --json '{"form":{"priority":"P1"}}' --for
|
|
|
58
58
|
CLI 返回 `handoff: true` 时,回复用户前必须全部满足:
|
|
59
59
|
|
|
60
60
|
- 优先使用 CLI 输出的 `reply_markdown` 原样回复;否则只使用 CLI 输出的 `url` 或 `pc_url` 生成 `[填写表单](完整URL)`
|
|
61
|
-
-
|
|
61
|
+
- 链接必须优先包含 `prefill_token=`;若 CLI 输出 `prefill_fallback: "init_value"`,允许使用包含 `init_value=` 的降级链接
|
|
62
62
|
- `init_value_keys` 必须覆盖本轮已收集字段
|
|
63
|
-
- `init_value` 必须包含本轮已收集字段;如果用户已提供行程、事由、金额等信息,不能发送没有这些字段的链接
|
|
63
|
+
- CLI JSON 输出的 `init_value` 必须包含本轮已收集字段;如果用户已提供行程、事由、金额等信息,不能发送没有这些字段的链接
|
|
64
64
|
- `reason: "form_template_auto_init_lambda"` 只说明需要页面执行初始化,不代表可以简化链接
|
|
65
|
-
- 如果链接只有 `flow_type`
|
|
65
|
+
- 如果链接只有 `flow_type`,或既没有 `prefill_token` 也没有 `init_value`,不得发给用户;重新运行默认 `project create` 或报告无法生成预填链接
|
|
66
66
|
- 如果 CLI 没有返回 URL,不要自己拼 URL
|
|
67
67
|
|
|
68
68
|
### 禁止/例外
|