@deepexi/datasense-cli 1.11.0 → 1.12.1
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 +15 -12
- package/dist/ontos.js +1 -1
- package/package.json +9 -3
package/README.md
CHANGED
|
@@ -5,26 +5,29 @@ Ontos 平台命令行工具。
|
|
|
5
5
|
## 安装
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
# 或直接运行
|
|
12
|
-
npx @deepexi/datasense-cli <command>
|
|
8
|
+
curl -fsSL https://your-host/api/cli/install.sh | sh -s -- https://your-host
|
|
9
|
+
ontos auth host set https://your-host
|
|
13
10
|
```
|
|
14
11
|
|
|
15
|
-
需要 Node.js ≥
|
|
12
|
+
需要 Node.js ≥22.12.0 与 npm。安装脚本会查询目标 host 的兼容清单,再安装推荐的精确版本。不要追随 npm `latest`。
|
|
16
13
|
|
|
17
14
|
npm 包名为 `@deepexi/datasense-cli`,终端命令仍为 `ontos`。
|
|
18
15
|
|
|
19
16
|
## 发布到 npm
|
|
20
17
|
|
|
21
|
-
CLI 使用自身 semver(当前 **1.
|
|
18
|
+
CLI 使用自身 semver(当前 **1.12.1**),与服务端镜像 tag **不是同一套号**。服务端在部署时指定日期 tag。当前兼容矩阵为 **`v2026.09.14` 推荐 CLI 1.12.1**(范围 `>=1.12.0 <2.0.0`);更旧的 CLI 会被 Gateway 拒绝。CLI 1.10.0 的 Workbench 互信需要服务端部署对应的认证改动并开启外部身份,不能只凭日期 tag 判断已支持。部署命令示例:
|
|
22
19
|
|
|
23
20
|
```bash
|
|
24
|
-
bun run deploy:test -- v2026.09.
|
|
21
|
+
bun run deploy:test -- v2026.09.14
|
|
25
22
|
```
|
|
26
23
|
|
|
27
|
-
兼容范围见 [docs/compatibility](../../docs/compatibility/README.md)
|
|
24
|
+
兼容范围见 [docs/compatibility](../../docs/compatibility/README.md)。安装与更新都先查询目标 host 的 `/api/cli/compatibility`,再安装范围内精确版本:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
curl -fsSL https://your-host/api/cli/install.sh | sh -s -- https://your-host
|
|
28
|
+
ontos update # 按当前 host 兼容范围升级
|
|
29
|
+
ontos update --check # 只看范围、推荐版本和可安装版本
|
|
30
|
+
```
|
|
28
31
|
|
|
29
32
|
使用具有 `@deepexi` scope 发布权限的 npm 账号,在 `packages/ontos-cli` 目录执行:
|
|
30
33
|
|
|
@@ -59,13 +62,13 @@ ontos project set <name>
|
|
|
59
62
|
| `update` | 升级本机全局安装的 `@deepexi/datasense-cli`(`--check` 只查不装) |
|
|
60
63
|
| `admin tenant` | 租户 CRUD、用户开户与租户成员 |
|
|
61
64
|
| `admin env` | 环境管理 |
|
|
62
|
-
| `admin resources` | 资源 CRUD(datasource / property-type / object / relation / function / action / skill / scenario / evaluator) |
|
|
65
|
+
| `admin resources` | 资源 CRUD(datasource / property-type / object-type / relation / function / action / skill / scenario / evaluator) |
|
|
63
66
|
| `admin datasource test <name>` | 测试已保存数据源连通性(服务端解析 SecretReference) |
|
|
64
|
-
| `admin sync` | 声明式 YAML 同步(init / pull / push / diff / schema) |
|
|
67
|
+
| `admin sync` | 声明式 YAML 同步(init / pull / push / diff / schema / migrate-manifest) |
|
|
65
68
|
| `admin validate` | 本地 YAML spec 离线校验 |
|
|
66
69
|
| `skill list` | 列出可安装的平台技能 |
|
|
67
70
|
| `skill install` | 下载技能到本地 agent 目录 |
|
|
68
|
-
| `codegen` | 生成本地 TypeScript 类型声明 |
|
|
71
|
+
| `admin codegen` | 生成本地 TypeScript 类型声明 |
|
|
69
72
|
| `query` | 只读执行查询 |
|
|
70
73
|
| `execute` | 运行态一步执行写动作并落库(内联 `--params`,支持分支/版本) |
|
|
71
74
|
| `compute` | 运行态执行已发布函数计算(内联 `--params`,支持分支/版本) |
|