@lovrabet/rabetbase-cli 2.6.0-beta.4 → 2.6.0

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/README.md CHANGED
@@ -47,8 +47,16 @@ the CLI may already be installed; fix the reported cause and rerun
47
47
 
48
48
  `rabetbase update` installs the target CLI and invokes that new package's explicit
49
49
  Skill installer before reporting success. A failed Skill step returns failure
50
- without claiming that the CLI package was rolled back. With older updaters,
51
- finish the transition by running `rabetbase cli-skill install` explicitly.
50
+ without claiming that the CLI package was rolled back.
51
+
52
+ When upgrading from 2.5.13, the old updater can install the new CLI and then exit
53
+ with `Built-in Skill verification failed`, because the new package has no
54
+ `postinstall`. First check `rabetbase --version`. Only if it is the intended
55
+ target version and the error is this Skill verification failure, run
56
+ `rabetbase cli-skill install`, then require `rabetbase doctor` to report the
57
+ matching version as `current`. Do not suppress npm installation errors or
58
+ continue after a failed Skill installation. In automation, handle this specific
59
+ partial completion explicitly: an `&&` chain or `set -e` stops before repair.
52
60
 
53
61
  ## Update and Verify
54
62
 
@@ -342,4 +350,4 @@ Preview the redacted content before submitting. On success, the command displays
342
350
 
343
351
  ### 指标目录与本地校验
344
352
 
