@dptech-corp/bohr-cli 2.8.0 → 2.8.2

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 +47 -0
  2. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -22,6 +22,53 @@
22
22
 
23
23
  ## [Unreleased]
24
24
 
25
+ ## [2.8.2] - 2026-10-23
26
+
27
+ ### Breaking
28
+
29
+ - Widget 契约随宿主升至 0.3.0:Manifest 与样例的 `slot`、`panelType` 改为 `contribution`、`id`;旧工程报 `SLOT_RENAMED`,按提示改名后重新构建。
30
+
31
+ ### Added
32
+
33
+ - 新增 `bohr-widget-manifest` 指引(别名 `widget-manifest`),离线提供 Widget 创作规范与示例;CLI 发版时自动更新到公开 skills 包的最新稳定版。
34
+ - 新增 `agents dev tools test`,独立试跑已保存的自定义工具,支持未发布版本并显示真实输出和退出码。
35
+ - 新增 `agents tools available/describe`,按精确 toolRef 发现工具并原样呈现服务端参数契约。
36
+ - 新增 `agents tools contexts` 五个子命令,管理 Tool Context 生命周期。
37
+ - 新增 `agents tools run` 与 `calls` 六个子命令,直接提交、等待和取消工具调用。
38
+ - `--wait` 只轮询 GET;超时返回可恢复 `callId` 并非零退出,不取消远端、不新建请求。
39
+ - 工具终态 `failed/canceled/unknown` 与非零 `isError` 均非零退出;`input_required` 返回结构化 needs-input 错误。
40
+ - 新增错误码 `TOOL_CALL_FAILED`、`TOOL_CALL_CANCELED`、`TOOL_OUTCOME_UNKNOWN`。
41
+ - 新增错误码 `TOOL_INPUT_REQUIRED`、`TOOL_WAIT_TIMEOUT`、`TOOL_WAIT_CANCELLED`。
42
+ - `contexts watch` 遇 SSE 501 时降级为轮询,并以 `TOOL_CONTEXT_STREAM_DEGRADED` 警告说明。
43
+ - `bohr billing pricing` 新增 `agents.tool_call` 与 `agents.tool_context`:直调工具与 Context 创建按下游用量计费。
44
+ - `sandbox template status`:查询模板发布/可用状态,`--watch` 等待终态(READY/FAILED),超时仅表示客户端停止等待。
45
+ - `sandbox template create/update` 支持全局 `--wait` 与 `--wait-interval/--wait-timeout`:受理后轮询发布状态,不再重发创建请求。
46
+ - 新增错误码 `TEMPLATE_PUBLICATION_FAILED`、`TEMPLATE_WAIT_TIMEOUT`、`TEMPLATE_WAIT_CANCELLED`(退出码均为 1)。
47
+ - 新增错误码 `TEMPLATE_PUBLICATION_UNCONFIRMED`:等待的修订与响应不匹配或无法核实时,不假报成败(退出码 1)。
48
+ - 新增警告码 `AGENT_PLATFORM_ARTIFACT_SKIPPED`:交付物下载跳过目录等非文件项时给出。
49
+
50
+ ### Changed
51
+
52
+ - `widgets init` 生成的工程钉 widget-sdk 0.3.0;`--slot`、`--panel-type` 名称不变,分别写 `contribution.type` 与 `id`。
53
+ - `sandbox template create/update` 成功文案改为「受理」并给出 `template status` 查询入口;等待不会把旧版本 Ready 误当本次发布成功。
54
+ - `sandbox create` 的模板发布失败 hint 改指 `sandbox template status`,不再指向失败实例列表;后端已有 hint 保持不变。
55
+
56
+ ### Fixed
57
+
58
+ - `artifacts download-all` 与 `run/watch --output-dir` 遇目录交付物不再退出 1:目录逐项标 `skipped`,文件下载失败仍非零退出。
59
+
60
+ ## [2.8.1] - 2026-10-22
61
+
62
+ ### Changed
63
+
64
+ - 内置 Widget SDK/contracts 改为钉住宿主平台接受的版本(当前 0.2.0),不再在发版时自动跟 npm 最新版:上游 0.3.0 改了字段名,宿主尚未升级。
65
+
66
+ ### Fixed
67
+
68
+ - 默认 `auth login` 遇到已失效的旧登录会话(2.7.13 及更早留下的、或签名密钥已轮换)时改为重新走浏览器/设备码登录,不再反复报错。
69
+ - `auth login` 的进度提示和设备码授权说明改写到 stderr,`--output json` 时 stdout 只剩结果信封;程序读授权链接用 `--device --no-wait --json`。
70
+ - 2.8.0 搬走的旧命令路径,报错改为说出新路径(如 `bohr skills read` 搬到 `bohr guide read`),hint 指向新命令的 `--help`。
71
+
25
72
  ## [2.8.0] - 2026-10-22
26
73
 
27
74
  ### Breaking
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dptech-corp/bohr-cli",
3
- "version": "2.8.0",
3
+ "version": "2.8.2",
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.8.0",
36
- "@dptech-corp/bohr-cli-darwin-amd64": "2.8.0",
37
- "@dptech-corp/bohr-cli-linux-amd64": "2.8.0",
38
- "@dptech-corp/bohr-cli-linux-arm64": "2.8.0",
39
- "@dptech-corp/bohr-cli-windows-amd64": "2.8.0",
40
- "@dptech-corp/bohr-cli-windows-arm64": "2.8.0"
35
+ "@dptech-corp/bohr-cli-darwin-arm64": "2.8.2",
36
+ "@dptech-corp/bohr-cli-darwin-amd64": "2.8.2",
37
+ "@dptech-corp/bohr-cli-linux-amd64": "2.8.2",
38
+ "@dptech-corp/bohr-cli-linux-arm64": "2.8.2",
39
+ "@dptech-corp/bohr-cli-windows-amd64": "2.8.2",
40
+ "@dptech-corp/bohr-cli-windows-arm64": "2.8.2"
41
41
  }
42
42
  }