claude-code-best
|
1201d88c37
|
docs: 添加 ToolSearch 设计指南 + 禁用 turn-zero 工具推荐弹窗
- 新增 docs/design/tool-search-design-guide.md,涵盖架构、搜索算法、执行管道、演进历史
- 禁用 getTurnZeroSearchExtraToolsPrefetch,消除用户输入时的频繁弹窗
- inter-turn 发现机制保持不变
Co-Authored-By: glm-5-turbo <zai-org@claude-code-best.win>
|
2026-06-07 00:56:16 +08:00 |
|
James Feng
|
0d30c6b064
|
fix: move ToolSearchTool from packages/builtin-tools/ to src/tools/
Eliminates cross-workspace circular dependency that triggered
Bun ARM code-splitting deadlock. The tool's 471-line RL data
collection infrastructure (analytics, GrowthBook, scoring weights,
tool_reference API) is preserved intact.
Changes:
- Move ToolSearchTool.ts, prompt.ts, constants.ts to src/tools/ToolSearchTool/
- Update 11 consumer imports from @claude-code-best/builtin-tools/ to relative paths
- Delete stubs and empty shells (MonitorTool.tsx, WorkflowPermissionRequest.tsx)
- Verify: splitting build succeeds, runtime -p mode responds without deadlock
|
2026-06-04 01:15:36 +08:00 |
|
James Feng
|
0c01c93e80
|
Phase 2a: mechanical dedup — import rewrite to canonical package
- Migrated src/tools/-only files into packages/builtin-tools/src/tools/
- Rewrote all src/tools/ imports to @claude-code-best/builtin-tools/tools/
- Deleted 121 identical duplicate files from src/tools/
- 238 drifted files preserved in src/tools/ for Phase 2b manual merge
- 359 files changed: 914 insertions, 4042 deletions
Build: 568 files bundled ✓
Test: 3340 pass / 4 fail (baseline) ✓
|
2026-06-03 13:54:22 +08:00 |
|
James Feng
|
cdd62520eb
|
feat(upstream): sync b1c4f40f ACP fix + WorkflowTool top-level require()
Codex cherry-pick:
- b1c4f40f: fix ACP extended thinking + tool_use 连续 user 消息导致 400
→ src/utils/messages.ts: ensureToolResultPairing 检查连续 user 消息
→ src/utils/tests/messages.test.ts: 新增测试(冲突手动解决)
James 兜底:
- tools.ts: WorkflowTool lazy getter → top-level require (MonitorTool 模式)
移除 initBundledWorkflows() 调用(经确认是 no-op)
原因: lazy getter 在 splitting:true 下运行时触发 chunk load 死锁
审核结论:
- 上游 a91653a0/6dd378bf/efc218d8 已存在(之前已合入)
- 上游 9d17597e autofix-pr 回流跳过(大规模改动,stub 无基础)
- WORKFLOW_SCRIPTS 仍禁用: top-level require 在 splitting:true 下
触发 WorkflowTool chunk 循环死锁(非加载模式问题,是 chunk 依赖图过深)
当前 splitting:true 启用状态:
MONITOR_TOOL ✅ | WORKFLOW_SCRIPTS ❌ | 其他 features ✅
验证: --version / -p / --print / 源码模式 全部通过
|
2026-06-02 14:45:21 +08:00 |
|
James Feng
|
21f126b76a
|
feat(build): splitting:true + MONITOR_TOOL 恢复 + WorkflowTool lazy getter
Codex 完成:
- build.ts: splitting: false → true (562 files code-split 构建)
- defines.ts: MONITOR_TOOL 重新启用(require() 迁移后无死锁)
- 验证 splitting:true 产物 -p/--print 全部正常
James 兜底:
- tools.ts: WorkflowTool IIFE → lazy getter (getWorkflowTool)
避免模块初始化时的 chunk 加载死锁,但 WORKFLOW_SCRIPTS 仍因
更深的 chunk 依赖图问题 hang,暂时保持禁用
- getAllBaseTools() 中 WorkflowTool 引用改为 lazy getter
状态:
| splitting:true | 562 files ✅ |
| MONITOR_TOOL | enabled ✅ |
| WORKFLOW_SCRIPTS | disabled (lazy getter 不足) |
验证: --version / -p / --print / 源码模式 全部通过
|
2026-06-02 14:22:42 +08:00 |
|
James Feng
|
98bb25636b
|
refactor(tools): static import → require() 迁移 + 兜底修复
Codex 完成:
- tools.ts: 7 个 static import (指向空壳 stub) → require("@claude-code-best/builtin-tools/...")
涉及: SleepTool, CronTools, RemoteTriggerTool, MonitorTool, SendUserFileTool,
PushNotificationTool, TeamCreateTool, TeamDeleteTool, SendMessageTool, WorkflowTool
- PermissionRequest.tsx: MonitorTool require() 指向 builtin-tools
- TeamCreateTool/DeleteTool/SendMessageTool 用 lazy require() 打破循环依赖
兜底修复:
- defines.ts: 保持 MONITOR_TOOL + WORKFLOW_SCRIPTS 禁用
原因: builtin-tools 里的真工具 import "src/..." 产生跨包循环引用
在 splitting:true 下触发 chunk 间死锁,在 splitting:false 下触发 ESM 初始化死锁
这是逆向工程的结构性限制,非简单修复能解决
验证: --version / -p / --print / 源码模式 全部通过
|
2026-06-02 13:41:47 +08:00 |
|
James Feng
|
2c31cc2723
|
Fix Vite runtime requires for restored features
|
2026-06-01 21:23:28 +08:00 |
|
claude-code-best
|
2934f30084
|
fix: 彻底移除 /loop 及 cron 工具的 feature('AGENT_TRIGGERS') gate
上次提交仅移除了 isKairosCronEnabled 中的 gate,但 /loop 整条链路
仍被 feature('AGENT_TRIGGERS') 拦截导致无法使用:
- skills/bundled/index.ts: registerLoopSkill() 未被调用
- tools.ts: CronCreate/Delete/List 工具未加载
- constants/tools.ts: cron 工具名未加入 teammate 工具列表
- screens/REPL.tsx: useScheduledTasks hook 被跳过
- cli/print.ts: pipe 模式 cron 调度器未初始化
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-04-01 11:57:16 +08:00 |
|
claude-code-best
|
f90eee85d8
|
feat: build
|
2026-03-31 19:22:47 +08:00 |
|