bpmax-cli 0.2.1-beta.77 → 0.2.1-beta.78

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.2.1-beta.77",
3
+ "version": "0.2.1-beta.78",
4
4
  "description": "CLI for BPMAX environments with multi-profile config and local login callback flow",
5
5
  "type": "module",
6
6
  "bin": {
@@ -89,6 +89,7 @@ bpmax-cli issue create --title "<标题>" --description-file <file.md> --label b
89
89
  - 本地 schema manifest:读 `../bpmax-schema/SKILL.md`
90
90
  - 服务端能力白名单:先用 `capabilities status/refresh` 查看当前 profile 已授权 capability,不要绕过白名单手写 raw API
91
91
  - 插件安装、组织/工作区激活、插件提供的配置 Skill:先进入 `../bpmax-plugin-config/SKILL.md`。先用 typed activation overview 证明插件在目标工作区生效,再按远端 sha256 发现或更新 Skill;依赖过期或冲突 Skill 的配置 lint/build/submit 不得继续。
92
+ - 流程门户、工作流门户、门户入口配置:读 `../bpmax-home-portal-editor/SKILL.md`
92
93
  - 独立跨页面组合模板、Vue/Less、模板专属静态资源上传与引用:读 `../bpmax-page-composition-template-editor/SKILL.md`。
93
94
  - BPMAX Business Skills 查询、同步、安装、更新、卸载:读 `../bpmax-business-skill/SKILL.md`
94
95
  - AI 任务方案、任务书、任务拆解、subagent 分工、实施任务表、进度 CSV:读 `../bpmax-ai-taskbook/SKILL.md`
@@ -0,0 +1,79 @@
1
+ ---
2
+ name: "bpmax-home-portal-editor"
3
+ description: "用于通过 bpmax-cli typed config 创建或编辑 BPMAX 流程门户(home-portal)。只要用户提到流程门户、工作流门户、门户入口、门户流程入口或门户配置,就使用本 skill。"
4
+ ---
5
+
6
+ # BPMAX Flow Home Portal Editor
7
+
8
+ 流程门户对应服务端 `/api/home_portal` 和 `think_home_portal`、`think_home_portal_category`、`think_home_portal_entry`。本 skill 只描述门户配置的读取、编辑、预览、提交和回读。
9
+
10
+ ## Capability 门禁
11
+
12
+ 开始前必须确认服务端已发布并动态授予以下 capability;不能手工修改本地 capability 缓存或绕过 typed CLI:
13
+
14
+ ```bash
15
+ bpmax-cli capabilities refresh --profile <profile> --format json
16
+ bpmax-cli capabilities status --profile <profile> --format json
17
+ bpmax-cli config adapters --profile <profile> --format json
18
+ ```
19
+
20
+ 至少需要:
21
+
22
+ - `config.home_portal.export`
23
+ - `config.home_portal.submit`
24
+ - `config.home_portal.flows`
25
+ - `config.home_portal.preview`
26
+
27
+ 导航导入和工作区复制还需要 `config.home_portal.nav_import`、`config.home_portal.copy`。写入通常要求 `organization.admin`。
28
+
29
+ ## 标准闭环
30
+
31
+ ```bash
32
+ bpmax-cli config home-portal export --id <workspace> --profile <profile> --out .codex/tmp/home-portal-editor --format json
33
+ bpmax-cli config home-portal lint --work .codex/tmp/home-portal-editor/work/home-portal-<workspace>.json --profile <profile> --format json
34
+ bpmax-cli config home-portal build --work .codex/tmp/home-portal-editor/work/home-portal-<workspace>.json --meta .codex/tmp/home-portal-editor/meta/home-portal-<workspace>.meta.json --out .codex/tmp/home-portal-editor/submit/home-portal-<workspace>.json --profile <profile> --format json
35
+ bpmax-cli config home-portal submit --id <workspace> --payload .codex/tmp/home-portal-editor/submit/home-portal-<workspace>.json --profile <profile> --confirm "submit home-portal <workspace>" --format json
36
+ bpmax-cli config home-portal export --id <workspace> --profile <profile> --out .codex/tmp/home-portal-editor/readback --format json
37
+ ```
38
+
39
+ 提交前必须完成 dry-run、最小 diff 和用户的精确确认。CLI 会比较导出基线 `base_hash`,并使用门户 `version` 做 CAS;远端变化时必须重新 export,不能复用旧 payload。
40
+
41
+ ## Work JSON
42
+
43
+ 根对象至少包含:
44
+
45
+ ```json
46
+ {
47
+ "workspace": "<workspace>",
48
+ "version": 0,
49
+ "categories": [],
50
+ "entries": []
51
+ }
52
+ ```
53
+
54
+ 入口字段包括 `name`、`description`、`path`、`secondPath`、`linkLabel`、`secondLinkLabel`、`icon`、`color`、`openInWindow`、`common`、`enabled`、`order`、`flowType`、`flowKey`、`permissionType`、`permission`、`visibility`、`visibility_scope`、`sourceNavId`。
55
+
56
+ 流程入口优先通过以下命令取得真实流程候选,不得猜 `flowType` 或 `flowKey`:
57
+
58
+ ```bash
59
+ bpmax-cli config home-portal flows --profile <profile> --format json
60
+ ```
61
+
62
+ ## 预览和导入
63
+
64
+ - `nav-preview` 只生成当前 PC 导航导入预览,不等于提交:
65
+
66
+ ```bash
67
+ bpmax-cli config home-portal nav-preview --profile <profile> --format json
68
+ ```
69
+
70
+ - `nav_import`、`copy` 必须绑定服务端返回的 `previewToken` 和 `expectedVersion`;预览过期时停止并重新预览。
71
+ - 门户写入必须使用本 skill 的 typed CLI 闭环,不得改用浏览器请求或未验证的直连脚本。
72
+
73
+ ## 范围和验收
74
+
75
+ - 修改前先列出 requested、required-collateral、out-of-scope;PC/H5 导航默认是 out-of-scope。
76
+ - 保留未修改的分类、入口、权限、顺序和 `sourceNavId`。
77
+ - 提交后必须回读 `/home_portal`,确认版本、入口数量、流程字段和目标路径。
78
+ - 页面验收应在工作区门户页 `/w:<workspace>/home`。
79
+ - `mismatch_count=0`、HTTP 200 或 CLI build 成功不能替代真实页面验收。