@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 +11 -3
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase/references/rabetbase-metric.md +1 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-metrics-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
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.
|
|
51
|
-
|
|
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`
|
|
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
|
|
2
|
-
export declare const GIT_TAG = "v2.6.0
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-11-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
65
|
+
categoryPath 为可选的主业务分类路径,按父级到子级排列,只允许1或2个非空且无首尾空白的字符串,例如 `["消费治理", "模型用量"]`;不能使用空数组、null 或三级路径。缺省表示未分类,展示方可显示“未分类”,CLI 不补默认值。该字段仅用于发现与组织,不参与标识、计算或权限,也不作为执行参数;调整分类不改变 code。分类名称由应用维护,不要求固定业务枚举。分类路径随指标 definition 保存,由独立指标服务管理。
|
|
66
66
|
|
|
67
67
|
## 生成与校验
|
|
68
68
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "rabetbase",
|
|
4
4
|
"packageName": "@lovrabet/rabetbase-cli",
|
|
5
|
-
"packageVersion": "2.6.0
|
|
6
|
-
"skillVersion": "2.6.0
|
|
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": "
|
|
164
|
+
"digest": "f334c3166b0aca6093c0b434b24a8fa884d375edc05cdb921213ee327db95c3c"
|
|
165
165
|
}
|