claude-code-best
9624f880e0
fix: 修复第三方 Anthropic base URL 应使用 ExaSearchAdapter 而非 BingSearchAdapter
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-23 21:52:16 +08:00
claude-code-best
85e5a8cffb
chore: 贡献者更新工作流改为每周定时触发
...
移除 push 触发,仅保留每周一 schedule 触发。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-23 20:17:46 +08:00
claude-code-best
299953b0ee
fix: 修复 cliHighlight 类型不兼容问题
...
loadedGetLanguage 返回类型中 name 字段改为可选,匹配 highlight.js
Language 类型中 name 为 string | undefined 的定义。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-23 20:12:47 +08:00
claude-code-best
7a3fdf6e67
chore: 1.9.0
2026-04-23 20:10:29 +08:00
claude-code-best
b642977afe
Merge pull request #335 from realorange1994/feature/cli-highlight
...
fix: 将 highlight.js 改为静态导入以兼容 Bun --compile 模式
2026-04-23 20:07:27 +08:00
claude-code-best
781188862e
Merge pull request #333 from realorange1994/feature/exa-search
...
feat: 添加 Exa AI 搜索适配器
2026-04-23 20:06:53 +08:00
claude-code-best
b966eef5a9
Merge branch 'main' into feature/exa-search
2026-04-23 20:04:13 +08:00
claude-code-best
c3d63c8fe2
chore: 添加 release 脚本
2026-04-23 19:58:55 +08:00
Bot
7d4c4278c0
fix: 将 highlight.js 改为静态导入以兼容 Bun --compile 模式
...
- cliHighlight.ts: 使用静态 import 替换 dynamic import('highlight.js'),
因为编译模式下模块解析指向内部 bunfs 路径导致无法找到
- color-diff-napi/src/index.ts: 同样改为静态导入,移除 createRequire 延迟加载
2026-04-23 18:47:31 +08:00
Bot
93bfdabff1
feat: 添加 Exa AI 搜索适配器
...
- 新增 ExaSearchAdapter,基于 MCP 协议调用 Exa 搜索 API
- WebSearchTool 支持 num_results、livecrawl、search_type、context_max_characters 等高级选项
- 非 Anthropic 官方 base URL 时默认使用 Exa 适配器
2026-04-23 18:43:41 +08:00
claude-code-best
1173a62301
refactor: 统一 log.ts/debug.ts 的测试 mock 为共享定义
...
- 新增 tests/mocks/log.ts 和 tests/mocks/debug.ts,覆盖源文件全部实际导出
- 移除旧 mock 中不存在的导出(logToFile、logEvent、getLogFilePath)
- 13 个测试文件改为使用共享 mock,避免定义分散和不一致
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-23 11:39:53 +08:00
claude-code-best
7ea69ca279
fix: 修复 build 过程中的问题
2026-04-23 11:39:46 +08:00
claude-code-best
4e82fb5974
Merge pull request #330 from claude-code-best/feature/improve-v2-final
...
feat: 整合功能恢复与技能学习闭环 v2 (重构版)
2026-04-22 22:55:20 +08:00
claude-code-best
f43350e600
fix: 修复 4 个测试失败(路径规范化、SDK 签名变更、空消息防护)
...
- projectContext.test.ts: 使用 realpathSync 处理 macOS /var→/private/var 符号链接
- bedrockClient.test.ts: 适配 Bedrock SDK v0.80 Bearer 认证(原 AWS4-HMAC-SHA256)
- bridge.ts: forwardSessionUpdates 添加 null guard 防止空消息导致 TypeError
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-22 22:52:37 +08:00
unraid
23fcbf9004
feat: 添加 UI 组件增强与测试覆盖
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-22 22:38:10 +08:00
unraid
23bb09d240
feat: 添加 model/provider 层改进
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-22 22:38:10 +08:00
unraid
d208855f07
feat: 添加 builtin-tools 增强与测试覆盖
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-22 22:38:10 +08:00
unraid
7881cc617c
feat: 增强 ACP 桥接与权限处理
...
- 增强 ACP agent 测试覆盖
- 扩展 ACP bridge 测试用例
- 改进 ACP utils 权限管道
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-22 22:38:10 +08:00
unraid
c7e1c50b86
feat: 添加服务层增强与零散改进
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-22 22:38:10 +08:00
unraid
2247026bd5
chore: 添加脚本与构建配置更新
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-22 22:38:10 +08:00
unraid
eec961352b
feat: 添加 napi 包测试覆盖与 stub 改进
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-22 22:38:10 +08:00
unraid
fb41513b32
feat: 添加工具类增强与状态管理改进
...
- 新增 workflowRuns、remoteTriggerAudit、pipeStatus 等工具
- 增强 permissionSetup: auto mode 和 bypass permissions 始终可用
- 新增多组测试覆盖 (modifiers, teamDiscovery, deepLink 等)
- 修复 parseInt 缺少 radix 参数
- 移除多余 biome-ignore 注释
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-22 22:38:10 +08:00
unraid
94c4b37eed
feat: 添加 summary 命令 TypeScript 重写与其他命令增强
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-22 22:38:09 +08:00
unraid
6c5df395c3
feat: 添加 compact 缓存与上下文压缩增强
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-22 22:38:09 +08:00
unraid
be97a0b010
feat: 添加 Bedrock API 客户端及 API 层增强
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-22 22:38:09 +08:00
unraid
59f8675fa3
feat: 添加 Windows Terminal swarm 后端及 swarm 增强
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-22 22:38:09 +08:00
unraid
c4775fff58
feat: 添加 autonomy 自主模式命令系统
...
- 新增 autonomy CLI handler 和交互式面板
- 新增 autonomyCommandSpec 命令规范定义
- 新增 autonomyAuthority 权限控制
- 新增 autonomyStatus 状态管理
- 注册 CLI 子命令 (claude autonomy status/runs/flows/flow)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-22 22:38:09 +08:00
unraid
31b2fdd97a
feat: 添加 provider usage 统计与余额查询
...
- 新增 providerUsage 服务(anthropic/bedrock/openai 适配器)
- 新增余额查询(deepseek/generic poller)
- StatusLine 保留原有 rateLimits 接口不变
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-22 22:38:09 +08:00
unraid
1837df5f88
feat: 添加 skill learning 技能学习闭环系统
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-22 22:38:09 +08:00
unraid
04c7ed4250
chore: 删除废弃文档和残留文件
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-22 22:38:08 +08:00
claude-code-best
711927f01b
chore: 更新 lock 文件
2026-04-21 08:20:40 +00:00
claude-code-best
956e98a445
fix: 修复重复依赖声明
v1.8.0
2026-04-21 16:16:38 +08:00
claude-code-best
cee62bc654
fix: 修复 model alias 导致无限递归栈溢出
...
当用户 settings 中配置 model = "opus[1m]" 等 alias 值时,
getDefaultOpusModel() → parseUserSpecifiedModel() → getDefaultOpusModel()
形成无限递归,导致启动时 RangeError: Maximum call stack size exceeded。
在 getDefaultOpusModel/Sonnet/Haiku 的 fallback 路径中增加
isAliasOrAliasWithSuffix 守卫,跳过 alias 值直接使用硬编码默认值。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-21 16:10:16 +08:00
claude-code-best
5fc7c8e13d
chore: 添加 highlight.js 包
2026-04-21 12:42:10 +08:00
claude-code-best
300faa18d0
Merge branch 'feature/unknown-llm-feature-test'
2026-04-21 12:06:19 +08:00
claude-code-best
96ec96c720
feat: 添加 ccb update 命令,支持 npm/bun 自动更新
...
从 package.json 读取当前版本,查询 npm registry 最新版本,
自动检测安装方式(bun 或 npm)执行全局更新。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-20 22:35:57 +08:00
claude-code-best
13a0bfc479
fix: 修复构建产物 import 失效问题
2026-04-20 22:29:44 +08:00
claude-code-best
84f0271813
chore: 1.7.1
2026-04-20 22:13:31 +08:00
claude-code-best
ed4bdb9338
feat: 增强 auto mode 的易用性 ( #312 )
...
* feat: poor 模式降级 yolo 审阅模型
* feat: 为多模块添加 Langfuse tracing 支持
在 web search、agent creation、away summary、token estimation、
skill improvement 等模块中集成 Langfuse trace,并透传至
compact/apiQueryHook/execPromptHook 等调用链。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
* fix: 让 auto mode 记录回主 trace
* fix: reopen auto mode prompt when classifier is unavailable
* fix: 修复 auto mode 情况下, llm 报错导致弹窗也不打开的问题
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-20 21:13:09 +08:00
claude-code-best
e4ce08fe39
Fixture/langfuse record auto mode data error ( #308 )
...
* fix: 修复状态栏 context 计数器在 loading 时闪现为 0 的问题
第三方 API(如智谱)在 message_start 中可能不返回完整 usage 数据,
导致 getCurrentUsage 返回全零 usage 对象,使 ctx 显示为 0%。
双重保护:
- getCurrentUsage: 跳过全零 usage,继续往前找有真实数据的 message
- calculateContextPercentages: totalInputTokens 为 0 时返回 null
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
* fix: 外部化 ESM 包使用 createRequire 替代裸 require
color-diff-napi、image-processor-napi、audio-capture-napi 声明
"type": "module" 但使用裸 require(),Node.js ESM 中 require
不可用。改用 createRequire(import.meta.url) 或顶层 import。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
* fix: getDefaultSonnetModel 优先使用用户配置的模型,修复第三方 provider 模型不存在错误
当用户通过 ANTHROPIC_MODEL 或 settings 配置了自定义 provider 支持的模型时,
getDefaultSonnetModel/Haiku/Opus 现在会优先使用该配置,而非硬编码 Anthropic 官方模型 ID。
同时改进 Langfuse 可观测性:sideQuery 失败时记录错误信息到 span,
optional 模式下标记 WARNING 而非 ERROR。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
* fix: 将 auto_mode classifier 的 side-query span 绑定到父 trace
classifyYoloAction 及 classifyYoloActionXml 接收 parentSpan 参数,
透传给 sideQuery 调用,使 auto_mode 的 side-query span 嵌套在主 agent trace 下。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
* fix: 穷鬼模式下跳过 memdir_relevance side-query
Poor mode 启用时不执行 findRelevantMemories 的预取调用,
避免额外的 API token 消耗。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
* chore: 添加 test:all 脚本用于完成任务后的全量检查
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
* fix: Vite 构建补齐缺失的 feature flags,修复 auto mode 不可见
Vite 构建插件的 DEFAULT_BUILD_FEATURES 缺少 BUDDY、TRANSCRIPT_CLASSIFIER、
BRIDGE_MODE、ACP、BG_SESSIONS、TEMPLATES,导致 feature('TRANSCRIPT_CLASSIFIER')
被替换为 false,auto mode 从 Shift+Tab 循环中消失。与 build.ts 对齐。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
* fix: 统一 feature flags 到 defines.ts,修复 Vite 构建缺失 auto mode
将 DEFAULT_BUILD_FEATURES 列表从 build.ts、dev.ts、vite-plugin-feature-flags.ts
三处内联定义统一到 scripts/defines.ts 单一导出。之前的 Vite 插件缺少
TRANSCRIPT_CLASSIFIER 等 feature flag,导致 auto mode 在 Vite 构建中不可见。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
v1.6.0
2026-04-20 13:30:05 +08:00
claude-code-best
92f8a92fbb
feat: 正式启用 auto mode ( #307 )
...
* fix: 修复settings.json内存状态溢出的问题
* fix: 修复auto mode gate check未处理的promise rejection
在 bypassPermissionsKillswitch.ts 的 useKickOffCheckAndDisableAutoModeIfNeeded
中,void fire-and-forget 调用缺少 .catch() 处理,导致 verifyAutoModeGateAccess
失败时产生 unhandled promise rejection。同时移除 permissionSetup.ts 中冗余的
null check。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
* feat: 开放 auto mode 和 bypass mode 给所有用户
通过 Shift+Tab 统一循环:default → acceptEdits → plan → auto → bypassPermissions → default
- 移除 USER_TYPE 分支判断,所有用户使用同一循环路径
- isBypassPermissionsModeAvailable 始终为 true
- isAutoModeAvailable 初始化直接为 true
- 移除 AutoModeOptInDialog 确认流程
- 简化 isAutoModeGateEnabled 仅保留快模式熔断器
- 简化 verifyAutoModeGateAccess 仅检查快模式
- 移除 GrowthBook/Statsig 远程门控
- bypass permissions killswitch 改为 no-op
- 新增 24 个测试覆盖循环逻辑和门控不变量
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
* feat: 为sideQuery添加Langfuse追踪
sideQuery 绕过了 claude.ts 的主 API 路径,导致所有走 sideQuery 的调用
(auto mode classifier、permission explainer、session search 等)都没有
Langfuse 记录。现在为每次 sideQuery 调用创建独立 trace 并记录 LLM observation,
未配置 Langfuse 时全部 no-op。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
* fix: ACP availableModes 补齐 bypassPermissions 并修正测试 import 路径
- ACP agent availableModes 按条件包含 bypassPermissions(非 root/sandbox)
- 顺序对齐 REPL 循环:default → acceptEdits → plan → auto → bypassPermissions
- 新增 2 个测试验证 availableModes 包含 bypassPermissions 及模式切换
- 修正 getNextPermissionMode.test.ts 和 permissionSetup.test.ts 的 import 路径
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-20 10:20:27 +08:00
claude-code-best
a67e2d0e97
docs: 更新 npm 安装
2026-04-19 22:00:48 +08:00
claude-code-best
8c629858ab
chore: 1.6.0
2026-04-19 21:37:35 +08:00
claude-code-best
494eab7204
feat: 接入内建 weixin channel(同 #301 重构版本) ( #303 )
...
* feat: 接入 weixin 服务层与命令入口
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent )
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai >
* feat: 注册内建 weixin channel 插件
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent )
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai >
* fix: 修正 channel permission relay 路由与能力判定
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent )
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai >
* fix: 修复 builtin channel 的 ChannelsNotice 误报
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent )
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai >
* docs: 补充内建 weixin channel 使用说明
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent )
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai >
* docs: 更新微信 channel 接入计划状态
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent )
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai >
* fix: 延迟加载 weixin 登录二维码依赖
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent )
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai >
* fix: 改用 qrcode 生成 weixin 登录二维码
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent )
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai >
* fix: 修正 vite 构建的 Windows 路径解析
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent )
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai >
* chore: 删除临时规划文档 wx_channel.md 并还原 package.json 排序
wx_channel.md 内容已整合到 docs/features/channels.md,不再需要。
package.json 中 @ant/model-provider 位置从原始位置被无意移动,还原。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
* refactor: 将 weixin 模块从 src/ 迁移至 packages/weixin 工作区包
将 src/services/weixin/ 中的纯业务逻辑迁入 @claude-code-best/weixin
workspace 包,降低 src/ 耦合度。仅保留 server.ts 作为薄适配层。
- 迁移 7 个无修改的纯模块 (types/api/accounts/login/pairing/media/send)
- monitor.ts 内联 PERMISSION_REPLY_RE 正则,解除对 src/ 的依赖
- permissions.ts 本地定义 ChannelPermissionRequestParams 接口
- cli.ts 拆分:serve 子命令通过回调注入,login/access 保留在包内
- server.ts 重写为从 @claude-code-best/weixin 导入
- 新增 cli-serve.ts 作为 serve 入口薄壳
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
* fix: 修正 weixin barrel export 中 interface 的导出方式
ChannelPermissionRequestParams 是纯类型,必须用 export type 导出,
否则 Bun 运行时会报 "export not found" 错误。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
* refactor: 将 server.ts 迁入 packages/weixin,彻底移除 src/services/weixin/
通过依赖注入(WeixinServerDeps)解耦 src/ 依赖(analytics、config、
MCP channel schema),server.ts 完全移入包内。cli.tsx 入口处一次性
注入所有依赖。
src/services/weixin/ 目录已完全删除。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
* fix: 修复 markdownToPlainText 中代码块正则的 ReDoS 风险
用非正则的线性扫描替代 \`\`\`[\s\S]*?\n([\s\S]*?)\`\`\` 匹配,
避免在含有大量重复 \`\`\` 序列的输入上触发多项式回溯。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
---------
Co-authored-by: 1111 <11111@asd.c>
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai >
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
v1.5.0
2026-04-19 21:33:27 +08:00
claude-code-best
b83c3008d0
docs: 更新 discord 地址
2026-04-19 21:21:04 +08:00
claude-code-best
66d2671c98
feat: acp manager ( #304 )
...
* feat: acp 控制器第一版
* feat: acp-link 命令二合一
2026-04-19 21:18:18 +08:00
claude-code-best
c7bc8c8636
feat: remote control 支持 auto bind 功能 ( #300 )
...
* feat: acp-link 支持 --group 参数指定 channel group
- 添加 --group CLI flag,校验格式 [a-zA-Z0-9_-]+
- 支持 ACP_RCS_GROUP 环境变量 fallback
- 传递 channelGroupId 到 RcsUpstreamClient
- 更新 README 文档说明 --group 和相关环境变量
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
* fix: RCS 后端 session 复用与 group 绑定
- storeFindEnvironmentByMachineName 匹配 offline 状态,防止重连创建重复 session
- registerEnvironment 复用已有 session 而非每次新建
- EnvironmentResponse 返回 channel_group_id 字段
- 注册时将 session 绑定到 group ID,支持 web UI 按 group 查询
- apiKeyAuth 不再设置 uuid,由 uuidAuth 统一处理
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
* feat: Web UI Token Manager — 多 token 切换与 session 隔离
- 新增 useTokens hook 管理 localStorage token CRUD
- 新增 TokenManagerDialog 弹窗组件(添加/编辑/删除/切换 token)
- api client 支持Bearer token 认证,UUID 跟随 token 变化
- Navbar 添加 token 切换按钮
- 切换 token 时自动 reload,实现 session 数据隔离
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
* fix: 修复 useTokens useState 初始化函数签名错误
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
rcs-v3.3
2026-04-19 13:04:09 +08:00
claude-code-best
673ccd1800
chore: 1.5.0
2026-04-19 12:34:51 +08:00
claude-code-best
d1ab38c089
chore: 移除 pre-commit git hook
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-19 12:31:31 +08:00
claude-code-best
f9d011164a
fix: 替换 web 端 crypto.randomUUID 为 uuid 库以支持 HTTP 环境
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-19 10:33:15 +08:00