@saltpub/xiaojiu-agent-bridge 0.1.2 → 0.1.4

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,52 @@
1
1
  # xiaojiu-agent-bridge
2
2
 
3
+ ## 0.1.4
4
+
5
+ ### Highlights
6
+
7
+ - `xiaojiu-agent-bridge update` 会展示 latest 的 What's new,并默认执行 `npm install -g`;`--check` 只检查不安装。发版时把 CHANGELOG Highlights 写入包内更新元数据。
8
+ - daemon 日志行首新增 `[profile#uid]` 归属标记(非 TTY 启动时生效):`daemon-{stdout,stderr}.log` 中每行现在带 profile 与 `ps` 短 uid,同端口 join 进同一监听进程的其他 profile 按行各自归属;uid 注册完成前退化为 `[profile]`,TTY 输出不变
9
+ - 日志治理:修复 `inputTokens`/`outputTokens` 被误脱敏;修复 stdout 时长 `1m60s` 不进位;`run failed` 在 stdout 带单行错误原因;`flush.start` 记录 `parentTraceIds`/`msgIds` 接通 intake→flush 链路;trace 上下文字段重复时不再产生 `_chatId`/`_msgId` 冗余;agent 非 JSON 输出聚合成 `invalid-json`/`invalid-json-summary`;空闲 profile 的 `chats-fetched` 心跳只在数量变化时记录;GC 覆盖所有 profile 的 `logs/` 与 `logs/daemon/`,`daemon-*.log` 超 10 MiB 轮转单代 `.old`;daemon(非 TTY)输出带 `yy-mm-dd HH:mm:ss`(本地时区)前缀且控制台 token 落盘脱敏;`cardAction`/`owner_invalid` 等日志 token 统一 kebab-case 并加静态测试锁定;删除无调用方的 `readRecentLogs`/`sanitizeLogsForDoctor`。
10
+ - `/config` 新增「思考强度」档位(跟随默认/低/中/高/超高/最大),按 agent 映射到各自机制:Claude 用 `MAX_THINKING_TOKENS` 环境变量(预算 1k/4k/16k/32k/64k),Codex 用 `model_reasoning_effort`,Pi/OMP 用原生 `--thinking` 参数,OpenCode 拼 `--model provider/id#variant`(档位按模型而异,模型不支持时该次运行会报错)。
11
+ - 引用回复和话题上下文里的图片/文件现在会按附件策略下载,并把本地路径注入 prompt 的 `<quoted_messages>` / `<topic_context>` 段,所有 coding agent(Claude、Codex、Pi、OpenCode、OMP)都能读取被引用的图片;Codex 额外把已接受的引用图片合并进原生 `images` 参数。嵌套引用只取一层。
12
+
13
+ ### Added
14
+
15
+ - feat(log): daemon 日志行首新增 [profile#uid] 归属标记
16
+ - feat(ui): 控制台支持思考强度配置
17
+ - feat(config): 模型动态发现与思考强度档位
18
+ - feat(bot): 引用消息图片对所有 coding agent 可见
19
+ - feat(ui): 控制台按会话合并 cwd、别名与提示词
20
+ - feat(cli): update 展示 latest highlights 并自动 npm 安装
21
+
22
+ ### Fixed
23
+
24
+ - fix(log): daemon 时间戳带日期前缀 yy-mm-dd HH:mm:ss
25
+ - fix(log): 日志格式治理与 daemon 输出加固
26
+
27
+ ## 0.1.3
28
+
29
+ ### Highlights
30
+
31
+ - 本机控制台可按会话绑定工作目录,并用群列表 / 会话信息补全允许响应会话的名称。
32
+ - 本机控制台可配置 Bot 默认系统提示词和按群叠加的附加指令,下一轮对话生效且不重置会话。
33
+ - 对齐 OpenCode v2:`run` 改为 `--auto`,工作目录走进程 cwd(不再传已移除的 `--dir` / `--dangerously-skip-permissions`)。
34
+ - 最终回复发送失败时(如平台审核返回 405 内容包含敏感信息)改为发送一条包含失败原因的提示消息,避免 bot 静默不回复。
35
+ - 发消息默认走 `/open/im/v2/messages`,可在本机控制台切回 v1。
36
+
37
+ ### Added
38
+
39
+ - feat(release): 增加本机多阶段 npm 发版编排
40
+ - feat(ui): 控制台可配置 Bot 与群系统提示词
41
+ - feat(ui): 控制台按会话绑定工作区并补全群名
42
+ - feat(channel): 发消息默认走 Xiaojiu IM v2
43
+
44
+ ### Fixed
45
+
46
+ - fix(release): Windows 下正确启动带空格的 node 路径
47
+ - fix(agent): 对齐 OpenCode v2 的 run 参数
48
+ - fix(bot): 发送失败时补发失败原因提示
49
+
3
50
  ## 0.1.2
4
51
 
5
52
  ### Highlights
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Xiaojiu Agent Bridge contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Xiaojiu Agent Bridge contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/README.md CHANGED
@@ -110,8 +110,8 @@ xiaojiu-agent-bridge stop
110
110
  | `/new`、`/reset` | 清空当前会话 |
111
111
  | `/status` | 查看 profile、Agent、工作目录和运行状态 |
112
112
  | `/agent <claude\|codex\|pi\|opencode\|omp>` | 空闲时切换当前 profile 的 Agent |
113
- | `/cd <path>` | 切换工作目录并重置会话 |
114
- | `/ws list`、`/ws save <name>`、`/ws use <name>` | 管理命名工作空间 |
113
+ | `/cd <path>` | 切换工作目录并重置会话(路径会发进当前聊天;也可在本机 Web 控制台按会话绑定) |
114
+ | `/ws list`、`/ws save <name>`、`/ws use <name>` | 管理当前会话的命名工作空间 |
115
115
  | `/resume` | 恢复兼容的历史会话 |
116
116
  | `/invite user @某人` | 允许用户私聊使用 |
117
117
  | `/invite admin @某人` | 添加管理员 |
@@ -132,12 +132,12 @@ xiaojiu-agent-bridge stop
132
132
 
133
133
  ## 版本更新
134
134
 
135
- CLI 在交互式终端中每 24 小时检查一次 npm Registry,不阻塞命令启动。为避免干扰首次配置或交互式界面,提示只会在支持的终端会话中显示,并可随时手动检查和查看随包发布的更新记录:
135
+ CLI 在交互式终端中每 24 小时检查一次 npm Registry,不阻塞命令启动。为避免干扰首次配置或交互式界面,提示只会在支持的终端会话中显示。手动升级会拉取 latest 的 What's new,并默认执行 `npm install -g`:
136
136
 
137
137
  ```bash
138
138
  xiaojiu-agent-bridge update
139
+ xiaojiu-agent-bridge update --check
139
140
  xiaojiu-agent-bridge changelog
140
- npm install -g @saltpub/xiaojiu-agent-bridge@latest
141
141
  ```
142
142
 
143
143
  设置 `XIAOJIU_BRIDGE_NO_UPDATE_CHECK=1` 可以关闭自动检查。CI、非交互终端和管道输出不会显示更新提示。