345
- `rabetbase metric schema` 读取指标 JSON Schema;`rabetbase metric example` 返回单个自包含定义;`rabetbase metric validate --file <metric.json>` 检查定义、内嵌 JSON contract 及示例;`metric schema --kind contract` 读取 contract 结构。计算继续复用已有 SQL/BFF,运行态 `lovrabet metric exec` 负责调用前后校验。详见 [命令参考](skills/rabetbase/references/rabetbase-metric.md)、[定义结构](templates/metrics/metric-definition.schema.json)、[内置示例](templates/metrics/definition.json) 和 [操作指引](https://qizhiyuntu.feishu.cn/wiki/PY4DwJ2a8iyaf9koETicamgEnAf)。
353
+ `rabetbase metric schema` 读取指标定义结构,`metric example` 返回单个定义示例,`metric validate --file <metric.json>` 校验定义字段及 JSON 数值安全性。指标以应用和 `code` 定位,通过独立指标服务发布,仅支持 BFF 目标。`contract` 来自当前 BFF 元数据,CLI 只检查其外层对象并保留原内容,不编译内部 Schema、校验示例或证明业务结果正确;`metric schema --kind contract` 也只描述这一外层约束。运行态调用使用 `lovrabet metric exec`,仍需真实执行及业务对账。详见 [命令参考](skills/rabetbase/references/rabetbase-metric.md)、[定义结构](templates/metrics/metric-definition.schema.json)、[内置示例](templates/metrics/definition.json) 和 [操作指引](https://qizhiyuntu.feishu.cn/wiki/PY4DwJ2a8iyaf9koETicamgEnAf)。
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2.6.0-beta.4";
2
- export declare const GIT_TAG = "v2.6.0-beta.4";
3
- export declare const GIT_COMMIT = "69902656";
4
- export declare const BUILD_TIME = "2026-11-20T09:37:28.304Z";
1
+ export declare const VERSION = "2.6.0";
2
+ export declare const GIT_TAG = "v2.6.0";
3
+ export declare const GIT_COMMIT = "930ec383";
4
+ export declare const BUILD_TIME = "2026-11-20T15:29:45.474Z";
@@ -1 +1 @@
1
- export const VERSION="2.6.0-beta.4";export const GIT_TAG="v2.6.0-beta.4";export const GIT_COMMIT="69902656";export const BUILD_TIME="2026-11-20T09:37:28.304Z";
1
+ export const VERSION="2.6.0";export const GIT_TAG="v2.6.0";export const GIT_COMMIT="930ec383";export const BUILD_TIME="2026-11-20T15:29:45.474Z";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.6.0-beta.4",
3
+ "version": "2.6.0",
4
4
  "description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, Backend Function, database connections, skills, and AI agent workflows.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: rabetbase
3
- version: 2.6.0-beta.4
3
+ version: 2.6.0
4
4
  description: "Use for Lovrabet development work through the rabetbase CLI: create or bind projects (including creating an AppCode project in the current folder), pull Dataset/API facts and maintain SDK clients, or manage datasets, Instant API access policies, database connections, pages, host frontend integration, frontend subapp resources, SQL, Backend Functions, application metrics, approval flows and workflows, menus, notifications, knowledge bases and kb search, Agent Context Rules, roles, files, OCR, deployment metadata, platform issues, and 钉钉沙箱账号绑定. Trigger when the user mentions rabetbase, Lovrabet development, AppCode, Dataset, Instant API allow/deny/route policy, project creation, api pull/codegen, dblink, page, host frontend integration, subapp resource versions, SQL, BFF, creating or designing an approval flow, workflow, business process, or multi-step approval, menu, notification, knowledge base, kb search, Agent Context Rules, RULES.md, DATABASE.md, rule list/get/set, role, file/OCR, or related workflows."
5
5
  metadata:
6
6
  requires:
@@ -62,7 +62,7 @@ list 返回 {appCode,count,metrics:[{code,description?,label?,synonyms?,category
62
62
 
63
63
  除 Markdown description 可保留首尾空白和换行外,字符串字段须非空且无首尾空白。functionName 使用真实注册名,保留现有 metric 前缀,不从 code 推导。业务公式可写入 description,不另加公式字段;凭证、执行参数、映射和数据结果不进入定义。
64
64
 
65
- categoryPath 为可选的主业务分类路径,按父级到子级排列,只允许1或2个非空且无首尾空白的字符串,例如 `["消费治理", "模型用量"]`;不能使用空数组、null 或三级路径。缺省表示未分类,展示方可显示“未分类”,CLI 不补默认值。该字段仅用于发现与组织,不参与标识、计算或权限,也不作为执行参数;调整分类不改变 code。分类名称由应用维护,不要求固定业务枚举。存储于 value,METRIC 标签仍只标识配置类型。
65
+ categoryPath 为可选的主业务分类路径,按父级到子级排列,只允许1或2个非空且无首尾空白的字符串,例如 `["消费治理", "模型用量"]`;不能使用空数组、null 或三级路径。缺省表示未分类,展示方可显示“未分类”,CLI 不补默认值。该字段仅用于发现与组织,不参与标识、计算或权限,也不作为执行参数;调整分类不改变 code。分类名称由应用维护,不要求固定业务枚举。分类路径随指标 definition 保存,由独立指标服务管理。
66
66
 
67
67
  ## 生成与校验
68
68
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: rabetbase-dataset-generation
3
- version: 2.6.0-beta.4
3
+ version: 2.6.0
4
4
  description: "根据自然语言需求设计并创建 Lovrabet DOV2 METADATA 数据集、字段和 lookup 关系;由调用 rabetbase CLI 的 Agent 建模,支持单实体、多实体和已有数据集引用。"
5
5
  metadata:
6
6
  requires:
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: rabetbase-metrics-generation
3
3
  displayName: 企业指标开发与交付
4
- version: 2.6.0-beta.4
4
+ version: 2.6.0
5
5
  description: "Use when 用户要求创建、修改或交付应用级业务指标,或已明确的业务目标需要补齐应用级统计能力。也适用于核验已有指标是否满足需求。不用于仅查询或消费已有指标、仅因报告缺数自动开发、权限提权或替企业决定未知业务口径。"
6
6
  metadata:
7
7
  requires:
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: rabetbase-page-generation
3
- version: 2.6.0-beta.4
3
+ version: 2.6.0
4
4
  description: "根据用户需求,为已有 Dataset 选择、生成、串联、验证和发布 CustomJSX 页面;提供列表、详情、新增、更新基础模板,并支持裁剪或扩展页面。"
5
5
  metadata:
6
6
  requires:
@@ -2,8 +2,8 @@
2
2
  "schemaVersion": 1,
3
3
  "name": "rabetbase",
4
4
  "packageName": "@lovrabet/rabetbase-cli",
5
- "packageVersion": "2.6.0-beta.4",
6
- "skillVersion": "2.6.0-beta.4",
5
+ "packageVersion": "2.6.0",
6
+ "skillVersion": "2.6.0",
7
7
  "files": [
8
8
  "SKILL.md",
9
9
  "guides/approval-flow-development-workflow.md",
@@ -161,5 +161,5 @@
161
161
  "references/rabetbase-user-account.md",
162
162
  "references/rabetbase-workspace.md"
163
163
  ],
164
- "digest": "f03b1cbd753c154dbe947fe21a3a976cf029461683fbe92673ba7d5da85fbb00"
164
+ "digest": "f334c3166b0aca6093c0b434b24a8fa884d375edc05cdb921213ee327db95c3c"
165
165
  }