claude-code-best
661b1e29e4
Merge branch 'main' into feature/pokemon/battle
2026-04-24 21:33:23 +08:00
claude-code-best
e38d45460e
fix: 修复 Windows Node.js 构建产物因 stdin.ref() 泄漏导致进程挂起 ( #353 )
...
startCapturingEarlyInput() 调用 stdin.ref() 后,如果 Ink 未能接管
(如 raw mode 不支持或 setup 阶段异常),unref() 永远不会被调用,
导致 Node.js 事件循环无法退出。修复包括:
- stopCapturingEarlyInput() 中补充 stdin.unref() 调用
- 新增 10s 安全阀定时器自动清理 leaked ref()
- Ink App.componentWillUnmount 兜底 unref() 非 TTY stdin
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-24 21:16:15 +08:00
claude-code-best
e0c8e9dafc
chore: 添加学习文件夹
2026-04-24 20:33:43 +08:00
claude-code-best
047c85fcbf
fix: 修复 DeepSeek V4 reasoning_content 回传导致的 400 错误
...
- 扩大模型名称检测范围,匹配所有 deepseek 模型(V4、R1 等)
- 始终保留 thinking blocks 为 reasoning_content 回传给 API
- 移除有 bug 的 turn boundary 剥离逻辑
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-24 20:33:43 +08:00
claude-code-best
da6d06365d
fix: 修复 anthropic 煞笔的四个 bug ( #352 )
...
* fix: 移除文件编辑前必须先读取的限制
移除 FileEditTool 和 FileWriteTool 中的 "read before edit" 校验,
允许直接编辑未读取过的文件。保留文件修改过期检测。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
* docs: 更新 teach-me 自动写 note 笔记的功能
* fix: 修复 DeepSeek V4 reasoning_content 回传导致的 400 错误
- 扩大模型名称检测范围,匹配所有 deepseek 模型(V4、R1 等)
- 始终保留 thinking blocks 为 reasoning_content 回传给 API
- 移除有 bug 的 turn boundary 剥离逻辑
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
* fix: Opus 4.6/4.7 默认推理 effort 从 medium 改为 high
Pro 和 Max/Team 订阅者的 Opus 默认 effort 之前被降级为 medium,
导致用户感知模型「变笨」。恢复为 high。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
* fix: 移除 thinkingClearLatched sticky-on 机制
空闲超过 1 小时后 thinkingClearLatched 会被触发且永不重置,
导致每轮 API 调用都清除 thinking 历史。完整移除该 latch 机制,
clearAllThinking 硬编码为 false。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
* fix: 移除 numeric_length_anchors 系统指令
删除「工具调用间文字 ≤25 词、最终回复 ≤100 词」的硬性限制。
ablation 测试显示该约束使整体智能下降 3%。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
* fix: 修复测试中 reasoning_content 类型断言
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
---------
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-24 20:07:18 +08:00
claude-code-best
8613d558a8
Merge pull request #350 from YuanyuanMa03/fix-bun-install-readme
...
docs: clarify Bun setup without duplicate steps
2026-04-24 19:47:35 +08:00
YuanyuanMa03
017c251f78
docs: clarify bun setup without duplicate steps
2026-04-24 18:03:21 +08:00
YYMa
d4223abc34
Merge pull request #1 from YuanyuanMa03/fix-bun-install-readme
...
docs: correct Bun post-install instructions
2026-04-24 17:40:00 +08:00
YYMa
5125a159d2
docs: correct Bun post-install instructions
2026-04-24 17:36:57 +08:00
claude-code-best
d09f363414
Merge pull request #347 from amDosion/feat/ssh-remote-v2
...
feat: 启用 SKILL_LEARNING 编译开关
2026-04-24 16:07:10 +08:00
unraid
9d35f98ec7
feat: 启用 SKILL_LEARNING 编译开关
...
将 SKILL_LEARNING 加入 DEFAULT_BUILD_FEATURES,
构建产物中默认启用技能学习系统。
2026-04-24 15:18:26 +08:00
claude-code-best
eb833da33b
fix: 创建 agent 后刷新 loadMarkdownFilesForSubdir 缓存
...
新建 agent 后 clearAgentDefinitionsCache 漏清底层
loadMarkdownFilesForSubdir 的 memoize 缓存,导致新
agent 不会立即出现在列表中,需要重启才能生效。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-24 15:05:05 +08:00
claude-code-best
eadd32ae47
docs: 同步 AGENTS.md 与 CLAUDE.md
2026-04-24 15:05:05 +08:00
claude-code-best
3c55a8c83f
Merge pull request #344 from amDosion/feat/ssh-remote-v2
...
feat: SSH Remote — 本地 REPL + 远端工具执行
2026-04-24 14:36:11 +08:00
claude-code-best
5582bb47ef
docs: 五一 lint 提示
2026-04-24 14:35:39 +08:00
claude-code-best
95bb191977
Merge pull request #341 from YuanyuanMa03/docs/bun-installation-guide
...
docs: 添加 Bun 安装详细说明
2026-04-24 14:29:39 +08:00
unraid
03811f973b
feat: 实现 SSH Remote — 本地 REPL + 远端工具执行
...
SSH Remote 允许在本地运行交互式 REPL,同时将工具调用(Bash、文件读写等)
通过 SSH 隧道转发到远程主机执行。
核心模块:
- SSHSessionManager: NDJSON 双向通信、权限转发、指数退避重连
- SSHAuthProxy: 本地认证代理 + SSH -R 反向端口转发,nonce 验证
- SSHProbe: 远端主机平台/架构/已有二进制探测
- SSHDeploy: 远端二进制部署(scp)
- createSSHSession: 会话编排(probe → deploy → spawn → attach)
新增选项:
- --remote-bin: 跳过 probe/deploy,使用自定义远端二进制
- ANTHROPIC_AUTH_NONCE: API 请求认证 nonce header
包含 17 个单元测试和完整文档。
2026-04-24 14:25:56 +08:00
YuanyuanMa03
02ab1a0307
docs: 添加 Bun 安装详细说明
...
- 添加 Linux/macOS/Windows 各平台的安装命令
- 添加安装后的操作步骤(重启终端、验证安装、更新版本)
- 同步更新中英文 README
2026-04-24 12:07:18 +08:00
claude-code-best
00c120f95c
chore: 1.9.4
2026-04-24 11:48:40 +08:00
claude-code-best
7b513103d9
refactor: 解耦 BRIDGE_MODE 与 DAEMON,禁用 DAEMON 降低内存占用
...
- 从 DEFAULT_BUILD_FEATURES 注释掉 DAEMON(内存占用过高)
- remoteControlServer 命令门控从 feature('DAEMON') && feature('BRIDGE_MODE')
改为仅 feature('BRIDGE_MODE'),bridge 不再依赖 daemon
- --daemon-worker 快速路径改为运行时检测,未启用时输出明确错误提示
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-24 11:48:40 +08:00
claude-code-best
d6374f02d6
fix: 修复 ACP 模式下 messageSelector require 失败导致 submitMessage 崩溃
...
ACP 模式不加载完整的 React/Ink UI 组件,导致 require('src/components/MessageSelector.js')
返回 undefined。添加 try-catch 和 optional chaining fallback。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-24 11:48:40 +08:00
claude-code-best
b217836f5a
docs: 为 DEFAULT_BUILD_FEATURES 每个 feature flag 添加功能注释
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-24 11:48:40 +08:00
claude-code-best
4cf1a8353e
test: 添加 PP 递减测试
...
验证使用招式后 PP 减少 1,maxPp 保持不变。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-24 11:48:40 +08:00
claude-code-best
a58a36c35a
fix: 修复战斗中 PP 不递减的问题
...
projectPokemon 读取 maxPp 属性名错误,Showdown 使用小写 maxpp,
导致 maxPp 回退到当前 pp 值,UI 显示的 PP 总是满的。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-24 11:48:40 +08:00
claude-code-best
c5c7202348
fix: 修复测试因 IV/性格非确定性导致的间歇失败
...
- battle-scenarios: 回合测试改用 pikachu vs pikachi 避免非确定性一击倒
- creature: EV 测试提升至 level 50 以确保 EV 贡献可见
- creature: level 1 stat 测试使用确定性 Hardy 性格避免 flaky
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-24 11:48:40 +08:00
claude-code-best
192221eafc
feat: 多语言名称支持动态加载全量数据
...
- names.ts 新增 getSpeciesI18nName() 按 lang 获取名称
- 自动尝试加载 species-names.ts 生成数据(如已生成)
- 保留 10 个手工校对条目作为回退
- 配合 fetch-species-names.ts 脚本可获取 1024 个物种中/日名称
- 解决 #18 多语言名称覆盖极少
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-24 11:48:40 +08:00
claude-code-best
8c6be4b5d3
feat: 支持随机特性选择,包括隐藏特性
...
- 新增 getAbilities() 返回所有可用特性(含隐藏)
- 新增 randomAbility():80% 普通特性、20% 第二特性、5% 隐藏特性
- 保留 getDefaultAbility() 向后兼容
- 解决 #20 Ability 系统不完整
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-24 11:48:40 +08:00
claude-code-best
c37b274406
fix: 蛋孵化步数改用真实 hatchCounter 数据
...
- 孵化步数从 captureRate 反推改为 hatchCounter * 257(原版公式)
- getHatchCounter 支持进化阶段/传说回退分类
- fetch-pokedex-data.ts 已更新以采集 hatchCounter 字段
- 解决 #17 蛋系统孵化步数不准确
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-24 11:48:40 +08:00
claude-code-best
e16b5667a8
fix: 改用 Gen 3+ 标准方法生成 PID/IV/闪亮/性别
...
- 新增 generatePID() 生成 32 位 Personality Value
- IV 改为 PID 位提取法(word1/word2 各取 3 个 5-bit),替换 LCRNG
- Shiny 检测改为 PID XOR 方法,阈值 < 16(Gen 8+ 约 1/4096)
- 性别阈值从 (rate/8)*256 改为 rate*32,消除浮点精度丢失
- 生成生物时使用 randomAbility() 替代 getDefaultAbility()
- 解决 #14 Shiny 检测、#15 IV 生成、#16 性别阈值、#20 Ability 选择
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-24 11:48:40 +08:00
claude-code-best
e9405e4a8a
feat: 战斗引擎全面升级 — 捕获/逃跑/多对手/AI/道具/状态
...
- 新增 capture.ts:Gen 9 捕获率计算,支持精灵球/状态/时间修正
- 实现逃跑概率公式 (Gen 9) 和失败累计机制
- createBattle 支持多对手 OpponentEntry[],AI 换人考虑属性克制
- AI 选招改为优先克制招式,避免蓄力招式和被抵抗招
- 野生招式从 Dex.data.Learnsets 按等级获取,替换硬编码映射
- 实现 Potion/SuperPotion/FullRestore 等回复药效果
- 野生对手随机持有道具(5%树果/专属、3%属性增强道具)
- 新增 VolatileStatus 类型,BattlePokemon 添加 volatileStatus
- needsSwitch 检测改为更健壮的 p1Fainted + hasAliveBench 逻辑
- 解决 #3 物品使用、#4 逃跑、#5 多精灵对战、#6 AI、#7 野生招式、
#10 捕获系统、#11 volatile状态、#12 天气/地形、#19 野生道具
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-24 11:48:40 +08:00
claude-code-best
be64db70d4
fix: 修正战斗结算的 XP 和 EV 计算
...
- XP 公式改为使用真实 baseExperience(从 PokeAPI),而非 baseStats.hp
- EV yield 改为使用真实数据(getPokedexEvYield),而非伪造的映射
- 进化检测改为遍历所有 evos 目标,支持分支进化
- 新增友谊度进化检测(friendship >= 220)
- 解决 #1 XP 公式错误、#2 EV 伪造、#8 进化只取第一个目标
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-24 11:48:40 +08:00
claude-code-best
6fc365cf73
feat: 从 PokeAPI 批量导入物种数据,替换硬编码
...
- 新增 pokedex-data.ts:1024 个物种的 baseExperience、EV yield、growthRate、captureRate、baseHappiness、hatchCounter
- 新增 fetch-pokedex-data.ts:PokeAPI 数据抓取脚本(可重复运行)
- 新增 fetch-species-names.ts:多语言名称抓取脚本(中/日/英)
- species.ts 改为使用 pokedex-data 替代硬编码 supplement 条目
- 解决 #1 XP 数据源、#2 EV 数据源、#13 Growth Rate 覆盖不全问题
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-24 11:48:40 +08:00
claude-code-best
6a89a5139a
docs: 添加 Pokémon 战斗系统审查报告
...
记录 20 个已发现的 bug 及修复状态,涵盖严重/中等/轻度三个级别。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-24 11:48:40 +08:00
claude-code-best
6ed8f5b870
chore: 1.9.3
2026-04-24 11:48:40 +08:00
claude-code-best
bc17003301
fix: 修复 usePipeIpc 中 require 返回 undefined 导致启动崩溃
...
将 lazy require() 调用全部替换为静态 import,解决构建产物中
模块加载时序问题导致的 'undefined is not an object' 错误。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-24 11:48:40 +08:00
claude-code-best
dc13eb9c10
chore: 1.9.2
2026-04-24 11:48:40 +08:00
claude-code-best
ec6a223b85
chore: 更新版本流水线
2026-04-24 11:48:40 +08:00
claude-code-best
27e9857741
chore: 1.9.1
2026-04-24 11:48:40 +08:00
claude-code-best
090e3515ae
ci: 删除冗余 release 工作流
2026-04-24 11:48:40 +08:00
claude-code-best
0572d5591b
ci: 添加 GitHub Release 和自动生成 changelog 到发布流程
2026-04-24 11:48:40 +08:00
claude-code-best
24922affd2
ci: 统一 typecheck 命令并添加 npm 发布工作流
2026-04-24 11:48:40 +08:00
claude-code-best
10b5f35140
fix: 修复第三方 Anthropic base URL 应使用 ExaSearchAdapter 而非 BingSearchAdapter
...
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-24 11:48:40 +08:00
claude-code-best
b3fce1edb7
chore: 贡献者更新工作流改为每周定时触发
...
移除 push 触发,仅保留每周一 schedule 触发。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-24 11:48:20 +08:00
claude-code-best
5e47489579
fix: 修复 cliHighlight 类型不兼容问题
...
loadedGetLanguage 返回类型中 name 字段改为可选,匹配 highlight.js
Language 类型中 name 为 string | undefined 的定义。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-04-24 11:48:20 +08:00
claude-code-best
3210caddb0
chore: 1.9.0
2026-04-24 11:48:20 +08:00
Bot
51a3a83f07
fix: 将 highlight.js 改为静态导入以兼容 Bun --compile 模式
...
- cliHighlight.ts: 使用静态 import 替换 dynamic import('highlight.js'),
因为编译模式下模块解析指向内部 bunfs 路径导致无法找到
- color-diff-napi/src/index.ts: 同样改为静态导入,移除 createRequire 延迟加载
2026-04-24 11:48:20 +08:00
Bot
c69e66d2cd
feat: 添加 Exa AI 搜索适配器
...
- 新增 ExaSearchAdapter,基于 MCP 协议调用 Exa 搜索 API
- WebSearchTool 支持 num_results、livecrawl、search_type、context_max_characters 等高级选项
- 非 Anthropic 官方 base URL 时默认使用 Exa 适配器
2026-04-24 11:48:20 +08:00
claude-code-best
cbda09d7ee
chore: 添加 release 脚本
2026-04-24 11:47:51 +08:00
claude-code-best
c88943795f
fix: 修复 build 过程中的问题
2026-04-24 11:47:51 +08:00
claude-code-best
2a5b263641
chore: 1.9.4
v1.9.4
2026-04-24 10:50:53 +08:00