@deepexi/datasense-cli 1.9.0 → 1.10.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 +11 -1
- package/dist/ontos.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ npm 包名为 `@deepexi/datasense-cli`,终端命令仍为 `ontos`。
|
|
|
18
18
|
|
|
19
19
|
## 发布到 npm
|
|
20
20
|
|
|
21
|
-
CLI 使用自身 semver(当前 **1.
|
|
21
|
+
CLI 使用自身 semver(当前 **1.10.1**),与服务端镜像 tag **不是同一套号**。服务端在部署时指定日期 tag。当前兼容矩阵为 **`v2026.09.08` 推荐 CLI 1.10.1**;CLI 1.10.0 的 Workbench 互信需要服务端部署对应的认证改动并开启外部身份,不能只凭日期 tag 判断已支持。部署命令示例:
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
24
|
bun run deploy:test -- v2026.09.08
|
|
@@ -114,3 +114,13 @@ ontos --manifest ./ontos.inventory.yaml admin sync push
|
|
|
114
114
|
- 跨 Host 使用对应 token 或独立 `XDG_CONFIG_HOME`;不会把旧 Host 的登录 token 发给覆盖后的新 Host。清单不存凭据。`auth host set` 更换实例时会清除旧登录身份,需要登录新实例。
|
|
115
115
|
|
|
116
116
|
旧清单缺少 `sync.domains` 时,在对应项目根执行 `ontos admin sync migrate-manifest --dry-run`,核对后去掉 `--dry-run` 迁移为 `[ontology]`;只有明确需要安全声明时才开启 `security`。跨 Git 根继承的旧脚本改为 `--manifest <原清单>`。此前依赖 cwd 漂移的默认资源目录请显式设置 specDir。
|
|
117
|
+
|
|
118
|
+
### Deepworks 注入会话(只读闭环)
|
|
119
|
+
|
|
120
|
+
存在 `DEEPEXIOS_AUTHORIZATION` 时,CLI 使用 Workbench 注入凭据;空值或非法值直接报错,不读取本地 token 或默认租户。不得同时配置 `ONTOS_INTERNAL_SERVICE_TOKEN`。裸 token 和单个 `Bearer ` 前缀均支持;身份信息只以服务端 `/auth/me` 返回的 `credential` 为准。
|
|
121
|
+
|
|
122
|
+
Host 始终按 `--host`、`ONTOS_HOST`、本地 `config.host` 的顺序选择完整地址,保留路径,不自动添加 `/datasense`,不读取 `DEEPEXIOS_BASE_URL`。受控 HTTP 测试须把 `ONTOS_WORKBENCH_ALLOW_HTTP_HOST` 设置为目标精确 `hostname:port`;默认拒绝 HTTP。
|
|
123
|
+
|
|
124
|
+
Workbench 请求禁止跟随重定向,401 不刷新本地登录态。`auth status` / `auth whoami` 显示已验证身份;`auth login` 验证注入会话,`auth logout` 提示在 Workbench 结束会话,两者均不改本地配置。默认租户来自 `credential.boundTenantId`,显式 flag、环境变量和清单仍是由服务端校验的资源选择。SSE 流式命令当前返回明确的不支持错误。
|
|
125
|
+
|
|
126
|
+
本轮普通数据读取使用 `ontos search <objectType>`;`ontos query`(沙箱执行)、函数、Action、写入和持续流尚未接通。注入态支持 `auth host set <url>` 配置机器 host(更换 host 会清除旧的本地登录身份,注入凭据不落盘),也可用 `--host`/`ONTOS_HOST` 指定本次目标。`auth host get` 展示本次解析的目标。
|