@dptech-corp/bohr-cli 2.6.96 → 2.6.98
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/CHANGELOG.md +15 -0
- package/README.md +1 -1
- package/package.json +7 -7
- package/postinstall.js +7 -3
package/CHANGELOG.md
CHANGED
|
@@ -22,6 +22,21 @@
|
|
|
22
22
|
|
|
23
23
|
## [Unreleased]
|
|
24
24
|
|
|
25
|
+
## [2.6.98] - 2026-09-12
|
|
26
|
+
|
|
27
|
+
### Fixed
|
|
28
|
+
|
|
29
|
+
- **`bohr tools info` 传了工具名而不是 key 时会指路了**:报错里补上「去 `bohr tools search` 结果的 `Key:` 一栏取 key」,此前这句提示在生产上从未出现。
|
|
30
|
+
- **`bohr tools info` 人读输出里的镜像 id 不再带引号**:原先显示成 `(id "110331")`,照着复制出去是错的。
|
|
31
|
+
|
|
32
|
+
## [2.6.97] - 2026-09-12
|
|
33
|
+
|
|
34
|
+
### Fixed
|
|
35
|
+
|
|
36
|
+
- **`bohr doctor` 的 `connectivity` 改查网关健康接口**:此前打的是一条不存在的路由,任何 HTTP 应答都算连通;现在认出是 Bohrium 网关才报 pass。
|
|
37
|
+
- **`bohr doctor` 的 `extension_health` 与 `bohr extension list` 一致**:此前漏报 trisol/wenyon;缺二进制记 `warn`。
|
|
38
|
+
- **遮蔽补救改名为 `.legacy` 后缀**:原先的 `bohr-legacy` 会被当成扩展(PATH 上 `bohr-*` 都算)。已按旧写法改过的,再改一次即可。
|
|
39
|
+
|
|
25
40
|
## [2.6.96] - 2026-09-12
|
|
26
41
|
|
|
27
42
|
### Breaking
|
package/README.md
CHANGED
|
@@ -129,7 +129,7 @@ npm install -g @dptech-corp/bohr-cli@latest --registry https://registry.npmjs.or
|
|
|
129
129
|
3. 把第 1 步里 `command -v bohr` 报出来的**那个文件**改名——不是照抄下面的路径,是改你自己那一个:
|
|
130
130
|
|
|
131
131
|
```bash
|
|
132
|
-
mv "$(command -v bohr)" "$(command -v bohr)
|
|
132
|
+
mv "$(command -v bohr)" "$(command -v bohr).legacy"
|
|
133
133
|
```
|
|
134
134
|
|
|
135
135
|
如果它在 `~/.bohrium` 里,**不要删掉 `~/.bohrium` 整个目录**——登录凭据还存在那里,新版是从它迁移过来的。`~/.bohr/bin` 里没有凭据,只有那个可执行文件。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dptech-corp/bohr-cli",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.98",
|
|
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.
|
|
36
|
-
"@dptech-corp/bohr-cli-darwin-amd64": "2.6.
|
|
37
|
-
"@dptech-corp/bohr-cli-linux-amd64": "2.6.
|
|
38
|
-
"@dptech-corp/bohr-cli-linux-arm64": "2.6.
|
|
39
|
-
"@dptech-corp/bohr-cli-windows-amd64": "2.6.
|
|
40
|
-
"@dptech-corp/bohr-cli-windows-arm64": "2.6.
|
|
35
|
+
"@dptech-corp/bohr-cli-darwin-arm64": "2.6.98",
|
|
36
|
+
"@dptech-corp/bohr-cli-darwin-amd64": "2.6.98",
|
|
37
|
+
"@dptech-corp/bohr-cli-linux-amd64": "2.6.98",
|
|
38
|
+
"@dptech-corp/bohr-cli-linux-arm64": "2.6.98",
|
|
39
|
+
"@dptech-corp/bohr-cli-windows-amd64": "2.6.98",
|
|
40
|
+
"@dptech-corp/bohr-cli-windows-arm64": "2.6.98"
|
|
41
41
|
}
|
|
42
42
|
}
|
package/postinstall.js
CHANGED
|
@@ -605,13 +605,17 @@ function detectShadowedBohr(opts) {
|
|
|
605
605
|
//
|
|
606
606
|
// 要改名的是 **PATH 上那一个**(found),不是它指向的目标(foundReal):found 是符号
|
|
607
607
|
// 链接时,改名目标会留下一条断链,而 PATH 解析仍然命中那个链接名。
|
|
608
|
+
//
|
|
609
|
+
// 改名后缀是 `.legacy`:改完名的文件还在 PATH 上,而 bohr 把 PATH 上叫 bohr-* 的可执行
|
|
610
|
+
// 文件都当成扩展,原先的 bohr-legacy 就成了一个叫 legacy 的扩展(来龙去脉见 Go 那边
|
|
611
|
+
// HandBackSteps 的注释)。
|
|
608
612
|
function shadowRemedyLines(detected, homeDir) {
|
|
609
613
|
const home = homeDir || os.homedir();
|
|
610
614
|
const legacyRoot = path.join(home, ".bohrium");
|
|
611
615
|
const underLegacyRoot = (p) =>
|
|
612
616
|
typeof p === "string" && (p === legacyRoot || p.startsWith(legacyRoot + path.sep));
|
|
613
617
|
|
|
614
|
-
const lines = [`[postinstall] mv ${detected.found} ${detected.found}
|
|
618
|
+
const lines = [`[postinstall] mv ${detected.found} ${detected.found}.legacy`];
|
|
615
619
|
// 「别删 ~/.bohrium」这句只在真的动到 ~/.bohrium 时才说。凭据在那儿,别处没有;
|
|
616
620
|
// 对着一个 ~/.bohr/bin 的遮蔽讲 ~/.bohrium 的凭据,只会让人以为自己找错了东西。
|
|
617
621
|
if (underLegacyRoot(detected.found) || underLegacyRoot(detected.foundReal)) {
|
|
@@ -623,8 +627,8 @@ function shadowRemedyLines(detected, homeDir) {
|
|
|
623
627
|
return ["[postinstall] 2. rename the shadowing executable:"].concat(lines);
|
|
624
628
|
}
|
|
625
629
|
|
|
626
|
-
//
|
|
627
|
-
//
|
|
630
|
+
// 同一个补救办法在本仓有三处话术,改名那一步由测试以 README 为准对账(这里由
|
|
631
|
+
// postinstall.test.js、Go 那边由 internal/update 的 handback_test.go):
|
|
628
632
|
//
|
|
629
633
|
// internal/update/update.go 的 HandBackSteps —— `bohr update` 与 `bohr doctor` 共用的 Go 版本
|
|
630
634
|
// npm/README.md「升级后 bohr version 显示的还是旧版本号」—— 给人读的五步版
|