claude-code-best/src/keybindings
claude-code-best fc438bd222
Feature/add auto mode settings and fix bug (#368)
* refactor: 将 convertMessagesToLangfuse 参数类型从 unknown 收窄为联合类型

将 readonly unknown[] 改为 readonly LangfuseInputMessage[],
其中 LangfuseInputMessage = UserMessage | AssistantMessage | ChatCompletionMessageParam,
让调用方获得编译期类型检查。

* fix: 修复 Config 面板第二次进入时左右键无反应的问题

将左右键枚举值切换从依赖 DOM 焦点的 onKeyDown 改为 useKeybindings 系统,
确保按键在任何焦点状态下都能正确响应。同时修复 isSearchMode 初始值和布局问题。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* fix: 修复 PowerShellTool.isSearchOrReadCommand 在 input 为 undefined 时崩溃的问题

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* feat: 添加 RSS 内存指示器并解绑 auto 权限模式与 TRANSCRIPT_CLASSIFIER

- 在 REPL 底栏添加 RSS 内存使用显示,512MB 以下 dimColor,512MB-1GB warning 色,1GB 以上 error 色
- auto 权限模式不再依赖 TRANSCRIPT_CLASSIFIER feature flag,classifier 不可用时 fallback 到 prompting
- Config 面板 defaultPermissionMode 使用类型安全的 permissionModeFromString,显示改用 shortTitle
- bypassPermissions title 缩短为 Bypass 与 shortTitle 一致

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* fix: 同步 permissionModeTitle 测试断言与 bypassPermissions 的新 title 值

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-26 15:43:25 +08:00
..
__tests__ feat: 重构供应商层次 (#286) 2026-04-17 09:33:14 +08:00
defaultBindings.ts Feature/add auto mode settings and fix bug (#368) 2026-04-26 15:43:25 +08:00
KeybindingContext.tsx feat: 将 keybinding 纳入 ink 管辖 2026-04-07 17:51:01 +08:00
KeybindingProviderSetup.tsx refactor: 大规模迁移原有组件到 ink 包内 2026-04-07 22:26:45 +08:00
loadUserBindings.ts feat: build 2026-03-31 19:22:47 +08:00
match.ts feat: 将 keybinding 纳入 ink 管辖 2026-04-07 17:51:01 +08:00
parser.ts feat: 将 keybinding 纳入 ink 管辖 2026-04-07 17:51:01 +08:00
reservedShortcuts.ts feat: build 2026-03-31 19:22:47 +08:00
resolver.ts feat: 将 keybinding 纳入 ink 管辖 2026-04-07 17:51:01 +08:00
schema.ts Feature/add auto mode settings and fix bug (#368) 2026-04-26 15:43:25 +08:00
shortcutFormat.ts feat: build 2026-03-31 19:22:47 +08:00
template.ts feat: 全面清理类型错误 — tsc 零错误,any 标注全部消除 2026-04-01 01:00:10 +08:00
types.ts feat: 将 keybinding 纳入 ink 管辖 2026-04-07 17:51:01 +08:00
useKeybinding.ts feat: 将 keybinding 纳入 ink 管辖 2026-04-07 17:51:01 +08:00
useShortcutDisplay.ts feat: build 2026-03-31 19:22:47 +08:00
validate.ts feat: 完成一大波类型修复, 虽然 any 很多 2026-03-31 23:43:39 +08:00