@dptech-corp/bohr-cli 2.6.102 → 2.7.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -22,6 +22,54 @@
22
22
 
23
23
  ## [Unreleased]
24
24
 
25
+ ## [2.7.0] - 2026-09-18
26
+
27
+ ### Breaking
28
+
29
+ - **`bohr file list -o json` 改为标准列表**:`objects` 改名 `items`,翻页改读 `pagination.has_more`、`next_token`。
30
+ - **`sandbox`/`batchjob machine list -o json` 合成一张表**:`cpu`、`gpu` 并入 `items`,按每行新增的 `class` 区分。
31
+ - **`bohr project list -o json` 去掉顶层 `totalPage`**:判断有无下一页改读 `data.pagination.has_more`。
32
+ - **移除 15 条已过公示期的弃用项**(3 条命令、11 处 flag 旧名、`-o pretty`):此前带告警仍可用,现在直接报错;改法见下表。
33
+
34
+ 本版移除下列已过公示期的弃用项。旧名 → 新名的映射只在这里,运行时的报错不会说新名字。
35
+
36
+ **命令**
37
+
38
+ | 移除 | 改用 |
39
+ |-|-|
40
+ | `bohr database list` | `bohr database polymer list` |
41
+ | `bohr mentor` | `bohr agents mentor` |
42
+ | `bohr sandbox image` | `bohr image` |
43
+
44
+ **flag 与格式常量**
45
+
46
+ | 移除 | 改用 |
47
+ |-|-|
48
+ | `--space` (bohr file list) | pass the space as a path prefix instead: --space personal with <path> becomes personal/<path>, and --space share becomes share/<path> |
49
+ | `--space` (bohr file upload) | pass the space as a path prefix instead: --space personal with <path> becomes personal/<path>, and --space share becomes share/<path> |
50
+ | `--projectId` (bohr dataset list) | `--project-id` |
51
+ | `--project_id` (bohr job submit) | `--project-id` |
52
+ | `--project_id` (bohr job_group create) | `--project-id` |
53
+ | `--projectId` (bohr job_group list) | `--project-id` |
54
+ | `--project_id` (bohr node create) | `--project-id` |
55
+ | `--project_id` (bohr project delete) | `--project-id` |
56
+ | `--datasetId` (bohr dataset delete) | `--dataset-id` |
57
+ | `--imageId` (bohr image delete) | `--image-id` |
58
+ | `--chooseType` (bohr machine list) | `--choose-type` |
59
+ | `-o pretty` | `-o json` |
60
+
61
+ - **`bohr file upload` 的远端路径须带 `personal/` 或 `share/` 前缀**:此前无前缀会被补全并告警,现在报 `VALIDATION_FAILED`。
62
+
63
+ ### Added
64
+
65
+ - **`bohr file list --next-token`**:把上一页的 `data.pagination.next_token` 传回来取下一页;人读输出在还有下一页时直接给出这条命令。
66
+
67
+ ## [2.6.103] - 2026-09-18
68
+
69
+ ### Fixed
70
+
71
+ - **人读输出展开嵌套对象**:`auth status --verify` 的 identity 不再打成 `map[orgId:4.56e+06]`,ID 显示为整数。
72
+
25
73
  ## [2.6.102] - 2026-09-18
26
74
 
27
75
  ### Breaking
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dptech-corp/bohr-cli",
3
- "version": "2.6.102",
3
+ "version": "2.7.0",
4
4
  "description": "CLI tool for Bohrium scientific computing platform",
5
5
  "bin": {
6
6
  "bohr": "run.js"
@@ -32,11 +32,11 @@
32
32
  "CHANGELOG.md"
33
33
  ],
34
34
  "optionalDependencies": {
35
- "@dptech-corp/bohr-cli-darwin-arm64": "2.6.102",
36
- "@dptech-corp/bohr-cli-darwin-amd64": "2.6.102",
37
- "@dptech-corp/bohr-cli-linux-amd64": "2.6.102",
38
- "@dptech-corp/bohr-cli-linux-arm64": "2.6.102",
39
- "@dptech-corp/bohr-cli-windows-amd64": "2.6.102",
40
- "@dptech-corp/bohr-cli-windows-arm64": "2.6.102"
35
+ "@dptech-corp/bohr-cli-darwin-arm64": "2.7.0",
36
+ "@dptech-corp/bohr-cli-darwin-amd64": "2.7.0",
37
+ "@dptech-corp/bohr-cli-linux-amd64": "2.7.0",
38
+ "@dptech-corp/bohr-cli-linux-arm64": "2.7.0",
39
+ "@dptech-corp/bohr-cli-windows-amd64": "2.7.0",
40
+ "@dptech-corp/bohr-cli-windows-arm64": "2.7.0"
41
41
  }
42
42
  }