bpmax-cli 0.2.1-beta.26 → 0.2.1-beta.27

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.26",
3
+ "version": "0.2.1-beta.27",
4
4
  "description": "CLI for BPMAX environments with multi-profile config and local login callback flow",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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`
@@ -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
- - 人员列没有头像,长文本列没有 `showOverflowTooltip`,固定宽度没有同时写 `width/minWidth`。
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
- - 长文本列必须设置 `showOverflowTooltip`;固定宽度同时写 `width` 和 `minWidth`;日期默认显示 `YYYY-MM-DD`。
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
- "width": "400px"
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
- - 固定宽度必须同时写 `width` 和 `minWidth`。
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 workspace from the user's context or existing `bpmax-cli` profile.
14
- 2. List available plugin skills:
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 list --profile <profile> --format json
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