@dptech-corp/bohr-cli 2.6.17 → 2.6.19-preview.597

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -15,6 +15,38 @@
15
15
 
16
16
  ## [Unreleased]
17
17
 
18
+ ### Breaking
19
+
20
+ - **`bohr file` 的远端路径改为由 `personal/` 或 `share/` 前缀唯一决定空间**。改前:多数子命令会把任意路径直接发给后端,并可能用 `--project-id` 或 `--space` 推断空间;改后:个人盘只接受 `--project-id 0`,共享盘要求正数 `--project-id`,非法前缀、除 `file list` 外的根目录操作和跨空间复制/移动会在请求前报错,省略 `file list` 路径或传 `/` 均表示个人盘根目录。调用方需给路径补上对应空间前缀,并为 `share/...` 传正整数 `--project-id`。
21
+
22
+ ### Deprecated
23
+
24
+ - `bohr file list/upload --space` 已废弃,请改用路径前缀;兼容期内该参数只校验显式路径前缀且必须与其匹配,不能再为 `file list` 补全无前缀路径。`file upload` 的无前缀远端路径会暂时补全并输出迁移告警。
25
+
26
+ ## [2.6.18] - 2026-08-13
27
+
28
+ ### Added
29
+
30
+ - **`bohr agents` 新增完整科学 Agent 命令面**:用户可通过 `run/watch/sessions/artifacts` 运行 Agent、查看实时进度并下载交付物;Agent、Skill、Model、Team、Workspace、Trace、Sandbox、MCP、Memory 等管理能力统一放在 `bohr agents dev` 下。业务请求经 OpenPlatform `/openapi/v4/shrimp/*path` 透明转发到 Shrimp,CLI 不提供通用 request 透传命令。
31
+ - **未发布 Agent Draft 可直接运行验证**:`bohr agents run --agent <id> --agent-target draft` 使用当前 Draft,只允许有编辑权限的用户,不需要绕过 local Agent 的发布计费门禁。
32
+ - **会话 Workspace 输入文件可显式附加到任务**:`artifacts upload` 返回 `attachmentId` 和文件路径;在已有会话的 `run` 中通过可重复的 `--workspace-file /bohr-workspace/...` 让 Agent 读取对应输入文件。
33
+ - **Workspace 新增纯 CLI cloud 目录引导**:支持浏览、创建当前用户 Drive 目录,注册目录身份并创建或更新 Workspace,无需先打开网页端。
34
+ - **自定义 Model 管理命令保持可发现并由服务端严格鉴权**:管理员可执行 custom model CRUD/test,普通用户只能查看自身可选模型,不能通过 CLI 注入自定义 provider。
35
+
36
+ ### Changed
37
+
38
+ - **Agent 命令面仅发布当前稳定上游能力**:不包含高级 queue 编辑与 session queue-control;保留任务自动排队等待、取消已排队任务、SSE、终态校验及交付物下载。
39
+
40
+ ### Fixed
41
+
42
+ - **Agent Platform 的稳定失败码已纳入 CLI 统一错误目录**:Queue、Workflow、Artifact、Skill、Model、Workspace 与权限错误不再被新版统一输出层降级为 `UNKNOWN`;`bohr schemas errors` 和 `error.v1` 会同步发布这些错误码及退出语义。
43
+ - **Sandbox 交付物的两个单文件下载命令改走真实可用的 Session Workspace 原始字节接口**:`bohr agents artifacts download` 会先按 Artifact 元数据选择下载路由,`bohr agents dev sandbox download-file` 会先解析 Sandbox 绑定的 Session;不再分别返回 HTTP 400 和 404,非 Sandbox Artifact 与虚拟 KB 文件的既有下载协议保持不变。
44
+ - **Skill 路径统一使用稳定名称,workflow 空 body 取消不再触发上游 500**。
45
+ - **local/remote Session 继续执行补齐客户端身份参数**,cloud Session 行为不变。
46
+ - **Agent 命令完整接入统一计费门禁**:`run`、Batch/Cron 触发、Sandbox 创建/批准和 Compute 批准按下游实际用量提示并进入 `bohr billing pricing --resource agents`;其余命令显式标记为免费,不影响既有 SciMaster 策略。
47
+ - **补齐 Agent 读取、观察和下载命令的 `--dry-run`**:284 个叶子命令及 3 个可执行分组短写均可在不联网、不等待、不创建或覆盖文件的情况下预览;使用文档中的全部命令已做零网络 dry-run 扫描。
48
+ - **`bohr agents watch --output-dir` 兼容 Shrimp 轻量 Workflow 状态响应**:当状态接口不返回 `sessionId` 时,CLI 会按需从 Trace 详情解析会话,再收集并下载交付物;显式 `--session` 和 `run --output-dir` 的既有行为不变。
49
+
18
50
  ## [2.6.17] - 2026-08-13
19
51
 
20
52
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dptech-corp/bohr-cli",
3
- "version": "2.6.17",
3
+ "version": "2.6.19-preview.597",
4
4
  "description": "CLI tool for Bohrium scientific computing platform",
5
5
  "bin": {
6
6
  "bohr": "run.js"
@@ -28,11 +28,11 @@
28
28
  "CHANGELOG.md"
29
29
  ],
30
30
  "optionalDependencies": {
31
- "@dptech-corp/bohr-cli-darwin-arm64": "2.6.17",
32
- "@dptech-corp/bohr-cli-darwin-amd64": "2.6.17",
33
- "@dptech-corp/bohr-cli-linux-amd64": "2.6.17",
34
- "@dptech-corp/bohr-cli-linux-arm64": "2.6.17",
35
- "@dptech-corp/bohr-cli-windows-amd64": "2.6.17",
36
- "@dptech-corp/bohr-cli-windows-arm64": "2.6.17"
31
+ "@dptech-corp/bohr-cli-darwin-amd64": "2.6.19-preview.597",
32
+ "@dptech-corp/bohr-cli-darwin-arm64": "2.6.19-preview.597",
33
+ "@dptech-corp/bohr-cli-linux-amd64": "2.6.19-preview.597",
34
+ "@dptech-corp/bohr-cli-linux-arm64": "2.6.19-preview.597",
35
+ "@dptech-corp/bohr-cli-windows-amd64": "2.6.19-preview.597",
36
+ "@dptech-corp/bohr-cli-windows-arm64": "2.6.19-preview.597"
37
37
  }
38
38
  }