@saltpub/agent-bridge 0.1.3 → 0.1.5

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 CHANGED
@@ -1,5 +1,32 @@
1
1
  # agent-bridge
2
2
 
3
+ ## 0.1.5
4
+
5
+ ### Highlights
6
+
7
+ - Windows 重新注册后台服务时不再改写正在执行的 launcher 脚本,修复升级切换后服务停止、不再自动拉起的问题。
8
+
9
+ ### Fixed
10
+
11
+ - fix(windows): 重新注册服务时不改写运行中的 launcher 脚本
12
+
13
+ ## 0.1.4
14
+
15
+ ### Highlights
16
+
17
+ - 修复尚未创建 Profile 时打开 Web 控制台后升级一直停在「已暂存」的问题。Web 更新提示仅保留版本信息和本地更新命令,移除 npm 链接。
18
+ - 已获准的任务默认不再限制总运行时长,可一直运行到完成或被取消;首次领取授权仍须在 30 秒内完成,显式设置的运行时限继续生效。旧配置中等于历史默认值的运行超时会迁移为不限时。
19
+
20
+ ### Changed
21
+
22
+ - perf(sessions): 任务默认不限时并加快启动校验
23
+
24
+ ### Fixed
25
+
26
+ - fix(log): 统一按本地时区输出时间戳
27
+ - fix(update): 修复零 Profile 升级并统一开机启动
28
+ - fix(update): 自动建立首次更新的回滚基线
29
+
3
30
  ## 0.1.3
4
31
 
5
32
  ### Highlights
package/README.md CHANGED
@@ -53,7 +53,7 @@ npm install -g @saltpub/agent-bridge
53
53
  agent-bridge web
54
54
  ```
55
55
 
56
- 首次打开空的 `AGENT_BRIDGE_HOME` 时,控制台会加载内置渠道。在「渠道管理」选择「添加渠道」,填写 profile 名称并完成平台接入;保持终端运行。若要手动复制本机控制台地址,使用 `agent-bridge web --print`。
56
+ 首次打开空的 `AGENT_BRIDGE_HOME` 时,控制台会加载内置渠道。在「渠道管理」选择「添加渠道」,填写 profile 名称并完成平台接入。普通安装由本机 launcher 托管控制台,可以关闭启动命令的终端。若终端提示正在前台托管,请保持终端运行。使用 `agent-bridge web --print` 可获取当前控制台地址。
57
57
 
58
58
  - **Xiaojiu**:填写 App ID 与 App Secret,接入后配置消息回调,见[小九接入说明](./docs/xiaojiu.md)。
59
59
  - **钉钉**:填写 Client ID、Client Secret 与 Robot Code,见[钉钉接入说明](./docs/channel/dingtalk.md)。
@@ -86,7 +86,7 @@ agent-bridge stop --profile team
86
86
  agent-bridge unregister --profile team
87
87
  ```
88
88
 
89
- `kill <uid>` 下线指定在线实例。裸 `start/stop/restart` 操作全部 autostart profile;带 `--profile` 时只操作目标。`run` 始终前台运行单个 profile。系统服务适配器覆盖 Windows 任务计划程序、macOS launchd 和 Linux systemd user;空 autostart 集合保留服务注册但禁用开机启动,`profile autostart <name>` 也可在控制台中切换。
89
+ 网页「开机启动」和 `profile autostart <name> on|off` 只设置下次登录时启动哪些 Profile。开启第一个时注册并启用系统服务,关闭最后一个时禁用登录启动,当前在线状态保持不变。裸 `start`、`stop`、`restart` 只操作已勾选的 Profile,空名单直接返回。带 `--profile` 时只操作指定目标。`kill <uid>` 下线指定在线实例。
90
90
 
91
91
  </details>
92
92
 
@@ -137,7 +137,7 @@ agent-bridge changelog
137
137
 
138
138
  `migrate` 可迁移旧版 `agent-bridge` 与 `xiaojiu-agent-bridge` 配置,详见[配置迁移](./docs/operations/offline-migration.md)。
139
139
 
140
- CLI 在支持的交互式终端中每 24 小时检查一次 npm Registry,不阻塞命令启动。`update --check` 只查询;`update` 展示稳定版更新说明并安装精确的官方 registry 版本。有会话运行时更新会被拒绝;daemon 或 launcher 托管的安装按各自机制切换,前台 `run` 与控制台进程需要先手动停止。
140
+ `update --check` 查询可用版本和更新说明。普通安装直接运行 `agent-bridge update` 即可升级,即使还没有创建 profile。没有宿主运行时,新版本立即供下一条命令使用。控制台由 launcher 托管时,宿主会等任务空闲后自动切换。用 `agent-bridge -v` 查看已采用的版本,重新运行 `agent-bridge web` 可取得新版控制台地址。Windows PowerShell 可用 `agent-bridge.cmd` 执行这些命令。
141
141
 
142
142
  设置 `AGENT_BRIDGE_NO_UPDATE_CHECK=1` 可关闭自动检查。CI、非交互终端和管道输出不会显示更新提示。
143
143