BattleFlow 不再直接调用 useInput(外部包的 Ink 上下文可能不同), 改为暴露 handleInput 方法,由 BuddyPanel 中的 BattleTab 通过 useInput + ref 转发键盘事件,确保在正确的 StdinContext 中工作。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| scripts | ||
| src | ||
| package.json | ||
| tsconfig.json | ||
BattleFlow 不再直接调用 useInput(外部包的 Ink 上下文可能不同), 改为暴露 handleInput 方法,由 BuddyPanel 中的 BattleTab 通过 useInput + ref 转发键盘事件,确保在正确的 StdinContext 中工作。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| scripts | ||
| src | ||
| package.json | ||
| tsconfig.json | ||