Skip to content

feat: optional tool toggles, Windows fixes, apply_patch polish#4

Open
mystery4f wants to merge 8 commits into
capyup:mainfrom
mystery4f:main
Open

feat: optional tool toggles, Windows fixes, apply_patch polish#4
mystery4f wants to merge 8 commits into
capyup:mainfrom
mystery4f:main

Conversation

@mystery4f

@mystery4f mystery4f commented Jun 14, 2026

Copy link
Copy Markdown

What's in this PR

可选工具开关

capy-tools.json 新增 tools 字段,每个内置工具都可以单独启用/禁用:

  • capy-tools-settings 设置面板增加了 Tools 子菜单,交互式切换任一工具
  • 禁用工具后需重启或 /reload 生效
  • settings 工具本身始终加载,确保随时可以重新启用

Windows 路径兼容修复

command-history 的历史文件命名不再被 Windows 盘符冒号和反斜杠打断

apply_patch 描述优化

工具描述和提示语更清晰地强调跨文件一次性 patch 的能力

工程改进

  • typescript 移至 dependencies(showsignature 运行时需要)
  • 新增 postinstall 脚本,从 git 安装时自动补全依赖

- Add ToolsConfig type with 24 individual tool toggles
- index.ts now respects config before loading each tool
- capy-tools-settings always loads (so users can re-enable)
- Read config from settings.json capyTools.tools, fallback to capy-tools.json
- Write back to both capy-tools.json and settings.json on change
- CLI: /capy-tools-settings enable/disable <tool>
- UI: /capy-tools-settings > Tools menu with toggle switches

Closes capyup#2
@mystery4f mystery4f changed the title feat: optional tool registration, command-history fixes, apply_patch improvements feat: optional tool toggles, Windows fixes, apply_patch polish Jun 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant