@dptech-corp/bohr-cli 2.6.56 → 2.6.57

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 +25 -0
  2. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -16,6 +16,31 @@
16
16
 
17
17
  ## [Unreleased]
18
18
 
19
+ ## [2.6.57] - 2026-08-26
20
+
21
+ ### Breaking
22
+
23
+ - **七个命令族共 54 个 flag 声明必填**:缺参数报错由各命令自定义文案统一为 `required flag(s) "x" not set`,并提前到执行前。按文案匹配的脚本需改。
24
+ - **9 处「二选一」声明为分组**:都没给时报错统一为 `at least one of the flags in the group [a b] is required`,按文案匹配的脚本需改。
25
+ - **补记:`sandbox list` 自 2.6.49 起不再返回 `data.items[].id`**:它是内部数据库行号,喂不回任何命令;请改读 `sandbox_id`。当时漏发了公告。
26
+ - **调用错误改报 `INVALID_ARGUMENTS`**:元数不对、缺必填 flag、二选一没给、ID 与替代 flag 都没给这四类。按旧码匹配的调用方需改判据;退出码仍是 1。
27
+ - **13 条 job/node/project 命令缺 ID 的报错统一**:改为 `requires <bohr_id> as an argument, or --id`,四种旧文案不再出现。
28
+ - **给了零值的 ID flag 不再报「你必须提供」**:`--node_id 0` 这类改报 `--node_id must be a positive node ID`,拒绝的输入不变。
29
+
30
+ ### Added
31
+
32
+ - **新增错误码 `INVALID_ARGUMENTS`**:params 类,HTTP 400,退出码 1;hint 带该命令的 `--help` 与 `missing_params`。
33
+
34
+ ### Changed
35
+
36
+ - **`job +cancel`、`job +watch` 的 Usage 行补上 `<bohr_id>...`**:此前只写 `+cancel [flags]`,看不出它收 Bohr ID。
37
+ - **`--help` 标出必填与二选一**:此前 93 条必填里只有 16 个手写过 `(required)`,现在全部标出;分组加 `(one of: --a, --b)`。
38
+
39
+ ### Fixed
40
+
41
+ - **`bohr --help` 不再示范已下掉的 `config initialize`**:该命令早已移除,根命令示例仍列着,改为 `bohr config list`。
42
+ - **两条 `--help` 示例跑不通**:`job_group download 123 654` 改为 `-j 123`;远端命令带 flag 写 `exec <id> -- ls -la`。
43
+
19
44
  ## [2.6.56] - 2026-08-26
20
45
 
21
46
  ### Breaking
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dptech-corp/bohr-cli",
3
- "version": "2.6.56",
3
+ "version": "2.6.57",
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.56",
36
- "@dptech-corp/bohr-cli-darwin-amd64": "2.6.56",
37
- "@dptech-corp/bohr-cli-linux-amd64": "2.6.56",
38
- "@dptech-corp/bohr-cli-linux-arm64": "2.6.56",
39
- "@dptech-corp/bohr-cli-windows-amd64": "2.6.56",
40
- "@dptech-corp/bohr-cli-windows-arm64": "2.6.56"
35
+ "@dptech-corp/bohr-cli-darwin-arm64": "2.6.57",
36
+ "@dptech-corp/bohr-cli-darwin-amd64": "2.6.57",
37
+ "@dptech-corp/bohr-cli-linux-amd64": "2.6.57",
38
+ "@dptech-corp/bohr-cli-linux-arm64": "2.6.57",
39
+ "@dptech-corp/bohr-cli-windows-amd64": "2.6.57",
40
+ "@dptech-corp/bohr-cli-windows-arm64": "2.6.57"
41
41
  }
42
42
  }